package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class CX {
    public final Object a;
    public final C2513tI b;
    public final int c;
    public final int d;
    public int e;

    /* JADX WARN: Removed duplicated region for block: B:36:0x0070  */
    /* JADX WARN: Removed duplicated region for block: B:37:0x0072  */
    /* JADX WARN: Removed duplicated region for block: B:38:0x0074  */
    /* JADX WARN: Removed duplicated region for block: B:9:0x0022  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public CX(java.util.List r7, o.C2513tI r8) {
        /*
            r6 = this;
            r6.<init>()
            r6.a = r7
            r6.b = r8
            int r0 = android.os.Build.VERSION.SDK_INT
            r1 = 29
            r2 = 0
            r3 = 0
            if (r0 < r1) goto L22
            if (r8 == 0) goto L1a
            java.lang.Object r0 = r8.d
            o.hY r0 = (o.C1390hY) r0
            java.lang.Object r0 = r0.n
            android.view.MotionEvent r0 = (android.view.MotionEvent) r0
            goto L1b
        L1a:
            r0 = r2
        L1b:
            if (r0 == 0) goto L22
            int r0 = o.KH.c(r0)
            goto L23
        L22:
            r0 = r3
        L23:
            r6.c = r0
            if (r8 == 0) goto L30
            java.lang.Object r0 = r8.d
            o.hY r0 = (o.C1390hY) r0
            java.lang.Object r0 = r0.n
            android.view.MotionEvent r0 = (android.view.MotionEvent) r0
            goto L31
        L30:
            r0 = r2
        L31:
            if (r0 == 0) goto L38
            int r0 = r0.getButtonState()
            goto L39
        L38:
            r0 = r3
        L39:
            r6.d = r0
            if (r8 == 0) goto L46
            java.lang.Object r0 = r8.d
            o.hY r0 = (o.C1390hY) r0
            java.lang.Object r0 = r0.n
            android.view.MotionEvent r0 = (android.view.MotionEvent) r0
            goto L47
        L46:
            r0 = r2
        L47:
            if (r0 == 0) goto L4c
            r0.getMetaState()
        L4c:
            if (r8 == 0) goto L57
            java.lang.Object r8 = r8.d
            o.hY r8 = (o.C1390hY) r8
            java.lang.Object r8 = r8.n
            r2 = r8
            android.view.MotionEvent r2 = (android.view.MotionEvent) r2
        L57:
            r8 = 3
            r0 = 2
            r1 = 1
            if (r2 == 0) goto L76
            int r7 = r2.getActionMasked()
            if (r7 == 0) goto L74
            if (r7 == r1) goto L72
            if (r7 == r0) goto L70
            switch(r7) {
                case 5: goto L74;
                case 6: goto L72;
                case 7: goto L70;
                case 8: goto L6e;
                case 9: goto L6c;
                case 10: goto L6a;
                default: goto L69;
            }
        L69:
            goto L93
        L6a:
            r3 = 5
            goto L93
        L6c:
            r3 = 4
            goto L93
        L6e:
            r3 = 6
            goto L93
        L70:
            r3 = r8
            goto L93
        L72:
            r3 = r0
            goto L93
        L74:
            r3 = r1
            goto L93
        L76:
            int r2 = r7.size()
        L7a:
            if (r3 >= r2) goto L70
            java.lang.Object r4 = r7.get(r3)
            o.IX r4 = (o.IX) r4
            boolean r5 = o.As0.r(r4)
            if (r5 == 0) goto L89
            goto L72
        L89:
            boolean r4 = o.As0.p(r4)
            if (r4 == 0) goto L90
            goto L74
        L90:
            int r3 = r3 + 1
            goto L7a
        L93:
            r6.e = r3
            return
        */
        throw new UnsupportedOperationException("Method not decompiled: o.CX.<init>(java.util.List, o.tI):void");
    }
}
