package com.google.android.gms.internal.location; import android.app.PendingIntent; import android.os.IBinder; import android.os.Parcel; import android.os.Parcelable; import com.google.android.gms.common.internal.safeparcel.SafeParcelReader; /* loaded from: classes2.dex */ public final class zzbi implements Parcelable.Creator { @Override // android.os.Parcelable.Creator public final /* synthetic */ Object createFromParcel(Parcel parcel) { int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel); int i = 0; zzbf zzbfVar = null; IBinder iBinder = null; IBinder iBinder2 = null; PendingIntent pendingIntent = null; IBinder iBinder3 = null; String str = null; while (parcel.dataPosition() < validateObjectHeader) { int readHeader = SafeParcelReader.readHeader(parcel); switch (SafeParcelReader.getFieldId(readHeader)) { case 1: i = SafeParcelReader.readInt(parcel, readHeader); break; case 2: zzbfVar = (zzbf) SafeParcelReader.createParcelable(parcel, readHeader, zzbf.CREATOR); break; case 3: iBinder = SafeParcelReader.readIBinder(parcel, readHeader); break; case 4: pendingIntent = (PendingIntent) SafeParcelReader.createParcelable(parcel, readHeader, PendingIntent.CREATOR); break; case 5: iBinder2 = SafeParcelReader.readIBinder(parcel, readHeader); break; case 6: iBinder3 = SafeParcelReader.readIBinder(parcel, readHeader); break; case 7: default: SafeParcelReader.skipUnknownField(parcel, readHeader); break; case 8: str = SafeParcelReader.createString(parcel, readHeader); break; } } SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader); return new zzbh(i, zzbfVar, iBinder, iBinder2, pendingIntent, iBinder3, str); } @Override // android.os.Parcelable.Creator public final /* synthetic */ Object[] newArray(int i) { return new zzbh[i]; } }