package o; import android.content.SharedPreferences; import android.content.res.Resources; import android.graphics.Color; import android.graphics.PointF; import android.os.Process; import android.os.SystemClock; import android.text.TextUtils; import android.view.KeyEvent; import android.view.View; import android.view.ViewConfiguration; import com.google.android.gms.maps.model.BitmapDescriptorFactory; import java.lang.reflect.Method; import java.util.ArrayList; import java.util.Collection; import java.util.List; import kotlin.NoWhenBranchMatchedException; import net.sf.scuba.smartcards.ISO7816; import o.OZ; /* renamed from: o.uO, reason: case insensitive filesystem */ /* loaded from: classes3.dex */ public final class C17152uO extends C16157lj { private static long a; private static char b; private static int d; private static int h; private static final byte[] $$d = {124, -126, ISO7816.INS_MSE, 69}; private static final int $$e = 98; private static int $10 = 0; private static int $11 = 1; private static int i = 1; /* 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: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 q(int r6, int r7, byte r8, java.lang.Object[] r9) { /* int r8 = r8 * 2 int r0 = 1 - r8 byte[] r1 = o.C17152uO.$$d int r7 = r7 * 2 int r7 = 3 - r7 int r6 = 115 - r6 byte[] r0 = new byte[r0] r2 = 0 int r8 = 0 - r8 if (r1 != 0) goto L17 r3 = r7 r7 = r8 r4 = r2 goto L30 L17: r3 = r2 L18: 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 r7 = r7 + 1 int r3 = r3 + 1 r4 = r1[r7] r5 = r7 r7 = r6 r6 = r4 r4 = r3 r3 = r5 L30: int r6 = -r6 int r6 = r6 + r7 r7 = r3 r3 = r4 goto L18 */ throw new UnsupportedOperationException("Method not decompiled: o.C17152uO.q(int, int, byte, java.lang.Object[]):void"); } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ @InterfaceC13391fZD public C17152uO(Resources resources, SharedPreferences sharedPreferences) { super(resources, sharedPreferences); C14957gcv.e(resources, ""); C14957gcv.e(sharedPreferences, ""); } /* JADX WARN: Code restructure failed: missing block: B:10:0x0037, code lost: if (r2 == null) goto L16; */ /* JADX WARN: Code restructure failed: missing block: B:11:0x0039, code lost: r5 = o.C17152uO.i + 95; o.C17152uO.h = r5 % 128; r5 = r5 % 2; r5 = java.lang.Integer.valueOf(r2.d).toString(); */ /* JADX WARN: Code restructure failed: missing block: B:13:0x0050, code lost: if (r5 != null) goto L24; */ /* JADX WARN: Code restructure failed: missing block: B:14:0x0052, code lost: r5 = o.C17152uO.i + 21; o.C17152uO.h = r5 % 128; */ /* JADX WARN: Code restructure failed: missing block: B:15:0x005b, code lost: if ((r5 % 2) != 0) goto L22; */ /* JADX WARN: Code restructure failed: missing block: B:16:0x005d, code lost: r5 = ""; */ /* JADX WARN: Code restructure failed: missing block: B:17:0x005f, code lost: r3.hashCode(); */ /* JADX WARN: Code restructure failed: missing block: B:18:0x0062, code lost: throw null; */ /* JADX WARN: Code restructure failed: missing block: B:20:0x0063, code lost: r5 = java.util.Collections.singletonList(new o.C0821Pe(java.lang.String.valueOf(r1), r5)); o.C14957gcv.c(r5, ""); */ /* JADX WARN: Code restructure failed: missing block: B:21:0x0073, code lost: return r5; */ /* JADX WARN: Code restructure failed: missing block: B:22:0x004d, code lost: r5 = null; */ /* JADX WARN: Code restructure failed: missing block: B:9:0x0035, code lost: r2 = (o.OW) r2; */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ private static java.util.List e(o.OZ r5) { /* r0 = 2 int r1 = r0 % r0 int r1 = r5.c java.util.List r5 = r5.e java.lang.Iterable r5 = (java.lang.Iterable) r5 java.util.Iterator r5 = r5.iterator() Ld: boolean r2 = r5.hasNext() r3 = 0 if (r2 == 0) goto L34 int r2 = o.C17152uO.h int r2 = r2 + 27 int r4 = r2 % 128 o.C17152uO.i = r4 int r2 = r2 % r0 if (r2 == 0) goto L2b java.lang.Object r2 = r5.next() r4 = r2 o.OW r4 = (o.OW) r4 boolean r4 = r4.b if (r4 == 0) goto Ld goto L35 L2b: java.lang.Object r5 = r5.next() o.OW r5 = (o.OW) r5 boolean r5 = r5.b throw r3 L34: r2 = r3 L35: o.OW r2 = (o.OW) r2 if (r2 == 0) goto L4d int r5 = o.C17152uO.i int r5 = r5 + 95 int r4 = r5 % 128 o.C17152uO.h = r4 int r5 = r5 % r0 int r5 = r2.d java.lang.Integer r5 = java.lang.Integer.valueOf(r5) java.lang.String r5 = r5.toString() goto L4e L4d: r5 = r3 L4e: java.lang.String r2 = "" if (r5 != 0) goto L63 int r5 = o.C17152uO.i int r5 = r5 + 21 int r4 = r5 % 128 o.C17152uO.h = r4 int r5 = r5 % r0 if (r5 != 0) goto L5f r5 = r2 goto L63 L5f: r3.hashCode() throw r3 L63: o.Pe r0 = new o.Pe java.lang.String r1 = java.lang.String.valueOf(r1) r0.(r1, r5) java.util.List r5 = java.util.Collections.singletonList(r0) o.C14957gcv.c(r5, r2) return r5 */ throw new UnsupportedOperationException("Method not decompiled: o.C17152uO.e(o.OZ):java.util.List"); } private static List b(OZ oz) { String intern; int i2 = 2 % 2; List d2 = C14881gav.d(new C0821Pe(String.valueOf(oz.c), null)); for (OW ow : oz.e) { int i3 = oz.c; int i4 = ow.d; StringBuilder sb = new StringBuilder(); sb.append(i3); sb.append("."); sb.append(i4); String obj = sb.toString(); if (ow.b) { int i5 = h + 37; i = i5 % 128; int i6 = i5 % 2; Object[] objArr = new Object[1]; n((char) ((ViewConfiguration.getKeyRepeatTimeout() >> 16) + 48402), TextUtils.indexOf("", "", 0) - 1363932927, new char[]{433, 46089, 4782, 55229}, new char[]{17818}, new char[]{0, 0, 0, 0}, objArr); intern = ((String) objArr[0]).intern(); } else { Object[] objArr2 = new Object[1]; n((char) ((ViewConfiguration.getPressedStateDuration() >> 16) + 20707), (-337598982) - (PointF.length(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) > BitmapDescriptorFactory.HUE_RED ? 1 : (PointF.length(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), new char[]{64084, 57509, 58347, 6736}, new char[]{27060}, new char[]{0, 0, 0, 0}, objArr2); intern = ((String) objArr2[0]).intern(); int i7 = i + 13; h = i7 % 128; int i8 = i7 % 2; } d2.add(new C0821Pe(obj, intern)); } return d2; } /* renamed from: o.uO$LWm */ /* loaded from: classes3.dex */ public static final class LWm { private LWm() { } public /* synthetic */ LWm(byte b) { this(); } } public static List a(List list) { int i2 = 2 % 2; C14957gcv.e(list, ""); List list2 = list; C14957gcv.e(list2, ""); ArrayList arrayList = new ArrayList(list2 instanceof Collection ? list2.size() : 10); for (C10927eT c10927eT : list2) { arrayList.add(new C0821Pe(c10927eT.e, c10927eT.b)); } ArrayList arrayList2 = arrayList; int i3 = h + 71; i = i3 % 128; if (i3 % 2 != 0) { return arrayList2; } throw null; } /* JADX INFO: Access modifiers changed from: private */ public static /* synthetic */ Object d(Object[] objArr) { List b2; C0819Pd c0819Pd = (C0819Pd) objArr[0]; int i2 = 2 % 2; C14957gcv.e(c0819Pd, ""); List list = c0819Pd.c; ArrayList arrayList = new ArrayList(); for (OZ oz : list) { int i3 = h + 57; i = i3 % 128; int i4 = i3 % 2; int i5 = HBt.e[oz.d.ordinal()]; if (i5 == 1) { b2 = b(oz); } else { if (i5 != 2) { throw new NoWhenBranchMatchedException(); } b2 = e(oz); } C14881gav.d(arrayList, b2); } ArrayList arrayList2 = arrayList; int i6 = h + 69; i = i6 % 128; if (i6 % 2 != 0) { return arrayList2; } throw null; } public static List c(List list) { int i2 = 2 % 2; C14957gcv.e(list, ""); List list2 = list; C14957gcv.e(list2, ""); ArrayList arrayList = new ArrayList(list2 instanceof Collection ? list2.size() : 10); for (C0821Pe c0821Pe : list2) { arrayList.add(new C10927eT(c0821Pe.c, c0821Pe.b)); int i3 = i + 33; h = i3 % 128; int i4 = i3 % 2; } ArrayList arrayList2 = arrayList; int i5 = h + 103; i = i5 % 128; if (i5 % 2 != 0) { return arrayList2; } throw null; } private static void n(char c, int i2, char[] cArr, char[] cArr2, char[] cArr3, Object[] objArr) { char c2; int i3 = 2 % 2; Nhs nhs = new Nhs(); int length = cArr.length; char[] cArr4 = new char[length]; int length2 = cArr3.length; char[] cArr5 = new char[length2]; System.arraycopy(cArr, 0, cArr4, 0, length); System.arraycopy(cArr3, 0, cArr5, 0, length2); cArr4[0] = (char) (cArr4[0] ^ c); cArr5[2] = (char) (cArr5[2] + ((char) i2)); int length3 = cArr2.length; char[] cArr6 = new char[length3]; nhs.a = 0; int i4 = $11 + 97; $10 = i4 % 128; int i5 = i4 % 2; while (nhs.a < length3) { int i6 = $11 + 7; $10 = i6 % 128; int i7 = i6 % 2; try { Object[] objArr2 = {nhs}; Object obj = xzZ.y.get(263693715); if (obj == null) { obj = ((Class) xzZ.c(45 - TextUtils.indexOf("", "", 0, 0), (SystemClock.elapsedRealtimeNanos() > 0L ? 1 : (SystemClock.elapsedRealtimeNanos() == 0L ? 0 : -1)) + 4, (char) KeyEvent.keyCodeFromString(""))).getMethod("t", Object.class); xzZ.y.put(263693715, obj); } int intValue = ((Integer) ((Method) obj).invoke(null, objArr2)).intValue(); Object[] objArr3 = {nhs}; Object obj2 = xzZ.y.get(-484664112); if (obj2 == null) { Class cls = (Class) xzZ.c(TextUtils.getCapsMode("", 0, 0) + 352, 5 - (ViewConfiguration.getMinimumFlingVelocity() >> 16), (char) (52128 - (ViewConfiguration.getWindowTouchSlop() >> 8))); byte b2 = (byte) 0; byte b3 = b2; Object[] objArr4 = new Object[1]; q(b2, b3, b3, objArr4); obj2 = cls.getMethod((String) objArr4[0], Object.class); xzZ.y.put(-484664112, obj2); } int intValue2 = ((Integer) ((Method) obj2).invoke(null, objArr3)).intValue(); Object[] objArr5 = {nhs, Integer.valueOf(cArr4[nhs.a % 4] * 32718), Integer.valueOf(cArr5[intValue])}; Object obj3 = xzZ.y.get(430099516); if (obj3 == null) { obj3 = ((Class) xzZ.c(TextUtils.indexOf("", "", 0) + 748, 5 - (Process.myPid() >> 22), (char) Color.red(0))).getMethod(com.pingan.ai.p.a, Object.class, Integer.TYPE, Integer.TYPE); xzZ.y.put(430099516, obj3); } ((Method) obj3).invoke(null, objArr5); Object[] objArr6 = {Integer.valueOf(cArr4[intValue2] * 32718), Integer.valueOf(cArr5[intValue])}; Object obj4 = xzZ.y.get(1019894806); if (obj4 != null) { c2 = 2; } else { Class cls2 = (Class) xzZ.c(402 - View.getDefaultSize(0, 0), 5 - (PointF.length(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) > BitmapDescriptorFactory.HUE_RED ? 1 : (PointF.length(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), (char) (21609 - (SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)))); byte b4 = (byte) 1; byte b5 = (byte) (b4 - 1); Object[] objArr7 = new Object[1]; q(b4, b5, b5, objArr7); c2 = 2; obj4 = cls2.getMethod((String) objArr7[0], Integer.TYPE, Integer.TYPE); xzZ.y.put(1019894806, obj4); } cArr5[intValue2] = ((Character) ((Method) obj4).invoke(null, objArr6)).charValue(); cArr4[intValue2] = nhs.c; cArr6[nhs.a] = (char) ((((cArr4[intValue2] ^ cArr2[nhs.a]) ^ (a ^ 9051040786702654117L)) ^ ((int) (d ^ 9051040786702654117L))) ^ ((char) (b ^ 9051040786702654117L))); nhs.a++; } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } objArr[0] = new String(cArr6); } static void f() { a = 9051040786702654117L; d = 452713125; b = (char) 36950; } /* renamed from: o.uO$HBt */ /* loaded from: classes3.dex */ public final /* synthetic */ class HBt { public static final int[] e; static { int[] iArr = new int[OZ.RVV.values().length]; try { iArr[OZ.RVV.CHECKBOX.ordinal()] = 1; } catch (NoSuchFieldError unused) { } try { iArr[OZ.RVV.RADIO.ordinal()] = 2; } catch (NoSuchFieldError unused2) { } e = iArr; } } public static List c(C0819Pd c0819Pd) { return (List) d(new Object[]{c0819Pd}); } static { h = 0; f(); new LWm((byte) 0); int i2 = i + 15; h = i2 % 128; if (i2 % 2 != 0) { throw null; } } }