package o; import android.graphics.Color; import android.graphics.drawable.Drawable; import android.os.SystemClock; import android.view.MotionEvent; import android.view.View; import android.view.ViewConfiguration; import android.widget.ExpandableListView; import com.google.android.gms.maps.model.BitmapDescriptorFactory; import java.lang.reflect.Method; import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; import java.util.List; /* loaded from: classes3.dex */ public final class tvj extends PDU { private static final byte[] $$g = {45, 6, -13, -19}; private static final int $$h = 221; private static int $10 = 0; private static int $11 = 1; private static int a = 0; private static int c = 1; private static int[] d = {-2095685882, 1328684902, 2028681579, 1707186700, -1349342005, 338933901, -1217177146, -998946376, -765808472, 533609044, 1712548250, -931224672, 1921718459, -128495590, 25273269, 1702283721, 1477829843, -2023545423}; /* JADX WARN: Removed duplicated region for block: B:10:0x002a */ /* JADX WARN: Removed duplicated region for block: B:7:0x0022 */ /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x002a -> B:4:0x002f). 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 i(int r6, int r7, int r8, java.lang.Object[] r9) { /* int r6 = r6 * 2 int r6 = 1 - r6 int r7 = r7 * 3 int r7 = r7 + 4 byte[] r0 = o.tvj.$$g int r8 = r8 * 2 int r8 = r8 + 102 byte[] r1 = new byte[r6] r2 = 0 if (r0 != 0) goto L17 r4 = r8 r3 = r2 r8 = r7 goto L2f L17: r3 = r2 L18: r5 = r8 r8 = r7 r7 = r5 byte r4 = (byte) r7 r1[r3] = r4 int r3 = r3 + 1 if (r3 != r6) goto L2a java.lang.String r6 = new java.lang.String r6.(r1, r2) r9[r2] = r6 return L2a: r4 = r0[r8] r5 = r8 r8 = r7 r7 = r5 L2f: int r7 = r7 + 1 int r4 = -r4 int r8 = r8 + r4 goto L18 */ throw new UnsupportedOperationException("Method not decompiled: o.tvj.i(int, int, int, java.lang.Object[]):void"); } @InterfaceC13391fZD public tvj() { } /* JADX INFO: Access modifiers changed from: private */ public static /* synthetic */ Object b(Object[] objArr) { String str; tvj tvjVar = (tvj) objArr[0]; xMI xmi = (xMI) objArr[1]; int i = 2 % 2; int i2 = c + 45; a = i2 % 128; int i3 = i2 % 2; C14957gcv.e(xmi, ""); XKK xkk = xmi.e; if (xkk != null) { int i4 = a + 25; c = i4 % 128; int i5 = i4 % 2; str = xkk.c; } else { str = null; } XKK xkk2 = xmi.e; return new Dne(str, xkk2 != null ? xkk2.e : null, tvjVar.b(xmi.b)); } private final C13576fct b(C13149fSO c13149fSO) { String str; String str2; int i = 2 % 2; Ulw ulw = c13149fSO.a; if (ulw != null) { int i2 = a + 97; c = i2 % 128; if (i2 % 2 == 0) { str2 = ulw.d; int i3 = 59 / 0; } else { str2 = ulw.d; } str = str2; } else { str = null; } String str3 = c13149fSO.h; String str4 = c13149fSO.c; Object[] objArr = new Object[1]; h(new int[]{1742374163, -1534363846}, (SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1)), objArr); boolean b = C14957gcv.b((Object) ((String) objArr[0]).intern(), (Object) c13149fSO.d); double d2 = c13149fSO.j; double d3 = c13149fSO.b; double d4 = c13149fSO.i; List list = c13149fSO.e; C14957gcv.e(list, ""); ArrayList arrayList = new ArrayList(list instanceof Collection ? list.size() : 10); Iterator it = list.iterator(); while (it.hasNext()) { int i4 = a + 19; c = i4 % 128; if (i4 % 2 == 0) { arrayList.add(e((SNU) it.next())); Object obj = null; obj.hashCode(); throw null; } arrayList.add(e((SNU) it.next())); } return new C13576fct(str, str3, str4, b, d2, d3, d4, arrayList, a(c13149fSO.g)); } private static Xba e(SNU snu) { int i; SwP swP; int i2 = 2 % 2; String str = snu.e; String str2 = snu.a; String str3 = snu.d; List list = snu.c; C14957gcv.e(list, ""); if (list instanceof Collection) { i = list.size(); int i3 = c + 39; a = i3 % 128; int i4 = i3 % 2; } else { i = 10; } ArrayList arrayList = new ArrayList(i); Iterator it = list.iterator(); while (it.hasNext()) { int i5 = c + 99; a = i5 % 128; int i6 = i5 % 2; arrayList.add(b((C12858fJb) it.next())); } ArrayList arrayList2 = arrayList; FAf fAf = snu.b; Object obj = null; if (fAf != null) { int i7 = a + 71; c = i7 % 128; if (i7 % 2 == 0) { d(fAf); obj.hashCode(); throw null; } swP = d(fAf); } else { swP = null; } return new Xba(str, str2, str3, arrayList2, swP); } private static SwP d(FAf fAf) { int i = 2 % 2; String str = fAf.c; List list = fAf.a; C14957gcv.e(list, ""); ArrayList arrayList = new ArrayList(list instanceof Collection ? list.size() : 10); Iterator it = list.iterator(); while (it.hasNext()) { int i2 = c + 99; a = i2 % 128; int i3 = i2 % 2; arrayList.add(b((C12858fJb) it.next())); int i4 = a + 111; c = i4 % 128; int i5 = i4 % 2; } return new SwP(str, arrayList); } public static C0722NYw b(C12858fJb c12858fJb) { int i = 2 % 2; C14957gcv.e(c12858fJb, ""); C0722NYw c0722NYw = new C0722NYw(c12858fJb.e, c12858fJb.b); int i2 = c + 121; a = i2 % 128; if (i2 % 2 != 0) { int i3 = 21 / 0; } return c0722NYw; } public static List a(List list) { int i = 2 % 2; C14957gcv.e(list, ""); List list2 = list; C14957gcv.e(list2, ""); ArrayList arrayList = new ArrayList(list2 instanceof Collection ? list2.size() : 10); Iterator it = list2.iterator(); while (it.hasNext()) { int i2 = a + 43; c = i2 % 128; if (i2 % 2 == 0) { arrayList.add(b((C12858fJb) it.next())); throw null; } arrayList.add(b((C12858fJb) it.next())); int i3 = c + 5; a = i3 % 128; int i4 = i3 % 2; } return arrayList; } private static void h(int[] iArr, int i, Object[] objArr) { int length; int[] iArr2; char c2; int i2; int i3 = 2 % 2; C4403bZM c4403bZM = new C4403bZM(); char[] cArr = new char[4]; char[] cArr2 = new char[iArr.length * 2]; int[] iArr3 = d; int i4 = 729798706; int i5 = 16; int i6 = 1; char c3 = 0; if (iArr3 != null) { int length2 = iArr3.length; int[] iArr4 = new int[length2]; int i7 = 0; while (i7 < length2) { try { Object[] objArr2 = new Object[1]; objArr2[c3] = Integer.valueOf(iArr3[i7]); Object obj = xzZ.y.get(729798706); if (obj == null) { obj = ((Class) xzZ.c(14 - MotionEvent.axisFromString(""), 5 - (ViewConfiguration.getPressedStateDuration() >> i5), (char) (58134 - (ViewConfiguration.getDoubleTapTimeout() >> 16)))).getMethod("i", Integer.TYPE); xzZ.y.put(729798706, obj); } iArr4[i7] = ((Integer) ((Method) obj).invoke(null, objArr2)).intValue(); i7++; i5 = 16; c3 = 0; } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } iArr3 = iArr4; } int length3 = iArr3.length; int[] iArr5 = new int[length3]; int[] iArr6 = d; if (iArr6 != null) { int i8 = $10 + 83; $11 = i8 % 128; if (i8 % 2 == 0) { length = iArr6.length; iArr2 = new int[length]; } else { length = iArr6.length; iArr2 = new int[length]; } int i9 = 0; while (i9 < length) { int i10 = $10 + 77; $11 = i10 % 128; int i11 = i10 % 2; Object[] objArr3 = new Object[i6]; objArr3[0] = Integer.valueOf(iArr6[i9]); Object obj2 = xzZ.y.get(Integer.valueOf(i4)); if (obj2 != null) { i2 = i4; c2 = 58134; } else { c2 = 58134; Class cls = (Class) xzZ.c(ExpandableListView.getPackedPositionChild(0L) + 16, 5 - View.MeasureSpec.getMode(0), (char) (58134 - (ViewConfiguration.getMaximumDrawingCacheSize() >> 24))); Class[] clsArr = new Class[i6]; clsArr[0] = Integer.TYPE; obj2 = cls.getMethod("i", clsArr); i2 = 729798706; xzZ.y.put(729798706, obj2); } iArr2[i9] = ((Integer) ((Method) obj2).invoke(null, objArr3)).intValue(); i9++; i4 = i2; i6 = 1; } iArr6 = iArr2; } System.arraycopy(iArr6, 0, iArr5, 0, length3); c4403bZM.b = 0; while (c4403bZM.b < iArr.length) { cArr[0] = (char) (iArr[c4403bZM.b] >> 16); cArr[1] = (char) iArr[c4403bZM.b]; cArr[2] = (char) (iArr[c4403bZM.b + 1] >> 16); cArr[3] = (char) iArr[c4403bZM.b + 1]; c4403bZM.e = (cArr[0] << 16) + cArr[1]; c4403bZM.a = (cArr[2] << 16) + cArr[3]; C4403bZM.d(iArr5); int i12 = $11 + 13; $10 = i12 % 128; int i13 = 2; int i14 = i12 % 2; int i15 = 0; while (i15 < 16) { int i16 = $10 + 33; $11 = i16 % 128; int i17 = i16 % i13; c4403bZM.e ^= iArr5[i15]; Object[] objArr4 = {c4403bZM, Integer.valueOf(C4403bZM.d(c4403bZM.e)), c4403bZM, c4403bZM}; Object obj3 = xzZ.y.get(-1196964548); if (obj3 == null) { Class cls2 = (Class) xzZ.c(118 - View.MeasureSpec.makeMeasureSpec(0, 0), (ViewConfiguration.getMaximumFlingVelocity() >> 16) + 5, (char) Color.alpha(0)); byte b = (byte) 0; byte b2 = b; Object[] objArr5 = new Object[1]; i(b, b2, (byte) (b2 + 1), objArr5); obj3 = cls2.getMethod((String) objArr5[0], Object.class, Integer.TYPE, Object.class, Object.class); xzZ.y.put(-1196964548, obj3); } int intValue = ((Integer) ((Method) obj3).invoke(null, objArr4)).intValue(); c4403bZM.e = c4403bZM.a; c4403bZM.a = intValue; i15++; i13 = 2; } int i18 = c4403bZM.e; c4403bZM.e = c4403bZM.a; c4403bZM.a = i18; c4403bZM.a ^= iArr5[16]; c4403bZM.e ^= iArr5[17]; int i19 = c4403bZM.e; int i20 = c4403bZM.a; cArr[0] = (char) (c4403bZM.e >>> 16); cArr[1] = (char) c4403bZM.e; cArr[2] = (char) (c4403bZM.a >>> 16); cArr[3] = (char) c4403bZM.a; C4403bZM.d(iArr5); cArr2[c4403bZM.b * 2] = cArr[0]; cArr2[(c4403bZM.b * 2) + 1] = cArr[1]; cArr2[(c4403bZM.b * 2) + 2] = cArr[2]; cArr2[(c4403bZM.b * 2) + 3] = cArr[3]; Object[] objArr6 = {c4403bZM, c4403bZM}; Object obj4 = xzZ.y.get(1914371176); if (obj4 == null) { Class cls3 = (Class) xzZ.c(99 - (SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1)), 5 - Drawable.resolveOpacity(0, 0), (char) ((ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) - 1)); byte b3 = (byte) 0; byte b4 = b3; Object[] objArr7 = new Object[1]; i(b3, b4, b4, objArr7); obj4 = cls3.getMethod((String) objArr7[0], Object.class, Object.class); xzZ.y.put(1914371176, obj4); } ((Method) obj4).invoke(null, objArr6); } objArr[0] = new String(cArr2, 0, i); } public final Dne c(xMI xmi) { System.identityHashCode(this); return (Dne) b(new Object[]{this, xmi}); } }