package com.facetec.sdk; 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 com.google.android.gms.maps.model.BitmapDescriptorFactory; import com.google.common.primitives.SignedBytes; import java.lang.reflect.Method; import java.util.TimeZone; import o.dQY; import o.xzZ; import org.bouncycastle.crypto.tls.CipherSuite; /* loaded from: classes.dex */ public final class fp { private static final TimeZone a; private static int b; private static char[] c; private static long d; private static final byte[] $$a = {85, SignedBytes.MAX_POWER_OF_TWO, 74, 69}; private static final int $$b = CipherSuite.TLS_PSK_WITH_NULL_SHA384; private static int $10 = 0; private static int $11 = 1; private static int e = 0; private static void g(byte b2, byte b3, byte b4, Object[] objArr) { int i = 106 - b2; int i2 = 4 - (b4 * 3); int i3 = b3 * 2; byte[] bArr = $$a; byte[] bArr2 = new byte[1 - i3]; int i4 = 0 - i3; int i5 = -1; if (bArr == null) { i = i4 + i; i2++; } while (true) { i5++; bArr2[i5] = (byte) i; if (i5 == i4) { objArr[0] = new String(bArr2, 0); return; } else { i += bArr[i2]; i2++; } } } static { b = 1; c(); a = TimeZone.getTimeZone("UTC"); int i = e + 25; b = i % 128; if (i % 2 == 0) { int i2 = 3 / 0; } } private static void f(char c2, int i, int i2, Object[] objArr) { Object method; int i3 = 2; int i4 = 2 % 2; dQY dqy = new dQY(); long[] jArr = new long[i2]; dqy.a = 0; while (dqy.a < i2) { int i5 = $10 + 119; $11 = i5 % 128; if (i5 % i3 == 0) { int i6 = dqy.a; try { Object[] objArr2 = {Integer.valueOf(c[i >> dqy.a])}; Object obj = xzZ.y.get(1095064095); if (obj == null) { Class cls = (Class) xzZ.c((TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 308, (ViewConfiguration.getPressedStateDuration() >> 16) + 5, (char) ((ViewConfiguration.getScrollBarSize() >> 8) + 32797)); byte b2 = (byte) 0; Object[] objArr3 = new Object[1]; g((byte) 8, b2, b2, objArr3); obj = cls.getMethod((String) objArr3[0], Integer.TYPE); xzZ.y.put(1095064095, obj); } Object[] objArr4 = {Long.valueOf(((Long) ((Method) obj).invoke(null, objArr2)).longValue()), Long.valueOf(dqy.a), Long.valueOf(d), Integer.valueOf(c2)}; Object obj2 = xzZ.y.get(-548438098); if (obj2 == null) { Class cls2 = (Class) xzZ.c(TextUtils.indexOf((CharSequence) "", '0', 0) + 413, KeyEvent.keyCodeFromString("") + 5, (char) ((-1) - TextUtils.lastIndexOf("", '0', 0, 0))); byte b3 = (byte) 0; Object[] objArr5 = new Object[1]; g((byte) 7, b3, b3, objArr5); obj2 = cls2.getMethod((String) objArr5[0], Long.TYPE, Long.TYPE, Long.TYPE, Integer.TYPE); xzZ.y.put(-548438098, obj2); } jArr[i6] = ((Long) ((Method) obj2).invoke(null, objArr4)).longValue(); Object[] objArr6 = {dqy, dqy}; Object obj3 = xzZ.y.get(1071125919); if (obj3 == null) { Class cls3 = (Class) xzZ.c(407 - (ViewConfiguration.getWindowTouchSlop() >> 8), (TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 5, (char) (TextUtils.indexOf((CharSequence) "", '0', 0, 0) + 29235)); byte b4 = (byte) 0; byte b5 = b4; Object[] objArr7 = new Object[1]; g(b4, b5, b5, objArr7); obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class); xzZ.y.put(1071125919, obj3); } ((Method) obj3).invoke(null, objArr6); } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } else { int i7 = dqy.a; Object[] objArr8 = {Integer.valueOf(c[i + dqy.a])}; Object obj4 = xzZ.y.get(1095064095); if (obj4 == null) { Class cls4 = (Class) xzZ.c(308 - View.combineMeasuredStates(0, 0), TextUtils.indexOf((CharSequence) "", '0', 0, 0) + 6, (char) (32797 - (ViewConfiguration.getScrollBarSize() >> 8))); byte b6 = (byte) 0; Object[] objArr9 = new Object[1]; g((byte) 8, b6, b6, objArr9); obj4 = cls4.getMethod((String) objArr9[0], Integer.TYPE); xzZ.y.put(1095064095, obj4); } Object[] objArr10 = {Long.valueOf(((Long) ((Method) obj4).invoke(null, objArr8)).longValue()), Long.valueOf(dqy.a), Long.valueOf(d), Integer.valueOf(c2)}; Object obj5 = xzZ.y.get(-548438098); if (obj5 == null) { Class cls5 = (Class) xzZ.c(412 - ((Process.getThreadPriority(0) + 20) >> 6), (SystemClock.elapsedRealtimeNanos() > 0L ? 1 : (SystemClock.elapsedRealtimeNanos() == 0L ? 0 : -1)) + 4, (char) (TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1))); byte b7 = (byte) 0; Object[] objArr11 = new Object[1]; g((byte) 7, b7, b7, objArr11); obj5 = cls5.getMethod((String) objArr11[0], Long.TYPE, Long.TYPE, Long.TYPE, Integer.TYPE); xzZ.y.put(-548438098, obj5); } jArr[i7] = ((Long) ((Method) obj5).invoke(null, objArr10)).longValue(); Object[] objArr12 = {dqy, dqy}; Object obj6 = xzZ.y.get(1071125919); if (obj6 == null) { Class cls6 = (Class) xzZ.c(407 - View.getDefaultSize(0, 0), 5 - (ViewConfiguration.getWindowTouchSlop() >> 8), (char) (29234 - View.MeasureSpec.makeMeasureSpec(0, 0))); byte b8 = (byte) 0; byte b9 = b8; Object[] objArr13 = new Object[1]; g(b8, b9, b9, objArr13); obj6 = cls6.getMethod((String) objArr13[0], Object.class, Object.class); xzZ.y.put(1071125919, obj6); } ((Method) obj6).invoke(null, objArr12); } i3 = 2; } char[] cArr = new char[i2]; dqy.a = 0; int i8 = $10 + 59; $11 = i8 % 128; int i9 = i8 % 2; while (dqy.a < i2) { cArr[dqy.a] = (char) jArr[dqy.a]; try { Object[] objArr14 = {dqy, dqy}; Object obj7 = xzZ.y.get(1071125919); if (obj7 != null) { method = obj7; } else { Class cls7 = (Class) xzZ.c(406 - TextUtils.lastIndexOf("", '0'), (KeyEvent.getMaxKeyCode() >> 16) + 5, (char) (29234 - KeyEvent.getDeadChar(0, 0))); byte b10 = (byte) 0; byte b11 = b10; Object[] objArr15 = new Object[1]; g(b10, b11, b11, objArr15); method = cls7.getMethod((String) objArr15[0], Object.class, Object.class); xzZ.y.put(1071125919, method); } ((Method) method).invoke(null, objArr14); } catch (Throwable th2) { Throwable cause2 = th2.getCause(); if (cause2 == null) { throw th2; } throw cause2; } } objArr[0] = new String(cArr); } /* JADX WARN: Code restructure failed: missing block: B:116:0x00c5, code lost: if (r3 != 'Z') goto L50; */ /* JADX WARN: Code restructure failed: missing block: B:20:0x0055, code lost: if (r19.length() <= r4) goto L26; */ /* JADX WARN: Code restructure failed: missing block: B:21:0x0061, code lost: r0 = new java.util.GregorianCalendar(r5, r7 - 1, r9); r20.setIndex(r4); */ /* JADX WARN: Code restructure failed: missing block: B:22:0x006e, code lost: return r0.getTime(); */ /* JADX WARN: Code restructure failed: missing block: B:29:0x005f, code lost: if (r19.length() <= r4) goto L26; */ /* JADX WARN: Removed duplicated region for block: B:106:0x0244 A[Catch: IllegalArgumentException | IndexOutOfBoundsException | NumberFormatException -> 0x024c, NumberFormatException -> 0x024e, IndexOutOfBoundsException -> 0x0250, TryCatch #3 {IllegalArgumentException | IndexOutOfBoundsException | NumberFormatException -> 0x024c, blocks: (B:3:0x0007, B:8:0x0027, B:10:0x0031, B:11:0x0033, B:16:0x004e, B:19:0x0054, B:21:0x0061, B:28:0x005b, B:32:0x0077, B:39:0x0099, B:41:0x00a3, B:42:0x00a7, B:46:0x00b8, B:51:0x00cb, B:56:0x00de, B:58:0x00e6, B:59:0x00ea, B:62:0x00f9, B:66:0x0103, B:68:0x010c, B:71:0x011b, B:73:0x012e, B:75:0x0134, B:77:0x013a, B:78:0x0212, B:85:0x0148, B:86:0x0160, B:87:0x0161, B:91:0x01aa, B:93:0x01b7, B:96:0x01c0, B:98:0x01d8, B:101:0x01e5, B:102:0x0204, B:104:0x0210, B:105:0x0178, B:106:0x0244, B:107:0x024b, B:108:0x011e, B:111:0x0108, B:115:0x00c1), top: B:2:0x0007 }] */ /* JADX WARN: Removed duplicated region for block: B:75:0x0134 A[Catch: IllegalArgumentException | IndexOutOfBoundsException | NumberFormatException -> 0x024c, NumberFormatException -> 0x024e, IndexOutOfBoundsException -> 0x0250, TryCatch #3 {IllegalArgumentException | IndexOutOfBoundsException | NumberFormatException -> 0x024c, blocks: (B:3:0x0007, B:8:0x0027, B:10:0x0031, B:11:0x0033, B:16:0x004e, B:19:0x0054, B:21:0x0061, B:28:0x005b, B:32:0x0077, B:39:0x0099, B:41:0x00a3, B:42:0x00a7, B:46:0x00b8, B:51:0x00cb, B:56:0x00de, B:58:0x00e6, B:59:0x00ea, B:62:0x00f9, B:66:0x0103, B:68:0x010c, B:71:0x011b, B:73:0x012e, B:75:0x0134, B:77:0x013a, B:78:0x0212, B:85:0x0148, B:86:0x0160, B:87:0x0161, B:91:0x01aa, B:93:0x01b7, B:96:0x01c0, B:98:0x01d8, B:101:0x01e5, B:102:0x0204, B:104:0x0210, B:105:0x0178, B:106:0x0244, B:107:0x024b, B:108:0x011e, B:111:0x0108, B:115:0x00c1), top: B:2:0x0007 }] */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public static java.util.Date a(java.lang.String r19, java.text.ParsePosition r20) throws java.text.ParseException { /* Method dump skipped, instructions count: 692 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: com.facetec.sdk.fp.a(java.lang.String, java.text.ParsePosition):java.util.Date"); } private static boolean a(String str, int i, char c2) { int i2 = 2 % 2; int i3 = b + 49; e = i3 % 128; int i4 = i3 % 2; if (i < str.length()) { int i5 = b + 13; e = i5 % 128; int i6 = i5 % 2; if (str.charAt(i) == c2) { int i7 = b + 83; e = i7 % 128; if (i7 % 2 != 0) { int i8 = 23 / 0; } return true; } } return false; } private static int e(String str, int i, int i2) throws NumberFormatException { int i3; int i4; int i5 = 2 % 2; if (i >= 0 && i2 <= str.length()) { int i6 = e; int i7 = i6 + 77; b = i7 % 128; int i8 = i7 % 2; if (i <= i2) { int i9 = i6 + 57; b = i9 % 128; int i10 = i9 % 2; if (i < i2) { i4 = i + 1; int digit = Character.digit(str.charAt(i), 10); if (digit < 0) { StringBuilder sb = new StringBuilder("Invalid number: "); sb.append(str.substring(i, i2)); throw new NumberFormatException(sb.toString()); } i3 = -digit; int i11 = b + 69; e = i11 % 128; int i12 = i11 % 2; } else { i3 = 0; i4 = i; } while (i4 < i2) { int digit2 = Character.digit(str.charAt(i4), 10); if (digit2 < 0) { StringBuilder sb2 = new StringBuilder("Invalid number: "); sb2.append(str.substring(i, i2)); throw new NumberFormatException(sb2.toString()); } i3 = (i3 * 10) - digit2; i4++; } return -i3; } } throw new NumberFormatException(str); } static void c() { c = new char[]{36834, 15459}; d = 8570224905146219603L; } }