package o; import android.graphics.ImageFormat; import android.graphics.drawable.Drawable; import android.os.SystemClock; import android.text.TextUtils; import android.view.Gravity; import android.view.View; import android.view.ViewConfiguration; import java.lang.reflect.Method; import java.util.Collections; import java.util.List; import net.sf.scuba.smartcards.ISO7816; import net.sf.scuba.smartcards.ISOFileInfo; import o.PRA; /* loaded from: classes3.dex */ public final class Xtd extends vZz { private static final byte[] $$d = {ISO7816.INS_PSO, ISOFileInfo.FCP_BYTE, 99, -29}; private static final int $$e = 67; private static int $10 = 0; private static int $11 = 1; private static int b = 0; private static int d = 1; private static char[] e = {39995}; /* JADX WARN: Removed duplicated region for block: B:10:0x002a */ /* JADX WARN: Removed duplicated region for block: B:7:0x0022 */ /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x002a -> B:4:0x002c). 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 g(int r7, byte r8, short r9, java.lang.Object[] r10) { /* int r7 = r7 + 4 int r9 = r9 * 2 int r9 = r9 + 71 int r8 = r8 * 4 int r8 = r8 + 1 byte[] r0 = o.Xtd.$$d byte[] r1 = new byte[r8] r2 = 0 if (r0 != 0) goto L15 r9 = r7 r3 = r8 r4 = r2 goto L2c L15: r3 = r2 r6 = r9 r9 = r7 r7 = r6 L19: int r4 = r3 + 1 byte r5 = (byte) r7 r1[r3] = r5 int r9 = r9 + 1 if (r4 != r8) goto L2a java.lang.String r7 = new java.lang.String r7.(r1, r2) r10[r2] = r7 return L2a: r3 = r0[r9] L2c: int r3 = -r3 int r7 = r7 + r3 r3 = r4 goto L19 */ throw new UnsupportedOperationException("Method not decompiled: o.Xtd.g(int, byte, short, java.lang.Object[]):void"); } @InterfaceC13391fZD public Xtd() { } /* JADX WARN: Code restructure failed: missing block: B:10:0x0015, code lost: if (r7 == null) goto L8; */ /* JADX WARN: Code restructure failed: missing block: B:4:0x0012, code lost: if (r7 == null) goto L8; */ /* JADX WARN: Code restructure failed: missing block: B:5:0x0020, code lost: r0 = new o.xEp(); r5 = new java.lang.Object[1]; f(new byte[]{1}, new int[]{0, 1, 48, 0}, true, r5); r0.j = ((java.lang.String) r5[0]).intern().equals(r7.g); r1 = o.EnumC17575xuS.e(r7.e); o.C14957gcv.e(r1, ""); r0.c = r1; r0.e = r7.c; r0.b = b(r7.a); r1 = d(r7.b); o.C14957gcv.e(r1, ""); r0.d = r1; r7 = d(r7.d); o.C14957gcv.e(r7, ""); r0.a = r7; */ /* JADX WARN: Code restructure failed: missing block: B:6:0x0074, code lost: return r0; */ /* JADX WARN: Code restructure failed: missing block: B:8:0x0017, code lost: r1 = r1 + 119; o.Xtd.d = r1 % 128; r1 = r1 % 2; */ /* JADX WARN: Code restructure failed: missing block: B:9:0x001f, code lost: return null; */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public final o.xEp a(o.PxG r7) { /* r6 = this; r0 = 2 int r1 = r0 % r0 int r1 = o.Xtd.b int r2 = r1 + 83 int r3 = r2 % 128 o.Xtd.d = r3 int r2 = r2 % r0 r3 = 0 if (r2 != 0) goto L15 r2 = 39 int r2 = r2 / r3 if (r7 != 0) goto L20 goto L17 L15: if (r7 != 0) goto L20 L17: int r1 = r1 + 119 int r7 = r1 % 128 o.Xtd.d = r7 int r1 = r1 % r0 r7 = 0 return r7 L20: o.xEp r0 = new o.xEp r0.() r1 = 1 byte[] r2 = new byte[r1] r2[r3] = r1 r4 = 48 int[] r4 = new int[]{r3, r1, r4, r3} java.lang.Object[] r5 = new java.lang.Object[r1] f(r2, r4, r1, r5) r1 = r5[r3] java.lang.String r1 = (java.lang.String) r1 java.lang.String r1 = r1.intern() java.lang.String r2 = r7.g boolean r1 = r1.equals(r2) r0.j = r1 java.lang.String r1 = r7.e o.xuS r1 = o.EnumC17575xuS.e(r1) java.lang.String r2 = "" o.C14957gcv.e(r1, r2) r0.c = r1 java.lang.String r1 = r7.c r0.e = r1 o.HEB r1 = r7.a o.olp r1 = b(r1) r0.b = r1 java.util.List r1 = r7.b java.util.List r1 = r6.d(r1) o.C14957gcv.e(r1, r2) r0.d = r1 java.util.List r7 = r7.d java.util.List r7 = r6.d(r7) o.C14957gcv.e(r7, r2) r0.a = r7 return r0 */ throw new UnsupportedOperationException("Method not decompiled: o.Xtd.a(o.PxG):o.xEp"); } private List d(List list) { int i = 2 % 2; int i2 = d + 97; b = i2 % 128; int i3 = i2 % 2; if (list == null || list.isEmpty()) { List emptyList = Collections.emptyList(); int i4 = d + 103; b = i4 % 128; int i5 = i4 % 2; return emptyList; } YKU yku = new YKU(list); return (List) new YKU(yku.a, new wxK(yku.b, new InterfaceC1244Ytw(this) { // from class: o.dki private Xtd c; @Override // o.InterfaceC1244Ytw public final Object d(Object obj) { return Xtd.b((HEB) obj); } { this.c = this; } })).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8())); } public static C16489olp b(HEB heb) { int i = 2 % 2; int i2 = b + 61; int i3 = i2 % 128; d = i3; int i4 = i2 % 2; if (heb == null) { int i5 = i3 + 67; b = i5 % 128; int i6 = i5 % 2; int i7 = i3 + 101; b = i7 % 128; Object obj = null; if (i7 % 2 == 0) { return null; } obj.hashCode(); throw null; } C16489olp c16489olp = new C16489olp(); Integer num = heb.f; c16489olp.i = heb.j; Integer num2 = heb.a; Double d2 = heb.d; c16489olp.c = heb.b; c16489olp.f = heb.g; c16489olp.a = heb.h; Object[] objArr = new Object[1]; f(new byte[]{1}, new int[]{0, 1, 48, 0}, true, objArr); c16489olp.e = ((String) objArr[0]).intern().equals(heb.i); c16489olp.d = heb.e; c16489olp.b = a(heb.c); c16489olp.h = heb.l; return c16489olp; } private static lIL a(C11849enB c11849enB) { int i = 2 % 2; int i2 = d + 23; b = i2 % 128; int i3 = i2 % 2; Object obj = null; if (c11849enB == null) { return new lIL(null, null); } lIL lil = new lIL(c11849enB.c, c11849enB.e); int i4 = d + 45; b = i4 % 128; if (i4 % 2 == 0) { return lil; } obj.hashCode(); throw null; } private static void f(byte[] bArr, int[] iArr, boolean z, Object[] objArr) { int i; int length; char[] cArr; char[] cArr2; int i2 = 2 % 2; TVH tvh = new TVH(); int i3 = 0; int i4 = iArr[0]; int i5 = 1; int i6 = iArr[1]; int i7 = iArr[2]; int i8 = iArr[3]; char[] cArr3 = e; int i9 = -1; char c = '0'; if (cArr3 != null) { int i10 = $11 + 83; $10 = i10 % 128; if (i10 % 2 != 0) { length = cArr3.length; cArr = new char[length]; } else { length = cArr3.length; cArr = new char[length]; } int i11 = 0; while (i11 < length) { try { Object[] objArr2 = new Object[i5]; objArr2[i3] = Integer.valueOf(cArr3[i11]); Object obj = xzZ.y.get(1645349359); if (obj != null) { cArr2 = cArr3; } else { Class cls = (Class) xzZ.c(Gravity.getAbsoluteGravity(i3, i3) + 223, 5 - View.MeasureSpec.getSize(i3), (char) (TextUtils.lastIndexOf("", c) + 41978)); byte b2 = (byte) i9; byte b3 = (byte) (b2 + 1); cArr2 = cArr3; Object[] objArr3 = new Object[1]; g(b2, b3, b3, objArr3); obj = cls.getMethod((String) objArr3[0], Integer.TYPE); xzZ.y.put(1645349359, obj); } cArr[i11] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue(); i11++; cArr3 = cArr2; i3 = 0; i5 = 1; i9 = -1; c = '0'; } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } cArr3 = cArr; } char[] cArr4 = new char[i6]; System.arraycopy(cArr3, i4, cArr4, 0, i6); if (bArr != null) { char[] cArr5 = new char[i6]; tvh.c = 0; char c2 = 0; while (tvh.c < i6) { if (bArr[tvh.c] == 1) { int i12 = tvh.c; try { Object[] objArr4 = {Integer.valueOf(cArr4[tvh.c]), Integer.valueOf(c2)}; Object obj2 = xzZ.y.get(850398076); if (obj2 == null) { obj2 = ((Class) xzZ.c((SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1)) + 501, ImageFormat.getBitsPerPixel(0) + 6, (char) ((ViewConfiguration.getTouchSlop() >> 8) + 54))).getMethod("F", Integer.TYPE, Integer.TYPE); xzZ.y.put(850398076, obj2); } cArr5[i12] = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue(); } catch (Throwable th2) { Throwable cause2 = th2.getCause(); if (cause2 == null) { throw th2; } throw cause2; } } else { int i13 = tvh.c; Object[] objArr5 = {Integer.valueOf(cArr4[tvh.c]), Integer.valueOf(c2)}; Object obj3 = xzZ.y.get(1084521042); if (obj3 == null) { obj3 = ((Class) xzZ.c(15 - Drawable.resolveOpacity(0, 0), 5 - (ViewConfiguration.getScrollBarSize() >> 8), (char) (58133 - TextUtils.indexOf((CharSequence) "", '0')))).getMethod("H", Integer.TYPE, Integer.TYPE); xzZ.y.put(1084521042, obj3); } cArr5[i13] = ((Character) ((Method) obj3).invoke(null, objArr5)).charValue(); } c2 = cArr5[tvh.c]; Object[] objArr6 = {tvh, tvh}; Object obj4 = xzZ.y.get(1698744941); if (obj4 == null) { Class cls2 = (Class) xzZ.c((ViewConfiguration.getScrollBarSize() >> 8) + 402, 5 - TextUtils.getOffsetBefore("", 0), (char) (21608 - View.resolveSize(0, 0))); byte b4 = (byte) (-1); byte b5 = (byte) (b4 + 1); Object[] objArr7 = new Object[1]; g(b4, b5, (byte) (b5 + 1), objArr7); obj4 = cls2.getMethod((String) objArr7[0], Object.class, Object.class); xzZ.y.put(1698744941, obj4); } ((Method) obj4).invoke(null, objArr6); int i14 = $11 + 41; $10 = i14 % 128; int i15 = i14 % 2; } cArr4 = cArr5; } if (i8 > 0) { char[] cArr6 = new char[i6]; i = 0; System.arraycopy(cArr4, 0, cArr6, 0, i6); int i16 = i6 - i8; System.arraycopy(cArr6, 0, cArr4, i16, i8); System.arraycopy(cArr6, i8, cArr4, 0, i16); } else { i = 0; } if (z) { char[] cArr7 = new char[i6]; while (true) { tvh.c = i; if (tvh.c >= i6) { break; } cArr7[tvh.c] = cArr4[(i6 - tvh.c) - 1]; i = tvh.c + 1; } cArr4 = cArr7; } if (i7 > 0) { int i17 = 0; while (true) { tvh.c = i17; if (tvh.c >= i6) { break; } cArr4[tvh.c] = (char) (cArr4[tvh.c] - iArr[2]); i17 = tvh.c + 1; } } objArr[0] = new String(cArr4); } }