package o; import android.graphics.Color; import android.media.AudioTrack; import android.os.Process; import android.os.SystemClock; import android.text.TextUtils; import android.util.TypedValue; import android.view.KeyEvent; import android.view.View; import android.view.ViewConfiguration; import android.widget.ExpandableListView; import com.google.android.gms.maps.model.BitmapDescriptorFactory; import java.lang.reflect.Method; import net.sf.scuba.smartcards.ISO7816; import net.sf.scuba.smartcards.ISOFileInfo; /* loaded from: classes4.dex */ public class cYW extends C9257dgM { private static final byte[] $$a = {65, 0, ISO7816.INS_CHANGE_CHV, ISOFileInfo.FMD_BYTE}; private static final int $$b = 66; private static int $10 = 0; private static int $11 = 1; private static int c = 0; private static int g = 1; private static long e = 5070624857584849878L; private static int a = 452713125; private static char b = 55973; private static long d = 2290371421938459022L; /* JADX WARN: Removed duplicated region for block: B:10:0x0023 */ /* JADX WARN: Removed duplicated region for block: B:7:0x001b */ /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0023 -> B:4:0x002a). 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 i(short r6, int r7, byte r8, java.lang.Object[] r9) { /* int r8 = 121 - r8 byte[] r0 = o.cYW.$$a int r7 = r7 * 3 int r7 = 4 - r7 int r6 = r6 * 2 int r1 = r6 + 1 byte[] r1 = new byte[r1] r2 = 0 if (r0 != 0) goto L15 r4 = r6 r8 = r7 r3 = r2 goto L2a L15: r3 = r2 L16: byte r4 = (byte) r8 r1[r3] = r4 if (r3 != r6) goto L23 java.lang.String r6 = new java.lang.String r6.(r1, r2) r9[r2] = r6 return L23: int r3 = r3 + 1 r4 = r0[r7] r5 = r8 r8 = r7 r7 = r5 L2a: int r7 = r7 + r4 int r8 = r8 + 1 r5 = r8 r8 = r7 r7 = r5 goto L16 */ throw new UnsupportedOperationException("Method not decompiled: o.cYW.i(short, int, byte, java.lang.Object[]):void"); } private static void h(char[] cArr, int i, Object[] objArr) { int i2 = 2 % 2; GuL guL = new GuL(); char[] a2 = GuL.a(d ^ (-7538262848231253921L), cArr, i); guL.a = 4; while (guL.a < a2.length) { int i3 = $11 + 29; $10 = i3 % 128; int i4 = i3 % 2; guL.c = guL.a - 4; int i5 = guL.a; try { Object[] objArr2 = {Long.valueOf(a2[guL.a] ^ a2[guL.a % 4]), Long.valueOf(guL.c), Long.valueOf(d)}; Object obj = xzZ.y.get(428080616); if (obj == null) { Class cls = (Class) xzZ.c(208 - (ViewConfiguration.getMaximumFlingVelocity() >> 16), 5 - TextUtils.getOffsetBefore("", 0), (char) (1706 - (ViewConfiguration.getScrollBarFadeDuration() >> 16))); byte b2 = $$a[1]; byte b3 = b2; Object[] objArr3 = new Object[1]; i(b2, b3, (byte) (b3 + 2), objArr3); obj = cls.getMethod((String) objArr3[0], Long.TYPE, Long.TYPE, Long.TYPE); xzZ.y.put(428080616, obj); } a2[i5] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue(); Object[] objArr4 = {guL, guL}; Object obj2 = xzZ.y.get(-1875914398); if (obj2 == null) { Class cls2 = (Class) xzZ.c(392 - View.MeasureSpec.getMode(0), (TypedValue.complexToFraction(0, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFraction(0, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 5, (char) ((SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)) - 1)); byte b4 = $$a[1]; byte b5 = b4; Object[] objArr5 = new Object[1]; i(b4, b5, b5, objArr5); obj2 = cls2.getMethod((String) objArr5[0], Object.class, Object.class); xzZ.y.put(-1875914398, obj2); } ((Method) obj2).invoke(null, objArr4); } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } String str = new String(a2, 4, a2.length - 4); int i6 = $11 + 27; $10 = i6 % 128; if (i6 % 2 != 0) { throw null; } objArr[0] = str; } /* JADX WARN: Code restructure failed: missing block: B:6:0x0074, code lost: if (r3 > 99999) goto L10; */ @Override // o.C9257dgM, android.content.ContentProvider /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public boolean onCreate() { /* Method dump skipped, instructions count: 1124 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: o.cYW.onCreate():boolean"); } private static void f(char c2, char[] cArr, char[] cArr2, char[] cArr3, int i, Object[] objArr) { int i2 = 2; int i3 = 2 % 2; Nhs nhs = new Nhs(); int length = cArr2.length; char[] cArr4 = new char[length]; int length2 = cArr3.length; char[] cArr5 = new char[length2]; System.arraycopy(cArr2, 0, cArr4, 0, length); System.arraycopy(cArr3, 0, cArr5, 0, length2); cArr4[0] = (char) (cArr4[0] ^ c2); cArr5[2] = (char) (cArr5[2] + ((char) i)); int length3 = cArr.length; char[] cArr6 = new char[length3]; nhs.a = 0; while (nhs.a < length3) { int i4 = $11 + 83; $10 = i4 % 128; int i5 = i4 % i2; try { Object[] objArr2 = {nhs}; Object obj = xzZ.y.get(263693715); if (obj == null) { obj = ((Class) xzZ.c(45 - Color.blue(0), 5 - View.combineMeasuredStates(0, 0), (char) ExpandableListView.getPackedPositionGroup(0L))).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(352 - (Process.myTid() >> 22), 5 - TextUtils.getCapsMode("", 0, 0), (char) (52129 - (ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)))); byte b2 = $$a[1]; byte b3 = b2; Object[] objArr4 = new Object[1]; i(b2, b3, (byte) (b3 | 6), 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.getOffsetBefore("", 0) + 748, ExpandableListView.getPackedPositionChild(0L) + 6, (char) (ViewConfiguration.getScrollDefaultDelay() >> 16))).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) { Class cls2 = (Class) xzZ.c(401 - ((byte) KeyEvent.getModifierMetaStateMask()), 5 - (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), (char) (21608 - (Process.myTid() >> 22))); byte b4 = $$a[1]; byte b5 = b4; Object[] objArr7 = new Object[1]; i(b4, b5, (byte) (b5 | 7), objArr7); 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] ^ cArr[nhs.a]) ^ (e ^ 9051040786702654117L)) ^ ((int) (a ^ 9051040786702654117L))) ^ ((char) (b ^ 9051040786702654117L))); nhs.a++; i2 = 2; } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } String str = new String(cArr6); int i6 = $11 + 37; $10 = i6 % 128; int i7 = i6 % 2; objArr[0] = str; } }