package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.nA, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C1936nA extends AbstractC0561Vq implements P50, SD, InterfaceC0581Wk, InterfaceC1575jT, Xg0 {
    public static final J7 G = new J7(21);
    public KQ B;
    public final OC C;
    public C0544Uz D;
    public InterfaceC1184fK E;
    public final C1556jA F;

    public C1936nA(KQ kq, int i, C2200q c2200q) {
        this.B = kq;
        this.C = c2200q;
        C1556jA c1556jA = new C1556jA(i, new C1841mA(2, this, C1936nA.class, "onFocusStateChange", "onFocusStateChange(Landroidx/compose/ui/focus/FocusState;Landroidx/compose/ui/focus/FocusState;)V", 0, 0), 4);
        H0(c1556jA);
        this.F = c1556jA;
    }

    @Override // o.InterfaceC1575jT
    public final void K() {
        B10 b10 = new B10();
        AbstractC2841wm0.A(this, new C2590u5(8, b10, this));
        if (b10.l != null) {
            throw new ClassCastException();
        }
        this.F.J0().a();
    }

    public final void K0(KQ kq, InterfaceC1849mI interfaceC1849mI) {
        if (!this.y) {
            kq.b(interfaceC1849mI);
            return;
        }
        TI ti = (TI) ((C0168Gm) v0()).l.m(C0669Zu.K);
        AbstractC1692kh0.C(v0(), null, new C2484t(kq, interfaceC1849mI, ti != null ? ti.d(new C1590je(4, kq, interfaceC1849mI)) : null, null, 8), 3);
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Type inference failed for: r3v10 */
    /* JADX WARN: Type inference failed for: r3v11, types: [o.LP] */
    /* JADX WARN: Type inference failed for: r3v13 */
    /* JADX WARN: Type inference failed for: r3v14, types: [o.LP] */
    /* JADX WARN: Type inference failed for: r3v15, types: [java.lang.Object] */
    /* JADX WARN: Type inference failed for: r3v16 */
    /* JADX WARN: Type inference failed for: r3v17 */
    /* JADX WARN: Type inference failed for: r3v18 */
    /* JADX WARN: Type inference failed for: r3v19 */
    /* JADX WARN: Type inference failed for: r3v20 */
    /* JADX WARN: Type inference failed for: r3v21 */
    /* JADX WARN: Type inference failed for: r5v0 */
    /* JADX WARN: Type inference failed for: r5v1 */
    /* JADX WARN: Type inference failed for: r5v10 */
    /* JADX WARN: Type inference failed for: r5v11 */
    /* JADX WARN: Type inference failed for: r5v2 */
    /* JADX WARN: Type inference failed for: r5v3, types: [o.iR] */
    /* JADX WARN: Type inference failed for: r5v4 */
    /* JADX WARN: Type inference failed for: r5v5 */
    /* JADX WARN: Type inference failed for: r5v6, types: [o.iR] */
    /* JADX WARN: Type inference failed for: r5v8 */
    /* JADX WARN: Type inference failed for: r5v9 */
    public final C2031oA L0() {
        Xg0 xg0;
        C0312Mb c0312Mb;
        if (this.y) {
            if (!this.l.y) {
                AbstractC2133pH.b("visitAncestors called on an unattached node");
            }
            LP lp = this.l.p;
            C2420sK c2420sKS = AbstractC2539te.S(this);
            loop0: while (true) {
                if (c2420sKS == null) {
                    xg0 = null;
                    break;
                }
                if ((((LP) c2420sKS.N.g).f209o & 262144) != 0) {
                    while (lp != null) {
                        if ((lp.n & 262144) != 0) {
                            AbstractC0561Vq abstractC0561VqI = lp;
                            ?? c1479iR = 0;
                            while (abstractC0561VqI != 0) {
                                if (abstractC0561VqI instanceof Xg0) {
                                    xg0 = (Xg0) abstractC0561VqI;
                                    if (C2031oA.A.equals(xg0.s())) {
                                        break loop0;
                                    }
                                } else if ((abstractC0561VqI.n & 262144) != 0 && (abstractC0561VqI instanceof AbstractC0561Vq)) {
                                    LP lp2 = abstractC0561VqI.A;
                                    int i = 0;
                                    abstractC0561VqI = abstractC0561VqI;
                                    c1479iR = c1479iR;
                                    while (lp2 != null) {
                                        if ((lp2.n & 262144) != 0) {
                                            i++;
                                            c1479iR = c1479iR;
                                            if (i == 1) {
                                                abstractC0561VqI = lp2;
                                            } else {
                                                if (c1479iR == 0) {
                                                    c1479iR = new C1479iR(new LP[16]);
                                                }
                                                if (abstractC0561VqI != 0) {
                                                    c1479iR.b(abstractC0561VqI);
                                                    abstractC0561VqI = 0;
                                                }
                                                c1479iR.b(lp2);
                                            }
                                        }
                                        lp2 = lp2.q;
                                        abstractC0561VqI = abstractC0561VqI;
                                        c1479iR = c1479iR;
                                    }
                                    if (i == 1) {
                                    }
                                }
                                abstractC0561VqI = AbstractC2539te.i(c1479iR);
                            }
                        }
                        lp = lp.p;
                    }
                }
                c2420sKS = c2420sKS.s();
                lp = (c2420sKS == null || (c0312Mb = c2420sKS.N) == null) ? null : (Bc0) c0312Mb.f;
            }
            if (xg0 instanceof C2031oA) {
                return (C2031oA) xg0;
            }
        }
        return null;
    }

    public final void M0(KQ kq) {
        C0544Uz c0544Uz;
        if (F3.c(this.B, kq)) {
            return;
        }
        KQ kq2 = this.B;
        if (kq2 != null && (c0544Uz = this.D) != null) {
            kq2.b(new C0570Vz(c0544Uz));
        }
        this.D = null;
        this.B = kq;
    }

    @Override // o.SD
    public final void U(AbstractC2239qS abstractC2239qS) {
        C2031oA c2031oAL0;
        this.E = abstractC2239qS;
        if (this.F.J0().a()) {
            if (!abstractC2239qS.P0().y) {
                C2031oA c2031oAL02 = L0();
                if (c2031oAL02 != null) {
                    c2031oAL02.H0(null);
                    return;
                }
                return;
            }
            InterfaceC1184fK interfaceC1184fK = this.E;
            if (interfaceC1184fK == null || !interfaceC1184fK.A() || (c2031oAL0 = L0()) == null) {
                return;
            }
            c2031oAL0.H0(this.E);
        }
    }

    @Override // o.P50
    public final void d0(N50 n50) {
        boolean zA = this.F.J0().a();
        DJ[] djArr = Y50.a;
        Z50 z50 = W50.k;
        DJ dj = Y50.a[4];
        z50.a(n50, Boolean.valueOf(zA));
        n50.d(M50.u, new C1726l0(null, new C1256g3(0, this, C1936nA.class, "requestFocus", "requestFocus()Z", 0, 0, 3)));
    }

    @Override // o.Xg0
    public final Object s() {
        return G;
    }

    @Override // o.LP
    public final boolean w0() {
        return false;
    }

    @Override // o.LP
    public final void B0() {
    }
}
