package o;

import androidx.compose.foundation.layout.FillElement;
import androidx.compose.ui.input.pointer.PointerInputEventHandler;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.Em, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0116Em implements TC {
    public final /* synthetic */ int l;
    public final /* synthetic */ Object m;
    public final /* synthetic */ Object n;

    public /* synthetic */ C0116Em(int i, Object obj, Object obj2) {
        this.l = i;
        this.m = obj;
        this.n = obj2;
    }

    @Override // o.TC
    public final Object d(Object obj, Object obj2, Object obj3) {
        boolean z;
        C0321Mk c0321Mk;
        switch (this.l) {
            case 0:
                C0321Mk c0321Mk2 = (C0321Mk) obj2;
                int iIntValue = ((Number) obj3).intValue();
                if (c0321Mk2.N(iIntValue & 1, (iIntValue & 17) != 16)) {
                    Object objK = c0321Mk2.K();
                    if (objK == C0140Fk.a) {
                        objK = new C0012Am();
                        c0321Mk2.f0(objK);
                    }
                    C0012Am c0012Am = (C0012Am) objK;
                    OC oc = (OC) this.m;
                    C3030ym c3030ym = (C3030ym) this.n;
                    c0012Am.a.clear();
                    oc.g(c0012Am);
                    c0012Am.a(c3030ym, c0321Mk2, 0);
                } else {
                    c0321Mk2.Q();
                }
                return Oh0.a;
            case 1:
                C0321Mk c0321Mk3 = (C0321Mk) obj2;
                ((Number) obj3).intValue();
                c0321Mk3.V(759876635);
                NC nc = (NC) this.n;
                Object objK2 = c0321Mk3.K();
                J7 j7 = C0140Fk.a;
                if (objK2 == j7) {
                    objK2 = AbstractC0752ap.E(nc);
                    c0321Mk3.f0(objK2);
                }
                InterfaceC3007ya0 interfaceC3007ya0 = (InterfaceC3007ya0) objK2;
                Object objK3 = c0321Mk3.K();
                if (objK3 == j7) {
                    objK3 = new C1738l6(new C1765lT(((C1765lT) interfaceC3007ya0.getValue()).a), K50.b, new C1765lT(K50.c), 8);
                    c0321Mk3.f0(objK3);
                }
                C1738l6 c1738l6 = (C1738l6) objK3;
                boolean zH = c0321Mk3.h(c1738l6);
                Object objK4 = c0321Mk3.K();
                if (zH || objK4 == j7) {
                    objK4 = new C2484t(interfaceC3007ya0, c1738l6, (InterfaceC0220Im) null, 19);
                    c0321Mk3.f0(objK4);
                }
                AbstractC0249Jp.g(Oh0.a, c0321Mk3, (SC) objK4);
                S6 s6 = c1738l6.c;
                OC oc2 = (OC) this.m;
                boolean zF = c0321Mk3.f(s6);
                Object objK5 = c0321Mk3.K();
                if (zF || objK5 == j7) {
                    objK5 = new J50(s6, 0);
                    c0321Mk3.f0(objK5);
                }
                MP mp = (MP) oc2.g((NC) objK5);
                c0321Mk3.q(false);
                return mp;
            case 2:
                SC sc = (SC) obj;
                C0321Mk c0321Mk4 = (C0321Mk) obj2;
                int iIntValue2 = ((Number) obj3).intValue();
                if ((iIntValue2 & 6) == 0) {
                    iIntValue2 |= c0321Mk4.h(sc) ? 4 : 2;
                }
                int i = iIntValue2;
                if ((i & 19) == 18 && c0321Mk4.z()) {
                    c0321Mk4.Q();
                } else {
                    FillElement fillElement = androidx.compose.foundation.layout.c.b;
                    C0159Gd c0159Gd = C0669Zu.q;
                    String str = (String) this.m;
                    String str2 = (String) this.n;
                    InterfaceC2235qO interfaceC2235qOD = AbstractC3109ze.d(c0159Gd, false);
                    int iHashCode = Long.hashCode(c0321Mk4.R);
                    AW awL = c0321Mk4.l();
                    MP mpF = AbstractC1692kh0.F(c0321Mk4, fillElement);
                    InterfaceC0062Ck.b.getClass();
                    C0744al c0744al = C0036Bk.b;
                    c0321Mk4.Y();
                    if (c0321Mk4.Q) {
                        c0321Mk4.k(c0744al);
                    } else {
                        c0321Mk4.i0();
                    }
                    AbstractC2378rs0.f0(interfaceC2235qOD, c0321Mk4, C0036Bk.f);
                    AbstractC2378rs0.f0(awL, c0321Mk4, C0036Bk.e);
                    C0975d6 c0975d6 = C0036Bk.i;
                    if (c0321Mk4.Q || !F3.c(c0321Mk4.K(), Integer.valueOf(iHashCode))) {
                        AbstractC2462sn.r(iHashCode, c0321Mk4, iHashCode, c0975d6);
                    }
                    AbstractC2378rs0.f0(mpF, c0321Mk4, C0036Bk.c);
                    c0321Mk4.V(907546156);
                    if (str.length() != 0 || str2.length() <= 0) {
                        z = false;
                        c0321Mk = c0321Mk4;
                    } else {
                        z = false;
                        Ke0.b(str2, null, C60.h, C1884mi0.C(14), null, 0L, new Yc0(3), 0L, 0, false, 0, 0, null, c0321Mk4, 24960, 0, 261098);
                        c0321Mk = c0321Mk4;
                    }
                    c0321Mk.q(z);
                    sc.f(c0321Mk, Integer.valueOf(i & 14));
                    c0321Mk.q(true);
                }
                return Oh0.a;
            default:
                C0321Mk c0321Mk5 = (C0321Mk) obj2;
                ((Number) obj3).intValue();
                KQ kq = (KQ) this.n;
                c0321Mk5.V(-102778667);
                Object objK6 = c0321Mk5.K();
                J7 j72 = C0140Fk.a;
                if (objK6 == j72) {
                    objK6 = AbstractC0249Jp.B(c0321Mk5);
                    c0321Mk5.f0(objK6);
                }
                InterfaceC0065Cn interfaceC0065Cn = (InterfaceC0065Cn) objK6;
                Object objK7 = c0321Mk5.K();
                if (objK7 == j72) {
                    objK7 = AbstractC0752ap.X(null);
                    c0321Mk5.f0(objK7);
                }
                InterfaceC1191fR interfaceC1191fR = (InterfaceC1191fR) objK7;
                InterfaceC1191fR interfaceC1191fRZ = AbstractC0752ap.Z((OC) this.m, c0321Mk5);
                boolean zF2 = c0321Mk5.f(kq);
                Object objK8 = c0321Mk5.K();
                if (zF2 || objK8 == j72) {
                    objK8 = new C1590je(17, interfaceC1191fR, kq);
                    c0321Mk5.f0(objK8);
                }
                AbstractC0249Jp.b(kq, (OC) objK8, c0321Mk5);
                boolean zH2 = c0321Mk5.h(interfaceC0065Cn) | c0321Mk5.f(kq) | c0321Mk5.f(interfaceC1191fRZ);
                Object objK9 = c0321Mk5.K();
                if (zH2 || objK9 == j72) {
                    objK9 = new C0827be0(interfaceC0065Cn, interfaceC1191fR, kq, interfaceC1191fRZ);
                    c0321Mk5.f0(objK9);
                }
                MP mpA = Tb0.a(JP.a, kq, (PointerInputEventHandler) objK9);
                c0321Mk5.q(false);
                return mpA;
        }
    }

    public C0116Em(NC nc, OC oc) {
        this.l = 1;
        this.n = nc;
        this.m = oc;
    }
}
