package com.facetec.sdk; import android.graphics.Color; import android.graphics.drawable.Drawable; import android.os.Process; import android.os.SystemClock; import android.text.AndroidCharacter; import android.text.TextUtils; import android.util.TypedValue; import android.view.KeyEvent; import android.view.MotionEvent; import android.view.View; import android.view.ViewConfiguration; import android.widget.ExpandableListView; import com.google.android.gms.maps.model.BitmapDescriptorFactory; import com.google.common.primitives.SignedBytes; import java.io.IOException; import java.lang.reflect.Method; import java.math.BigDecimal; import java.math.BigInteger; import java.net.InetAddress; import java.net.URI; import java.net.URISyntaxException; import java.net.URL; import java.sql.Timestamp; import java.util.ArrayList; import java.util.BitSet; import java.util.Calendar; import java.util.Currency; import java.util.Date; import java.util.GregorianCalendar; import java.util.HashMap; import java.util.Iterator; import java.util.Locale; import java.util.Map; import java.util.StringTokenizer; import java.util.UUID; import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.atomic.AtomicIntegerArray; import net.sf.scuba.smartcards.ISO7816; import net.sf.scuba.smartcards.ISOFileInfo; import o.jTb; import o.xzZ; import o.zUI; import org.bouncycastle.crypto.tls.CipherSuite; /* loaded from: classes.dex */ public final class fs { public static final en A; public static final ek B; public static final en C; public static final en D; private static ek E; public static final en F; private static ek G; private static ek H; private static ek I; private static ek J; private static ek K; private static ek L; private static ek M; private static ek N; private static ek O; private static ek P; private static ek Q; private static ek R; private static ek S; private static ek T; private static ek U; private static ek V; private static ek W; private static ek X; private static ek Z; public static final en a; private static ek ac; public static final en b; public static final en c; public static final en d; public static final ek e; public static final en f; public static final en g; public static final en h; public static final en i; public static final en j; public static final ek k; public static final ek l; public static final en m; public static final ek n; /* renamed from: o, reason: collision with root package name */ public static final en f6441o; public static final ek p; public static final en q; public static final en r; public static final en s; public static final ek t; public static final en u; public static final en v; public static final en w; public static final en x; public static final en y; public static final en z; static { ek b2 = new ek() { // from class: com.facetec.sdk.fs.4 @Override // com.facetec.sdk.ek public final /* synthetic */ void b(ga gaVar, Class cls) throws IOException { StringBuilder sb = new StringBuilder("Attempted to serialize java.lang.Class: "); sb.append(cls.getName()); sb.append(". Forgot to register a type adapter?"); throw new UnsupportedOperationException(sb.toString()); } @Override // com.facetec.sdk.ek public final /* synthetic */ Class a(fu fuVar) throws IOException { throw new UnsupportedOperationException("Attempted to deserialize a java.lang.Class. Forgot to register a type adapter?"); } }.b(); I = b2; d = d(Class.class, b2); ek b3 = new ek() { // from class: com.facetec.sdk.fs.12 @Override // com.facetec.sdk.ek public final /* synthetic */ BitSet a(fu fuVar) throws IOException { return c(fuVar); } @Override // com.facetec.sdk.ek public final /* synthetic */ void b(ga gaVar, BitSet bitSet) throws IOException { BitSet bitSet2 = bitSet; gaVar.e(); int length = bitSet2.length(); for (int i2 = 0; i2 < length; i2++) { gaVar.c(bitSet2.get(i2) ? 1L : 0L); } gaVar.b(); } private static BitSet c(fu fuVar) throws IOException { BitSet bitSet = new BitSet(); fuVar.a(); gc i2 = fuVar.i(); int i3 = 0; while (i2 != gc.END_ARRAY) { int i4 = AnonymousClass27.b[i2.ordinal()]; if (i4 == 1) { if (fuVar.m() == 0) { i3++; i2 = fuVar.i(); } bitSet.set(i3); i3++; i2 = fuVar.i(); } else if (i4 == 2) { if (!fuVar.g()) { i3++; i2 = fuVar.i(); } bitSet.set(i3); i3++; i2 = fuVar.i(); } else if (i4 == 3) { String h2 = fuVar.h(); try { if (Integer.parseInt(h2) == 0) { i3++; i2 = fuVar.i(); } bitSet.set(i3); i3++; i2 = fuVar.i(); } catch (NumberFormatException unused) { throw new ei("Error: Expecting: bitset number value (1, 0), Found: ".concat(String.valueOf(h2))); } } else { throw new ei("Invalid bitset value type: ".concat(String.valueOf(i2))); } } fuVar.c(); return bitSet; } }.b(); G = b3; a = d(BitSet.class, b3); H = new ek() { // from class: com.facetec.sdk.fs.23 @Override // com.facetec.sdk.ek public final /* synthetic */ void b(ga gaVar, Boolean bool) throws IOException { gaVar.d(bool); } @Override // com.facetec.sdk.ek public final /* synthetic */ Boolean a(fu fuVar) throws IOException { gc i2 = fuVar.i(); if (i2 == gc.NULL) { fuVar.l(); return null; } if (i2 == gc.STRING) { return Boolean.valueOf(Boolean.parseBoolean(fuVar.h())); } return Boolean.valueOf(fuVar.g()); } }; e = new ek() { // from class: com.facetec.sdk.fs.28 private static final byte[] $$a = {85, SignedBytes.MAX_POWER_OF_TWO, 74, 69}; private static final int $$b = CipherSuite.TLS_DH_anon_WITH_SEED_CBC_SHA; private static int $10 = 0; private static int $11 = 1; private static int a = 0; private static int e = 1; private static int b = 2015661579; /* JADX WARN: Removed duplicated region for block: B:10:0x002a */ /* JADX WARN: Removed duplicated region for block: B:7:0x0022 */ /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x002a -> 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 f(byte r5, short r6, byte r7, java.lang.Object[] r8) { /* int r7 = r7 * 4 int r7 = 3 - r7 int r6 = r6 * 4 int r0 = 1 - r6 byte[] r1 = com.facetec.sdk.fs.AnonymousClass28.$$a int r5 = r5 * 7 int r5 = 76 - r5 byte[] r0 = new byte[r0] r2 = 0 int r6 = 0 - r6 if (r1 != 0) goto L18 r3 = r6 r4 = r2 goto L2c L18: r3 = r2 L19: int r7 = r7 + 1 byte r4 = (byte) r5 r0[r3] = r4 int r4 = r3 + 1 if (r3 != r6) goto L2a java.lang.String r5 = new java.lang.String r5.(r0, r2) r8[r2] = r5 return L2a: r3 = r1[r7] L2c: int r3 = -r3 int r5 = r5 + r3 r3 = r4 goto L19 */ throw new UnsupportedOperationException("Method not decompiled: com.facetec.sdk.fs.AnonymousClass28.f(byte, short, byte, java.lang.Object[]):void"); } private static void d(int i2, int i3, int i4, char[] cArr, boolean z2, Object[] objArr) { char[] cArr2; int i5 = 2 % 2; zUI zui = new zUI(); char[] cArr3 = new char[i2]; zui.d = 0; int i6 = $10 + 93; $11 = i6 % 128; int i7 = i6 % 2; while (zui.d < i2) { zui.c = cArr[zui.d]; cArr3[zui.d] = (char) (i4 + zui.c); int i8 = zui.d; try { Object[] objArr2 = {Integer.valueOf(cArr3[i8]), Integer.valueOf(b)}; Object obj = xzZ.y.get(880493502); if (obj == null) { Class cls = (Class) xzZ.c((ViewConfiguration.getTapTimeout() >> 16) + CipherSuite.TLS_DHE_PSK_WITH_3DES_EDE_CBC_SHA, TextUtils.getCapsMode("", 0, 0) + 7, (char) KeyEvent.normalizeMetaState(0)); byte b4 = (byte) ($$b & 5); byte b5 = (byte) (b4 - 1); Object[] objArr3 = new Object[1]; f(b4, b5, b5, objArr3); obj = cls.getMethod((String) objArr3[0], Integer.TYPE, Integer.TYPE); xzZ.y.put(880493502, obj); } cArr3[i8] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue(); Object[] objArr4 = {zui, zui}; Object obj2 = xzZ.y.get(1294990079); if (obj2 == null) { Class cls2 = (Class) xzZ.c(Drawable.resolveOpacity(0, 0) + 342, (TypedValue.complexToFraction(0, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFraction(0, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 5, (char) (TextUtils.lastIndexOf("", '0') + 1)); byte b6 = (byte) 0; byte b7 = b6; Object[] objArr5 = new Object[1]; f(b6, b7, b7, objArr5); obj2 = cls2.getMethod((String) objArr5[0], Object.class, Object.class); xzZ.y.put(1294990079, obj2); } ((Method) obj2).invoke(null, objArr4); } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } if (i3 > 0) { int i9 = $10 + 51; $11 = i9 % 128; int i10 = i9 % 2; zui.a = i3; char[] cArr4 = new char[i2]; System.arraycopy(cArr3, 0, cArr4, 0, i2); System.arraycopy(cArr4, 0, cArr3, i2 - zui.a, zui.a); System.arraycopy(cArr4, zui.a, cArr3, 0, i2 - zui.a); } if (z2) { int i11 = $11 + 107; $10 = i11 % 128; if (i11 % 2 != 0) { cArr2 = new char[i2]; zui.d = 1; } else { cArr2 = new char[i2]; zui.d = 0; } while (zui.d < i2) { int i12 = $10 + 55; $11 = i12 % 128; if (i12 % 2 == 0) { cArr2[zui.d] = cArr3[i2 >>> zui.d]; Object[] objArr6 = {zui, zui}; Object obj3 = xzZ.y.get(1294990079); if (obj3 == null) { Class cls3 = (Class) xzZ.c((ViewConfiguration.getJumpTapTimeout() >> 16) + 342, 5 - TextUtils.getCapsMode("", 0, 0), (char) TextUtils.getOffsetBefore("", 0)); byte b8 = (byte) 0; byte b9 = b8; Object[] objArr7 = new Object[1]; f(b8, b9, b9, objArr7); obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class); xzZ.y.put(1294990079, obj3); } ((Method) obj3).invoke(null, objArr6); } else { cArr2[zui.d] = cArr3[(i2 - zui.d) - 1]; Object[] objArr8 = {zui, zui}; Object obj4 = xzZ.y.get(1294990079); if (obj4 == null) { Class cls4 = (Class) xzZ.c(342 - View.MeasureSpec.getSize(0), 6 - (ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)), (char) (MotionEvent.axisFromString("") + 1)); byte b10 = (byte) 0; byte b11 = b10; Object[] objArr9 = new Object[1]; f(b10, b11, b11, objArr9); obj4 = cls4.getMethod((String) objArr9[0], Object.class, Object.class); xzZ.y.put(1294990079, obj4); } ((Method) obj4).invoke(null, objArr8); } } cArr3 = cArr2; } objArr[0] = new String(cArr3); } @Override // com.facetec.sdk.ek public final /* synthetic */ Boolean a(fu fuVar) throws IOException { int i2 = 2 % 2; if (fuVar.i() != gc.NULL) { return Boolean.valueOf(fuVar.h()); } int i3 = e + 29; a = i3 % 128; int i4 = i3 % 2; fuVar.l(); int i5 = e + 73; a = i5 % 128; if (i5 % 2 == 0) { return null; } throw null; } @Override // com.facetec.sdk.ek public final /* synthetic */ void b(ga gaVar, Boolean bool) throws IOException { String obj; int i2 = 2 % 2; int i3 = a + 99; int i4 = i3 % 128; e = i4; int i5 = i3 % 2; Boolean bool2 = bool; if (bool2 == null) { int i6 = i4 + 31; a = i6 % 128; if (i6 % 2 != 0) { Object[] objArr = new Object[1]; d(5 - (SystemClock.elapsedRealtime() > 1L ? 1 : (SystemClock.elapsedRealtime() == 1L ? 0 : -1)), -TextUtils.lastIndexOf("", 'p'), KeyEvent.normalizeMetaState(1) * 3377, new char[]{0, 65534, 65534, 7}, true, objArr); obj = ((String) objArr[0]).intern(); } else { Object[] objArr2 = new Object[1]; d(5 - (SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)), -TextUtils.lastIndexOf("", '0'), 154 - KeyEvent.normalizeMetaState(0), new char[]{0, 65534, 65534, 7}, true, objArr2); obj = ((String) objArr2[0]).intern(); } } else { obj = bool2.toString(); } gaVar.b(obj); int i7 = a + 71; e = i7 % 128; int i8 = i7 % 2; } }; b = b(Boolean.TYPE, Boolean.class, H); E = new ek() { // from class: com.facetec.sdk.fs.31 @Override // com.facetec.sdk.ek public final /* synthetic */ Number a(fu fuVar) throws IOException { return e(fuVar); } @Override // com.facetec.sdk.ek public final /* bridge */ /* synthetic */ void b(ga gaVar, Number number) throws IOException { gaVar.b(number); } private static Number e(fu fuVar) throws IOException { if (fuVar.i() == gc.NULL) { fuVar.l(); return null; } try { return Byte.valueOf((byte) fuVar.m()); } catch (NumberFormatException e2) { throw new ei(e2); } } }; c = b(Byte.TYPE, Byte.class, E); N = new ek() { // from class: com.facetec.sdk.fs.35 @Override // com.facetec.sdk.ek public final /* synthetic */ Number a(fu fuVar) throws IOException { return d(fuVar); } @Override // com.facetec.sdk.ek public final /* bridge */ /* synthetic */ void b(ga gaVar, Number number) throws IOException { gaVar.b(number); } private static Number d(fu fuVar) throws IOException { if (fuVar.i() == gc.NULL) { fuVar.l(); return null; } try { return Short.valueOf((short) fuVar.m()); } catch (NumberFormatException e2) { throw new ei(e2); } } }; h = b(Short.TYPE, Short.class, N); K = new ek() { // from class: com.facetec.sdk.fs.34 @Override // com.facetec.sdk.ek public final /* synthetic */ Number a(fu fuVar) throws IOException { return c(fuVar); } @Override // com.facetec.sdk.ek public final /* bridge */ /* synthetic */ void b(ga gaVar, Number number) throws IOException { gaVar.b(number); } private static Number c(fu fuVar) throws IOException { if (fuVar.i() == gc.NULL) { fuVar.l(); return null; } try { return Integer.valueOf(fuVar.m()); } catch (NumberFormatException e2) { throw new ei(e2); } } }; g = b(Integer.TYPE, Integer.class, K); ek b4 = new ek() { // from class: com.facetec.sdk.fs.33 @Override // com.facetec.sdk.ek public final /* synthetic */ AtomicInteger a(fu fuVar) throws IOException { return c(fuVar); } @Override // com.facetec.sdk.ek public final /* synthetic */ void b(ga gaVar, AtomicInteger atomicInteger) throws IOException { gaVar.c(atomicInteger.get()); } private static AtomicInteger c(fu fuVar) throws IOException { try { return new AtomicInteger(fuVar.m()); } catch (NumberFormatException e2) { throw new ei(e2); } } }.b(); J = b4; j = d(AtomicInteger.class, b4); ek b5 = new ek() { // from class: com.facetec.sdk.fs.32 @Override // com.facetec.sdk.ek public final /* synthetic */ void b(ga gaVar, AtomicBoolean atomicBoolean) throws IOException { gaVar.a(atomicBoolean.get()); } @Override // com.facetec.sdk.ek public final /* synthetic */ AtomicBoolean a(fu fuVar) throws IOException { return new AtomicBoolean(fuVar.g()); } }.b(); M = b5; i = d(AtomicBoolean.class, b5); ek b6 = new ek() { // from class: com.facetec.sdk.fs.2 @Override // com.facetec.sdk.ek public final /* synthetic */ AtomicIntegerArray a(fu fuVar) throws IOException { return e(fuVar); } @Override // com.facetec.sdk.ek public final /* synthetic */ void b(ga gaVar, AtomicIntegerArray atomicIntegerArray) throws IOException { gaVar.e(); int length = atomicIntegerArray.length(); for (int i2 = 0; i2 < length; i2++) { gaVar.c(r6.get(i2)); } gaVar.b(); } private static AtomicIntegerArray e(fu fuVar) throws IOException { ArrayList arrayList = new ArrayList(); fuVar.a(); while (fuVar.e()) { try { arrayList.add(Integer.valueOf(fuVar.m())); } catch (NumberFormatException e2) { throw new ei(e2); } } fuVar.c(); int size = arrayList.size(); AtomicIntegerArray atomicIntegerArray = new AtomicIntegerArray(size); for (int i2 = 0; i2 < size; i2++) { atomicIntegerArray.set(i2, ((Integer) arrayList.get(i2)).intValue()); } return atomicIntegerArray; } }.b(); L = b6; f = d(AtomicIntegerArray.class, b6); n = new ek() { // from class: com.facetec.sdk.fs.3 @Override // com.facetec.sdk.ek public final /* synthetic */ Number a(fu fuVar) throws IOException { return c(fuVar); } @Override // com.facetec.sdk.ek public final /* bridge */ /* synthetic */ void b(ga gaVar, Number number) throws IOException { gaVar.b(number); } private static Number c(fu fuVar) throws IOException { if (fuVar.i() == gc.NULL) { fuVar.l(); return null; } try { return Long.valueOf(fuVar.k()); } catch (NumberFormatException e2) { throw new ei(e2); } } }; k = new ek() { // from class: com.facetec.sdk.fs.1 @Override // com.facetec.sdk.ek public final /* bridge */ /* synthetic */ void b(ga gaVar, Number number) throws IOException { gaVar.b(number); } @Override // com.facetec.sdk.ek public final /* synthetic */ Number a(fu fuVar) throws IOException { if (fuVar.i() == gc.NULL) { fuVar.l(); return null; } return Float.valueOf((float) fuVar.o()); } }; l = new ek() { // from class: com.facetec.sdk.fs.5 @Override // com.facetec.sdk.ek public final /* bridge */ /* synthetic */ void b(ga gaVar, Number number) throws IOException { gaVar.b(number); } @Override // com.facetec.sdk.ek public final /* synthetic */ Number a(fu fuVar) throws IOException { if (fuVar.i() == gc.NULL) { fuVar.l(); return null; } return Double.valueOf(fuVar.o()); } }; ek ekVar = new ek() { // from class: com.facetec.sdk.fs.7 @Override // com.facetec.sdk.ek public final /* bridge */ /* synthetic */ void b(ga gaVar, Number number) throws IOException { gaVar.b(number); } @Override // com.facetec.sdk.ek public final /* synthetic */ Number a(fu fuVar) throws IOException { gc i2 = fuVar.i(); int i3 = AnonymousClass27.b[i2.ordinal()]; if (i3 == 1 || i3 == 3) { return new eu(fuVar.h()); } if (i3 == 4) { fuVar.l(); return null; } throw new ei("Expecting number, got: ".concat(String.valueOf(i2))); } }; S = ekVar; m = d(Number.class, ekVar); Q = new ek() { // from class: com.facetec.sdk.fs.10 @Override // com.facetec.sdk.ek public final /* synthetic */ void b(ga gaVar, Character ch) throws IOException { Character ch2 = ch; gaVar.b(ch2 == null ? null : String.valueOf(ch2)); } @Override // com.facetec.sdk.ek public final /* synthetic */ Character a(fu fuVar) throws IOException { if (fuVar.i() == gc.NULL) { fuVar.l(); return null; } String h2 = fuVar.h(); if (h2.length() != 1) { throw new ei("Expecting character, got: ".concat(String.valueOf(h2))); } return Character.valueOf(h2.charAt(0)); } }; f6441o = b(Character.TYPE, Character.class, Q); P = new ek() { // from class: com.facetec.sdk.fs.6 @Override // com.facetec.sdk.ek public final /* bridge */ /* synthetic */ void b(ga gaVar, String str) throws IOException { gaVar.b(str); } @Override // com.facetec.sdk.ek public final /* synthetic */ String a(fu fuVar) throws IOException { gc i2 = fuVar.i(); if (i2 == gc.NULL) { fuVar.l(); return null; } if (i2 == gc.BOOLEAN) { return Boolean.toString(fuVar.g()); } return fuVar.h(); } }; p = new ek() { // from class: com.facetec.sdk.fs.9 @Override // com.facetec.sdk.ek public final /* synthetic */ BigDecimal a(fu fuVar) throws IOException { return e(fuVar); } @Override // com.facetec.sdk.ek public final /* bridge */ /* synthetic */ void b(ga gaVar, BigDecimal bigDecimal) throws IOException { gaVar.b(bigDecimal); } private static BigDecimal e(fu fuVar) throws IOException { if (fuVar.i() == gc.NULL) { fuVar.l(); return null; } try { return new BigDecimal(fuVar.h()); } catch (NumberFormatException e2) { throw new ei(e2); } } }; t = new ek() { // from class: com.facetec.sdk.fs.8 @Override // com.facetec.sdk.ek public final /* synthetic */ BigInteger a(fu fuVar) throws IOException { return e(fuVar); } @Override // com.facetec.sdk.ek public final /* bridge */ /* synthetic */ void b(ga gaVar, BigInteger bigInteger) throws IOException { gaVar.b(bigInteger); } private static BigInteger e(fu fuVar) throws IOException { if (fuVar.i() == gc.NULL) { fuVar.l(); return null; } try { return new BigInteger(fuVar.h()); } catch (NumberFormatException e2) { throw new ei(e2); } } }; r = d(String.class, P); ek ekVar2 = new ek() { // from class: com.facetec.sdk.fs.11 @Override // com.facetec.sdk.ek public final /* synthetic */ void b(ga gaVar, StringBuilder sb) throws IOException { StringBuilder sb2 = sb; gaVar.b(sb2 == null ? null : sb2.toString()); } @Override // com.facetec.sdk.ek public final /* synthetic */ StringBuilder a(fu fuVar) throws IOException { if (fuVar.i() == gc.NULL) { fuVar.l(); return null; } return new StringBuilder(fuVar.h()); } }; O = ekVar2; s = d(StringBuilder.class, ekVar2); ek ekVar3 = new ek() { // from class: com.facetec.sdk.fs.13 @Override // com.facetec.sdk.ek public final /* synthetic */ void b(ga gaVar, StringBuffer stringBuffer) throws IOException { StringBuffer stringBuffer2 = stringBuffer; gaVar.b(stringBuffer2 == null ? null : stringBuffer2.toString()); } @Override // com.facetec.sdk.ek public final /* synthetic */ StringBuffer a(fu fuVar) throws IOException { if (fuVar.i() == gc.NULL) { fuVar.l(); return null; } return new StringBuffer(fuVar.h()); } }; R = ekVar3; q = d(StringBuffer.class, ekVar3); ek ekVar4 = new ek() { // from class: com.facetec.sdk.fs.15 private static final byte[] $$a = {33, -82, ISO7816.INS_UNBLOCK_CHV, 67}; private static final int $$b = 120; private static int $10 = 0; private static int $11 = 1; private static int a = 0; private static int g = 1; private static char e = 34836; private static char b = 13952; private static char c = 27852; private static char d = 2040; /* JADX WARN: Removed duplicated region for block: B:10:0x0027 */ /* JADX WARN: Removed duplicated region for block: B:7:0x001f */ /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0027 -> 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 h(short r6, int r7, byte r8, java.lang.Object[] r9) { /* byte[] r0 = com.facetec.sdk.fs.AnonymousClass15.$$a int r6 = r6 + 4 int r8 = r8 * 2 int r1 = 1 - r8 int r7 = r7 + 66 byte[] r1 = new byte[r1] r2 = 0 int r8 = 0 - r8 if (r0 != 0) goto L15 r7 = r6 r3 = r8 r4 = r2 goto L2c L15: r3 = r2 L16: int r6 = r6 + 1 byte r4 = (byte) r7 r1[r3] = r4 int r4 = r3 + 1 if (r3 != r8) goto L27 java.lang.String r6 = new java.lang.String r6.(r1, r2) r9[r2] = r6 return L27: r3 = r0[r6] r5 = r7 r7 = r6 r6 = r5 L2c: int r3 = -r3 int r6 = r6 + r3 r3 = r4 r5 = r7 r7 = r6 r6 = r5 goto L16 */ throw new UnsupportedOperationException("Method not decompiled: com.facetec.sdk.fs.AnonymousClass15.h(short, int, byte, java.lang.Object[]):void"); } private static void f(char[] cArr, int i2, Object[] objArr) { int i3 = 2 % 2; jTb jtb = new jTb(); char[] cArr2 = new char[cArr.length]; jtb.b = 0; char[] cArr3 = new char[2]; while (jtb.b < cArr.length) { int i4 = $10 + 77; $11 = i4 % 128; int i5 = i4 % 2; cArr3[0] = cArr[jtb.b]; cArr3[1] = cArr[jtb.b + 1]; int i6 = 58224; for (int i7 = 0; i7 < 16; i7++) { char c2 = cArr3[1]; char c3 = cArr3[0]; try { Object[] objArr2 = {Integer.valueOf(c2), Integer.valueOf((c3 + i6) ^ ((c3 << 4) + ((char) (c ^ 41718355337583039L)))), Integer.valueOf(c3 >>> 5), Integer.valueOf(d)}; Object obj = xzZ.y.get(597144044); if (obj == null) { Class cls = (Class) xzZ.c((ViewConfiguration.getScrollDefaultDelay() >> 16) + 412, 5 - (ViewConfiguration.getFadingEdgeLength() >> 16), (char) ((-1) - TextUtils.indexOf((CharSequence) "", '0', 0, 0))); byte b7 = (byte) (-1); byte b8 = (byte) (b7 + 1); Object[] objArr3 = new Object[1]; h(b7, b8, b8, objArr3); obj = cls.getMethod((String) objArr3[0], Integer.TYPE, Integer.TYPE, Integer.TYPE, Integer.TYPE); xzZ.y.put(597144044, obj); } char charValue = ((Character) ((Method) obj).invoke(null, objArr2)).charValue(); cArr3[1] = charValue; Object[] objArr4 = {Integer.valueOf(cArr3[0]), Integer.valueOf((charValue + i6) ^ ((charValue << 4) + ((char) (e ^ 41718355337583039L)))), Integer.valueOf(charValue >>> 5), Integer.valueOf(b)}; Object obj2 = xzZ.y.get(597144044); if (obj2 == null) { Class cls2 = (Class) xzZ.c(412 - Color.argb(0, 0, 0, 0), 5 - Drawable.resolveOpacity(0, 0), (char) ExpandableListView.getPackedPositionType(0L)); byte b9 = (byte) (-1); byte b10 = (byte) (b9 + 1); Object[] objArr5 = new Object[1]; h(b9, b10, b10, objArr5); obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE, Integer.TYPE, Integer.TYPE, Integer.TYPE); xzZ.y.put(597144044, obj2); } cArr3[0] = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue(); i6 -= 40503; } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } cArr2[jtb.b] = cArr3[0]; cArr2[jtb.b + 1] = cArr3[1]; Object[] objArr6 = {jtb, jtb}; Object obj3 = xzZ.y.get(943004485); if (obj3 == null) { Class cls3 = (Class) xzZ.c((ViewConfiguration.getScrollBarFadeDuration() >> 16) + 98, (ViewConfiguration.getPressedStateDuration() >> 16) + 5, (char) (TextUtils.lastIndexOf("", '0', 0, 0) + 1)); byte b11 = (byte) (-1); byte b12 = (byte) (-b11); Object[] objArr7 = new Object[1]; h(b11, b12, (byte) (b12 - 1), objArr7); obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class); xzZ.y.put(943004485, obj3); } ((Method) obj3).invoke(null, objArr6); int i8 = $10 + 1; $11 = i8 % 128; int i9 = i8 % 2; } objArr[0] = new String(cArr2, 0, i2); } @Override // com.facetec.sdk.ek public final /* synthetic */ URL a(fu fuVar) throws IOException { int i2 = 2 % 2; int i3 = g + 3; a = i3 % 128; int i4 = i3 % 2; if (fuVar.i() != gc.NULL) { String h2 = fuVar.h(); Object[] objArr = new Object[1]; f(new char[]{56030, 27472, 57647, 23231}, (SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1)) + 3, objArr); if (((String) objArr[0]).intern().equals(h2)) { return null; } return new URL(h2); } int i5 = g + 105; a = i5 % 128; int i6 = i5 % 2; fuVar.l(); return null; } @Override // com.facetec.sdk.ek public final /* synthetic */ void b(ga gaVar, URL url) throws IOException { String externalForm; int i2 = 2 % 2; int i3 = a + 65; int i4 = i3 % 128; g = i4; int i5 = i3 % 2; URL url2 = url; if (url2 == null) { int i6 = i4 + 19; a = i6 % 128; int i7 = i6 % 2; externalForm = null; } else { externalForm = url2.toExternalForm(); } gaVar.b(externalForm); } }; T = ekVar4; w = d(URL.class, ekVar4); ek ekVar5 = new ek() { // from class: com.facetec.sdk.fs.14 private static final byte[] $$a = {54, -11, ISOFileInfo.SECURITY_ATTR_COMPACT, 41}; private static final int $$b = CipherSuite.TLS_DH_anon_WITH_SEED_CBC_SHA; private static int $10 = 0; private static int $11 = 1; private static int b = 0; private static int f = 1; private static char a = 59217; private static char e = 44527; private static char d = 58353; private static char c = 23443; /* 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:0x002e). 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 h(byte r6, int r7, byte r8, java.lang.Object[] r9) { /* byte[] r0 = com.facetec.sdk.fs.AnonymousClass14.$$a int r8 = r8 + 66 int r6 = r6 * 3 int r6 = r6 + 4 int r7 = r7 * 2 int r1 = 1 - r7 byte[] r1 = new byte[r1] r2 = 0 int r7 = 0 - r7 if (r0 != 0) goto L17 r8 = r6 r3 = r7 r4 = r2 goto L2e L17: r3 = r2 L18: byte r4 = (byte) r8 r1[r3] = r4 if (r3 != r7) goto L25 java.lang.String r6 = new java.lang.String r6.(r1, r2) r9[r2] = r6 return L25: int r3 = r3 + 1 r4 = r0[r6] r5 = r8 r8 = r6 r6 = r4 r4 = r3 r3 = r5 L2e: int r6 = -r6 int r8 = r8 + 1 int r6 = r6 + r3 r3 = r4 r5 = r8 r8 = r6 r6 = r5 goto L18 */ throw new UnsupportedOperationException("Method not decompiled: com.facetec.sdk.fs.AnonymousClass14.h(byte, int, byte, java.lang.Object[]):void"); } private static void g(char[] cArr, int i2, Object[] objArr) { int i3 = 2; int i4 = 2 % 2; jTb jtb = new jTb(); char[] cArr2 = new char[cArr.length]; int i5 = 0; jtb.b = 0; char[] cArr3 = new char[2]; while (jtb.b < cArr.length) { cArr3[i5] = cArr[jtb.b]; cArr3[1] = cArr[jtb.b + 1]; int i6 = $10 + 59; $11 = i6 % 128; int i7 = i6 % i3; int i8 = 58224; int i9 = i5; while (i9 < 16) { int i10 = $10 + 85; $11 = i10 % 128; int i11 = i10 % i3; char c2 = cArr3[1]; char c3 = cArr3[i5]; int i12 = (c3 + i8) ^ ((c3 << 4) + ((char) (d ^ 41718355337583039L))); int i13 = c3 >>> 5; try { Object[] objArr2 = new Object[4]; objArr2[3] = Integer.valueOf(c); objArr2[i3] = Integer.valueOf(i13); objArr2[1] = Integer.valueOf(i12); objArr2[i5] = Integer.valueOf(c2); Object obj = xzZ.y.get(597144044); if (obj == null) { Class cls = (Class) xzZ.c(412 - ExpandableListView.getPackedPositionGroup(0L), 5 - View.resolveSize(i5, i5), (char) View.combineMeasuredStates(i5, i5)); byte b7 = (byte) i5; byte b8 = b7; Object[] objArr3 = new Object[1]; h(b7, b8, b8, objArr3); String str = (String) objArr3[i5]; Class[] clsArr = new Class[4]; clsArr[i5] = Integer.TYPE; clsArr[1] = Integer.TYPE; clsArr[2] = Integer.TYPE; clsArr[3] = Integer.TYPE; obj = cls.getMethod(str, clsArr); xzZ.y.put(597144044, obj); } char charValue = ((Character) ((Method) obj).invoke(null, objArr2)).charValue(); cArr3[1] = charValue; char[] cArr4 = cArr3; Object[] objArr4 = {Integer.valueOf(cArr3[i5]), Integer.valueOf((charValue + i8) ^ ((charValue << 4) + ((char) (a ^ 41718355337583039L)))), Integer.valueOf(charValue >>> 5), Integer.valueOf(e)}; Object obj2 = xzZ.y.get(597144044); if (obj2 == null) { Class cls2 = (Class) xzZ.c(Process.getGidForName("") + 413, View.resolveSize(0, 0) + 5, (char) Color.blue(0)); byte b9 = (byte) 0; byte b10 = b9; Object[] objArr5 = new Object[1]; h(b9, b10, b10, objArr5); obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE, Integer.TYPE, Integer.TYPE, Integer.TYPE); xzZ.y.put(597144044, obj2); } cArr4[0] = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue(); i8 -= 40503; i9++; int i14 = $10 + 47; $11 = i14 % 128; int i15 = i14 % 2; cArr3 = cArr4; i3 = 2; i5 = 0; } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } char[] cArr5 = cArr3; cArr2[jtb.b] = cArr5[0]; cArr2[jtb.b + 1] = cArr5[1]; Object[] objArr6 = {jtb, jtb}; Object obj3 = xzZ.y.get(943004485); if (obj3 == null) { Class cls3 = (Class) xzZ.c((ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)) + 99, AndroidCharacter.getMirror('0') - '+', (char) TextUtils.getCapsMode("", 0, 0)); byte b11 = (byte) 0; byte b12 = b11; Object[] objArr7 = new Object[1]; h(b11, b12, (byte) (b12 + 1), objArr7); obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class); xzZ.y.put(943004485, obj3); } ((Method) obj3).invoke(null, objArr6); int i16 = $10 + 105; $11 = i16 % 128; int i17 = i16 % 2; i3 = 2; cArr3 = cArr5; i5 = 0; } objArr[0] = new String(cArr2, 0, i2); } @Override // com.facetec.sdk.ek public final /* synthetic */ URI a(fu fuVar) throws IOException { int i2 = 2 % 2; int i3 = f + 9; b = i3 % 128; int i4 = i3 % 2; URI e2 = e(fuVar); int i5 = f + 11; b = i5 % 128; if (i5 % 2 == 0) { return e2; } Object obj = null; obj.hashCode(); throw null; } private static URI e(fu fuVar) throws IOException { int i2 = 2 % 2; int i3 = f + 87; b = i3 % 128; int i4 = i3 % 2; if (fuVar.i() != gc.NULL) { try { String h2 = fuVar.h(); Object[] objArr = new Object[1]; g(new char[]{20716, 54642, 54080, 47765}, (-16777212) - Color.rgb(0, 0, 0), objArr); if (((String) objArr[0]).intern().equals(h2)) { return null; } return new URI(h2); } catch (URISyntaxException e2) { throw new ed(e2); } } int i5 = f + 91; b = i5 % 128; int i6 = i5 % 2; fuVar.l(); return null; } @Override // com.facetec.sdk.ek public final /* synthetic */ void b(ga gaVar, URI uri) throws IOException { String aSCIIString; int i2 = 2 % 2; int i3 = b; int i4 = i3 + 13; f = i4 % 128; int i5 = i4 % 2; URI uri2 = uri; if (uri2 == null) { int i6 = i3 + 93; f = i6 % 128; int i7 = i6 % 2; aSCIIString = null; } else { aSCIIString = uri2.toASCIIString(); } gaVar.b(aSCIIString); int i8 = b + 99; f = i8 % 128; int i9 = i8 % 2; } }; W = ekVar5; y = d(URI.class, ekVar5); ek ekVar6 = new ek() { // from class: com.facetec.sdk.fs.18 @Override // com.facetec.sdk.ek public final /* synthetic */ void b(ga gaVar, InetAddress inetAddress) throws IOException { InetAddress inetAddress2 = inetAddress; gaVar.b(inetAddress2 == null ? null : inetAddress2.getHostAddress()); } @Override // com.facetec.sdk.ek public final /* synthetic */ InetAddress a(fu fuVar) throws IOException { if (fuVar.i() == gc.NULL) { fuVar.l(); return null; } return InetAddress.getByName(fuVar.h()); } }; U = ekVar6; v = a(InetAddress.class, ekVar6); ek ekVar7 = new ek() { // from class: com.facetec.sdk.fs.16 @Override // com.facetec.sdk.ek public final /* synthetic */ void b(ga gaVar, UUID uuid) throws IOException { UUID uuid2 = uuid; gaVar.b(uuid2 == null ? null : uuid2.toString()); } @Override // com.facetec.sdk.ek public final /* synthetic */ UUID a(fu fuVar) throws IOException { if (fuVar.i() == gc.NULL) { fuVar.l(); return null; } return UUID.fromString(fuVar.h()); } }; V = ekVar7; x = d(UUID.class, ekVar7); ek b7 = new ek() { // from class: com.facetec.sdk.fs.17 @Override // com.facetec.sdk.ek public final /* synthetic */ void b(ga gaVar, Currency currency) throws IOException { gaVar.b(currency.getCurrencyCode()); } @Override // com.facetec.sdk.ek public final /* synthetic */ Currency a(fu fuVar) throws IOException { return Currency.getInstance(fuVar.h()); } }.b(); X = b7; u = d(Currency.class, b7); C = new en() { // from class: com.facetec.sdk.fs.19 @Override // com.facetec.sdk.en public final ek e(dx dxVar, fv fvVar) { if (fvVar.a() != Timestamp.class) { return null; } return (ek) new ek(this, dxVar.b((Class) Date.class)) { // from class: com.facetec.sdk.fs.19.2 private AnonymousClass19 b; private ek d; { this.b = this; this.d = r2; } @Override // com.facetec.sdk.ek public final /* bridge */ /* synthetic */ void b(ga gaVar, Timestamp timestamp) throws IOException { this.d.b(gaVar, timestamp); } @Override // com.facetec.sdk.ek public final /* synthetic */ Timestamp a(fu fuVar) throws IOException { Date date = (Date) this.d.a(fuVar); if (date != null) { return new Timestamp(date.getTime()); } return null; } }; } }; ek ekVar8 = new ek() { // from class: com.facetec.sdk.fs.20 @Override // com.facetec.sdk.ek public final /* synthetic */ void b(ga gaVar, Calendar calendar) throws IOException { if (calendar == null) { gaVar.h(); return; } gaVar.d(); gaVar.c("year"); gaVar.c(r4.get(1)); gaVar.c("month"); gaVar.c(r4.get(2)); gaVar.c("dayOfMonth"); gaVar.c(r4.get(5)); gaVar.c("hourOfDay"); gaVar.c(r4.get(11)); gaVar.c("minute"); gaVar.c(r4.get(12)); gaVar.c("second"); gaVar.c(r4.get(13)); gaVar.a(); } @Override // com.facetec.sdk.ek public final /* synthetic */ Calendar a(fu fuVar) throws IOException { if (fuVar.i() == gc.NULL) { fuVar.l(); return null; } fuVar.d(); int i2 = 0; int i3 = 0; int i4 = 0; int i5 = 0; int i6 = 0; int i7 = 0; while (fuVar.i() != gc.END_OBJECT) { String f2 = fuVar.f(); int m2 = fuVar.m(); if ("year".equals(f2)) { i2 = m2; } else if ("month".equals(f2)) { i3 = m2; } else if ("dayOfMonth".equals(f2)) { i4 = m2; } else if ("hourOfDay".equals(f2)) { i5 = m2; } else if ("minute".equals(f2)) { i6 = m2; } else if ("second".equals(f2)) { i7 = m2; } } fuVar.b(); return new GregorianCalendar(i2, i3, i4, i5, i6, i7); } }; ac = ekVar8; A = new en(Calendar.class, GregorianCalendar.class, ekVar8) { // from class: com.facetec.sdk.fs.30 private ek a; private Class c; private Class e; { this.e = r1; this.c = r2; this.a = ekVar8; } @Override // com.facetec.sdk.en public final ek e(dx dxVar, fv fvVar) { Class a2 = fvVar.a(); if (a2 == this.e || a2 == this.c) { return this.a; } return null; } public final String toString() { StringBuilder sb = new StringBuilder("Factory[type="); sb.append(this.e.getName()); sb.append("+"); sb.append(this.c.getName()); sb.append(",adapter="); sb.append(this.a); sb.append("]"); return sb.toString(); } }; ek ekVar9 = new ek() { // from class: com.facetec.sdk.fs.21 @Override // com.facetec.sdk.ek public final /* synthetic */ void b(ga gaVar, Locale locale) throws IOException { Locale locale2 = locale; gaVar.b(locale2 == null ? null : locale2.toString()); } @Override // com.facetec.sdk.ek public final /* synthetic */ Locale a(fu fuVar) throws IOException { if (fuVar.i() == gc.NULL) { fuVar.l(); return null; } StringTokenizer stringTokenizer = new StringTokenizer(fuVar.h(), "_"); String nextToken = stringTokenizer.hasMoreElements() ? stringTokenizer.nextToken() : null; String nextToken2 = stringTokenizer.hasMoreElements() ? stringTokenizer.nextToken() : null; String nextToken3 = stringTokenizer.hasMoreElements() ? stringTokenizer.nextToken() : null; if (nextToken2 == null && nextToken3 == null) { return new Locale(nextToken); } if (nextToken3 == null) { return new Locale(nextToken, nextToken2); } return new Locale(nextToken, nextToken2, nextToken3); } }; Z = ekVar9; z = d(Locale.class, ekVar9); ek ekVar10 = new ek() { // from class: com.facetec.sdk.fs.24 /* JADX INFO: Access modifiers changed from: private */ @Override // com.facetec.sdk.ek /* renamed from: c, reason: merged with bridge method [inline-methods] */ public eb a(fu fuVar) throws IOException { switch (AnonymousClass27.b[fuVar.i().ordinal()]) { case 1: return new eh(new eu(fuVar.h())); case 2: return new eh(Boolean.valueOf(fuVar.g())); case 3: return new eh(fuVar.h()); case 4: fuVar.l(); return ea.a; case 5: dy dyVar = new dy(); fuVar.a(); while (fuVar.e()) { dyVar.d(a(fuVar)); } fuVar.c(); return dyVar; case 6: ec ecVar = new ec(); fuVar.d(); while (fuVar.e()) { ecVar.b(fuVar.f(), a(fuVar)); } fuVar.b(); return ecVar; default: throw new IllegalArgumentException(); } } /* JADX INFO: Access modifiers changed from: private */ @Override // com.facetec.sdk.ek /* renamed from: c, reason: merged with bridge method [inline-methods] */ public void b(ga gaVar, eb ebVar) throws IOException { if (ebVar == null || ebVar.h()) { gaVar.h(); return; } if (ebVar.g()) { eh l2 = ebVar.l(); if (l2.m()) { gaVar.b(l2.e()); return; } else if (l2.k()) { gaVar.a(l2.j()); return; } else { gaVar.b(l2.b()); return; } } if (ebVar.f()) { gaVar.e(); if (ebVar.f()) { Iterator it = ((dy) ebVar).iterator(); while (it.hasNext()) { b(gaVar, it.next()); } gaVar.b(); return; } throw new IllegalStateException("Not a JSON Array: ".concat(String.valueOf(ebVar))); } if (ebVar.i()) { gaVar.d(); if (ebVar.i()) { for (Map.Entry entry : ((ec) ebVar).k()) { gaVar.c(entry.getKey()); b(gaVar, entry.getValue()); } gaVar.a(); return; } throw new IllegalStateException("Not a JSON Object: ".concat(String.valueOf(ebVar))); } StringBuilder sb = new StringBuilder("Couldn't write "); sb.append(ebVar.getClass()); throw new IllegalArgumentException(sb.toString()); } }; B = ekVar10; D = a(eb.class, ekVar10); F = new en() { // from class: com.facetec.sdk.fs.25 @Override // com.facetec.sdk.en public final ek e(dx dxVar, fv fvVar) { Class a2 = fvVar.a(); if (!Enum.class.isAssignableFrom(a2) || a2 == Enum.class) { return null; } if (!a2.isEnum()) { a2 = a2.getSuperclass(); } return new e(a2); } }; } /* JADX INFO: Access modifiers changed from: package-private */ /* renamed from: com.facetec.sdk.fs$27, reason: invalid class name */ /* loaded from: classes.dex */ public static final /* synthetic */ class AnonymousClass27 { static final int[] b; static { int[] iArr = new int[gc.values().length]; b = iArr; try { iArr[gc.NUMBER.ordinal()] = 1; } catch (NoSuchFieldError unused) { } try { b[gc.BOOLEAN.ordinal()] = 2; } catch (NoSuchFieldError unused2) { } try { b[gc.STRING.ordinal()] = 3; } catch (NoSuchFieldError unused3) { } try { b[gc.NULL.ordinal()] = 4; } catch (NoSuchFieldError unused4) { } try { b[gc.BEGIN_ARRAY.ordinal()] = 5; } catch (NoSuchFieldError unused5) { } try { b[gc.BEGIN_OBJECT.ordinal()] = 6; } catch (NoSuchFieldError unused6) { } try { b[gc.END_DOCUMENT.ordinal()] = 7; } catch (NoSuchFieldError unused7) { } try { b[gc.NAME.ordinal()] = 8; } catch (NoSuchFieldError unused8) { } try { b[gc.END_OBJECT.ordinal()] = 9; } catch (NoSuchFieldError unused9) { } try { b[gc.END_ARRAY.ordinal()] = 10; } catch (NoSuchFieldError unused10) { } } } /* loaded from: classes.dex */ static final class e> extends ek { private final Map e = new HashMap(); private final Map a = new HashMap(); @Override // com.facetec.sdk.ek public final /* synthetic */ void b(ga gaVar, Object obj) throws IOException { Enum r3 = (Enum) obj; gaVar.b(r3 == null ? null : this.a.get(r3)); } public e(Class cls) { try { for (T t : cls.getEnumConstants()) { String name = t.name(); eo eoVar = (eo) cls.getField(name).getAnnotation(eo.class); if (eoVar != null) { name = eoVar.a(); for (String str : eoVar.e()) { this.e.put(str, t); } } this.e.put(name, t); this.a.put(t, name); } } catch (NoSuchFieldException e) { throw new AssertionError(e); } } @Override // com.facetec.sdk.ek public final /* synthetic */ Object a(fu fuVar) throws IOException { if (fuVar.i() == gc.NULL) { fuVar.l(); return null; } return this.e.get(fuVar.h()); } } public static en d(Class cls, ek ekVar) { return new en(cls, ekVar) { // from class: com.facetec.sdk.fs.22 private ek c; private Class e; { this.e = cls; this.c = ekVar; } @Override // com.facetec.sdk.en public final ek e(dx dxVar, fv fvVar) { if (fvVar.a() == this.e) { return this.c; } return null; } public final String toString() { StringBuilder sb = new StringBuilder("Factory[type="); sb.append(this.e.getName()); sb.append(",adapter="); sb.append(this.c); sb.append("]"); return sb.toString(); } }; } public static en b(Class cls, Class cls2, ek ekVar) { return new en(cls, cls2, ekVar) { // from class: com.facetec.sdk.fs.29 private ek a; private Class b; private Class e; { this.e = cls; this.b = cls2; this.a = ekVar; } @Override // com.facetec.sdk.en public final ek e(dx dxVar, fv fvVar) { Class a2 = fvVar.a(); if (a2 == this.e || a2 == this.b) { return this.a; } return null; } public final String toString() { StringBuilder sb = new StringBuilder("Factory[type="); sb.append(this.b.getName()); sb.append("+"); sb.append(this.e.getName()); sb.append(",adapter="); sb.append(this.a); sb.append("]"); return sb.toString(); } }; } /* JADX INFO: Access modifiers changed from: package-private */ /* renamed from: com.facetec.sdk.fs$26, reason: invalid class name */ /* loaded from: classes.dex */ public final class AnonymousClass26 implements en { final ek c; private Class e; AnonymousClass26(Class cls, ek ekVar) { this.e = cls; this.c = ekVar; } @Override // com.facetec.sdk.en public final ek e(dx dxVar, fv fvVar) { Class a = fvVar.a(); if (this.e.isAssignableFrom(a)) { return (ek) new ek(this, a) { // from class: com.facetec.sdk.fs.26.3 private AnonymousClass26 a; private Class b; { this.a = this; this.b = a; } @Override // com.facetec.sdk.ek public final void b(ga gaVar, T1 t1) throws IOException { this.a.c.b(gaVar, t1); } @Override // com.facetec.sdk.ek public final T1 a(fu fuVar) throws IOException { T1 t1 = (T1) this.a.c.a(fuVar); if (t1 == null || this.b.isInstance(t1)) { return t1; } StringBuilder sb = new StringBuilder("Expected a "); sb.append(this.b.getName()); sb.append(" but was "); sb.append(t1.getClass().getName()); throw new ei(sb.toString()); } }; } return null; } public final String toString() { StringBuilder sb = new StringBuilder("Factory[typeHierarchy="); sb.append(this.e.getName()); sb.append(",adapter="); sb.append(this.c); sb.append("]"); return sb.toString(); } } private static en a(Class cls, ek ekVar) { return new AnonymousClass26(cls, ekVar); } }