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

133 lines
4.3 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.facetec.sdk;
import java.io.IOException;
import java.lang.reflect.Field;
import java.util.Map;
/* loaded from: classes.dex */
public final class fn implements en {
private final ev a;
private final dw b;
private final fx c = fx.d();
private final fe d;
private final eq e;
public fn(eq eqVar, dw dwVar, ev evVar, fe feVar) {
this.e = eqVar;
this.b = dwVar;
this.a = evVar;
this.d = feVar;
}
private boolean e(Field field, boolean z) {
return c(field, z, this.a);
}
private static boolean c(Field field, boolean z, ev evVar) {
return (evVar.d(field.getType(), z) || evVar.b(field, z)) ? false : true;
}
@Override // com.facetec.sdk.en
public final <T> ek<T> e(dx dxVar, fv<T> fvVar) {
Class<? super T> a = fvVar.a();
if (Object.class.isAssignableFrom(a)) {
return new e(this.e.d(fvVar), c(dxVar, (fv<?>) fvVar, (Class<?>) a));
}
return null;
}
/* JADX WARN: Multi-variable type inference failed */
/* JADX WARN: Removed duplicated region for block: B:22:0x009b */
/* JADX WARN: Removed duplicated region for block: B:44:0x0151 A[SYNTHETIC] */
/* JADX WARN: Removed duplicated region for block: B:47:0x0141 A[SYNTHETIC] */
/* JADX WARN: Type inference failed for: r1v25, types: [java.util.List] */
/* JADX WARN: Type inference failed for: r1v7, types: [java.util.List] */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private java.util.Map<java.lang.String, com.facetec.sdk.fn.b> c(com.facetec.sdk.dx r33, com.facetec.sdk.fv<?> r34, java.lang.Class<?> r35) {
/*
Method dump skipped, instructions count: 396
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.facetec.sdk.fn.c(com.facetec.sdk.dx, com.facetec.sdk.fv, java.lang.Class):java.util.Map");
}
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes.dex */
public static abstract class b {
final boolean c;
final String d;
final boolean e;
abstract boolean a(Object obj) throws IOException, IllegalAccessException;
abstract void d(fu fuVar, Object obj) throws IOException, IllegalAccessException;
abstract void d(ga gaVar, Object obj) throws IOException, IllegalAccessException;
protected b(String str, boolean z, boolean z2) {
this.d = str;
this.e = z;
this.c = z2;
}
}
/* loaded from: classes.dex */
public static final class e<T> extends ek<T> {
private final fc<T> d;
private final Map<String, b> e;
e(fc<T> fcVar, Map<String, b> map) {
this.d = fcVar;
this.e = map;
}
@Override // com.facetec.sdk.ek
public final T a(fu fuVar) throws IOException {
if (fuVar.i() == gc.NULL) {
fuVar.l();
return null;
}
T c = this.d.c();
try {
fuVar.d();
while (fuVar.e()) {
b bVar = this.e.get(fuVar.f());
if (bVar != null && bVar.c) {
bVar.d(fuVar, c);
}
fuVar.n();
}
fuVar.b();
return c;
} catch (IllegalAccessException e) {
throw new AssertionError(e);
} catch (IllegalStateException e2) {
throw new ei(e2);
}
}
@Override // com.facetec.sdk.ek
public final void b(ga gaVar, T t) throws IOException {
if (t == null) {
gaVar.h();
return;
}
gaVar.d();
try {
for (b bVar : this.e.values()) {
if (bVar.a(t)) {
gaVar.c(bVar.d);
bVar.d(gaVar, t);
}
}
gaVar.a();
} catch (IllegalAccessException e) {
throw new AssertionError(e);
}
}
}
}