package o; import android.graphics.Color; import android.media.AudioTrack; 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 com.google.android.gms.maps.model.BitmapDescriptorFactory; import java.lang.reflect.Method; import org.bouncycastle.crypto.tls.CipherSuite; /* renamed from: o.hfG, reason: case insensitive filesystem */ /* loaded from: classes3.dex */ public final class C15676hfG extends wRi { private final ZKS c; private static final byte[] $$a = {45, 6, -13, -19}; private static final int $$b = CipherSuite.TLS_PSK_WITH_AES_128_CBC_SHA; private static int $10 = 0; private static int $11 = 1; private static int d = 0; private static int a = 1; private static int[] b = {-654207161, 1325662389, -721741467, -1610772160, 89818300, -759729339, -1517753327, 1272523236, 2121117362, -1379684193, -1034748413, -1753795452, -1968959037, 540685368, -323566661, -493820294, 499870707, -126240665}; /* JADX WARN: Removed duplicated region for block: B:10:0x0029 */ /* JADX WARN: Removed duplicated region for block: B:7:0x0020 */ /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0029 -> B:4:0x002b). 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 j(byte r5, short r6, int r7, java.lang.Object[] r8) { /* int r6 = r6 * 2 int r0 = r6 + 1 int r5 = r5 * 3 int r5 = 4 - r5 int r7 = r7 * 2 int r7 = 104 - r7 byte[] r1 = o.C15676hfG.$$a byte[] r0 = new byte[r0] r2 = -1 if (r1 != 0) goto L16 r7 = r5 r3 = r6 goto L2b L16: r4 = r7 r7 = r5 r5 = r4 L19: int r2 = r2 + 1 byte r3 = (byte) r5 r0[r2] = r3 if (r2 != r6) goto L29 java.lang.String r5 = new java.lang.String r6 = 0 r5.(r0, r6) r8[r6] = r5 return L29: r3 = r1[r7] L2b: int r3 = -r3 int r5 = r5 + r3 int r7 = r7 + 1 goto L19 */ throw new UnsupportedOperationException("Method not decompiled: o.C15676hfG.j(byte, short, int, java.lang.Object[]):void"); } @InterfaceC13391fZD public C15676hfG(yRw yrw, yRw yrw2, ZKS zks) { super(yrw, yrw2); this.c = zks; } public final AbstractC13163fSk d() { int i = 2 % 2; AbstractC13163fSk e = e(this.c.l().flatMap(new fSS(this) { // from class: o.pXX private C15676hfG c; @Override // o.fSS public final Object a(Object obj) { return C15676hfG.c(this.c, (Mty) obj); } { this.c = this; } })); int i2 = d + 49; a = i2 % 128; if (i2 % 2 != 0) { return e; } Object obj = null; obj.hashCode(); throw null; } /* JADX INFO: Access modifiers changed from: package-private */ public static /* synthetic */ InterfaceC13169fSq b() throws Throwable { int i = 2 % 2; int i2 = a + 25; d = i2 % 128; int i3 = i2 % 2; AbstractC13163fSk just = AbstractC13163fSk.just(Mty.INITIAL); int i4 = d + 51; a = i4 % 128; if (i4 % 2 != 0) { return just; } throw null; } private /* synthetic */ InterfaceC13169fSq d(Mty mty) throws Throwable { int i = 2 % 2; int i2 = d + 77; a = i2 % 128; int i3 = i2 % 2; if (mty == Mty.INITIAL) { ZKS zks = this.c; String b2 = zks.b(); Object[] objArr = new Object[1]; g(new int[]{-2087064697, -2110390367}, -MotionEvent.axisFromString(""), objArr); return zks.d(new C3096ar(b2, ((String) objArr[0]).intern())).flatMap(new fSS() { // from class: o.nnv @Override // o.fSS public final Object a(Object obj) { return C15676hfG.b(); } }); } AbstractC13163fSk just = AbstractC13163fSk.just(mty); int i4 = d + 9; a = i4 % 128; int i5 = i4 % 2; return just; } private static void g(int[] iArr, int i, Object[] objArr) { int i2; int[] iArr2; char c; int i3 = 2 % 2; C4403bZM c4403bZM = new C4403bZM(); char[] cArr = new char[4]; char[] cArr2 = new char[iArr.length * 2]; int[] iArr3 = b; int i4 = 16; int i5 = 1; char c2 = 0; if (iArr3 != null) { int length = iArr3.length; int[] iArr4 = new int[length]; int i6 = 0; while (i6 < length) { try { Object[] objArr2 = new Object[i5]; objArr2[0] = Integer.valueOf(iArr3[i6]); Object obj = xzZ.y.get(729798706); if (obj == null) { obj = ((Class) xzZ.c((ViewConfiguration.getKeyRepeatDelay() >> i4) + 15, View.resolveSize(0, 0) + 5, (char) (TextUtils.lastIndexOf("", '0') + 58135))).getMethod("i", Integer.TYPE); xzZ.y.put(729798706, obj); } iArr4[i6] = ((Integer) ((Method) obj).invoke(null, objArr2)).intValue(); i6++; i4 = 16; i5 = 1; } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } iArr3 = iArr4; } int length2 = iArr3.length; int[] iArr5 = new int[length2]; int[] iArr6 = b; if (iArr6 != null) { int length3 = iArr6.length; int[] iArr7 = new int[length3]; int i7 = 0; while (i7 < length3) { Object[] objArr3 = new Object[1]; objArr3[c2] = Integer.valueOf(iArr6[i7]); Object obj2 = xzZ.y.get(729798706); if (obj2 != null) { iArr2 = iArr6; c = 55346; } else { obj2 = ((Class) xzZ.c(KeyEvent.keyCodeFromString("") + 15, 5 - (ViewConfiguration.getTouchSlop() >> 8), (char) (Color.argb(0, 0, 0, 0) + 58134))).getMethod("i", Integer.TYPE); iArr2 = iArr6; c = 55346; xzZ.y.put(729798706, obj2); } iArr7[i7] = ((Integer) ((Method) obj2).invoke(null, objArr3)).intValue(); i7++; iArr6 = iArr2; c2 = 0; } int i8 = $10 + 11; $11 = i8 % 128; int i9 = i8 % 2; iArr6 = iArr7; i2 = 0; } else { i2 = 0; } System.arraycopy(iArr6, i2, iArr5, i2, length2); c4403bZM.b = i2; while (c4403bZM.b < iArr.length) { int i10 = $10 + 51; $11 = i10 % 128; int i11 = i10 % 2; 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 + 39; $10 = i12 % 128; int i13 = i12 % 2; int i14 = 0; while (i14 < 16) { int i15 = $11 + 19; $10 = i15 % 128; if (i15 % 2 != 0) { c4403bZM.e ^= iArr5[i14]; Object[] objArr4 = {c4403bZM, Integer.valueOf(C4403bZM.d(c4403bZM.e)), c4403bZM, c4403bZM}; Object obj3 = xzZ.y.get(-1196964548); if (obj3 == null) { Class cls = (Class) xzZ.c(118 - (ViewConfiguration.getEdgeSlop() >> 16), Color.green(0) + 5, (char) (ExpandableListView.getPackedPositionChild(0L) + 1)); byte b2 = (byte) 0; byte b3 = b2; Object[] objArr5 = new Object[1]; j(b2, b3, b3, objArr5); obj3 = cls.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; i14 += 69; } else { c4403bZM.e ^= iArr5[i14]; Object[] objArr6 = {c4403bZM, Integer.valueOf(C4403bZM.d(c4403bZM.e)), c4403bZM, c4403bZM}; Object obj4 = xzZ.y.get(-1196964548); if (obj4 == null) { Class cls2 = (Class) xzZ.c(118 - Color.red(0), 5 - (ViewConfiguration.getScrollBarSize() >> 8), (char) (ViewConfiguration.getMinimumFlingVelocity() >> 16)); byte b4 = (byte) 0; byte b5 = b4; Object[] objArr7 = new Object[1]; j(b4, b5, b5, objArr7); obj4 = cls2.getMethod((String) objArr7[0], Object.class, Integer.TYPE, Object.class, Object.class); xzZ.y.put(-1196964548, obj4); } int intValue2 = ((Integer) ((Method) obj4).invoke(null, objArr6)).intValue(); c4403bZM.e = c4403bZM.a; c4403bZM.a = intValue2; 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[] objArr8 = {c4403bZM, c4403bZM}; Object obj5 = xzZ.y.get(1914371176); if (obj5 == null) { Class cls3 = (Class) xzZ.c((AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 97, 5 - ExpandableListView.getPackedPositionType(0L), (char) TextUtils.getOffsetBefore("", 0)); byte b6 = (byte) 0; byte b7 = b6; Object[] objArr9 = new Object[1]; j(b6, b7, (byte) (b7 + 1), objArr9); obj5 = cls3.getMethod((String) objArr9[0], Object.class, Object.class); xzZ.y.put(1914371176, obj5); } ((Method) obj5).invoke(null, objArr8); } objArr[0] = new String(cArr2, 0, i); } public static /* synthetic */ InterfaceC13169fSq c(C15676hfG c15676hfG, Mty mty) { int i = 2 % 2; int i2 = d + 29; a = i2 % 128; int i3 = i2 % 2; InterfaceC13169fSq d2 = c15676hfG.d(mty); int i4 = d + 121; a = i4 % 128; if (i4 % 2 != 0) { return d2; } throw null; } }