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