package o; import android.os.SystemClock; import android.text.TextUtils; import android.view.Gravity; import android.view.KeyEvent; import android.view.View; import android.view.ViewConfiguration; import com.kofax.kmc.kut.utilities.IpLibUtil; import java.lang.reflect.Method; import java.util.Collections; import java.util.List; import java.util.Objects; import net.sf.scuba.smartcards.ISO7816; import org.bouncycastle.crypto.tls.CipherSuite; /* loaded from: classes3.dex */ public final class ioC extends wRi { private static short[] k; private final Xky b; private final IJN c; private final InterfaceC2070aWe d; private static final byte[] $$a = {43, -33, -86}; private static final int $$b = CipherSuite.TLS_RSA_WITH_CAMELLIA_128_CBC_SHA256; private static int $10 = 0; private static int $11 = 1; private static int l = 0; /* renamed from: o, reason: collision with root package name */ private static int f9175o = 1; private static int a = -530971679; private static int e = 1406017077; private static int g = 853154146; private static byte[] j = {-14, -56, -55, ISO7816.INS_ENVELOPE, -3, -11, -14}; /* JADX WARN: Removed duplicated region for block: B:10:0x0029 */ /* JADX WARN: Removed duplicated region for block: B:7:0x0021 */ /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0029 -> 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 n(short r6, int r7, short r8, java.lang.Object[] r9) { /* int r7 = r7 * 2 int r7 = 110 - r7 byte[] r0 = o.ioC.$$a int r6 = r6 * 3 int r1 = 1 - r6 int r8 = r8 * 3 int r8 = 2 - r8 byte[] r1 = new byte[r1] r2 = 0 int r6 = 0 - r6 if (r0 != 0) goto L19 r4 = r6 r7 = r8 r3 = r2 goto L30 L19: r3 = r2 L1a: int r8 = r8 + 1 byte r4 = (byte) r7 r1[r3] = r4 if (r3 != r6) goto L29 java.lang.String r6 = new java.lang.String r6.(r1, r2) r9[r2] = r6 return L29: int r3 = r3 + 1 r4 = r0[r8] r5 = r8 r8 = r7 r7 = r5 L30: int r4 = -r4 int r8 = r8 + r4 r5 = r8 r8 = r7 r7 = r5 goto L1a */ throw new UnsupportedOperationException("Method not decompiled: o.ioC.n(short, int, short, java.lang.Object[]):void"); } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ @InterfaceC13391fZD public ioC(yRw yrw, yRw yrw2, InterfaceC2070aWe interfaceC2070aWe, Xky xky, IJN ijn) { super(yrw, yrw2); C14957gcv.e(yrw, ""); C14957gcv.e(yrw2, ""); C14957gcv.e(interfaceC2070aWe, ""); C14957gcv.e(xky, ""); C14957gcv.e(ijn, ""); this.d = interfaceC2070aWe; this.b = xky; this.c = ijn; } private static final void c(ioC ioc) { int i = 2 % 2; int i2 = f9175o + 15; l = i2 % 128; if (i2 % 2 != 0) { C14957gcv.e(ioc, ""); } else { C14957gcv.e(ioc, ""); } ioc.b.b(true); int i3 = l + 27; f9175o = i3 % 128; if (i3 % 2 != 0) { return; } Object obj = null; obj.hashCode(); throw null; } public final AbstractC13163fSk e(String str, boolean z) { int i = 2 % 2; C14957gcv.e(str, ""); XNX xnx = new XNX("PUSH", z, C14851gaI.c); InterfaceC2070aWe interfaceC2070aWe = this.d; List singletonList = Collections.singletonList(xnx); C14957gcv.c(singletonList, ""); fRY b = interfaceC2070aWe.b(singletonList); IJN ijn = this.c; C4362bXu c4362bXu = new C4362bXu((char) 0); if (!z) { int i2 = f9175o; int i3 = i2 + 45; l = i3 % 128; int i4 = i3 % 2; int i5 = i2 + 81; l = i5 % 128; int i6 = i5 % 2; str = ""; } c4362bXu.b = str; Object[] objArr = new Object[1]; m((short) ((ViewConfiguration.getJumpTapTimeout() >> 16) + IpLibUtil.KIPP_BAD_POINTER), (byte) ((ViewConfiguration.getTapTimeout() >> 16) - 116), (-33) - (ViewConfiguration.getDoubleTapTimeout() >> 16), 1282138636 - View.resolveSizeAndState(0, 0, 0), (-1628702519) - TextUtils.indexOf((CharSequence) "", '0', 0, 0), objArr); c4362bXu.d = ((String) objArr[0]).intern(); AbstractC13163fSk doOnComplete = ijn.b(c4362bXu).doOnComplete(new fSP(this) { // from class: o.pkA private ioC e; @Override // o.fSP public final void c() { ioC.b(this.e); } { this.e = this; } }); Objects.requireNonNull(doOnComplete, "next is null"); AbstractC13163fSk e2 = e(new fUK(b, doOnComplete)); C14957gcv.c(e2, ""); return e2; } private static void m(short s, byte b, int i, int i2, int i3, Object[] objArr) { int i4; int length; byte[] bArr; int i5; int i6 = 2; int i7 = 2 % 2; DFY dfy = new DFY(); StringBuilder sb = new StringBuilder(); try { Object[] objArr2 = {Integer.valueOf(i), Integer.valueOf(e)}; Object obj = xzZ.y.get(-2092856797); if (obj == null) { Class cls = (Class) xzZ.c(337 - (ViewConfiguration.getPressedStateDuration() >> 16), 5 - TextUtils.getOffsetAfter("", 0), (char) TextUtils.indexOf("", "", 0, 0)); byte b2 = (byte) 0; byte b3 = b2; Object[] objArr3 = new Object[1]; n(b2, b3, b3, objArr3); obj = cls.getMethod((String) objArr3[0], Integer.TYPE, Integer.TYPE); xzZ.y.put(-2092856797, obj); } int intValue = ((Integer) ((Method) obj).invoke(null, objArr2)).intValue(); boolean z = intValue == -1; int i8 = 4; if (z) { byte[] bArr2 = j; if (bArr2 != null) { int i9 = $11 + 87; $10 = i9 % 128; if (i9 % 2 != 0) { length = bArr2.length; bArr = new byte[length]; i5 = 1; } else { length = bArr2.length; bArr = new byte[length]; i5 = 0; } while (i5 < length) { int i10 = $11 + 17; $10 = i10 % 128; int i11 = i10 % i6; Object[] objArr4 = {Integer.valueOf(bArr2[i5])}; Object obj2 = xzZ.y.get(-1648115392); if (obj2 == null) { Class cls2 = (Class) xzZ.c(60 - (ViewConfiguration.getJumpTapTimeout() >> 16), (SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1)) + i8, (char) (ViewConfiguration.getScrollBarFadeDuration() >> 16)); byte b4 = (byte) 0; byte b5 = (byte) (b4 + 1); Object[] objArr5 = new Object[1]; n(b4, b5, (byte) (b5 - 1), objArr5); obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE); xzZ.y.put(-1648115392, obj2); } bArr[i5] = ((Byte) ((Method) obj2).invoke(null, objArr4)).byteValue(); i5++; i6 = 2; i8 = 4; } bArr2 = bArr; } if (bArr2 != null) { byte[] bArr3 = j; Object[] objArr6 = {Integer.valueOf(i2), Integer.valueOf(a)}; Object obj3 = xzZ.y.get(-2092856797); if (obj3 == null) { Class cls3 = (Class) xzZ.c(View.MeasureSpec.getMode(0) + 337, Gravity.getAbsoluteGravity(0, 0) + 5, (char) (ViewConfiguration.getTapTimeout() >> 16)); byte b6 = (byte) 0; byte b7 = b6; Object[] objArr7 = new Object[1]; n(b6, b7, b7, objArr7); obj3 = cls3.getMethod((String) objArr7[0], Integer.TYPE, Integer.TYPE); xzZ.y.put(-2092856797, obj3); } intValue = (byte) (((byte) (bArr3[((Integer) ((Method) obj3).invoke(null, objArr6)).intValue()] ^ (-7303220121662775787L))) + ((int) (e ^ (-7303220121662775787L)))); } else { intValue = (short) (((short) (k[i2 + ((int) (a ^ (-7303220121662775787L)))] ^ (-7303220121662775787L))) + ((int) (e ^ (-7303220121662775787L)))); } } if (intValue > 0) { int i12 = ((i2 + intValue) - 2) + ((int) (a ^ (-7303220121662775787L))); if (z) { int i13 = $11 + 105; $10 = i13 % 128; int i14 = i13 % 2; i4 = 1; } else { i4 = 0; } dfy.c = i12 + i4; Object[] objArr8 = {dfy, Integer.valueOf(i3), Integer.valueOf(g), sb}; Object obj4 = xzZ.y.get(1546973421); if (obj4 == null) { obj4 = ((Class) xzZ.c(TextUtils.lastIndexOf("", '0', 0, 0) + 749, 5 - View.resolveSizeAndState(0, 0, 0), (char) KeyEvent.keyCodeFromString(""))).getMethod("q", Object.class, Integer.TYPE, Integer.TYPE, Object.class); xzZ.y.put(1546973421, obj4); } ((StringBuilder) ((Method) obj4).invoke(null, objArr8)).append(dfy.a); dfy.e = dfy.a; byte[] bArr4 = j; if (bArr4 != null) { int length2 = bArr4.length; byte[] bArr5 = new byte[length2]; for (int i15 = 0; i15 < length2; i15++) { bArr5[i15] = (byte) (bArr4[i15] ^ (-7303220121662775787L)); } bArr4 = bArr5; } boolean z2 = bArr4 != null; dfy.d = 1; while (dfy.d < intValue) { if (z2) { int i16 = $10 + 101; $11 = i16 % 128; int i17 = i16 % 2; byte[] bArr6 = j; dfy.c = dfy.c - 1; dfy.a = (char) (dfy.e + (((byte) (((byte) (bArr6[r8] ^ (-7303220121662775787L))) + s)) ^ b)); } else { short[] sArr = k; dfy.c = dfy.c - 1; dfy.a = (char) (dfy.e + (((short) (((short) (sArr[r8] ^ (-7303220121662775787L))) + s)) ^ b)); } sb.append(dfy.a); dfy.e = dfy.a; dfy.d++; } } objArr[0] = sb.toString(); } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } public static /* synthetic */ void b(ioC ioc) { int i = 2 % 2; int i2 = l + 61; f9175o = i2 % 128; int i3 = i2 % 2; c(ioc); int i4 = l + 95; f9175o = i4 % 128; if (i4 % 2 != 0) { return; } Object obj = null; obj.hashCode(); throw null; } }