package com.google.android.gms.analytics; import android.os.Process; import android.text.TextUtils; import android.view.ViewConfiguration; import com.google.android.gms.common.internal.Preconditions; import com.google.android.gms.internal.gtm.zzad; import com.google.android.gms.internal.gtm.zzao; import com.google.android.gms.internal.gtm.zzas; import com.google.android.gms.internal.gtm.zzcd; import com.google.android.gms.internal.gtm.zzcz; import com.google.android.gms.internal.gtm.zzq; import com.huawei.hms.support.feature.result.CommonConstant; import java.util.HashMap; import java.util.Map; import org.bouncycastle.crypto.tls.CipherSuite; /* JADX INFO: Access modifiers changed from: package-private */ /* loaded from: classes.dex */ public final class zzp implements Runnable { private final Map zzti; private final boolean zztj; private final String zztk; private final long zztl; private final boolean zztm; private final boolean zztn; private final String zzto; private final Tracker zztp; private static final byte[] $$a = {51, -93, -34, -1}; private static final int $$b = CipherSuite.TLS_RSA_PSK_WITH_AES_128_GCM_SHA256; private static int $10 = 0; private static int $11 = 1; private static int c = 0; private static int a = 1; private static char[] d = {3839}; private static long b = 690562323988967221L; /* JADX INFO: Access modifiers changed from: package-private */ public zzp(Tracker tracker, Map map, boolean z, String str, long j, boolean z2, boolean z3, String str2) { this.zztp = tracker; this.zzti = map; this.zztj = z; this.zztk = str; this.zztl = j; this.zztm = z2; this.zztn = z3; this.zzto = str2; } /* JADX WARN: Removed duplicated region for block: B:10:0x0023 */ /* JADX WARN: Removed duplicated region for block: B:7:0x001b */ /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0023 -> B:4:0x0027). 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, byte r8, java.lang.Object[] r9) { /* int r8 = r8 + 4 int r6 = r6 * 2 int r6 = r6 + 1 int r7 = r7 + 98 byte[] r0 = com.google.android.gms.analytics.zzp.$$a byte[] r1 = new byte[r6] r2 = 0 if (r0 != 0) goto L13 r3 = r7 r4 = r2 r7 = r6 goto L27 L13: r3 = r2 L14: int r4 = r3 + 1 byte r5 = (byte) r7 r1[r3] = r5 if (r4 != r6) goto L23 java.lang.String r6 = new java.lang.String r6.(r1, r2) r9[r2] = r6 return L23: int r8 = r8 + 1 r3 = r0[r8] L27: int r7 = r7 + r3 r3 = r4 goto L14 */ throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.analytics.zzp.f(int, byte, byte, java.lang.Object[]):void"); } @Override // java.lang.Runnable public final void run() { int i = 2 % 2; int i2 = c + 69; a = i2 % 128; int i3 = i2 % 2; if (Tracker.zza(this.zztp).zzax()) { this.zzti.put("sc", "start"); } Map map = this.zzti; GoogleAnalytics zzcr = this.zztp.zzcr(); Preconditions.checkNotMainThread("getClientId can not be called from the main thread"); zzcz.zzc(map, "cid", zzcr.zzab().zzdh().zzeh()); String str = (String) this.zzti.get("sf"); if (str != null) { double zza = zzcz.zza(str, 100.0d); if (zzcz.zza(zza, (String) this.zzti.get("cid"))) { this.zztp.zzb("Sampling enabled. Hit sampled out. sample rate", Double.valueOf(zza)); return; } } zzad zzb = Tracker.zzb(this.zztp); if (this.zztj) { zzcz.zzb((Map) this.zzti, "ate", zzb.zzbw()); zzcz.zzb((Map) this.zzti, "adid", zzb.zzcd()); } else { this.zzti.remove("ate"); this.zzti.remove("adid"); } zzq zzdv = Tracker.zzc(this.zztp).zzdv(); zzcz.zzb((Map) this.zzti, "an", zzdv.zzaz()); zzcz.zzb((Map) this.zzti, "av", zzdv.zzba()); zzcz.zzb((Map) this.zzti, "aid", zzdv.zzbb()); zzcz.zzb((Map) this.zzti, "aiid", zzdv.zzbc()); Map map2 = this.zzti; Object[] objArr = new Object[1]; e((char) (33052 - (ViewConfiguration.getJumpTapTimeout() >> 16)), (Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)) - 1, (ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)), objArr); map2.put("v", ((String) objArr[0]).intern()); this.zzti.put("_v", zzao.zzwe); zzcz.zzb((Map) this.zzti, "ul", Tracker.zzd(this.zztp).zzfa().getLanguage()); zzcz.zzb((Map) this.zzti, "sr", Tracker.zze(this.zztp).zzfb()); if (!this.zztk.equals("transaction") && !this.zztk.equals("item") && !Tracker.zzf(this.zztp).zzfm()) { Tracker.zzg(this.zztp).zza(this.zzti, "Too many hits sent too quickly, rate limiting invoked"); return; } long zzag = zzcz.zzag((String) this.zzti.get("ht")); if (zzag == 0) { int i4 = a + 15; c = i4 % 128; if (i4 % 2 != 0) { zzag = this.zztl; int i5 = 85 / 0; } else { zzag = this.zztl; } } long j = zzag; if (this.zztm) { Tracker.zzh(this.zztp).zzc("Dry run enabled. Would have sent hit", new zzcd(this.zztp, this.zzti, j, this.zztn)); int i6 = a + 23; c = i6 % 128; int i7 = i6 % 2; return; } String str2 = (String) this.zzti.get("cid"); HashMap hashMap = new HashMap(); zzcz.zza(hashMap, CommonConstant.KEY_UID, (Map) this.zzti); zzcz.zza(hashMap, "an", (Map) this.zzti); zzcz.zza(hashMap, "aid", (Map) this.zzti); zzcz.zza(hashMap, "av", (Map) this.zzti); zzcz.zza(hashMap, "aiid", (Map) this.zzti); this.zzti.put("_s", String.valueOf(Tracker.zzi(this.zztp).zza(new zzas(0L, str2, this.zzto, !TextUtils.isEmpty((CharSequence) this.zzti.get("adid")), 0L, hashMap)))); Tracker.zzj(this.zztp).zza(new zzcd(this.zztp, this.zzti, j, this.zztn)); } /* JADX WARN: Removed duplicated region for block: B:30:0x03c2 */ /* JADX WARN: Removed duplicated region for block: B:32:0x03c3 */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ private static void e(char r23, int r24, int r25, java.lang.Object[] r26) { /* Method dump skipped, instructions count: 972 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.analytics.zzp.e(char, int, int, java.lang.Object[]):void"); } }