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

2532 lines
94 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.measurement.internal;
import android.content.ComponentName;
import android.content.Context;
import android.content.pm.ActivityInfo;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.pm.ServiceInfo;
import android.graphics.Color;
import android.net.Uri;
import android.os.Bundle;
import android.os.Parcel;
import android.os.Parcelable;
import android.os.Process;
import android.os.RemoteException;
import android.telephony.cdma.CdmaCellLocation;
import android.text.TextUtils;
import android.util.TypedValue;
import android.view.ViewConfiguration;
import android.widget.ExpandableListView;
import com.airbnb.deeplinkdispatch.base.MatchIndex;
import com.google.android.gms.common.GoogleApiAvailabilityLight;
import com.google.android.gms.common.GooglePlayServicesUtilLight;
import com.google.android.gms.common.internal.Preconditions;
import com.google.android.gms.common.util.CollectionUtils;
import com.google.android.gms.common.wrappers.Wrappers;
import com.google.android.gms.internal.measurement.zzom;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.google.android.gms.measurement.api.AppMeasurementSdk;
import com.huawei.hms.support.hianalytics.HiAnalyticsConstant;
import java.io.ByteArrayInputStream;
import java.lang.reflect.Method;
import java.net.MalformedURLException;
import java.net.URL;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
import java.security.cert.CertificateException;
import java.security.cert.CertificateFactory;
import java.security.cert.X509Certificate;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import java.util.concurrent.atomic.AtomicLong;
import javax.security.auth.x500.X500Principal;
import net.sf.scuba.smartcards.ISO7816;
import o.TVH;
import o.xzZ;
import org.checkerframework.checker.nullness.qual.EnsuresNonNull;
/* loaded from: classes.dex */
public final class zzkz extends zzgp {
private static final byte[] $$a = {75, ISO7816.INS_UPDATE_RECORD, 11, 77};
private static final int $$b = 59;
private static int $10 = 0;
private static int $11 = 1;
private static int b = 0;
private static char[] d;
private static int e;
public static final int zza = 0;
private static final String[] zzb;
private static final String[] zzc;
private SecureRandom zzd;
private final AtomicLong zze;
private int zzf;
private Integer zzg;
/* JADX INFO: Access modifiers changed from: package-private */
public zzkz(zzfv zzfvVar) {
super(zzfvVar);
this.zzg = null;
this.zze = new AtomicLong(0L);
}
/* JADX WARN: Removed duplicated region for block: B:10:0x0026 */
/* JADX WARN: Removed duplicated region for block: B:7:0x001e */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0026 -> B:4:0x002d). 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 c(byte r7, short r8, short r9, java.lang.Object[] r10) {
/*
int r9 = r9 * 2
int r9 = r9 + 71
int r8 = r8 * 3
int r8 = 3 - r8
byte[] r0 = com.google.android.gms.measurement.internal.zzkz.$$a
int r7 = r7 * 2
int r7 = r7 + 1
byte[] r1 = new byte[r7]
r2 = 0
if (r0 != 0) goto L16
r3 = r7
r4 = r2
goto L2d
L16:
r3 = r2
L17:
int r4 = r3 + 1
byte r5 = (byte) r9
r1[r3] = r5
if (r4 != r7) goto L26
java.lang.String r7 = new java.lang.String
r7.<init>(r1, r2)
r10[r2] = r7
return
L26:
int r8 = r8 + 1
r3 = r0[r8]
r6 = r3
r3 = r9
r9 = r6
L2d:
int r9 = -r9
int r9 = r9 + r3
r3 = r4
goto L17
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.measurement.internal.zzkz.c(byte, short, short, java.lang.Object[]):void");
}
/* JADX INFO: Access modifiers changed from: package-private */
public static MessageDigest zzE() {
MessageDigest messageDigest;
int i = 2 % 2;
int i2 = 0;
while (i2 < 2) {
int i3 = b + 115;
e = i3 % 128;
int i4 = i3 % 2;
try {
messageDigest = MessageDigest.getInstance("MD5");
} catch (NoSuchAlgorithmException unused) {
}
if (messageDigest != null) {
return messageDigest;
}
int i5 = b + 45;
e = i5 % 128;
int i6 = i5 % 2;
i2++;
int i7 = b + 101;
e = i7 % 128;
int i8 = i7 % 2;
}
return null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static boolean zzag(String str) {
int i = 2 % 2;
int i2 = b + 87;
e = i2 % 128;
int i3 = i2 % 2;
if (TextUtils.isEmpty(str) || !str.startsWith("_")) {
return false;
}
int i4 = e + 43;
b = i4 % 128;
int i5 = i4 % 2;
return true;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static boolean zzak(String str, String str2) {
int i = 2 % 2;
int i2 = b;
int i3 = i2 + 37;
e = i3 % 128;
int i4 = i3 % 2;
if (str == null) {
int i5 = i2 + 53;
e = i5 % 128;
if (i5 % 2 == 0) {
throw null;
}
if (str2 == null) {
return true;
}
}
if (str != null) {
return str.equals(str2);
}
int i6 = i2 + 17;
e = i6 % 128;
int i7 = i6 % 2;
return false;
}
public static boolean zzal(String str) {
int i = 2 % 2;
int i2 = e + 93;
b = i2 % 128;
int i3 = i2 % 2;
if (!zzc[0].equals(str)) {
return true;
}
int i4 = e + 89;
b = i4 % 128;
int i5 = i4 % 2;
return false;
}
/* JADX INFO: Access modifiers changed from: package-private */
public final boolean zzae(Object obj) {
int i = 2 % 2;
int i2 = b + 125;
int i3 = i2 % 128;
e = i3;
if (i2 % 2 == 0) {
int i4 = 6 / 0;
if (obj instanceof Parcelable[]) {
return true;
}
} else if (obj instanceof Parcelable[]) {
return true;
}
int i5 = i3 + 111;
b = i5 % 128;
if (i5 % 2 != 0) {
boolean z = obj instanceof ArrayList;
Object obj2 = null;
obj2.hashCode();
throw null;
}
if (obj instanceof ArrayList) {
return true;
}
if (obj instanceof Bundle) {
int i6 = i3 + 83;
b = i6 % 128;
int i7 = i6 % 2;
return true;
}
int i8 = i3 + 33;
b = i8 % 128;
int i9 = i8 % 2;
return false;
}
public final long zzq() {
long andIncrement;
long nextLong;
long j;
if (this.zze.get() == 0) {
synchronized (this.zze) {
nextLong = new Random(System.nanoTime() ^ this.zzs.zzav().currentTimeMillis()).nextLong();
int i = this.zzf + 1;
this.zzf = i;
j = i;
}
return nextLong + j;
}
synchronized (this.zze) {
this.zze.compareAndSet(-1L, 1L);
andIncrement = this.zze.getAndIncrement();
}
return andIncrement;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static boolean zzah(String str) {
int i = 2 % 2;
int i2 = e + 73;
b = i2 % 128;
if (i2 % 2 != 0) {
Preconditions.checkNotEmpty(str);
if (str.charAt(0) != '}') {
return true;
}
} else {
Preconditions.checkNotEmpty(str);
if (str.charAt(0) != '_') {
return true;
}
}
int i3 = b + 101;
e = i3 % 128;
int i4 = i3 % 2;
return str.equals("_ep");
}
/* JADX INFO: Access modifiers changed from: package-private */
public static boolean zzaj(Context context, boolean z) {
int i = 2 % 2;
int i2 = e + 125;
b = i2 % 128;
if (i2 % 2 == 0) {
Preconditions.checkNotNull(context);
return zzat(context, "com.google.android.gms.measurement.AppMeasurementJobService");
}
Preconditions.checkNotNull(context);
zzat(context, "com.google.android.gms.measurement.AppMeasurementJobService");
throw null;
}
static final boolean zzao(Bundle bundle, int i) {
int i2 = 2 % 2;
int i3 = b + 11;
e = i3 % 128;
int i4 = i3 % 2;
if (bundle.getLong("_err") == 0) {
bundle.putLong("_err", i);
int i5 = b + 63;
e = i5 % 128;
int i6 = i5 % 2;
return true;
}
int i7 = b + 109;
e = i7 % 128;
if (i7 % 2 != 0) {
return false;
}
throw null;
}
static final boolean zzap(String str) {
int i = 2 % 2;
int i2 = e + 81;
b = i2 % 128;
if (i2 % 2 == 0) {
Preconditions.checkNotNull(str);
boolean matches = str.matches("^(1:\\d+:android:[a-f0-9]+|ca-app-pub-.*)$");
int i3 = b + 59;
e = i3 % 128;
int i4 = i3 % 2;
return matches;
}
Preconditions.checkNotNull(str);
str.matches("^(1:\\d+:android:[a-f0-9]+|ca-app-pub-.*)$");
Object obj = null;
obj.hashCode();
throw null;
}
public final String zzC(String str, int i, boolean z) {
int i2 = 2 % 2;
Object obj = null;
if (str == null) {
int i3 = e + 37;
b = i3 % 128;
if (i3 % 2 == 0) {
return null;
}
obj.hashCode();
throw null;
}
if (str.codePointCount(0, str.length()) <= i) {
int i4 = b + 25;
e = i4 % 128;
int i5 = i4 % 2;
return str;
}
if (!z) {
return null;
}
int i6 = e + 75;
b = i6 % 128;
int i7 = i6 % 2;
return String.valueOf(str.substring(0, str.offsetByCodePoints(0, i))).concat("...");
}
/* JADX INFO: Access modifiers changed from: package-private */
@EnsuresNonNull({"this.secureRandom"})
public final SecureRandom zzF() {
int i = 2 % 2;
int i2 = b + 89;
e = i2 % 128;
int i3 = i2 % 2;
zzg();
if (this.zzd == null) {
this.zzd = new SecureRandom();
}
SecureRandom secureRandom = this.zzd;
int i4 = e + 1;
b = i4 % 128;
if (i4 % 2 == 0) {
return secureRandom;
}
throw null;
}
public final void zzQ(com.google.android.gms.internal.measurement.zzcf zzcfVar, Bundle bundle) {
int i = 2 % 2;
int i2 = b + 39;
e = i2 % 128;
int i3 = i2 % 2;
try {
zzcfVar.zzd(bundle);
int i4 = e + 29;
b = i4 % 128;
if (i4 % 2 != 0) {
int i5 = 71 / 0;
}
} catch (RemoteException e2) {
this.zzs.zzay().zzk().zzb("Error returning bundle value to wrapper", e2);
}
}
private static boolean zzas(String str, String[] strArr) {
int length;
int i;
int i2 = 2 % 2;
int i3 = e + 107;
b = i3 % 128;
if (i3 % 2 != 0) {
Preconditions.checkNotNull(strArr);
length = strArr.length;
i = 1;
} else {
Preconditions.checkNotNull(strArr);
length = strArr.length;
i = 0;
}
while (i < length) {
int i4 = e + 11;
b = i4 % 128;
int i5 = i4 % 2;
if (zzak(str, strArr[i])) {
int i6 = b + 83;
e = i6 % 128;
if (i6 % 2 != 0) {
return true;
}
throw null;
}
i++;
}
return false;
}
private static boolean zzat(Context context, String str) {
PackageManager packageManager;
int i = 2 % 2;
try {
packageManager = context.getPackageManager();
} catch (PackageManager.NameNotFoundException unused) {
}
if (packageManager != null) {
ServiceInfo serviceInfo = packageManager.getServiceInfo(new ComponentName(context, str), 0);
if (serviceInfo != null) {
if (Class.forName("android.content.pm.ServiceInfo").getField("enabled").getBoolean(serviceInfo)) {
int i2 = e + 59;
b = i2 % 128;
int i3 = i2 % 2;
return true;
}
}
int i4 = e + 5;
b = i4 % 128;
if (i4 % 2 == 0) {
return false;
}
throw null;
}
int i5 = b + 51;
e = i5 % 128;
int i6 = i5 % 2;
return false;
}
/* JADX INFO: Access modifiers changed from: package-private */
public final Object zzB(String str, Object obj) {
int i = 2 % 2;
int i2 = b + 113;
e = i2 % 128;
if (i2 % 2 != 0) {
if (!(!"_ldl".equals(str))) {
Object zzar = zzar(zzaq(str), obj, true, false);
int i3 = e + 25;
b = i3 % 128;
int i4 = i3 % 2;
return zzar;
}
return zzar(zzaq(str), obj, false, false);
}
"_ldl".equals(str);
Object obj2 = null;
obj2.hashCode();
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public final boolean zzam(String str, String str2, String str3, String str4) {
int i = 2 % 2;
boolean isEmpty = TextUtils.isEmpty(str);
boolean isEmpty2 = TextUtils.isEmpty(str2);
if (!isEmpty && !isEmpty2) {
int i2 = e + 111;
b = i2 % 128;
if (i2 % 2 == 0) {
Preconditions.checkNotNull(str);
return !str.equals(str2);
}
Preconditions.checkNotNull(str);
str.equals(str2);
throw null;
}
if (!(!isEmpty) && isEmpty2) {
if (!(!TextUtils.isEmpty(str3)) || TextUtils.isEmpty(str4)) {
return !TextUtils.isEmpty(str4);
}
if (str3.equals(str4)) {
return false;
}
int i3 = b + 33;
e = i3 % 128;
int i4 = i3 % 2;
return true;
}
if (isEmpty) {
return TextUtils.isEmpty(str3) || !str3.equals(str4);
}
if (TextUtils.isEmpty(str4)) {
int i5 = e + 1;
b = i5 % 128;
int i6 = i5 % 2;
return false;
}
if (!TextUtils.isEmpty(str3)) {
int i7 = e + 79;
b = i7 % 128;
int i8 = i7 % 2;
if (str3.equals(str4)) {
return false;
}
int i9 = b + 111;
e = i9 % 128;
int i10 = i9 % 2;
}
int i11 = e + 11;
b = i11 % 128;
if (i11 % 2 != 0) {
int i12 = 17 / 0;
}
return true;
}
/* JADX WARN: Code restructure failed: missing block: B:10:0x001b, code lost:
r4.zzg = java.lang.Integer.valueOf(com.google.android.gms.common.GoogleApiAvailabilityLight.getInstance().getApkVersion(r4.zzs.zzau()) / 1000);
r1 = com.google.android.gms.measurement.internal.zzkz.e + 119;
com.google.android.gms.measurement.internal.zzkz.b = r1 % 128;
r1 = r1 % 2;
*/
/* JADX WARN: Code restructure failed: missing block: B:12:0x0019, code lost:
if (r4.zzg == null) goto L9;
*/
/* JADX WARN: Code restructure failed: missing block: B:4:0x0014, code lost:
if (r4.zzg == null) goto L9;
*/
@org.checkerframework.checker.nullness.qual.EnsuresNonNull({"this.apkVersion"})
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final int zzm() {
/*
r4 = this;
r0 = 2
int r1 = r0 % r0
int r1 = com.google.android.gms.measurement.internal.zzkz.e
int r1 = r1 + 79
int r2 = r1 % 128
com.google.android.gms.measurement.internal.zzkz.b = r2
int r1 = r1 % r0
if (r1 == 0) goto L17
java.lang.Integer r1 = r4.zzg
r2 = 47
int r2 = r2 / 0
if (r1 != 0) goto L3a
goto L1b
L17:
java.lang.Integer r1 = r4.zzg
if (r1 != 0) goto L3a
L1b:
com.google.android.gms.common.GoogleApiAvailabilityLight r1 = com.google.android.gms.common.GoogleApiAvailabilityLight.getInstance()
com.google.android.gms.measurement.internal.zzfv r2 = r4.zzs
android.content.Context r2 = r2.zzau()
int r1 = r1.getApkVersion(r2)
int r1 = r1 / 1000
java.lang.Integer r1 = java.lang.Integer.valueOf(r1)
r4.zzg = r1
int r1 = com.google.android.gms.measurement.internal.zzkz.e
int r1 = r1 + 119
int r2 = r1 % 128
com.google.android.gms.measurement.internal.zzkz.b = r2
int r1 = r1 % r0
L3a:
java.lang.Integer r1 = r4.zzg
int r1 = r1.intValue()
int r2 = com.google.android.gms.measurement.internal.zzkz.e
int r2 = r2 + 71
int r3 = r2 % 128
com.google.android.gms.measurement.internal.zzkz.b = r3
int r2 = r2 % r0
if (r2 == 0) goto L4f
r0 = 23
int r0 = r0 / 0
L4f:
return r1
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.measurement.internal.zzkz.zzm():int");
}
public final int zzo(int i) {
int i2 = 2 % 2;
int i3 = e + 39;
b = i3 % 128;
int i4 = i3 % 2;
int isGooglePlayServicesAvailable = GoogleApiAvailabilityLight.getInstance().isGooglePlayServicesAvailable(this.zzs.zzau(), GooglePlayServicesUtilLight.GOOGLE_PLAY_SERVICES_VERSION_CODE);
int i5 = e + 27;
b = i5 % 128;
int i6 = i5 % 2;
return isGooglePlayServicesAvailable;
}
public static void zzJ(zzih zzihVar, Bundle bundle, boolean z) {
int i = 2 % 2;
if (bundle != null) {
int i2 = e + 27;
b = i2 % 128;
Object obj = null;
if (i2 % 2 != 0) {
obj.hashCode();
throw null;
}
if (zzihVar != null) {
if (!bundle.containsKey("_sc") || z) {
String str = zzihVar.zza;
if (str != null) {
int i3 = b + 47;
e = i3 % 128;
if (i3 % 2 == 0) {
bundle.putString("_sn", str);
throw null;
}
bundle.putString("_sn", str);
} else {
bundle.remove("_sn");
}
String str2 = zzihVar.zzb;
if (str2 != null) {
bundle.putString("_sc", str2);
int i4 = b + 47;
e = i4 % 128;
int i5 = i4 % 2;
} else {
bundle.remove("_sc");
}
bundle.putLong("_si", zzihVar.zzc);
return;
}
z = false;
}
}
if (bundle != null && zzihVar == null && z) {
bundle.remove("_sn");
bundle.remove("_sc");
bundle.remove("_si");
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* JADX WARN: Multi-variable type inference failed */
public static long zzp(byte[] bArr) {
int length;
int i = 2 % 2;
int i2 = e + 25;
b = i2 % 128;
boolean z = true;
boolean z2 = false;
if (i2 % 2 != 0) {
Preconditions.checkNotNull(bArr);
length = bArr.length;
if (length > 0) {
z2 = true;
}
int i3 = e + 37;
b = i3 % 128;
int i4 = i3 % 2;
z2 = z;
z = false;
} else {
Preconditions.checkNotNull(bArr);
length = bArr.length;
if (length <= 0) {
z = false;
int i32 = e + 37;
b = i32 % 128;
int i42 = i32 % 2;
z2 = z;
z = false;
}
}
Preconditions.checkState(z);
int i5 = length - 1;
long j = 0;
int i6 = z2;
while (i5 >= 0) {
int i7 = e + 113;
b = i7 % 128;
if (i7 % 2 == 0) {
if (i5 < bArr.length - 8) {
break;
}
j += (bArr[i5] & 255) << i6;
i5--;
i6 += 8;
} else {
if (i5 < (bArr.length >>> 98)) {
break;
}
j += (bArr[i5] & 255) << i6;
i5--;
i6 += 8;
}
}
int i8 = b + 25;
e = i8 % 128;
int i9 = i8 % 2;
return j;
}
/* JADX ERROR: JadxRuntimeException in pass: IfRegionVisitor
jadx.core.utils.exceptions.JadxRuntimeException: Can't remove SSA var: r5v5 long, still in use, count: 2, list:
(r5v5 long) from 0x0025: PHI (r5v1 long) = (r5v0 long), (r5v5 long) binds: [B:11:0x0023, B:4:0x001a] A[DONT_GENERATE, DONT_INLINE]
(r5v5 long) from 0x0018: CMP_L (r5v5 long), (1 long) A[WRAPPED]
at jadx.core.utils.InsnRemover.removeSsaVar(InsnRemover.java:151)
at jadx.core.utils.InsnRemover.unbindResult(InsnRemover.java:116)
at jadx.core.dex.visitors.regions.TernaryMod.makeTernaryInsn(TernaryMod.java:114)
at jadx.core.dex.visitors.regions.TernaryMod.processRegion(TernaryMod.java:62)
at jadx.core.dex.visitors.regions.TernaryMod.enterRegion(TernaryMod.java:45)
at jadx.core.dex.visitors.regions.DepthRegionTraversal.traverseInternal(DepthRegionTraversal.java:67)
at jadx.core.dex.visitors.regions.DepthRegionTraversal.lambda$traverseInternal$0(DepthRegionTraversal.java:68)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1597)
at jadx.core.dex.visitors.regions.DepthRegionTraversal.traverseInternal(DepthRegionTraversal.java:68)
at jadx.core.dex.visitors.regions.DepthRegionTraversal.traverse(DepthRegionTraversal.java:19)
at jadx.core.dex.visitors.regions.TernaryMod.process(TernaryMod.java:35)
at jadx.core.dex.visitors.regions.IfRegionVisitor.process(IfRegionVisitor.java:34)
at jadx.core.dex.visitors.regions.IfRegionVisitor.visit(IfRegionVisitor.java:30)
*/
final void zzH(android.os.Bundle r10, long r11) {
/*
r9 = this;
r0 = 2
int r1 = r0 % r0
int r1 = com.google.android.gms.measurement.internal.zzkz.e
int r1 = r1 + 119
int r2 = r1 % 128
com.google.android.gms.measurement.internal.zzkz.b = r2
int r1 = r1 % r0
r2 = 0
java.lang.String r4 = "_et"
if (r1 == 0) goto L1d
long r5 = r10.getLong(r4)
r7 = 1
int r1 = (r5 > r7 ? 1 : (r5 == r7 ? 0 : -1))
if (r1 == 0) goto L43
goto L25
L1d:
long r5 = r10.getLong(r4)
int r1 = (r5 > r2 ? 1 : (r5 == r2 ? 0 : -1))
if (r1 == 0) goto L43
L25:
r2 = r5
com.google.android.gms.measurement.internal.zzfv r1 = r9.zzs
com.google.android.gms.measurement.internal.zzel r1 = r1.zzay()
com.google.android.gms.measurement.internal.zzej r1 = r1.zzk()
java.lang.String r5 = "Params already contained engagement"
java.lang.Long r6 = java.lang.Long.valueOf(r2)
r1.zzb(r5, r6)
int r1 = com.google.android.gms.measurement.internal.zzkz.e
int r1 = r1 + 89
int r5 = r1 % 128
com.google.android.gms.measurement.internal.zzkz.b = r5
int r1 = r1 % r0
goto L4c
L43:
int r1 = com.google.android.gms.measurement.internal.zzkz.b
int r1 = r1 + 103
int r5 = r1 % 128
com.google.android.gms.measurement.internal.zzkz.e = r5
int r1 = r1 % r0
L4c:
long r11 = r11 + r2
r10.putLong(r4, r11)
return
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.measurement.internal.zzkz.zzH(android.os.Bundle, long):void");
}
/* JADX INFO: Access modifiers changed from: package-private */
public final void zzK(Bundle bundle, Bundle bundle2) {
int i = 2 % 2;
int i2 = b + 89;
e = i2 % 128;
if (i2 % 2 == 0) {
Object obj = null;
obj.hashCode();
throw null;
}
if (bundle2 == null) {
return;
}
for (String str : bundle2.keySet()) {
int i3 = b + 65;
e = i3 % 128;
int i4 = i3 % 2;
if (!bundle.containsKey(str)) {
this.zzs.zzv().zzN(bundle, str, bundle2.get(str));
int i5 = b + 107;
e = i5 % 128;
int i6 = i5 % 2;
}
}
}
public final void zzO(com.google.android.gms.internal.measurement.zzcf zzcfVar, boolean z) {
int i = 2 % 2;
Bundle bundle = new Bundle();
bundle.putBoolean(MatchIndex.ROOT_VALUE, z);
try {
zzcfVar.zzd(bundle);
int i2 = e + 103;
b = i2 % 128;
if (i2 % 2 != 0) {
int i3 = 95 / 0;
}
} catch (RemoteException e2) {
this.zzs.zzay().zzk().zzb("Error returning boolean value to wrapper", e2);
}
}
public final void zzP(com.google.android.gms.internal.measurement.zzcf zzcfVar, ArrayList<Bundle> arrayList) {
int i = 2 % 2;
Bundle bundle = new Bundle();
bundle.putParcelableArrayList(MatchIndex.ROOT_VALUE, arrayList);
try {
zzcfVar.zzd(bundle);
int i2 = e + 111;
b = i2 % 128;
int i3 = i2 % 2;
} catch (RemoteException e2) {
this.zzs.zzay().zzk().zzb("Error returning bundle list to wrapper", e2);
}
}
public final void zzR(com.google.android.gms.internal.measurement.zzcf zzcfVar, byte[] bArr) {
int i = 2 % 2;
Bundle bundle = new Bundle();
bundle.putByteArray(MatchIndex.ROOT_VALUE, bArr);
try {
zzcfVar.zzd(bundle);
int i2 = e + 7;
b = i2 % 128;
int i3 = i2 % 2;
} catch (RemoteException e2) {
this.zzs.zzay().zzk().zzb("Error returning byte array to wrapper", e2);
}
}
public final void zzS(com.google.android.gms.internal.measurement.zzcf zzcfVar, int i) {
int i2 = 2 % 2;
Bundle bundle = new Bundle();
bundle.putInt(MatchIndex.ROOT_VALUE, i);
try {
zzcfVar.zzd(bundle);
int i3 = b + 81;
e = i3 % 128;
if (i3 % 2 == 0) {
int i4 = 61 / 0;
}
} catch (RemoteException e2) {
this.zzs.zzay().zzk().zzb("Error returning int value to wrapper", e2);
}
}
public final void zzT(com.google.android.gms.internal.measurement.zzcf zzcfVar, long j) {
int i = 2 % 2;
Bundle bundle = new Bundle();
bundle.putLong(MatchIndex.ROOT_VALUE, j);
try {
zzcfVar.zzd(bundle);
int i2 = e + 75;
b = i2 % 128;
int i3 = i2 % 2;
} catch (RemoteException e2) {
this.zzs.zzay().zzk().zzb("Error returning long value to wrapper", e2);
}
}
public final void zzU(com.google.android.gms.internal.measurement.zzcf zzcfVar, String str) {
int i = 2 % 2;
Bundle bundle = new Bundle();
bundle.putString(MatchIndex.ROOT_VALUE, str);
try {
zzcfVar.zzd(bundle);
int i2 = e + 49;
b = i2 % 128;
int i3 = i2 % 2;
} catch (RemoteException e2) {
this.zzs.zzay().zzk().zzb("Error returning string value to wrapper", e2);
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public final int zzh(String str) {
int i = 2 % 2;
int i2 = b + 77;
e = i2 % 128;
int i3 = i2 % 2;
if (zzaa("event", str)) {
if (!zzY("event", zzgs.zza, zzgs.zzb, str)) {
return 13;
}
this.zzs.zzf();
if (zzX("event", 40, str)) {
return 0;
}
int i4 = e + 13;
b = i4 % 128;
int i5 = i4 % 2;
return 2;
}
int i6 = e + 69;
b = i6 % 128;
int i7 = i6 % 2;
return 2;
}
final int zzi(String str) {
int i = 2 % 2;
if (zzaa("event param", str)) {
if (!zzY("event param", null, null, str)) {
return 14;
}
this.zzs.zzf();
if (!zzX("event param", 40, str)) {
int i2 = b + 49;
e = i2 % 128;
int i3 = i2 % 2;
return 3;
}
int i4 = e + 15;
b = i4 % 128;
if (i4 % 2 == 0) {
return 0;
}
throw null;
}
int i5 = b + 77;
e = i5 % 128;
int i6 = i5 % 2;
return 3;
}
final int zzj(String str) {
int i = 2 % 2;
int i2 = e + 71;
b = i2 % 128;
int i3 = i2 % 2;
if (zzab("event param", str)) {
if (!zzY("event param", null, null, str)) {
return 14;
}
this.zzs.zzf();
return !zzX("event param", 40, str) ? 3 : 0;
}
int i4 = b + 25;
e = i4 % 128;
return i4 % 2 == 0 ? 5 : 3;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static boolean zzai(Context context) {
PackageManager packageManager;
int i = 2 % 2;
Preconditions.checkNotNull(context);
try {
packageManager = context.getPackageManager();
} catch (PackageManager.NameNotFoundException unused) {
}
if (packageManager != null) {
if (packageManager.getReceiverInfo(new ComponentName(context, "com.google.android.gms.measurement.AppMeasurementReceiver"), 0) != null) {
if (!(!ActivityInfo.class.getField("enabled").getBoolean(r5))) {
int i2 = b + 31;
e = i2 % 128;
int i3 = i2 % 2;
return true;
}
}
return false;
}
int i4 = e + 97;
int i5 = i4 % 128;
b = i5;
int i6 = i4 % 2;
int i7 = i5 + 125;
e = i7 % 128;
if (i7 % 2 != 0) {
return false;
}
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public final boolean zzac(String str) {
int i = 2 % 2;
int i2 = b + 57;
e = i2 % 128;
int i3 = i2 % 2;
zzg();
if (Wrappers.packageManager(this.zzs.zzau()).checkCallingOrSelfPermission(str) == 0) {
int i4 = e + 81;
b = i4 % 128;
int i5 = i4 % 2;
return true;
}
this.zzs.zzay().zzc().zzb("Permission not granted", str);
return false;
}
/* JADX INFO: Access modifiers changed from: package-private */
public final boolean zzad(String str) {
int i = 2 % 2;
int i2 = e + 15;
b = i2 % 128;
int i3 = i2 % 2;
if (!TextUtils.isEmpty(str)) {
String zzl = this.zzs.zzf().zzl();
this.zzs.zzaw();
return zzl.equals(str);
}
int i4 = e + 35;
b = i4 % 128;
int i5 = i4 % 2;
return false;
}
/* JADX INFO: Access modifiers changed from: package-private */
public final byte[] zzan(Parcelable parcelable) {
int i = 2 % 2;
if (parcelable == null) {
int i2 = b + 97;
e = i2 % 128;
int i3 = i2 % 2;
return null;
}
Parcel obtain = Parcel.obtain();
try {
parcelable.writeToParcel(obtain, 0);
byte[] marshall = obtain.marshall();
obtain.recycle();
int i4 = e + 39;
b = i4 % 128;
int i5 = i4 % 2;
return marshall;
} catch (Throwable th) {
obtain.recycle();
throw th;
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public final int zzd(String str, Object obj) {
boolean zzZ;
int i = 2 % 2;
int i2 = b + 117;
e = i2 % 128;
int i3 = i2 % 2;
if ("_ldl".equals(str)) {
zzZ = zzZ("user property referrer", str, zzaq(str), obj);
} else {
zzZ = zzZ("user property", str, zzaq(str), obj);
int i4 = b + 7;
e = i4 % 128;
int i5 = i4 % 2;
}
if (!zzZ) {
return 7;
}
int i6 = e;
int i7 = i6 + 79;
b = i7 % 128;
int i8 = i7 % 2;
int i9 = i6 + 87;
b = i9 % 128;
if (i9 % 2 != 0) {
int i10 = 74 / 0;
}
return 0;
}
/* JADX INFO: Access modifiers changed from: package-private */
public final int zzl(String str) {
int i = 2 % 2;
if (!zzaa("user property", str)) {
int i2 = b + 63;
e = i2 % 128;
return i2 % 2 == 0 ? 73 : 6;
}
if (zzY("user property", zzgu.zza, null, str)) {
this.zzs.zzf();
return !zzX("user property", 24, str) ? 6 : 0;
}
int i3 = b + 79;
e = i3 % 128;
int i4 = i3 % 2;
return 15;
}
/* JADX INFO: Access modifiers changed from: package-private */
/* JADX WARN: Code restructure failed: missing block: B:12:0x003b, code lost:
if (r7 == 2) goto L17;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void zzM(com.google.android.gms.measurement.internal.zzky r5, java.lang.String r6, int r7, java.lang.String r8, java.lang.String r9, int r10) {
/*
r4 = this;
r0 = 2
int r1 = r0 % r0
android.os.Bundle r1 = new android.os.Bundle
r1.<init>()
zzao(r1, r7)
boolean r2 = android.text.TextUtils.isEmpty(r8)
if (r2 != 0) goto L25
boolean r2 = android.text.TextUtils.isEmpty(r9)
r2 = r2 ^ 1
if (r2 == 0) goto L25
int r2 = com.google.android.gms.measurement.internal.zzkz.e
int r2 = r2 + 97
int r3 = r2 % 128
com.google.android.gms.measurement.internal.zzkz.b = r3
int r2 = r2 % r0
r1.putString(r8, r9)
L25:
r8 = 6
if (r7 == r8) goto L3d
int r8 = com.google.android.gms.measurement.internal.zzkz.e
int r8 = r8 + 75
int r9 = r8 % 128
com.google.android.gms.measurement.internal.zzkz.b = r9
int r8 = r8 % r0
if (r8 == 0) goto L38
r8 = 95
if (r7 == r8) goto L3d
goto L3b
L38:
r8 = 7
if (r7 == r8) goto L3d
L3b:
if (r7 != r0) goto L43
L3d:
long r7 = (long) r10
java.lang.String r9 = "_el"
r1.putLong(r9, r7)
L43:
java.lang.String r7 = "_err"
r5.zza(r6, r7, r1)
return
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.measurement.internal.zzkz.zzM(com.google.android.gms.measurement.internal.zzky, java.lang.String, int, java.lang.String, java.lang.String, int):void");
}
/* JADX INFO: Access modifiers changed from: package-private */
public final boolean zzX(String str, int i, String str2) {
int i2 = 2 % 2;
int i3 = b + 53;
e = i3 % 128;
if (i3 % 2 == 0) {
throw null;
}
if (str2 == null) {
this.zzs.zzay().zze().zzb("Name is required and can't be null. Type", str);
return false;
}
if (str2.codePointCount(0, str2.length()) <= i) {
int i4 = b + 117;
e = i4 % 128;
int i5 = i4 % 2;
return true;
}
int i6 = e + 53;
b = i6 % 128;
if (i6 % 2 != 0) {
this.zzs.zzay().zze().zzd("Name is too long. Type, maximum supported length, name", str, Integer.valueOf(i), str2);
return false;
}
this.zzs.zzay().zze().zzd("Name is too long. Type, maximum supported length, name", str, Integer.valueOf(i), str2);
return false;
}
/* JADX INFO: Access modifiers changed from: package-private */
/* JADX WARN: Code restructure failed: missing block: B:18:0x0021, code lost:
if ("_ev".equals(r6) != false) goto L10;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final java.lang.Object zzA(java.lang.String r6, java.lang.Object r7) {
/*
r5 = this;
r0 = 2
int r1 = r0 % r0
int r1 = com.google.android.gms.measurement.internal.zzkz.b
int r1 = r1 + 87
int r2 = r1 % 128
com.google.android.gms.measurement.internal.zzkz.e = r2
int r1 = r1 % r0
r2 = 256(0x100, float:3.59E-43)
java.lang.String r3 = "_ev"
r4 = 1
if (r1 != 0) goto L1d
boolean r1 = r3.equals(r6)
if (r1 == 0) goto L1a
goto L23
L1a:
r2 = 20929(0x51c1, float:2.9328E-41)
goto L36
L1d:
boolean r1 = r3.equals(r6)
if (r1 == 0) goto L36
L23:
int r6 = com.google.android.gms.measurement.internal.zzkz.e
int r6 = r6 + 79
int r1 = r6 % 128
com.google.android.gms.measurement.internal.zzkz.b = r1
int r6 = r6 % r0
com.google.android.gms.measurement.internal.zzfv r6 = r5.zzs
r6.zzf()
java.lang.Object r6 = r5.zzar(r2, r7, r4, r4)
return r6
L36:
boolean r6 = zzag(r6)
if (r6 == 0) goto L42
com.google.android.gms.measurement.internal.zzfv r6 = r5.zzs
r6.zzf()
goto L49
L42:
com.google.android.gms.measurement.internal.zzfv r6 = r5.zzs
r6.zzf()
r2 = 100
L49:
r6 = 0
java.lang.Object r7 = r5.zzar(r2, r7, r6, r4)
int r1 = com.google.android.gms.measurement.internal.zzkz.e
r2 = 57
int r1 = r1 + r2
int r3 = r1 % 128
com.google.android.gms.measurement.internal.zzkz.b = r3
int r1 = r1 % r0
if (r1 == 0) goto L5b
int r2 = r2 / r6
L5b:
return r7
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.measurement.internal.zzkz.zzA(java.lang.String, java.lang.Object):java.lang.Object");
}
@Override // com.google.android.gms.measurement.internal.zzgp
protected final void zzaA() {
int i = 2 % 2;
zzg();
SecureRandom secureRandom = new SecureRandom();
long nextLong = secureRandom.nextLong();
if (nextLong == 0) {
int i2 = e + 57;
b = i2 % 128;
int i3 = i2 % 2;
nextLong = secureRandom.nextLong();
if (nextLong == 0) {
int i4 = e + 59;
b = i4 % 128;
int i5 = i4 % 2;
this.zzs.zzay().zzk().zza("Utils falling back to Random for random id");
}
}
this.zze.set(nextLong);
int i6 = b + 19;
e = i6 % 128;
int i7 = i6 % 2;
}
/* JADX INFO: Access modifiers changed from: package-private */
public final Bundle zzs(Uri uri) {
String str;
String str2;
String str3;
String str4;
int i = 2 % 2;
if (uri != null) {
int i2 = e + 57;
b = i2 % 128;
try {
if (i2 % 2 != 0) {
uri.isHierarchical();
throw null;
}
if (uri.isHierarchical()) {
str = uri.getQueryParameter("utm_campaign");
str2 = uri.getQueryParameter("utm_source");
str3 = uri.getQueryParameter("utm_medium");
str4 = uri.getQueryParameter("gclid");
} else {
str = null;
str2 = null;
str3 = null;
str4 = null;
}
if (TextUtils.isEmpty(str) && TextUtils.isEmpty(str2)) {
int i3 = b + 63;
e = i3 % 128;
int i4 = i3 % 2;
if (TextUtils.isEmpty(str3) && TextUtils.isEmpty(str4)) {
return null;
}
}
Bundle bundle = new Bundle();
if (!TextUtils.isEmpty(str)) {
int i5 = b + 107;
e = i5 % 128;
int i6 = i5 % 2;
bundle.putString("campaign", str);
}
if (!TextUtils.isEmpty(str2)) {
bundle.putString("source", str2);
}
if (!TextUtils.isEmpty(str3)) {
bundle.putString("medium", str3);
}
if (!TextUtils.isEmpty(str4)) {
bundle.putString("gclid", str4);
}
String queryParameter = uri.getQueryParameter("utm_term");
if (!TextUtils.isEmpty(queryParameter)) {
bundle.putString("term", queryParameter);
}
String queryParameter2 = uri.getQueryParameter("utm_content");
if (!TextUtils.isEmpty(queryParameter2)) {
bundle.putString("content", queryParameter2);
}
String queryParameter3 = uri.getQueryParameter("aclid");
if (!TextUtils.isEmpty(queryParameter3)) {
int i7 = b + 123;
e = i7 % 128;
if (i7 % 2 == 0) {
bundle.putString("aclid", queryParameter3);
throw null;
}
bundle.putString("aclid", queryParameter3);
}
String queryParameter4 = uri.getQueryParameter("cp1");
if (!TextUtils.isEmpty(queryParameter4)) {
int i8 = e + 23;
b = i8 % 128;
if (i8 % 2 != 0) {
bundle.putString("cp1", queryParameter4);
int i9 = 79 / 0;
} else {
bundle.putString("cp1", queryParameter4);
}
}
String queryParameter5 = uri.getQueryParameter("anid");
if (!TextUtils.isEmpty(queryParameter5)) {
bundle.putString("anid", queryParameter5);
}
return bundle;
} catch (UnsupportedOperationException e2) {
this.zzs.zzay().zzk().zzb("Install referrer url isn't a hierarchical URI", e2);
}
}
return null;
}
final void zzI(Bundle bundle, int i, String str, String str2, Object obj) {
int i2 = 2 % 2;
if (zzao(bundle, i)) {
int i3 = e + 49;
b = i3 % 128;
int i4 = i3 % 2;
this.zzs.zzf();
bundle.putString("_ev", zzC(str, 40, true));
if (obj != null) {
int i5 = e + 123;
b = i5 % 128;
int i6 = i5 % 2;
Preconditions.checkNotNull(bundle);
if ((obj instanceof String) || (obj instanceof CharSequence)) {
bundle.putLong("_el", obj.toString().length());
}
}
}
int i7 = e + 15;
b = i7 % 128;
if (i7 % 2 == 0) {
return;
}
Object obj2 = null;
obj2.hashCode();
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
/* JADX WARN: Code restructure failed: missing block: B:21:0x0039, code lost:
if ((r10 instanceof java.lang.Double) != false) goto L38;
*/
/* JADX WARN: Code restructure failed: missing block: B:23:0x0043, code lost:
if ((r10 instanceof java.lang.String) != false) goto L34;
*/
/* JADX WARN: Code restructure failed: missing block: B:25:0x0047, code lost:
if ((r10 instanceof java.lang.Character) != false) goto L34;
*/
/* JADX WARN: Code restructure failed: missing block: B:26:0x0049, code lost:
r3 = r3 + 93;
com.google.android.gms.measurement.internal.zzkz.e = r3 % 128;
r3 = r3 % 2;
*/
/* JADX WARN: Code restructure failed: missing block: B:27:0x0052, code lost:
if ((r10 instanceof java.lang.CharSequence) == false) goto L33;
*/
/* JADX WARN: Code restructure failed: missing block: B:28:0x0055, code lost:
return false;
*/
/* JADX WARN: Code restructure failed: missing block: B:29:0x0056, code lost:
r10 = r10.toString();
*/
/* JADX WARN: Code restructure failed: missing block: B:30:0x0062, code lost:
if (r10.codePointCount(0, r10.length()) <= r9) goto L38;
*/
/* JADX WARN: Code restructure failed: missing block: B:31:0x0064, code lost:
r6.zzs.zzay().zzl().zzd("Value is too long; discarded. Value kind, name, value length", r7, r8, java.lang.Integer.valueOf(r10.length()));
*/
/* JADX WARN: Code restructure failed: missing block: B:32:0x007b, code lost:
return false;
*/
/* JADX WARN: Code restructure failed: missing block: B:34:0x003e, code lost:
if ((r10 instanceof java.lang.Double) != false) goto L38;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final boolean zzZ(java.lang.String r7, java.lang.String r8, int r9, java.lang.Object r10) {
/*
r6 = this;
r0 = 2
int r1 = r0 % r0
r1 = 1
if (r10 != 0) goto L10
int r7 = com.google.android.gms.measurement.internal.zzkz.b
int r7 = r7 + 125
int r8 = r7 % 128
com.google.android.gms.measurement.internal.zzkz.e = r8
int r7 = r7 % r0
return r1
L10:
boolean r2 = r10 instanceof java.lang.Long
if (r2 != 0) goto L7c
boolean r2 = r10 instanceof java.lang.Float
if (r2 != 0) goto L7c
boolean r2 = r10 instanceof java.lang.Integer
if (r2 != 0) goto L7c
boolean r2 = r10 instanceof java.lang.Byte
if (r2 != 0) goto L7c
boolean r2 = r10 instanceof java.lang.Short
if (r2 != 0) goto L7c
boolean r2 = r10 instanceof java.lang.Boolean
if (r2 != 0) goto L7c
int r2 = com.google.android.gms.measurement.internal.zzkz.e
int r2 = r2 + 61
int r3 = r2 % 128
com.google.android.gms.measurement.internal.zzkz.b = r3
int r2 = r2 % r0
r4 = 0
if (r2 == 0) goto L3c
boolean r2 = r10 instanceof java.lang.Double
r5 = 97
int r5 = r5 / r4
if (r2 == 0) goto L41
goto L7c
L3c:
boolean r2 = r10 instanceof java.lang.Double
if (r2 == 0) goto L41
goto L7c
L41:
boolean r2 = r10 instanceof java.lang.String
if (r2 != 0) goto L56
boolean r2 = r10 instanceof java.lang.Character
if (r2 != 0) goto L56
int r3 = r3 + 93
int r2 = r3 % 128
com.google.android.gms.measurement.internal.zzkz.e = r2
int r3 = r3 % r0
boolean r0 = r10 instanceof java.lang.CharSequence
if (r0 == 0) goto L55
goto L56
L55:
return r4
L56:
java.lang.String r10 = r10.toString()
int r0 = r10.length()
int r0 = r10.codePointCount(r4, r0)
if (r0 <= r9) goto L7c
com.google.android.gms.measurement.internal.zzfv r9 = r6.zzs
com.google.android.gms.measurement.internal.zzel r9 = r9.zzay()
com.google.android.gms.measurement.internal.zzej r9 = r9.zzl()
int r10 = r10.length()
java.lang.String r0 = "Value is too long; discarded. Value kind, name, value length"
java.lang.Integer r10 = java.lang.Integer.valueOf(r10)
r9.zzd(r0, r7, r8, r10)
return r4
L7c:
return r1
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.measurement.internal.zzkz.zzZ(java.lang.String, java.lang.String, int, java.lang.Object):boolean");
}
/* JADX INFO: Access modifiers changed from: package-private */
public final Bundle zzt(Bundle bundle) {
int i = 2 % 2;
Bundle bundle2 = new Bundle();
if (bundle != null) {
int i2 = b + 55;
e = i2 % 128;
int i3 = i2 % 2;
for (String str : bundle.keySet()) {
int i4 = b + 115;
e = i4 % 128;
int i5 = i4 % 2;
Object zzA = zzA(str, bundle.get(str));
if (zzA == null) {
int i6 = e + 111;
b = i6 % 128;
int i7 = i6 % 2;
this.zzs.zzay().zzl().zzb("Param value can't be null", this.zzs.zzj().zze(str));
int i8 = e + 57;
b = i8 % 128;
int i9 = i8 % 2;
} else {
zzN(bundle2, str, zzA);
}
}
}
return bundle2;
}
/* JADX INFO: Access modifiers changed from: package-private */
public final zzat zzz(String str, String str2, Bundle bundle, String str3, long j, boolean z, boolean z2) {
Bundle bundle2;
int i = 2 % 2;
if (TextUtils.isEmpty(str2)) {
return null;
}
if (zzh(str2) != 0) {
this.zzs.zzay().zzd().zzb("Invalid conditional property event name", this.zzs.zzj().zzf(str2));
throw new IllegalArgumentException();
}
int i2 = e + 75;
b = i2 % 128;
int i3 = i2 % 2;
if (bundle != null) {
bundle2 = new Bundle(bundle);
} else {
bundle2 = new Bundle();
int i4 = b + 107;
e = i4 % 128;
int i5 = i4 % 2;
}
Bundle bundle3 = bundle2;
bundle3.putString("_o", str3);
Bundle zzy = zzy(str, str2, bundle3, CollectionUtils.listOf("_o"), true);
if (z) {
int i6 = b + 63;
e = i6 % 128;
int i7 = i6 % 2;
zzy = zzt(zzy);
int i8 = b + 111;
e = i8 % 128;
int i9 = i8 % 2;
}
Preconditions.checkNotNull(zzy);
return new zzat(str2, new zzar(zzy), str3, j);
}
private final int zzaq(String str) {
int i = 2 % 2;
if ("_ldl".equals(str)) {
int i2 = b + 7;
e = i2 % 128;
int i3 = i2 % 2;
this.zzs.zzf();
return 2048;
}
if ("_id".equals(str)) {
this.zzs.zzf();
int i4 = e + 41;
b = i4 % 128;
if (i4 % 2 == 0) {
return 256;
}
throw null;
}
if (!(!this.zzs.zzf().zzs(null, zzdy.zzab))) {
int i5 = e + 35;
b = i5 % 128;
int i6 = i5 % 2;
if ("_lgclid".equals(str)) {
this.zzs.zzf();
return 100;
}
}
this.zzs.zzf();
return 36;
}
/* JADX INFO: Access modifiers changed from: package-private */
/* JADX WARN: Removed duplicated region for block: B:31:0x0094 A[SYNTHETIC] */
/* JADX WARN: Removed duplicated region for block: B:34:0x00a4 A[SYNTHETIC] */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final boolean zzaa(java.lang.String r8, java.lang.String r9) {
/*
r7 = this;
r0 = 2
int r1 = r0 % r0
r1 = 0
if (r9 != 0) goto L16
com.google.android.gms.measurement.internal.zzfv r9 = r7.zzs
com.google.android.gms.measurement.internal.zzel r9 = r9.zzay()
com.google.android.gms.measurement.internal.zzej r9 = r9.zze()
java.lang.String r0 = "Name is required and can't be null. Type"
r9.zzb(r0, r8)
return r1
L16:
int r2 = r9.length()
if (r2 != 0) goto L3b
int r9 = com.google.android.gms.measurement.internal.zzkz.b
int r9 = r9 + 45
int r2 = r9 % 128
com.google.android.gms.measurement.internal.zzkz.e = r2
int r9 = r9 % r0
java.lang.String r0 = "Name is required and can't be empty. Type"
if (r9 != 0) goto L37
com.google.android.gms.measurement.internal.zzfv r9 = r7.zzs
L2b:
com.google.android.gms.measurement.internal.zzel r9 = r9.zzay()
com.google.android.gms.measurement.internal.zzej r9 = r9.zze()
r9.zzb(r0, r8)
goto L3a
L37:
com.google.android.gms.measurement.internal.zzfv r9 = r7.zzs
goto L2b
L3a:
return r1
L3b:
int r2 = r9.codePointAt(r1)
boolean r3 = java.lang.Character.isLetter(r2)
r4 = 95
if (r3 != 0) goto L69
if (r2 != r4) goto L59
int r2 = com.google.android.gms.measurement.internal.zzkz.b
int r2 = r2 + 75
int r3 = r2 % 128
com.google.android.gms.measurement.internal.zzkz.e = r3
int r2 = r2 % r0
if (r2 != 0) goto L57
r2 = 44
goto L69
L57:
r2 = r4
goto L69
L59:
com.google.android.gms.measurement.internal.zzfv r0 = r7.zzs
com.google.android.gms.measurement.internal.zzel r0 = r0.zzay()
com.google.android.gms.measurement.internal.zzej r0 = r0.zze()
java.lang.String r2 = "Name must start with a letter or _ (underscore). Type, name"
r0.zzc(r2, r8, r9)
return r1
L69:
int r3 = r9.length()
int r2 = java.lang.Character.charCount(r2)
L71:
if (r2 >= r3) goto Laa
int r5 = com.google.android.gms.measurement.internal.zzkz.b
int r5 = r5 + 37
int r6 = r5 % 128
com.google.android.gms.measurement.internal.zzkz.e = r6
int r5 = r5 % r0
if (r5 != 0) goto L87
int r5 = r9.codePointAt(r2)
r6 = 127(0x7f, float:1.78E-43)
if (r5 == r6) goto La4
goto L8d
L87:
int r5 = r9.codePointAt(r2)
if (r5 == r4) goto La4
L8d:
boolean r6 = java.lang.Character.isLetterOrDigit(r5)
if (r6 == 0) goto L94
goto La4
L94:
com.google.android.gms.measurement.internal.zzfv r0 = r7.zzs
com.google.android.gms.measurement.internal.zzel r0 = r0.zzay()
com.google.android.gms.measurement.internal.zzej r0 = r0.zze()
java.lang.String r2 = "Name must consist of letters, digits or _ (underscores). Type, name"
r0.zzc(r2, r8, r9)
return r1
La4:
int r5 = java.lang.Character.charCount(r5)
int r2 = r2 + r5
goto L71
Laa:
r8 = 1
return r8
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.measurement.internal.zzkz.zzaa(java.lang.String, java.lang.String):boolean");
}
/* JADX INFO: Access modifiers changed from: package-private */
public final boolean zzY(String str, String[] strArr, String[] strArr2, String str2) {
int i = 2 % 2;
if (str2 == null) {
this.zzs.zzay().zze().zzb("Name is required and can't be null. Type", str);
int i2 = e + 77;
b = i2 % 128;
int i3 = i2 % 2;
return false;
}
Preconditions.checkNotNull(str2);
String[] strArr3 = zzb;
for (int i4 = 0; i4 < 3; i4++) {
if (str2.startsWith(strArr3[i4])) {
this.zzs.zzay().zze().zzc("Name starts with reserved prefix. Type, name", str, str2);
return false;
}
}
if (strArr == null || !zzas(str2, strArr)) {
return true;
}
if (strArr2 != null) {
int i5 = e + 97;
b = i5 % 128;
int i6 = i5 % 2;
if (zzas(str2, strArr2)) {
return true;
}
}
this.zzs.zzay().zze().zzc("Name is reserved. Type, name", str, str2);
int i7 = b + 15;
e = i7 % 128;
int i8 = i7 % 2;
return false;
}
public final URL zzD(long j, String str, String str2, long j2) {
int i = 2 % 2;
int i2 = e + 103;
b = i2 % 128;
int i3 = i2 % 2;
try {
Preconditions.checkNotEmpty(str2);
Preconditions.checkNotEmpty(str);
String format = String.format("https://www.googleadservices.com/pagead/conversion/app/deeplink?id_type=adid&sdk_version=%s&rdid=%s&bundleid=%s&retry=%s", String.format("v%s.%s", 46000L, Integer.valueOf(zzm())), str2, str, Long.valueOf(j2));
if (str.equals(this.zzs.zzf().zzm())) {
format = format.concat("&ddl_test=1");
}
URL url = new URL(format);
int i4 = e + 121;
b = i4 % 128;
if (i4 % 2 != 0) {
int i5 = 98 / 0;
}
return url;
} catch (IllegalArgumentException | MalformedURLException e2) {
this.zzs.zzay().zzd().zzb("Failed to create BOW URL for Deferred Deep Link. exception", e2.getMessage());
return null;
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public final boolean zzab(String str, String str2) {
int i = 2 % 2;
if (str2 == null) {
int i2 = b + 9;
e = i2 % 128;
if (i2 % 2 == 0) {
this.zzs.zzay().zze().zzb("Name is required and can't be null. Type", str);
return true;
}
this.zzs.zzay().zze().zzb("Name is required and can't be null. Type", str);
return false;
}
if (str2.length() == 0) {
int i3 = e + 105;
b = i3 % 128;
int i4 = i3 % 2;
this.zzs.zzay().zze().zzb("Name is required and can't be empty. Type", str);
return false;
}
int codePointAt = str2.codePointAt(0);
if (!Character.isLetter(codePointAt)) {
int i5 = b + 83;
e = i5 % 128;
if (i5 % 2 == 0) {
this.zzs.zzay().zze().zzc("Name must start with a letter. Type, name", str, str2);
return false;
}
this.zzs.zzay().zze().zzc("Name must start with a letter. Type, name", str, str2);
return false;
}
int length = str2.length();
int charCount = Character.charCount(codePointAt);
while (charCount < length) {
int i6 = b + 69;
e = i6 % 128;
int i7 = i6 % 2;
int codePointAt2 = str2.codePointAt(charCount);
if (codePointAt2 != 95 && !Character.isLetterOrDigit(codePointAt2)) {
this.zzs.zzay().zze().zzc("Name must consist of letters, digits or _ (underscores). Type, name", str, str2);
return false;
}
charCount += Character.charCount(codePointAt2);
int i8 = b + 101;
e = i8 % 128;
int i9 = i8 % 2;
}
return true;
}
/* JADX INFO: Access modifiers changed from: package-private */
public final boolean zzaf(Context context, String str) {
int i = 2 % 2;
X500Principal x500Principal = new X500Principal("CN=Android Debug,O=Android,C=US");
try {
PackageInfo packageInfo = Wrappers.packageManager(context).getPackageInfo(str, 64);
if (packageInfo != null) {
int i2 = b + 65;
e = i2 % 128;
int i3 = i2 % 2;
if (packageInfo.signatures != null) {
int i4 = e + 39;
b = i4 % 128;
int i5 = i4 % 2;
if (packageInfo.signatures.length > 0) {
return ((X509Certificate) CertificateFactory.getInstance("X.509").generateCertificate(new ByteArrayInputStream(packageInfo.signatures[0].toByteArray()))).getSubjectX500Principal().equals(x500Principal);
}
}
}
} catch (PackageManager.NameNotFoundException e2) {
this.zzs.zzay().zzd().zzb("Package name not found", e2);
} catch (CertificateException e3) {
this.zzs.zzay().zzd().zzb("Error obtaining certificate", e3);
}
int i6 = b + 33;
e = i6 % 128;
int i7 = i6 % 2;
return true;
}
/* JADX INFO: Access modifiers changed from: package-private */
/* JADX WARN: Removed duplicated region for block: B:15:0x0052 A[SYNTHETIC] */
/* JADX WARN: Removed duplicated region for block: B:19:0x0021 A[SYNTHETIC] */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void zzL(com.google.android.gms.measurement.internal.zzem r11, int r12) {
/*
r10 = this;
r0 = 2
int r1 = r0 % r0
java.util.TreeSet r1 = new java.util.TreeSet
android.os.Bundle r2 = r11.zzd
java.util.Set r2 = r2.keySet()
r1.<init>(r2)
java.util.Iterator r1 = r1.iterator()
int r2 = com.google.android.gms.measurement.internal.zzkz.b
int r2 = r2 + 35
int r3 = r2 % 128
com.google.android.gms.measurement.internal.zzkz.e = r3
int r2 = r2 % r0
if (r2 != 0) goto L1f
r2 = 5
int r2 = r2 % r0
L1f:
r2 = 0
r3 = r2
L21:
boolean r4 = r1.hasNext()
if (r4 == 0) goto L9b
int r4 = com.google.android.gms.measurement.internal.zzkz.e
int r4 = r4 + 119
int r5 = r4 % 128
com.google.android.gms.measurement.internal.zzkz.b = r5
int r4 = r4 % r0
if (r4 == 0) goto L42
java.lang.Object r4 = r1.next()
java.lang.String r4 = (java.lang.String) r4
boolean r5 = zzah(r4)
r6 = 80
int r6 = r6 / r2
if (r5 == 0) goto L21
goto L4e
L42:
java.lang.Object r4 = r1.next()
java.lang.String r4 = (java.lang.String) r4
boolean r5 = zzah(r4)
if (r5 == 0) goto L21
L4e:
int r3 = r3 + 1
if (r3 <= r12) goto L21
java.lang.StringBuilder r5 = new java.lang.StringBuilder
r6 = 48
r5.<init>(r6)
java.lang.String r6 = "Event can't contain more than "
r5.append(r6)
r5.append(r12)
java.lang.String r6 = " params"
r5.append(r6)
com.google.android.gms.measurement.internal.zzfv r6 = r10.zzs
com.google.android.gms.measurement.internal.zzel r6 = r6.zzay()
com.google.android.gms.measurement.internal.zzej r6 = r6.zze()
java.lang.String r5 = r5.toString()
com.google.android.gms.measurement.internal.zzfv r7 = r10.zzs
com.google.android.gms.measurement.internal.zzeg r7 = r7.zzj()
java.lang.String r8 = r11.zza
java.lang.String r7 = r7.zzd(r8)
com.google.android.gms.measurement.internal.zzfv r8 = r10.zzs
com.google.android.gms.measurement.internal.zzeg r8 = r8.zzj()
android.os.Bundle r9 = r11.zzd
java.lang.String r8 = r8.zzb(r9)
r6.zzc(r5, r7, r8)
android.os.Bundle r5 = r11.zzd
r6 = 5
zzao(r5, r6)
android.os.Bundle r5 = r11.zzd
r5.remove(r4)
goto L21
L9b:
return
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.measurement.internal.zzkz.zzL(com.google.android.gms.measurement.internal.zzem, int):void");
}
private final Object zzar(int i, Object obj, boolean z, boolean z2) {
int i2 = 2 % 2;
Object obj2 = null;
if (obj != null) {
if ((obj instanceof Long) || (obj instanceof Double)) {
return obj;
}
if (!(obj instanceof Integer)) {
if (obj instanceof Byte) {
return Long.valueOf(((Byte) obj).byteValue());
}
if (obj instanceof Short) {
return Long.valueOf(((Short) obj).shortValue());
}
if (obj instanceof Boolean) {
return Long.valueOf(true != ((Boolean) obj).booleanValue() ? 0L : 1L);
}
int i3 = 0;
if (obj instanceof Float) {
int i4 = e + 75;
b = i4 % 128;
if (i4 % 2 == 0) {
return Double.valueOf(((Float) obj).doubleValue());
}
Double valueOf = Double.valueOf(((Float) obj).doubleValue());
int i5 = 76 / 0;
return valueOf;
}
if (!(obj instanceof String)) {
int i6 = b + 33;
e = i6 % 128;
int i7 = i6 % 2;
if (!(obj instanceof Character) && !(obj instanceof CharSequence)) {
if (!z2 || ((!(obj instanceof Bundle[])) && !(obj instanceof Parcelable[]))) {
return null;
}
ArrayList arrayList = new ArrayList();
Parcelable[] parcelableArr = (Parcelable[]) obj;
int length = parcelableArr.length;
while (i3 < length) {
Parcelable parcelable = parcelableArr[i3];
if (parcelable instanceof Bundle) {
Bundle zzt = zzt((Bundle) parcelable);
if (!zzt.isEmpty()) {
arrayList.add(zzt);
}
}
i3++;
int i8 = b + 3;
e = i8 % 128;
int i9 = i8 % 2;
}
return arrayList.toArray(new Bundle[arrayList.size()]);
}
}
return zzC(obj.toString(), i, z);
}
int i10 = e + 7;
b = i10 % 128;
if (i10 % 2 == 0) {
return Long.valueOf(((Integer) obj).intValue());
}
Long.valueOf(((Integer) obj).intValue());
obj2.hashCode();
throw null;
}
int i11 = b + 7;
e = i11 % 128;
int i12 = i11 % 2;
return null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public final void zzN(Bundle bundle, String str, Object obj) {
int i = 2 % 2;
if (bundle == null) {
return;
}
if (obj instanceof Long) {
int i2 = b + 101;
e = i2 % 128;
if (i2 % 2 != 0) {
bundle.putLong(str, ((Long) obj).longValue());
return;
} else {
bundle.putLong(str, ((Long) obj).longValue());
r2.hashCode();
throw null;
}
}
if (obj instanceof String) {
bundle.putString(str, String.valueOf(obj));
int i3 = e + 95;
b = i3 % 128;
int i4 = i3 % 2;
return;
}
if (obj instanceof Double) {
bundle.putDouble(str, ((Double) obj).doubleValue());
return;
}
if (obj instanceof Bundle[]) {
bundle.putParcelableArray(str, (Bundle[]) obj);
return;
}
if (str != null) {
int i5 = b + 113;
e = i5 % 128;
if (i5 % 2 == 0) {
throw null;
}
this.zzs.zzay().zzl().zzc("Not putting event parameter. Invalid value type. name, type", this.zzs.zzj().zze(str), obj != null ? obj.getClass().getSimpleName() : null);
int i6 = e + 45;
b = i6 % 128;
int i7 = i6 % 2;
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public final boolean zzW(String str, String str2, String str3) {
int i = 2 % 2;
Object obj = null;
if (TextUtils.isEmpty(str)) {
zzom.zzc();
if (!this.zzs.zzf().zzs(null, zzdy.zzac) || TextUtils.isEmpty(str3)) {
if (TextUtils.isEmpty(str2)) {
if (!(!this.zzs.zzL())) {
this.zzs.zzay().zze().zza("Missing google_app_id. Firebase Analytics disabled. See https://goo.gl/NAOOOI");
}
return false;
}
if (!zzap(str2)) {
int i2 = b + 53;
e = i2 % 128;
int i3 = i2 % 2;
this.zzs.zzay().zze().zzb("Invalid admob_app_id. Analytics disabled.", zzel.zzn(str2));
return false;
}
}
} else if (!zzap(str)) {
int i4 = b + 49;
e = i4 % 128;
if (i4 % 2 == 0) {
this.zzs.zzL();
obj.hashCode();
throw null;
}
if (this.zzs.zzL()) {
this.zzs.zzay().zze().zzb("Invalid google_app_id. Firebase Analytics disabled. See https://goo.gl/NAOOOI. provided id", zzel.zzn(str));
}
int i5 = b + 19;
e = i5 % 128;
int i6 = i5 % 2;
return false;
}
return true;
}
/* JADX WARN: Removed duplicated region for block: B:15:0x0090 A[SYNTHETIC] */
/* JADX WARN: Removed duplicated region for block: B:43:0x0067 A[SYNTHETIC] */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
final void zzV(java.lang.String r19, java.lang.String r20, java.lang.String r21, android.os.Bundle r22, java.util.List<java.lang.String> r23, boolean r24) {
/*
Method dump skipped, instructions count: 324
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.measurement.internal.zzkz.zzV(java.lang.String, java.lang.String, java.lang.String, android.os.Bundle, java.util.List, boolean):void");
}
/* JADX INFO: Access modifiers changed from: package-private */
/* JADX WARN: Code restructure failed: missing block: B:13:0x0061, code lost:
if (r25.contains(r6) == false) goto L20;
*/
/* JADX WARN: Code restructure failed: missing block: B:14:0x006b, code lost:
r0 = com.google.android.gms.measurement.internal.zzkz.e + 79;
com.google.android.gms.measurement.internal.zzkz.b = r0 % 128;
r0 = r0 % 2;
r2 = 0;
*/
/* JADX WARN: Code restructure failed: missing block: B:53:0x0068, code lost:
if (r25.contains(r6) == false) goto L20;
*/
/* JADX WARN: Removed duplicated region for block: B:16:0x009b */
/* JADX WARN: Removed duplicated region for block: B:27:0x00bf */
/* JADX WARN: Removed duplicated region for block: B:36:0x013a */
/* JADX WARN: Removed duplicated region for block: B:41:0x0189 A[SYNTHETIC] */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final android.os.Bundle zzy(java.lang.String r22, java.lang.String r23, android.os.Bundle r24, java.util.List<java.lang.String> r25, boolean r26) {
/*
Method dump skipped, instructions count: 410
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.measurement.internal.zzkz.zzy(java.lang.String, java.lang.String, android.os.Bundle, java.util.List, boolean):android.os.Bundle");
}
public static ArrayList<Bundle> zzG(List<zzab> list) {
int i = 2 % 2;
if (list == null) {
return new ArrayList<>(0);
}
ArrayList<Bundle> arrayList = new ArrayList<>(list.size());
for (zzab zzabVar : list) {
Bundle bundle = new Bundle();
bundle.putString(HiAnalyticsConstant.BI_KEY_APP_ID, zzabVar.zza);
bundle.putString("origin", zzabVar.zzb);
bundle.putLong(AppMeasurementSdk.ConditionalUserProperty.CREATION_TIMESTAMP, zzabVar.zzd);
bundle.putString("name", zzabVar.zzc.zzb);
zzgr.zzb(bundle, Preconditions.checkNotNull(zzabVar.zzc.zza()));
bundle.putBoolean(AppMeasurementSdk.ConditionalUserProperty.ACTIVE, zzabVar.zze);
String str = zzabVar.zzf;
if (str != null) {
bundle.putString(AppMeasurementSdk.ConditionalUserProperty.TRIGGER_EVENT_NAME, str);
}
zzat zzatVar = zzabVar.zzg;
Object obj = null;
if (zzatVar != null) {
int i2 = e + 103;
b = i2 % 128;
if (i2 % 2 != 0) {
bundle.putString(AppMeasurementSdk.ConditionalUserProperty.TIMED_OUT_EVENT_NAME, zzatVar.zza);
zzar zzarVar = zzatVar.zzb;
throw null;
}
bundle.putString(AppMeasurementSdk.ConditionalUserProperty.TIMED_OUT_EVENT_NAME, zzatVar.zza);
zzar zzarVar2 = zzatVar.zzb;
if (zzarVar2 != null) {
bundle.putBundle(AppMeasurementSdk.ConditionalUserProperty.TIMED_OUT_EVENT_PARAMS, zzarVar2.zzc());
}
}
bundle.putLong(AppMeasurementSdk.ConditionalUserProperty.TRIGGER_TIMEOUT, zzabVar.zzh);
zzat zzatVar2 = zzabVar.zzi;
if (zzatVar2 != null) {
bundle.putString(AppMeasurementSdk.ConditionalUserProperty.TRIGGERED_EVENT_NAME, zzatVar2.zza);
zzar zzarVar3 = zzatVar2.zzb;
if (zzarVar3 != null) {
int i3 = e + 79;
b = i3 % 128;
int i4 = i3 % 2;
bundle.putBundle(AppMeasurementSdk.ConditionalUserProperty.TRIGGERED_EVENT_PARAMS, zzarVar3.zzc());
}
}
bundle.putLong(AppMeasurementSdk.ConditionalUserProperty.TRIGGERED_TIMESTAMP, zzabVar.zzc.zzc);
bundle.putLong(AppMeasurementSdk.ConditionalUserProperty.TIME_TO_LIVE, zzabVar.zzj);
zzat zzatVar3 = zzabVar.zzk;
if (zzatVar3 != null) {
int i5 = e + 7;
b = i5 % 128;
if (i5 % 2 != 0) {
bundle.putString(AppMeasurementSdk.ConditionalUserProperty.EXPIRED_EVENT_NAME, zzatVar3.zza);
zzar zzarVar4 = zzatVar3.zzb;
obj.hashCode();
throw null;
}
bundle.putString(AppMeasurementSdk.ConditionalUserProperty.EXPIRED_EVENT_NAME, zzatVar3.zza);
zzar zzarVar5 = zzatVar3.zzb;
if (zzarVar5 != null) {
bundle.putBundle(AppMeasurementSdk.ConditionalUserProperty.EXPIRED_EVENT_PARAMS, zzarVar5.zzc());
}
}
arrayList.add(bundle);
}
return arrayList;
}
/* JADX ERROR: JadxRuntimeException in pass: IfRegionVisitor
jadx.core.utils.exceptions.JadxRuntimeException: Can't remove SSA var: r3v28 java.util.ArrayList, still in use, count: 2, list:
(r3v28 java.util.ArrayList) from 0x00b9: INVOKE (r3v28 java.util.ArrayList) VIRTUAL call: java.util.ArrayList.size():int A[MD:():int (c), WRAPPED] (LINE:22)
(r3v28 java.util.ArrayList) from 0x00cb: PHI (r3v25 java.util.ArrayList) = (r3v24 java.util.ArrayList), (r3v28 java.util.ArrayList) binds: [B:80:0x00c9, B:77:0x00bf] A[DONT_GENERATE, DONT_INLINE]
at jadx.core.utils.InsnRemover.removeSsaVar(InsnRemover.java:151)
at jadx.core.utils.InsnRemover.unbindResult(InsnRemover.java:116)
at jadx.core.dex.visitors.regions.TernaryMod.makeTernaryInsn(TernaryMod.java:114)
at jadx.core.dex.visitors.regions.TernaryMod.processRegion(TernaryMod.java:62)
at jadx.core.dex.visitors.regions.TernaryMod.enterRegion(TernaryMod.java:45)
at jadx.core.dex.visitors.regions.DepthRegionTraversal.traverseInternal(DepthRegionTraversal.java:67)
at jadx.core.dex.visitors.regions.DepthRegionTraversal.lambda$traverseInternal$0(DepthRegionTraversal.java:68)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1597)
at jadx.core.dex.visitors.regions.DepthRegionTraversal.traverseInternal(DepthRegionTraversal.java:68)
at jadx.core.dex.visitors.regions.DepthRegionTraversal.lambda$traverseInternal$0(DepthRegionTraversal.java:68)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1597)
at java.base/java.util.Collections$UnmodifiableCollection.forEach(Collections.java:1117)
at jadx.core.dex.visitors.regions.DepthRegionTraversal.traverseInternal(DepthRegionTraversal.java:68)
at jadx.core.dex.visitors.regions.DepthRegionTraversal.lambda$traverseInternal$0(DepthRegionTraversal.java:68)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1597)
at jadx.core.dex.visitors.regions.DepthRegionTraversal.traverseInternal(DepthRegionTraversal.java:68)
at jadx.core.dex.visitors.regions.DepthRegionTraversal.lambda$traverseInternal$0(DepthRegionTraversal.java:68)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1597)
at java.base/java.util.Collections$UnmodifiableCollection.forEach(Collections.java:1117)
at jadx.core.dex.visitors.regions.DepthRegionTraversal.traverseInternal(DepthRegionTraversal.java:68)
at jadx.core.dex.visitors.regions.DepthRegionTraversal.lambda$traverseInternal$0(DepthRegionTraversal.java:68)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1597)
at jadx.core.dex.visitors.regions.DepthRegionTraversal.traverseInternal(DepthRegionTraversal.java:68)
at jadx.core.dex.visitors.regions.DepthRegionTraversal.lambda$traverseInternal$0(DepthRegionTraversal.java:68)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1597)
at java.base/java.util.Collections$UnmodifiableCollection.forEach(Collections.java:1117)
at jadx.core.dex.visitors.regions.DepthRegionTraversal.traverseInternal(DepthRegionTraversal.java:68)
at jadx.core.dex.visitors.regions.DepthRegionTraversal.lambda$traverseInternal$0(DepthRegionTraversal.java:68)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1597)
at jadx.core.dex.visitors.regions.DepthRegionTraversal.traverseInternal(DepthRegionTraversal.java:68)
at jadx.core.dex.visitors.regions.DepthRegionTraversal.lambda$traverseInternal$0(DepthRegionTraversal.java:68)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1597)
at java.base/java.util.Collections$UnmodifiableCollection.forEach(Collections.java:1117)
at jadx.core.dex.visitors.regions.DepthRegionTraversal.traverseInternal(DepthRegionTraversal.java:68)
at jadx.core.dex.visitors.regions.DepthRegionTraversal.lambda$traverseInternal$0(DepthRegionTraversal.java:68)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1597)
at jadx.core.dex.visitors.regions.DepthRegionTraversal.traverseInternal(DepthRegionTraversal.java:68)
at jadx.core.dex.visitors.regions.DepthRegionTraversal.lambda$traverseInternal$0(DepthRegionTraversal.java:68)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1597)
at java.base/java.util.Collections$UnmodifiableCollection.forEach(Collections.java:1117)
at jadx.core.dex.visitors.regions.DepthRegionTraversal.traverseInternal(DepthRegionTraversal.java:68)
at jadx.core.dex.visitors.regions.DepthRegionTraversal.lambda$traverseInternal$0(DepthRegionTraversal.java:68)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1597)
at jadx.core.dex.visitors.regions.DepthRegionTraversal.traverseInternal(DepthRegionTraversal.java:68)
at jadx.core.dex.visitors.regions.DepthRegionTraversal.lambda$traverseInternal$0(DepthRegionTraversal.java:68)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1597)
at java.base/java.util.Collections$UnmodifiableCollection.forEach(Collections.java:1117)
at jadx.core.dex.visitors.regions.DepthRegionTraversal.traverseInternal(DepthRegionTraversal.java:68)
at jadx.core.dex.visitors.regions.DepthRegionTraversal.lambda$traverseInternal$0(DepthRegionTraversal.java:68)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1597)
at jadx.core.dex.visitors.regions.DepthRegionTraversal.traverseInternal(DepthRegionTraversal.java:68)
at jadx.core.dex.visitors.regions.DepthRegionTraversal.lambda$traverseInternal$0(DepthRegionTraversal.java:68)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1597)
at java.base/java.util.Collections$UnmodifiableCollection.forEach(Collections.java:1117)
at jadx.core.dex.visitors.regions.DepthRegionTraversal.traverseInternal(DepthRegionTraversal.java:68)
at jadx.core.dex.visitors.regions.DepthRegionTraversal.lambda$traverseInternal$0(DepthRegionTraversal.java:68)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1597)
at jadx.core.dex.visitors.regions.DepthRegionTraversal.traverseInternal(DepthRegionTraversal.java:68)
at jadx.core.dex.visitors.regions.DepthRegionTraversal.traverse(DepthRegionTraversal.java:19)
at jadx.core.dex.visitors.regions.TernaryMod.process(TernaryMod.java:35)
at jadx.core.dex.visitors.regions.IfRegionVisitor.process(IfRegionVisitor.java:34)
at jadx.core.dex.visitors.regions.IfRegionVisitor.visit(IfRegionVisitor.java:30)
*/
/* JADX WARN: Removed duplicated region for block: B:32:0x0110 */
/* JADX WARN: Removed duplicated region for block: B:34:0x011a */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
final int zza(java.lang.String r18, java.lang.String r19, java.lang.String r20, java.lang.Object r21, android.os.Bundle r22, java.util.List<java.lang.String> r23, boolean r24, boolean r25) {
/*
Method dump skipped, instructions count: 504
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.measurement.internal.zzkz.zza(java.lang.String, java.lang.String, java.lang.String, java.lang.Object, android.os.Bundle, java.util.List, boolean, boolean):int");
}
private static void a(byte[] bArr, int[] iArr, boolean z, Object[] objArr) {
int i;
char[] cArr;
int i2;
int i3 = 2;
int i4 = 2 % 2;
TVH tvh = new TVH();
int i5 = 0;
int i6 = iArr[0];
int i7 = iArr[1];
int i8 = iArr[2];
int i9 = iArr[3];
char[] cArr2 = d;
if (cArr2 != null) {
int length = cArr2.length;
char[] cArr3 = new char[length];
int i10 = 0;
while (i10 < length) {
int i11 = $10 + 57;
$11 = i11 % 128;
if (i11 % i3 == 0) {
try {
Object[] objArr2 = new Object[1];
objArr2[i5] = Integer.valueOf(cArr2[i10]);
Object obj = xzZ.y.get(1645349359);
if (obj != null) {
i2 = length;
} else {
Class cls = (Class) xzZ.c((ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)) + 222, (ViewConfiguration.getDoubleTapTimeout() >> 16) + 5, (char) ((CdmaCellLocation.convertQuartSecToDecDegrees(i5) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(i5) == 0.0d ? 0 : -1)) + 41977));
byte b2 = (byte) i5;
byte b3 = b2;
i2 = length;
Object[] objArr3 = new Object[1];
c(b2, b3, b3, objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
xzZ.y.put(1645349359, obj);
}
cArr3[i10] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
i10 <<= 1;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
} else {
i2 = length;
Object[] objArr4 = {Integer.valueOf(cArr2[i10])};
Object obj2 = xzZ.y.get(1645349359);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(TextUtils.indexOf("", "", 0) + 223, 5 - ExpandableListView.getPackedPositionType(0L), (char) (41976 - (ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1))));
byte b4 = (byte) 0;
byte b5 = b4;
Object[] objArr5 = new Object[1];
c(b4, b5, b5, objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE);
xzZ.y.put(1645349359, obj2);
}
cArr3[i10] = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue();
i10++;
}
length = i2;
i3 = 2;
i5 = 0;
}
cArr2 = cArr3;
}
char[] cArr4 = new char[i7];
char c = 0;
System.arraycopy(cArr2, i6, cArr4, 0, i7);
if (bArr != null) {
int i12 = $10 + 113;
$11 = i12 % 128;
if (i12 % 2 == 0) {
cArr = new char[i7];
tvh.c = 0;
} else {
cArr = new char[i7];
tvh.c = 0;
c = 0;
}
while (tvh.c < i7) {
int i13 = $10 + 45;
$11 = i13 % 128;
int i14 = i13 % 2;
if (bArr[tvh.c] == 1) {
int i15 = $10 + 13;
$11 = i15 % 128;
int i16 = i15 % 2;
int i17 = tvh.c;
Object[] objArr6 = {Integer.valueOf(cArr4[tvh.c]), Integer.valueOf(c)};
Object obj3 = xzZ.y.get(850398076);
if (obj3 == null) {
obj3 = ((Class) xzZ.c((ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 501, 5 - (ViewConfiguration.getKeyRepeatTimeout() >> 16), (char) ((ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)) + 53))).getMethod("F", Integer.TYPE, Integer.TYPE);
xzZ.y.put(850398076, obj3);
}
cArr[i17] = ((Character) ((Method) obj3).invoke(null, objArr6)).charValue();
} else {
int i18 = tvh.c;
Object[] objArr7 = {Integer.valueOf(cArr4[tvh.c]), Integer.valueOf(c)};
Object obj4 = xzZ.y.get(1084521042);
if (obj4 == null) {
obj4 = ((Class) xzZ.c((ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)) + 14, 5 - (ViewConfiguration.getTapTimeout() >> 16), (char) ((ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)) + 58135))).getMethod("H", Integer.TYPE, Integer.TYPE);
xzZ.y.put(1084521042, obj4);
}
cArr[i18] = ((Character) ((Method) obj4).invoke(null, objArr7)).charValue();
}
c = cArr[tvh.c];
Object[] objArr8 = {tvh, tvh};
Object obj5 = xzZ.y.get(1698744941);
if (obj5 == null) {
Class cls3 = (Class) xzZ.c(402 - (TypedValue.complexToFraction(0, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFraction(0, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), Color.blue(0) + 5, (char) (21608 - (Process.myPid() >> 22)));
byte b6 = (byte) 0;
byte b7 = b6;
Object[] objArr9 = new Object[1];
c(b6, b7, (byte) (b7 + 1), objArr9);
obj5 = cls3.getMethod((String) objArr9[0], Object.class, Object.class);
xzZ.y.put(1698744941, obj5);
}
((Method) obj5).invoke(null, objArr8);
}
int i19 = $10 + 27;
$11 = i19 % 128;
int i20 = i19 % 2;
cArr4 = cArr;
}
if (i9 > 0) {
char[] cArr5 = new char[i7];
i = 0;
System.arraycopy(cArr4, 0, cArr5, 0, i7);
int i21 = i7 - i9;
System.arraycopy(cArr5, 0, cArr4, i21, i9);
System.arraycopy(cArr5, i9, cArr4, 0, i21);
} else {
i = 0;
}
if (z) {
char[] cArr6 = new char[i7];
while (true) {
tvh.c = i;
if (tvh.c >= i7) {
break;
}
cArr6[tvh.c] = cArr4[(i7 - tvh.c) - 1];
i = tvh.c + 1;
}
cArr4 = cArr6;
}
if (i8 > 0) {
int i22 = $10 + 101;
$11 = i22 % 128;
int i23 = i22 % 2;
int i24 = 0;
while (true) {
tvh.c = i24;
if (tvh.c >= i7) {
break;
}
cArr4[tvh.c] = (char) (cArr4[tvh.c] - iArr[2]);
i24 = tvh.c + 1;
}
}
objArr[0] = new String(cArr4);
}
static void b() {
d = new char[]{40019, 40122, 40126, 40127};
}
public final long zzr(long j, long j2) {
int i = 2 % 2;
int i2 = b;
int i3 = i2 + 111;
e = i3 % 128;
int i4 = i3 % 2;
long j3 = (j + (j2 * 60000)) / 86400000;
int i5 = i2 + 1;
e = i5 % 128;
int i6 = i5 % 2;
return j3;
}
@Override // com.google.android.gms.measurement.internal.zzgp
protected final boolean zzf() {
int i = 2 % 2;
int i2 = b + 61;
int i3 = i2 % 128;
e = i3;
boolean z = i2 % 2 != 0;
int i4 = i3 + 121;
b = i4 % 128;
if (i4 % 2 != 0) {
int i5 = 2 / 0;
}
return z;
}
static {
e = 1;
b();
zzb = new String[]{"firebase_", "google_", "ga_"};
zzc = new String[]{"_err"};
int i = b + 119;
e = i % 128;
if (i % 2 == 0) {
throw null;
}
}
}