package com.google.firebase.auth.internal; import android.os.Parcel; import android.os.Parcelable; import com.google.android.gms.common.internal.Preconditions; import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter; import com.google.firebase.auth.MultiFactorInfo; import com.google.firebase.auth.MultiFactorResolver; import com.google.firebase.auth.PhoneMultiFactorInfo; import com.google.firebase.auth.zze; import java.util.ArrayList; import java.util.Iterator; import java.util.List; /* loaded from: classes2.dex */ public final class zzae extends MultiFactorResolver { public static final Parcelable.Creator CREATOR = new zzaf(); private final List zza = new ArrayList(); private final zzag zzb; private final String zzc; private final zze zzd; private final zzx zze; public zzae(List list, zzag zzagVar, String str, zze zzeVar, zzx zzxVar) { Iterator it = list.iterator(); while (it.hasNext()) { MultiFactorInfo multiFactorInfo = (MultiFactorInfo) it.next(); if (multiFactorInfo instanceof PhoneMultiFactorInfo) { this.zza.add((PhoneMultiFactorInfo) multiFactorInfo); } } this.zzb = (zzag) Preconditions.checkNotNull(zzagVar); this.zzc = Preconditions.checkNotEmpty(str); this.zzd = zzeVar; this.zze = zzxVar; } @Override // android.os.Parcelable public final void writeToParcel(Parcel parcel, int i) { int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel); SafeParcelWriter.writeTypedList(parcel, 1, this.zza, false); SafeParcelWriter.writeParcelable(parcel, 2, this.zzb, i, false); SafeParcelWriter.writeString(parcel, 3, this.zzc, false); SafeParcelWriter.writeParcelable(parcel, 4, this.zzd, i, false); SafeParcelWriter.writeParcelable(parcel, 5, this.zze, i, false); SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader); } }