package o; import android.content.Context; import android.graphics.Color; import android.graphics.ImageFormat; import android.graphics.PointF; import android.graphics.drawable.Drawable; import android.media.AudioTrack; import android.os.Process; import android.telephony.cdma.CdmaCellLocation; import android.text.TextUtils; import android.util.TypedValue; import android.view.KeyEvent; import android.view.MotionEvent; import android.view.View; import android.view.ViewConfiguration; import android.widget.ExpandableListView; import com.google.android.gms.maps.model.BitmapDescriptorFactory; import com.google.common.base.Ascii; import java.lang.reflect.Method; import net.sf.scuba.smartcards.ISO7816; import net.sf.scuba.smartcards.ISOFileInfo; import org.bouncycastle.crypto.tls.CipherSuite; import org.jmrtd.lds.CVCAFile; /* loaded from: classes5.dex */ public final class fPS extends C9257dgM { private static short[] e; private static final byte[] $$a = {Ascii.SUB, 97, -29, 95}; private static final int $$b = CipherSuite.TLS_PSK_WITH_NULL_SHA256; private static int $10 = 0; private static int $11 = 1; private static int i = 0; private static int h = 1; private static int a = -2076804431; private static int b = 1406017057; private static int c = -482038192; private static byte[] d = {-53, 96, 110, ISOFileInfo.FCP_BYTE, -108, -99, CVCAFile.CAR_TAG, CVCAFile.CAR_TAG, -37, ISOFileInfo.FMD_BYTE, 33, -86, -101, -102, -99, 110, -106, 109, -60, -15, 30, ISO7816.INS_UPDATE_BINARY, 6, -53, ISOFileInfo.A5, 92, -81, 73, -92, ISOFileInfo.A0, -89, -90, 90, 117, -105, 92, 83, -87, 90, -89, 72, -23, 126, -100, ISOFileInfo.FMD_BYTE, -97, 77, ISO7816.INS_READ_BINARY_STAMPED, ISO7816.INS_READ_RECORD2, 97, ISO7816.INS_READ_BINARY2, 76, 78, -124, 72, -78, -75, ISO7816.INS_READ_BINARY2, 124, -102, 103, -97, 99, -100, 97, -100, 105, -100, ISO7816.INS_READ_BINARY, 74, -73, 78, 96, -101, ISO7816.INS_READ_BINARY_STAMPED, 96, -98, 99, -98, 72, 102, ISO7816.INS_READ_BINARY, 74, -78, ISOFileInfo.DATA_BYTES2, 96, -97, 76, -73, Ascii.EM, -3, 6, -43, 7, -2, 55, ISO7816.INS_WRITE_RECORD, 47, -44, 4, ISO7816.INS_UNBLOCK_CHV, -43, 40, -41, 45, -5, -43, -4, 5, 6, ISO7816.INS_UNBLOCK_CHV, 6, -43, 45, -7, -45, -6, 45, -43, 7, -7, 6, -15, 14, -2, 54, ISO7816.INS_GET_DATA, 3, -6, 6, ISO7816.INS_PSO, ISO7816.INS_WRITE_RECORD, ISO7816.INS_PSO, -56, -8, 4, 7, -4, 3, -8, -3, 5, -3, 4, 41, -43, -4, 43, -43, 40, ISO7816.INS_UPDATE_BINARY, 45, 4, Ascii.EM, -66, 65, 105, -66, -111, ISOFileInfo.FCI_BYTE, 91, ISOFileInfo.A0, 92, -99, 105, -108, 108, -89, 105, -105, 69, -71, -105, 89, -108, ISOFileInfo.FCI_BYTE, -111, 110, 106, -107, -105, 106, -66, -107, ISO7816.INS_REHABILITATE_CHV, -70, 65, 105, -108, -71, -107, ISO7816.INS_REHABILITATE_CHV, -65, 91, -111, 109, -107, 107, ISOFileInfo.A0, 110, 107, 67, ISOFileInfo.FCP_BYTE, -106, -72, -105, 88, -112, 109, -89, 106, 88, -72, ISO7816.INS_REHABILITATE_CHV, 105, -110, -67, 3, 119, ISOFileInfo.CHANNEL_SECURITY, ISOFileInfo.DATA_BYTES2, 103, -103, -66, 117, ISO7816.INS_DECREASE_STAMPED, -49, 51, -119, -122, 118, 113, ISOFileInfo.ENV_TEMP_EF, -78, 78, 113, ISOFileInfo.FCI_EXT, -70, 74, 118, -124, -67, 65, 123, -103, ISOFileInfo.FMD_BYTE, ISOFileInfo.SECURITY_ATTR_COMPACT, 118, ISOFileInfo.FCI_EXT, 122, -103, ISOFileInfo.FMD_BYTE, -122, ISO7816.INS_READ_BINARY2, ISO7816.INS_INCREASE, -119, -102, 118, 103, -101, 116, 123, -126, 124, -50, 75, 117, ISOFileInfo.PROP_INFO, 119, 126, ISOFileInfo.FILE_IDENTIFIER, ISO7816.INS_MANAGE_CHANNEL, ISOFileInfo.CHANNEL_SECURITY, 121, ISOFileInfo.PROP_INFO, ISO7816.INS_MANAGE_CHANNEL, -120, 118, -124, 126, -124, ISO7816.INS_MANAGE_CHANNEL, 126, -52, -120, 125, 79, ISOFileInfo.SECURITY_ATTR_EXP, 116, -120, -124, -60, -37, 47, -45, ISO7816.INS_UNBLOCK_CHV, -27, 109, ISOFileInfo.A5, 88, -90, ISOFileInfo.SECURITY_ATTR_EXP, -89, 119, -113, 118, -106, 104, 92, -109, -89, 90, 88, 109, ISOFileInfo.A5, 89, -90, -89, 94, -110, -92, 108, -93, 80, -92, ISOFileInfo.A5, -94, ISOFileInfo.SECURITY_ATTR_COMPACT, 105, 91, -120, ISOFileInfo.A5}; private static long j = -5871212193227696477L; /* JADX WARN: Removed duplicated region for block: B:10:0x0024 */ /* JADX WARN: Removed duplicated region for block: B:7:0x001c */ /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0024 -> B:4:0x0026). 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 k(byte r5, short r6, short r7, java.lang.Object[] r8) { /* int r7 = r7 * 4 int r7 = r7 + 4 int r6 = r6 * 2 int r6 = r6 + 1 byte[] r0 = o.fPS.$$a int r5 = r5 + 108 byte[] r1 = new byte[r6] r2 = 0 if (r0 != 0) goto L14 r4 = r6 r3 = r2 goto L26 L14: r3 = r2 L15: byte r4 = (byte) r5 r1[r3] = r4 int r3 = r3 + 1 if (r3 != r6) goto L24 java.lang.String r5 = new java.lang.String r5.(r1, r2) r8[r2] = r5 return L24: r4 = r0[r7] L26: int r7 = r7 + 1 int r5 = r5 + r4 goto L15 */ throw new UnsupportedOperationException("Method not decompiled: o.fPS.k(byte, short, short, java.lang.Object[]):void"); } @Override // o.C9257dgM, android.content.ContentProvider public final boolean onCreate() { int i2 = 2 % 2; int i3 = h + 31; i = i3 % 128; int i4 = i3 % 2; Object[] objArr = new Object[1]; f((short) Color.red(0), 671587164 - ((Process.getThreadPriority(0) + 20) >> 6), (ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)) - 52, 1333088284 - (Process.myTid() >> 22), (byte) (View.MeasureSpec.makeMeasureSpec(0, 0) + 117), objArr); Class cls = Class.forName((String) objArr[0]); Object[] objArr2 = new Object[1]; f((short) (TextUtils.lastIndexOf("", '0') + 1), 671587182 - (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), View.resolveSizeAndState(0, 0, 0) - 53, 1333088295 - MotionEvent.axisFromString(""), (byte) (31 - (ViewConfiguration.getScrollBarSize() >> 8)), objArr2); int intValue = ((Integer) cls.getDeclaredMethod((String) objArr2[0], new Class[0]).invoke(null, new Object[0])).intValue() % 100000; if (intValue < 99000 || intValue > 99999) { Object[] objArr3 = new Object[1]; g(new char[]{21742, 59750, 21647, 42996, 32326, 13450, 28529, 25571, 58330, 14934, 61638, 9071, 55308, 12234, 63090, 48374, 59263, 60361, 45670, 30881, 47960, 55219, 28182, 1217, 32522, 37794, 10752, 49357, 13103, 24478}, (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)), objArr3); Class cls2 = Class.forName((String) objArr3[0]); Object[] objArr4 = new Object[1]; f((short) KeyEvent.getDeadChar(0, 0), Color.alpha(0) + 671587187, (-54) - TextUtils.lastIndexOf("", '0', 0, 0), 1333088286 - TextUtils.getTrimmedLength(""), (byte) (78 - TextUtils.indexOf((CharSequence) "", '0', 0)), objArr4); Context context = (Context) cls2.getMethod((String) objArr4[0], new Class[0]).invoke(null, null); if (context != null) { context = context.getApplicationContext(); } if (context != null) { try { Object obj = xzZ.y.get(125943855); if (obj == null) { obj = ((Class) xzZ.c((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)) + 492, 5 - Drawable.resolveOpacity(0, 0), (char) TextUtils.getCapsMode("", 0, 0))).getMethod("a", null); xzZ.y.put(125943855, obj); } Object invoke = ((Method) obj).invoke(null, null); Object[] objArr5 = new Object[1]; f((short) (TextUtils.lastIndexOf("", '0', 0, 0) + 1), 671587205 - KeyEvent.normalizeMetaState(0), (-52) - (ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)), (ViewConfiguration.getMinimumFlingVelocity() >> 16) + 1333088236, (byte) (ExpandableListView.getPackedPositionChild(0L) - 91), objArr5); String str = (String) objArr5[0]; Object[] objArr6 = new Object[1]; f((short) ((ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) - 1), 671587253 - Color.green(0), (-52) - (ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)), 1333088288 - (Process.myTid() >> 22), (byte) (KeyEvent.getDeadChar(0, 0) - 20), objArr6); String str2 = (String) objArr6[0]; Object[] objArr7 = new Object[1]; f((short) (CdmaCellLocation.convertQuartSecToDecDegrees(0) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(0) == 0.0d ? 0 : -1)), 671587317 - TextUtils.getTrimmedLength(""), (Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)) - 54, 1333088284 - Color.blue(0), (byte) (TextUtils.indexOf((CharSequence) "", '0', 0) + 128), objArr7); String str3 = (String) objArr7[0]; Object[] objArr8 = new Object[1]; f((short) (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)), 671587382 - (ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)), (-53) - (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), 1333088291 - (ViewConfiguration.getKeyRepeatTimeout() >> 16), (byte) ((-99) - TextUtils.getOffsetBefore("", 0)), objArr8); String str4 = (String) objArr8[0]; Object[] objArr9 = new Object[1]; f((short) (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), 671587454 - MotionEvent.axisFromString(""), (-53) - (ViewConfiguration.getScrollDefaultDelay() >> 16), 1333088244 - (Process.myTid() >> 22), (byte) ((-52) - (ViewConfiguration.getKeyRepeatDelay() >> 16)), objArr9); String str5 = (String) objArr9[0]; Object[] objArr10 = new Object[1]; f((short) (ViewConfiguration.getLongPressTimeout() >> 16), 671587460 - (ViewConfiguration.getScrollDefaultDelay() >> 16), (-54) - TextUtils.indexOf((CharSequence) "", '0'), (Process.myPid() >> 22) + 1333088288, (byte) (76 - Color.blue(0)), objArr10); Object[] objArr11 = {context, str, str2, str3, str4, true, str5, (String) objArr10[0]}; Object obj2 = xzZ.y.get(1656189573); if (obj2 == null) { obj2 = ((Class) xzZ.c(487 - (CdmaCellLocation.convertQuartSecToDecDegrees(0) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(0) == 0.0d ? 0 : -1)), 5 - (ViewConfiguration.getMaximumFlingVelocity() >> 16), (char) (ViewConfiguration.getTouchSlop() >> 8))).getMethod("e", Context.class, String.class, String.class, String.class, String.class, Boolean.TYPE, String.class, String.class); xzZ.y.put(1656189573, obj2); } ((Method) obj2).invoke(invoke, objArr11); int i5 = h + 77; i = i5 % 128; int i6 = i5 % 2; } catch (Throwable th) { Throwable cause = th.getCause(); if (cause != null) { throw cause; } throw th; } } } return super.onCreate(); } private static void g(char[] cArr, int i2, Object[] objArr) { int i3 = 2 % 2; GuL guL = new GuL(); char[] a2 = GuL.a(j ^ (-7538262848231253921L), cArr, i2); int i4 = 4; guL.a = 4; while (guL.a < a2.length) { int i5 = $11 + 111; $10 = i5 % 128; int i6 = i5 % 2; guL.c = guL.a - i4; int i7 = guL.a; try { Object[] objArr2 = {Long.valueOf(a2[guL.a] ^ a2[guL.a % i4]), Long.valueOf(guL.c), Long.valueOf(j)}; Object obj = xzZ.y.get(428080616); if (obj == null) { Class cls = (Class) xzZ.c(TextUtils.indexOf("", "", 0) + 208, ImageFormat.getBitsPerPixel(0) + 6, (char) ((Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)) + 1705)); byte b2 = (byte) 0; Object[] objArr3 = new Object[1]; k((byte) 11, b2, b2, objArr3); obj = cls.getMethod((String) objArr3[0], Long.TYPE, Long.TYPE, Long.TYPE); xzZ.y.put(428080616, obj); } a2[i7] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue(); try { Object[] objArr4 = {guL, guL}; Object obj2 = xzZ.y.get(-1875914398); if (obj2 == null) { Class cls2 = (Class) xzZ.c((CdmaCellLocation.convertQuartSecToDecDegrees(0) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(0) == 0.0d ? 0 : -1)) + 392, (ViewConfiguration.getJumpTapTimeout() >> 16) + 5, (char) (TextUtils.lastIndexOf("", '0', 0, 0) + 1)); byte b3 = (byte) 0; Object[] objArr5 = new Object[1]; k((byte) 13, b3, b3, objArr5); obj2 = cls2.getMethod((String) objArr5[0], Object.class, Object.class); xzZ.y.put(-1875914398, obj2); } ((Method) obj2).invoke(null, objArr4); i4 = 4; } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } catch (Throwable th2) { Throwable cause2 = th2.getCause(); if (cause2 == null) { throw th2; } throw cause2; } } String str = new String(a2, 4, a2.length - 4); int i8 = $10 + 33; $11 = i8 % 128; if (i8 % 2 == 0) { throw null; } objArr[0] = str; } /* JADX WARN: Removed duplicated region for block: B:45:0x0210 */ /* JADX WARN: Removed duplicated region for block: B:49:0x0267 */ /* JADX WARN: Removed duplicated region for block: B:55:0x028a */ /* JADX WARN: Removed duplicated region for block: B:59:0x0293 */ /* JADX WARN: Removed duplicated region for block: B:66:0x028c */ /* JADX WARN: Removed duplicated region for block: B:68:0x0211 A[Catch: all -> 0x02f1, TryCatch #0 {all -> 0x02f1, blocks: (B:43:0x01ed, B:46:0x0252, B:68:0x0211), top: B:42:0x01ed }] */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ private static void f(short r17, int r18, int r19, int r20, byte r21, java.lang.Object[] r22) { /* Method dump skipped, instructions count: 778 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: o.fPS.f(short, int, int, int, byte, java.lang.Object[]):void"); } }