package o;

import com.google.android.gms.common.ConnectionResult;
import com.google.android.gms.common.api.CommonStatusCodes;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;

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

    public /* synthetic */ C2304r40(int i) {
        this.l = i;
    }

    /* JADX WARN: Multi-variable type inference failed */
    @Override // o.OC
    public final Object g(Object obj) {
        Se0 se0;
        int i;
        int i2;
        int i3;
        int i4;
        long j;
        switch (this.l) {
            case 0:
                return obj;
            case 1:
                List list = (List) obj;
                Object obj2 = list.get(0);
                OC oc = (OC) AbstractC2779w40.h.n;
                Boolean bool = Boolean.FALSE;
                Y90 y90 = (F3.c(obj2, bool) || obj2 == null) ? null : (Y90) oc.g(obj2);
                Object obj3 = list.get(1);
                Y90 y902 = (F3.c(obj3, bool) || obj3 == null) ? null : (Y90) oc.g(obj3);
                Object obj4 = list.get(2);
                Y90 y903 = (F3.c(obj4, bool) || obj4 == null) ? null : (Y90) oc.g(obj4);
                Object obj5 = list.get(3);
                return new Qe0(y90, y902, y903, (F3.c(obj5, bool) || obj5 == null) ? null : (Y90) oc.g(obj5));
            case 2:
                List list2 = (List) obj;
                Object obj6 = list2.get(1);
                List list3 = (F3.c(obj6, Boolean.FALSE) || obj6 == null) ? null : (List) ((OC) AbstractC2779w40.a.n).g(obj6);
                Object obj7 = list2.get(0);
                return new C0977d7(list3, obj7 != null ? (String) obj7 : null);
            case 3:
                return new C2823wd0(((Integer) obj).intValue());
            case 4:
                List list4 = (List) obj;
                return new C3015ye0(((Number) list4.get(0)).floatValue(), ((Number) list4.get(1)).floatValue());
            case 5:
                List list5 = (List) obj;
                Object obj8 = list5.get(0);
                C1115ef0[] c1115ef0Arr = C1020df0.b;
                OC oc2 = AbstractC2779w40.q.m;
                Boolean bool2 = Boolean.FALSE;
                F3.c(obj8, bool2);
                long j2 = (obj8 != null ? (C1020df0) oc2.g(obj8) : null).a;
                Object obj9 = list5.get(1);
                F3.c(obj9, bool2);
                return new C3110ze0(j2, (obj9 != null ? (C1020df0) oc2.g(obj9) : null).a);
            case 6:
                return new OA(((Integer) obj).intValue());
            case 7:
                return new C1494id(((Float) obj).floatValue());
            case 8:
                List list6 = (List) obj;
                Object obj10 = list6.get(0);
                int iIntValue = (obj10 != null ? (Integer) obj10 : null).intValue();
                Object obj11 = list6.get(1);
                return new Ue0(AbstractC2378rs0.u(iIntValue, (obj11 != null ? (Integer) obj11 : null).intValue()));
            case ConnectionResult.SERVICE_INVALID /* 9 */:
                List list7 = (List) obj;
                Object obj12 = list7.get(0);
                int i5 = C0190Hi.h;
                Boolean bool3 = Boolean.FALSE;
                F3.c(obj12, bool3);
                long j3 = (obj12 != null ? F3.c(obj12, Boolean.FALSE) ? new C0190Hi(C0190Hi.g) : new C0190Hi(AbstractC0752ap.b(((Integer) obj12).intValue())) : null).a;
                Object obj13 = list7.get(1);
                C2684v40 c2684v40 = AbstractC2779w40.r;
                F3.c(obj13, bool3);
                long j4 = (obj13 != null ? (C1765lT) c2684v40.m.g(obj13) : null).a;
                Object obj14 = list7.get(2);
                return new I70((obj14 != null ? (Float) obj14 : null).floatValue(), j3, j4);
            case 10:
                if (F3.c(obj, Boolean.FALSE)) {
                    return new C1020df0(C1020df0.c);
                }
                List list8 = (List) obj;
                Object obj15 = list8.get(0);
                float fFloatValue = (obj15 != null ? (Float) obj15 : null).floatValue();
                Object obj16 = list8.get(1);
                return new C1020df0(C1884mi0.H(fFloatValue, (obj16 != null ? (C1115ef0) obj16 : null).a));
            case ConnectionResult.LICENSE_CHECK_FAILED /* 11 */:
                List list9 = (List) obj;
                Object obj17 = list9.get(0);
                String str = obj17 != null ? (String) obj17 : null;
                Object obj18 = list9.get(1);
                return new BL(str, (F3.c(obj18, Boolean.FALSE) || obj18 == null) ? null : (Qe0) ((OC) AbstractC2779w40.i.n).g(obj18));
            case 12:
                if (F3.c(obj, Boolean.FALSE)) {
                    return new C1765lT(9205357640488583168L);
                }
                List list10 = (List) obj;
                Object obj19 = list10.get(0);
                float fFloatValue2 = (obj19 != null ? (Float) obj19 : null).floatValue();
                return new C1765lT((Float.floatToRawIntBits(fFloatValue2) << 32) | (Float.floatToRawIntBits((list10.get(1) != null ? (Float) r1 : null).floatValue()) & 4294967295L));
            case 13:
                List list11 = (List) obj;
                ArrayList arrayList = new ArrayList(list11.size());
                int size = list11.size();
                while (i < size) {
                    Object obj20 = list11.get(i);
                    arrayList.add((F3.c(obj20, Boolean.FALSE) || obj20 == null) ? null : (C2043oM) ((OC) AbstractC2779w40.t.n).g(obj20));
                    i++;
                }
                return new C2138pM(arrayList);
            case 14:
                List list12 = (List) obj;
                ArrayList arrayList2 = new ArrayList(list12.size());
                int size2 = list12.size();
                while (i < size2) {
                    Object obj21 = list12.get(i);
                    arrayList2.add((F3.c(obj21, Boolean.FALSE) || obj21 == null) ? null : (C0881c7) ((OC) AbstractC2779w40.b.n).g(obj21));
                    i++;
                }
                return arrayList2;
            case 15:
                AbstractC0910cX.a.getClass();
                Locale localeForLanguageTag = Locale.forLanguageTag((String) obj);
                F3.c(localeForLanguageTag.toLanguageTag(), "und");
                return new C2043oM(localeForLanguageTag);
            case 16:
                List list13 = (List) obj;
                Object obj22 = list13.get(0);
                float f = (obj22 != null ? (C1662kL) obj22 : null).a;
                Object obj23 = list13.get(1);
                int i6 = (obj23 != null ? (C1852mL) obj23 : null).a;
                Object obj24 = list13.get(2);
                (obj24 != null ? (C1757lL) obj24 : null).getClass();
                return new C1947nL(i6, f);
            case 17:
                List list14 = (List) obj;
                Object obj25 = list14.get(0);
                EnumC1264g7 enumC1264g7 = obj25 != null ? (EnumC1264g7) obj25 : null;
                Object obj26 = list14.get(2);
                int iIntValue2 = (obj26 != null ? (Integer) obj26 : null).intValue();
                Object obj27 = list14.get(3);
                int iIntValue3 = (obj27 != null ? (Integer) obj27 : null).intValue();
                Object obj28 = list14.get(4);
                String str2 = obj28 != null ? (String) obj28 : null;
                switch (enumC1264g7.ordinal()) {
                    case 0:
                        Object obj29 = list14.get(1);
                        return new C0881c7((F3.c(obj29, Boolean.FALSE) || obj29 == null) ? null : (FV) ((OC) AbstractC2779w40.g.n).g(obj29), iIntValue2, iIntValue3, str2);
                    case 1:
                        Object obj30 = list14.get(1);
                        return new C0881c7((F3.c(obj30, Boolean.FALSE) || obj30 == null) ? null : (Y90) ((OC) AbstractC2779w40.h.n).g(obj30), iIntValue2, iIntValue3, str2);
                    case 2:
                        Object obj31 = list14.get(1);
                        return new C0881c7((F3.c(obj31, Boolean.FALSE) || obj31 == null) ? null : (C2266qj0) ((OC) AbstractC2779w40.c.n).g(obj31), iIntValue2, iIntValue3, str2);
                    case 3:
                        Object obj32 = list14.get(1);
                        return new C0881c7((F3.c(obj32, Boolean.FALSE) || obj32 == null) ? null : (C1694ki0) ((OC) AbstractC2779w40.d.n).g(obj32), iIntValue2, iIntValue3, str2);
                    case 4:
                        Object obj33 = list14.get(1);
                        return new C0881c7((F3.c(obj33, Boolean.FALSE) || obj33 == null) ? null : (BL) ((OC) AbstractC2779w40.e.n).g(obj33), iIntValue2, iIntValue3, str2);
                    case 5:
                        Object obj34 = list14.get(1);
                        return new C0881c7((F3.c(obj34, Boolean.FALSE) || obj34 == null) ? null : (AL) ((OC) AbstractC2779w40.f.n).g(obj34), iIntValue2, iIntValue3, str2);
                    case 6:
                        Object obj35 = list14.get(1);
                        return new C0881c7(new Va0(obj35 != null ? (String) obj35 : null), iIntValue2, iIntValue3, str2);
                    default:
                        throw new C2170pj();
                }
            case ConnectionResult.SERVICE_UPDATING /* 18 */:
                return new C2266qj0(obj != null ? (String) obj : null);
            case 19:
                return new C1694ki0(obj != null ? (String) obj : null);
            case 20:
                List list15 = (List) obj;
                Object obj36 = list15.get(0);
                String str3 = obj36 != null ? (String) obj36 : null;
                Object obj37 = list15.get(1);
                return new AL(str3, (F3.c(obj37, Boolean.FALSE) || obj37 == null) ? null : (Qe0) ((OC) AbstractC2779w40.i.n).g(obj37));
            case CommonStatusCodes.RECONNECTION_TIMED_OUT_DURING_UPDATE /* 21 */:
                List list16 = (List) obj;
                Object obj38 = list16.get(0);
                int i7 = (obj38 != null ? (Yc0) obj38 : null).a;
                Object obj39 = list16.get(1);
                int i8 = (obj39 != null ? (C3108zd0) obj39 : null).a;
                Object obj40 = list16.get(2);
                C1115ef0[] c1115ef0Arr2 = C1020df0.b;
                C2684v40 c2684v402 = AbstractC2779w40.q;
                Boolean bool4 = Boolean.FALSE;
                F3.c(obj40, bool4);
                long j5 = (obj40 != null ? (C1020df0) c2684v402.m.g(obj40) : null).a;
                Object obj41 = list16.get(3);
                C3110ze0 c3110ze0 = C3110ze0.c;
                C3110ze0 c3110ze02 = (F3.c(obj41, bool4) || obj41 == null) ? null : (C3110ze0) ((OC) AbstractC2779w40.l.n).g(obj41);
                Object obj42 = list16.get(4);
                C1579jX c1579jX = (F3.c(obj42, bool4) || obj42 == null) ? null : (C1579jX) ((OC) AbstractC2874x40.a.n).g(obj42);
                Object obj43 = list16.get(5);
                C1947nL c1947nL = C1947nL.c;
                C1947nL c1947nL2 = (F3.c(obj43, bool4) || obj43 == null) ? null : (C1947nL) ((OC) AbstractC2779w40.u.n).g(obj43);
                Object obj44 = list16.get(6);
                int i9 = ((F3.c(obj44, bool4) || obj44 == null) ? null : (C1473iL) ((OC) AbstractC2874x40.b.n).g(obj44)).a;
                Object obj45 = list16.get(7);
                int i10 = (obj45 != null ? (C0798bG) obj45 : null).a;
                Object obj46 = list16.get(8);
                boolean zC = F3.c(obj46, bool4);
                C1390hY c1390hY = AbstractC2874x40.c;
                if (zC || obj46 == null) {
                    i = i7;
                    i2 = i10;
                    i3 = i9;
                    i4 = i8;
                    j = j5;
                    se0 = null;
                } else {
                    se0 = (Se0) ((OC) c1390hY.n).g(obj46);
                    i = i7;
                    i2 = i10;
                    i3 = i9;
                    i4 = i8;
                    j = j5;
                }
                return new FV(i, i4, j, c3110ze02, c1579jX, c1947nL2, i3, i2, se0);
            case 22:
                List list17 = (List) obj;
                Object obj47 = list17.get(0);
                int i11 = C0190Hi.h;
                Boolean bool5 = Boolean.FALSE;
                F3.c(obj47, bool5);
                long j6 = (obj47 != null ? obj47.equals(bool5) ? new C0190Hi(C0190Hi.g) : new C0190Hi(AbstractC0752ap.b(((Integer) obj47).intValue())) : null).a;
                Object obj48 = list17.get(1);
                C1115ef0[] c1115ef0Arr3 = C1020df0.b;
                OC oc3 = AbstractC2779w40.q.m;
                F3.c(obj48, bool5);
                long j7 = (obj48 != null ? (C1020df0) oc3.g(obj48) : null).a;
                Object obj49 = list17.get(2);
                OA oa = OA.m;
                OA oa2 = (F3.c(obj49, bool5) || obj49 == null) ? null : (OA) ((OC) AbstractC2779w40.m.n).g(obj49);
                Object obj50 = list17.get(3);
                MA ma = obj50 != null ? (MA) obj50 : null;
                Object obj51 = list17.get(4);
                NA na = obj51 != null ? (NA) obj51 : null;
                Object obj52 = list17.get(6);
                String str4 = obj52 != null ? (String) obj52 : null;
                Object obj53 = list17.get(7);
                F3.c(obj53, bool5);
                long j8 = (obj53 != null ? (C1020df0) oc3.g(obj53) : null).a;
                Object obj54 = list17.get(8);
                C1494id c1494id = (F3.c(obj54, bool5) || obj54 == null) ? null : (C1494id) ((OC) AbstractC2779w40.n.n).g(obj54);
                Object obj55 = list17.get(9);
                C3015ye0 c3015ye0 = (F3.c(obj55, bool5) || obj55 == null) ? null : (C3015ye0) ((OC) AbstractC2779w40.k.n).g(obj55);
                Object obj56 = list17.get(10);
                C2138pM c2138pM = C2138pM.n;
                C2138pM c2138pM2 = (F3.c(obj56, bool5) || obj56 == null) ? null : (C2138pM) ((OC) AbstractC2779w40.s.n).g(obj56);
                Object obj57 = list17.get(11);
                F3.c(obj57, bool5);
                long j9 = (obj57 != null ? obj57.equals(bool5) ? new C0190Hi(C0190Hi.g) : new C0190Hi(AbstractC0752ap.b(((Integer) obj57).intValue())) : null).a;
                Object obj58 = list17.get(12);
                C2823wd0 c2823wd0 = (F3.c(obj58, bool5) || obj58 == null) ? null : (C2823wd0) ((OC) AbstractC2779w40.j.n).g(obj58);
                Object obj59 = list17.get(13);
                I70 i70 = I70.d;
                return new Y90(j6, j7, oa2, ma, na, (AbstractC1397hc0) null, str4, j8, c1494id, c3015ye0, c2138pM2, j9, c2823wd0, (F3.c(obj59, bool5) || obj59 == null) ? null : (I70) ((OC) AbstractC2779w40.f766o.n).g(obj59), 49184);
            case ConnectionResult.API_DISABLED /* 23 */:
                List list18 = (List) obj;
                Object obj60 = list18.get(0);
                boolean zBooleanValue = (obj60 != null ? (Boolean) obj60 : null).booleanValue();
                Object obj61 = list18.get(1);
                (obj61 != null ? (C0047Bv) obj61 : null).getClass();
                return new C1579jX(zBooleanValue);
            case ConnectionResult.API_DISABLED_FOR_CONNECTION /* 24 */:
                return new C1473iL(((Integer) obj).intValue());
            case 25:
                List list19 = (List) obj;
                Object obj62 = list19.get(0);
                int i12 = (obj62 != null ? (Re0) obj62 : null).a;
                Object obj63 = list19.get(1);
                return new Se0(i12, (obj63 != null ? (Boolean) obj63 : null).booleanValue());
            case 26:
                return new Z40(((Integer) obj).intValue());
            case 27:
                return Boolean.valueOf((((IX) obj).i == 2 ? 1 : 0) ^ 1);
            case 28:
                C1765lT c1765lT = (C1765lT) obj;
                long j10 = c1765lT.a;
                return (9223372034707292159L & j10) != 9205357640488583168L ? new V6(Float.intBitsToFloat((int) (j10 >> 32)), Float.intBitsToFloat((int) (c1765lT.a & 4294967295L))) : K50.a;
            default:
                V6 v6 = (V6) obj;
                return new C1765lT((Float.floatToRawIntBits(v6.a) << 32) | (Float.floatToRawIntBits(v6.b) & 4294967295L));
        }
    }
}
