what-the-bank/sources/com/google/android/gms/internal/gtm/zzbh.java

352 lines
13 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.internal.gtm;
import android.content.Context;
import android.graphics.Color;
import android.graphics.PointF;
import android.text.TextUtils;
import android.view.ViewConfiguration;
import android.widget.ExpandableListView;
import com.google.android.gms.common.internal.Preconditions;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.lang.reflect.Method;
import java.util.Locale;
import java.util.UUID;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Future;
import net.sf.scuba.smartcards.ISO7816;
import net.sf.scuba.smartcards.ISOFileInfo;
import o.GuL;
import o.xzZ;
/* loaded from: classes.dex */
public final class zzbh extends zzan {
private volatile String zzut;
private Future<String> zzyh;
private static final byte[] $$a = {ISO7816.INS_PSO, ISOFileInfo.FCP_BYTE, 99, -29};
private static final int $$b = 65;
private static int $10 = 0;
private static int $11 = 1;
private static int d = 0;
private static int e = 1;
private static long c = -2156871061686638659L;
/* JADX INFO: Access modifiers changed from: protected */
public zzbh(zzap zzapVar) {
super(zzapVar);
}
/* 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 f(int r5, short r6, int r7, java.lang.Object[] r8) {
/*
int r6 = r6 * 4
int r6 = 3 - r6
int r7 = r7 * 2
int r7 = 121 - r7
byte[] r0 = com.google.android.gms.internal.gtm.zzbh.$$a
int r5 = r5 * 4
int r1 = r5 + 1
byte[] r1 = new byte[r1]
r2 = 0
if (r0 != 0) goto L16
r3 = r5
r4 = r2
goto L2a
L16:
r3 = r2
L17:
byte r4 = (byte) r7
r1[r3] = r4
int r6 = r6 + 1
int r4 = r3 + 1
if (r3 != r5) goto L28
java.lang.String r5 = new java.lang.String
r5.<init>(r1, r2)
r8[r2] = r5
return
L28:
r3 = r0[r6]
L2a:
int r7 = r7 + r3
r3 = r4
goto L17
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.gtm.zzbh.f(int, short, int, java.lang.Object[]):void");
}
public final String zzeh() {
String str;
zzdb();
synchronized (this) {
if (this.zzut == null) {
this.zzyh = zzcq().zza(new zzbi(this));
}
Future<String> future = this.zzyh;
if (future != null) {
try {
this.zzut = future.get();
} catch (InterruptedException e2) {
zzd("ClientId loading or generation was interrupted", e2);
Object[] objArr = new Object[1];
a(new char[]{5300, 5252, 36053, 31899, 16891}, ViewConfiguration.getScrollBarSize() >> 8, objArr);
this.zzut = ((String) objArr[0]).intern();
} catch (ExecutionException e3) {
zze("Failed to load or generate client id", e3);
Object[] objArr2 = new Object[1];
a(new char[]{5300, 5252, 36053, 31899, 16891}, Color.red(0), objArr2);
this.zzut = ((String) objArr2[0]).intern();
}
if (this.zzut == null) {
Object[] objArr3 = new Object[1];
a(new char[]{5300, 5252, 36053, 31899, 16891}, Color.alpha(0), objArr3);
this.zzut = ((String) objArr3[0]).intern();
}
zza("Loaded clientId", this.zzut);
this.zzyh = null;
}
str = this.zzut;
}
return str;
}
/* JADX INFO: Access modifiers changed from: package-private */
public final String zzei() {
synchronized (this) {
this.zzut = null;
this.zzyh = zzcq().zza(new zzbj(this));
}
return zzeh();
}
/* JADX INFO: Access modifiers changed from: package-private */
public final String zzej() {
int i = 2 % 2;
int i2 = e + 53;
d = i2 % 128;
int i3 = i2 % 2;
String zzd = zzd(zzcq().getContext());
if (zzd != null) {
return zzd;
}
String zzek = zzek();
int i4 = e + 43;
d = i4 % 128;
int i5 = i4 % 2;
return zzek;
}
private final String zzek() {
int i = 2 % 2;
int i2 = d + 95;
e = i2 % 128;
try {
if (i2 % 2 != 0) {
String lowerCase = UUID.randomUUID().toString().toLowerCase(Locale.US);
if (!zzb(zzcq().getContext(), lowerCase)) {
Object[] objArr = new Object[1];
a(new char[]{5300, 5252, 36053, 31899, 16891}, (-1) - TextUtils.indexOf((CharSequence) "", '0', 0), objArr);
return ((String) objArr[0]).intern();
}
int i3 = d + 17;
e = i3 % 128;
int i4 = i3 % 2;
return lowerCase;
}
zzb(zzcq().getContext(), UUID.randomUUID().toString().toLowerCase(Locale.US));
throw null;
} catch (Exception e2) {
zze("Error saving clientId file", e2);
Object[] objArr2 = new Object[1];
a(new char[]{5300, 5252, 36053, 31899, 16891}, TextUtils.getOffsetBefore("", 0), objArr2);
return ((String) objArr2[0]).intern();
}
}
private static void a(char[] cArr, int i, Object[] objArr) {
Object obj;
int i2 = 2 % 2;
GuL guL = new GuL();
char[] a = GuL.a(c ^ (-7538262848231253921L), cArr, i);
guL.a = 4;
while (true) {
obj = null;
if (guL.a >= a.length) {
break;
}
int i3 = $11 + 21;
$10 = i3 % 128;
int i4 = i3 % 2;
guL.c = guL.a - 4;
int i5 = guL.a;
try {
Object[] objArr2 = {Long.valueOf(a[guL.a] ^ a[guL.a % 4]), Long.valueOf(guL.c), Long.valueOf(c)};
Object obj2 = xzZ.y.get(428080616);
if (obj2 == null) {
Class cls = (Class) xzZ.c(208 - (ViewConfiguration.getTapTimeout() >> 16), (PointF.length(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) > BitmapDescriptorFactory.HUE_RED ? 1 : (PointF.length(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 5, (char) (1706 - ExpandableListView.getPackedPositionGroup(0L)));
byte b = (byte) 0;
byte b2 = b;
Object[] objArr3 = new Object[1];
f(b, b2, (byte) (b2 + 1), objArr3);
obj2 = cls.getMethod((String) objArr3[0], Long.TYPE, Long.TYPE, Long.TYPE);
xzZ.y.put(428080616, obj2);
}
a[i5] = ((Character) ((Method) obj2).invoke(null, objArr2)).charValue();
Object[] objArr4 = {guL, guL};
Object obj3 = xzZ.y.get(-1875914398);
if (obj3 == null) {
Class cls2 = (Class) xzZ.c(392 - (ViewConfiguration.getMaximumDrawingCacheSize() >> 24), (ViewConfiguration.getMaximumFlingVelocity() >> 16) + 5, (char) (ViewConfiguration.getLongPressTimeout() >> 16));
byte b3 = (byte) 0;
byte b4 = b3;
Object[] objArr5 = new Object[1];
f(b3, b4, b4, objArr5);
obj3 = cls2.getMethod((String) objArr5[0], Object.class, Object.class);
xzZ.y.put(-1875914398, obj3);
}
((Method) obj3).invoke(null, objArr4);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
String str = new String(a, 4, a.length - 4);
int i6 = $10 + 21;
$11 = i6 % 128;
if (i6 % 2 != 0) {
objArr[0] = str;
} else {
obj.hashCode();
throw null;
}
}
/* JADX WARN: Not initialized variable reg: 4, insn: 0x007b: MOVE (r3 I:??[OBJECT, ARRAY]) = (r4 I:??[OBJECT, ARRAY]), block:B:58:0x007b */
/* JADX WARN: Removed duplicated region for block: B:61:0x0098 A[EXC_TOP_SPLITTER, SYNTHETIC] */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private final java.lang.String zzd(android.content.Context r10) {
/*
Method dump skipped, instructions count: 204
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.gtm.zzbh.zzd(android.content.Context):java.lang.String");
}
private final boolean zzb(Context context, String str) {
FileOutputStream fileOutputStream;
int i = 2 % 2;
int i2 = e + 43;
d = i2 % 128;
int i3 = i2 % 2;
Preconditions.checkNotEmpty(str);
Preconditions.checkNotMainThread("ClientId should be saved from worker thread");
FileOutputStream fileOutputStream2 = null;
try {
try {
try {
zza("Storing clientId", str);
fileOutputStream = context.openFileOutput("gaClientId", 0);
} catch (Throwable th) {
th = th;
if (fileOutputStream2 != null) {
try {
fileOutputStream2.close();
} catch (IOException e2) {
zze("Failed to close clientId writing stream", e2);
}
}
throw th;
}
} catch (FileNotFoundException e3) {
e = e3;
fileOutputStream = null;
} catch (IOException e4) {
e = e4;
}
try {
fileOutputStream.write(str.getBytes());
if (fileOutputStream == null) {
return true;
}
int i4 = e + 121;
d = i4 % 128;
int i5 = i4 % 2;
try {
fileOutputStream.close();
return true;
} catch (IOException e5) {
zze("Failed to close clientId writing stream", e5);
return true;
}
} catch (FileNotFoundException e6) {
e = e6;
zze("Error creating clientId file", e);
if (fileOutputStream != null) {
try {
fileOutputStream.close();
} catch (IOException e7) {
zze("Failed to close clientId writing stream", e7);
}
}
int i6 = d + 125;
e = i6 % 128;
if (i6 % 2 != 0) {
return false;
}
throw null;
} catch (IOException e8) {
e = e8;
fileOutputStream2 = fileOutputStream;
zze("Error writing to clientId file", e);
if (fileOutputStream2 != null) {
try {
fileOutputStream2.close();
} catch (IOException e9) {
zze("Failed to close clientId writing stream", e9);
}
}
return false;
}
} catch (Throwable th2) {
th = th2;
fileOutputStream2 = context;
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public static /* synthetic */ String zza(zzbh zzbhVar) {
int i = 2 % 2;
int i2 = d + 81;
e = i2 % 128;
int i3 = i2 % 2;
String zzek = zzbhVar.zzek();
if (i3 == 0) {
int i4 = 15 / 0;
}
int i5 = d + 51;
e = i5 % 128;
int i6 = i5 % 2;
return zzek;
}
@Override // com.google.android.gms.internal.gtm.zzan
protected final void zzaw() {
int i = 2 % 2;
int i2 = d + 35;
e = i2 % 128;
int i3 = i2 % 2;
}
}