package com.facetec.sdk; import android.content.Context; import android.content.SharedPreferences; 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.os.SystemClock; import android.telephony.cdma.CdmaCellLocation; import android.text.TextUtils; import android.util.TypedValue; import android.view.Gravity; import android.view.KeyEvent; import android.view.View; import android.view.ViewConfiguration; import android.widget.ExpandableListView; import com.facetec.sdk.ke; import com.google.android.gms.maps.model.BitmapDescriptorFactory; import java.lang.reflect.Method; import net.sf.scuba.smartcards.ISOFileInfo; import org.jmrtd.lds.CVCAFile; /* JADX INFO: Access modifiers changed from: package-private */ /* loaded from: classes.dex */ public final class h { private static final byte[] $$a = null; private static final int $$b = 0; private static int $10; private static int $11; private static int a; private static int b; private static int c; private static byte[] d; private static final jz e; private static short[] f; private static char g; private static int h; private static long i; private static int j; /* renamed from: o, reason: collision with root package name */ private static int f6443o; /* JADX WARN: Multi-variable type inference failed */ /* JADX WARN: Removed duplicated region for block: B:10:0x0025 */ /* JADX WARN: Removed duplicated region for block: B:7:0x001d */ /* JADX WARN: Type inference failed for: r8v1, types: [int] */ /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0025 -> B:4:0x002c). 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 m(byte r6, byte r7, byte r8, java.lang.Object[] r9) { /* int r8 = 106 - r8 byte[] r0 = com.facetec.sdk.h.$$a int r6 = r6 << 2 int r7 = r7 * 3 int r7 = r7 + 4 int r1 = 1 - r6 byte[] r1 = new byte[r1] r2 = 0 if (r0 != 0) goto L15 r4 = r8 r3 = r2 r8 = r7 goto L2c L15: r3 = r2 L16: byte r4 = (byte) r8 r1[r3] = r4 int r4 = 0 - r6 if (r3 != r4) goto L25 java.lang.String r6 = new java.lang.String r6.(r1, r2) r9[r2] = r6 return L25: int r3 = r3 + 1 r4 = r0[r7] r5 = r8 r8 = r7 r7 = r5 L2c: int r7 = r7 - r4 int r8 = r8 + 1 r5 = r8 r8 = r7 r7 = r5 goto L16 */ throw new UnsupportedOperationException("Method not decompiled: com.facetec.sdk.h.m(byte, byte, byte, java.lang.Object[]):void"); } h() { } static { init$0(); $10 = 0; $11 = 1; j = 0; f6443o = 1; d(); TypedValue.complexToFloat(0); AudioTrack.getMaxVolume(); ViewConfiguration.getMaximumDrawingCacheSize(); TextUtils.getCapsMode("", 0, 0); Process.getElapsedCpuTime(); Object[] objArr = new Object[1]; l("䢱艺\ue9f6ᅂ嶺䁋ཡᖷ\uda19\ue86e⇯螁撔꺈\uf0a5\ue7b4戱畎㺛⊸\udc46行\ude5a\udb60谸㐽ఀ迹\uf78e⮣╣", "癜貑쮒ᕙ", (ViewConfiguration.getScrollDefaultDelay() >> 16) + 301958337, (char) (25813 - View.MeasureSpec.getSize(0)), "섏ト픑륤", objArr); e = jz.a(((String) objArr[0]).intern()); int i2 = j + 111; f6443o = i2 % 128; if (i2 % 2 == 0) { throw null; } } /* JADX INFO: Access modifiers changed from: package-private */ public static ke c(Context context, String str, Object obj) throws d { ke b2 = c(context, str).d(ki.e(e, new dv().e().a().b(obj))).b(); int i2 = j + 91; f6443o = i2 % 128; if (i2 % 2 != 0) { return b2; } throw new ArithmeticException(); } /* JADX INFO: Access modifiers changed from: package-private */ public static ke.d c(Context context, String str) throws d { f6443o = (j + 103) % 128; ke.d c2 = c(context, str, Boolean.TRUE); j = (f6443o + 77) % 128; return c2; } /* JADX INFO: Access modifiers changed from: package-private */ public static ke.d c(Context context, String str, Boolean bool) throws d { f6443o = (j + 85) % 128; String str2 = bf.e; if (str2 == null) { int i2 = f6443o + 91; j = i2 % 128; if (i2 % 2 != 0) { throw null; } str2 = ""; } ke.d d2 = new ke.d().d(str); Object[] objArr = new Object[1]; k(1283449821 - (ViewConfiguration.getScrollBarFadeDuration() >> 16), View.MeasureSpec.getSize(0) - 628097097, (byte) View.combineMeasuredStates(0, 0), (short) ExpandableListView.getPackedPositionType(0L), 16777173 + Color.rgb(0, 0, 0), objArr); ke.d c2 = d2.c(((String) objArr[0]).intern(), str2); Object[] objArr2 = new Object[1]; l("❮侢♜虐깩欐\uea14⥬ⰵ캅", "癜貑쮒ᕙ", (ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)) - 1, (char) View.getDefaultSize(0, 0), "䡉尖\uf22c࿅", objArr2); ke.d c3 = c2.c(((String) objArr2[0]).intern(), ax.e(bf.e)); Object[] objArr3 = new Object[1]; k(1283449831 - Gravity.getAbsoluteGravity(0, 0), (ViewConfiguration.getKeyRepeatTimeout() >> 16) - 628097097, (byte) (ViewConfiguration.getPressedStateDuration() >> 16), (short) (TextUtils.lastIndexOf("", '0', 0) + 1), (-42) - (ViewConfiguration.getPressedStateDuration() >> 16), objArr3); ke.d c4 = c3.c(((String) objArr3[0]).intern(), ax.e(bf.e)); Object[] objArr4 = new Object[1]; k(1283449841 - ExpandableListView.getPackedPositionChild(0L), Color.alpha(0) - 628097115, (byte) (ViewConfiguration.getFadingEdgeLength() >> 16), (short) TextUtils.indexOf("", ""), (-39) - View.getDefaultSize(0, 0), objArr4); String intern = ((String) objArr4[0]).intern(); Object[] objArr5 = new Object[1]; k(KeyEvent.keyCodeFromString("") + 1283449856, (ViewConfiguration.getMaximumFlingVelocity() >> 16) - 628097147, (byte) View.MeasureSpec.getSize(0), (short) (1 - (SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1))), TextUtils.getOffsetAfter("", 0) - 22, objArr5); ke.d c5 = c4.c(intern, ((String) objArr5[0]).intern()); Object[] objArr6 = new Object[1]; k(1283449887 - (ViewConfiguration.getKeyRepeatTimeout() >> 16), TextUtils.indexOf((CharSequence) "", '0', 0, 0) - 628097082, (byte) Color.argb(0, 0, 0, 0), (short) View.MeasureSpec.getSize(0), Color.argb(0, 0, 0, 0) - 37, objArr6); SharedPreferences sharedPreferences = context.getSharedPreferences(((String) objArr6[0]).intern(), 0); Object[] objArr7 = new Object[1]; l("沉褳൨ԇ뀞에䃽龎駸멞浜䵧飃\udca9ཉⱱ퉬詻⦴迺蜌ꆹ쭺磎몛⧲ﵿ줫瞯\u00ad", "癜貑쮒ᕙ", ViewConfiguration.getKeyRepeatDelay() >> 16, (char) (57135 - Color.argb(0, 0, 0, 0)), "麍㧘⽍峟", objArr7); String string = sharedPreferences.getString(((String) objArr7[0]).intern(), ""); if (!string.equals("")) { Object[] objArr8 = new Object[1]; l("鑏趗שּׂ逴쪺假बⓧ\uf3bd䮴焵\u1ad9", "癜貑쮒ᕙ", TextUtils.lastIndexOf("", '0', 0, 0) + 1, (char) TextUtils.indexOf("", "", 0), "⣪侰\ue3b3쥊", objArr8); c5.c(((String) objArr8[0]).intern(), string); } if (bool.booleanValue()) { int i3 = f6443o + 3; j = i3 % 128; if (i3 % 2 == 0) { if (ax.c == null) { Object[] objArr9 = new Object[1]; l("䧲똥ꍠ㹝㮙⯅꦳Ḣ覄魔\ue75b蛛㫴ᐯ⥰\u0a00\uf788쀋\udd2f\uef4b\uf74a媐", "癜貑쮒ᕙ", ExpandableListView.getPackedPositionChild(0L) + 1, (char) (CdmaCellLocation.convertQuartSecToDecDegrees(0) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(0) == 0.0d ? 0 : -1)), "䬺㵋\ue52c㑞", objArr9); throw new d(((String) objArr9[0]).intern()); } try { StringBuilder sb = new StringBuilder(); Object[] objArr10 = new Object[1]; k((ViewConfiguration.getMinimumFlingVelocity() >> 16) + 1283449856, (-628097147) - (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)), (byte) TextUtils.getTrimmedLength(""), (short) TextUtils.getTrimmedLength(""), View.getDefaultSize(0, 0) - 22, objArr10); sb.append(((String) objArr10[0]).intern()); sb.append(ax.c); String lowerCase = bl.e(sb.toString()).toLowerCase(); Object[] objArr11 = new Object[1]; l("\u1ccf㺀橫祥ꢽ싩嫚熗\uf8c2㜚ꕧఇ鱄", "癜貑쮒ᕙ", (-1301576653) - (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) ((ViewConfiguration.getPressedStateDuration() >> 16) + 10226), "㏖殄\uf2b2☧", objArr11); c5.c(((String) objArr11[0]).intern(), lowerCase); f6443o = (j + 93) % 128; } catch (Exception unused) { Object[] objArr12 = new Object[1]; l("鰽칔䰲骵颷캭噐ਅ㕎죽꽓柦\u2d7a潻ᨎ땪嗴㈖뇝ℇ앙鹔넕㘰䅧ꅂ", "癜貑쮒ᕙ", Color.blue(0), (char) (61996 - (ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1))), "࠘撲ⵏ懲", objArr12); throw new d(((String) objArr12[0]).intern()); } } else { String str3 = ax.c; throw null; } } return c5; } /* JADX INFO: Access modifiers changed from: package-private */ /* loaded from: classes.dex */ public static final class d extends Exception { d(String str) { super(str); } } /* JADX WARN: Removed duplicated region for block: B:14:0x0092 */ /* JADX WARN: Removed duplicated region for block: B:50:0x01d1 */ /* JADX WARN: Removed duplicated region for block: B:74:0x02b0 */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ private static void k(int r21, int r22, byte r23, short r24, int r25, java.lang.Object[] r26) { /* Method dump skipped, instructions count: 808 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: com.facetec.sdk.h.k(int, int, byte, short, int, java.lang.Object[]):void"); } private static void l(String str, String str2, int i2, char c2, String str3, Object[] objArr) { char[] cArr; char[] charArray = str3 != null ? str3.toCharArray() : str3; if (str2 != null) { $11 = ($10 + 77) % 128; cArr = str2.toCharArray(); } else { cArr = str2; } char[] cArr2 = cArr; char[] charArray2 = str != null ? str.toCharArray() : str; go goVar = new go(); int length = charArray.length; char[] cArr3 = new char[length]; int length2 = cArr2.length; char[] cArr4 = new char[length2]; System.arraycopy(charArray, 0, cArr3, 0, length); System.arraycopy(cArr2, 0, cArr4, 0, length2); cArr3[0] = (char) (cArr3[0] ^ c2); cArr4[2] = (char) (cArr4[2] + ((char) i2)); int length3 = charArray2.length; char[] cArr5 = new char[length3]; goVar.e = 0; $11 = ($10 + 79) % 128; while (goVar.e < length3) { try { Object[] objArr2 = {goVar}; Object obj = bo.s.get(1464055633); if (obj == null) { Class cls = (Class) bo.e(TextUtils.indexOf("", "", 0) + 710, (char) KeyEvent.keyCodeFromString(""), 24 - (ViewConfiguration.getKeyRepeatDelay() >> 16)); Object[] objArr3 = new Object[1]; m((byte) 0, (byte) 0, (byte) $$a.length, objArr3); obj = cls.getMethod((String) objArr3[0], Object.class); bo.s.put(1464055633, obj); } int intValue = ((Integer) ((Method) obj).invoke(null, objArr2)).intValue(); try { Object[] objArr4 = {goVar}; Object obj2 = bo.s.get(-1197337401); if (obj2 == null) { obj2 = ((Class) bo.e(Drawable.resolveOpacity(0, 0) + 76, (char) ((SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)) - 1), 24 - (TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)))).getMethod("i", Object.class); bo.s.put(-1197337401, obj2); } int intValue2 = ((Integer) ((Method) obj2).invoke(null, objArr4)).intValue(); try { Object[] objArr5 = {goVar, Integer.valueOf(cArr3[goVar.e % 4] * 32718), Integer.valueOf(cArr4[intValue])}; Object obj3 = bo.s.get(1933927865); if (obj3 == null) { Class cls2 = (Class) bo.e((ViewConfiguration.getEdgeSlop() >> 16) + 1020, (char) (TextUtils.lastIndexOf("", '0') + 1), ImageFormat.getBitsPerPixel(0) + 24); Object[] objArr6 = new Object[1]; m((byte) 0, (byte) 0, (byte) 0, objArr6); obj3 = cls2.getMethod((String) objArr6[0], Object.class, Integer.TYPE, Integer.TYPE); bo.s.put(1933927865, obj3); } ((Method) obj3).invoke(null, objArr5); try { Object[] objArr7 = {Integer.valueOf(cArr3[intValue2] * 32718), Integer.valueOf(cArr4[intValue])}; Object obj4 = bo.s.get(854524359); if (obj4 == null) { obj4 = ((Class) bo.e((ViewConfiguration.getKeyRepeatDelay() >> 16) + 1877, (char) (23952 - (ViewConfiguration.getMaximumDrawingCacheSize() >> 24)), Color.green(0) + 23)).getMethod("n", Integer.TYPE, Integer.TYPE); bo.s.put(854524359, obj4); } cArr4[intValue2] = ((Character) ((Method) obj4).invoke(null, objArr7)).charValue(); cArr3[intValue2] = goVar.c; cArr5[goVar.e] = (char) ((((int) (h ^ 7648925806061772164L)) ^ ((cArr3[intValue2] ^ charArray2[goVar.e]) ^ (i ^ 7648925806061772164L))) ^ ((char) (g ^ 7648925806061772164L))); goVar.e++; } 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; } } catch (Throwable th3) { Throwable cause3 = th3.getCause(); if (cause3 == null) { throw th3; } throw cause3; } } catch (Throwable th4) { Throwable cause4 = th4.getCause(); if (cause4 == null) { throw th4; } throw cause4; } } objArr[0] = new String(cArr5); } static void init$0() { $$a = new byte[]{CVCAFile.CAR_TAG, -9, 5, -52}; $$b = 216; } static void d() { b = -1940725942; c = 1070777183; d = new byte[]{117, -122, Byte.MIN_VALUE, 103, 91, -63, 124, 83, 104, -87, 122, 117, -126, 90, 104, -57, 113, ISOFileInfo.CHANNEL_SECURITY, ISOFileInfo.FCP_BYTE, 84, -87, ISOFileInfo.ENV_TEMP_EF, ISOFileInfo.FCI_BYTE, -126, -122, -119, 122, 117, ISOFileInfo.DATA_BYTES2, -120, ISOFileInfo.FILE_IDENTIFIER, 72, 104, ISOFileInfo.A5, 114, -102, 108, ISOFileInfo.SECURITY_ATTR_COMPACT, 121, 121, 72, -87, -126, -108, 91, ISOFileInfo.LCS_BYTE, 124, -103, 122, 81, -109, ISOFileInfo.FCI_BYTE, ISOFileInfo.FILE_IDENTIFIER, 125, -126, -66, 60, -65, 114, 116, 101, ISOFileInfo.CHANNEL_SECURITY, ISOFileInfo.FMD_BYTE, -105, -93, 59, 113, 125, -113, 126, 62, -65, 123, ISOFileInfo.ENV_TEMP_EF, 57, -73, -126, ISOFileInfo.ENV_TEMP_EF, 115, 126, 126, ISOFileInfo.FCI_EXT, 124, 124, 124, 124, 124}; a = -1457332259; h = -1348379260; g = (char) 23940; i = 9187267288224508888L; } }