package androidx.compose.ui.viewinterop;

import android.content.Context;
import android.view.View;
import androidx.compose.ui.focus.FocusTargetNode$FocusTargetElement;
import o.AW;
import o.AbstractC0840bl;
import o.AbstractC0876c40;
import o.AbstractC1692kh0;
import o.AbstractC1758lM;
import o.AbstractC1948nM;
import o.AbstractC2378rs0;
import o.AbstractC2462sn;
import o.C0036Bk;
import o.C0140Fk;
import o.C0244Jk;
import o.C0321Mk;
import o.C0879c6;
import o.C0975d6;
import o.C1070e6;
import o.C1160f3;
import o.C1258g4;
import o.C1556jA;
import o.C2420sK;
import o.EnumC1280gK;
import o.F3;
import o.InterfaceC0062Ck;
import o.InterfaceC0898cL;
import o.InterfaceC1925n40;
import o.InterfaceC2281qr;
import o.L00;
import o.LP;
import o.MP;
import o.N3;
import o.NC;
import o.OC;
import o.RP;
import o.Tj0;
import o.YT;
import o.Z30;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public abstract class a {
    public static final void a(int i, C0321Mk c0321Mk, OC oc, MP mp) {
        int i2;
        Object obj = C1160f3.z;
        c0321Mk.X(-180024211);
        if ((i & 6) == 0) {
            i2 = (c0321Mk.h(oc) ? 4 : 2) | i;
        } else {
            i2 = i;
        }
        if ((i & 48) == 0) {
            i2 |= c0321Mk.f(mp) ? 32 : 16;
        }
        int i3 = i2 | 384;
        if ((i & 3072) == 0) {
            i3 |= c0321Mk.h(obj) ? 2048 : 1024;
        }
        if ((i & 24576) == 0) {
            i3 |= c0321Mk.h(obj) ? 16384 : 8192;
        }
        if (c0321Mk.N(i3 & 1, (i3 & 9363) != 9362)) {
            int iHashCode = Long.hashCode(c0321Mk.R);
            MP mpG = mp.g(FocusGroupPropertiesElement.a);
            FocusTargetNode$FocusTargetElement focusTargetNode$FocusTargetElement = new RP() { // from class: androidx.compose.ui.focus.FocusTargetNode$FocusTargetElement
                public final boolean equals(Object obj2) {
                    return obj2 == this;
                }

                @Override // o.RP
                public final LP f() {
                    return new C1556jA(0, null, 7);
                }

                public final int hashCode() {
                    return 1739042953;
                }

                @Override // o.RP
                public final /* bridge */ /* synthetic */ void j(LP lp) {
                }
            };
            MP mpF = AbstractC1692kh0.F(c0321Mk, mpG.g(focusTargetNode$FocusTargetElement).g(FocusTargetPropertiesElement.a).g(focusTargetNode$FocusTargetElement));
            InterfaceC2281qr interfaceC2281qr = (InterfaceC2281qr) c0321Mk.j(AbstractC0840bl.h);
            EnumC1280gK enumC1280gK = (EnumC1280gK) c0321Mk.j(AbstractC0840bl.n);
            AW awL = c0321Mk.l();
            InterfaceC0898cL interfaceC0898cL = (InterfaceC0898cL) c0321Mk.j(AbstractC1758lM.a);
            InterfaceC1925n40 interfaceC1925n40 = (InterfaceC1925n40) c0321Mk.j(AbstractC1948nM.a);
            c0321Mk.V(1314800527);
            int i4 = i3 & 14;
            int iHashCode2 = Long.hashCode(c0321Mk.R);
            Context context = (Context) c0321Mk.j(N3.b);
            C0244Jk c0244JkN = YT.N(c0321Mk);
            Z30 z30 = (Z30) c0321Mk.j(AbstractC0876c40.a);
            View view = (View) c0321Mk.j(N3.f);
            boolean zH = c0321Mk.h(context) | ((((i4 & 14) ^ 6) > 4 && c0321Mk.f(oc)) || (i4 & 6) == 4) | c0321Mk.h(c0244JkN) | c0321Mk.h(z30) | c0321Mk.d(iHashCode2) | c0321Mk.h(view);
            Object objK = c0321Mk.K();
            if (zH || objK == C0140Fk.a) {
                objK = new C1070e6(context, oc, c0244JkN, z30, iHashCode2, view);
                c0321Mk.f0(objK);
            }
            NC nc = (NC) objK;
            c0321Mk.R(125, null, 1, null);
            c0321Mk.q = true;
            if (c0321Mk.Q) {
                c0321Mk.k(nc);
            } else {
                c0321Mk.i0();
            }
            InterfaceC0062Ck.b.getClass();
            AbstractC2378rs0.f0(awL, c0321Mk, C0036Bk.e);
            AbstractC2378rs0.f0(mpF, c0321Mk, C0975d6.p);
            AbstractC2378rs0.f0(interfaceC2281qr, c0321Mk, C0975d6.q);
            AbstractC2378rs0.f0(interfaceC0898cL, c0321Mk, C0975d6.r);
            AbstractC2378rs0.f0(interfaceC1925n40, c0321Mk, C0975d6.s);
            AbstractC2378rs0.f0(enumC1280gK, c0321Mk, C0975d6.t);
            C0975d6 c0975d6 = C0036Bk.i;
            if (c0321Mk.Q || !F3.c(c0321Mk.K(), Integer.valueOf(iHashCode))) {
                AbstractC2462sn.r(iHashCode, c0321Mk, iHashCode, c0975d6);
            }
            AbstractC2378rs0.f0(obj, c0321Mk, C0975d6.n);
            AbstractC2378rs0.f0(obj, c0321Mk, C0975d6.f486o);
            c0321Mk.q(true);
            c0321Mk.q(false);
        } else {
            c0321Mk.Q();
        }
        L00 l00S = c0321Mk.s();
        if (l00S != null) {
            l00S.d = new C1258g4(oc, mp, i);
        }
    }

    public static final void b(OC oc, MP mp, OC oc2, C0321Mk c0321Mk, int i) {
        C1160f3 c1160f3 = C1160f3.z;
        c0321Mk.X(-1783766393);
        int i2 = (c0321Mk.h(oc) ? 4 : 2) | i;
        if ((i & 48) == 0) {
            i2 |= c0321Mk.f(mp) ? 32 : 16;
        }
        int i3 = i2 | 384;
        if (c0321Mk.N(i3 & 1, (i3 & 147) != 146)) {
            a((i3 & 14) | 3072 | (i3 & 112) | 24576, c0321Mk, oc, mp);
            oc2 = c1160f3;
        } else {
            c0321Mk.Q();
        }
        L00 l00S = c0321Mk.s();
        if (l00S != null) {
            l00S.d = new C0879c6(oc, mp, oc2, i);
        }
    }

    public static final Tj0 c(C2420sK c2420sK) {
        Tj0 tj0 = c2420sK.y;
        if (tj0 != null) {
            return tj0;
        }
        throw AbstractC2462sn.q("Required value was null.");
    }
}
