package o;

import java.util.Iterator;
import java.util.List;

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

    /* renamed from: o, reason: collision with root package name */
    public final /* synthetic */ int f668o;
    public final /* synthetic */ InterfaceC1191fR p;

    public /* synthetic */ C2097ou(List list, OC oc, int i, InterfaceC1191fR interfaceC1191fR, int i2) {
        this.l = i2;
        this.m = list;
        this.n = oc;
        this.f668o = i;
        this.p = interfaceC1191fR;
    }

    @Override // o.TC
    public final Object d(Object obj, Object obj2, Object obj3) {
        switch (this.l) {
            case 0:
                C0321Mk c0321Mk = (C0321Mk) obj2;
                if ((((Number) obj3).intValue() & 17) == 16 && c0321Mk.z()) {
                    c0321Mk.Q();
                } else {
                    Iterator it = this.m.iterator();
                    while (it.hasNext()) {
                        final int iIntValue = ((Number) it.next()).intValue();
                        C0554Vj c0554VjY = C2887xC.y(-405464325, new C2002nu(iIntValue, this.f668o, 0), c0321Mk);
                        c0321Mk.V(-1027970595);
                        final OC oc = this.n;
                        boolean zF = c0321Mk.f(oc) | c0321Mk.d(iIntValue);
                        Object objK = c0321Mk.K();
                        if (zF || objK == C0140Fk.a) {
                            final int i = 0;
                            final InterfaceC1191fR interfaceC1191fR = this.p;
                            objK = new NC() { // from class: o.mu
                                @Override // o.NC
                                public final Object a() {
                                    int i2 = i;
                                    Oh0 oh0 = Oh0.a;
                                    InterfaceC1191fR interfaceC1191fR2 = interfaceC1191fR;
                                    int i3 = iIntValue;
                                    OC oc2 = oc;
                                    switch (i2) {
                                        case 0:
                                            oc2.g(Integer.valueOf(i3));
                                            interfaceC1191fR2.setValue(Boolean.FALSE);
                                            break;
                                        case 1:
                                            oc2.g(Integer.valueOf(i3));
                                            int i4 = AbstractC2793wD.h;
                                            interfaceC1191fR2.setValue(Boolean.FALSE);
                                            break;
                                        default:
                                            oc2.g(Integer.valueOf(i3));
                                            int i5 = Fi0.h;
                                            interfaceC1191fR2.setValue(Boolean.FALSE);
                                            break;
                                    }
                                    return oh0;
                                }
                            };
                            c0321Mk.f0(objK);
                        }
                        c0321Mk.q(false);
                        G4.b(c0554VjY, (NC) objK, null, false, null, null, c0321Mk, 6, 508);
                    }
                }
                break;
            case 1:
                C0321Mk c0321Mk2 = (C0321Mk) obj2;
                if ((((Number) obj3).intValue() & 17) == 16 && c0321Mk2.z()) {
                    c0321Mk2.Q();
                } else {
                    Iterator it2 = this.m.iterator();
                    while (it2.hasNext()) {
                        final int iIntValue2 = ((Number) it2.next()).intValue();
                        int i2 = this.f668o;
                        C0554Vj c0554VjY2 = C2887xC.y(-45752333, new C2002nu(iIntValue2, i2, 1), c0321Mk2);
                        c0321Mk2.V(-344497125);
                        final OC oc2 = this.n;
                        boolean zF2 = c0321Mk2.f(oc2) | c0321Mk2.d(iIntValue2);
                        Object objK2 = c0321Mk2.K();
                        if (zF2 || objK2 == C0140Fk.a) {
                            final int i3 = 1;
                            final InterfaceC1191fR interfaceC1191fR2 = this.p;
                            objK2 = new NC() { // from class: o.mu
                                @Override // o.NC
                                public final Object a() {
                                    int i22 = i3;
                                    Oh0 oh0 = Oh0.a;
                                    InterfaceC1191fR interfaceC1191fR22 = interfaceC1191fR2;
                                    int i32 = iIntValue2;
                                    OC oc22 = oc2;
                                    switch (i22) {
                                        case 0:
                                            oc22.g(Integer.valueOf(i32));
                                            interfaceC1191fR22.setValue(Boolean.FALSE);
                                            break;
                                        case 1:
                                            oc22.g(Integer.valueOf(i32));
                                            int i4 = AbstractC2793wD.h;
                                            interfaceC1191fR22.setValue(Boolean.FALSE);
                                            break;
                                        default:
                                            oc22.g(Integer.valueOf(i32));
                                            int i5 = Fi0.h;
                                            interfaceC1191fR22.setValue(Boolean.FALSE);
                                            break;
                                    }
                                    return oh0;
                                }
                            };
                            c0321Mk2.f0(objK2);
                        }
                        NC nc = (NC) objK2;
                        c0321Mk2.q(false);
                        G4.b(c0554VjY2, nc, androidx.compose.foundation.a.b(JP.a, iIntValue2 == i2 ? C0190Hi.b(0.1f, AbstractC2793wD.a) : C0190Hi.f, AbstractC2841wm0.j), false, null, null, c0321Mk2, 6, 504);
                    }
                }
                break;
            default:
                C0321Mk c0321Mk3 = (C0321Mk) obj2;
                if ((((Number) obj3).intValue() & 17) == 16 && c0321Mk3.z()) {
                    c0321Mk3.Q();
                } else {
                    Iterator it3 = this.m.iterator();
                    while (it3.hasNext()) {
                        final int iIntValue3 = ((Number) it3.next()).intValue();
                        C0554Vj c0554VjY3 = C2887xC.y(-1728781733, new C2002nu(iIntValue3, this.f668o, 2), c0321Mk3);
                        c0321Mk3.V(-1835100101);
                        final OC oc3 = this.n;
                        boolean zF3 = c0321Mk3.f(oc3) | c0321Mk3.d(iIntValue3);
                        Object objK3 = c0321Mk3.K();
                        if (zF3 || objK3 == C0140Fk.a) {
                            final int i4 = 2;
                            final InterfaceC1191fR interfaceC1191fR3 = this.p;
                            objK3 = new NC() { // from class: o.mu
                                @Override // o.NC
                                public final Object a() {
                                    int i22 = i4;
                                    Oh0 oh0 = Oh0.a;
                                    InterfaceC1191fR interfaceC1191fR22 = interfaceC1191fR3;
                                    int i32 = iIntValue3;
                                    OC oc22 = oc3;
                                    switch (i22) {
                                        case 0:
                                            oc22.g(Integer.valueOf(i32));
                                            interfaceC1191fR22.setValue(Boolean.FALSE);
                                            break;
                                        case 1:
                                            oc22.g(Integer.valueOf(i32));
                                            int i42 = AbstractC2793wD.h;
                                            interfaceC1191fR22.setValue(Boolean.FALSE);
                                            break;
                                        default:
                                            oc22.g(Integer.valueOf(i32));
                                            int i5 = Fi0.h;
                                            interfaceC1191fR22.setValue(Boolean.FALSE);
                                            break;
                                    }
                                    return oh0;
                                }
                            };
                            c0321Mk3.f0(objK3);
                        }
                        c0321Mk3.q(false);
                        G4.b(c0554VjY3, (NC) objK3, null, false, null, null, c0321Mk3, 6, 508);
                    }
                }
                break;
        }
        return Oh0.a;
    }
}
