package o; import android.content.SharedPreferences; import android.content.res.Resources; import android.graphics.Color; import android.os.Process; import android.text.TextUtils; import android.view.MotionEvent; import android.view.View; import android.view.ViewConfiguration; import android.widget.ExpandableListView; import java.lang.reflect.Method; import java.util.Arrays; import org.threeten.bp.OffsetDateTime; /* renamed from: o.uA, reason: case insensitive filesystem */ /* loaded from: classes3.dex */ public final class C17118uA extends AbstractC16173lt { private static int[] a; private static int b; private static final byte[] $$d = {124, -55, -59, 62}; private static final int $$e = 23; private static int $10 = 0; private static int $11 = 1; private static int d = 0; /* 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:0x0029). 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(short r6, int r7, byte r8, java.lang.Object[] r9) { /* byte[] r0 = o.C17118uA.$$d int r6 = r6 * 3 int r6 = r6 + 1 int r8 = r8 * 2 int r8 = 104 - r8 int r7 = r7 * 2 int r7 = r7 + 4 byte[] r1 = new byte[r6] r2 = 0 if (r0 != 0) goto L17 r3 = r8 r4 = r2 r8 = r7 goto L29 L17: r3 = r2 L18: int r4 = r3 + 1 byte r5 = (byte) r8 r1[r3] = r5 if (r4 != r6) goto L27 java.lang.String r6 = new java.lang.String r6.(r1, r2) r9[r2] = r6 return L27: r3 = r0[r7] L29: int r3 = -r3 int r7 = r7 + 1 int r8 = r8 + r3 r3 = r4 goto L18 */ throw new UnsupportedOperationException("Method not decompiled: o.C17118uA.q(short, int, byte, java.lang.Object[]):void"); } @Override // o.AbstractC16173lt public final /* synthetic */ OJ d(ThO thO) { int i = 2 % 2; int i2 = d + 119; b = i2 % 128; int i3 = i2 % 2; OJ b2 = b(thO); if (i3 == 0) { int i4 = 71 / 0; } return b2; } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ @InterfaceC13391fZD public C17118uA(Resources resources, SharedPreferences sharedPreferences) { super(resources, sharedPreferences); C14957gcv.e(resources, ""); C14957gcv.e(sharedPreferences, ""); } private OJ b(ThO thO) { boolean z; String str; int i = 2 % 2; int i2 = b + 81; d = i2 % 128; int i3 = i2 % 2; C14957gcv.e(thO, ""); String e = e(Double.valueOf(thO.m)); String e2 = e(Double.valueOf(thO.k)); gcH gch = gcH.d; String format = String.format("%s (%s%%)", Arrays.copyOf(new Object[]{e, e2}, 2)); C14957gcv.c((Object) format, ""); int i4 = thO.r; String str2 = thO.j; String str3 = thO.i; String str4 = thO.b; String str5 = thO.d; String f = f(Double.valueOf(thO.f8378o)); String c = c(Double.valueOf(thO.t)); String c2 = c(Double.valueOf(thO.m)); String c3 = c(Double.valueOf(thO.k)); String d2 = d(thO.n); String str6 = thO.n; int c4 = c(thO.n); int a2 = a(thO.n); String f2 = f(Double.valueOf(thO.p)); int b2 = b(thO.m); String str7 = thO.h; String str8 = thO.e; Object[] objArr = new Object[1]; n(new int[]{2066752580, -562932257}, (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)) + 1, objArr); boolean b3 = C14957gcv.b((Object) str8, (Object) ((String) objArr[0]).intern()); String f3 = f(Double.valueOf(thO.a)); String c5 = c(Double.valueOf(thO.c)); boolean z2 = thO.g; OffsetDateTime offsetDateTime = thO.l; Object obj = null; if (offsetDateTime != null) { int i5 = b + 53; z = z2; d = i5 % 128; int i6 = i5 % 2; C14957gcv.c(offsetDateTime, ""); str = a(thO.l); } else { z = z2; str = null; } if (str == null) { str = "-"; } OJ oj = new OJ(i4, str2, str3, str4, str5, f, c, c2, c3, d2, str6, Integer.valueOf(c4), Integer.valueOf(a2), format, f2, b2, str7, b3, f3, c5, z, str); int i7 = d + 1; b = i7 % 128; if (i7 % 2 != 0) { return oj; } obj.hashCode(); throw null; } /* renamed from: o.uA$HBt */ /* loaded from: classes3.dex */ public static final class HBt { private HBt() { } public /* synthetic */ HBt(byte b) { this(); } } private static void n(int[] iArr, int i, Object[] objArr) { int[] iArr2; int i2 = 2 % 2; C4403bZM c4403bZM = new C4403bZM(); char[] cArr = new char[4]; char[] cArr2 = new char[iArr.length * 2]; int[] iArr3 = a; int i3 = 58134; int i4 = 729798706; int i5 = 1; int i6 = 0; if (iArr3 != null) { int length = iArr3.length; int[] iArr4 = new int[length]; int i7 = 0; while (i7 < length) { try { Object[] objArr2 = new Object[i5]; objArr2[0] = Integer.valueOf(iArr3[i7]); Object obj = xzZ.y.get(Integer.valueOf(i4)); if (obj == null) { obj = ((Class) xzZ.c(14 - MotionEvent.axisFromString(""), Color.alpha(0) + 5, (char) (i3 - (Process.myPid() >> 22)))).getMethod("i", Integer.TYPE); xzZ.y.put(729798706, obj); } iArr4[i7] = ((Integer) ((Method) obj).invoke(null, objArr2)).intValue(); i7++; i3 = 58134; i4 = 729798706; i5 = 1; } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } int i8 = $10 + 97; $11 = i8 % 128; int i9 = i8 % 2; iArr3 = iArr4; } int length2 = iArr3.length; int[] iArr5 = new int[length2]; int[] iArr6 = a; if (iArr6 != null) { int length3 = iArr6.length; int[] iArr7 = new int[length3]; int i10 = $10 + 97; $11 = i10 % 128; int i11 = i10 % 2; int i12 = 0; while (i12 < length3) { Object[] objArr3 = new Object[1]; objArr3[i6] = Integer.valueOf(iArr6[i12]); Object obj2 = xzZ.y.get(729798706); if (obj2 != null) { iArr2 = iArr6; } else { iArr2 = iArr6; Method method = ((Class) xzZ.c(View.resolveSizeAndState(0, 0, 0) + 15, 5 - TextUtils.getTrimmedLength(""), (char) (58134 - Color.argb(0, 0, 0, 0)))).getMethod("i", Integer.TYPE); xzZ.y.put(729798706, method); obj2 = method; } iArr7[i12] = ((Integer) ((Method) obj2).invoke(null, objArr3)).intValue(); i12++; iArr6 = iArr2; i6 = 0; } iArr6 = iArr7; } int i13 = i6; System.arraycopy(iArr6, i13, iArr5, i13, length2); c4403bZM.b = i13; while (c4403bZM.b < iArr.length) { cArr[i13] = (char) (iArr[c4403bZM.b] >> 16); cArr[1] = (char) iArr[c4403bZM.b]; cArr[2] = (char) (iArr[c4403bZM.b + 1] >> 16); cArr[3] = (char) iArr[c4403bZM.b + 1]; c4403bZM.e = (cArr[0] << 16) + cArr[1]; c4403bZM.a = (cArr[2] << 16) + cArr[3]; C4403bZM.d(iArr5); int i14 = 0; for (int i15 = 16; i14 < i15; i15 = 16) { int i16 = $10 + 19; $11 = i16 % 128; int i17 = i16 % 2; c4403bZM.e ^= iArr5[i14]; Object[] objArr4 = {c4403bZM, Integer.valueOf(C4403bZM.d(c4403bZM.e)), c4403bZM, c4403bZM}; Object obj3 = xzZ.y.get(-1196964548); if (obj3 == null) { Class cls = (Class) xzZ.c((ViewConfiguration.getFadingEdgeLength() >> i15) + 118, 5 - (ViewConfiguration.getLongPressTimeout() >> i15), (char) TextUtils.getCapsMode("", 0, 0)); byte b2 = (byte) 0; byte b3 = b2; Object[] objArr5 = new Object[1]; q(b2, b3, b3, objArr5); obj3 = cls.getMethod((String) objArr5[0], Object.class, Integer.TYPE, Object.class, Object.class); xzZ.y.put(-1196964548, obj3); } int intValue = ((Integer) ((Method) obj3).invoke(null, objArr4)).intValue(); c4403bZM.e = c4403bZM.a; c4403bZM.a = intValue; i14++; } int i18 = c4403bZM.e; c4403bZM.e = c4403bZM.a; c4403bZM.a = i18; c4403bZM.a ^= iArr5[16]; c4403bZM.e ^= iArr5[17]; int i19 = c4403bZM.e; int i20 = c4403bZM.a; cArr[0] = (char) (c4403bZM.e >>> 16); cArr[1] = (char) c4403bZM.e; cArr[2] = (char) (c4403bZM.a >>> 16); cArr[3] = (char) c4403bZM.a; C4403bZM.d(iArr5); cArr2[c4403bZM.b * 2] = cArr[0]; cArr2[(c4403bZM.b * 2) + 1] = cArr[1]; cArr2[(c4403bZM.b * 2) + 2] = cArr[2]; cArr2[(c4403bZM.b * 2) + 3] = cArr[3]; Object[] objArr6 = {c4403bZM, c4403bZM}; Object obj4 = xzZ.y.get(1914371176); if (obj4 == null) { Class cls2 = (Class) xzZ.c((ViewConfiguration.getScrollDefaultDelay() >> 16) + 98, 5 - (ViewConfiguration.getKeyRepeatDelay() >> 16), (char) (ViewConfiguration.getKeyRepeatTimeout() >> 16)); byte b4 = (byte) 0; byte b5 = b4; Object[] objArr7 = new Object[1]; q(b4, b5, (byte) (b5 + 1), objArr7); obj4 = cls2.getMethod((String) objArr7[0], Object.class, Object.class); xzZ.y.put(1914371176, obj4); } ((Method) obj4).invoke(null, objArr6); i13 = 0; } String str = new String(cArr2, 0, i); int i21 = $11 + 49; $10 = i21 % 128; if (i21 % 2 == 0) { objArr[0] = str; } else { int i22 = 84 / 0; objArr[0] = str; } } static void g() { a = new int[]{1705028429, -2084404247, -1709711718, 90656197, 1268118576, -1071344460, -1806463500, 92502881, 1442931352, -753073038, -2032570175, 2055913497, 14152294, 1602963766, -960318110, 2104909699, 1409128959, 113252434}; } static { b = 1; g(); new HBt((byte) 0); int i = d + 17; b = i % 128; if (i % 2 == 0) { int i2 = 39 / 0; } } }