package o;

import androidx.compose.foundation.layout.LayoutWeightElement;

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

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

    @Override // o.SC
    public final Object f(Object obj, Object obj2) {
        switch (this.l) {
            case 0:
                C0321Mk c0321Mk = (C0321Mk) obj;
                int iIntValue = ((Number) obj2).intValue();
                if (c0321Mk.N(iIntValue & 1, (iIntValue & 3) != 2)) {
                    MP mpD = androidx.compose.foundation.layout.b.d(androidx.compose.foundation.layout.c.a(JP.a, AbstractC2162pf.c, AbstractC2162pf.d), (C2147pV) this.m);
                    Y8 y8 = AbstractC0981d9.d;
                    C0133Fd c0133Fd = C0669Zu.w;
                    TC tc = (TC) this.n;
                    C3062z30 c3062z30A = AbstractC2967y30.a(y8, c0133Fd, c0321Mk, 54);
                    int iHashCode = Long.hashCode(c0321Mk.R);
                    AW awL = c0321Mk.l();
                    MP mpF = AbstractC1692kh0.F(c0321Mk, mpD);
                    InterfaceC0062Ck.b.getClass();
                    C0744al c0744al = C0036Bk.b;
                    c0321Mk.Y();
                    if (c0321Mk.Q) {
                        c0321Mk.k(c0744al);
                    } else {
                        c0321Mk.i0();
                    }
                    AbstractC2378rs0.f0(c3062z30A, c0321Mk, C0036Bk.f);
                    AbstractC2378rs0.f0(awL, c0321Mk, C0036Bk.e);
                    C0975d6 c0975d6 = C0036Bk.i;
                    if (c0321Mk.Q || !F3.c(c0321Mk.K(), Integer.valueOf(iHashCode))) {
                        AbstractC2462sn.r(iHashCode, c0321Mk, iHashCode, c0975d6);
                    }
                    AbstractC2378rs0.f0(mpF, c0321Mk, C0036Bk.c);
                    tc.d(A30.a, c0321Mk, 6);
                    c0321Mk.q(true);
                } else {
                    c0321Mk.Q();
                }
                break;
            case 1:
                C0321Mk c0321Mk2 = (C0321Mk) obj;
                int iIntValue2 = ((Number) obj2).intValue();
                if (c0321Mk2.N(iIntValue2 & 1, (iIntValue2 & 3) != 2)) {
                    boolean zF = c0321Mk2.f((InterfaceC1589jd0) this.m);
                    InterfaceC1589jd0 interfaceC1589jd0 = (InterfaceC1589jd0) this.m;
                    Object objK = c0321Mk2.K();
                    if (zF || objK == C0140Fk.a) {
                        objK = AbstractC0752ap.E(new C1256g3(0, interfaceC1589jd0, InterfaceC1589jd0.class, "data", "data()Landroidx/compose/foundation/text/contextmenu/data/TextContextMenuData;", 0, 0, 1));
                        c0321Mk2.f0(objK);
                    }
                    AbstractC0198Hq.a((C1968nd) this.n, (C1495id0) ((InterfaceC3007ya0) objK).getValue(), c0321Mk2, 0);
                } else {
                    c0321Mk2.Q();
                }
                break;
            case 2:
                C0321Mk c0321Mk3 = (C0321Mk) obj;
                int iIntValue3 = ((Number) obj2).intValue();
                if (c0321Mk3.N(iIntValue3 & 1, (iIntValue3 & 3) != 2)) {
                    Ke0.a(((C3116zh0) this.m).j, (C0554Vj) this.n, c0321Mk3, 0);
                } else {
                    c0321Mk3.Q();
                }
                break;
            case 3:
                C0321Mk c0321Mk4 = (C0321Mk) obj;
                int iIntValue4 = ((Number) obj2).intValue();
                OC oc = (OC) this.n;
                if ((iIntValue4 & 3) == 2 && c0321Mk4.z()) {
                    c0321Mk4.Q();
                } else {
                    C0733af0 c0733af0 = new C0733af0(C60.g, C1884mi0.C(18), null, 0L, null, 3, 0L, 16678908);
                    if (1.0f <= 0.0d) {
                        AbstractC1943nH.a("invalid weight; must be greater than zero");
                    }
                    LayoutWeightElement layoutWeightElement = new LayoutWeightElement(1.0f, true);
                    String str = (String) this.m;
                    c0321Mk4.V(1740286126);
                    boolean zF2 = c0321Mk4.f(oc);
                    Object objK2 = c0321Mk4.K();
                    if (zF2 || objK2 == C0140Fk.a) {
                        objK2 = new C1929n60(oc, 1);
                        c0321Mk4.f0(objK2);
                    }
                    c0321Mk4.q(false);
                    AbstractC2347rd.a(str, (OC) objK2, layoutWeightElement, false, false, c0733af0, null, null, true, 0, 0, null, null, null, null, C2887xC.y(1296736063, new C2318rD((String) this.m, 3), c0321Mk4), c0321Mk4, 100663296, 196608, 32472);
                }
                break;
            default:
                C0321Mk c0321Mk5 = (C0321Mk) obj;
                int iIntValue5 = ((Number) obj2).intValue();
                if (c0321Mk5.N(iIntValue5 & 1, (iIntValue5 & 3) != 2)) {
                    ((TC) this.n).d((Nd0) this.m, c0321Mk5, 6);
                } else {
                    c0321Mk5.Q();
                }
                break;
        }
        return Oh0.a;
    }

    public C2731vf(TC tc, Nd0 nd0) {
        this.l = 4;
        this.n = tc;
        this.m = nd0;
    }
}
