package o; import android.content.SharedPreferences; import android.content.res.Resources; import android.graphics.Color; import android.graphics.ImageFormat; import android.text.TextUtils; import android.view.KeyEvent; import android.view.View; import android.view.ViewConfiguration; import android.widget.ExpandableListView; import java.lang.reflect.Method; import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; import java.util.List; import org.bouncycastle.crypto.tls.CipherSuite; /* renamed from: o.nB, reason: case insensitive filesystem */ /* loaded from: classes3.dex */ public final class C16289nB extends AbstractC16173lt { private static char a; private static int b; private static char[] d; private static final byte[] $$d = {119, 73, 35, -58}; private static final int $$e = CipherSuite.TLS_DH_DSS_WITH_AES_128_GCM_SHA256; private static int $10 = 0; private static int $11 = 1; private static int f = 1; /* JADX WARN: Removed duplicated region for block: B:10:0x0027 */ /* JADX WARN: Removed duplicated region for block: B:7:0x001f */ /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0027 -> B:4:0x002d). 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 s(int r7, byte r8, byte r9, java.lang.Object[] r10) { /* int r7 = r7 * 4 int r7 = r7 + 1 int r9 = 120 - r9 byte[] r0 = o.C16289nB.$$d int r8 = r8 * 4 int r8 = 3 - r8 byte[] r1 = new byte[r7] r2 = 0 if (r0 != 0) goto L15 r3 = r9 r4 = r2 r9 = r8 goto L2d L15: r3 = r2 L16: int r8 = r8 + 1 int r4 = r3 + 1 byte r5 = (byte) r9 r1[r3] = r5 if (r4 != r7) goto L27 java.lang.String r7 = new java.lang.String r7.(r1, r2) r10[r2] = r7 return L27: r3 = r0[r8] r6 = r9 r9 = r8 r8 = r3 r3 = r6 L2d: int r8 = -r8 int r8 = r8 + r3 r3 = r4 r6 = r9 r9 = r8 r8 = r6 goto L16 */ throw new UnsupportedOperationException("Method not decompiled: o.C16289nB.s(int, byte, byte, java.lang.Object[]):void"); } @Override // o.AbstractC16173lt public final /* bridge */ /* synthetic */ C0433Gl d(hAn han) { int i = 2 % 2; int i2 = f + 119; b = i2 % 128; int i3 = i2 % 2; C0433Gl d2 = d2(han); int i4 = b + 67; f = i4 % 128; if (i4 % 2 == 0) { int i5 = 49 / 0; } return d2; } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ @InterfaceC13391fZD public C16289nB(Resources resources, SharedPreferences sharedPreferences) { super(resources, sharedPreferences); C14957gcv.e(resources, ""); C14957gcv.e(sharedPreferences, ""); } /* renamed from: d, reason: avoid collision after fix types in other method */ private static C0433Gl d2(hAn han) { int i = 2 % 2; C14957gcv.e(han, ""); String str = han.k; Object[] objArr = new Object[1]; q(TextUtils.indexOf("", "") + 1, new char[]{13752}, (byte) ((ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)) + 13), objArr); String e = gjJ.e(str, ((String) objArr[0]).intern()); String str2 = han.k; String c = c(Double.valueOf(han.n)); double d2 = han.n; String c2 = c(Double.valueOf(han.l)); String c3 = c(Double.valueOf(han.f9155o)); String c4 = c(Double.valueOf(han.j)); double d3 = han.j; String n = n(han.g); String str3 = han.g; String n2 = n(han.t); String str4 = han.t; String str5 = han.h; String i2 = i(Double.valueOf(han.c)); String i3 = i(Double.valueOf(han.c)); StringBuilder sb = new StringBuilder(); sb.append(i3); sb.append("%"); String obj = sb.toString(); double d4 = han.b; String c5 = c(Double.valueOf(han.b)); String i4 = i(Double.valueOf(han.d)); String i5 = i(Double.valueOf(han.d)); StringBuilder sb2 = new StringBuilder(); sb2.append(i5); sb2.append("%"); String obj2 = sb2.toString(); String i6 = i(Double.valueOf(han.q)); String i7 = i(Double.valueOf(han.q)); StringBuilder sb3 = new StringBuilder(); sb3.append(i7); sb3.append("%"); String obj3 = sb3.toString(); Object[] objArr2 = {han.i}; C0433Gl c0433Gl = new C0433Gl(e, str2, c, Double.valueOf(d2), c2, c3, c4, Double.valueOf(d3), n, str3, n2, str4, str5, i2, obj, Double.valueOf(d4), c5, i4, obj2, i6, obj3, (C0456Gz) b(objArr2), null, han.f, han.m, han.r, 4194304); int i8 = b + 59; f = i8 % 128; int i9 = i8 % 2; return c0433Gl; } /* JADX INFO: Access modifiers changed from: private */ public static /* synthetic */ Object b(Object[] objArr) { C0456Gz c0456Gz; CoP coP = (CoP) objArr[0]; int i = 2 % 2; int i2 = f + 103; b = i2 % 128; int i3 = i2 % 2; if (coP == null) { c0456Gz = new C0456Gz("", ""); } else { c0456Gz = new C0456Gz(coP.d, coP.e, coP.b); } int i4 = f + 65; b = i4 % 128; int i5 = i4 % 2; return c0456Gz; } @Override // o.AbstractC16173lt public final List d(List list) { int i = 2 % 2; int i2 = f + 57; b = i2 % 128; int i3 = i2 % 2; if (list != null) { List list2 = list; C14957gcv.e(list2, ""); ArrayList arrayList = new ArrayList(list2 instanceof Collection ? list2.size() : 10); Iterator it = list2.iterator(); while (it.hasNext()) { int i4 = b + 111; f = i4 % 128; int i5 = i4 % 2; arrayList.add(d2((hAn) it.next())); } return arrayList; } return new ArrayList(); } private static String n(String str) { int i = 2 % 2; int i2 = f + 99; b = i2 % 128; if (i2 % 2 != 0) { Object obj = null; obj.hashCode(); throw null; } if (str == null) { return ""; } StringBuilder sb = new StringBuilder(); sb.append(str); sb.append("%"); String obj2 = sb.toString(); int i3 = f + 107; b = i3 % 128; int i4 = i3 % 2; return obj2; } /* renamed from: o.nB$HBt */ /* loaded from: classes3.dex */ public static final class HBt { private HBt() { } public /* synthetic */ HBt(byte b) { this(); } } private static void q(int i, char[] cArr, byte b2, Object[] objArr) { int i2; int i3; int i4 = 2; int i5 = 2 % 2; IRS irs = new IRS(); char[] cArr2 = d; if (cArr2 != null) { int length = cArr2.length; char[] cArr3 = new char[length]; int i6 = 0; while (i6 < length) { int i7 = $10 + 67; $11 = i7 % 128; int i8 = i7 % i4; try { Object[] objArr2 = {Integer.valueOf(cArr2[i6])}; Object obj = xzZ.y.get(-1987398494); if (obj == null) { Class cls = (Class) xzZ.c(298 - KeyEvent.getDeadChar(0, 0), 5 - (KeyEvent.getMaxKeyCode() >> 16), (char) View.resolveSizeAndState(0, 0, 0)); byte b3 = (byte) 0; byte b4 = b3; Object[] objArr3 = new Object[1]; s(b3, b4, (byte) (b4 + 3), objArr3); obj = cls.getMethod((String) objArr3[0], Integer.TYPE); xzZ.y.put(-1987398494, obj); } cArr3[i6] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue(); i6++; i4 = 2; } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } cArr2 = cArr3; } Object[] objArr4 = {Integer.valueOf(a)}; Object obj2 = xzZ.y.get(-1987398494); if (obj2 == null) { Class cls2 = (Class) xzZ.c((ViewConfiguration.getScrollBarSize() >> 8) + 298, (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)) + 5, (char) TextUtils.indexOf("", "", 0)); byte b5 = (byte) 0; byte b6 = b5; Object[] objArr5 = new Object[1]; s(b5, b6, (byte) (b6 + 3), objArr5); obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE); xzZ.y.put(-1987398494, obj2); } char charValue = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue(); char[] cArr4 = new char[i]; if (i % 2 != 0) { int i9 = $10 + 59; $11 = i9 % 128; if (i9 % 2 == 0) { i2 = i + 16; cArr4[i2] = (char) (cArr[i2] >> b2); } else { i2 = i - 1; cArr4[i2] = (char) (cArr[i2] - b2); } } else { i2 = i; } if (i2 > 1) { irs.e = 0; while (irs.e < i2) { irs.b = cArr[irs.e]; irs.c = cArr[irs.e + 1]; if (irs.b == irs.c) { cArr4[irs.e] = (char) (irs.b - b2); cArr4[irs.e + 1] = (char) (irs.c - b2); i3 = 2; } else { Object[] objArr6 = {irs, irs, Integer.valueOf(charValue), irs, irs, Integer.valueOf(charValue), irs, irs, Integer.valueOf(charValue), irs, irs, Integer.valueOf(charValue), irs}; Object obj3 = xzZ.y.get(822107368); if (obj3 == null) { Class cls3 = (Class) xzZ.c(Color.argb(0, 0, 0, 0) + 233, Color.green(0) + 5, (char) (22023 - ImageFormat.getBitsPerPixel(0))); byte b7 = (byte) 0; byte b8 = b7; Object[] objArr7 = new Object[1]; s(b7, b8, b8, objArr7); obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Object.class); xzZ.y.put(822107368, obj3); } if (((Integer) ((Method) obj3).invoke(null, objArr6)).intValue() == irs.j) { int i10 = $11 + 59; $10 = i10 % 128; int i11 = i10 % 2; Object[] objArr8 = {irs, irs, Integer.valueOf(charValue), Integer.valueOf(charValue), irs, irs, Integer.valueOf(charValue), Integer.valueOf(charValue), irs, Integer.valueOf(charValue), irs}; Object obj4 = xzZ.y.get(-1152873385); if (obj4 == null) { Class cls4 = (Class) xzZ.c((ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)) + 326, (ViewConfiguration.getScrollBarFadeDuration() >> 16) + 5, (char) ExpandableListView.getPackedPositionType(0L)); byte b9 = (byte) 0; byte b10 = b9; Object[] objArr9 = new Object[1]; s(b9, b10, (byte) (b10 + 2), objArr9); obj4 = cls4.getMethod((String) objArr9[0], Object.class, Object.class, Integer.TYPE, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Integer.TYPE, Object.class, Integer.TYPE, Object.class); xzZ.y.put(-1152873385, obj4); } int intValue = ((Integer) ((Method) obj4).invoke(null, objArr8)).intValue(); int i12 = (irs.d * charValue) + irs.j; cArr4[irs.e] = cArr2[intValue]; cArr4[irs.e + 1] = cArr2[i12]; } else if (irs.a == irs.d) { irs.f = ((irs.f + charValue) - 1) % charValue; irs.j = ((irs.j + charValue) - 1) % charValue; int i13 = (irs.a * charValue) + irs.f; int i14 = (irs.d * charValue) + irs.j; cArr4[irs.e] = cArr2[i13]; cArr4[irs.e + 1] = cArr2[i14]; } else { int i15 = (irs.a * charValue) + irs.j; int i16 = (irs.d * charValue) + irs.f; cArr4[irs.e] = cArr2[i15]; cArr4[irs.e + 1] = cArr2[i16]; int i17 = $10 + 87; $11 = i17 % 128; i3 = 2; int i18 = i17 % 2; } i3 = 2; } irs.e += i3; } } for (int i19 = 0; i19 < i; i19++) { cArr4[i19] = (char) (cArr4[i19] ^ 13722); } objArr[0] = new String(cArr4); } static void i() { d = new char[]{49027}; a = (char) 35368; } private static C0456Gz c(CoP coP) { return (C0456Gz) b(new Object[]{coP}); } static { b = 0; i(); new HBt((byte) 0); int i = f + 97; b = i % 128; if (i % 2 != 0) { int i2 = 42 / 0; } } }