package o;

import android.content.Intent;
import android.os.Bundle;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.android.gms.common.ConnectionResult;
import com.google.android.gms.common.api.CommonStatusCodes;
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
import java.util.ArrayList;

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

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

    public static void a(No0 no0, Parcel parcel, int i) {
        String str = no0.l;
        int iBeginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
        SafeParcelWriter.writeString(parcel, 2, str, false);
        SafeParcelWriter.writeParcelable(parcel, 3, no0.m, i, false);
        SafeParcelWriter.writeString(parcel, 4, no0.n, false);
        SafeParcelWriter.writeLong(parcel, 5, no0.f259o);
        SafeParcelWriter.finishObjectHeader(parcel, iBeginObjectHeader);
    }

    public static void b(C1910mv0 c1910mv0, Parcel parcel) {
        int i = c1910mv0.l;
        int iBeginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
        SafeParcelWriter.writeInt(parcel, 1, i);
        SafeParcelWriter.writeString(parcel, 2, c1910mv0.m, false);
        SafeParcelWriter.writeLong(parcel, 3, c1910mv0.n);
        SafeParcelWriter.writeLongObject(parcel, 4, c1910mv0.f644o, false);
        SafeParcelWriter.writeFloatObject(parcel, 5, null, false);
        SafeParcelWriter.writeString(parcel, 6, c1910mv0.p, false);
        SafeParcelWriter.writeString(parcel, 7, c1910mv0.q, false);
        SafeParcelWriter.writeDoubleObject(parcel, 8, c1910mv0.r, false);
        SafeParcelWriter.finishObjectHeader(parcel, iBeginObjectHeader);
    }

    @Override // android.os.Parcelable.Creator
    public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
        switch (this.a) {
            case 0:
                int iValidateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
                Bundle bundleCreateBundle = null;
                while (parcel.dataPosition() < iValidateObjectHeader) {
                    int header = SafeParcelReader.readHeader(parcel);
                    if (SafeParcelReader.getFieldId(header) != 1) {
                        SafeParcelReader.skipUnknownField(parcel, header);
                    } else {
                        bundleCreateBundle = SafeParcelReader.createBundle(parcel, header);
                    }
                }
                SafeParcelReader.ensureAtEnd(parcel, iValidateObjectHeader);
                return new C1896mo0(bundleCreateBundle);
            case 1:
                return new C3132zp0(parcel.readStrongBinder());
            case 2:
                int iValidateObjectHeader2 = SafeParcelReader.validateObjectHeader(parcel);
                Bundle bundleCreateBundle2 = null;
                while (parcel.dataPosition() < iValidateObjectHeader2) {
                    int header2 = SafeParcelReader.readHeader(parcel);
                    if (SafeParcelReader.getFieldId(header2) != 2) {
                        SafeParcelReader.skipUnknownField(parcel, header2);
                    } else {
                        bundleCreateBundle2 = SafeParcelReader.createBundle(parcel, header2);
                    }
                }
                SafeParcelReader.ensureAtEnd(parcel, iValidateObjectHeader2);
                return new Lo0(bundleCreateBundle2);
            case 3:
                int iValidateObjectHeader3 = SafeParcelReader.validateObjectHeader(parcel);
                long j = 0;
                String strCreateString = null;
                Lo0 lo0 = null;
                String strCreateString2 = null;
                while (parcel.dataPosition() < iValidateObjectHeader3) {
                    int header3 = SafeParcelReader.readHeader(parcel);
                    int fieldId = SafeParcelReader.getFieldId(header3);
                    if (fieldId == 2) {
                        strCreateString = SafeParcelReader.createString(parcel, header3);
                    } else if (fieldId == 3) {
                        lo0 = (Lo0) SafeParcelReader.createParcelable(parcel, header3, Lo0.CREATOR);
                    } else if (fieldId == 4) {
                        strCreateString2 = SafeParcelReader.createString(parcel, header3);
                    } else if (fieldId != 5) {
                        SafeParcelReader.skipUnknownField(parcel, header3);
                    } else {
                        j = SafeParcelReader.readLong(parcel, header3);
                    }
                }
                SafeParcelReader.ensureAtEnd(parcel, iValidateObjectHeader3);
                return new No0(strCreateString, lo0, strCreateString2, j);
            case 4:
                int iValidateObjectHeader4 = SafeParcelReader.validateObjectHeader(parcel);
                Bundle bundleCreateBundle3 = null;
                String strCreateString3 = null;
                boolean z = false;
                long j2 = 0;
                long j3 = 0;
                while (parcel.dataPosition() < iValidateObjectHeader4) {
                    int header4 = SafeParcelReader.readHeader(parcel);
                    int fieldId2 = SafeParcelReader.getFieldId(header4);
                    if (fieldId2 == 1) {
                        j2 = SafeParcelReader.readLong(parcel, header4);
                    } else if (fieldId2 == 2) {
                        j3 = SafeParcelReader.readLong(parcel, header4);
                    } else if (fieldId2 == 3) {
                        z = SafeParcelReader.readBoolean(parcel, header4);
                    } else if (fieldId2 == 7) {
                        bundleCreateBundle3 = SafeParcelReader.createBundle(parcel, header4);
                    } else if (fieldId2 != 8) {
                        SafeParcelReader.skipUnknownField(parcel, header4);
                    } else {
                        strCreateString3 = SafeParcelReader.createString(parcel, header4);
                    }
                }
                SafeParcelReader.ensureAtEnd(parcel, iValidateObjectHeader4);
                return new Dp0(j2, j3, z, bundleCreateBundle3, strCreateString3);
            case 5:
                int iValidateObjectHeader5 = SafeParcelReader.validateObjectHeader(parcel);
                String strCreateString4 = null;
                int i = 0;
                Intent intent = null;
                while (parcel.dataPosition() < iValidateObjectHeader5) {
                    int header5 = SafeParcelReader.readHeader(parcel);
                    int fieldId3 = SafeParcelReader.getFieldId(header5);
                    if (fieldId3 == 1) {
                        i = SafeParcelReader.readInt(parcel, header5);
                    } else if (fieldId3 == 2) {
                        strCreateString4 = SafeParcelReader.createString(parcel, header5);
                    } else if (fieldId3 != 3) {
                        SafeParcelReader.skipUnknownField(parcel, header5);
                    } else {
                        intent = (Intent) SafeParcelReader.createParcelable(parcel, header5, Intent.CREATOR);
                    }
                }
                SafeParcelReader.ensureAtEnd(parcel, iValidateObjectHeader5);
                return new Ep0(i, strCreateString4, intent);
            case 6:
                int iValidateObjectHeader6 = SafeParcelReader.validateObjectHeader(parcel);
                int i2 = 0;
                long j4 = 0;
                String strCreateString5 = null;
                while (parcel.dataPosition() < iValidateObjectHeader6) {
                    int header6 = SafeParcelReader.readHeader(parcel);
                    int fieldId4 = SafeParcelReader.getFieldId(header6);
                    if (fieldId4 == 1) {
                        strCreateString5 = SafeParcelReader.createString(parcel, header6);
                    } else if (fieldId4 == 2) {
                        j4 = SafeParcelReader.readLong(parcel, header6);
                    } else if (fieldId4 != 3) {
                        SafeParcelReader.skipUnknownField(parcel, header6);
                    } else {
                        i2 = SafeParcelReader.readInt(parcel, header6);
                    }
                }
                SafeParcelReader.ensureAtEnd(parcel, iValidateObjectHeader6);
                return new C2762vu0(strCreateString5, i2, j4);
            case 7:
                int iValidateObjectHeader7 = SafeParcelReader.validateObjectHeader(parcel);
                byte[] bArrCreateByteArray = null;
                String strCreateString6 = null;
                Bundle bundleCreateBundle4 = null;
                String strCreateString7 = null;
                long j5 = 0;
                long j6 = 0;
                int i3 = 0;
                while (parcel.dataPosition() < iValidateObjectHeader7) {
                    int header7 = SafeParcelReader.readHeader(parcel);
                    switch (SafeParcelReader.getFieldId(header7)) {
                        case 1:
                            j5 = SafeParcelReader.readLong(parcel, header7);
                            break;
                        case 2:
                            bArrCreateByteArray = SafeParcelReader.createByteArray(parcel, header7);
                            break;
                        case 3:
                            strCreateString6 = SafeParcelReader.createString(parcel, header7);
                            break;
                        case 4:
                            bundleCreateBundle4 = SafeParcelReader.createBundle(parcel, header7);
                            break;
                        case 5:
                            i3 = SafeParcelReader.readInt(parcel, header7);
                            break;
                        case 6:
                            j6 = SafeParcelReader.readLong(parcel, header7);
                            break;
                        case 7:
                            strCreateString7 = SafeParcelReader.createString(parcel, header7);
                            break;
                        default:
                            SafeParcelReader.skipUnknownField(parcel, header7);
                            break;
                    }
                }
                SafeParcelReader.ensureAtEnd(parcel, iValidateObjectHeader7);
                return new Au0(j5, bArrCreateByteArray, strCreateString6, bundleCreateBundle4, i3, j6, strCreateString7);
            case 8:
                int iValidateObjectHeader8 = SafeParcelReader.validateObjectHeader(parcel);
                ArrayList<Integer> arrayListCreateIntegerList = null;
                while (parcel.dataPosition() < iValidateObjectHeader8) {
                    int header8 = SafeParcelReader.readHeader(parcel);
                    if (SafeParcelReader.getFieldId(header8) != 1) {
                        SafeParcelReader.skipUnknownField(parcel, header8);
                    } else {
                        arrayListCreateIntegerList = SafeParcelReader.createIntegerList(parcel, header8);
                    }
                }
                SafeParcelReader.ensureAtEnd(parcel, iValidateObjectHeader8);
                return new Du0(arrayListCreateIntegerList);
            case ConnectionResult.SERVICE_INVALID /* 9 */:
                int iValidateObjectHeader9 = SafeParcelReader.validateObjectHeader(parcel);
                ArrayList arrayListCreateTypedList = null;
                while (parcel.dataPosition() < iValidateObjectHeader9) {
                    int header9 = SafeParcelReader.readHeader(parcel);
                    if (SafeParcelReader.getFieldId(header9) != 1) {
                        SafeParcelReader.skipUnknownField(parcel, header9);
                    } else {
                        arrayListCreateTypedList = SafeParcelReader.createTypedList(parcel, header9, Au0.CREATOR);
                    }
                }
                SafeParcelReader.ensureAtEnd(parcel, iValidateObjectHeader9);
                return new Gu0(arrayListCreateTypedList);
            case 10:
                int iValidateObjectHeader10 = SafeParcelReader.validateObjectHeader(parcel);
                String strCreateString8 = null;
                Long longObject = null;
                Float floatObject = null;
                String strCreateString9 = null;
                String strCreateString10 = null;
                Double doubleObject = null;
                long j7 = 0;
                int i4 = 0;
                while (parcel.dataPosition() < iValidateObjectHeader10) {
                    int header10 = SafeParcelReader.readHeader(parcel);
                    switch (SafeParcelReader.getFieldId(header10)) {
                        case 1:
                            i4 = SafeParcelReader.readInt(parcel, header10);
                            break;
                        case 2:
                            strCreateString8 = SafeParcelReader.createString(parcel, header10);
                            break;
                        case 3:
                            j7 = SafeParcelReader.readLong(parcel, header10);
                            break;
                        case 4:
                            longObject = SafeParcelReader.readLongObject(parcel, header10);
                            break;
                        case 5:
                            floatObject = SafeParcelReader.readFloatObject(parcel, header10);
                            break;
                        case 6:
                            strCreateString9 = SafeParcelReader.createString(parcel, header10);
                            break;
                        case 7:
                            strCreateString10 = SafeParcelReader.createString(parcel, header10);
                            break;
                        case 8:
                            doubleObject = SafeParcelReader.readDoubleObject(parcel, header10);
                            break;
                        default:
                            SafeParcelReader.skipUnknownField(parcel, header10);
                            break;
                    }
                }
                SafeParcelReader.ensureAtEnd(parcel, iValidateObjectHeader10);
                return new C1910mv0(i4, strCreateString8, j7, longObject, floatObject, strCreateString9, strCreateString10, doubleObject);
            default:
                int iValidateObjectHeader11 = SafeParcelReader.validateObjectHeader(parcel);
                boolean z2 = false;
                int i5 = 0;
                boolean z3 = false;
                boolean z4 = false;
                int i6 = 0;
                int i7 = 0;
                long j8 = 0;
                long j9 = 0;
                long j10 = 0;
                long j11 = 0;
                long j12 = 0;
                long j13 = 0;
                long j14 = 0;
                String strCreateString11 = "";
                String strCreateString12 = strCreateString11;
                String strCreateString13 = strCreateString12;
                String strCreateString14 = strCreateString13;
                String strCreateString15 = null;
                String strCreateString16 = null;
                String strCreateString17 = null;
                String strCreateString18 = null;
                String strCreateString19 = null;
                String strCreateString20 = null;
                Boolean booleanObject = null;
                ArrayList<String> arrayListCreateStringList = null;
                String strCreateString21 = null;
                String strCreateString22 = null;
                int i8 = 100;
                boolean z5 = true;
                boolean z6 = true;
                long j15 = -2147483648L;
                while (parcel.dataPosition() < iValidateObjectHeader11) {
                    int header11 = SafeParcelReader.readHeader(parcel);
                    switch (SafeParcelReader.getFieldId(header11)) {
                        case 2:
                            strCreateString15 = SafeParcelReader.createString(parcel, header11);
                            break;
                        case 3:
                            strCreateString16 = SafeParcelReader.createString(parcel, header11);
                            break;
                        case 4:
                            strCreateString17 = SafeParcelReader.createString(parcel, header11);
                            break;
                        case 5:
                            strCreateString18 = SafeParcelReader.createString(parcel, header11);
                            break;
                        case 6:
                            j8 = SafeParcelReader.readLong(parcel, header11);
                            break;
                        case 7:
                            j9 = SafeParcelReader.readLong(parcel, header11);
                            break;
                        case 8:
                            strCreateString19 = SafeParcelReader.createString(parcel, header11);
                            break;
                        case ConnectionResult.SERVICE_INVALID /* 9 */:
                            z5 = SafeParcelReader.readBoolean(parcel, header11);
                            break;
                        case 10:
                            z2 = SafeParcelReader.readBoolean(parcel, header11);
                            break;
                        case ConnectionResult.LICENSE_CHECK_FAILED /* 11 */:
                            j15 = SafeParcelReader.readLong(parcel, header11);
                            break;
                        case 12:
                            strCreateString20 = SafeParcelReader.createString(parcel, header11);
                            break;
                        case 13:
                        case 17:
                        case 19:
                        case 20:
                        case ConnectionResult.API_DISABLED_FOR_CONNECTION /* 24 */:
                        case 33:
                        default:
                            SafeParcelReader.skipUnknownField(parcel, header11);
                            break;
                        case 14:
                            j10 = SafeParcelReader.readLong(parcel, header11);
                            break;
                        case 15:
                            i5 = SafeParcelReader.readInt(parcel, header11);
                            break;
                        case 16:
                            z6 = SafeParcelReader.readBoolean(parcel, header11);
                            break;
                        case ConnectionResult.SERVICE_UPDATING /* 18 */:
                            z3 = SafeParcelReader.readBoolean(parcel, header11);
                            break;
                        case CommonStatusCodes.RECONNECTION_TIMED_OUT_DURING_UPDATE /* 21 */:
                            booleanObject = SafeParcelReader.readBooleanObject(parcel, header11);
                            break;
                        case 22:
                            j11 = SafeParcelReader.readLong(parcel, header11);
                            break;
                        case ConnectionResult.API_DISABLED /* 23 */:
                            arrayListCreateStringList = SafeParcelReader.createStringList(parcel, header11);
                            break;
                        case 25:
                            strCreateString11 = SafeParcelReader.createString(parcel, header11);
                            break;
                        case 26:
                            strCreateString12 = SafeParcelReader.createString(parcel, header11);
                            break;
                        case 27:
                            strCreateString21 = SafeParcelReader.createString(parcel, header11);
                            break;
                        case 28:
                            z4 = SafeParcelReader.readBoolean(parcel, header11);
                            break;
                        case 29:
                            j12 = SafeParcelReader.readLong(parcel, header11);
                            break;
                        case 30:
                            i8 = SafeParcelReader.readInt(parcel, header11);
                            break;
                        case 31:
                            strCreateString13 = SafeParcelReader.createString(parcel, header11);
                            break;
                        case 32:
                            i6 = SafeParcelReader.readInt(parcel, header11);
                            break;
                        case 34:
                            j13 = SafeParcelReader.readLong(parcel, header11);
                            break;
                        case 35:
                            strCreateString22 = SafeParcelReader.createString(parcel, header11);
                            break;
                        case 36:
                            strCreateString14 = SafeParcelReader.createString(parcel, header11);
                            break;
                        case 37:
                            j14 = SafeParcelReader.readLong(parcel, header11);
                            break;
                        case 38:
                            i7 = SafeParcelReader.readInt(parcel, header11);
                            break;
                    }
                }
                SafeParcelReader.ensureAtEnd(parcel, iValidateObjectHeader11);
                return new C1531iw0(strCreateString15, strCreateString16, strCreateString17, strCreateString18, j8, j9, strCreateString19, z5, z2, j15, strCreateString20, j10, i5, z6, z3, booleanObject, j11, arrayListCreateStringList, strCreateString11, strCreateString12, strCreateString21, z4, j12, i8, strCreateString13, i6, j13, strCreateString22, strCreateString14, j14, i7);
        }
    }

    @Override // android.os.Parcelable.Creator
    public final /* synthetic */ Object[] newArray(int i) {
        switch (this.a) {
            case 0:
                return new C1896mo0[i];
            case 1:
                return new C3132zp0[i];
            case 2:
                return new Lo0[i];
            case 3:
                return new No0[i];
            case 4:
                return new Dp0[i];
            case 5:
                return new Ep0[i];
            case 6:
                return new C2762vu0[i];
            case 7:
                return new Au0[i];
            case 8:
                return new Du0[i];
            case ConnectionResult.SERVICE_INVALID /* 9 */:
                return new Gu0[i];
            case 10:
                return new C1910mv0[i];
            default:
                return new C1531iw0[i];
        }
    }
}
