package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class I3 extends AbstractC0706aK implements SC {
    public final /* synthetic */ int m;
    public final /* synthetic */ Object n;

    /* renamed from: o, reason: collision with root package name */
    public final /* synthetic */ Object f152o;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public /* synthetic */ I3(int i, Object obj, Object obj2) {
        super(2);
        this.m = i;
        this.n = obj;
        this.f152o = obj2;
    }

    @Override // o.SC
    public final Object f(Object obj, Object obj2) {
        int i = this.m;
        Oh0 oh0 = Oh0.a;
        Object obj3 = this.f152o;
        Object obj4 = this.n;
        switch (i) {
            case 0:
                ((Number) obj2).intValue();
                N3.a((C2207q3) obj4, (SC) obj3, (C0321Mk) obj, AbstractC1904ms0.D(1));
                break;
            case 1:
                int iIntValue = ((Number) obj).intValue();
                R50 r50 = (R50) obj2;
                Q3 q3 = (Q3) obj3;
                if (!((S50) obj4).b.b(r50.g)) {
                    q3.m(iIntValue, r50);
                    q3.s.p(oh0);
                    break;
                }
                break;
            case 2:
                C0321Mk c0321Mk = (C0321Mk) obj;
                int iIntValue2 = ((Number) obj2).intValue();
                UX ux = (UX) obj4;
                if (!c0321Mk.N(iIntValue2 & 1, (iIntValue2 & 3) != 2)) {
                    c0321Mk.Q();
                    break;
                } else {
                    Object objK = c0321Mk.K();
                    J7 j7 = C0140Fk.a;
                    if (objK == j7) {
                        objK = C1160f3.u;
                        c0321Mk.f0(objK);
                    }
                    MP mpA = O50.a(JP.a, (OC) objK);
                    boolean zH = c0321Mk.h(ux);
                    Object objK2 = c0321Mk.K();
                    if (zH || objK2 == j7) {
                        objK2 = new C0686a5(ux, 1);
                        c0321Mk.f0(objK2);
                    }
                    MP mpI = AbstractC1155f00.i(androidx.compose.ui.layout.a.e(mpA, (OC) objK2), ux.getCanCalculatePosition() ? 1.0f : 0.0f);
                    SC sc = (SC) ((InterfaceC1191fR) obj3).getValue();
                    Object objK3 = c0321Mk.K();
                    if (objK3 == j7) {
                        objK3 = C1162f4.c;
                        c0321Mk.f0(objK3);
                    }
                    InterfaceC2235qO interfaceC2235qO = (InterfaceC2235qO) objK3;
                    int iHashCode = Long.hashCode(c0321Mk.R);
                    AW awL = c0321Mk.l();
                    MP mpF = AbstractC1692kh0.F(c0321Mk, mpI);
                    InterfaceC0062Ck.b.getClass();
                    C0744al c0744al = C0036Bk.b;
                    c0321Mk.Y();
                    if (c0321Mk.Q) {
                        c0321Mk.k(c0744al);
                    } else {
                        c0321Mk.i0();
                    }
                    AbstractC2378rs0.f0(interfaceC2235qO, 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);
                    sc.f(c0321Mk, 0);
                    c0321Mk.q(true);
                    break;
                }
                break;
            case 3:
                C3058z10 c3058z10 = (C3058z10) obj3;
                int i2 = c3058z10.l;
                c3058z10.l = i2 + 1;
                ((InterfaceC2747vn[]) obj4)[i2] = (InterfaceC2557tn) obj2;
                break;
            default:
                InterfaceC2923xg interfaceC2923xg = (InterfaceC2923xg) obj;
                C1082eE c1082eE = (C1082eE) obj2;
                AbstractC2239qS abstractC2239qS = (AbstractC2239qS) obj4;
                C2420sK c2420sK = abstractC2239qS.z;
                if (!c2420sK.H()) {
                    abstractC2239qS.S = true;
                    break;
                } else {
                    abstractC2239qS.P = interfaceC2923xg;
                    abstractC2239qS.O = c1082eE;
                    C1767lV snapshotObserver = ((C2207q3) AbstractC2705vK.a(c2420sK)).getSnapshotObserver();
                    L20 l20 = AbstractC2239qS.U;
                    snapshotObserver.a(abstractC2239qS, C2291qw.x, (C2144pS) obj3);
                    abstractC2239qS.S = false;
                    break;
                }
        }
        return oh0;
    }

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public I3(C2207q3 c2207q3, SC sc, int i) {
        super(2);
        this.m = 0;
        this.n = c2207q3;
        this.f152o = sc;
    }
}
