package o;

import android.content.res.Resources;
import com.google.android.gms.common.ConnectionResult;
import com.google.android.gms.common.api.CommonStatusCodes;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.xmlpull.v1.XmlPullParserException;

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

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

    @Override // o.SC
    public final Object f(Object obj, Object obj2) throws XmlPullParserException, Resources.NotFoundException, IOException {
        EnumC1264g7 enumC1264g7;
        Object objA;
        int i = this.l;
        Oh0 oh0 = Oh0.a;
        switch (i) {
            case 0:
                C1765lT c1765lT = (C1765lT) obj2;
                return c1765lT != null ? C1765lT.b(c1765lT.a, 9205357640488583168L) : false ? Boolean.FALSE : AbstractC0008Ai.P(Float.valueOf(Float.intBitsToFloat((int) (c1765lT.a >> 32))), Float.valueOf(Float.intBitsToFloat((int) (c1765lT.a & 4294967295L))));
            case 1:
                X30 x30 = (X30) obj;
                List list = ((C2138pM) obj2).l;
                ArrayList arrayList = new ArrayList(list.size());
                int size = list.size();
                for (int i2 = 0; i2 < size; i2++) {
                    arrayList.add(AbstractC2779w40.a((C2043oM) list.get(i2), AbstractC2779w40.t, x30));
                }
                return arrayList;
            case 2:
                return ((C2043oM) obj2).a.toLanguageTag();
            case 3:
                C1947nL c1947nL = (C1947nL) obj2;
                return AbstractC0008Ai.P(new C1662kL(c1947nL.a), new C1852mL(c1947nL.b), new C1757lL());
            case 4:
                X30 x302 = (X30) obj;
                C0881c7 c0881c7 = (C0881c7) obj2;
                Object obj3 = c0881c7.a;
                if (obj3 instanceof FV) {
                    enumC1264g7 = EnumC1264g7.l;
                } else if (obj3 instanceof Y90) {
                    enumC1264g7 = EnumC1264g7.m;
                } else if (obj3 instanceof C2266qj0) {
                    enumC1264g7 = EnumC1264g7.n;
                } else if (obj3 instanceof C1694ki0) {
                    enumC1264g7 = EnumC1264g7.f536o;
                } else if (obj3 instanceof BL) {
                    enumC1264g7 = EnumC1264g7.p;
                } else if (obj3 instanceof AL) {
                    enumC1264g7 = EnumC1264g7.q;
                } else {
                    if (!(obj3 instanceof Va0)) {
                        throw new UnsupportedOperationException();
                    }
                    enumC1264g7 = EnumC1264g7.r;
                }
                switch (enumC1264g7.ordinal()) {
                    case 0:
                        objA = AbstractC2779w40.a((FV) obj3, AbstractC2779w40.g, x302);
                        break;
                    case 1:
                        objA = AbstractC2779w40.a((Y90) obj3, AbstractC2779w40.h, x302);
                        break;
                    case 2:
                        objA = AbstractC2779w40.a((C2266qj0) obj3, AbstractC2779w40.c, x302);
                        break;
                    case 3:
                        objA = AbstractC2779w40.a((C1694ki0) obj3, AbstractC2779w40.d, x302);
                        break;
                    case 4:
                        objA = AbstractC2779w40.a((BL) obj3, AbstractC2779w40.e, x302);
                        break;
                    case 5:
                        objA = AbstractC2779w40.a((AL) obj3, AbstractC2779w40.f, x302);
                        break;
                    case 6:
                        objA = ((Va0) obj3).a;
                        break;
                    default:
                        throw new C2170pj();
                }
                return AbstractC0008Ai.P(enumC1264g7, objA, Integer.valueOf(c0881c7.b), Integer.valueOf(c0881c7.c), c0881c7.d);
            case 5:
                AL al = (AL) obj2;
                return AbstractC0008Ai.P(al.a, AbstractC2779w40.a(al.b, AbstractC2779w40.i, (X30) obj));
            case 6:
                return ((C2266qj0) obj2).a;
            case 7:
                return ((C1694ki0) obj2).a;
            case 8:
                X30 x303 = (X30) obj;
                FV fv = (FV) obj2;
                Yc0 yc0 = new Yc0(fv.a);
                C3108zd0 c3108zd0 = new C3108zd0(fv.b);
                Object objA2 = AbstractC2779w40.a(new C1020df0(fv.c), AbstractC2779w40.q, x303);
                C3110ze0 c3110ze0 = fv.d;
                C3110ze0 c3110ze02 = C3110ze0.c;
                Object objA3 = AbstractC2779w40.a(c3110ze0, AbstractC2779w40.l, x303);
                Object objA4 = AbstractC2779w40.a(fv.e, AbstractC2874x40.a, x303);
                C1947nL c1947nL2 = fv.f;
                C1947nL c1947nL3 = C1947nL.c;
                return AbstractC0008Ai.P(yc0, c3108zd0, objA2, objA3, objA4, AbstractC2779w40.a(c1947nL2, AbstractC2779w40.u, x303), AbstractC2779w40.a(new C1473iL(fv.g), AbstractC2874x40.b, x303), new C0798bG(fv.h), AbstractC2779w40.a(fv.i, AbstractC2874x40.c, x303));
            case ConnectionResult.SERVICE_INVALID /* 9 */:
                X30 x304 = (X30) obj;
                Y90 y90 = (Y90) obj2;
                C0190Hi c0190Hi = new C0190Hi(y90.a.b());
                C2684v40 c2684v40 = AbstractC2779w40.p;
                Object objA5 = AbstractC2779w40.a(c0190Hi, c2684v40, x304);
                C1020df0 c1020df0 = new C1020df0(y90.b);
                C2684v40 c2684v402 = AbstractC2779w40.q;
                Object objA6 = AbstractC2779w40.a(c1020df0, c2684v402, x304);
                OA oa = y90.c;
                OA oa2 = OA.m;
                Object objA7 = AbstractC2779w40.a(oa, AbstractC2779w40.m, x304);
                MA ma = y90.d;
                NA na = y90.e;
                String str = y90.g;
                Object objA8 = AbstractC2779w40.a(new C1020df0(y90.h), c2684v402, x304);
                Object objA9 = AbstractC2779w40.a(y90.i, AbstractC2779w40.n, x304);
                Object objA10 = AbstractC2779w40.a(y90.j, AbstractC2779w40.k, x304);
                C2138pM c2138pM = y90.k;
                C2138pM c2138pM2 = C2138pM.n;
                Object objA11 = AbstractC2779w40.a(c2138pM, AbstractC2779w40.s, x304);
                Object objA12 = AbstractC2779w40.a(new C0190Hi(y90.l), c2684v40, x304);
                Object objA13 = AbstractC2779w40.a(y90.m, AbstractC2779w40.j, x304);
                I70 i70 = y90.n;
                I70 i702 = I70.d;
                return AbstractC0008Ai.P(objA5, objA6, objA7, ma, na, -1, str, objA8, objA9, objA10, objA11, objA12, objA13, AbstractC2779w40.a(i70, AbstractC2779w40.f766o, x304));
            case 10:
                X30 x305 = (X30) obj;
                Qe0 qe0 = (Qe0) obj2;
                Y90 y902 = qe0.a;
                C1390hY c1390hY = AbstractC2779w40.h;
                return AbstractC0008Ai.P(AbstractC2779w40.a(y902, c1390hY, x305), AbstractC2779w40.a(qe0.b, c1390hY, x305), AbstractC2779w40.a(qe0.c, c1390hY, x305), AbstractC2779w40.a(qe0.d, c1390hY, x305));
            case ConnectionResult.LICENSE_CHECK_FAILED /* 11 */:
                Boolean boolValueOf = Boolean.valueOf(((C1579jX) obj2).a);
                C1390hY c1390hY2 = AbstractC2779w40.a;
                return AbstractC0008Ai.P(boolValueOf, new C0047Bv());
            case 12:
                return Integer.valueOf(((C1473iL) obj2).a);
            case 13:
                Se0 se0 = (Se0) obj2;
                Re0 re0 = new Re0(se0.a);
                C1390hY c1390hY3 = AbstractC2779w40.a;
                return AbstractC0008Ai.P(re0, Boolean.valueOf(se0.b));
            case 14:
                return Integer.valueOf(((Z40) obj2).a.g());
            case 15:
                ((Boolean) obj).getClass();
                int i3 = C60.l;
                return oh0;
            case 16:
                ((Integer) obj2).getClass();
                C60.h(AbstractC1904ms0.D(1), (C0321Mk) obj);
                return oh0;
            case 17:
                ((Integer) obj2).getClass();
                C60.d(AbstractC1904ms0.D(1), (C0321Mk) obj);
                return oh0;
            case ConnectionResult.SERVICE_UPDATING /* 18 */:
                ((Integer) obj2).getClass();
                AbstractC1692kh0.b(AbstractC1904ms0.D(1), (C0321Mk) obj);
                return oh0;
            case 19:
                return Integer.valueOf(((InterfaceC1760lO) obj).O(((Integer) obj2).intValue()));
            case 20:
                return Integer.valueOf(((InterfaceC1760lO) obj).U(((Integer) obj2).intValue()));
            case CommonStatusCodes.RECONNECTION_TIMED_OUT_DURING_UPDATE /* 21 */:
                return Integer.valueOf(((InterfaceC1760lO) obj).V(((Integer) obj2).intValue()));
            case 22:
                return Integer.valueOf(((InterfaceC1760lO) obj).d(((Integer) obj2).intValue()));
            case ConnectionResult.API_DISABLED /* 23 */:
                C1113ee0 c1113ee0 = (C1113ee0) obj2;
                return AbstractC0008Ai.S(Float.valueOf(c1113ee0.a.g()), Boolean.valueOf(((OU) c1113ee0.f.getValue()) == OU.l));
            case ConnectionResult.API_DISABLED_FOR_CONNECTION /* 24 */:
                InterfaceC2557tn interfaceC2557tn = (InterfaceC2557tn) obj2;
                if (!(interfaceC2557tn instanceof InterfaceC1593jf0)) {
                    return obj;
                }
                Integer num = obj instanceof Integer ? (Integer) obj : null;
                int iIntValue = num != null ? num.intValue() : 1;
                return iIntValue == 0 ? interfaceC2557tn : Integer.valueOf(iIntValue + 1);
            case 25:
                InterfaceC1593jf0 interfaceC1593jf0 = (InterfaceC1593jf0) obj;
                InterfaceC2557tn interfaceC2557tn2 = (InterfaceC2557tn) obj2;
                if (interfaceC1593jf0 != null) {
                    return interfaceC1593jf0;
                }
                if (interfaceC2557tn2 instanceof InterfaceC1593jf0) {
                    return (InterfaceC1593jf0) interfaceC2557tn2;
                }
                return null;
            case 26:
                return (C1973nf0) obj;
            default:
                ((Integer) obj2).getClass();
                Ii0.a(AbstractC1904ms0.D(1), (C0321Mk) obj);
                return oh0;
        }
    }

    public /* synthetic */ C2494t40(int i, int i2) {
        this.l = i2;
    }
}
