what-the-bank/sources/com/google/firebase/auth/internal/zzx.java

719 lines
23 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.firebase.auth.internal;
import android.graphics.Color;
import android.os.Parcel;
import android.os.Parcelable;
import android.os.Process;
import android.os.SystemClock;
import android.text.TextUtils;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android.widget.ExpandableListView;
import com.google.android.gms.common.internal.Preconditions;
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
import com.google.android.gms.internal.p002firebaseauthapi.zzzy;
import com.google.firebase.FirebaseApp;
import com.google.firebase.auth.FirebaseUser;
import com.google.firebase.auth.FirebaseUserMetadata;
import com.google.firebase.auth.MultiFactor;
import com.google.firebase.auth.MultiFactorInfo;
import com.google.firebase.auth.PhoneMultiFactorInfo;
import com.google.firebase.auth.UserInfo;
import com.google.firebase.auth.zze;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import o.C4593bdB;
import o.xzZ;
/* loaded from: classes2.dex */
public final class zzx extends FirebaseUser {
public static final Parcelable.Creator<zzx> CREATOR;
private static long a;
private static int c;
private zzzy zza;
private zzt zzb;
private final String zzc;
private String zzd;
private List zze;
private List zzf;
private String zzg;
private Boolean zzh;
private zzz zzi;
private boolean zzj;
private zze zzk;
private zzbb zzl;
private static final byte[] $$a = {45, 6, -13, -19};
private static final int $$b = 2;
private static int $10 = 0;
private static int $11 = 1;
private static int e = 1;
public zzx(FirebaseApp firebaseApp, List list) {
Preconditions.checkNotNull(firebaseApp);
this.zzc = firebaseApp.getName();
this.zzd = "com.google.firebase.auth.internal.DefaultFirebaseUser";
Object[] objArr = new Object[1];
b(new char[]{60553}, 39857 - TextUtils.indexOf("", ""), objArr);
this.zzg = ((String) objArr[0]).intern();
zzc(list);
}
/* JADX WARN: Removed duplicated region for block: B:10:0x0028 */
/* JADX WARN: Removed duplicated region for block: B:7:0x0020 */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0028 -> B:4:0x002a). Please report as a decompilation issue!!! */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private static void d(byte r6, short r7, byte r8, java.lang.Object[] r9) {
/*
int r7 = r7 * 2
int r0 = r7 + 1
int r6 = r6 + 4
byte[] r1 = com.google.firebase.auth.internal.zzx.$$a
int r8 = 78 - r8
byte[] r0 = new byte[r0]
r2 = 0
if (r1 != 0) goto L13
r8 = r6
r3 = r7
r4 = r2
goto L2a
L13:
r3 = r2
r5 = r8
r8 = r6
r6 = r5
L17:
byte r4 = (byte) r6
int r8 = r8 + 1
r0[r3] = r4
int r4 = r3 + 1
if (r3 != r7) goto L28
java.lang.String r6 = new java.lang.String
r6.<init>(r0, r2)
r9[r2] = r6
return
L28:
r3 = r1[r8]
L2a:
int r6 = r6 + r3
r3 = r4
goto L17
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.firebase.auth.internal.zzx.d(byte, short, byte, java.lang.Object[]):void");
}
@Override // com.google.firebase.auth.FirebaseUser
public final /* synthetic */ MultiFactor getMultiFactor() {
int i = 2 % 2;
zzac zzacVar = new zzac(this);
int i2 = c + 121;
e = i2 % 128;
int i3 = i2 % 2;
return zzacVar;
}
@Override // com.google.firebase.auth.UserInfo
public final String getProviderId() {
int i = 2 % 2;
int i2 = e + 77;
c = i2 % 128;
int i3 = i2 % 2;
String providerId = this.zzb.getProviderId();
int i4 = c + 3;
e = i4 % 128;
if (i4 % 2 == 0) {
int i5 = 25 / 0;
}
return providerId;
}
@Override // com.google.firebase.auth.FirebaseUser
public final String getUid() {
int i = 2 % 2;
int i2 = e + 29;
c = i2 % 128;
int i3 = i2 % 2;
String uid = this.zzb.getUid();
int i4 = e + 23;
c = i4 % 128;
if (i4 % 2 == 0) {
return uid;
}
Object obj = null;
obj.hashCode();
throw null;
}
public final FirebaseApp zza() {
int i = 2 % 2;
int i2 = c + 83;
e = i2 % 128;
if (i2 % 2 == 0) {
FirebaseApp.getInstance(this.zzc);
Object obj = null;
obj.hashCode();
throw null;
}
FirebaseApp firebaseApp = FirebaseApp.getInstance(this.zzc);
int i3 = e + 105;
c = i3 % 128;
int i4 = i3 % 2;
return firebaseApp;
}
@Override // com.google.firebase.auth.FirebaseUser
public final /* synthetic */ FirebaseUser zzb() {
int i = 2 % 2;
int i2 = e + 49;
c = i2 % 128;
int i3 = i2 % 2;
zzm();
int i4 = c + 79;
e = i4 % 128;
int i5 = i4 % 2;
return this;
}
@Override // com.google.firebase.auth.FirebaseUser
public final FirebaseUser zzc(List list) {
synchronized (this) {
Preconditions.checkNotNull(list);
this.zze = new ArrayList(list.size());
this.zzf = new ArrayList(list.size());
for (int i = 0; i < list.size(); i++) {
UserInfo userInfo = (UserInfo) list.get(i);
if (userInfo.getProviderId().equals("firebase")) {
this.zzb = (zzt) userInfo;
} else {
this.zzf.add(userInfo.getProviderId());
}
this.zze.add((zzt) userInfo);
}
if (this.zzb == null) {
this.zzb = (zzt) this.zze.get(0);
}
}
return this;
}
@Override // com.google.firebase.auth.FirebaseUser
public final String zze() {
int i = 2 % 2;
int i2 = e + 77;
c = i2 % 128;
if (i2 % 2 == 0) {
return this.zza.zze();
}
int i3 = 96 / 0;
return this.zza.zze();
}
@Override // com.google.firebase.auth.FirebaseUser
public final String zzf() {
int i = 2 % 2;
int i2 = e + 9;
c = i2 % 128;
if (i2 % 2 == 0) {
return this.zza.zzh();
}
int i3 = 24 / 0;
return this.zza.zzh();
}
@Override // com.google.firebase.auth.FirebaseUser
public final void zzh(zzzy zzzyVar) {
int i = 2 % 2;
int i2 = c + 97;
e = i2 % 128;
int i3 = i2 % 2;
this.zza = (zzzy) Preconditions.checkNotNull(zzzyVar);
int i4 = e + 85;
c = i4 % 128;
if (i4 % 2 != 0) {
throw null;
}
}
public final zzx zzm() {
int i = 2 % 2;
int i2 = c + 9;
e = i2 % 128;
int i3 = i2 % 2;
this.zzh = Boolean.FALSE;
int i4 = e + 67;
c = i4 % 128;
int i5 = i4 % 2;
return this;
}
public final List zzn() {
List arrayList;
int i = 2 % 2;
zzbb zzbbVar = this.zzl;
if (zzbbVar != null) {
int i2 = e + 99;
c = i2 % 128;
int i3 = i2 % 2;
arrayList = zzbbVar.zza();
} else {
arrayList = new ArrayList();
}
int i4 = e + 121;
c = i4 % 128;
if (i4 % 2 != 0) {
int i5 = 61 / 0;
}
return arrayList;
}
@Override // com.google.firebase.auth.FirebaseUser
public final String getTenantId() {
int i = 2 % 2;
int i2 = e + 117;
c = i2 % 128;
int i3 = i2 % 2;
zzzy zzzyVar = this.zza;
if (zzzyVar != null && zzzyVar.zze() != null) {
int i4 = c + 7;
e = i4 % 128;
int i5 = i4 % 2;
Map map = (Map) zzay.zza(zzzyVar.zze()).getClaims().get("firebase");
if (map != null) {
int i6 = e + 121;
c = i6 % 128;
int i7 = i6 % 2;
String str = (String) map.get("tenant");
if (i7 == 0) {
return str;
}
throw null;
}
}
return null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public zzx(zzzy zzzyVar, zzt zztVar, String str, String str2, List list, List list2, String str3, Boolean bool, zzz zzzVar, boolean z, zze zzeVar, zzbb zzbbVar) {
this.zza = zzzyVar;
this.zzb = zztVar;
this.zzc = str;
this.zzd = str2;
this.zze = list;
this.zzf = list2;
this.zzg = str3;
this.zzh = bool;
this.zzi = zzzVar;
this.zzj = z;
this.zzk = zzeVar;
this.zzl = zzbbVar;
}
/* JADX WARN: Code restructure failed: missing block: B:4:0x0014, code lost:
if (r1.booleanValue() != false) goto L6;
*/
@Override // com.google.firebase.auth.FirebaseUser
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final boolean isAnonymous() {
/*
r5 = this;
r0 = 2
int r1 = r0 % r0
java.lang.Boolean r1 = r5.zzh
if (r1 == 0) goto L16
int r2 = com.google.firebase.auth.internal.zzx.c
int r2 = r2 + 39
int r3 = r2 % 128
com.google.firebase.auth.internal.zzx.e = r3
int r2 = r2 % r0
boolean r1 = r1.booleanValue()
if (r1 == 0) goto L53
L16:
com.google.android.gms.internal.firebase-auth-api.zzzy r1 = r5.zza
if (r1 == 0) goto L27
java.lang.String r1 = r1.zze()
com.google.firebase.auth.GetTokenResult r1 = com.google.firebase.auth.internal.zzay.zza(r1)
java.lang.String r1 = r1.getSignInProvider()
goto L29
L27:
java.lang.String r1 = ""
L29:
java.util.List r2 = r5.zze
int r2 = r2.size()
r3 = 0
r4 = 1
if (r2 > r4) goto L40
if (r1 == 0) goto L3f
java.lang.String r2 = "custom"
boolean r1 = r1.equals(r2)
r1 = r1 ^ r4
if (r1 == r4) goto L3f
goto L40
L3f:
r3 = r4
L40:
java.lang.Boolean r1 = java.lang.Boolean.valueOf(r3)
r5.zzh = r1
int r1 = com.google.firebase.auth.internal.zzx.e
int r1 = r1 + 21
int r2 = r1 % 128
com.google.firebase.auth.internal.zzx.c = r2
int r1 = r1 % r0
if (r1 == 0) goto L53
r1 = 3
int r1 = r1 % r0
L53:
java.lang.Boolean r0 = r5.zzh
boolean r0 = r0.booleanValue()
return r0
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.firebase.auth.internal.zzx.isAnonymous():boolean");
}
@Override // com.google.firebase.auth.FirebaseUser
public final void zzi(List list) {
int i = 2 % 2;
Parcelable.Creator<zzbb> creator = zzbb.CREATOR;
zzbb zzbbVar = null;
if (list != null) {
int i2 = c + 29;
e = i2 % 128;
if (i2 % 2 == 0) {
list.isEmpty();
throw null;
}
if (!list.isEmpty()) {
ArrayList arrayList = new ArrayList();
Iterator it = list.iterator();
int i3 = e + 63;
c = i3 % 128;
int i4 = i3 % 2;
while (it.hasNext()) {
MultiFactorInfo multiFactorInfo = (MultiFactorInfo) it.next();
if (multiFactorInfo instanceof PhoneMultiFactorInfo) {
arrayList.add((PhoneMultiFactorInfo) multiFactorInfo);
}
}
zzbbVar = new zzbb(arrayList);
}
}
this.zzl = zzbbVar;
}
@Override // android.os.Parcelable
public final void writeToParcel(Parcel parcel, int i) {
int i2 = 2 % 2;
int i3 = c + 51;
e = i3 % 128;
int i4 = i3 % 2;
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
SafeParcelWriter.writeParcelable(parcel, 1, this.zza, i, false);
SafeParcelWriter.writeParcelable(parcel, 2, this.zzb, i, false);
SafeParcelWriter.writeString(parcel, 3, this.zzc, false);
SafeParcelWriter.writeString(parcel, 4, this.zzd, false);
SafeParcelWriter.writeTypedList(parcel, 5, this.zze, false);
SafeParcelWriter.writeStringList(parcel, 6, this.zzf, false);
SafeParcelWriter.writeString(parcel, 7, this.zzg, false);
SafeParcelWriter.writeBooleanObject(parcel, 8, Boolean.valueOf(isAnonymous()), false);
SafeParcelWriter.writeParcelable(parcel, 9, this.zzi, i, false);
SafeParcelWriter.writeBoolean(parcel, 10, this.zzj);
SafeParcelWriter.writeParcelable(parcel, 11, this.zzk, i, false);
SafeParcelWriter.writeParcelable(parcel, 12, this.zzl, i, false);
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
int i5 = e + 71;
c = i5 % 128;
if (i5 % 2 != 0) {
throw null;
}
}
private static void b(char[] cArr, int i, Object[] objArr) {
int i2 = 2 % 2;
C4593bdB c4593bdB = new C4593bdB();
c4593bdB.a = i;
int length = cArr.length;
long[] jArr = new long[length];
c4593bdB.e = 0;
while (c4593bdB.e < cArr.length) {
int i3 = $10 + 89;
$11 = i3 % 128;
if (i3 % 2 == 0) {
int i4 = c4593bdB.e;
try {
Object[] objArr2 = {Integer.valueOf(cArr[c4593bdB.e]), c4593bdB, c4593bdB};
Object obj = xzZ.y.get(-1229953068);
if (obj == null) {
Class cls = (Class) xzZ.c(KeyEvent.getDeadChar(0, 0) + 402, 6 - (SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)), (char) (ExpandableListView.getPackedPositionGroup(0L) + 21608));
byte b = (byte) ($$b - 3);
byte b2 = (byte) (b + 1);
Object[] objArr3 = new Object[1];
d(b, b2, (byte) (b2 + 1), objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE, Object.class, Object.class);
xzZ.y.put(-1229953068, obj);
}
jArr[i4] = ((Long) ((Method) obj).invoke(null, objArr2)).longValue() % (a % (-6958928035870403642L));
Object[] objArr4 = {c4593bdB, c4593bdB};
Object obj2 = xzZ.y.get(-1143917229);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(238 - (ViewConfiguration.getKeyRepeatDelay() >> 16), 6 - (SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1)), (char) View.resolveSize(0, 0));
byte b3 = (byte) ($$b - 3);
byte b4 = (byte) (b3 + 1);
Object[] objArr5 = new Object[1];
d(b3, b4, b4, objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Object.class, Object.class);
xzZ.y.put(-1143917229, obj2);
}
((Method) obj2).invoke(null, objArr4);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
} else {
int i5 = c4593bdB.e;
Object[] objArr6 = {Integer.valueOf(cArr[c4593bdB.e]), c4593bdB, c4593bdB};
Object obj3 = xzZ.y.get(-1229953068);
if (obj3 == null) {
Class cls3 = (Class) xzZ.c((ViewConfiguration.getKeyRepeatDelay() >> 16) + 402, ExpandableListView.getPackedPositionGroup(0L) + 5, (char) (21608 - (ViewConfiguration.getFadingEdgeLength() >> 16)));
byte b5 = (byte) ($$b - 3);
byte b6 = (byte) (b5 + 1);
Object[] objArr7 = new Object[1];
d(b5, b6, (byte) (b6 + 1), objArr7);
obj3 = cls3.getMethod((String) objArr7[0], Integer.TYPE, Object.class, Object.class);
xzZ.y.put(-1229953068, obj3);
}
jArr[i5] = ((Long) ((Method) obj3).invoke(null, objArr6)).longValue() ^ (a ^ (-6958928035870403642L));
Object[] objArr8 = {c4593bdB, c4593bdB};
Object obj4 = xzZ.y.get(-1143917229);
if (obj4 == null) {
Class cls4 = (Class) xzZ.c((ViewConfiguration.getMinimumFlingVelocity() >> 16) + 238, ((Process.getThreadPriority(0) + 20) >> 6) + 5, (char) Color.alpha(0));
byte b7 = (byte) ($$b - 3);
byte b8 = (byte) (b7 + 1);
Object[] objArr9 = new Object[1];
d(b7, b8, b8, objArr9);
obj4 = cls4.getMethod((String) objArr9[0], Object.class, Object.class);
xzZ.y.put(-1143917229, obj4);
}
((Method) obj4).invoke(null, objArr8);
}
}
char[] cArr2 = new char[length];
c4593bdB.e = 0;
int i6 = $10 + 101;
$11 = i6 % 128;
int i7 = i6 % 2;
while (c4593bdB.e < cArr.length) {
int i8 = $10 + 13;
$11 = i8 % 128;
int i9 = i8 % 2;
cArr2[c4593bdB.e] = (char) jArr[c4593bdB.e];
try {
Object[] objArr10 = {c4593bdB, c4593bdB};
Object obj5 = xzZ.y.get(-1143917229);
if (obj5 == null) {
Class cls5 = (Class) xzZ.c(238 - (ViewConfiguration.getScrollBarSize() >> 8), 5 - TextUtils.indexOf("", ""), (char) View.MeasureSpec.makeMeasureSpec(0, 0));
byte b9 = (byte) ($$b - 3);
byte b10 = (byte) (b9 + 1);
Object[] objArr11 = new Object[1];
d(b9, b10, b10, objArr11);
obj5 = cls5.getMethod((String) objArr11[0], Object.class, Object.class);
xzZ.y.put(-1143917229, obj5);
}
((Method) obj5).invoke(null, objArr10);
} catch (Throwable th2) {
Throwable cause2 = th2.getCause();
if (cause2 == null) {
throw th2;
}
throw cause2;
}
}
objArr[0] = new String(cArr2);
}
static void c() {
a = 2123688096746045309L;
}
public final boolean zzs() {
int i = 2 % 2;
int i2 = c;
int i3 = i2 + 77;
e = i3 % 128;
int i4 = i3 % 2;
boolean z = this.zzj;
int i5 = i2 + 69;
e = i5 % 128;
int i6 = i5 % 2;
return z;
}
public final void zzr(zzz zzzVar) {
int i = 2 % 2;
int i2 = c + 75;
e = i2 % 128;
int i3 = i2 % 2;
this.zzi = zzzVar;
if (i3 != 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
public final void zzq(boolean z) {
int i = 2 % 2;
int i2 = e;
int i3 = i2 + 71;
c = i3 % 128;
int i4 = i3 % 2;
this.zzj = z;
int i5 = i2 + 5;
c = i5 % 128;
if (i5 % 2 != 0) {
throw null;
}
}
public final void zzp(zze zzeVar) {
int i = 2 % 2;
int i2 = e + 67;
int i3 = i2 % 128;
c = i3;
int i4 = i2 % 2;
this.zzk = zzeVar;
int i5 = i3 + 75;
e = i5 % 128;
if (i5 % 2 == 0) {
int i6 = 96 / 0;
}
}
public final List zzo() {
int i = 2 % 2;
int i2 = e;
int i3 = i2 + 111;
c = i3 % 128;
int i4 = i3 % 2;
List list = this.zze;
int i5 = i2 + 31;
c = i5 % 128;
if (i5 % 2 != 0) {
int i6 = 41 / 0;
}
return list;
}
public final zzx zzl(String str) {
int i = 2 % 2;
int i2 = c;
int i3 = i2 + 9;
e = i3 % 128;
int i4 = i3 % 2;
this.zzg = str;
if (i4 == 0) {
int i5 = 90 / 0;
}
int i6 = i2 + 123;
e = i6 % 128;
if (i6 % 2 == 0) {
int i7 = 62 / 0;
}
return this;
}
public final zze zzj() {
int i = 2 % 2;
int i2 = e + 123;
c = i2 % 128;
if (i2 % 2 == 0) {
return this.zzk;
}
throw null;
}
@Override // com.google.firebase.auth.FirebaseUser
public final List zzg() {
int i = 2 % 2;
int i2 = e + 45;
int i3 = i2 % 128;
c = i3;
int i4 = i2 % 2;
List list = this.zzf;
int i5 = i3 + 77;
e = i5 % 128;
int i6 = i5 % 2;
return list;
}
@Override // com.google.firebase.auth.FirebaseUser
public final zzzy zzd() {
int i = 2 % 2;
int i2 = e + 73;
int i3 = i2 % 128;
c = i3;
int i4 = i2 % 2;
zzzy zzzyVar = this.zza;
int i5 = i3 + 1;
e = i5 % 128;
int i6 = i5 % 2;
return zzzyVar;
}
@Override // com.google.firebase.auth.FirebaseUser
public final List<? extends UserInfo> getProviderData() {
int i = 2 % 2;
int i2 = c + 103;
int i3 = i2 % 128;
e = i3;
Object obj = null;
if (i2 % 2 == 0) {
obj.hashCode();
throw null;
}
List<? extends UserInfo> list = this.zze;
int i4 = i3 + 15;
c = i4 % 128;
if (i4 % 2 == 0) {
return list;
}
obj.hashCode();
throw null;
}
public final FirebaseUserMetadata getMetadata() {
int i = 2 % 2;
int i2 = c + 79;
e = i2 % 128;
int i3 = i2 % 2;
zzz zzzVar = this.zzi;
if (i3 == 0) {
int i4 = 31 / 0;
}
return zzzVar;
}
static {
c = 0;
c();
CREATOR = new zzy();
int i = e + 27;
c = i % 128;
if (i % 2 != 0) {
int i2 = 19 / 0;
}
}
}