package o; import android.graphics.PointF; import android.media.AudioTrack; import android.os.Process; import android.os.SystemClock; import android.text.TextUtils; import android.view.Gravity; import android.view.KeyEvent; import android.view.ViewConfiguration; import android.widget.ExpandableListView; import com.google.android.gms.maps.model.BitmapDescriptorFactory; import java.lang.reflect.Method; import o.InterfaceC6627cYe; import o.ZI; /* loaded from: classes4.dex */ public final class aCC extends ZI { private static final byte[] $$a = {38, -57, 91, -63}; private static final int $$b = 62; private static int $10 = 0; private static int $11 = 1; private static int a = 0; private static int d; private static int[] e; private final Ndz b; private final C17423wf c; /* JADX WARN: Removed duplicated region for block: B:10:0x0025 */ /* JADX WARN: Removed duplicated region for block: B:7:0x001d */ /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0025 -> B:4:0x0030). 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(short r6, short r7, byte r8, java.lang.Object[] r9) { /* int r7 = r7 + 4 byte[] r0 = o.aCC.$$a int r8 = r8 * 2 int r8 = r8 + 102 int r6 = r6 * 3 int r1 = 1 - r6 byte[] r1 = new byte[r1] r2 = 0 int r6 = 0 - r6 if (r0 != 0) goto L17 r3 = r6 r8 = r7 r4 = r2 goto L30 L17: r3 = r2 L18: byte r4 = (byte) r8 r1[r3] = r4 if (r3 != r6) goto L25 java.lang.String r6 = new java.lang.String r6.(r1, r2) r9[r2] = r6 return L25: int r7 = r7 + 1 int r3 = r3 + 1 r4 = r0[r7] r5 = r8 r8 = r7 r7 = r4 r4 = r3 r3 = r5 L30: int r7 = -r7 int r7 = r7 + r3 r3 = r4 r5 = r8 r8 = r7 r7 = r5 goto L18 */ throw new UnsupportedOperationException("Method not decompiled: o.aCC.h(short, short, byte, java.lang.Object[]):void"); } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ @InterfaceC13391fZD public aCC(C16903sI c16903sI, Ndz ndz, C17423wf c17423wf) { super(c16903sI); C14957gcv.e(ndz, ""); C14957gcv.e(c17423wf, ""); this.b = ndz; this.c = c17423wf; } private static final void b(InterfaceC6627cYe.RVV rvv) { int i = 2 % 2; if (rvv != null) { int i2 = a + 15; d = i2 % 128; int i3 = i2 % 2; rvv.a(); int i4 = a + 27; d = i4 % 128; int i5 = i4 % 2; } } public final void d() { C15377goq c15377goq; int i = 2 % 2; ZI.IeS ieS = new ZI.IeS() { // from class: o.aCM @Override // o.ZI.IeS public final void e(Object obj) { aCC.d((InterfaceC6627cYe.RVV) obj); } }; if (!(!(this.f != 0))) { int i2 = d + 39; a = i2 % 128; int i3 = i2 % 2; ieS.e(this.f); } C7968cyO p = this.b.a.p(); if (p == null || (c15377goq = p.b) == null) { return; } int i4 = a + 41; d = i4 % 128; int i5 = i4 % 2; Object[] objArr = new Object[1]; g(new int[]{-572012032, 1064179960}, 1 - (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), objArr); if (C14957gcv.b((Object) ((String) objArr[0]).intern(), (Object) c15377goq.d)) { String str = c15377goq.b; if (str != null) { int i6 = d + 111; a = i6 % 128; if (i6 % 2 != 0) { str.length(); Object obj = null; obj.hashCode(); throw null; } if (str.length() != 0) { final String str2 = c15377goq.b; if (str2 != null) { ZI.IeS ieS2 = new ZI.IeS(this, str2) { // from class: o.aCJ private aCC d; private String e; @Override // o.ZI.IeS public final void e(Object obj2) { aCC.a(this.d, this.e, (InterfaceC6627cYe.RVV) obj2); } { this.d = this; this.e = str2; } }; if (this.f != 0) { ieS2.e(this.f); int i7 = d + 21; a = i7 % 128; int i8 = i7 % 2; return; } return; } return; } } ZI.IeS ieS3 = new ZI.IeS() { // from class: o.aCK @Override // o.ZI.IeS public final void e(Object obj2) { aCC.a((InterfaceC6627cYe.RVV) obj2); } }; if (this.f != 0) { int i9 = a + 73; d = i9 % 128; int i10 = i9 % 2; ieS3.e(this.f); } } } private static final void e(InterfaceC6627cYe.RVV rvv) { int i = 2 % 2; if (rvv != null) { int i2 = a + 57; d = i2 % 128; int i3 = i2 % 2; rvv.b(""); } int i4 = d + 87; a = i4 % 128; if (i4 % 2 == 0) { return; } Object obj = null; obj.hashCode(); throw null; } private static final void b(aCC acc, String str, InterfaceC6627cYe.RVV rvv) { int i = 2 % 2; int i2 = a + 9; d = i2 % 128; int i3 = i2 % 2; C14957gcv.e(acc, ""); C14957gcv.e(str, ""); if (rvv != null) { rvv.b(acc.c.b_(str)); int i4 = a + 65; d = i4 % 128; int i5 = i4 % 2; } int i6 = d + 41; a = i6 % 128; int i7 = i6 % 2; } /* JADX INFO: Access modifiers changed from: private */ public static /* synthetic */ Object b(Object[] objArr) { aCC acc = (aCC) objArr[0]; int i = 2 % 2; int i2 = d + 81; a = i2 % 128; int i3 = i2 % 2; super.w_(); Ndz ndz = acc.b; Object obj = null; if (!ndz.h.isDisposed()) { int i4 = a + 97; d = i4 % 128; if (i4 % 2 == 0) { ndz.h.dispose(); obj.hashCode(); throw null; } ndz.h.dispose(); int i5 = a + 85; d = i5 % 128; int i6 = i5 % 2; } return null; } /* loaded from: classes4.dex */ public static final class LWm { private LWm() { } public /* synthetic */ LWm(byte b) { this(); } } private static void g(int[] iArr, int i, Object[] objArr) { int[] iArr2; int i2 = 2; int i3 = 2 % 2; C4403bZM c4403bZM = new C4403bZM(); char[] cArr = new char[4]; char[] cArr2 = new char[iArr.length * 2]; int[] iArr3 = e; int i4 = 729798706; int i5 = 1; int i6 = 0; if (iArr3 != null) { int i7 = $11 + 67; $10 = i7 % 128; int i8 = i7 % 2; int length = iArr3.length; int[] iArr4 = new int[length]; int i9 = 0; while (i9 < length) { int i10 = $10 + 21; $11 = i10 % 128; if (i10 % i2 == 0) { try { Object[] objArr2 = new Object[1]; objArr2[i6] = Integer.valueOf(iArr3[i9]); Object obj = xzZ.y.get(Integer.valueOf(i4)); if (obj == null) { Class cls = (Class) xzZ.c(14 - TextUtils.lastIndexOf("", '0', i6), TextUtils.indexOf("", "") + 5, (char) ((PointF.length(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) > BitmapDescriptorFactory.HUE_RED ? 1 : (PointF.length(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 58134)); Class[] clsArr = new Class[1]; clsArr[i6] = Integer.TYPE; obj = cls.getMethod("i", clsArr); xzZ.y.put(729798706, obj); } iArr4[i9] = ((Integer) ((Method) obj).invoke(null, objArr2)).intValue(); } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } else { Object[] objArr3 = {Integer.valueOf(iArr3[i9])}; Object obj2 = xzZ.y.get(729798706); if (obj2 == null) { obj2 = ((Class) xzZ.c((SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)) + 14, 5 - (KeyEvent.getMaxKeyCode() >> 16), (char) (ExpandableListView.getPackedPositionGroup(0L) + 58134))).getMethod("i", Integer.TYPE); xzZ.y.put(729798706, obj2); } iArr4[i9] = ((Integer) ((Method) obj2).invoke(null, objArr3)).intValue(); i9++; } i2 = 2; i4 = 729798706; i6 = 0; } int i11 = $10 + 1; $11 = i11 % 128; int i12 = i11 % 2; iArr3 = iArr4; } int length2 = iArr3.length; int[] iArr5 = new int[length2]; int[] iArr6 = e; if (iArr6 != null) { int length3 = iArr6.length; int[] iArr7 = new int[length3]; int i13 = 0; while (i13 < length3) { Object[] objArr4 = new Object[i5]; objArr4[0] = Integer.valueOf(iArr6[i13]); Object obj3 = xzZ.y.get(729798706); if (obj3 != null) { iArr2 = iArr6; } else { obj3 = ((Class) xzZ.c(14 - TextUtils.indexOf((CharSequence) "", '0', 0, 0), ExpandableListView.getPackedPositionGroup(0L) + 5, (char) (58134 - (ViewConfiguration.getJumpTapTimeout() >> 16)))).getMethod("i", Integer.TYPE); iArr2 = iArr6; xzZ.y.put(729798706, obj3); } iArr7[i13] = ((Integer) ((Method) obj3).invoke(null, objArr4)).intValue(); i13++; iArr6 = iArr2; i5 = 1; } iArr6 = iArr7; } char c = 0; System.arraycopy(iArr6, 0, iArr5, 0, length2); c4403bZM.b = 0; while (c4403bZM.b < iArr.length) { cArr[c] = (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 i14 = 0; for (int i15 = 16; i14 < i15; i15 = 16) { c4403bZM.e ^= iArr5[i14]; Object[] objArr5 = {c4403bZM, Integer.valueOf(C4403bZM.d(c4403bZM.e)), c4403bZM, c4403bZM}; Object obj4 = xzZ.y.get(-1196964548); if (obj4 == null) { Class cls2 = (Class) xzZ.c(((Process.getThreadPriority(0) + 20) >> 6) + 118, 5 - TextUtils.getTrimmedLength(""), (char) (ViewConfiguration.getJumpTapTimeout() >> 16)); byte b = (byte) 0; byte b2 = (byte) (b - 1); Object[] objArr6 = new Object[1]; h(b, b2, (byte) (-b2), objArr6); obj4 = cls2.getMethod((String) objArr6[0], Object.class, Integer.TYPE, Object.class, Object.class); xzZ.y.put(-1196964548, obj4); } int intValue = ((Integer) ((Method) obj4).invoke(null, objArr5)).intValue(); c4403bZM.e = c4403bZM.a; c4403bZM.a = intValue; i14++; } int i16 = c4403bZM.e; c4403bZM.e = c4403bZM.a; c4403bZM.a = i16; c4403bZM.a ^= iArr5[16]; c4403bZM.e ^= iArr5[17]; int i17 = c4403bZM.e; int i18 = 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[] objArr7 = {c4403bZM, c4403bZM}; Object obj5 = xzZ.y.get(1914371176); if (obj5 == null) { Class cls3 = (Class) xzZ.c((ViewConfiguration.getMaximumFlingVelocity() >> 16) + 98, (SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)) + 4, (char) Gravity.getAbsoluteGravity(0, 0)); byte b3 = (byte) 0; byte b4 = (byte) (b3 - 1); Object[] objArr8 = new Object[1]; h(b3, b4, (byte) (b4 + 1), objArr8); obj5 = cls3.getMethod((String) objArr8[0], Object.class, Object.class); xzZ.y.put(1914371176, obj5); } ((Method) obj5).invoke(null, objArr7); c = 0; } objArr[0] = new String(cArr2, 0, i); } static void a() { e = new int[]{-1771503039, -2092209032, -1741355730, 1479289326, 720666104, 724808335, -1856745885, -2083597579, 390506227, -1517610080, 1337149316, -226333770, -310206066, 1803137590, 1913668323, 830419891, -971543668, -1445072649}; } @Override // o.ZI public final void w_() { System.identityHashCode(this); b(new Object[]{this}); } static { d = 1; a(); new LWm((byte) 0); int i = a + 73; d = i % 128; int i2 = i % 2; } public static /* synthetic */ void a(InterfaceC6627cYe.RVV rvv) { int i = 2 % 2; int i2 = d + 73; a = i2 % 128; int i3 = i2 % 2; e(rvv); int i4 = a + 39; d = i4 % 128; int i5 = i4 % 2; } public static /* synthetic */ void d(InterfaceC6627cYe.RVV rvv) { int i = 2 % 2; int i2 = d + 65; a = i2 % 128; int i3 = i2 % 2; b(rvv); int i4 = d + 105; a = i4 % 128; if (i4 % 2 != 0) { throw null; } } public static /* synthetic */ void a(aCC acc, String str, InterfaceC6627cYe.RVV rvv) { int i = 2 % 2; int i2 = a + 89; d = i2 % 128; int i3 = i2 % 2; Object obj = null; b(acc, str, rvv); if (i3 == 0) { obj.hashCode(); throw null; } int i4 = d + 45; a = i4 % 128; if (i4 % 2 != 0) { throw null; } } }