package com.google.android.gms.internal.gtm; import android.graphics.Color; import android.os.Process; import android.os.SystemClock; import android.text.TextUtils; import android.view.KeyEvent; import android.view.MotionEvent; import android.view.View; import android.view.ViewConfiguration; import android.widget.ExpandableListView; import java.lang.reflect.Method; import java.util.ArrayList; import java.util.HashMap; import java.util.Map; import o.xzZ; import o.zUI; import org.bouncycastle.crypto.tls.CipherSuite; /* loaded from: classes.dex */ public final class zzgw { private static final byte[] $$a = {118, -18, 54, 121}; private static final int $$b = 39; private static int $10 = 0; private static int $11 = 1; private static int a = 1; private static int b; private static int d; private static final Map zzarc; /* JADX WARN: Removed duplicated region for block: B:10:0x0024 */ /* JADX WARN: Removed duplicated region for block: B:7:0x001c */ /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0024 -> B:4:0x0028). 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 e(int r5, short r6, byte r7, java.lang.Object[] r8) { /* int r7 = r7 + 4 byte[] r0 = com.google.android.gms.internal.gtm.zzgw.$$a int r6 = r6 * 4 int r1 = r6 + 1 int r5 = r5 * 7 int r5 = 76 - r5 byte[] r1 = new byte[r1] r2 = 0 if (r0 != 0) goto L14 r4 = r6 r3 = r2 goto L28 L14: r3 = r2 L15: byte r4 = (byte) r5 r1[r3] = r4 int r7 = r7 + 1 if (r3 != r6) goto L24 java.lang.String r5 = new java.lang.String r5.(r1, r2) r8[r2] = r5 return L24: int r3 = r3 + 1 r4 = r0[r7] L28: int r5 = r5 + r4 goto L15 */ throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.gtm.zzgw.e(int, short, byte, java.lang.Object[]):void"); } public static zzol zza(String str, Map> map, zzfl zzflVar) { int i = 2 % 2; Map map2 = zzarc; if (!map2.containsKey(str)) { StringBuilder sb = new StringBuilder(String.valueOf(str).length() + 47); sb.append("Fail to convert "); sb.append(str); sb.append(" to the internal representation"); throw new RuntimeException(sb.toString()); } zzgx zzgxVar = map2.get(str); String[] zzlc = zzgxVar.zzlc(); ArrayList arrayList = new ArrayList(); for (int i2 = 0; i2 < zzlc.length; i2++) { int i3 = d + 73; a = i3 % 128; int i4 = i3 % 2; if (!map.containsKey(zzlc[i2])) { int i5 = d + 69; a = i5 % 128; if (i5 % 2 == 0) { arrayList.add(zzog.zzaum); int i6 = 27 / 0; } else { arrayList.add(zzog.zzaum); } } else { arrayList.add(map.get(zzlc[i2])); } } ArrayList arrayList2 = new ArrayList(); arrayList2.add(new zzom("gtmUtils")); zzol zzolVar = new zzol("15", arrayList2); ArrayList arrayList3 = new ArrayList(); arrayList3.add(zzolVar); arrayList3.add(new zzom("mobile")); zzol zzolVar2 = new zzol("17", arrayList3); ArrayList arrayList4 = new ArrayList(); arrayList4.add(zzolVar2); arrayList4.add(new zzom(zzgxVar.zzlb())); arrayList4.add(new zzoh(arrayList)); Object[] objArr = new Object[1]; c((SystemClock.elapsedRealtimeNanos() > 0L ? 1 : (SystemClock.elapsedRealtimeNanos() == 0L ? 0 : -1)), Color.red(0) + 1, 237 - View.MeasureSpec.getSize(0), new char[]{0}, true, objArr); return new zzol(((String) objArr[0]).intern(), arrayList4); } public static String zzcc(String str) { int i = 2 % 2; int i2 = d + 51; a = i2 % 128; int i3 = i2 % 2; Map map = zzarc; if (!map.containsKey(str)) { return null; } int i4 = d + 75; a = i4 % 128; int i5 = i4 % 2; zzgx zzgxVar = map.get(str); if (i5 != 0) { return zzgxVar.zzlb(); } zzgxVar.zzlb(); throw null; } public static String zza(zza zzaVar) { int i = 2 % 2; int i2 = a + 39; d = i2 % 128; int i3 = i2 % 2; String zzcc = zzcc(zzaVar.toString()); int i4 = d + 125; a = i4 % 128; if (i4 % 2 != 0) { return zzcc; } Object obj = null; obj.hashCode(); throw null; } static { d = 0; d(); HashMap hashMap = new HashMap(); hashMap.put(zza.CONTAINS.toString(), new zzgx("contains")); hashMap.put(zza.ENDS_WITH.toString(), new zzgx("endsWith")); hashMap.put(zza.EQUALS.toString(), new zzgx("equals")); hashMap.put(zza.GREATER_EQUALS.toString(), new zzgx("greaterEquals")); hashMap.put(zza.GREATER_THAN.toString(), new zzgx("greaterThan")); hashMap.put(zza.LESS_EQUALS.toString(), new zzgx("lessEquals")); hashMap.put(zza.LESS_THAN.toString(), new zzgx("lessThan")); hashMap.put(zza.REGEX.toString(), new zzgx("regex", new String[]{zzb.ARG0.toString(), zzb.ARG1.toString(), zzb.IGNORE_CASE.toString()})); hashMap.put(zza.STARTS_WITH.toString(), new zzgx("startsWith")); zzarc = hashMap; int i = a + 79; d = i % 128; int i2 = i % 2; } private static void c(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((ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)) + CipherSuite.TLS_DHE_PSK_WITH_3DES_EDE_CBC_SHA, MotionEvent.axisFromString("") + 8, (char) (ViewConfiguration.getScrollBarSize() >> 8)); byte b2 = (byte) ($$b & 1); byte b3 = (byte) (b2 - 1); Object[] objArr3 = new Object[1]; e(b2, b3, (byte) (b3 - 1), 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(342 - TextUtils.getCapsMode("", 0, 0), KeyEvent.keyCodeFromString("") + 5, (char) (ExpandableListView.getPackedPositionChild(0L) + 1)); byte b4 = (byte) 0; byte b5 = b4; Object[] objArr5 = new Object[1]; e(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) { int i6 = $11 + 49; $10 = i6 % 128; int i7 = i6 % 2; 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) { int i8 = $10 + 125; $11 = i8 % 128; int i9 = i8 % 2; char[] cArr4 = new char[i]; zui.d = 0; int i10 = $10 + 5; $11 = i10 % 128; int i11 = i10 % 2; while (zui.d < i) { cArr4[zui.d] = cArr2[(i - zui.d) - 1]; try { Object[] objArr6 = {zui, zui}; Object obj3 = xzZ.y.get(1294990079); if (obj3 == null) { Class cls3 = (Class) xzZ.c(342 - (ViewConfiguration.getTouchSlop() >> 8), TextUtils.indexOf("", "", 0, 0) + 5, (char) (Process.myTid() >> 22)); byte b6 = (byte) 0; byte b7 = b6; Object[] objArr7 = new Object[1]; e(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); } catch (Throwable th2) { Throwable cause2 = th2.getCause(); if (cause2 == null) { throw th2; } throw cause2; } } cArr2 = cArr4; } objArr[0] = new String(cArr2); } static void d() { b = 2015661724; } }