package com.google.android.gms.location; import android.os.Parcel; import android.os.Parcelable; import com.google.android.gms.common.internal.safeparcel.SafeParcelReader; /* loaded from: classes2.dex */ public final class zzbn implements Parcelable.Creator { @Override // android.os.Parcelable.Creator public final /* synthetic */ Object createFromParcel(Parcel parcel) { int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel); int i = 1000; int i2 = 1; int i3 = 1; long j = 0; zzbv[] zzbvVarArr = null; boolean z = false; while (parcel.dataPosition() < validateObjectHeader) { int readHeader = SafeParcelReader.readHeader(parcel); switch (SafeParcelReader.getFieldId(readHeader)) { case 1: i2 = SafeParcelReader.readInt(parcel, readHeader); break; case 2: i3 = SafeParcelReader.readInt(parcel, readHeader); break; case 3: j = SafeParcelReader.readLong(parcel, readHeader); break; case 4: i = SafeParcelReader.readInt(parcel, readHeader); break; case 5: zzbvVarArr = (zzbv[]) SafeParcelReader.createTypedArray(parcel, readHeader, zzbv.CREATOR); break; case 6: z = SafeParcelReader.readBoolean(parcel, readHeader); break; default: SafeParcelReader.skipUnknownField(parcel, readHeader); break; } } SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader); return new LocationAvailability(i, i2, i3, j, zzbvVarArr, z); } @Override // android.os.Parcelable.Creator public final /* synthetic */ Object[] newArray(int i) { return new LocationAvailability[i]; } }