what-the-bank/sources/com/google/android/gms/measurement/internal/zzio.java

696 lines
24 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.measurement.internal;
import android.app.Activity;
import android.graphics.Color;
import android.os.Bundle;
import android.os.SystemClock;
import android.text.TextUtils;
import android.view.KeyEvent;
import android.view.View;
import android.widget.ExpandableListView;
import com.google.android.gms.common.internal.Preconditions;
import java.lang.reflect.Method;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import net.sf.scuba.smartcards.ISO7816;
import o.xzZ;
import o.zUI;
import org.bouncycastle.crypto.tls.CipherSuite;
import org.simpleframework.xml.strategy.Name;
/* loaded from: classes.dex */
public final class zzio extends zzf {
protected zzih zza;
private volatile zzih zzb;
private volatile zzih zzc;
private final Map<Activity, zzih> zzd;
private Activity zze;
private volatile boolean zzf;
private volatile zzih zzg;
private zzih zzh;
private boolean zzi;
private final Object zzj;
private zzih zzk;
private String zzl;
private static final byte[] $$a = {39, 45, ISO7816.INS_PUT_DATA, 49};
private static final int $$b = 199;
private static int $10 = 0;
private static int $11 = 1;
private static int e = 0;
private static int c = 1;
private static int b = 2015661605;
public zzio(zzfv zzfvVar) {
super(zzfvVar);
this.zzj = new Object();
this.zzd = new ConcurrentHashMap();
}
/* JADX WARN: Removed duplicated region for block: B:10:0x0029 */
/* JADX WARN: Removed duplicated region for block: B:7:0x0021 */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0029 -> B:4:0x002f). 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 r6, byte r7, int r8, java.lang.Object[] r9) {
/*
int r8 = r8 * 7
int r8 = r8 + 69
int r6 = r6 * 2
int r0 = 1 - r6
byte[] r1 = com.google.android.gms.measurement.internal.zzio.$$a
int r7 = r7 * 3
int r7 = r7 + 4
byte[] r0 = new byte[r0]
r2 = 0
int r6 = 0 - r6
if (r1 != 0) goto L19
r3 = r8
r4 = r2
r8 = r7
goto L2f
L19:
r3 = r2
L1a:
byte r4 = (byte) r8
r0[r3] = r4
int r4 = r3 + 1
if (r3 != r6) goto L29
java.lang.String r6 = new java.lang.String
r6.<init>(r0, r2)
r9[r2] = r6
return
L29:
r3 = r1[r7]
r5 = r8
r8 = r7
r7 = r3
r3 = r5
L2f:
int r7 = r7 + r3
int r8 = r8 + 1
r3 = r4
r5 = r8
r8 = r7
r7 = r5
goto L1a
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.measurement.internal.zzio.f(int, byte, int, java.lang.Object[]):void");
}
public final void zzs(Activity activity) {
synchronized (this.zzj) {
if (activity == this.zze) {
this.zze = null;
}
}
if (this.zzs.zzf().zzu()) {
this.zzd.remove(activity);
}
}
public final void zzt(Activity activity) {
synchronized (this.zzj) {
this.zzi = false;
this.zzf = true;
}
long elapsedRealtime = this.zzs.zzav().elapsedRealtime();
if (!this.zzs.zzf().zzu()) {
this.zzb = null;
this.zzs.zzaz().zzp(new zzil(this, elapsedRealtime));
} else {
zzih zzz = zzz(activity);
this.zzc = this.zzb;
this.zzb = null;
this.zzs.zzaz().zzp(new zzim(this, zzz, elapsedRealtime));
}
}
public final void zzu(Activity activity) {
synchronized (this.zzj) {
this.zzi = true;
if (activity != this.zze) {
synchronized (this.zzj) {
this.zze = activity;
this.zzf = false;
}
if (this.zzs.zzf().zzu()) {
this.zzg = null;
this.zzs.zzaz().zzp(new zzin(this));
}
}
}
if (!this.zzs.zzf().zzu()) {
this.zzb = this.zzg;
this.zzs.zzaz().zzp(new zzik(this));
} else {
zzA(activity, zzz(activity), false);
zzd zzd = this.zzs.zzd();
zzd.zzs.zzaz().zzp(new zzc(zzd, zzd.zzs.zzav().elapsedRealtime()));
}
}
/* JADX WARN: Code restructure failed: missing block: B:15:0x0035, code lost:
if (r3 > 100) goto L15;
*/
/* JADX WARN: Code restructure failed: missing block: B:24:0x0067, code lost:
if (r4 > 100) goto L24;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void zzx(android.os.Bundle r19, long r20) {
/*
Method dump skipped, instructions count: 400
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.measurement.internal.zzio.zzx(android.os.Bundle, long):void");
}
public final void zzy(String str, zzih zzihVar) {
zzg();
synchronized (this) {
String str2 = this.zzl;
if (str2 == null || str2.equals(str) || zzihVar != null) {
this.zzl = str;
this.zzk = zzihVar;
}
}
}
public final zzih zzj(boolean z) {
int i = 2 % 2;
zza();
zzg();
if (!z) {
int i2 = e + 103;
c = i2 % 128;
if (i2 % 2 != 0) {
return this.zza;
}
int i3 = 11 / 0;
return this.zza;
}
zzih zzihVar = this.zza;
if (zzihVar != null) {
int i4 = c + 25;
e = i4 % 128;
if (i4 % 2 != 0) {
int i5 = 31 / 0;
}
return zzihVar;
}
zzih zzihVar2 = this.zzh;
int i6 = e + 85;
c = i6 % 128;
if (i6 % 2 != 0) {
return zzihVar2;
}
throw null;
}
/* JADX WARN: Removed duplicated region for block: B:14:? A[RETURN, SYNTHETIC] */
/* JADX WARN: Removed duplicated region for block: B:8:0x0037 */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private final void zzC(com.google.android.gms.measurement.internal.zzih r5, boolean r6, long r7) {
/*
r4 = this;
r0 = 2
int r1 = r0 % r0
com.google.android.gms.measurement.internal.zzfv r1 = r4.zzs
com.google.android.gms.measurement.internal.zzd r1 = r1.zzd()
com.google.android.gms.measurement.internal.zzfv r2 = r4.zzs
com.google.android.gms.common.util.Clock r2 = r2.zzav()
long r2 = r2.elapsedRealtime()
r1.zzf(r2)
r1 = 0
if (r5 == 0) goto L28
int r2 = com.google.android.gms.measurement.internal.zzio.c
int r2 = r2 + 23
int r3 = r2 % 128
com.google.android.gms.measurement.internal.zzio.e = r3
int r2 = r2 % r0
boolean r2 = r5.zzd
if (r2 == 0) goto L28
r2 = 1
goto L29
L28:
r2 = r1
L29:
com.google.android.gms.measurement.internal.zzfv r3 = r4.zzs
com.google.android.gms.measurement.internal.zzkd r3 = r3.zzu()
com.google.android.gms.measurement.internal.zzkb r3 = r3.zzb
boolean r6 = r3.zzd(r2, r6, r7)
if (r6 == 0) goto L4d
int r6 = com.google.android.gms.measurement.internal.zzio.e
int r6 = r6 + 19
int r7 = r6 % 128
com.google.android.gms.measurement.internal.zzio.c = r7
int r6 = r6 % r0
if (r5 == 0) goto L4d
r5.zzd = r1
int r5 = com.google.android.gms.measurement.internal.zzio.e
int r5 = r5 + 79
int r6 = r5 % 128
com.google.android.gms.measurement.internal.zzio.c = r6
int r5 = r5 % r0
L4d:
return
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.measurement.internal.zzio.zzC(com.google.android.gms.measurement.internal.zzih, boolean, long):void");
}
/* JADX INFO: Access modifiers changed from: package-private */
public static /* synthetic */ void zzp(zzio zzioVar, Bundle bundle, zzih zzihVar, zzih zzihVar2, long j) {
int i = 2 % 2;
int i2 = e + 111;
c = i2 % 128;
int i3 = i2 % 2;
bundle.remove("screen_name");
bundle.remove("screen_class");
zzioVar.zzB(zzihVar, zzihVar2, j, true, zzioVar.zzs.zzv().zzy(null, "screen_view", bundle, null, false));
int i4 = e + 107;
c = i4 % 128;
int i5 = i4 % 2;
}
private final zzih zzz(Activity activity) {
int i = 2 % 2;
int i2 = c + 53;
e = i2 % 128;
int i3 = i2 % 2;
Preconditions.checkNotNull(activity);
zzih zzihVar = this.zzd.get(activity);
if (zzihVar == null) {
zzih zzihVar2 = new zzih(null, zzl(activity.getClass(), "Activity"), this.zzs.zzv().zzq());
this.zzd.put(activity, zzihVar2);
int i4 = c + 1;
e = i4 % 128;
int i5 = i4 % 2;
zzihVar = zzihVar2;
}
return this.zzg != null ? this.zzg : zzihVar;
}
/* JADX WARN: Code restructure failed: missing block: B:10:0x003d, code lost:
r1 = null;
*/
/* JADX WARN: Code restructure failed: missing block: B:15:0x0032, code lost:
r1 = zzl(r17.getClass(), "Activity");
*/
/* JADX WARN: Code restructure failed: missing block: B:16:0x0030, code lost:
if (r17 != null) goto L14;
*/
/* JADX WARN: Code restructure failed: missing block: B:9:0x002d, code lost:
if (r17 != null) goto L14;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private final void zzA(android.app.Activity r17, com.google.android.gms.measurement.internal.zzih r18, boolean r19) {
/*
r16 = this;
r7 = r16
r0 = r18
r1 = 2
int r2 = r1 % r1
com.google.android.gms.measurement.internal.zzih r2 = r7.zzb
if (r2 != 0) goto L17
com.google.android.gms.measurement.internal.zzih r2 = r7.zzc
int r3 = com.google.android.gms.measurement.internal.zzio.c
int r3 = r3 + 121
int r4 = r3 % 128
com.google.android.gms.measurement.internal.zzio.e = r4
int r3 = r3 % r1
goto L19
L17:
com.google.android.gms.measurement.internal.zzih r2 = r7.zzb
L19:
r3 = r2
java.lang.String r2 = r0.zzb
if (r2 != 0) goto L4f
int r2 = com.google.android.gms.measurement.internal.zzio.e
int r2 = r2 + 65
int r4 = r2 % 128
com.google.android.gms.measurement.internal.zzio.c = r4
int r2 = r2 % r1
if (r2 != 0) goto L30
r1 = 80
int r1 = r1 / 0
if (r17 == 0) goto L3d
goto L32
L30:
if (r17 == 0) goto L3d
L32:
java.lang.Class r1 = r17.getClass()
java.lang.String r2 = "Activity"
java.lang.String r1 = r7.zzl(r1, r2)
goto L3e
L3d:
r1 = 0
L3e:
r10 = r1
com.google.android.gms.measurement.internal.zzih r1 = new com.google.android.gms.measurement.internal.zzih
java.lang.String r9 = r0.zza
long r11 = r0.zzc
boolean r13 = r0.zze
long r14 = r0.zzf
r8 = r1
r8.<init>(r9, r10, r11, r13, r14)
r2 = r1
goto L59
L4f:
int r2 = com.google.android.gms.measurement.internal.zzio.c
int r2 = r2 + 15
int r4 = r2 % 128
com.google.android.gms.measurement.internal.zzio.e = r4
int r2 = r2 % r1
r2 = r0
L59:
com.google.android.gms.measurement.internal.zzih r0 = r7.zzb
r7.zzc = r0
r7.zzb = r2
com.google.android.gms.measurement.internal.zzfv r0 = r7.zzs
com.google.android.gms.common.util.Clock r0 = r0.zzav()
long r4 = r0.elapsedRealtime()
com.google.android.gms.measurement.internal.zzfv r0 = r7.zzs
com.google.android.gms.measurement.internal.zzfs r8 = r0.zzaz()
com.google.android.gms.measurement.internal.zzij r9 = new com.google.android.gms.measurement.internal.zzij
r0 = r9
r1 = r16
r6 = r19
r0.<init>(r1, r2, r3, r4, r6)
r8.zzp(r9)
return
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.measurement.internal.zzio.zzA(android.app.Activity, com.google.android.gms.measurement.internal.zzih, boolean):void");
}
public final void zzr(Activity activity, Bundle bundle) {
int i = 2 % 2;
int i2 = c + 117;
e = i2 % 128;
int i3 = i2 % 2;
if (this.zzs.zzf().zzu()) {
if (bundle != null) {
Bundle bundle2 = bundle.getBundle("com.google.app_measurement.screen_service");
if (bundle2 == null) {
return;
}
this.zzd.put(activity, new zzih(bundle2.getString("name"), bundle2.getString("referrer_name"), bundle2.getLong(Name.MARK)));
return;
}
int i4 = c + 85;
e = i4 % 128;
if (i4 % 2 != 0) {
throw null;
}
}
}
final String zzl(Class<?> cls, String str) {
int i = 2 % 2;
int i2 = e + 121;
c = i2 % 128;
if (i2 % 2 == 0) {
cls.getCanonicalName();
throw null;
}
String canonicalName = cls.getCanonicalName();
if (canonicalName == null) {
int i3 = c + 55;
e = i3 % 128;
int i4 = i3 % 2;
return "Activity";
}
String[] split = canonicalName.split("\\.");
int length = split.length;
String str2 = length > 0 ? split[length - 1] : "";
int length2 = str2.length();
this.zzs.zzf();
if (length2 <= 100) {
return str2;
}
int i5 = e + 63;
c = i5 % 128;
if (i5 % 2 == 0) {
this.zzs.zzf();
return str2.substring(1, 101);
}
this.zzs.zzf();
return str2.substring(0, 100);
}
public final void zzv(Activity activity, Bundle bundle) {
int i = 2 % 2;
int i2 = e + 121;
c = i2 % 128;
int i3 = i2 % 2;
if (this.zzs.zzf().zzu() && bundle != null) {
zzih zzihVar = this.zzd.get(activity);
if (zzihVar != null) {
Bundle bundle2 = new Bundle();
bundle2.putLong(Name.MARK, zzihVar.zzc);
bundle2.putString("name", zzihVar.zza);
bundle2.putString("referrer_name", zzihVar.zzb);
bundle.putBundle("com.google.app_measurement.screen_service", bundle2);
return;
}
int i4 = e + 107;
c = i4 % 128;
int i5 = i4 % 2;
}
}
/* JADX WARN: Code restructure failed: missing block: B:27:0x00af, code lost:
if (r13.length() <= 100) goto L32;
*/
/* JADX WARN: Code restructure failed: missing block: B:34:0x00e4, code lost:
if (r14.length() <= 100) goto L40;
*/
@java.lang.Deprecated
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void zzw(android.app.Activity r12, java.lang.String r13, java.lang.String r14) {
/*
Method dump skipped, instructions count: 356
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.measurement.internal.zzio.zzw(android.app.Activity, java.lang.String, java.lang.String):void");
}
/* JADX WARN: Code restructure failed: missing block: B:18:0x006e, code lost:
if (r23 != null) goto L25;
*/
/* JADX WARN: Code restructure failed: missing block: B:19:0x0079, code lost:
r7 = new android.os.Bundle();
*/
/* JADX WARN: Code restructure failed: missing block: B:34:0x00c3, code lost:
if (r13 > 0) goto L45;
*/
/* JADX WARN: Code restructure failed: missing block: B:35:0x00d8, code lost:
r17.zzs.zzv().zzH(r7, r13);
*/
/* JADX WARN: Code restructure failed: missing block: B:37:0x00d6, code lost:
if (r13 > 0) goto L45;
*/
/* JADX WARN: Code restructure failed: missing block: B:52:0x0073, code lost:
r7 = new android.os.Bundle(r23);
*/
/* JADX WARN: Code restructure failed: missing block: B:53:0x0071, code lost:
if (r23 != null) goto L25;
*/
/* JADX WARN: Removed duplicated region for block: B:11:0x0048 */
/* JADX WARN: Removed duplicated region for block: B:15:0x0061 */
/* JADX WARN: Removed duplicated region for block: B:55:0x012e */
/* JADX WARN: Removed duplicated region for block: B:58:0x0143 */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private final void zzB(com.google.android.gms.measurement.internal.zzih r18, com.google.android.gms.measurement.internal.zzih r19, long r20, boolean r22, android.os.Bundle r23) {
/*
Method dump skipped, instructions count: 335
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.measurement.internal.zzio.zzB(com.google.android.gms.measurement.internal.zzih, com.google.android.gms.measurement.internal.zzih, long, boolean, android.os.Bundle):void");
}
private static void a(int i, int i2, int i3, char[] cArr, boolean z, Object[] objArr) {
int i4 = 2 % 2;
zUI zui = new zUI();
char[] cArr2 = new char[i];
zui.d = 0;
while (zui.d < i) {
zui.c = cArr[zui.d];
cArr2[zui.d] = (char) (i3 + zui.c);
int i5 = zui.d;
try {
Object[] objArr2 = {Integer.valueOf(cArr2[i5]), Integer.valueOf(b)};
Object obj = xzZ.y.get(880493502);
if (obj == null) {
Class cls = (Class) xzZ.c(View.combineMeasuredStates(0, 0) + CipherSuite.TLS_DHE_PSK_WITH_3DES_EDE_CBC_SHA, 6 - TextUtils.lastIndexOf("", '0', 0), (char) ExpandableListView.getPackedPositionType(0L));
byte b2 = (byte) 0;
byte b3 = b2;
Object[] objArr3 = new Object[1];
f(b2, b3, b3, objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE, Integer.TYPE);
xzZ.y.put(880493502, obj);
}
cArr2[i5] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
Object[] objArr4 = {zui, zui};
Object obj2 = xzZ.y.get(1294990079);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(TextUtils.lastIndexOf("", '0', 0) + 343, 5 - TextUtils.indexOf("", "", 0), (char) (KeyEvent.getMaxKeyCode() >> 16));
byte b4 = (byte) 0;
byte b5 = b4;
Object[] objArr5 = new Object[1];
f(b4, b5, (byte) (b5 + 1), objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Object.class, Object.class);
xzZ.y.put(1294990079, obj2);
}
((Method) obj2).invoke(null, objArr4);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
if (i2 > 0) {
zui.a = i2;
char[] cArr3 = new char[i];
System.arraycopy(cArr2, 0, cArr3, 0, i);
System.arraycopy(cArr3, 0, cArr2, i - zui.a, zui.a);
System.arraycopy(cArr3, zui.a, cArr2, 0, i - zui.a);
}
if (z) {
char[] cArr4 = new char[i];
zui.d = 0;
int i6 = $10 + 71;
$11 = i6 % 128;
int i7 = i6 % 2;
while (zui.d < i) {
int i8 = $11 + 83;
$10 = i8 % 128;
int i9 = i8 % 2;
cArr4[zui.d] = cArr2[(i - zui.d) - 1];
Object[] objArr6 = {zui, zui};
Object obj3 = xzZ.y.get(1294990079);
if (obj3 == null) {
Class cls3 = (Class) xzZ.c(342 - TextUtils.getTrimmedLength(""), Color.alpha(0) + 5, (char) ((SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)) - 1));
byte b6 = (byte) 0;
byte b7 = b6;
Object[] objArr7 = new Object[1];
f(b6, b7, (byte) (b7 + 1), objArr7);
obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class);
xzZ.y.put(1294990079, obj3);
}
((Method) obj3).invoke(null, objArr6);
int i10 = $11 + 21;
$10 = i10 % 128;
int i11 = i10 % 2;
}
cArr2 = cArr4;
}
objArr[0] = new String(cArr2);
}
public final zzih zzi() {
int i = 2 % 2;
int i2 = e + 59;
c = i2 % 128;
if (i2 % 2 == 0) {
throw null;
}
zzih zzihVar = this.zzb;
int i3 = e + 69;
c = i3 % 128;
int i4 = i3 % 2;
return zzihVar;
}
@Override // com.google.android.gms.measurement.internal.zzf
protected final boolean zzf() {
int i = 2 % 2;
int i2 = e + 63;
c = i2 % 128;
int i3 = i2 % 2;
return false;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static /* synthetic */ void zzq(zzio zzioVar, zzih zzihVar, boolean z, long j) {
int i = 2 % 2;
int i2 = c + 67;
e = i2 % 128;
zzioVar.zzC(zzihVar, i2 % 2 != 0, j);
}
/* JADX INFO: Access modifiers changed from: package-private */
public static /* synthetic */ void zzo(zzio zzioVar, zzih zzihVar, zzih zzihVar2, long j, boolean z, Bundle bundle) {
int i = 2 % 2;
int i2 = e + 101;
c = i2 % 128;
if (i2 % 2 == 0) {
zzioVar.zzB(zzihVar, zzihVar2, j, z, null);
throw null;
}
zzioVar.zzB(zzihVar, zzihVar2, j, z, null);
int i3 = e + 71;
c = i3 % 128;
int i4 = i3 % 2;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static /* bridge */ /* synthetic */ void zzm(zzio zzioVar, zzih zzihVar) {
int i = 2 % 2;
int i2 = e + 89;
c = i2 % 128;
int i3 = i2 % 2;
zzioVar.zzh = null;
if (i3 == 0) {
throw null;
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public static /* synthetic */ zzih zzh(zzio zzioVar) {
int i = 2 % 2;
int i2 = e + 89;
c = i2 % 128;
int i3 = i2 % 2;
zzih zzihVar = zzioVar.zzh;
if (i3 != 0) {
return zzihVar;
}
Object obj = null;
obj.hashCode();
throw null;
}
}