package o; import android.graphics.Color; import android.media.AudioTrack; import android.os.Process; import android.text.TextUtils; import android.view.MotionEvent; import android.view.View; import android.view.ViewConfiguration; import com.google.android.gms.maps.model.BitmapDescriptorFactory; import java.lang.reflect.Method; import java.util.ArrayList; import java.util.Collection; import java.util.List; /* loaded from: classes3.dex */ public final class AX { private static char a; private static int b; private static char c; private static char d; private static char e; private static final byte[] $$a = {57, -60, 61, 103}; private static final int $$b = 31; private static int $10 = 0; private static int $11 = 1; private static int g = 1; /* JADX WARN: Removed duplicated region for block: B:10:0x0027 */ /* JADX WARN: Removed duplicated region for block: B:7:0x001f */ /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0027 -> B:4:0x0032). 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 h(int r6, int r7, int r8, java.lang.Object[] r9) { /* byte[] r0 = o.AX.$$a int r8 = r8 * 2 int r8 = 3 - r8 int r7 = 67 - r7 int r6 = r6 * 2 int r1 = 1 - r6 byte[] r1 = new byte[r1] r2 = 0 int r6 = 0 - r6 if (r0 != 0) goto L16 r3 = r8 r4 = r2 goto L32 L16: r3 = r2 L17: r5 = r8 r8 = r7 r7 = r5 byte r4 = (byte) r8 r1[r3] = r4 if (r3 != r6) goto L27 java.lang.String r6 = new java.lang.String r6.(r1, r2) r9[r2] = r6 return L27: int r7 = r7 + 1 int r3 = r3 + 1 r4 = r0[r7] r5 = r8 r8 = r7 r7 = r4 r4 = r3 r3 = r5 L32: int r7 = -r7 int r7 = r7 + r3 r3 = r4 goto L17 */ throw new UnsupportedOperationException("Method not decompiled: o.AX.h(int, int, int, java.lang.Object[]):void"); } @InterfaceC13391fZD public AX() { } public static C1077Vb e(C16485okT c16485okT) { int i = 2 % 2; C14957gcv.e(c16485okT, ""); C1077Vb c1077Vb = new C1077Vb(a(c16485okT.a)); int i2 = b + 79; g = i2 % 128; if (i2 % 2 != 0) { return c1077Vb; } Object obj = null; obj.hashCode(); throw null; } private static boolean c(String str) { int i = 2 % 2; int i2 = g + 3; b = i2 % 128; char[] cArr = {30768, 61630}; if (i2 % 2 != 0) { Object[] objArr = new Object[1]; f(cArr, 0 / TextUtils.getOffsetAfter("", 1), objArr); return C14957gcv.b((Object) str, (Object) ((String) objArr[0]).intern()); } f(cArr, TextUtils.getOffsetAfter("", 0) + 1, new Object[1]); return !C14957gcv.b((Object) str, (Object) ((String) r2[0]).intern()); } /* loaded from: classes3.dex */ public static final class HBt { private HBt() { } public /* synthetic */ HBt(byte b) { this(); } } private static List a(List list) { int i = 2 % 2; List list2 = list; C14957gcv.e(list2, ""); ArrayList arrayList = new ArrayList(list2 instanceof Collection ? list2.size() : 10); for (Ebr ebr : list2) { arrayList.add(new C1075Va(ebr.e, c(ebr.b))); } ArrayList arrayList2 = arrayList; int i2 = b + 51; g = i2 % 128; if (i2 % 2 != 0) { return arrayList2; } throw null; } private static void f(char[] cArr, int i, Object[] objArr) { int i2; int i3 = 2; int i4 = 2 % 2; jTb jtb = new jTb(); char[] cArr2 = new char[cArr.length]; int i5 = 0; jtb.b = 0; char[] cArr3 = new char[2]; int i6 = $11 + 123; $10 = i6 % 128; int i7 = i6 % 2; while (jtb.b < cArr.length) { int i8 = $10 + 41; $11 = i8 % 128; int i9 = i8 % i3; cArr3[i5] = cArr[jtb.b]; cArr3[1] = cArr[jtb.b + 1]; int i10 = 58224; int i11 = i5; while (i11 < 16) { char c2 = cArr3[1]; char c3 = cArr3[i5]; int i12 = (c3 + i10) ^ ((c3 << 4) + ((char) (a ^ 41718355337583039L))); int i13 = c3 >>> 5; try { Object[] objArr2 = new Object[4]; objArr2[3] = Integer.valueOf(c); objArr2[i3] = Integer.valueOf(i13); objArr2[1] = Integer.valueOf(i12); objArr2[i5] = Integer.valueOf(c2); Object obj = xzZ.y.get(597144044); if (obj == null) { Class cls = (Class) xzZ.c(TextUtils.indexOf("", "", i5, i5) + 412, View.MeasureSpec.getMode(i5) + 5, (char) View.MeasureSpec.makeMeasureSpec(i5, i5)); byte b2 = (byte) i5; byte b3 = (byte) (b2 + 1); Object[] objArr3 = new Object[1]; h(b2, b3, (byte) (b3 - 1), objArr3); String str = (String) objArr3[i5]; Class[] clsArr = new Class[4]; clsArr[i5] = Integer.TYPE; clsArr[1] = Integer.TYPE; clsArr[2] = Integer.TYPE; clsArr[3] = Integer.TYPE; obj = cls.getMethod(str, clsArr); xzZ.y.put(597144044, obj); } char charValue = ((Character) ((Method) obj).invoke(null, objArr2)).charValue(); cArr3[1] = charValue; char[] cArr4 = cArr3; Object[] objArr4 = {Integer.valueOf(cArr3[i5]), Integer.valueOf((charValue + i10) ^ ((charValue << 4) + ((char) (d ^ 41718355337583039L)))), Integer.valueOf(charValue >>> 5), Integer.valueOf(e)}; Object obj2 = xzZ.y.get(597144044); if (obj2 == null) { Class cls2 = (Class) xzZ.c(411 - MotionEvent.axisFromString(""), 4 - Process.getGidForName(""), (char) Color.red(0)); byte b4 = (byte) 0; byte b5 = (byte) (b4 + 1); Object[] objArr5 = new Object[1]; h(b4, b5, (byte) (b5 - 1), objArr5); obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE, Integer.TYPE, Integer.TYPE, Integer.TYPE); xzZ.y.put(597144044, obj2); } cArr4[0] = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue(); i10 -= 40503; i11++; cArr3 = cArr4; i3 = 2; i5 = 0; } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } char[] cArr5 = cArr3; cArr2[jtb.b] = cArr5[0]; cArr2[jtb.b + 1] = cArr5[1]; Object[] objArr6 = {jtb, jtb}; Object obj3 = xzZ.y.get(943004485); if (obj3 != null) { i2 = 2; } else { Class cls3 = (Class) xzZ.c((AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 97, (ViewConfiguration.getLongPressTimeout() >> 16) + 5, (char) Color.argb(0, 0, 0, 0)); byte b6 = (byte) 0; byte b7 = b6; Object[] objArr7 = new Object[1]; h(b6, b7, b7, objArr7); i2 = 2; obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class); xzZ.y.put(943004485, obj3); } ((Method) obj3).invoke(null, objArr6); i3 = i2; cArr3 = cArr5; i5 = 0; } objArr[0] = new String(cArr2, 0, i); } static void d() { d = (char) 37514; e = (char) 51590; a = (char) 49198; c = (char) 56764; } static { b = 0; d(); new HBt((byte) 0); int i = g + 45; b = i % 128; int i2 = i % 2; } }