package com.google.android.gms.common.server.converter; import android.os.Parcel; import android.os.Parcelable; import com.google.android.gms.common.internal.safeparcel.SafeParcelReader; import java.util.ArrayList; /* loaded from: classes.dex */ public final class zad implements Parcelable.Creator { @Override // android.os.Parcelable.Creator public final /* synthetic */ StringToIntConverter createFromParcel(Parcel parcel) { int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel); int i = 0; ArrayList arrayList = null; while (parcel.dataPosition() < validateObjectHeader) { int readHeader = SafeParcelReader.readHeader(parcel); int fieldId = SafeParcelReader.getFieldId(readHeader); if (fieldId == 1) { i = SafeParcelReader.readInt(parcel, readHeader); } else if (fieldId == 2) { arrayList = SafeParcelReader.createTypedList(parcel, readHeader, zac.CREATOR); } else { SafeParcelReader.skipUnknownField(parcel, readHeader); } } SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader); return new StringToIntConverter(i, arrayList); } @Override // android.os.Parcelable.Creator public final /* synthetic */ StringToIntConverter[] newArray(int i) { return new StringToIntConverter[i]; } }