package com.google.firebase.auth.internal; import android.os.Parcel; import android.os.Parcelable; import android.text.TextUtils; import com.google.android.gms.common.internal.Preconditions; import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter; import com.google.firebase.auth.AuthResult; import com.google.firebase.auth.zze; import java.util.List; /* loaded from: classes2.dex */ public final class zzr implements AuthResult { public static final Parcelable.Creator CREATOR = new zzs(); private zzx zza; private zzp zzb; private zze zzc; public zzr(zzx zzxVar) { zzx zzxVar2 = (zzx) Preconditions.checkNotNull(zzxVar); this.zza = zzxVar2; List zzo = zzxVar2.zzo(); this.zzb = null; for (int i = 0; i < zzo.size(); i++) { if (!TextUtils.isEmpty(((zzt) zzo.get(i)).zza())) { this.zzb = new zzp(((zzt) zzo.get(i)).getProviderId(), ((zzt) zzo.get(i)).zza(), zzxVar.zzs()); } } if (this.zzb == null) { this.zzb = new zzp(zzxVar.zzs()); } this.zzc = zzxVar.zzj(); } @Override // android.os.Parcelable public final int describeContents() { return 0; } @Override // android.os.Parcelable public final void writeToParcel(Parcel parcel, int i) { int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel); SafeParcelWriter.writeParcelable(parcel, 1, this.zza, i, false); SafeParcelWriter.writeParcelable(parcel, 2, this.zzb, i, false); SafeParcelWriter.writeParcelable(parcel, 3, this.zzc, i, false); SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader); } /* JADX INFO: Access modifiers changed from: package-private */ public zzr(zzx zzxVar, zzp zzpVar, zze zzeVar) { this.zza = zzxVar; this.zzb = zzpVar; this.zzc = zzeVar; } }