package o;

import android.content.Intent;
import android.content.IntentSender;
import android.net.Uri;
import android.os.Bundle;
import android.os.Parcel;
import android.os.Parcelable;
import androidx.versionedparcelable.ParcelImpl;
import com.google.android.gms.auth.api.signin.GoogleSignInAccount;
import com.google.android.gms.common.ConnectionResult;
import com.google.android.gms.common.api.CommonStatusCodes;
import com.google.android.gms.common.api.Scope;
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
import com.google.android.gms.common.internal.zat;
import com.google.android.gms.common.internal.zav;
import com.google.firebase.messaging.RemoteMessage;
import java.util.ArrayList;
import java.util.LinkedHashMap;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.t1, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C2487t1 implements Parcelable.Creator {
    public final /* synthetic */ int a;

    public /* synthetic */ C2487t1(int i) {
        this.a = i;
    }

    @Override // android.os.Parcelable.Creator
    public final Object createFromParcel(Parcel parcel) {
        switch (this.a) {
            case 0:
                return new C2582u1(parcel.readInt() == 0 ? null : (Intent) Intent.CREATOR.createFromParcel(parcel), parcel.readInt());
            case 1:
                C2311r8 c2311r8 = new C2311r8(parcel);
                c2311r8.l = parcel.readByte() != 0;
                return c2311r8;
            case 2:
                return new androidx.fragment.app.b(parcel);
            case 3:
                return new C0054Cc(parcel);
            case 4:
                return new C0576Wf((TP) parcel.readParcelable(TP.class.getClassLoader()), (TP) parcel.readParcelable(TP.class.getClassLoader()), (C0119Ep) parcel.readParcelable(C0119Ep.class.getClassLoader()), (TP) parcel.readParcelable(TP.class.getClassLoader()), parcel.readInt());
            case 5:
                return new C0119Ep(parcel.readLong());
            case 6:
                C0985dC c0985dC = new C0985dC();
                c0985dC.l = parcel.readString();
                c0985dC.m = parcel.readInt();
                return c0985dC;
            case 7:
                C1368hC c1368hC = new C1368hC();
                c1368hC.p = null;
                c1368hC.q = new ArrayList();
                c1368hC.r = new ArrayList();
                c1368hC.l = parcel.createStringArrayList();
                c1368hC.m = parcel.createStringArrayList();
                c1368hC.n = (androidx.fragment.app.b[]) parcel.createTypedArray(androidx.fragment.app.b.CREATOR);
                c1368hC.f557o = parcel.readInt();
                c1368hC.p = parcel.readString();
                c1368hC.q = parcel.createStringArrayList();
                c1368hC.r = parcel.createTypedArrayList(C0054Cc.CREATOR);
                c1368hC.s = parcel.createTypedArrayList(C0985dC.CREATOR);
                return c1368hC;
            case 8:
                return new androidx.fragment.app.u(parcel);
            case ConnectionResult.SERVICE_INVALID /* 9 */:
                return new C1659kI((IntentSender) parcel.readParcelable(IntentSender.class.getClassLoader()), (Intent) parcel.readParcelable(Intent.class.getClassLoader()), parcel.readInt(), parcel.readInt());
            case 10:
                C2801wL c2801wL = new C2801wL();
                c2801wL.l = parcel.readInt();
                c2801wL.m = parcel.readInt();
                c2801wL.n = parcel.readInt() == 1;
                return c2801wL;
            case ConnectionResult.LICENSE_CHECK_FAILED /* 11 */:
                XN xn = new XN(parcel);
                xn.l = ((Integer) parcel.readValue(XN.class.getClassLoader())).intValue();
                return xn;
            case 12:
                String string = parcel.readString();
                int i = parcel.readInt();
                LinkedHashMap linkedHashMap = new LinkedHashMap(i);
                for (int i2 = 0; i2 < i; i2++) {
                    linkedHashMap.put(parcel.readString(), parcel.readString());
                }
                return new C2899xO(string, linkedHashMap);
            case 13:
                return TP.a(parcel.readInt(), parcel.readInt());
            case 14:
                PR pr = new PR(parcel);
                pr.l = parcel.readInt();
                return pr;
            case 15:
                return new ParcelImpl(parcel);
            case 16:
                return new IV(parcel.readFloat());
            case 17:
                return new JV(parcel.readInt());
            case ConnectionResult.SERVICE_UPDATING /* 18 */:
                return new KV(parcel.readLong());
            case 19:
                int iValidateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
                Bundle bundleCreateBundle = null;
                while (parcel.dataPosition() < iValidateObjectHeader) {
                    int header = SafeParcelReader.readHeader(parcel);
                    if (SafeParcelReader.getFieldId(header) != 2) {
                        SafeParcelReader.skipUnknownField(parcel, header);
                    } else {
                        bundleCreateBundle = SafeParcelReader.createBundle(parcel, header);
                    }
                }
                SafeParcelReader.ensureAtEnd(parcel, iValidateObjectHeader);
                return new RemoteMessage(bundleCreateBundle);
            case 20:
                C1773la0 c1773la0 = new C1773la0();
                c1773la0.l = parcel.readInt();
                c1773la0.m = parcel.readInt();
                c1773la0.f624o = parcel.readInt() == 1;
                int i3 = parcel.readInt();
                if (i3 > 0) {
                    int[] iArr = new int[i3];
                    c1773la0.n = iArr;
                    parcel.readIntArray(iArr);
                }
                return c1773la0;
            case CommonStatusCodes.RECONNECTION_TIMED_OUT_DURING_UPDATE /* 21 */:
                C1868ma0 c1868ma0 = new C1868ma0();
                c1868ma0.l = parcel.readInt();
                c1868ma0.m = parcel.readInt();
                int i4 = parcel.readInt();
                c1868ma0.n = i4;
                if (i4 > 0) {
                    int[] iArr2 = new int[i4];
                    c1868ma0.f637o = iArr2;
                    parcel.readIntArray(iArr2);
                }
                int i5 = parcel.readInt();
                c1868ma0.p = i5;
                if (i5 > 0) {
                    int[] iArr3 = new int[i5];
                    c1868ma0.q = iArr3;
                    parcel.readIntArray(iArr3);
                }
                c1868ma0.s = parcel.readInt() == 1;
                c1868ma0.t = parcel.readInt() == 1;
                c1868ma0.u = parcel.readInt() == 1;
                c1868ma0.r = parcel.readArrayList(C1773la0.class.getClassLoader());
                return c1868ma0;
            case 22:
                int iValidateObjectHeader2 = SafeParcelReader.validateObjectHeader(parcel);
                Intent intent = null;
                int i6 = 0;
                int i7 = 0;
                while (parcel.dataPosition() < iValidateObjectHeader2) {
                    int header2 = SafeParcelReader.readHeader(parcel);
                    int fieldId = SafeParcelReader.getFieldId(header2);
                    if (fieldId == 1) {
                        i6 = SafeParcelReader.readInt(parcel, header2);
                    } else if (fieldId == 2) {
                        i7 = SafeParcelReader.readInt(parcel, header2);
                    } else if (fieldId != 3) {
                        SafeParcelReader.skipUnknownField(parcel, header2);
                    } else {
                        intent = (Intent) SafeParcelReader.createParcelable(parcel, header2, Intent.CREATOR);
                    }
                }
                SafeParcelReader.ensureAtEnd(parcel, iValidateObjectHeader2);
                return new C1131en0(i6, i7, intent);
            case ConnectionResult.API_DISABLED /* 23 */:
                int iValidateObjectHeader3 = SafeParcelReader.validateObjectHeader(parcel);
                String strCreateString = null;
                String strCreateString2 = null;
                String strCreateString3 = null;
                String strCreateString4 = null;
                Uri uri = null;
                String strCreateString5 = null;
                String strCreateString6 = null;
                ArrayList arrayListCreateTypedList = null;
                String strCreateString7 = null;
                String strCreateString8 = null;
                long j = 0;
                int i8 = 0;
                while (parcel.dataPosition() < iValidateObjectHeader3) {
                    int header3 = SafeParcelReader.readHeader(parcel);
                    switch (SafeParcelReader.getFieldId(header3)) {
                        case 1:
                            i8 = SafeParcelReader.readInt(parcel, header3);
                            break;
                        case 2:
                            strCreateString = SafeParcelReader.createString(parcel, header3);
                            break;
                        case 3:
                            strCreateString2 = SafeParcelReader.createString(parcel, header3);
                            break;
                        case 4:
                            strCreateString3 = SafeParcelReader.createString(parcel, header3);
                            break;
                        case 5:
                            strCreateString4 = SafeParcelReader.createString(parcel, header3);
                            break;
                        case 6:
                            uri = (Uri) SafeParcelReader.createParcelable(parcel, header3, Uri.CREATOR);
                            break;
                        case 7:
                            strCreateString5 = SafeParcelReader.createString(parcel, header3);
                            break;
                        case 8:
                            j = SafeParcelReader.readLong(parcel, header3);
                            break;
                        case ConnectionResult.SERVICE_INVALID /* 9 */:
                            strCreateString6 = SafeParcelReader.createString(parcel, header3);
                            break;
                        case 10:
                            arrayListCreateTypedList = SafeParcelReader.createTypedList(parcel, header3, Scope.CREATOR);
                            break;
                        case ConnectionResult.LICENSE_CHECK_FAILED /* 11 */:
                            strCreateString7 = SafeParcelReader.createString(parcel, header3);
                            break;
                        case 12:
                            strCreateString8 = SafeParcelReader.createString(parcel, header3);
                            break;
                        default:
                            SafeParcelReader.skipUnknownField(parcel, header3);
                            break;
                    }
                }
                SafeParcelReader.ensureAtEnd(parcel, iValidateObjectHeader3);
                return new GoogleSignInAccount(i8, strCreateString, strCreateString2, strCreateString3, strCreateString4, uri, strCreateString5, j, strCreateString6, arrayListCreateTypedList, strCreateString7, strCreateString8);
            case ConnectionResult.API_DISABLED_FOR_CONNECTION /* 24 */:
                int iValidateObjectHeader4 = SafeParcelReader.validateObjectHeader(parcel);
                ArrayList<String> arrayListCreateStringList = null;
                String strCreateString9 = null;
                while (parcel.dataPosition() < iValidateObjectHeader4) {
                    int header4 = SafeParcelReader.readHeader(parcel);
                    int fieldId2 = SafeParcelReader.getFieldId(header4);
                    if (fieldId2 == 1) {
                        arrayListCreateStringList = SafeParcelReader.createStringList(parcel, header4);
                    } else if (fieldId2 != 2) {
                        SafeParcelReader.skipUnknownField(parcel, header4);
                    } else {
                        strCreateString9 = SafeParcelReader.createString(parcel, header4);
                    }
                }
                SafeParcelReader.ensureAtEnd(parcel, iValidateObjectHeader4);
                return new C2463sn0(strCreateString9, arrayListCreateStringList);
            case 25:
                int iValidateObjectHeader5 = SafeParcelReader.validateObjectHeader(parcel);
                zat zatVar = null;
                int i9 = 0;
                while (parcel.dataPosition() < iValidateObjectHeader5) {
                    int header5 = SafeParcelReader.readHeader(parcel);
                    int fieldId3 = SafeParcelReader.getFieldId(header5);
                    if (fieldId3 == 1) {
                        i9 = SafeParcelReader.readInt(parcel, header5);
                    } else if (fieldId3 != 2) {
                        SafeParcelReader.skipUnknownField(parcel, header5);
                    } else {
                        zatVar = (zat) SafeParcelReader.createParcelable(parcel, header5, zat.CREATOR);
                    }
                }
                SafeParcelReader.ensureAtEnd(parcel, iValidateObjectHeader5);
                return new C2653un0(i9, zatVar);
            case 26:
                int iValidateObjectHeader6 = SafeParcelReader.validateObjectHeader(parcel);
                ConnectionResult connectionResult = null;
                int i10 = 0;
                zav zavVar = null;
                while (parcel.dataPosition() < iValidateObjectHeader6) {
                    int header6 = SafeParcelReader.readHeader(parcel);
                    int fieldId4 = SafeParcelReader.getFieldId(header6);
                    if (fieldId4 == 1) {
                        i10 = SafeParcelReader.readInt(parcel, header6);
                    } else if (fieldId4 == 2) {
                        connectionResult = (ConnectionResult) SafeParcelReader.createParcelable(parcel, header6, ConnectionResult.CREATOR);
                    } else if (fieldId4 != 3) {
                        SafeParcelReader.skipUnknownField(parcel, header6);
                    } else {
                        zavVar = (zav) SafeParcelReader.createParcelable(parcel, header6, zav.CREATOR);
                    }
                }
                SafeParcelReader.ensureAtEnd(parcel, iValidateObjectHeader6);
                return new C2938xn0(i10, connectionResult, zavVar);
            case 27:
                int iValidateObjectHeader7 = SafeParcelReader.validateObjectHeader(parcel);
                Intent intent2 = null;
                while (parcel.dataPosition() < iValidateObjectHeader7) {
                    int header7 = SafeParcelReader.readHeader(parcel);
                    if (SafeParcelReader.getFieldId(header7) != 1) {
                        SafeParcelReader.skipUnknownField(parcel, header7);
                    } else {
                        intent2 = (Intent) SafeParcelReader.createParcelable(parcel, header7, Intent.CREATOR);
                    }
                }
                SafeParcelReader.ensureAtEnd(parcel, iValidateObjectHeader7);
                return new C2357ri(intent2);
            case 28:
                int iValidateObjectHeader8 = SafeParcelReader.validateObjectHeader(parcel);
                long j2 = 0;
                long j3 = 0;
                int i11 = 0;
                while (parcel.dataPosition() < iValidateObjectHeader8) {
                    int header8 = SafeParcelReader.readHeader(parcel);
                    int fieldId5 = SafeParcelReader.getFieldId(header8);
                    if (fieldId5 == 1) {
                        j2 = SafeParcelReader.readLong(parcel, header8);
                    } else if (fieldId5 == 2) {
                        i11 = SafeParcelReader.readInt(parcel, header8);
                    } else if (fieldId5 != 3) {
                        SafeParcelReader.skipUnknownField(parcel, header8);
                    } else {
                        j3 = SafeParcelReader.readLong(parcel, header8);
                    }
                }
                SafeParcelReader.ensureAtEnd(parcel, iValidateObjectHeader8);
                return new Sn0(i11, j2, j3);
            default:
                int iValidateObjectHeader9 = SafeParcelReader.validateObjectHeader(parcel);
                String strCreateString10 = null;
                String strCreateString11 = null;
                C1910mv0 c1910mv0 = null;
                String strCreateString12 = null;
                No0 no0 = null;
                No0 no02 = null;
                No0 no03 = null;
                long j4 = 0;
                long j5 = 0;
                long j6 = 0;
                boolean z = false;
                while (parcel.dataPosition() < iValidateObjectHeader9) {
                    int header9 = SafeParcelReader.readHeader(parcel);
                    switch (SafeParcelReader.getFieldId(header9)) {
                        case 2:
                            strCreateString10 = SafeParcelReader.createString(parcel, header9);
                            break;
                        case 3:
                            strCreateString11 = SafeParcelReader.createString(parcel, header9);
                            break;
                        case 4:
                            c1910mv0 = (C1910mv0) SafeParcelReader.createParcelable(parcel, header9, C1910mv0.CREATOR);
                            break;
                        case 5:
                            j4 = SafeParcelReader.readLong(parcel, header9);
                            break;
                        case 6:
                            z = SafeParcelReader.readBoolean(parcel, header9);
                            break;
                        case 7:
                            strCreateString12 = SafeParcelReader.createString(parcel, header9);
                            break;
                        case 8:
                            no0 = (No0) SafeParcelReader.createParcelable(parcel, header9, No0.CREATOR);
                            break;
                        case ConnectionResult.SERVICE_INVALID /* 9 */:
                            j5 = SafeParcelReader.readLong(parcel, header9);
                            break;
                        case 10:
                            no02 = (No0) SafeParcelReader.createParcelable(parcel, header9, No0.CREATOR);
                            break;
                        case ConnectionResult.LICENSE_CHECK_FAILED /* 11 */:
                            j6 = SafeParcelReader.readLong(parcel, header9);
                            break;
                        case 12:
                            no03 = (No0) SafeParcelReader.createParcelable(parcel, header9, No0.CREATOR);
                            break;
                        default:
                            SafeParcelReader.skipUnknownField(parcel, header9);
                            break;
                    }
                }
                SafeParcelReader.ensureAtEnd(parcel, iValidateObjectHeader9);
                return new Xn0(strCreateString10, strCreateString11, c1910mv0, j4, z, strCreateString12, no0, j5, no02, j6, no03);
        }
    }

    @Override // android.os.Parcelable.Creator
    public final Object[] newArray(int i) {
        switch (this.a) {
            case 0:
                return new C2582u1[i];
            case 1:
                return new C2311r8[i];
            case 2:
                return new androidx.fragment.app.b[i];
            case 3:
                return new C0054Cc[i];
            case 4:
                return new C0576Wf[i];
            case 5:
                return new C0119Ep[i];
            case 6:
                return new C0985dC[i];
            case 7:
                return new C1368hC[i];
            case 8:
                return new androidx.fragment.app.u[i];
            case ConnectionResult.SERVICE_INVALID /* 9 */:
                return new C1659kI[i];
            case 10:
                return new C2801wL[i];
            case ConnectionResult.LICENSE_CHECK_FAILED /* 11 */:
                return new XN[i];
            case 12:
                return new C2899xO[i];
            case 13:
                return new TP[i];
            case 14:
                return new PR[i];
            case 15:
                return new ParcelImpl[i];
            case 16:
                return new IV[i];
            case 17:
                return new JV[i];
            case ConnectionResult.SERVICE_UPDATING /* 18 */:
                return new KV[i];
            case 19:
                return new RemoteMessage[i];
            case 20:
                return new C1773la0[i];
            case CommonStatusCodes.RECONNECTION_TIMED_OUT_DURING_UPDATE /* 21 */:
                return new C1868ma0[i];
            case 22:
                return new C1131en0[i];
            case ConnectionResult.API_DISABLED /* 23 */:
                return new GoogleSignInAccount[i];
            case ConnectionResult.API_DISABLED_FOR_CONNECTION /* 24 */:
                return new C2463sn0[i];
            case 25:
                return new C2653un0[i];
            case 26:
                return new C2938xn0[i];
            case 27:
                return new C2357ri[i];
            case 28:
                return new Sn0[i];
            default:
                return new Xn0[i];
        }
    }
}
