package o; import android.graphics.Color; import android.text.TextUtils; import android.view.KeyEvent; import android.view.View; import android.view.ViewConfiguration; import android.widget.ExpandableListView; import com.google.common.base.Ascii; import java.lang.reflect.Method; import net.sf.scuba.smartcards.ISOFileInfo; import org.bouncycastle.crypto.tls.CipherSuite; /* loaded from: classes3.dex */ public final class DKi extends wRi { private final InterfaceC13661feY a; private final Xky b; private final InterfaceC3521azC e; private static final byte[] $$a = {Ascii.SUB, 97, -29, 95}; private static final int $$b = CipherSuite.TLS_DH_RSA_WITH_SEED_CBC_SHA; private static int $10 = 0; private static int $11 = 1; private static int m = 0; private static int l = 1; private static char[] d = {16300}; private static int c = 1934311322; private static boolean g = true; private static boolean j = true; /* 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:0x002e). 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 n(int r6, int r7, byte r8, java.lang.Object[] r9) { /* int r7 = r7 + 4 int r6 = r6 * 57 int r6 = r6 + 65 int r8 = r8 * 2 int r0 = r8 + 1 byte[] r1 = o.DKi.$$a byte[] r0 = new byte[r0] r2 = 0 if (r1 != 0) goto L15 r3 = r7 r7 = r8 r4 = r2 goto L2e L15: r3 = r2 L16: int r7 = r7 + 1 byte r4 = (byte) r6 r0[r3] = r4 if (r3 != r8) goto L25 java.lang.String r6 = new java.lang.String r6.(r0, r2) r9[r2] = r6 return L25: int r3 = r3 + 1 r4 = r1[r7] r5 = r7 r7 = r6 r6 = r4 r4 = r3 r3 = r5 L2e: int r6 = -r6 int r6 = r6 + r7 r7 = r3 r3 = r4 goto L16 */ throw new UnsupportedOperationException("Method not decompiled: o.DKi.n(int, int, byte, java.lang.Object[]):void"); } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ @InterfaceC13391fZD public DKi(yRw yrw, yRw yrw2, InterfaceC13661feY interfaceC13661feY, Xky xky, InterfaceC3521azC interfaceC3521azC) { super(yrw, yrw2); C14957gcv.e(yrw, ""); C14957gcv.e(yrw2, ""); C14957gcv.e(interfaceC13661feY, ""); C14957gcv.e(xky, ""); C14957gcv.e(interfaceC3521azC, ""); this.a = interfaceC13661feY; this.b = xky; this.e = interfaceC3521azC; } private final String g() { int i = 2 % 2; int i2 = m + 105; l = i2 % 128; if (i2 % 2 != 0) { String M = this.b.M(); C14957gcv.c((Object) M, ""); return M; } C14957gcv.c((Object) this.b.M(), ""); Object obj = null; obj.hashCode(); throw null; } private final boolean h() { YIo yIo; int i = 2 % 2; int i2 = l + 9; m = i2 % 128; int i3 = i2 % 2; C8064dAG a = this.e.a(); if (a == null || (yIo = a.r) == null) { int i4 = l + 29; m = i4 % 128; int i5 = i4 % 2; return false; } return yIo.C; } private final boolean i() { YIo yIo; int i = 2 % 2; int i2 = l + 99; m = i2 % 128; int i3 = i2 % 2; C8064dAG a = this.e.a(); if (a == null || (yIo = a.r) == null) { return false; } int i4 = l + 27; m = i4 % 128; int i5 = i4 % 2; return yIo.Y; } private final String j() { int i = 2 % 2; C8064dAG a = this.e.a(); if (a != null) { int i2 = m + 3; l = i2 % 128; if (i2 % 2 == 0) { YIo yIo = a.r; throw null; } YIo yIo2 = a.r; if (yIo2 != null) { int i3 = m + 77; l = i3 % 128; int i4 = i3 % 2; String str = yIo2.d; if (str != null) { return str; } } } Object[] objArr = new Object[1]; k(null, new byte[]{ISOFileInfo.DATA_BYTES2}, null, 127 - KeyEvent.keyCodeFromString(""), objArr); String intern = ((String) objArr[0]).intern(); int i5 = m + 79; l = i5 % 128; int i6 = i5 % 2; return intern; } public final AbstractC13163fSk d() { int i = 2 % 2; int i2 = m + 89; l = i2 % 128; int i3 = i2 % 2; AbstractC13163fSk a = this.a.a(g(), h(), i(), j()); C14957gcv.c(a, ""); int i4 = l + 121; m = i4 % 128; int i5 = i4 % 2; return a; } public final AbstractC13163fSk c() { int i = 2 % 2; int i2 = l + 17; m = i2 % 128; int i3 = i2 % 2; AbstractC13163fSk b = this.a.b(g()); C14957gcv.c(b, ""); int i4 = l + 117; m = i4 % 128; if (i4 % 2 == 0) { return b; } throw null; } public final AbstractC13163fSk e() { AbstractC13163fSk b; int i = 2 % 2; int i2 = m + 45; l = i2 % 128; if (i2 % 2 == 0) { b = this.a.b(g(), i()); C14957gcv.c(b, ""); int i3 = 85 / 0; } else { b = this.a.b(g(), i()); C14957gcv.c(b, ""); } int i4 = m + 25; l = i4 % 128; if (i4 % 2 != 0) { return b; } throw null; } public static /* synthetic */ Object e(Object[] objArr) { DKi dKi = (DKi) objArr[0]; int i = 2 % 2; int i2 = l + 71; m = i2 % 128; int i3 = i2 % 2; boolean O = dKi.b.O(); int i4 = l + 125; m = i4 % 128; int i5 = i4 % 2; return Boolean.valueOf(O); } public final void a() { int i = 2 % 2; int i2 = m + 89; l = i2 % 128; int i3 = i2 % 2; this.b.e(true); int i4 = l + 69; m = i4 % 128; int i5 = i4 % 2; } private static void k(char[] cArr, byte[] bArr, int[] iArr, int i, Object[] objArr) { Object method; int i2; char[] cArr2; int i3 = 2; int i4 = 2 % 2; C3614bBe c3614bBe = new C3614bBe(); char[] cArr3 = d; char c2 = '0'; int i5 = 0; if (cArr3 != null) { int length = cArr3.length; char[] cArr4 = new char[length]; int i6 = 0; while (i6 < length) { int i7 = $10 + 55; $11 = i7 % 128; int i8 = i7 % i3; try { Object[] objArr2 = new Object[1]; objArr2[i5] = Integer.valueOf(cArr3[i6]); Object obj = xzZ.y.get(-950481649); if (obj == null) { Class cls = (Class) xzZ.c((ViewConfiguration.getLongPressTimeout() >> 16) + 337, Color.rgb(i5, i5, i5) + 16777221, (char) ((-1) - TextUtils.lastIndexOf("", c2, i5))); byte b = (byte) i5; byte b2 = (byte) (b - 1); Object[] objArr3 = new Object[1]; n(b, b2, (byte) (b2 + 1), objArr3); obj = cls.getMethod((String) objArr3[0], Integer.TYPE); xzZ.y.put(-950481649, obj); } cArr4[i6] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue(); i6++; i3 = 2; c2 = '0'; i5 = 0; } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } cArr3 = cArr4; } try { Object[] objArr4 = {Integer.valueOf(c)}; Object obj2 = xzZ.y.get(-1521625011); if (obj2 == null) { Class cls2 = (Class) xzZ.c(View.MeasureSpec.makeMeasureSpec(0, 0) + 283, Color.blue(0) + 5, (char) (39813 - (ViewConfiguration.getFadingEdgeLength() >> 16))); byte b3 = (byte) 1; byte b4 = (byte) (-b3); Object[] objArr5 = new Object[1]; n(b3, b4, (byte) (b4 + 1), objArr5); obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE); xzZ.y.put(-1521625011, obj2); } int intValue = ((Integer) ((Method) obj2).invoke(null, objArr4)).intValue(); if (j) { c3614bBe.c = bArr.length; char[] cArr5 = new char[c3614bBe.c]; c3614bBe.a = 0; while (c3614bBe.a < c3614bBe.c) { cArr5[c3614bBe.a] = (char) (cArr3[bArr[(c3614bBe.c - 1) - c3614bBe.a] + i] - intValue); Object[] objArr6 = {c3614bBe, c3614bBe}; Object obj3 = xzZ.y.get(1779759091); if (obj3 != null) { method = obj3; } else { method = ((Class) xzZ.c(39 - TextUtils.indexOf((CharSequence) "", '0', 0, 0), (ViewConfiguration.getEdgeSlop() >> 16) + 5, (char) (ViewConfiguration.getKeyRepeatTimeout() >> 16))).getMethod("D", Object.class, Object.class); xzZ.y.put(1779759091, method); } ((Method) method).invoke(null, objArr6); } objArr[0] = new String(cArr5); return; } if (g) { int i9 = $11 + 93; $10 = i9 % 128; if (i9 % 2 != 0) { c3614bBe.c = cArr.length; cArr2 = new char[c3614bBe.c]; i2 = 0; } else { i2 = 0; c3614bBe.c = cArr.length; cArr2 = new char[c3614bBe.c]; } c3614bBe.a = i2; while (c3614bBe.a < c3614bBe.c) { int i10 = $11 + 75; $10 = i10 % 128; int i11 = i10 % 2; cArr2[c3614bBe.a] = (char) (cArr3[cArr[(c3614bBe.c - 1) - c3614bBe.a] - i] - intValue); Object[] objArr7 = {c3614bBe, c3614bBe}; Object obj4 = xzZ.y.get(1779759091); if (obj4 == null) { obj4 = ((Class) xzZ.c((ViewConfiguration.getFadingEdgeLength() >> 16) + 40, (ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)) + 4, (char) ((ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)) + 1))).getMethod("D", Object.class, Object.class); xzZ.y.put(1779759091, obj4); } ((Method) obj4).invoke(null, objArr7); } objArr[0] = new String(cArr2); return; } int i12 = 0; c3614bBe.c = iArr.length; char[] cArr6 = new char[c3614bBe.c]; while (true) { c3614bBe.a = i12; if (c3614bBe.a >= c3614bBe.c) { objArr[0] = new String(cArr6); return; } int i13 = $10 + 123; $11 = i13 % 128; int i14 = i13 % 2; cArr6[c3614bBe.a] = (char) (cArr3[iArr[(c3614bBe.c - 1) - c3614bBe.a] - i] - intValue); i12 = c3614bBe.a + 1; } } catch (Throwable th2) { Throwable cause2 = th2.getCause(); if (cause2 == null) { throw th2; } throw cause2; } } public final boolean b() { System.identityHashCode(this); return ((Boolean) e(new Object[]{this})).booleanValue(); } }