package com.google.android.gms.maps.model; 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 zzu implements Parcelable.Creator { @Override // android.os.Parcelable.Creator public final /* synthetic */ TileOverlayOptions[] newArray(int i) { return new TileOverlayOptions[i]; } @Override // android.os.Parcelable.Creator public final /* synthetic */ TileOverlayOptions createFromParcel(Parcel parcel) { int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel); IBinder iBinder = null; boolean z = false; float f = 0.0f; float f2 = 0.0f; boolean z2 = true; while (parcel.dataPosition() < validateObjectHeader) { int readHeader = SafeParcelReader.readHeader(parcel); int fieldId = SafeParcelReader.getFieldId(readHeader); if (fieldId == 2) { iBinder = SafeParcelReader.readIBinder(parcel, readHeader); } else if (fieldId == 3) { z = SafeParcelReader.readBoolean(parcel, readHeader); } else if (fieldId == 4) { f = SafeParcelReader.readFloat(parcel, readHeader); } else if (fieldId == 5) { z2 = SafeParcelReader.readBoolean(parcel, readHeader); } else if (fieldId == 6) { f2 = SafeParcelReader.readFloat(parcel, readHeader); } else { SafeParcelReader.skipUnknownField(parcel, readHeader); } } SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader); return new TileOverlayOptions(iBinder, z, f, z2, f2); } }