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

347 lines
13 KiB
Java

package com.facetec.sdk;
import android.graphics.Color;
import android.text.TextUtils;
import android.view.Gravity;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android.widget.ExpandableListView;
import java.io.IOException;
import java.lang.reflect.Method;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.Map;
import o.C4593bdB;
import o.xzZ;
/* loaded from: classes.dex */
public final class fj implements en {
private final eq a;
final boolean b;
/* loaded from: classes.dex */
final class a<K, V> extends ek<Map<K, V>> {
private final ek<K> a;
private fj c;
private final fc<? extends Map<K, V>> d;
private final ek<V> e;
private static final byte[] $$a = {101, -49, 33, 116};
private static final int $$b = 59;
private static int $10 = 0;
private static int $11 = 1;
private static int f = 0;
private static int g = 1;
private static long b = -4412838772331530443L;
/* JADX WARN: Removed duplicated region for block: B:10:0x0025 */
/* JADX WARN: Removed duplicated region for block: B:7:0x001d */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0025 -> B:4:0x0027). 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(int r6, short r7, short r8, java.lang.Object[] r9) {
/*
int r8 = r8 + 77
int r6 = r6 * 2
int r6 = r6 + 1
byte[] r0 = com.facetec.sdk.fj.a.$$a
int r7 = r7 * 3
int r7 = r7 + 4
byte[] r1 = new byte[r6]
r2 = 0
if (r0 != 0) goto L15
r3 = r8
r4 = r2
r8 = r6
goto L27
L15:
r3 = r2
L16:
int r4 = r3 + 1
byte r5 = (byte) r8
r1[r3] = r5
if (r4 != r6) goto L25
java.lang.String r6 = new java.lang.String
r6.<init>(r1, r2)
r9[r2] = r6
return
L25:
r3 = r0[r7]
L27:
int r7 = r7 + 1
int r8 = r8 + r3
r3 = r4
goto L16
*/
throw new UnsupportedOperationException("Method not decompiled: com.facetec.sdk.fj.a.i(int, short, short, java.lang.Object[]):void");
}
/* JADX WARN: Multi-variable type inference failed */
private static void h(char[] cArr, int i, Object[] objArr) {
int i2 = 2 % 2;
C4593bdB c4593bdB = new C4593bdB();
c4593bdB.a = i;
int length = cArr.length;
long[] jArr = new long[length];
c4593bdB.e = 0;
while (c4593bdB.e < cArr.length) {
int i3 = $11 + 59;
$10 = i3 % 128;
int i4 = i3 % 2;
int i5 = c4593bdB.e;
try {
Object[] objArr2 = {Integer.valueOf(cArr[c4593bdB.e]), c4593bdB, c4593bdB};
Object obj = xzZ.y.get(-1229953068);
if (obj == null) {
Class cls = (Class) xzZ.c(402 - (ViewConfiguration.getMaximumDrawingCacheSize() >> 24), (ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)) + 6, (char) (21608 - Color.green(0)));
byte b2 = (byte) 0;
byte b3 = b2;
Object[] objArr3 = new Object[1];
i(b2, b3, b3, objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE, Object.class, Object.class);
xzZ.y.put(-1229953068, obj);
}
jArr[i5] = ((Long) ((Method) obj).invoke(null, objArr2)).longValue() ^ (b ^ (-6958928035870403642L));
Object[] objArr4 = {c4593bdB, c4593bdB};
Object obj2 = xzZ.y.get(-1143917229);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(238 - TextUtils.getCapsMode("", 0, 0), TextUtils.lastIndexOf("", '0', 0) + 6, (char) (((byte) KeyEvent.getModifierMetaStateMask()) + 1));
byte b4 = (byte) 0;
byte b5 = b4;
Object[] objArr5 = new Object[1];
i(b4, b5, (byte) (b5 + 1), objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Object.class, Object.class);
xzZ.y.put(-1143917229, obj2);
}
((Method) obj2).invoke(null, objArr4);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
char[] cArr2 = new char[length];
c4593bdB.e = 0;
while (c4593bdB.e < cArr.length) {
cArr2[c4593bdB.e] = (char) jArr[c4593bdB.e];
try {
Object[] objArr6 = {c4593bdB, c4593bdB};
Object obj3 = xzZ.y.get(-1143917229);
if (obj3 == null) {
Class cls3 = (Class) xzZ.c(238 - View.MeasureSpec.getMode(0), TextUtils.indexOf("", "", 0) + 5, (char) Gravity.getAbsoluteGravity(0, 0));
byte b6 = (byte) 0;
byte b7 = b6;
Object[] objArr7 = new Object[1];
i(b6, b7, (byte) (b7 + 1), objArr7);
obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class);
xzZ.y.put(-1143917229, obj3);
}
((Method) obj3).invoke(null, objArr6);
int i6 = $10 + 89;
$11 = i6 % 128;
int i7 = i6 % 2;
} catch (Throwable th2) {
Throwable cause2 = th2.getCause();
if (cause2 == null) {
throw th2;
}
throw cause2;
}
}
objArr[0] = new String(cArr2);
}
public a(fj fjVar, dx dxVar, Type type, ek<K> ekVar, Type type2, ek<V> ekVar2, fc<? extends Map<K, V>> fcVar) {
this.c = fjVar;
this.a = new fq(dxVar, ekVar, type);
this.e = new fq(dxVar, ekVar2, type2);
this.d = fcVar;
}
@Override // com.facetec.sdk.ek
public final /* synthetic */ Object a(fu fuVar) throws IOException {
int i = 2 % 2;
int i2 = g + 13;
f = i2 % 128;
int i3 = i2 % 2;
gc i4 = fuVar.i();
Object obj = null;
if (i4 == gc.NULL) {
fuVar.l();
return null;
}
Map<K, V> c = this.d.c();
if (i4 == gc.BEGIN_ARRAY) {
fuVar.a();
while (fuVar.e()) {
fuVar.a();
K a = this.a.a(fuVar);
if (c.put(a, this.e.a(fuVar)) != null) {
throw new ei("duplicate key: ".concat(String.valueOf(a)));
}
fuVar.c();
}
fuVar.c();
} else {
fuVar.d();
while (!(!fuVar.e())) {
int i5 = f + 65;
g = i5 % 128;
if (i5 % 2 != 0) {
ex.b.a(fuVar);
K a2 = this.a.a(fuVar);
if (c.put(a2, this.e.a(fuVar)) != null) {
throw new ei("duplicate key: ".concat(String.valueOf(a2)));
}
} else {
ex.b.a(fuVar);
c.put(this.a.a(fuVar), this.e.a(fuVar));
obj.hashCode();
throw null;
}
}
fuVar.b();
int i6 = g + 11;
f = i6 % 128;
int i7 = i6 % 2;
}
return c;
}
@Override // com.facetec.sdk.ek
public final /* synthetic */ void b(ga gaVar, Object obj) throws IOException {
String intern;
int i = 2 % 2;
Map map = (Map) obj;
if (map == null) {
gaVar.h();
return;
}
if (!this.c.b) {
gaVar.d();
for (Map.Entry<K, V> entry : map.entrySet()) {
gaVar.c(String.valueOf(entry.getKey()));
this.e.b(gaVar, entry.getValue());
}
gaVar.a();
return;
}
ArrayList arrayList = new ArrayList(map.size());
ArrayList arrayList2 = new ArrayList(map.size());
Iterator<Map.Entry<K, V>> it = map.entrySet().iterator();
boolean z = false;
while (true) {
boolean z2 = true;
if (!it.hasNext()) {
break;
}
Map.Entry<K, V> next = it.next();
eb c = this.a.c(next.getKey());
arrayList.add(c);
arrayList2.add(next.getValue());
if (!c.f()) {
int i2 = f + 97;
g = i2 % 128;
int i3 = i2 % 2;
if (!c.i()) {
int i4 = f + 77;
g = i4 % 128;
int i5 = i4 % 2;
z2 = false;
}
}
z |= z2;
}
if (z) {
gaVar.e();
int size = arrayList.size();
for (int i6 = 0; i6 < size; i6++) {
gaVar.e();
fd.c((eb) arrayList.get(i6), gaVar);
this.e.b(gaVar, arrayList2.get(i6));
gaVar.b();
}
gaVar.b();
return;
}
gaVar.d();
int size2 = arrayList.size();
for (int i7 = 0; i7 < size2; i7++) {
eb ebVar = (eb) arrayList.get(i7);
if (ebVar.g()) {
int i8 = f + 35;
g = i8 % 128;
int i9 = i8 % 2;
eh l = ebVar.l();
if (l.m()) {
intern = String.valueOf(l.e());
} else if (!(!l.k())) {
intern = Boolean.toString(l.j());
} else {
if (!l.n()) {
throw new AssertionError();
}
int i10 = g + 23;
f = i10 % 128;
if (i10 % 2 != 0) {
l.b();
throw null;
}
intern = l.b();
int i11 = g + 113;
f = i11 % 128;
int i12 = i11 % 2;
}
} else {
if (!ebVar.h()) {
throw new AssertionError();
}
int i13 = f + 95;
g = i13 % 128;
if (i13 % 2 == 0) {
Object[] objArr = new Object[1];
h(new char[]{42141, 61951, 3693, 42228}, 13145 / (ViewConfiguration.getScrollBarSize() / 61), objArr);
intern = ((String) objArr[0]).intern();
} else {
Object[] objArr2 = new Object[1];
h(new char[]{42141, 61951, 3693, 42228}, 21881 - (ViewConfiguration.getScrollBarSize() >> 8), objArr2);
intern = ((String) objArr2[0]).intern();
}
}
gaVar.c(intern);
this.e.b(gaVar, arrayList2.get(i7));
}
gaVar.a();
}
}
public fj(eq eqVar, boolean z) {
this.a = eqVar;
this.b = z;
}
@Override // com.facetec.sdk.en
public final <T> ek<T> e(dx dxVar, fv<T> fvVar) {
ek<Boolean> ekVar;
Type b = fvVar.b();
if (!Map.class.isAssignableFrom(fvVar.a())) {
return null;
}
Type[] a2 = et.a(b, et.e(b));
Type type = a2[0];
if (type == Boolean.TYPE || type == Boolean.class) {
ekVar = fs.e;
} else {
ekVar = dxVar.d(fv.b(type));
}
ek<T> d = dxVar.d(fv.b(a2[1]));
fc<T> d2 = this.a.d(fvVar);
return new a(this, dxVar, a2[0], ekVar, a2[1], d, d2);
}
}