package o; import android.graphics.Color; import android.text.AndroidCharacter; import android.text.TextUtils; import android.view.MotionEvent; import android.view.ViewConfiguration; import android.widget.ExpandableListView; import java.lang.reflect.Method; import net.sf.scuba.smartcards.ISOFileInfo; import org.bouncycastle.crypto.tls.CipherSuite; /* loaded from: classes3.dex */ public final class nzp { private static final byte[] $$a = {59, 92, ISOFileInfo.FCI_BYTE, -78}; private static final int $$b = CipherSuite.TLS_RSA_PSK_WITH_RC4_128_SHA; private static int $10 = 0; private static int $11 = 1; private static int d = 0; private static int h = 1; private static char a = 50269; private static char b = 17042; private static char e = 11279; private static char c = 45329; private static void g(short s, short s2, short s3, Object[] objArr) { byte[] bArr = $$a; int i = s2 + 4; int i2 = s * 2; int i3 = 67 - s3; byte[] bArr2 = new byte[1 - i2]; int i4 = 0 - i2; int i5 = -1; if (bArr == null) { i3 = i + (-i3); i = i; } while (true) { i5++; int i6 = i + 1; bArr2[i5] = (byte) i3; if (i5 == i4) { objArr[0] = new String(bArr2, 0); return; } else { i3 += -bArr[i6]; i = i6; } } } @InterfaceC13391fZD public nzp() { } /* JADX WARN: Code restructure failed: missing block: B:6:0x0043, code lost: if (r10 == null) goto L11; */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public static o.YZs e(o.GiK r20) { /* r0 = r20 r1 = 2 int r2 = r1 % r1 java.lang.String r2 = "" o.C14957gcv.e(r0, r2) java.lang.String r4 = r0.i java.lang.String r3 = r0.j char[] r5 = new char[r1] r5 = {x00b8: FILL_ARRAY_DATA , data: [11656, 11563} // fill-array r6 = 0 int r7 = android.text.TextUtils.getOffsetBefore(r2, r6) r8 = 1 int r7 = r7 + r8 java.lang.Object[] r9 = new java.lang.Object[r8] f(r5, r7, r9) r5 = r9[r6] java.lang.String r5 = (java.lang.String) r5 java.lang.String r5 = r5.intern() boolean r5 = o.C14957gcv.b(r3, r5) java.lang.String r7 = r0.h java.lang.String r9 = r0.d java.lang.String[] r3 = new java.lang.String[r1] o.Kpk r10 = r0.c r11 = 0 if (r10 == 0) goto L49 int r12 = o.nzp.h int r12 = r12 + 107 int r13 = r12 % 128 o.nzp.d = r13 int r12 = r12 % r1 if (r12 != 0) goto L46 java.lang.String r10 = r10.c if (r10 != 0) goto L4a goto L49 L46: java.lang.String r0 = r10.c throw r11 L49: r10 = r2 L4a: r3[r6] = r10 o.Kpk r6 = r0.c if (r6 == 0) goto L6c int r10 = o.nzp.h int r10 = r10 + 121 int r12 = r10 % 128 o.nzp.d = r12 int r10 = r10 % r1 if (r10 != 0) goto L69 java.lang.String r6 = r6.d if (r6 != 0) goto L6d int r6 = o.nzp.h int r6 = r6 + 71 int r10 = r6 % 128 o.nzp.d = r10 int r6 = r6 % r1 goto L6c L69: java.lang.String r0 = r6.d throw r11 L6c: r6 = r2 L6d: r3[r8] = r6 o.C14957gcv.e(r3, r2) o.C14957gcv.e(r3, r2) java.util.List r8 = java.util.Arrays.asList(r3) o.C14957gcv.c(r8, r2) java.lang.String r1 = r0.a o.ucZ r0 = r0.e java.lang.String r11 = r0.i java.lang.String r12 = r0.d java.lang.String r13 = r0.f java.lang.String r14 = r0.g java.lang.String r15 = r0.c java.lang.String r2 = r0.b java.lang.String r3 = r0.a o.tHG r6 = r0.e java.lang.String r6 = r6.a o.tHG r10 = r0.e java.lang.String r10 = r10.c o.tHG r0 = r0.e java.lang.String r0 = r0.b r19 = r1 o.Ljq r1 = new o.Ljq r1.(r6, r10, r0) o.fwC r0 = new o.fwC r10 = r0 r16 = r2 r17 = r3 r18 = r1 r10.(r11, r12, r13, r14, r15, r16, r17, r18) o.YZs r1 = new o.YZs r3 = r1 r6 = r7 r7 = r9 r9 = r19 r3.(r4, r5, r6, r7, r8, r9, r10) return r1 */ throw new UnsupportedOperationException("Method not decompiled: o.nzp.e(o.GiK):o.YZs"); } private static void f(char[] cArr, int i, Object[] objArr) { String str; int i2 = 2; int i3 = 2 % 2; jTb jtb = new jTb(); char[] cArr2 = new char[cArr.length]; jtb.b = 0; char[] cArr3 = new char[2]; while (jtb.b < cArr.length) { int i4 = $11 + 87; $10 = i4 % 128; int i5 = i4 % i2; cArr3[0] = cArr[jtb.b]; cArr3[1] = cArr[jtb.b + 1]; int i6 = 58224; int i7 = 0; while (i7 < 16) { char c2 = cArr3[1]; char c3 = cArr3[0]; int i8 = (c3 + i6) ^ ((c3 << 4) + ((char) (e ^ 41718355337583039L))); int i9 = c3 >>> 5; try { Object[] objArr2 = new Object[4]; objArr2[3] = Integer.valueOf(c); objArr2[i2] = Integer.valueOf(i9); objArr2[1] = Integer.valueOf(i8); objArr2[0] = Integer.valueOf(c2); Object obj = xzZ.y.get(597144044); if (obj != null) { str = ""; } else { str = ""; Class cls = (Class) xzZ.c(411 - TextUtils.lastIndexOf(str, '0', 0, 0), AndroidCharacter.getMirror('0') - '+', (char) (ViewConfiguration.getKeyRepeatDelay() >> 16)); byte b2 = (byte) 0; byte b3 = (byte) (b2 - 1); Object[] objArr3 = new Object[1]; g(b2, b3, (byte) (-b3), objArr3); obj = cls.getMethod((String) objArr3[0], Integer.TYPE, Integer.TYPE, Integer.TYPE, Integer.TYPE); xzZ.y.put(597144044, obj); } char charValue = ((Character) ((Method) obj).invoke(null, objArr2)).charValue(); cArr3[1] = charValue; Object[] objArr4 = {Integer.valueOf(cArr3[0]), Integer.valueOf((charValue + i6) ^ ((charValue << 4) + ((char) (a ^ 41718355337583039L)))), Integer.valueOf(charValue >>> 5), Integer.valueOf(b)}; Object obj2 = xzZ.y.get(597144044); if (obj2 == null) { Class cls2 = (Class) xzZ.c(MotionEvent.axisFromString(str) + 413, Color.green(0) + 5, (char) ExpandableListView.getPackedPositionGroup(0L)); byte b4 = (byte) 0; byte b5 = (byte) (b4 - 1); Object[] objArr5 = new Object[1]; g(b4, b5, (byte) (-b5), objArr5); obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE, Integer.TYPE, Integer.TYPE, Integer.TYPE); xzZ.y.put(597144044, obj2); } cArr3[0] = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue(); i6 -= 40503; i7++; i2 = 2; } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } cArr2[jtb.b] = cArr3[0]; cArr2[jtb.b + 1] = cArr3[1]; Object[] objArr6 = {jtb, jtb}; Object obj3 = xzZ.y.get(943004485); if (obj3 == null) { Class cls3 = (Class) xzZ.c((ViewConfiguration.getMinimumFlingVelocity() >> 16) + 98, 5 - TextUtils.getOffsetBefore("", 0), (char) TextUtils.getOffsetBefore("", 0)); byte b6 = (byte) 0; byte b7 = (byte) (b6 - 1); Object[] objArr7 = new Object[1]; g(b6, b7, (byte) (b7 + 1), objArr7); obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class); xzZ.y.put(943004485, obj3); } ((Method) obj3).invoke(null, objArr6); i2 = 2; } String str2 = new String(cArr2, 0, i); int i10 = $11 + 25; $10 = i10 % 128; if (i10 % 2 == 0) { objArr[0] = str2; } else { int i11 = 43 / 0; objArr[0] = str2; } } }