what-the-bank/sources/com/facetec/sdk/c.java

880 lines
33 KiB
Java

package com.facetec.sdk;
import android.content.ContentResolver;
import android.content.Context;
import android.graphics.Color;
import android.graphics.ImageFormat;
import android.os.Looper;
import android.os.Process;
import android.os.SystemClock;
import android.provider.Settings;
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.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.google.common.base.Ascii;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.lang.reflect.Method;
import java.nio.charset.StandardCharsets;
import net.sf.scuba.smartcards.ISO7816;
import org.bouncycastle.crypto.tls.CipherSuite;
import org.bouncycastle.i18n.LocalizedMessage;
import org.jmrtd.lds.CVCAFile;
import org.json.JSONException;
import org.json.JSONObject;
import org.simpleframework.xml.strategy.Name;
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes.dex */
public final class c {
private static final byte[] $$a = null;
private static final int $$b = 0;
private static int $10;
private static int $11;
private static e a;
private static byte[] d;
private static c e;
private static int f;
private static final int g = 0;
private static Object h;
private static boolean i;
private static final byte[] j = null;
private static int k;
private static int l;
private static char[] m;
private static byte[] n;
/* renamed from: o, reason: collision with root package name */
private static short[] f6417o;
private static int q;
private static int r;
private ac b;
private d c;
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes.dex */
public enum e {
Old,
New
}
/* JADX WARN: Removed duplicated region for block: B:10:0x0050 */
/* JADX WARN: Removed duplicated region for block: B:13:0x0058 */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:13:0x0058 -> B:7:0x0061). 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 t(int r7, byte r8, int r9, java.lang.Object[] r10) {
/*
int r0 = com.facetec.sdk.c.q
int r0 = r0 + 79
int r1 = r0 % 128
com.facetec.sdk.c.r = r1
int r0 = r0 % 2
r2 = 1
r3 = 0
if (r0 == 0) goto L2a
r0 = 4
int r7 = r0 >> r7
r0 = 125(0x7d, float:1.75E-43)
int r7 = r0 >>> r7
int r9 = r9 + (-127)
int r9 = r9 * 84
int r8 = r8 / 98
r0 = 34
int r0 = r0 % r8
byte[] r8 = com.facetec.sdk.c.j
byte[] r4 = new byte[r7]
int r7 = r7 + 127
if (r8 != 0) goto L28
r5 = r2
goto L3f
L28:
r1 = r2
goto L4b
L2a:
int r7 = r7 * 3
int r9 = r9 * 12
int r9 = 16 - r9
int r8 = r8 * 7
int r0 = 106 - r8
byte[] r8 = com.facetec.sdk.c.j
int r4 = 16 - r7
byte[] r4 = new byte[r4]
int r7 = 15 - r7
if (r8 != 0) goto L4a
r5 = r3
L3f:
int r1 = r1 + 85
int r1 = r1 % 128
com.facetec.sdk.c.q = r1
r1 = r0
r0 = r9
r9 = r8
r8 = r7
goto L61
L4a:
r1 = r3
L4b:
byte r5 = (byte) r0
r4[r1] = r5
if (r1 != r7) goto L58
java.lang.String r7 = new java.lang.String
r7.<init>(r4, r3)
r10[r3] = r7
return
L58:
int r5 = r1 + 1
r1 = r8[r9]
r6 = r8
r8 = r7
r7 = r0
r0 = r9
r9 = r6
L61:
int r7 = r7 + r1
int r7 = r7 + 2
int r0 = r0 + r2
r1 = r5
r6 = r0
r0 = r7
r7 = r8
r8 = r9
r9 = r6
goto L4b
*/
throw new UnsupportedOperationException("Method not decompiled: com.facetec.sdk.c.t(int, byte, int, java.lang.Object[]):void");
}
/* 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:0x0028). 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 u(int r5, int r6, int r7, java.lang.Object[] r8) {
/*
int r7 = r7 << 2
int r7 = 4 - r7
int r5 = r5 * 3
byte[] r0 = com.facetec.sdk.c.$$a
int r6 = r6 + 97
int r1 = 1 - r5
byte[] r1 = new byte[r1]
r2 = 0
int r5 = 0 - r5
if (r0 != 0) goto L16
r4 = r5
r3 = r2
goto L28
L16:
r3 = r2
L17:
byte r4 = (byte) r6
r1[r3] = r4
if (r3 != r5) goto L24
java.lang.String r5 = new java.lang.String
r5.<init>(r1, r2)
r8[r2] = r5
return
L24:
r4 = r0[r7]
int r3 = r3 + 1
L28:
int r4 = -r4
int r7 = r7 + 1
int r6 = r6 + r4
goto L17
*/
throw new UnsupportedOperationException("Method not decompiled: com.facetec.sdk.c.u(int, int, int, java.lang.Object[]):void");
}
static {
init$0();
$10 = 0;
$11 = 1;
r = 0;
q = 1;
c();
b();
i = true;
d = null;
e = null;
a = e.Old;
h = new Object();
q = (r + 85) % 128;
}
private c(Context context) {
this.c = new d();
this.b = new ac(context);
try {
byte[] e2 = bh.e(context, i(context), j(context));
JSONObject jSONObject = new JSONObject(new String(e2, 0, e2.length, StandardCharsets.UTF_8));
Object[] objArr = new Object[1];
p(Color.alpha(0) - 586675151, (-727531433) - (ViewConfiguration.getPressedStateDuration() >> 16), (byte) ((-1) - Process.getGidForName("")), (short) ((ViewConfiguration.getLongPressTimeout() >> 16) - 79), ImageFormat.getBitsPerPixel(0) - 12, objArr);
String optString = jSONObject.optString(((String) objArr[0]).intern(), "");
Object[] objArr2 = new Object[1];
s(false, new int[]{0, 5, 142, 5}, "\u0001\u0001\u0000\u0000\u0000", objArr2);
JSONObject optJSONObject = jSONObject.optJSONObject(((String) objArr2[0]).intern());
if (!optString.isEmpty()) {
this.c = d.a(new JSONObject(optString));
}
if (optJSONObject != null) {
this.b = ac.a(context, optJSONObject.toString());
}
} catch (FileNotFoundException unused) {
} catch (Exception e3) {
k.a(e3);
}
}
private static c b(Context context) {
c cVar;
synchronized (c.class) {
r = (q + 123) % 128;
if (e == null) {
e = new c(context);
r = (q + 67) % 128;
}
cVar = e;
}
return cVar;
}
private static d d() {
d dVar;
synchronized (c.class) {
int i2 = q;
int i3 = i2 + 87;
r = i3 % 128;
if (i3 % 2 != 0) {
throw new ArithmeticException();
}
c cVar = e;
if (cVar == null) {
try {
Object[] objArr = new Object[1];
p((-586675143) - TextUtils.indexOf("", "", 0), (-727531465) - (ViewConfiguration.getMinimumFlingVelocity() >> 16), (byte) (ViewConfiguration.getFadingEdgeLength() >> 16), (short) ((TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) - 88), (-14) - TextUtils.indexOf((CharSequence) "", '0'), objArr);
throw new RuntimeException(((String) objArr[0]).intern());
} catch (Exception e2) {
k.a(e2);
return new d();
}
}
int i4 = i2 + 75;
r = i4 % 128;
if (i4 % 2 != 0) {
d dVar2 = cVar.c;
throw new NullPointerException();
}
dVar = cVar.c;
}
return dVar;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static ac d(Context context) {
ac acVar;
synchronized (c.class) {
int i2 = r + 85;
q = i2 % 128;
try {
if (i2 % 2 != 0) {
acVar = b(context).b;
} else {
ac acVar2 = b(context).b;
throw new NullPointerException();
}
} catch (Exception unused) {
return new ac(context);
}
}
return acVar;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static e c(Context context) {
e eVar;
synchronized (c.class) {
int i2 = q + 49;
r = i2 % 128;
if (i2 % 2 != 0) {
h(context);
throw new NullPointerException();
}
h(context);
eVar = a;
r = (q + 25) % 128;
}
return eVar;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static void d(Context context, ac acVar) {
synchronized (c.class) {
q = (r + 119) % 128;
try {
c b = b(context);
b.b = acVar;
b.a(context);
r = (q + 67) % 128;
} catch (Exception e2) {
k.a(e2);
}
}
}
private void a(Context context) throws Exception {
int i2 = r;
q = (i2 + 41) % 128;
if (!i) {
int i3 = (i2 + 77) % 128;
q = i3;
r = (i3 + 31) % 128;
try {
byte[] bArr = j;
byte b = (byte) (bArr[15] - 1);
byte b2 = b;
Object[] objArr = new Object[1];
t(b, b2, b2, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
byte b3 = bArr[15];
byte b4 = b3;
Object[] objArr2 = new Object[1];
t(b3, b4, b4, objArr2);
if (cls.getMethod((String) objArr2[0], null).invoke(null, null).equals(Looper.getMainLooper().getThread())) {
throw new AssertionError();
}
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
e = this;
JSONObject jSONObject = new JSONObject();
String d2 = this.c.d();
Object[] objArr3 = new Object[1];
p((-586675151) - (ViewConfiguration.getPressedStateDuration() >> 16), View.combineMeasuredStates(0, 0) - 727531433, (byte) (1 - (ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1))), (short) (View.resolveSizeAndState(0, 0, 0) - 79), TextUtils.indexOf((CharSequence) "", '0') - 12, objArr3);
jSONObject.put(((String) objArr3[0]).intern(), d2);
Object[] objArr4 = new Object[1];
s(false, new int[]{0, 5, 142, 5}, "\u0001\u0001\u0000\u0000\u0000", objArr4);
jSONObject.put(((String) objArr4[0]).intern(), this.b.a());
Object[] objArr5 = new Object[1];
p((-586675127) - TextUtils.indexOf("", "", 0, 0), (ViewConfiguration.getWindowTouchSlop() >> 8) - 727531434, (byte) ((-1) - TextUtils.indexOf((CharSequence) "", '0', 0, 0)), (short) (96 - TextUtils.indexOf((CharSequence) "", '0')), (-12) - (ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)), objArr5);
jSONObject.put(((String) objArr5[0]).intern(), av.c(16, 32));
bh.b(context, i(context), j(context), jSONObject.toString().getBytes(StandardCharsets.UTF_8));
}
private static byte[] h(Context context) throws Exception {
byte[] e2;
ContentResolver contentResolver = context.getContentResolver();
Object[] objArr = new Object[1];
s(true, new int[]{5, 10, 80, 0}, "\u0000\u0001\u0000\u0001\u0001\u0000\u0001\u0000\u0000\u0001", objArr);
String string = Settings.Secure.getString(contentResolver, ((String) objArr[0]).intern());
StringBuilder sb = new StringBuilder();
sb.append(context.getPackageName());
sb.append(string);
Object[] objArr2 = new Object[1];
s(false, new int[]{15, 10, 2, 6}, "\u0000\u0000\u0000\u0001\u0000\u0000\u0000\u0001\u0000\u0001", objArr2);
sb.append(((String) objArr2[0]).intern());
String e3 = bl.e(sb.toString());
StringBuilder sb2 = new StringBuilder();
sb2.append(context.getPackageName());
sb2.append(string);
Object[] objArr3 = new Object[1];
s(true, new int[]{25, 4, 0, 3}, "\u0000\u0001\u0000\u0001", objArr3);
sb2.append(((String) objArr3[0]).intern());
String e4 = bl.e(sb2.toString());
try {
e2 = bh.e(context, e3);
} catch (FileNotFoundException unused) {
}
if (e2.length <= 0) {
q = (r + 123) % 128;
byte[] d2 = av.d(32, 128);
bh.a(context, e3, d2);
e eVar = e.New;
a = eVar;
byte ordinal = (byte) eVar.ordinal();
FileOutputStream openFileOutput = context.openFileOutput(e4, 0);
openFileOutput.write(ordinal);
openFileOutput.close();
return d2;
}
int i2 = r + 105;
q = i2 % 128;
if (i2 % 2 != 0) {
a = e.values()[bh.d(context, e4)];
return e2;
}
a = e.values()[bh.d(context, e4)];
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static byte[] e(Context context) throws Exception {
synchronized (h) {
if (d == null) {
d = h(context);
}
}
return bl.c(d);
}
/* JADX INFO: Access modifiers changed from: package-private */
public static void e(Context context, d dVar) {
synchronized (c.class) {
q = (r + 31) % 128;
try {
c b = b(context);
b.c = dVar;
b.a(context);
int i2 = r + 97;
q = i2 % 128;
if (i2 % 2 == 0) {
throw null;
}
} catch (Exception e2) {
k.a(e2);
}
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public static boolean a() {
int i2 = r + 53;
q = i2 % 128;
if (i2 % 2 == 0) {
Boolean bool = d().c;
throw new ArithmeticException();
}
boolean booleanValue = d().c.booleanValue();
r = (q + 91) % 128;
return booleanValue;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int e() {
int i2 = r + 15;
q = i2 % 128;
if (i2 % 2 == 0) {
Integer num = d().a;
throw null;
}
int intValue = d().a.intValue();
r = (q + 61) % 128;
return intValue;
}
private static String i(Context context) throws Exception {
q = (r + 47) % 128;
byte[] e2 = e(context);
long elapsedRealtimeNanos = SystemClock.elapsedRealtimeNanos();
Object[] objArr = new Object[1];
p((-586675120) - (elapsedRealtimeNanos > 0L ? 1 : (elapsedRealtimeNanos == 0L ? 0 : -1)), TextUtils.indexOf("", "") - 727531458, (byte) (TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), (short) (101 - (ViewConfiguration.getScrollBarFadeDuration() >> 16)), (-13) - (TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), objArr);
String e3 = bl.e(e2, ((String) objArr[0]).intern());
int i2 = r + 89;
q = i2 % 128;
if (i2 % 2 != 0) {
return e3;
}
throw null;
}
private static byte[] j(Context context) throws Exception {
int i2 = q + 11;
r = i2 % 128;
if (i2 % 2 != 0) {
byte[] e2 = e(context);
Object[] objArr = new Object[1];
s(true, new int[]{29, 14, CipherSuite.TLS_DHE_PSK_WITH_AES_128_GCM_SHA256, 3}, "\u0001\u0000\u0000\u0001\u0001\u0000\u0000\u0000\u0001\u0000\u0000\u0001\u0001\u0001", objArr);
return bl.a(e2, ((String) objArr[0]).intern());
}
byte[] e3 = e(context);
Object[] objArr2 = new Object[1];
s(false, new int[]{29, 14, CipherSuite.TLS_DHE_PSK_WITH_AES_128_GCM_SHA256, 3}, "\u0001\u0000\u0000\u0001\u0001\u0000\u0000\u0000\u0001\u0000\u0000\u0001\u0001\u0001", objArr2);
return bl.a(e3, ((String) objArr2[0]).intern());
}
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes.dex */
public static final class d {
String b;
String d;
Integer f;
Integer i;
Boolean c = Boolean.FALSE;
Integer a = 10;
Boolean e = Boolean.FALSE;
private Boolean h = Boolean.TRUE;
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes.dex */
public enum a {
ID(Name.MARK),
APP_SEND_DIAGNOSTICS("sd"),
DIAGNOSTICS_SIZE("ds"),
CACHE_KEY("ck"),
IS_VERSION_DEPRECATED("vd"),
RECENT_FAILURES("rf"),
APPLICATION_ID("ai"),
IS_LATEST_VERSION("lv");
final String j;
a(String str) {
this.j = str;
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public static d a(JSONObject jSONObject) throws JSONException {
d dVar = new d();
for (a aVar : a.values()) {
switch (AnonymousClass4.a[aVar.ordinal()]) {
case 1:
dVar.d = jSONObject.getString(aVar.j);
break;
case 2:
dVar.c = Boolean.valueOf(jSONObject.getBoolean(aVar.j));
break;
case 3:
dVar.a = Integer.valueOf(jSONObject.getInt(aVar.j));
break;
case 4:
dVar.b = jSONObject.getString(aVar.j);
break;
case 5:
dVar.e = Boolean.valueOf(jSONObject.getBoolean(aVar.j));
break;
case 6:
dVar.i = Integer.valueOf(jSONObject.getInt(aVar.j));
break;
case 7:
dVar.f = Integer.valueOf(jSONObject.getInt(aVar.j));
break;
case 8:
dVar.h = Boolean.valueOf(jSONObject.getBoolean(aVar.j));
break;
}
}
return dVar;
}
/* JADX WARN: Failed to find 'out' block for switch in B:6:0x0017. Please report as an issue. */
final String d() {
int i;
JSONObject jSONObject = new JSONObject();
try {
} catch (JSONException unused) {
}
for (a aVar : a.values()) {
switch (AnonymousClass4.a[aVar.ordinal()]) {
case 1:
jSONObject.put(aVar.j, this.d);
case 2:
jSONObject.put(aVar.j, this.c);
case 3:
jSONObject.put(aVar.j, this.a);
case 4:
jSONObject.put(aVar.j, this.b);
case 5:
jSONObject.put(aVar.j, this.e);
case 6:
jSONObject.put(aVar.j, this.i);
case 7:
jSONObject.put(aVar.j, this.f);
case 8:
jSONObject.put(aVar.j, this.h);
default:
}
return jSONObject.toString();
}
return jSONObject.toString();
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* renamed from: com.facetec.sdk.c$4, reason: invalid class name */
/* loaded from: classes.dex */
public static final /* synthetic */ class AnonymousClass4 {
static final int[] a;
static {
int[] iArr = new int[d.a.values().length];
a = iArr;
try {
iArr[d.a.ID.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
a[d.a.APP_SEND_DIAGNOSTICS.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
a[d.a.DIAGNOSTICS_SIZE.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
try {
a[d.a.CACHE_KEY.ordinal()] = 4;
} catch (NoSuchFieldError unused4) {
}
try {
a[d.a.IS_VERSION_DEPRECATED.ordinal()] = 5;
} catch (NoSuchFieldError unused5) {
}
try {
a[d.a.RECENT_FAILURES.ordinal()] = 6;
} catch (NoSuchFieldError unused6) {
}
try {
a[d.a.APPLICATION_ID.ordinal()] = 7;
} catch (NoSuchFieldError unused7) {
}
try {
a[d.a.IS_LATEST_VERSION.ordinal()] = 8;
} catch (NoSuchFieldError unused8) {
}
}
}
/* JADX WARN: Code restructure failed: missing block: B:51:0x01ed, code lost:
if (r4 != false) goto L50;
*/
/* JADX WARN: Code restructure failed: missing block: B:52:0x0203, code lost:
com.facetec.sdk.c.$10 = (r3 + 123) % 128;
r3 = 0;
*/
/* JADX WARN: Code restructure failed: missing block: B:85:0x0201, code lost:
r3 = 1;
*/
/* JADX WARN: Code restructure failed: missing block: B:87:0x01ff, code lost:
if (r4 != false) goto L50;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private static void p(int r20, int r21, byte r22, short r23, int r24, java.lang.Object[] r25) {
/*
Method dump skipped, instructions count: 812
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.facetec.sdk.c.p(int, int, byte, short, int, java.lang.Object[]):void");
}
private static void s(boolean z, int[] iArr, String str, Object[] objArr) {
String str2 = str;
byte[] bArr = str2;
if (str2 != null) {
bArr = str2.getBytes(LocalizedMessage.DEFAULT_ENCODING);
}
byte[] bArr2 = bArr;
gp gpVar = new gp();
char c = 0;
int i2 = iArr[0];
int i3 = iArr[1];
int i4 = 2;
int i5 = iArr[2];
int i6 = 3;
int i7 = iArr[3];
char[] cArr = m;
if (cArr != null) {
int length = cArr.length;
char[] cArr2 = new char[length];
int i8 = 0;
while (i8 < length) {
int i9 = $10 + 7;
$11 = i9 % 128;
if (i9 % i4 == 0) {
try {
Object[] objArr2 = new Object[1];
objArr2[c] = Integer.valueOf(cArr[i8]);
Object obj = bo.s.get(-344240863);
if (obj == null) {
Class cls = (Class) bo.e(989 - (SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1)), (char) (ExpandableListView.getPackedPositionChild(0L) + 1), (ViewConfiguration.getLongPressTimeout() >> 16) + 32);
Object[] objArr3 = new Object[1];
u(0, i6, 0, objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
bo.s.put(-344240863, obj);
}
cArr2[i8] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
i8 <<= 1;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
} else {
try {
Object[] objArr4 = {Integer.valueOf(cArr[i8])};
Object obj2 = bo.s.get(-344240863);
if (obj2 == null) {
Class cls2 = (Class) bo.e(988 - (ViewConfiguration.getDoubleTapTimeout() >> 16), (char) Gravity.getAbsoluteGravity(0, 0), View.combineMeasuredStates(0, 0) + 32);
Object[] objArr5 = new Object[1];
u(0, 3, 0, objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE);
bo.s.put(-344240863, obj2);
}
cArr2[i8] = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue();
i8++;
} catch (Throwable th2) {
Throwable cause2 = th2.getCause();
if (cause2 == null) {
throw th2;
}
throw cause2;
}
}
$10 = ($11 + 31) % 128;
c = 0;
i4 = 2;
i6 = 3;
}
cArr = cArr2;
}
char[] cArr3 = new char[i3];
System.arraycopy(cArr, i2, cArr3, 0, i3);
if (bArr2 != null) {
char[] cArr4 = new char[i3];
gpVar.a = 0;
char c2 = 0;
while (gpVar.a < i3) {
int i10 = $11 + 59;
$10 = i10 % 128;
if (i10 % 2 == 0 ? bArr2[gpVar.a] != 1 : bArr2[gpVar.a] != 0) {
int i11 = gpVar.a;
try {
Object[] objArr6 = {Integer.valueOf(cArr3[gpVar.a]), Integer.valueOf(c2)};
Object obj3 = bo.s.get(-1063034112);
if (obj3 == null) {
obj3 = ((Class) bo.e(TextUtils.getTrimmedLength("") + 1877, (char) (Process.getGidForName("") + 23953), (KeyEvent.getMaxKeyCode() >> 16) + 23)).getMethod("g", Integer.TYPE, Integer.TYPE);
bo.s.put(-1063034112, obj3);
}
cArr4[i11] = ((Character) ((Method) obj3).invoke(null, objArr6)).charValue();
} catch (Throwable th3) {
Throwable cause3 = th3.getCause();
if (cause3 == null) {
throw th3;
}
throw cause3;
}
} else {
int i12 = gpVar.a;
try {
Object[] objArr7 = {Integer.valueOf(cArr3[gpVar.a]), Integer.valueOf(c2)};
Object obj4 = bo.s.get(69282466);
if (obj4 == null) {
Class cls3 = (Class) bo.e(1569 - TextUtils.lastIndexOf("", '0', 0), (char) (11060 - Color.red(0)), ImageFormat.getBitsPerPixel(0) + 24);
Object[] objArr8 = new Object[1];
u(0, 0, 0, objArr8);
obj4 = cls3.getMethod((String) objArr8[0], Integer.TYPE, Integer.TYPE);
bo.s.put(69282466, obj4);
}
cArr4[i12] = ((Character) ((Method) obj4).invoke(null, objArr7)).charValue();
} catch (Throwable th4) {
Throwable cause4 = th4.getCause();
if (cause4 == null) {
throw th4;
}
throw cause4;
}
}
c2 = cArr4[gpVar.a];
try {
Object[] objArr9 = {gpVar, gpVar};
Object obj5 = bo.s.get(1322201006);
if (obj5 == null) {
Class cls4 = (Class) bo.e((ViewConfiguration.getScrollBarFadeDuration() >> 16) + 734, (char) (((byte) KeyEvent.getModifierMetaStateMask()) + 1), 32 - (ViewConfiguration.getMaximumDrawingCacheSize() >> 24));
Object[] objArr10 = new Object[1];
u(0, $$a[1], 0, objArr10);
obj5 = cls4.getMethod((String) objArr10[0], Object.class, Object.class);
bo.s.put(1322201006, obj5);
}
((Method) obj5).invoke(null, objArr9);
} catch (Throwable th5) {
Throwable cause5 = th5.getCause();
if (cause5 == null) {
throw th5;
}
throw cause5;
}
}
cArr3 = cArr4;
}
if (i7 > 0) {
char[] cArr5 = new char[i3];
System.arraycopy(cArr3, 0, cArr5, 0, i3);
int i13 = i3 - i7;
System.arraycopy(cArr5, 0, cArr3, i13, i7);
System.arraycopy(cArr5, i7, cArr3, 0, i13);
$11 = ($10 + 21) % 128;
}
if (z) {
$11 = ($10 + 75) % 128;
char[] cArr6 = new char[i3];
gpVar.a = 0;
while (gpVar.a < i3) {
cArr6[gpVar.a] = cArr3[(i3 - gpVar.a) - 1];
gpVar.a++;
$11 = ($10 + 85) % 128;
}
cArr3 = cArr6;
}
if (i5 > 0) {
int i14 = 0;
while (true) {
gpVar.a = i14;
if (gpVar.a >= i3) {
break;
}
cArr3[gpVar.a] = (char) (cArr3[gpVar.a] - iArr[2]);
i14 = gpVar.a + 1;
}
}
objArr[0] = new String(cArr3);
}
static void init$0() {
$$a = new byte[]{95, 7, 78, -97};
$$b = 92;
}
static void c() {
l = -1940725904;
f = -1364906829;
n = new byte[]{Byte.MIN_VALUE, 39, ISO7816.INS_DECREASE_STAMPED, 40, 56, 51, ISO7816.INS_MSE, 61, 120, 45, 33, ISO7816.INS_INCREASE, ISO7816.INS_CHANGE_CHV, 30, 40, -39, 121, Ascii.CAN, 45, 33, 49, ISO7816.INS_CHANGE_CHV, Ascii.ESC, Ascii.SYN, -122, -31, ISO7816.INS_UPDATE_BINARY, -23, ISO7816.INS_WRITE_BINARY, -14, 125, 11, -20, -12, ISO7816.INS_WRITE_RECORD, -60, 19, -25, ISO7816.INS_READ_RECORD_STAMPED, 19, -27, -25, -52};
k = -1492148384;
m = new char[]{38839, 38861, 38860, 38860, 38852, 38765, 38785, 38787, 38790, 38785, 38795, 38903, 38796, 38798, 38784, 38670, 38745, 38744, 38748, 38747, 38745, 38738, 38749, 38725, 38750, 38661, 38737, 38750, 38744, 38733, 38453, 38446, 38436, 38457, 38446, 38447, 38454, 38453, 38445, 38451, 38859, 38435, 38435};
}
static void b() {
int i2 = (r + 25) % 128;
q = i2;
j = new byte[]{CVCAFile.CAR_TAG, 58, -103, ISO7816.INS_WRITE_RECORD, 16, -5, -2, -15, 7, 4, -34, Ascii.DC2, 8, -15, -6, 1, -11, 19, -23, -53, 60, -13, 11, -9, -59, ISO7816.INS_CHANGE_CHV, Ascii.DC2, 8, -15, -6, 1};
g = 101;
int i3 = i2 + 67;
r = i3 % 128;
if (i3 % 2 != 0) {
throw null;
}
}
}