package o;

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

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

    @Override // o.TC
    public final Object d(Object obj, Object obj2, Object obj3) {
        int i = this.l;
        boolean z = false;
        z = false;
        z = false;
        C0358Nv c0358Nv = C0358Nv.l;
        Oh0 oh0 = Oh0.a;
        Object obj4 = this.m;
        switch (i) {
            case 0:
                ((S1) obj4).g((Throwable) obj);
                return oh0;
            case 1:
                C2178pn c2178pn = (C2178pn) obj4;
                int iIntValue = ((Integer) obj).intValue();
                int iIntValue2 = ((Integer) obj2).intValue();
                boolean zBooleanValue = ((Boolean) obj3).booleanValue();
                if (!zBooleanValue) {
                    iIntValue = c2178pn.H.n(iIntValue);
                }
                if (!zBooleanValue) {
                    iIntValue2 = c2178pn.H.n(iIntValue2);
                }
                if (c2178pn.F) {
                    long j = c2178pn.C.b;
                    int i2 = Ue0.c;
                    if (iIntValue != ((int) (j >> 32)) || iIntValue2 != ((int) (4294967295L & j))) {
                        int iMin = Math.min(iIntValue, iIntValue2);
                        EnumC3079zE enumC3079zE = EnumC3079zE.l;
                        if (iMin < 0 || Math.max(iIntValue, iIntValue2) > c2178pn.C.a.m.length()) {
                            C2066oe0 c2066oe0 = c2178pn.I;
                            c2066oe0.s(false);
                            c2066oe0.p(enumC3079zE);
                        } else {
                            if (zBooleanValue || iIntValue == iIntValue2) {
                                C2066oe0 c2066oe02 = c2178pn.I;
                                c2066oe02.s(false);
                                c2066oe02.p(enumC3079zE);
                            } else {
                                c2178pn.I.h(true);
                            }
                            c2178pn.D.v.g(new C2730ve0(c2178pn.C.a, AbstractC2378rs0.u(iIntValue, iIntValue2), (Ue0) null));
                            z = true;
                        }
                    }
                }
                return Boolean.valueOf(z);
            case 2:
                ((QM) obj4).m.c(((IX) obj2).c);
                return oh0;
            case 3:
                C2427sR c2427sR = (C2427sR) obj4;
                C2427sR.h.set(c2427sR, null);
                c2427sR.f(null);
                return oh0;
            case 4:
                ((C1071e60) obj4).b();
                return oh0;
            case 5:
                InterfaceC2424sO interfaceC2424sO = (InterfaceC2424sO) obj;
                InterfaceC1760lO interfaceC1760lO = (InterfaceC1760lO) obj2;
                C0634Yl c0634Yl = (C0634Yl) obj3;
                float f = ((C0148Fs) ((NC) obj4).a()).l;
                VW vwC = interfaceC1760lO.c(C0634Yl.a(c0634Yl.a, 0, 0, AbstractC0842bm.f(C0148Fs.a(f, Float.NaN) ? 0 : interfaceC2424sO.N(f), c0634Yl.a), 0, 11));
                return interfaceC2424sO.H(vwC.l, vwC.m, c0358Nv, new C2198py(vwC, 3));
            default:
                C0634Yl c0634Yl2 = (C0634Yl) obj3;
                long j2 = ((C2635ue0) obj4).f;
                long j3 = c0634Yl2.a;
                int iJ = C0634Yl.j(j3);
                long j4 = c0634Yl2.a;
                VW vwC2 = ((InterfaceC1760lO) obj2).c(C0634Yl.a(j3, AbstractC0940cn0.k((int) (j2 >> 32), iJ, C0634Yl.h(j4)), 0, AbstractC0940cn0.k((int) (4294967295L & j2), C0634Yl.i(j4), C0634Yl.g(j4)), 0, 10));
                return ((InterfaceC2424sO) obj).H(vwC2.l, vwC2.m, c0358Nv, new C2198py(vwC2, 4));
        }
    }

    public /* synthetic */ C2353rg(C2427sR c2427sR, C2332rR c2332rR) {
        this.l = 3;
        this.m = c2427sR;
    }
}
