package o;

import androidx.compose.foundation.layout.HorizontalAlignElement;
import androidx.compose.foundation.layout.LayoutWeightElement;

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

    public /* synthetic */ C1920n2(SC sc, int i) {
        this.l = i;
        this.m = sc;
    }

    @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 mpG = androidx.compose.foundation.layout.b.d(JP.a, AbstractC2394s2.f).g(new HorizontalAlignElement(C0669Zu.y));
                    InterfaceC2235qO interfaceC2235qOD = AbstractC3109ze.d(C0669Zu.m, false);
                    int iHashCode = Long.hashCode(c0321Mk.R);
                    AW awL = c0321Mk.l();
                    MP mpF = AbstractC1692kh0.F(c0321Mk, mpG);
                    InterfaceC0062Ck.b.getClass();
                    C0744al c0744al = C0036Bk.b;
                    c0321Mk.Y();
                    if (c0321Mk.Q) {
                        c0321Mk.k(c0744al);
                    } else {
                        c0321Mk.i0();
                    }
                    AbstractC2378rs0.f0(interfaceC2235qOD, 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);
                    this.m.f(c0321Mk, 0);
                    c0321Mk.q(true);
                } else {
                    c0321Mk.Q();
                }
                break;
            default:
                C0321Mk c0321Mk2 = (C0321Mk) obj;
                int iIntValue2 = ((Number) obj2).intValue();
                if (c0321Mk2.N(iIntValue2 & 1, (iIntValue2 & 3) != 2)) {
                    if (1.0f <= 0.0d) {
                        AbstractC1943nH.a("invalid weight; must be greater than zero");
                    }
                    MP mpG2 = androidx.compose.foundation.layout.b.d(new LayoutWeightElement(1.0f, false), AbstractC2394s2.g).g(new HorizontalAlignElement(C0669Zu.y));
                    InterfaceC2235qO interfaceC2235qOD2 = AbstractC3109ze.d(C0669Zu.m, false);
                    int iHashCode2 = Long.hashCode(c0321Mk2.R);
                    AW awL2 = c0321Mk2.l();
                    MP mpF2 = AbstractC1692kh0.F(c0321Mk2, mpG2);
                    InterfaceC0062Ck.b.getClass();
                    C0744al c0744al2 = C0036Bk.b;
                    c0321Mk2.Y();
                    if (c0321Mk2.Q) {
                        c0321Mk2.k(c0744al2);
                    } else {
                        c0321Mk2.i0();
                    }
                    AbstractC2378rs0.f0(interfaceC2235qOD2, c0321Mk2, C0036Bk.f);
                    AbstractC2378rs0.f0(awL2, c0321Mk2, C0036Bk.e);
                    C0975d6 c0975d62 = C0036Bk.i;
                    if (c0321Mk2.Q || !F3.c(c0321Mk2.K(), Integer.valueOf(iHashCode2))) {
                        AbstractC2462sn.r(iHashCode2, c0321Mk2, iHashCode2, c0975d62);
                    }
                    AbstractC2378rs0.f0(mpF2, c0321Mk2, C0036Bk.c);
                    this.m.f(c0321Mk2, 0);
                    c0321Mk2.q(true);
                } else {
                    c0321Mk2.Q();
                }
                break;
        }
        return Oh0.a;
    }
}
