package com.google.android.gms.internal.gtm; import android.os.SystemClock; import android.telephony.cdma.CdmaCellLocation; import android.text.TextUtils; import android.view.Gravity; import android.view.MotionEvent; import android.view.View; import android.view.ViewConfiguration; import android.widget.ExpandableListView; import com.google.android.gms.common.internal.Preconditions; import com.google.android.gms.maps.model.BitmapDescriptorFactory; import com.google.common.base.Ascii; import com.huawei.hms.framework.common.ContainerUtils; import java.lang.reflect.Method; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Map; import net.sf.scuba.smartcards.ISOFileInfo; import o.C3614bBe; import o.xzZ; import org.bouncycastle.crypto.tls.CipherSuite; /* loaded from: classes.dex */ public final class zzcd { private final List zzaaz; private final long zzaba; private final long zzabb; private final int zzabc; private final boolean zzabd; private final String zzabe; private final Map zztc; private static final byte[] $$a = {Ascii.SYN, 77, -47, -12}; private static final int $$b = CipherSuite.TLS_PSK_WITH_RC4_128_SHA; private static int $10 = 0; private static int $11 = 1; private static int c = 0; private static int j = 1; private static char[] b = {15921}; private static int a = 1934311137; private static boolean e = true; private static boolean d = true; public zzcd(zzam zzamVar, Map map, long j2, boolean z) { this(zzamVar, map, j2, z, 0L, 0, null); } /* 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 g(short r6, byte r7, int r8, java.lang.Object[] r9) { /* int r7 = r7 * 2 int r0 = 1 - r7 int r8 = r8 + 4 int r6 = r6 * 57 int r6 = 122 - r6 byte[] r1 = com.google.android.gms.internal.gtm.zzcd.$$a byte[] r0 = new byte[r0] r2 = 0 int r7 = 0 - r7 if (r1 != 0) goto L16 r3 = r8 r4 = r2 goto L2d L16: r3 = r2 L17: byte r4 = (byte) r6 r0[r3] = r4 int r4 = r3 + 1 if (r3 != r7) goto L26 java.lang.String r6 = new java.lang.String r6.(r0, r2) r9[r2] = r6 return L26: int r8 = r8 + 1 r3 = r1[r8] r5 = r3 r3 = r8 r8 = r5 L2d: int r6 = r6 + r8 r8 = r3 r3 = r4 goto L17 */ throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.gtm.zzcd.g(short, byte, int, java.lang.Object[]):void"); } public zzcd(zzam zzamVar, Map map, long j2, boolean z, long j3, int i) { this(zzamVar, map, j2, z, j3, i, null); } /* JADX WARN: Removed duplicated region for block: B:17:0x006d */ /* JADX WARN: Removed duplicated region for block: B:21:0x008d */ /* JADX WARN: Removed duplicated region for block: B:36:0x00c3 */ /* JADX WARN: Removed duplicated region for block: B:56:0x010c */ /* JADX WARN: Removed duplicated region for block: B:64:0x0077 */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public zzcd(com.google.android.gms.internal.gtm.zzam r1, java.util.Map r2, long r3, boolean r5, long r6, int r8, java.util.List r9) { /* Method dump skipped, instructions count: 316 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.gtm.zzcd.(com.google.android.gms.internal.gtm.zzam, java.util.Map, long, boolean, long, int, java.util.List):void"); } private static boolean zzc(Object obj) { int i = 2 % 2; if (obj != null) { boolean startsWith = obj.toString().startsWith(ContainerUtils.FIELD_DELIMITER); int i2 = j + 13; c = i2 % 128; if (i2 % 2 != 0) { int i3 = 64 / 0; } return startsWith; } int i4 = j + 113; int i5 = i4 % 128; c = i5; int i6 = i4 % 2; int i7 = i5 + 83; j = i7 % 128; int i8 = i7 % 2; return false; } /* JADX WARN: Code restructure failed: missing block: B:10:0x0032, code lost: r5 = com.google.android.gms.internal.gtm.zzcd.c + 95; com.google.android.gms.internal.gtm.zzcd.j = r5 % 128; */ /* JADX WARN: Code restructure failed: missing block: B:11:0x003d, code lost: if ((r5 % 2) != 0) goto L17; */ /* JADX WARN: Code restructure failed: missing block: B:12:0x003f, code lost: r4 = 13017; */ /* JADX WARN: Code restructure failed: missing block: B:13:0x0041, code lost: r8 = r8.substring(0, r4); r7.zzc("Hit param name is too long and will be trimmed", java.lang.Integer.valueOf(r1), r8); */ /* JADX WARN: Code restructure failed: missing block: B:15:0x0050, code lost: if (android.text.TextUtils.isEmpty(r8) == false) goto L22; */ /* JADX WARN: Code restructure failed: missing block: B:16:0x0052, code lost: r7 = com.google.android.gms.internal.gtm.zzcd.c + 19; com.google.android.gms.internal.gtm.zzcd.j = r7 % 128; r7 = r7 % 2; */ /* JADX WARN: Code restructure failed: missing block: B:17:0x005b, code lost: return null; */ /* JADX WARN: Code restructure failed: missing block: B:19:0x005c, code lost: return r8; */ /* JADX WARN: Code restructure failed: missing block: B:20:0x0018, code lost: return null; */ /* JADX WARN: Code restructure failed: missing block: B:21:0x0016, code lost: if (r8 == null) goto L8; */ /* JADX WARN: Code restructure failed: missing block: B:4:0x0013, code lost: if (r8 == null) goto L8; */ /* JADX WARN: Code restructure failed: missing block: B:5:0x0019, code lost: r8 = r8.toString(); */ /* JADX WARN: Code restructure failed: missing block: B:6:0x0023, code lost: if (r8.startsWith(com.huawei.hms.framework.common.ContainerUtils.FIELD_DELIMITER) == false) goto L12; */ /* JADX WARN: Code restructure failed: missing block: B:7:0x0025, code lost: r8 = r8.substring(1); */ /* JADX WARN: Code restructure failed: missing block: B:8:0x002a, code lost: r1 = r8.length(); r4 = 256; */ /* JADX WARN: Code restructure failed: missing block: B:9:0x0030, code lost: if (r1 <= 256) goto L18; */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ private static java.lang.String zza(com.google.android.gms.internal.gtm.zzam r7, java.lang.Object r8) { /* r0 = 2 int r1 = r0 % r0 int r1 = com.google.android.gms.internal.gtm.zzcd.c int r1 = r1 + 21 int r2 = r1 % 128 com.google.android.gms.internal.gtm.zzcd.j = r2 int r1 = r1 % r0 r2 = 0 r3 = 0 if (r1 != 0) goto L16 r1 = 88 int r1 = r1 / r3 if (r8 != 0) goto L19 goto L18 L16: if (r8 != 0) goto L19 L18: return r2 L19: java.lang.String r8 = r8.toString() java.lang.String r1 = "&" boolean r1 = r8.startsWith(r1) if (r1 == 0) goto L2a r1 = 1 java.lang.String r8 = r8.substring(r1) L2a: int r1 = r8.length() r4 = 256(0x100, float:3.59E-43) if (r1 <= r4) goto L4c int r5 = com.google.android.gms.internal.gtm.zzcd.c int r5 = r5 + 95 int r6 = r5 % 128 com.google.android.gms.internal.gtm.zzcd.j = r6 int r5 = r5 % r0 java.lang.String r6 = "Hit param name is too long and will be trimmed" if (r5 != 0) goto L41 r4 = 13017(0x32d9, float:1.8241E-41) L41: java.lang.String r8 = r8.substring(r3, r4) java.lang.Integer r1 = java.lang.Integer.valueOf(r1) r7.zzc(r6, r1, r8) L4c: boolean r7 = android.text.TextUtils.isEmpty(r8) if (r7 == 0) goto L5c int r7 = com.google.android.gms.internal.gtm.zzcd.c int r7 = r7 + 19 int r8 = r7 % 128 com.google.android.gms.internal.gtm.zzcd.j = r8 int r7 = r7 % r0 return r2 L5c: return r8 */ throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.gtm.zzcd.zza(com.google.android.gms.internal.gtm.zzam, java.lang.Object):java.lang.String"); } private static String zzb(zzam zzamVar, Object obj) { String obj2; int i = 2 % 2; if (obj == null) { int i2 = c + 117; j = i2 % 128; if (i2 % 2 == 0) { int i3 = 20 / 0; } obj2 = ""; } else { obj2 = obj.toString(); } int length = obj2.length(); if (length <= 8192) { return obj2; } int i4 = j + 101; c = i4 % 128; int i5 = i4 % 2; String substring = obj2.substring(0, 8192); zzamVar.zzc("Hit param value is too long and will be trimmed", Integer.valueOf(length), substring); return substring; } public final long zzfk() { int i = 2 % 2; int i2 = c + 63; j = i2 % 128; int i3 = i2 % 2; Object[] objArr = new Object[1]; f(null, new byte[]{ISOFileInfo.DATA_BYTES2}, null, 127 - Gravity.getAbsoluteGravity(0, 0), objArr); long zzag = zzcz.zzag(zzd("_s", ((String) objArr[0]).intern())); int i4 = c + 9; j = i4 % 128; if (i4 % 2 == 0) { int i5 = 65 / 0; } return zzag; } public final String zzfl() { int i = 2 % 2; int i2 = j + 87; c = i2 % 128; if (i2 % 2 != 0) { zzd("_m", ""); throw null; } String zzd = zzd("_m", ""); int i3 = j + 73; c = i3 % 128; if (i3 % 2 == 0) { return zzd; } throw null; } private final String zzd(String str, String str2) { int i = 2 % 2; Preconditions.checkNotEmpty(str); Preconditions.checkArgument(!str.startsWith(ContainerUtils.FIELD_DELIMITER), "Short param name required"); String str3 = this.zztc.get(str); if (str3 == null) { int i2 = c + 81; j = i2 % 128; if (i2 % 2 == 0) { int i3 = 0 / 0; } return str2; } int i4 = j + 111; c = i4 % 128; if (i4 % 2 == 0) { return str3; } Object obj = null; obj.hashCode(); throw null; } public final String toString() { int i = 2 % 2; StringBuilder sb = new StringBuilder("ht="); sb.append(this.zzabb); if (this.zzaba != 0) { sb.append(", dbId="); sb.append(this.zzaba); } if (this.zzabc != 0) { sb.append(", appUID="); sb.append(this.zzabc); } ArrayList arrayList = new ArrayList(this.zztc.keySet()); Collections.sort(arrayList); int size = arrayList.size(); int i2 = c + 31; j = i2 % 128; int i3 = i2 % 2; int i4 = 0; while (i4 < size) { Object obj = arrayList.get(i4); i4++; String str = (String) obj; sb.append(", "); sb.append(str); sb.append(ContainerUtils.KEY_VALUE_DELIMITER); sb.append(this.zztc.get(str)); int i5 = j + 63; c = i5 % 128; int i6 = i5 % 2; } return sb.toString(); } private static void f(char[] cArr, byte[] bArr, int[] iArr, int i, Object[] objArr) { int i2; char[] cArr2; int i3 = 2 % 2; C3614bBe c3614bBe = new C3614bBe(); char[] cArr3 = b; long j2 = 0; int i4 = 0; if (cArr3 != null) { int length = cArr3.length; char[] cArr4 = new char[length]; int i5 = 0; while (i5 < length) { try { Object[] objArr2 = new Object[1]; objArr2[i4] = Integer.valueOf(cArr3[i5]); Object obj = xzZ.y.get(-950481649); if (obj == null) { Class cls = (Class) xzZ.c(338 - (ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), (SystemClock.uptimeMillis() > j2 ? 1 : (SystemClock.uptimeMillis() == j2 ? 0 : -1)) + 4, (char) (CdmaCellLocation.convertQuartSecToDecDegrees(i4) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(i4) == 0.0d ? 0 : -1))); byte b2 = (byte) 1; byte b3 = (byte) (b2 - 1); Object[] objArr3 = new Object[1]; g(b2, b3, (byte) (b3 - 1), objArr3); obj = cls.getMethod((String) objArr3[0], Integer.TYPE); xzZ.y.put(-950481649, obj); } cArr4[i5] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue(); i5++; j2 = 0; i4 = 0; } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } cArr3 = cArr4; } try { Object[] objArr4 = {Integer.valueOf(a)}; Object obj2 = xzZ.y.get(-1521625011); if (obj2 == null) { Class cls2 = (Class) xzZ.c((ViewConfiguration.getScrollBarFadeDuration() >> 16) + 283, 6 - (SystemClock.elapsedRealtimeNanos() > 0L ? 1 : (SystemClock.elapsedRealtimeNanos() == 0L ? 0 : -1)), (char) ((ViewConfiguration.getScrollBarFadeDuration() >> 16) + 39813)); byte b4 = (byte) 0; byte b5 = b4; Object[] objArr5 = new Object[1]; g(b4, b5, (byte) (b5 - 1), objArr5); obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE); xzZ.y.put(-1521625011, obj2); } int intValue = ((Integer) ((Method) obj2).invoke(null, objArr4)).intValue(); if (d) { int i6 = $10 + 117; $11 = i6 % 128; if (i6 % 2 == 0) { c3614bBe.c = bArr.length; cArr2 = new char[c3614bBe.c]; i2 = 0; } else { i2 = 0; c3614bBe.c = bArr.length; cArr2 = new char[c3614bBe.c]; } c3614bBe.a = i2; while (c3614bBe.a < c3614bBe.c) { int i7 = $11 + 119; $10 = i7 % 128; int i8 = i7 % 2; cArr2[c3614bBe.a] = (char) (cArr3[bArr[(c3614bBe.c - 1) - c3614bBe.a] + i] - intValue); Object[] objArr6 = {c3614bBe, c3614bBe}; Object obj3 = xzZ.y.get(1779759091); if (obj3 == null) { obj3 = ((Class) xzZ.c(View.MeasureSpec.getMode(0) + 40, 4 - TextUtils.lastIndexOf("", '0', 0), (char) (MotionEvent.axisFromString("") + 1))).getMethod("D", Object.class, Object.class); xzZ.y.put(1779759091, obj3); } ((Method) obj3).invoke(null, objArr6); } objArr[0] = new String(cArr2); return; } if (!e) { c3614bBe.c = iArr.length; char[] cArr5 = new char[c3614bBe.c]; c3614bBe.a = 0; while (c3614bBe.a < c3614bBe.c) { cArr5[c3614bBe.a] = (char) (cArr3[iArr[(c3614bBe.c - 1) - c3614bBe.a] - i] - intValue); c3614bBe.a++; int i9 = $11 + 59; $10 = i9 % 128; int i10 = i9 % 2; } objArr[0] = new String(cArr5); return; } c3614bBe.c = cArr.length; char[] cArr6 = new char[c3614bBe.c]; c3614bBe.a = 0; while (c3614bBe.a < c3614bBe.c) { int i11 = $11 + 21; $10 = i11 % 128; if (i11 % 2 != 0) { int i12 = c3614bBe.a; int i13 = c3614bBe.c; cArr6[i12] = (char) (cArr3[cArr[0 % c3614bBe.a] / i] / intValue); Object[] objArr7 = {c3614bBe, c3614bBe}; Object obj4 = xzZ.y.get(1779759091); if (obj4 == null) { obj4 = ((Class) xzZ.c((ViewConfiguration.getPressedStateDuration() >> 16) + 40, 5 - (ViewConfiguration.getTouchSlop() >> 8), (char) View.MeasureSpec.getSize(0))).getMethod("D", Object.class, Object.class); xzZ.y.put(1779759091, obj4); } ((Method) obj4).invoke(null, objArr7); } else { cArr6[c3614bBe.a] = (char) (cArr3[cArr[(c3614bBe.c - 1) - c3614bBe.a] - i] - intValue); Object[] objArr8 = {c3614bBe, c3614bBe}; Object obj5 = xzZ.y.get(1779759091); if (obj5 == null) { obj5 = ((Class) xzZ.c((ViewConfiguration.getKeyRepeatDelay() >> 16) + 40, (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)) + 5, (char) (ViewConfiguration.getTapTimeout() >> 16))).getMethod("D", Object.class, Object.class); xzZ.y.put(1779759091, obj5); } ((Method) obj5).invoke(null, objArr8); } } objArr[0] = new String(cArr6); } catch (Throwable th2) { Throwable cause2 = th2.getCause(); if (cause2 == null) { throw th2; } throw cause2; } } public final boolean zzfj() { int i = 2 % 2; int i2 = j; int i3 = i2 + 103; c = i3 % 128; if (i3 % 2 != 0) { throw null; } boolean z = this.zzabd; int i4 = i2 + 109; c = i4 % 128; int i5 = i4 % 2; return z; } public final List zzfi() { int i = 2 % 2; int i2 = c + 33; int i3 = i2 % 128; j = i3; Object obj = null; if (i2 % 2 == 0) { throw null; } List list = this.zzaaz; int i4 = i3 + 123; c = i4 % 128; if (i4 % 2 == 0) { return list; } obj.hashCode(); throw null; } public final long zzfh() { int i = 2 % 2; int i2 = j; int i3 = i2 + 41; c = i3 % 128; int i4 = i3 % 2; long j2 = this.zzabb; int i5 = i2 + 57; c = i5 % 128; if (i5 % 2 == 0) { return j2; } throw null; } public final long zzfg() { int i = 2 % 2; int i2 = j; int i3 = i2 + 63; c = i3 % 128; int i4 = i3 % 2; long j2 = this.zzaba; int i5 = i2 + 49; c = i5 % 128; if (i5 % 2 != 0) { int i6 = 70 / 0; } return j2; } public final int zzff() { int i = 2 % 2; int i2 = j + 123; int i3 = i2 % 128; c = i3; int i4 = i2 % 2; int i5 = this.zzabc; int i6 = i3 + 73; j = i6 % 128; int i7 = i6 % 2; return i5; } public final Map zzdm() { int i = 2 % 2; int i2 = c + 21; j = i2 % 128; int i3 = i2 % 2; Map map = this.zztc; if (i3 == 0) { int i4 = 34 / 0; } return map; } }