package o;

import android.graphics.Rect;
import android.os.Build;
import android.view.View;
import android.view.autofill.AutofillManager;
import androidx.compose.ui.focus.FocusOwnerImpl$modifier$1;
import java.util.ArrayList;
import o.LP;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.Zz, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0674Zz implements InterfaceC0622Xz {
    public final C2207q3 a;
    public final C2207q3 b;
    public final C0596Wz d;
    public OQ f;
    public C1556jA h;
    public final C1556jA c = new C1556jA(2, null, 6);
    public final FocusOwnerImpl$modifier$1 e = new RP() { // from class: androidx.compose.ui.focus.FocusOwnerImpl$modifier$1
        public final boolean equals(Object obj) {
            return obj == this;
        }

        @Override // o.RP
        public final LP f() {
            return this.a.c;
        }

        public final int hashCode() {
            return this.a.c.hashCode();
        }

        @Override // o.RP
        public final /* bridge */ /* synthetic */ void j(LP lp) {
        }
    };
    public final UQ g = new UQ(1);

    /* JADX WARN: Type inference failed for: r4v3, types: [androidx.compose.ui.focus.FocusOwnerImpl$modifier$1] */
    public C0674Zz(C2207q3 c2207q3, C2207q3 c2207q32) {
        this.a = c2207q3;
        this.b = c2207q32;
        this.d = new C0596Wz(this, c2207q32);
    }

    public final boolean a(boolean z) {
        C0312Mb c0312Mb;
        C1556jA c1556jA = this.h;
        if (c1556jA != null) {
            g(null);
            EnumC1366hA enumC1366hA = EnumC1366hA.l;
            EnumC1366hA enumC1366hA2 = EnumC1366hA.f556o;
            c1556jA.H0(enumC1366hA, enumC1366hA2);
            if (!c1556jA.l.y) {
                AbstractC2133pH.b("visitAncestors called on an unattached node");
            }
            LP lp = c1556jA.l.p;
            C2420sK c2420sKS = AbstractC2539te.S(c1556jA);
            while (c2420sKS != null) {
                if ((((LP) c2420sKS.N.g).f209o & 1024) != 0) {
                    while (lp != null) {
                        if ((lp.n & 1024) != 0) {
                            C1479iR c1479iR = null;
                            LP lpI = lp;
                            while (lpI != null) {
                                if (lpI instanceof C1556jA) {
                                    ((C1556jA) lpI).H0(EnumC1366hA.m, enumC1366hA2);
                                } else if ((lpI.n & 1024) != 0 && (lpI instanceof AbstractC0561Vq)) {
                                    int i = 0;
                                    for (LP lp2 = ((AbstractC0561Vq) lpI).A; lp2 != null; lp2 = lp2.q) {
                                        if ((lp2.n & 1024) != 0) {
                                            i++;
                                            if (i == 1) {
                                                lpI = lp2;
                                            } else {
                                                if (c1479iR == null) {
                                                    c1479iR = new C1479iR(new LP[16]);
                                                }
                                                if (lpI != null) {
                                                    c1479iR.b(lpI);
                                                    lpI = null;
                                                }
                                                c1479iR.b(lp2);
                                            }
                                        }
                                    }
                                    if (i == 1) {
                                    }
                                }
                                lpI = AbstractC2539te.i(c1479iR);
                            }
                        }
                        lp = lp.p;
                    }
                }
                c2420sKS = c2420sKS.s();
                lp = (c2420sKS == null || (c0312Mb = c2420sKS.N) == null) ? null : (Bc0) c0312Mb.f;
            }
        }
        return true;
    }

    public final boolean b(int i, boolean z, boolean z2) {
        int iW;
        boolean z3 = true;
        if (z || (iW = AbstractC2462sn.w(AbstractC0662Zn.y(this.c, i))) == 0) {
            a(z);
        } else {
            if (iW != 1 && iW != 2 && iW != 3) {
                throw new C2170pj();
            }
            z3 = false;
        }
        if (z3 && z2) {
            c();
        }
        return z3;
    }

    public final void c() {
        C2207q3 c2207q3 = this.a;
        if (c2207q3.isFocused() || c2207q3.hasFocus()) {
            c2207q3.clearFocus();
        } else if (c2207q3.hasFocus()) {
            View viewFindFocus = c2207q3.findFocus();
            if (viewFindFocus != null) {
                viewFindFocus.clearFocus();
            }
            c2207q3.clearFocus();
        }
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Removed duplicated region for block: B:33:0x005c  */
    /* JADX WARN: Removed duplicated region for block: B:80:0x00e6 A[Catch: all -> 0x0019, TryCatch #0 {all -> 0x0019, blocks: (B:3:0x0007, B:5:0x000e, B:10:0x001c, B:14:0x0026, B:17:0x0032, B:19:0x0038, B:20:0x003d, B:22:0x0045, B:24:0x004a, B:26:0x0050, B:30:0x0056, B:128:0x0172, B:130:0x0178, B:131:0x017b, B:133:0x0186, B:136:0x0194, B:140:0x019e, B:143:0x01a4, B:144:0x01a9, B:164:0x01e3, B:145:0x01ad, B:147:0x01b3, B:149:0x01b7, B:151:0x01bf, B:153:0x01c5, B:157:0x01cd, B:159:0x01d6, B:160:0x01da, B:161:0x01dd, B:165:0x01e8, B:166:0x01eb, B:168:0x01f1, B:170:0x01f5, B:173:0x01fe, B:175:0x0206, B:182:0x021d, B:184:0x0222, B:186:0x0226, B:209:0x0268, B:190:0x0232, B:192:0x0238, B:194:0x023c, B:196:0x0244, B:198:0x024a, B:202:0x0252, B:204:0x025b, B:205:0x025f, B:206:0x0262, B:210:0x026d, B:214:0x027d, B:216:0x0282, B:218:0x0286, B:241:0x02c8, B:222:0x0292, B:224:0x0298, B:226:0x029c, B:228:0x02a4, B:230:0x02aa, B:234:0x02b2, B:236:0x02bb, B:237:0x02bf, B:238:0x02c2, B:243:0x02cf, B:245:0x02d6, B:34:0x005e, B:36:0x0064, B:37:0x0067, B:39:0x006f, B:42:0x007d, B:46:0x0087, B:77:0x00dc, B:79:0x00e0, B:49:0x008c, B:51:0x0092, B:53:0x0096, B:55:0x009e, B:57:0x00a4, B:61:0x00ac, B:63:0x00b5, B:64:0x00b9, B:65:0x00bc, B:68:0x00c2, B:69:0x00c7, B:70:0x00ca, B:72:0x00d0, B:74:0x00d4, B:80:0x00e6, B:82:0x00ec, B:83:0x00ef, B:85:0x00f9, B:88:0x0107, B:92:0x0111, B:123:0x0166, B:125:0x016a, B:95:0x0116, B:97:0x011c, B:99:0x0120, B:101:0x0128, B:103:0x012e, B:107:0x0136, B:109:0x013f, B:110:0x0143, B:111:0x0146, B:114:0x014c, B:115:0x0151, B:116:0x0154, B:118:0x015a, B:120:0x015e), top: B:254:0x0007 }] */
    /* JADX WARN: Type inference failed for: r0v10, types: [o.LP] */
    /* JADX WARN: Type inference failed for: r0v11 */
    /* JADX WARN: Type inference failed for: r0v12 */
    /* JADX WARN: Type inference failed for: r0v16, types: [o.iR] */
    /* JADX WARN: Type inference failed for: r0v17 */
    /* JADX WARN: Type inference failed for: r0v18 */
    /* JADX WARN: Type inference failed for: r0v19 */
    /* JADX WARN: Type inference failed for: r0v20, types: [o.iR] */
    /* JADX WARN: Type inference failed for: r0v24, types: [o.LP] */
    /* JADX WARN: Type inference failed for: r0v25 */
    /* JADX WARN: Type inference failed for: r0v26, types: [java.lang.Object] */
    /* JADX WARN: Type inference failed for: r0v27 */
    /* JADX WARN: Type inference failed for: r0v28 */
    /* JADX WARN: Type inference failed for: r0v29 */
    /* JADX WARN: Type inference failed for: r0v30 */
    /* JADX WARN: Type inference failed for: r0v45 */
    /* JADX WARN: Type inference failed for: r0v46 */
    /* JADX WARN: Type inference failed for: r0v47 */
    /* JADX WARN: Type inference failed for: r0v48 */
    /* JADX WARN: Type inference failed for: r0v49 */
    /* JADX WARN: Type inference failed for: r0v50 */
    /* JADX WARN: Type inference failed for: r0v9, types: [o.LP] */
    /* JADX WARN: Type inference failed for: r15v10 */
    /* JADX WARN: Type inference failed for: r15v11, types: [java.lang.Object] */
    /* JADX WARN: Type inference failed for: r15v12 */
    /* JADX WARN: Type inference failed for: r15v13 */
    /* JADX WARN: Type inference failed for: r15v14 */
    /* JADX WARN: Type inference failed for: r15v15 */
    /* JADX WARN: Type inference failed for: r15v17 */
    /* JADX WARN: Type inference failed for: r15v18 */
    /* JADX WARN: Type inference failed for: r15v4, types: [o.LP] */
    /* JADX WARN: Type inference failed for: r15v5, types: [o.LP] */
    /* JADX WARN: Type inference failed for: r15v9, types: [o.LP] */
    /* JADX WARN: Type inference failed for: r1v22 */
    /* JADX WARN: Type inference failed for: r1v23 */
    /* JADX WARN: Type inference failed for: r1v36, types: [o.iR] */
    /* JADX WARN: Type inference failed for: r1v37 */
    /* JADX WARN: Type inference failed for: r1v38 */
    /* JADX WARN: Type inference failed for: r1v39 */
    /* JADX WARN: Type inference failed for: r1v40, types: [o.iR] */
    /* JADX WARN: Type inference failed for: r1v44 */
    /* JADX WARN: Type inference failed for: r1v45 */
    /* JADX WARN: Type inference failed for: r1v46 */
    /* JADX WARN: Type inference failed for: r1v47 */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final boolean d(android.view.KeyEvent r14, o.NC r15) {
        /*
            Method dump skipped, instructions count: 753
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: o.C0674Zz.d(android.view.KeyEvent, o.NC):boolean");
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Type inference failed for: r3v10 */
    /* JADX WARN: Type inference failed for: r3v11 */
    /* JADX WARN: Type inference failed for: r3v14, types: [o.Bc0] */
    /* JADX WARN: Type inference failed for: r3v8, types: [o.LP] */
    /* JADX WARN: Type inference failed for: r3v9 */
    /* JADX WARN: Type inference failed for: r5v10 */
    /* JADX WARN: Type inference failed for: r5v11, types: [o.LP] */
    /* JADX WARN: Type inference failed for: r5v12, types: [o.jA] */
    /* JADX WARN: Type inference failed for: r5v13 */
    /* JADX WARN: Type inference failed for: r5v14, types: [o.LP] */
    /* JADX WARN: Type inference failed for: r5v15, types: [java.lang.Object] */
    /* JADX WARN: Type inference failed for: r5v16 */
    /* JADX WARN: Type inference failed for: r5v17 */
    /* JADX WARN: Type inference failed for: r5v18 */
    /* JADX WARN: Type inference failed for: r5v19 */
    /* JADX WARN: Type inference failed for: r5v20 */
    /* JADX WARN: Type inference failed for: r5v21 */
    /* JADX WARN: Type inference failed for: r6v1 */
    /* JADX WARN: Type inference failed for: r6v11, types: [o.OC, o.aK] */
    /* JADX WARN: Type inference failed for: r6v17, types: [o.OC, o.aK] */
    /* JADX WARN: Type inference failed for: r6v2 */
    /* JADX WARN: Type inference failed for: r6v3 */
    /* JADX WARN: Type inference failed for: r6v33 */
    /* JADX WARN: Type inference failed for: r6v34 */
    /* JADX WARN: Type inference failed for: r6v35 */
    /* JADX WARN: Type inference failed for: r6v36 */
    /* JADX WARN: Type inference failed for: r6v4, types: [o.iR] */
    /* JADX WARN: Type inference failed for: r6v5 */
    /* JADX WARN: Type inference failed for: r6v6 */
    /* JADX WARN: Type inference failed for: r6v7, types: [o.iR] */
    public final Boolean e(int i, T00 t00, OC oc) {
        Boolean bool;
        boolean zI;
        Boolean bool2;
        C0312Mb c0312Mb;
        C1556jA c1556jA = this.c;
        C1556jA c1556jAG = AbstractC0752ap.G(c1556jA);
        int i2 = 4;
        C2207q3 c2207q3 = this.b;
        if (c1556jAG != null) {
            EnumC1280gK layoutDirection = c2207q3.getLayoutDirection();
            bool = null;
            C0792bA c0792bAI0 = c1556jAG.I0();
            C0983dA c0983dA = c0792bAI0.h;
            C0983dA c0983dA2 = c0792bAI0.i;
            if (i == 1) {
                c0983dA = c0792bAI0.b;
            } else if (i == 2) {
                c0983dA = c0792bAI0.c;
            } else if (i == 5) {
                c0983dA = c0792bAI0.d;
            } else if (i == 6) {
                c0983dA = c0792bAI0.e;
            } else if (i == 3) {
                int iOrdinal = layoutDirection.ordinal();
                if (iOrdinal != 0) {
                    if (iOrdinal != 1) {
                        throw new C2170pj();
                    }
                    c0983dA = c0983dA2;
                }
                if (c0983dA == C0983dA.b) {
                    c0983dA = null;
                }
                if (c0983dA == null) {
                    c0983dA = c0792bAI0.f;
                }
            } else if (i == 4) {
                int iOrdinal2 = layoutDirection.ordinal();
                if (iOrdinal2 == 0) {
                    c0983dA = c0983dA2;
                } else if (iOrdinal2 != 1) {
                    throw new C2170pj();
                }
                if (c0983dA == C0983dA.b) {
                    c0983dA = null;
                }
                if (c0983dA == null) {
                    c0983dA = c0792bAI0.g;
                }
            } else {
                if (i != 7 && i != 8) {
                    throw new IllegalStateException("invalid FocusDirection");
                }
                C1689kg c1689kg = new C1689kg(i);
                C0674Zz c0674Zz = (C0674Zz) ((C2207q3) AbstractC2539te.T(c1556jAG)).getFocusOwner();
                C1556jA c1556jA2 = c0674Zz.h;
                if (i == 7) {
                    c0792bAI0.j.g(c1689kg);
                } else {
                    c0792bAI0.k.g(c1689kg);
                }
                c0983dA = c1689kg.b ? C0983dA.c : c1556jA2 != c0674Zz.h ? C0983dA.d : C0983dA.b;
            }
            if (!F3.c(c0983dA, C0983dA.c)) {
                if (F3.c(c0983dA, C0983dA.d)) {
                    C1556jA c1556jAG2 = AbstractC0752ap.G(c1556jA);
                    if (c1556jAG2 != null) {
                        return (Boolean) oc.g(c1556jAG2);
                    }
                } else if (!F3.c(c0983dA, C0983dA.b)) {
                    return Boolean.valueOf(c0983dA.a(oc));
                }
            }
            return bool;
        }
        bool = null;
        c1556jAG = null;
        EnumC1280gK layoutDirection2 = c2207q3.getLayoutDirection();
        V5 v5 = new V5(c1556jAG, this, oc);
        if (i == 1 || i == 2) {
            if (i == 1) {
                zI = Co0.u(c1556jA, v5);
            } else {
                if (i != 2) {
                    throw new IllegalStateException("This function should only be used for 1-D focus search");
                }
                zI = Co0.i(c1556jA, v5);
            }
            return Boolean.valueOf(zI);
        }
        if (i == 3 || i == 4 || i == 5 || i == 6) {
            return C80.a0(i, v5, c1556jA, t00);
        }
        if (i == 7) {
            int iOrdinal3 = layoutDirection2.ordinal();
            if (iOrdinal3 != 0) {
                if (iOrdinal3 != 1) {
                    throw new C2170pj();
                }
                i2 = 3;
            }
            C1556jA c1556jAG3 = AbstractC0752ap.G(c1556jA);
            if (c1556jAG3 != null) {
                return C80.a0(i2, v5, c1556jAG3, t00);
            }
            return bool;
        }
        if (i != 8) {
            throw new IllegalStateException(("Focus search invoked with invalid FocusDirection " + ((Object) C0388Oz.a(i))).toString());
        }
        C1556jA c1556jAG4 = AbstractC0752ap.G(c1556jA);
        boolean zBooleanValue = false;
        if (c1556jAG4 == null) {
            bool2 = bool;
        } else {
            if (!c1556jAG4.l.y) {
                AbstractC2133pH.b("visitAncestors called on an unattached node");
            }
            ?? r3 = c1556jAG4.l.p;
            C2420sK c2420sKS = AbstractC2539te.S(c1556jAG4);
            loop0: while (c2420sKS != null) {
                if ((((LP) c2420sKS.N.g).f209o & 1024) != 0) {
                    for (LP lp = r3; lp != null; lp = lp.p) {
                        if ((lp.n & 1024) != 0) {
                            AbstractC0561Vq abstractC0561VqI = lp;
                            ?? c1479iR = bool;
                            while (abstractC0561VqI != 0) {
                                if (abstractC0561VqI instanceof C1556jA) {
                                    ?? r5 = (C1556jA) abstractC0561VqI;
                                    if (r5.I0().a) {
                                        bool2 = r5;
                                        break loop0;
                                    }
                                } else if ((abstractC0561VqI.n & 1024) != 0 && (abstractC0561VqI instanceof AbstractC0561Vq)) {
                                    LP lp2 = abstractC0561VqI.A;
                                    int i3 = 0;
                                    abstractC0561VqI = abstractC0561VqI;
                                    c1479iR = c1479iR;
                                    while (lp2 != null) {
                                        if ((lp2.n & 1024) != 0) {
                                            i3++;
                                            c1479iR = c1479iR;
                                            if (i3 == 1) {
                                                abstractC0561VqI = lp2;
                                            } else {
                                                if (c1479iR == 0) {
                                                    c1479iR = new C1479iR(new LP[16]);
                                                }
                                                if (abstractC0561VqI != 0) {
                                                    c1479iR.b(abstractC0561VqI);
                                                    abstractC0561VqI = bool;
                                                }
                                                c1479iR.b(lp2);
                                            }
                                        }
                                        lp2 = lp2.q;
                                        abstractC0561VqI = abstractC0561VqI;
                                        c1479iR = c1479iR;
                                    }
                                    if (i3 == 1) {
                                    }
                                }
                                abstractC0561VqI = AbstractC2539te.i(c1479iR);
                            }
                        }
                    }
                }
                c2420sKS = c2420sKS.s();
                r3 = (c2420sKS == null || (c0312Mb = c2420sKS.N) == null) ? bool : (Bc0) c0312Mb.f;
            }
            bool2 = bool;
        }
        if (bool2 != null && !bool2.equals(c1556jA)) {
            zBooleanValue = ((Boolean) v5.g(bool2)).booleanValue();
        }
        return Boolean.valueOf(zBooleanValue);
    }

    public final boolean f(int i) {
        boolean zL;
        View viewA;
        B10 b10 = new B10();
        b10.l = Boolean.FALSE;
        C1556jA c1556jA = this.h;
        C2207q3 c2207q3 = this.a;
        Boolean boolE = e(i, c2207q3.getEmbeddedViewFocusRect(), new C0648Yz(b10, i));
        if (!F3.c(boolE, Boolean.TRUE) || c1556jA == this.h) {
            if (boolE != null && b10.l != null) {
                if (!boolE.booleanValue() || !((Boolean) b10.l).booleanValue()) {
                    if (i != 1 && i != 2) {
                        if (i != 7 && i != 8) {
                            Integer numT = F3.T(i);
                            if (numT == null) {
                                throw new IllegalStateException("Invalid focus direction");
                            }
                            int iIntValue = numT.intValue();
                            T00 embeddedViewFocusRect = c2207q3.getEmbeddedViewFocusRect();
                            Rect rectW = embeddedViewFocusRect != null ? As0.W(embeddedViewFocusRect) : null;
                            C0466Rz c0466Rz = (C0466Rz) C0466Rz.f.get();
                            if (rectW == null) {
                                viewA = c0466Rz.b(iIntValue, c2207q3.findFocus(), c2207q3);
                            } else {
                                c0466Rz.a.set(rectW);
                                Rect rect = c0466Rz.a;
                                ArrayList<View> arrayList = c0466Rz.e;
                                try {
                                    arrayList.clear();
                                    if (Build.VERSION.SDK_INT < 26) {
                                        As0.l(c2207q3, arrayList, c2207q3.isInTouchMode());
                                    } else {
                                        c2207q3.addFocusables(arrayList, iIntValue, c2207q3.isInTouchMode() ? 1 : 0);
                                    }
                                    viewA = arrayList.isEmpty() ? null : c0466Rz.a(iIntValue, rect, null, c2207q3, arrayList);
                                    arrayList.clear();
                                } catch (Throwable th) {
                                    arrayList.clear();
                                    throw th;
                                }
                            }
                            if (viewA != null) {
                                zL = F3.L(viewA, Integer.valueOf(iIntValue), rectW);
                            }
                            if (!zL) {
                            }
                        }
                        zL = false;
                        if (!zL) {
                        }
                    } else if (b(i, false, false)) {
                        Boolean boolE2 = e(i, null, new C1827m3(i, 2));
                        if (boolE2 != null ? boolE2.booleanValue() : false) {
                        }
                    }
                }
            }
            return false;
        }
        return true;
    }

    public final void g(C1556jA c1556jA) {
        C2420sK c2420sKS;
        N50 n50U;
        C2420sK c2420sKS2;
        N50 n50U2;
        C1556jA c1556jA2 = this.h;
        this.h = c1556jA;
        UQ uq = this.g;
        Object[] objArr = uq.a;
        int i = uq.b;
        for (int i2 = 0; i2 < i; i2++) {
            R2 r2 = (R2) objArr[i2];
            r2.getClass();
            if (c1556jA2 != null && (c2420sKS2 = AbstractC2539te.S(c1556jA2)) != null && (n50U2 = c2420sKS2.u()) != null && n50U2.l.b(M50.f)) {
                ((AutofillManager) r2.a.m).notifyViewExited(r2.c, c2420sKS2.m);
            }
            if (c1556jA != null && (c2420sKS = AbstractC2539te.S(c1556jA)) != null && (n50U = c2420sKS.u()) != null && n50U.l.b(M50.f)) {
                int i3 = c2420sKS.m;
                r2.d.a.o(i3, new P2(r2, i3));
            }
        }
    }

    /* JADX WARN: Code restructure failed: missing block: B:15:0x009b, code lost:
    
        r34 = r6;
     */
    /* JADX WARN: Code restructure failed: missing block: B:16:0x00a5, code lost:
    
        if (((r9 & ((~r9) << 6)) & (-9187201950435737472L)) == 0) goto L62;
     */
    /* JADX WARN: Code restructure failed: missing block: B:17:0x00a7, code lost:
    
        r6 = r3.b(r5);
     */
    /* JADX WARN: Code restructure failed: missing block: B:18:0x00ad, code lost:
    
        if (r3.e != 0) goto L21;
     */
    /* JADX WARN: Code restructure failed: missing block: B:20:0x00be, code lost:
    
        if (((r3.a[r6 >> 3] >> ((r6 & 7) << 3)) & 255) != 254) goto L22;
     */
    /* JADX WARN: Code restructure failed: missing block: B:21:0x00c0, code lost:
    
        r21 = 128;
     */
    /* JADX WARN: Code restructure failed: missing block: B:22:0x00c4, code lost:
    
        r6 = r3.c;
     */
    /* JADX WARN: Code restructure failed: missing block: B:23:0x00c6, code lost:
    
        if (r6 <= 8) goto L47;
     */
    /* JADX WARN: Code restructure failed: missing block: B:24:0x00c8, code lost:
    
        r14 = Long.MIN_VALUE;
     */
    /* JADX WARN: Code restructure failed: missing block: B:25:0x00da, code lost:
    
        if (java.lang.Long.compare((r3.d * 32) ^ Long.MIN_VALUE, (r6 * 25) ^ Long.MIN_VALUE) > 0) goto L47;
     */
    /* JADX WARN: Code restructure failed: missing block: B:26:0x00dc, code lost:
    
        r6 = r3.a;
        r7 = r3.c;
        r10 = r3.b;
        r11 = (r7 + 7) >> 3;
        r4 = 0;
     */
    /* JADX WARN: Code restructure failed: missing block: B:27:0x00ea, code lost:
    
        if (r4 >= r11) goto L93;
     */
    /* JADX WARN: Code restructure failed: missing block: B:28:0x00ec, code lost:
    
        r8 = r6[r4] & (-9187201950435737472L);
        r6[r4] = (-72340172838076674L) & ((~r8) + (r8 >>> 7));
        r4 = r4 + 1;
        r14 = r14;
     */
    /* JADX WARN: Code restructure failed: missing block: B:29:0x0105, code lost:
    
        r16 = r14;
        r21 = 128;
        r4 = r6.length;
        r8 = r4 - 1;
        r4 = r4 - 2;
        r6[r4] = (r6[r4] & 72057594037927935L) | (-72057594037927936L);
        r6[r8] = r6[0];
        r4 = 0;
     */
    /* JADX WARN: Code restructure failed: missing block: B:30:0x0123, code lost:
    
        if (r4 == r7) goto L95;
     */
    /* JADX WARN: Code restructure failed: missing block: B:31:0x0125, code lost:
    
        r8 = r4 >> 3;
        r9 = (r4 & 7) << 3;
        r14 = (r6[r8] >> r9) & 255;
     */
    /* JADX WARN: Code restructure failed: missing block: B:32:0x0132, code lost:
    
        if (r14 != 128) goto L34;
     */
    /* JADX WARN: Code restructure failed: missing block: B:33:0x0134, code lost:
    
        r4 = r4 + 1;
     */
    /* JADX WARN: Code restructure failed: missing block: B:35:0x0139, code lost:
    
        if (r14 == 254) goto L94;
     */
    /* JADX WARN: Code restructure failed: missing block: B:37:0x013c, code lost:
    
        r11 = java.lang.Long.hashCode(r10[r4]) * (-862048943);
        r14 = (r11 ^ (r11 << 16)) >>> 7;
        r15 = r3.b(r14);
        r14 = r14 & r7;
        r28 = r4;
     */
    /* JADX WARN: Code restructure failed: missing block: B:38:0x015b, code lost:
    
        if ((((r15 - r14) & r7) / 8) != (((r28 - r14) & r7) / 8)) goto L41;
     */
    /* JADX WARN: Code restructure failed: missing block: B:39:0x015d, code lost:
    
        r4 = r7;
        r6[r8] = (r6[r8] & (~(255 << r9))) | ((r11 & 127) << r9);
        r6[r6.length - 1] = (r6[0] & 72057594037927935L) | r16;
        r7 = r28 + 1;
     */
    /* JADX WARN: Code restructure failed: missing block: B:40:0x017b, code lost:
    
        r40 = r7;
        r7 = r4;
        r4 = r40;
     */
    /* JADX WARN: Code restructure failed: missing block: B:41:0x0181, code lost:
    
        r4 = r7;
        r7 = r15 >> 3;
        r30 = r6[r7];
        r8 = (r15 & 7) << 3;
     */
    /* JADX WARN: Code restructure failed: missing block: B:42:0x0192, code lost:
    
        if (((r30 >> r8) & 255) != 128) goto L44;
     */
    /* JADX WARN: Code restructure failed: missing block: B:43:0x0194, code lost:
    
        r6[r7] = (r30 & (~(255 << r8))) | ((r11 & 127) << r8);
        r6[r8] = (r6[r8] & (~(255 << r9))) | (128 << r9);
        r10[r15] = r10[r28];
        r10[r28] = 0;
        r7 = r28;
     */
    /* JADX WARN: Code restructure failed: missing block: B:44:0x01bf, code lost:
    
        r6[r7] = (r30 & (~(255 << r8))) | ((r11 & 127) << r8);
        r7 = r10[r15];
        r10[r15] = r10[r28];
        r10[r28] = r7;
        r7 = r28 - 1;
     */
    /* JADX WARN: Code restructure failed: missing block: B:45:0x01dc, code lost:
    
        r6[r6.length - 1] = (r6[0] & 72057594037927935L) | r16;
        r7 = r7 + 1;
     */
    /* JADX WARN: Code restructure failed: missing block: B:46:0x01ea, code lost:
    
        r3.e = o.AbstractC3064z40.a(r3.c) - r3.d;
     */
    /* JADX WARN: Code restructure failed: missing block: B:47:0x01f7, code lost:
    
        r21 = 128;
        r4 = o.AbstractC3064z40.b(r3.c);
        r6 = r3.a;
        r7 = r3.b;
        r8 = r3.c;
        r3.c(r4);
        r4 = r3.a;
        r9 = r3.b;
        r10 = r3.c;
        r11 = 0;
     */
    /* JADX WARN: Code restructure failed: missing block: B:48:0x0210, code lost:
    
        if (r11 >= r8) goto L101;
     */
    /* JADX WARN: Code restructure failed: missing block: B:50:0x0220, code lost:
    
        if (((r6[r11 >> 3] >> ((r11 & 7) << 3)) & 255) >= 128) goto L52;
     */
    /* JADX WARN: Code restructure failed: missing block: B:51:0x0222, code lost:
    
        r14 = r7[r11];
        r16 = java.lang.Long.hashCode(r14) * (-862048943);
        r16 = r16 ^ (r16 << 16);
        r17 = r4;
        r4 = r3.b(r16 >>> 7);
        r4 = r16 & 127;
        r16 = r6;
        r18 = r7;
        r6 = r4;
        r4 = r4 >> 3;
        r19 = (r4 & 7) << 3;
        r6 = (r17[r4] & (~(255 << r19))) | (r6 << r19);
        r17[r4] = r6;
        r17[(((r4 - 7) & r10) + (r10 & 7)) >> 3] = r6;
        r9[r4] = r14;
     */
    /* JADX WARN: Code restructure failed: missing block: B:52:0x0262, code lost:
    
        r17 = r4;
        r16 = r6;
        r18 = r7;
     */
    /* JADX WARN: Code restructure failed: missing block: B:53:0x0268, code lost:
    
        r11 = r11 + 1;
        r6 = r16;
        r4 = r17;
        r7 = r18;
     */
    /* JADX WARN: Code restructure failed: missing block: B:54:0x0271, code lost:
    
        r11 = r3.b(r5);
     */
    /* JADX WARN: Code restructure failed: missing block: B:55:0x0277, code lost:
    
        r11 = r6;
     */
    /* JADX WARN: Code restructure failed: missing block: B:56:0x0278, code lost:
    
        r3.d++;
        r4 = r3.e;
        r5 = r3.a;
        r6 = r11 >> 3;
        r7 = r5[r6];
        r9 = (r11 & 7) << 3;
     */
    /* JADX WARN: Code restructure failed: missing block: B:57:0x0290, code lost:
    
        if (((r7 >> r9) & 255) != r21) goto L59;
     */
    /* JADX WARN: Code restructure failed: missing block: B:58:0x0292, code lost:
    
        r20 = r34 ? 1 : 0;
     */
    /* JADX WARN: Code restructure failed: missing block: B:59:0x0294, code lost:
    
        r3.e = r4 - r20;
        r4 = r3.c;
        r7 = (r7 & (~(255 << r9))) | (r12 << r9);
        r5[r6] = r7;
        r5[(((r11 - 7) & r4) + (r4 & 7)) >> 3] = r7;
     */
    /* JADX WARN: Code restructure failed: missing block: B:80:0x0335, code lost:
    
        if (((r7 & ((~r7) << 6)) & (-9187201950435737472L)) == 0) goto L86;
     */
    /* JADX WARN: Code restructure failed: missing block: B:81:0x0337, code lost:
    
        r11 = -1;
     */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final boolean h(android.view.KeyEvent r42) {
        /*
            Method dump skipped, instructions count: 885
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: o.C0674Zz.h(android.view.KeyEvent):boolean");
    }
}
