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

4324 lines
134 KiB
Java

package com.facetec.sdk;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.Color;
import android.graphics.Typeface;
import android.graphics.drawable.ColorDrawable;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.GradientDrawable;
import android.graphics.drawable.ShapeDrawable;
import android.os.Process;
import android.telephony.cdma.CdmaCellLocation;
import android.text.Html;
import android.text.TextUtils;
import android.util.DisplayMetrics;
import android.util.TypedValue;
import android.view.Gravity;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android.widget.Button;
import android.widget.ProgressBar;
import android.widget.TextView;
import com.facetec.sdk.FaceTecCancelButtonCustomization;
import com.facetec.sdk.FaceTecSDK;
import com.facetec.sdk.i;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import io.flutter.embedding.android.KeyboardMap;
import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.Locale;
import java.util.Objects;
import o.nMh;
import org.bouncycastle.crypto.tls.CipherSuite;
import org.bouncycastle.i18n.LocalizedMessage;
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes.dex */
public final class db {
private static final byte[] $$a = null;
private static final int $$b = 0;
private static int $10;
private static int $11;
private static final i<Resources> a;
private static final i<DisplayMetrics> b;
private static final i<Float> c;
private static final i<Float> d;
private static final i<Float> e;
private static char[] f;
private static int g;
private static int j;
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes.dex */
public enum c {
COLOR,
RESOURCE
}
/* JADX WARN: Multi-variable type inference failed */
/* JADX WARN: Removed duplicated region for block: B:10:0x0024 */
/* JADX WARN: Removed duplicated region for block: B:7:0x001c */
/* JADX WARN: Type inference failed for: r6v2, types: [int] */
/* 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 ca(byte r5, byte r6, int r7, java.lang.Object[] r8) {
/*
int r7 = r7 * 3
byte[] r0 = com.facetec.sdk.db.$$a
int r5 = r5 + 97
int r6 = r6 << 1
int r6 = 4 - r6
int r1 = 1 - r7
byte[] r1 = new byte[r1]
r2 = 0
if (r0 != 0) goto L14
r4 = r6
r3 = r2
goto L28
L14:
r3 = r2
L15:
byte r4 = (byte) r5
r1[r3] = r4
int r4 = 0 - r7
if (r3 != r4) goto L24
java.lang.String r5 = new java.lang.String
r5.<init>(r1, r2)
r8[r2] = r5
return
L24:
int r3 = r3 + 1
r4 = r0[r6]
L28:
int r6 = r6 + 1
int r5 = r5 + r4
goto L15
*/
throw new UnsupportedOperationException("Method not decompiled: com.facetec.sdk.db.ca(byte, byte, int, java.lang.Object[]):void");
}
db() {
}
static {
init$0();
$10 = 0;
$11 = 1;
g = 0;
j = 1;
bo();
a = new i<>();
b = new i<>();
e = new i<>();
c = new i<>();
d = new i<>();
int i = j + 93;
g = i % 128;
if (i % 2 != 0) {
throw new ArithmeticException();
}
}
private static Resources y(final Context context) {
int i = g + 83;
j = i % 128;
if (i % 2 == 0) {
i<Resources> iVar = a;
Objects.requireNonNull(context);
iVar.a(new i.a(context) { // from class: com.facetec.sdk.db$$ExternalSyntheticLambda1
public final Context f$0;
@Override // com.facetec.sdk.i.a
public final Object create() {
Resources resources;
resources = this.f$0.getResources();
return resources;
}
{
this.f$0 = context;
}
});
throw null;
}
i<Resources> iVar2 = a;
Objects.requireNonNull(context);
Resources a2 = iVar2.a(new i.a(context) { // from class: com.facetec.sdk.db$$ExternalSyntheticLambda1
public final Context f$0;
@Override // com.facetec.sdk.i.a
public final Object create() {
Resources resources;
resources = this.f$0.getResources();
return resources;
}
{
this.f$0 = context;
}
});
j = (g + 103) % 128;
return a2;
}
private static DisplayMetrics bn() {
g = (j + 115) % 128;
DisplayMetrics a2 = b.a(new i.a() { // from class: com.facetec.sdk.db$$ExternalSyntheticLambda3
@Override // com.facetec.sdk.i.a
public final Object create() {
Object cb;
cb = db.cb();
return cb;
}
});
int i = j + 7;
g = i % 128;
if (i % 2 == 0) {
return a2;
}
throw null;
}
/* JADX INFO: Access modifiers changed from: private */
public static /* synthetic */ Object cb() {
int i = g + 7;
j = i % 128;
if (i % 2 != 0) {
return Resources.getSystem().getDisplayMetrics();
}
Resources.getSystem().getDisplayMetrics();
throw new ArithmeticException();
}
private static FaceTecCustomization bm() {
g = (j + 13) % 128;
if (!FaceTecSDK.c()) {
if (!FaceTecSDK.e()) {
return FaceTecSDK.c;
}
FaceTecCustomization faceTecCustomization = FaceTecSDK.a;
int i = g + 43;
j = i % 128;
if (i % 2 != 0) {
return faceTecCustomization;
}
throw null;
}
j = (g + 41) % 128;
return FaceTecSDK.b;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static void c() {
g = (j + 111) % 128;
FaceTecCustomization faceTecCustomization = FaceTecSDK.c;
if (faceTecCustomization.n.progressRadialOffset == -1) {
int i = g + 27;
j = i % 128;
if (i % 2 == 0) {
faceTecCustomization.n.progressRadialOffset = bt();
throw null;
}
faceTecCustomization.n.progressRadialOffset = bt();
}
FaceTecSDK.c = faceTecCustomization;
int i2 = g + 111;
j = i2 % 128;
if (i2 % 2 == 0) {
throw null;
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public static float b() {
float floatValue;
synchronized (db.class) {
int i = j + 81;
g = i % 128;
if (i % 2 != 0) {
c.a(new i.a() { // from class: com.facetec.sdk.db$$ExternalSyntheticLambda0
@Override // com.facetec.sdk.i.a
public final Object create() {
float bl;
bl = db.bl();
return Float.valueOf(bl);
}
});
throw new ArithmeticException();
}
floatValue = c.a(new i.a() { // from class: com.facetec.sdk.db$$ExternalSyntheticLambda0
@Override // com.facetec.sdk.i.a
public final Object create() {
float bl;
bl = db.bl();
return Float.valueOf(bl);
}
}).floatValue();
}
return floatValue;
}
/* JADX INFO: Access modifiers changed from: private */
public static float bl() {
int i = g + 107;
j = i % 128;
if (i % 2 != 0) {
if (ah.c() != null) {
return r0.e / r0.c;
}
g = (j + 73) % 128;
return 1.7777778f;
}
ah.c();
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static float e() {
float floatValue;
synchronized (db.class) {
int i = g + 57;
j = i % 128;
if (i % 2 == 0) {
d.a(new i.a() { // from class: com.facetec.sdk.db$$ExternalSyntheticLambda4
@Override // com.facetec.sdk.i.a
public final Object create() {
float bs;
bs = db.bs();
return Float.valueOf(bs);
}
});
throw new NullPointerException();
}
floatValue = d.a(new i.a() { // from class: com.facetec.sdk.db$$ExternalSyntheticLambda4
@Override // com.facetec.sdk.i.a
public final Object create() {
float bs;
bs = db.bs();
return Float.valueOf(bs);
}
}).floatValue();
}
return floatValue;
}
/* JADX INFO: Access modifiers changed from: private */
public static float bs() {
j = (g + 55) % 128;
float b2 = b() / 1.7777778f;
float b3 = bn().widthPixels / av.b(340);
g = (j + 39) % 128;
return b3 * b2;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static float d() {
float floatValue;
synchronized (db.class) {
int i = j + 79;
g = i % 128;
if (i % 2 != 0) {
e.a(new i.a() { // from class: com.facetec.sdk.db$$ExternalSyntheticLambda2
@Override // com.facetec.sdk.i.a
public final Object create() {
float bu;
bu = db.bu();
return Float.valueOf(bu);
}
});
throw null;
}
floatValue = e.a(new i.a() { // from class: com.facetec.sdk.db$$ExternalSyntheticLambda2
@Override // com.facetec.sdk.i.a
public final Object create() {
float bu;
bu = db.bu();
return Float.valueOf(bu);
}
}).floatValue();
}
return floatValue;
}
/* JADX INFO: Access modifiers changed from: private */
public static float bu() {
float f2;
int i = j + 11;
g = i % 128;
if (i % 2 == 0) {
DisplayMetrics bn = bn();
float f3 = bn.widthPixels;
float f4 = bn.heightPixels;
if (b() < 1.4d) {
j = (g + 7) % 128;
f2 = 0.94f;
} else {
f2 = 0.88f;
}
float f5 = f3 * f2;
float f6 = bn.density * 340.0f;
if (f5 > f6) {
f2 = f6 / f3;
f5 = f6;
}
Resources system = Resources.getSystem();
Object[] objArr = new Object[1];
bZ(false, new int[]{0, 7, 0, 6}, "\u0000\u0000\u0000\u0001\u0000\u0001\u0001", objArr);
int identifier = system.getIdentifier("status_bar_height", "dimen", ((String) objArr[0]).intern());
int dimensionPixelSize = identifier > 0 ? Resources.getSystem().getDimensionPixelSize(identifier) : 0;
Resources system2 = Resources.getSystem();
Object[] objArr2 = new Object[1];
bZ(false, new int[]{0, 7, 0, 6}, "\u0000\u0000\u0000\u0001\u0000\u0001\u0001", objArr2);
int identifier2 = system2.getIdentifier("navigation_bar_height", "dimen", ((String) objArr2[0]).intern());
int dimensionPixelSize2 = identifier2 > 0 ? Resources.getSystem().getDimensionPixelSize(identifier2) : 0;
float b2 = b();
float f7 = (((f4 - ((bn.density * 10.0f) * 3.0f)) - 10.0f) - dimensionPixelSize2) - dimensionPixelSize;
if (b2 * f5 <= f7) {
return f2;
}
g = (j + 59) % 128;
return f7 / (b() * f3);
}
DisplayMetrics bn2 = bn();
int i2 = bn2.widthPixels;
int i3 = bn2.heightPixels;
b();
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int a() {
g = (j + 113) % 128;
int round = Math.round(av.b(15) * e() * d());
g = (j + 121) % 128;
return round;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int f() {
int i;
float e2 = e();
float d2 = d();
if (cx.d(R.string.FaceTec_idscan_type_selection_header).length() > 36) {
int i2 = g + 109;
int i3 = i2 % 128;
j = i3;
i = i2 % 2 == 0 ? 102 : -4;
g = (i3 + 107) % 128;
} else {
i = 0;
}
return Math.round((i + 28) * e2 * d2);
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int j() {
int i = g;
j = (i + 107) % 128;
j = (i + 19) % 128;
return 10;
}
private static int bt() {
g = (j + 13) % 128;
int y = y();
int w = w();
int i = j + 43;
g = i % 128;
if (i % 2 == 0) {
return y + w;
}
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int i() {
int i = g + 109;
j = i % 128;
if (i % 2 != 0) {
return -1;
}
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static FaceTecSize h() {
FaceTecSize faceTecSize = new FaceTecSize(Math.round(av.a(bn().widthPixels) - (e() * 20.0f)), Math.round(e() * 60.0f));
j = (g + 51) % 128;
return faceTecSize;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int g() {
int i;
int i2;
if (FaceTecSDK.c.l.borderWidth != -1) {
i = FaceTecSDK.c.l.borderWidth;
} else {
int i3 = (j + 9) % 128;
g = i3;
j = (i3 + 41) % 128;
i = 2;
}
if (i == 0) {
g = (j + 81) % 128;
i2 = 0;
} else {
i2 = 1;
}
return Math.max(i2, Math.round(i * e()));
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int l() {
int i;
int i2 = 1;
if (FaceTecSDK.c.f.retryScreenImageBorderWidth != -1) {
i = FaceTecSDK.c.f.retryScreenImageBorderWidth;
} else {
int i3 = g + 9;
j = i3 % 128;
i = i3 % 2 == 0 ? 0 : 1;
}
if (i == 0) {
int i4 = j + 23;
g = i4 % 128;
if (i4 % 2 == 0) {
i2 = 0;
}
}
int max = Math.max(i2, Math.round(i * e()));
g = (j + 121) % 128;
return max;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int k() {
int i = g + 125;
j = i % 128;
if (i % 2 != 0) {
int i2 = 0;
int i3 = FaceTecSDK.c.f.buttonBorderWidth == -1 ? 0 : FaceTecSDK.c.f.buttonBorderWidth;
if (i3 != 0) {
j = (g + 33) % 128;
i2 = 1;
}
return Math.max(i2, Math.round(i3 * e()));
}
int i4 = FaceTecSDK.c.f.buttonBorderWidth;
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int m() {
int i;
int i2 = 0;
if (FaceTecSDK.c.h.buttonBorderWidth != -1) {
i = FaceTecSDK.c.h.buttonBorderWidth;
} else {
int i3 = (g + 13) % 128;
j = i3;
g = (i3 + 29) % 128;
i = 0;
}
if (i == 0) {
j = (g + 121) % 128;
} else {
i2 = 1;
}
return Math.max(i2, Math.round(i * e()));
}
/* JADX INFO: Access modifiers changed from: package-private */
/* JADX WARN: Code restructure failed: missing block: B:6:0x0026, code lost:
if ((r1 % 2) != 0) goto L9;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public static int n() {
/*
int r0 = com.facetec.sdk.db.g
int r0 = r0 + 3
int r0 = r0 % 128
com.facetec.sdk.db.j = r0
com.facetec.sdk.FaceTecCustomization r0 = com.facetec.sdk.FaceTecSDK.c
com.facetec.sdk.FaceTecOCRConfirmationCustomization r0 = r0.i
int r0 = r0.buttonBorderWidth
r1 = -1
r2 = 0
if (r0 != r1) goto L14
r0 = r2
goto L1a
L14:
com.facetec.sdk.FaceTecCustomization r0 = com.facetec.sdk.FaceTecSDK.c
com.facetec.sdk.FaceTecOCRConfirmationCustomization r0 = r0.i
int r0 = r0.buttonBorderWidth
L1a:
if (r0 != 0) goto L28
int r1 = com.facetec.sdk.db.j
int r1 = r1 + 63
int r3 = r1 % 128
com.facetec.sdk.db.g = r3
int r1 = r1 % 2
if (r1 == 0) goto L29
L28:
r2 = 1
L29:
float r0 = (float) r0
float r1 = e()
float r0 = r0 * r1
int r0 = java.lang.Math.round(r0)
int r0 = java.lang.Math.max(r2, r0)
return r0
*/
throw new UnsupportedOperationException("Method not decompiled: com.facetec.sdk.db.n():int");
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int o() {
int i;
int i2 = j + 101;
g = i2 % 128;
if (i2 % 2 == 0) {
int i3 = FaceTecSDK.c.i.mainHeaderDividerLineWidth != -1 ? FaceTecSDK.c.i.mainHeaderDividerLineWidth : 2;
if (i3 == 0) {
g = (j + 39) % 128;
i = 0;
} else {
i = 1;
}
return Math.max(i, Math.round(i3 * e()));
}
int i4 = FaceTecSDK.c.i.mainHeaderDividerLineWidth;
throw new ArithmeticException();
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int t() {
int i;
int i2 = 1;
if (FaceTecSDK.c.i.inputFieldBorderWidth == -1) {
i = 1;
} else {
i = FaceTecSDK.c.i.inputFieldBorderWidth;
g = (j + 113) % 128;
}
if (i == 0) {
int i3 = j + 39;
g = i3 % 128;
if (i3 % 2 == 0) {
i2 = 0;
}
}
return Math.max(i2, Math.round(i * e()));
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int r() {
int i = g + 37;
j = i % 128;
if (i % 2 != 0) {
int i2 = 0;
int i3 = FaceTecSDK.c.h.captureScreenTextBackgroundBorderWidth == -1 ? 0 : FaceTecSDK.c.h.captureScreenTextBackgroundBorderWidth;
if (i3 == 0) {
g = (j + 35) % 128;
} else {
i2 = 1;
j = (g + 1) % 128;
}
return Math.max(i2, Math.round(i3 * e()));
}
int i4 = FaceTecSDK.c.h.captureScreenTextBackgroundBorderWidth;
throw new ArithmeticException();
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int p() {
int i;
j = (g + 119) % 128;
int i2 = 0;
if (FaceTecSDK.c.h.reviewScreenTextBackgroundBorderWidth != -1) {
i = FaceTecSDK.c.h.reviewScreenTextBackgroundBorderWidth;
} else {
j = (g + 31) % 128;
i = 0;
}
if (i == 0) {
j = (g + 87) % 128;
} else {
i2 = 1;
}
return Math.max(i2, Math.round(i * e()));
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int s() {
int i;
int i2 = FaceTecSDK.c.h.captureFrameStrokeWidth == -1 ? 2 : FaceTecSDK.c.h.captureFrameStrokeWidth;
if (i2 == 0) {
int i3 = (g + 63) % 128;
j = i3;
g = (i3 + 47) % 128;
i = 0;
} else {
i = 1;
}
return Math.max(i, Math.round(i2 * e()));
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int q() {
int i;
int i2 = 0;
if (FaceTecSDK.c.i.scrollIndicatorBorderWidth != -1) {
i = FaceTecSDK.c.i.scrollIndicatorBorderWidth;
} else {
j = (g + 87) % 128;
i = 0;
}
if (i == 0) {
j = (g + 55) % 128;
} else {
i2 = 1;
}
return Math.max(i2, Math.round(i * e()));
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int u() {
int i = j + 1;
g = i % 128;
if (i % 2 == 0) {
int i2 = FaceTecSDK.c.i.scrollIndicatorCornerRadius == -1 ? -1 : FaceTecSDK.c.i.scrollIndicatorCornerRadius;
if (i2 != -1) {
return Math.round(i2 * e());
}
g = (j + 7) % 128;
return i2;
}
int i3 = FaceTecSDK.c.i.scrollIndicatorCornerRadius;
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int y() {
int i;
int i2 = g + 75;
j = i2 % 128;
if (i2 % 2 == 0) {
int i3 = FaceTecSDK.c.n.strokeWidth;
throw new ArithmeticException();
}
if (FaceTecSDK.c.n.strokeWidth != -1) {
i = FaceTecSDK.c.n.strokeWidth;
} else {
j = (g + 87) % 128;
i = 6;
}
int max = Math.max(i == 0 ? 0 : 1, Math.round(i * e()));
int i4 = j + 93;
g = i4 % 128;
if (i4 % 2 == 0) {
return max;
}
throw new ArithmeticException();
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int w() {
int i;
int i2;
if (FaceTecSDK.c.n.progressStrokeWidth != -1) {
i = FaceTecSDK.c.n.progressStrokeWidth;
} else {
j = (g + 23) % 128;
i = 6;
}
if (i == 0) {
int i3 = (j + 49) % 128;
g = i3;
j = (i3 + 77) % 128;
i2 = 0;
} else {
i2 = 1;
}
return Math.max(i2, Math.round(i * e()));
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int x() {
int i;
j = (g + 117) % 128;
if (FaceTecSDK.c.l.cornerRadius != -1) {
i = FaceTecSDK.c.l.cornerRadius;
} else {
j = (g + 113) % 128;
i = 20;
}
return Math.round(i * e());
}
private static int br() {
int i;
if (FaceTecSDK.c.f6400o.cornerRadius != -1) {
i = FaceTecSDK.c.f6400o.cornerRadius;
} else {
int i2 = g;
j = (i2 + 103) % 128;
j = (i2 + 97) % 128;
i = 3;
}
return Math.round(i * e());
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int v() {
int i;
g = (j + 9) % 128;
if (FaceTecSDK.c.f.readyScreenTextBackgroundCornerRadius == -1) {
i = 6;
} else {
i = FaceTecSDK.c.f.readyScreenTextBackgroundCornerRadius;
j = (g + 97) % 128;
}
return Math.round(i * e());
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int A() {
int i;
j = (g + 111) % 128;
if (FaceTecSDK.c.f.retryScreenImageCornerRadius != -1) {
i = FaceTecSDK.c.f.retryScreenImageCornerRadius;
} else {
int i2 = j + 13;
g = i2 % 128;
i = i2 % 2 != 0 ? 31 : 10;
}
return Math.round(i * e());
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int B() {
int i;
int i2 = j + 3;
g = i2 % 128;
if (i2 % 2 == 0) {
if (FaceTecSDK.c.h.captureScreenTextBackgroundCornerRadius == -1) {
j = (g + 109) % 128;
i = 6;
} else {
i = FaceTecSDK.c.h.captureScreenTextBackgroundCornerRadius;
}
return Math.round(i * e());
}
int i3 = FaceTecSDK.c.h.captureScreenTextBackgroundCornerRadius;
throw new ArithmeticException();
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int D() {
int i;
j = (g + 89) % 128;
if (FaceTecSDK.c.h.reviewScreenTextBackgroundCornerRadius != -1) {
i = FaceTecSDK.c.h.reviewScreenTextBackgroundCornerRadius;
j = (g + 35) % 128;
} else {
g = (j + 55) % 128;
i = 6;
}
return Math.round(i * e());
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int z() {
int i;
g = (j + 75) % 128;
if (FaceTecSDK.c.f.buttonCornerRadius != -1) {
i = FaceTecSDK.c.f.buttonCornerRadius;
} else {
int i2 = g + 99;
j = i2 % 128;
i = i2 % 2 == 0 ? 15 : 8;
}
int round = Math.round(i * e());
j = (g + 43) % 128;
return round;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int C() {
int i = j + 91;
g = i % 128;
if (i % 2 != 0) {
int i2 = FaceTecSDK.c.h.buttonCornerRadius;
throw null;
}
int round = Math.round((FaceTecSDK.c.h.buttonCornerRadius == -1 ? 8 : FaceTecSDK.c.h.buttonCornerRadius) * e());
g = (j + 31) % 128;
return round;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int H() {
int i;
if (FaceTecSDK.c.i.buttonCornerRadius != -1) {
i = FaceTecSDK.c.i.buttonCornerRadius;
} else {
int i2 = (j + 19) % 128;
g = i2;
j = (i2 + 63) % 128;
i = 8;
}
return Math.round(i * e());
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int G() {
int i;
j = (g + 59) % 128;
if (FaceTecSDK.c.i.inputFieldCornerRadius != -1) {
i = FaceTecSDK.c.i.inputFieldCornerRadius;
} else {
g = (j + 99) % 128;
i = 3;
}
return Math.round(i * e());
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int F() {
int i;
int i2 = j + 87;
g = i2 % 128;
if (i2 % 2 == 0) {
if (FaceTecSDK.c.h.captureFrameCornerRadius == -1) {
g = (j + 105) % 128;
i = 12;
} else {
i = FaceTecSDK.c.h.captureFrameCornerRadius;
}
return Math.round(i * e());
}
int i3 = FaceTecSDK.c.h.captureFrameCornerRadius;
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static Typeface I() {
j = (g + 125) % 128;
Typeface typeface = FaceTecSDK.c.f.readyScreenHeaderFont;
if (typeface != null) {
return typeface;
}
j = (g + 121) % 128;
return FaceTecSDK.c.f.headerFont;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static Typeface E() {
g = (j + 31) % 128;
Typeface typeface = FaceTecSDK.c.f.readyScreenSubtextFont;
if (typeface != null) {
return typeface;
}
j = (g + 115) % 128;
Typeface typeface2 = FaceTecSDK.c.f.subtextFont;
j = (g + 103) % 128;
return typeface2;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static Typeface N() {
int i = g + 27;
j = i % 128;
if (i % 2 != 0) {
Typeface typeface = FaceTecSDK.c.f.retryScreenHeaderFont;
if (typeface != null) {
return typeface;
}
Typeface typeface2 = FaceTecSDK.c.f.headerFont;
g = (j + 101) % 128;
return typeface2;
}
Typeface typeface3 = FaceTecSDK.c.f.retryScreenHeaderFont;
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static Typeface L() {
int i = j + 75;
g = i % 128;
if (i % 2 == 0) {
Typeface typeface = FaceTecSDK.c.f.retryScreenSubtextFont;
if (typeface == null) {
typeface = FaceTecSDK.c.f.subtextFont;
}
g = (j + 15) % 128;
return typeface;
}
Typeface typeface2 = FaceTecSDK.c.f.retryScreenSubtextFont;
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static FaceTecCustomization d(FaceTecCustomization faceTecCustomization) {
int i = g + 5;
j = i % 128;
if (i % 2 != 0) {
Typeface typeface = Typeface.DEFAULT_BOLD;
Typeface typeface2 = Typeface.DEFAULT;
if (faceTecCustomization.f6400o.textFont == null) {
int i2 = g + 83;
j = i2 % 128;
if (i2 % 2 == 0) {
faceTecCustomization.f6400o.textFont = typeface2;
throw null;
}
faceTecCustomization.f6400o.textFont = typeface2;
}
if (faceTecCustomization.f.headerFont == null) {
faceTecCustomization.f.headerFont = typeface;
}
if (faceTecCustomization.f.subtextFont == null) {
int i3 = j + 75;
g = i3 % 128;
if (i3 % 2 != 0) {
faceTecCustomization.f.subtextFont = typeface2;
throw null;
}
faceTecCustomization.f.subtextFont = typeface2;
}
if (faceTecCustomization.f.buttonFont == null) {
int i4 = g + 105;
j = i4 % 128;
if (i4 % 2 == 0) {
faceTecCustomization.f.buttonFont = typeface2;
throw null;
}
faceTecCustomization.f.buttonFont = typeface2;
}
if (faceTecCustomization.j.messageFont == null) {
g = (j + 97) % 128;
faceTecCustomization.j.messageFont = typeface2;
}
if (faceTecCustomization.h.headerFont == null) {
faceTecCustomization.h.headerFont = typeface;
}
if (faceTecCustomization.h.subtextFont == null) {
faceTecCustomization.h.subtextFont = typeface2;
}
if (faceTecCustomization.h.buttonFont == null) {
int i5 = j + 59;
g = i5 % 128;
if (i5 % 2 != 0) {
faceTecCustomization.h.buttonFont = typeface2;
throw null;
}
faceTecCustomization.h.buttonFont = typeface2;
}
if (faceTecCustomization.h.captureScreenFocusMessageFont == null) {
faceTecCustomization.h.captureScreenFocusMessageFont = typeface2;
}
if (faceTecCustomization.i.buttonFont == null) {
g = (j + 15) % 128;
faceTecCustomization.i.buttonFont = typeface2;
}
if (faceTecCustomization.i.mainHeaderFont == null) {
int i6 = j + 57;
g = i6 % 128;
if (i6 % 2 != 0) {
faceTecCustomization.i.mainHeaderFont = typeface;
throw new ArithmeticException();
}
faceTecCustomization.i.mainHeaderFont = typeface;
}
if (faceTecCustomization.i.sectionHeaderFont == null) {
faceTecCustomization.i.sectionHeaderFont = typeface;
}
if (faceTecCustomization.i.fieldLabelFont == null) {
faceTecCustomization.i.fieldLabelFont = typeface2;
}
if (faceTecCustomization.i.fieldValueFont == null) {
faceTecCustomization.i.fieldValueFont = typeface2;
}
if (faceTecCustomization.i.inputFieldFont == null) {
int i7 = g + 57;
j = i7 % 128;
if (i7 % 2 == 0) {
faceTecCustomization.i.inputFieldFont = faceTecCustomization.i.fieldValueFont;
throw null;
}
faceTecCustomization.i.inputFieldFont = faceTecCustomization.i.fieldValueFont;
}
if (faceTecCustomization.i.inputFieldPlaceholderFont == null) {
g = (j + 33) % 128;
faceTecCustomization.i.inputFieldPlaceholderFont = faceTecCustomization.i.inputFieldFont;
}
if (faceTecCustomization.i.scrollIndicatorFont == null) {
faceTecCustomization.i.scrollIndicatorFont = typeface2;
}
return faceTecCustomization;
}
Typeface typeface3 = faceTecCustomization.f6400o.textFont;
throw null;
}
private static c a(Context context, int i) {
int i2 = (g + 29) % 128;
j = i2;
long j2 = i & KeyboardMap.kValueMask;
if (j2 != 0) {
int i3 = i2 + 73;
g = i3 % 128;
if (i3 % 2 != 0) {
throw new ArithmeticException();
}
if (j2 <= 16777215) {
try {
y(context).getValue(i, new TypedValue(), true);
return c.RESOURCE;
} catch (Exception unused) {
return c.COLOR;
}
}
}
return c.COLOR;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int d(Context context, int i) {
if (AnonymousClass4.a[a(context, i).ordinal()] == 1) {
try {
int color = nMh.getColor(context, i);
j = (g + 3) % 128;
return color;
} catch (Throwable unused) {
return i;
}
}
j = (g + 103) % 128;
return i;
}
private static int e(int i) {
if (FaceTecSDK.d == FaceTecSDK.e.LOW_LIGHT) {
return -1;
}
int i2 = j + 19;
g = i2 % 128;
if (i2 % 2 != 0) {
FaceTecSDK.e eVar = FaceTecSDK.d;
FaceTecSDK.e eVar2 = FaceTecSDK.e.LOW_LIGHT_FROM_SENSOR;
throw null;
}
if (FaceTecSDK.d == FaceTecSDK.e.LOW_LIGHT_FROM_SENSOR) {
return -1;
}
if (FaceTecSDK.d == FaceTecSDK.e.BRIGHT_LIGHT) {
int i3 = g + 31;
j = i3 % 128;
if (i3 % 2 != 0) {
return -16777216;
}
throw new ArithmeticException();
}
int i4 = j + 39;
g = i4 % 128;
if (i4 % 2 == 0) {
return i;
}
throw null;
}
private static int bq() {
j = (g + 41) % 128;
int e2 = e(FaceTecSDK.c.h.additionalReviewScreenBackgroundColors);
j = (g + 95) % 128;
return e2;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int K() {
j = (g + 87) % 128;
int i = bm().h.additionalReviewScreenForegroundColor;
int i2 = j + 91;
g = i2 % 128;
if (i2 % 2 == 0) {
return i;
}
throw null;
}
private static int bx() {
g = (j + 9) % 128;
int e2 = e(FaceTecSDK.c.j.backgroundColors);
int i = j + 1;
g = i % 128;
if (i % 2 == 0) {
return e2;
}
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int M() {
g = (j + 45) % 128;
int i = bm().j.foregroundColor;
g = (j + 33) % 128;
return i;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int J() {
int i = g + 7;
j = i % 128;
if (i % 2 != 0) {
return e(FaceTecSDK.c.f.backgroundColors);
}
e(FaceTecSDK.c.f.backgroundColors);
throw null;
}
private static int by() {
int i = g + 95;
j = i % 128;
if (i % 2 == 0) {
int i2 = bm().f.foregroundColor;
throw new ArithmeticException();
}
int i3 = bm().f.foregroundColor;
int i4 = j + 55;
g = i4 % 128;
if (i4 % 2 == 0) {
return i3;
}
throw new ArithmeticException();
}
private static int bw() {
g = (j + 23) % 128;
int i = bm().f.readyScreenHeaderTextColor;
j = (g + 85) % 128;
return i;
}
private static int bv() {
j = (g + 43) % 128;
int i = bm().f.readyScreenSubtextTextColor;
int i2 = j + 19;
g = i2 % 128;
if (i2 % 2 == 0) {
return i;
}
throw null;
}
private static int bz() {
j = (g + 67) % 128;
int i = bm().f.retryScreenHeaderTextColor;
int i2 = j + 121;
g = i2 % 128;
if (i2 % 2 == 0) {
return i;
}
throw new ArithmeticException();
}
private static int bC() {
j = (g + 115) % 128;
int i = bm().f.retryScreenSubtextTextColor;
int i2 = j + 1;
g = i2 % 128;
if (i2 % 2 == 0) {
return i;
}
throw null;
}
private static int bA() {
int i = g + 41;
j = i % 128;
if (i % 2 == 0) {
e(FaceTecSDK.c.l.backgroundColor);
throw new ArithmeticException();
}
int e2 = e(FaceTecSDK.c.l.backgroundColor);
int i2 = j + 5;
g = i2 % 128;
if (i2 % 2 == 0) {
return e2;
}
throw null;
}
private static int bD() {
j = (g + 5) % 128;
int i = bm().l.borderColor;
g = (j + 123) % 128;
return i;
}
private static int bB() {
int i = g + 1;
j = i % 128;
if (i % 2 == 0) {
int i2 = bm().n.strokeColor;
throw new ArithmeticException();
}
int i3 = bm().n.strokeColor;
int i4 = j + 43;
g = i4 % 128;
if (i4 % 2 == 0) {
return i3;
}
throw null;
}
private static int bE() {
j = (g + 107) % 128;
int i = bm().f.readyScreenOvalFillColor;
g = (j + 117) % 128;
return i;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int Q() {
int i = j + 109;
g = i % 128;
if (i % 2 != 0) {
int i2 = bm().f.readyScreenTextBackgroundColor;
throw null;
}
int i3 = bm().f.readyScreenTextBackgroundColor;
j = (g + 65) % 128;
return i3;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int P() {
g = (j + 73) % 128;
int e2 = e(FaceTecSDK.c.g.backgroundColor);
int i = g + 103;
j = i % 128;
if (i % 2 != 0) {
return e2;
}
throw null;
}
private static int bJ() {
g = (j + 65) % 128;
int i = bm().m.defaultAnimationBackgroundColor;
g = (j + 51) % 128;
return i;
}
private static int bG() {
int i = j + 83;
g = i % 128;
if (i % 2 != 0) {
int i2 = bm().m.defaultAnimationForegroundColor;
throw null;
}
int i3 = bm().m.defaultAnimationForegroundColor;
int i4 = j + 119;
g = i4 % 128;
if (i4 % 2 == 0) {
return i3;
}
throw null;
}
private static int bH() {
int i = g + 27;
j = i % 128;
if (i % 2 == 0) {
int i2 = bm().j.resultAnimationBackgroundColor;
throw new ArithmeticException();
}
int i3 = bm().j.resultAnimationBackgroundColor;
int i4 = g + 115;
j = i4 % 128;
if (i4 % 2 != 0) {
return i3;
}
throw new ArithmeticException();
}
private static int bF() {
int i = g + 67;
j = i % 128;
if (i % 2 != 0) {
return bm().j.resultAnimationForegroundColor;
}
int i2 = bm().j.resultAnimationForegroundColor;
throw new ArithmeticException();
}
private static int bI() {
int i = j + 55;
g = i % 128;
if (i % 2 != 0) {
int i2 = bm().j.uploadProgressTrackColor;
throw null;
}
int i3 = bm().j.uploadProgressTrackColor;
j = (g + 13) % 128;
return i3;
}
private static int bO() {
int i = j + 107;
g = i % 128;
if (i % 2 == 0) {
return bm().j.uploadProgressFillColor;
}
int i2 = bm().j.uploadProgressFillColor;
throw new ArithmeticException();
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int S() {
int i = j + 79;
g = i % 128;
if (i % 2 == 0) {
return bm().j.activityIndicatorColor;
}
int i2 = bm().j.activityIndicatorColor;
throw null;
}
private static int bN() {
j = (g + 1) % 128;
int i = bm().f6400o.textColor;
int i2 = g + 103;
j = i2 % 128;
if (i2 % 2 != 0) {
return i;
}
throw null;
}
private static int bL() {
j = (g + 21) % 128;
int i = bm().f6400o.backgroundColors;
j = (g + 71) % 128;
return i;
}
private static int bK() {
int i = j + 13;
g = i % 128;
if (i % 2 != 0) {
int i2 = bm().f.retryScreenImageBorderColor;
throw null;
}
int i3 = bm().f.retryScreenImageBorderColor;
g = (j + 59) % 128;
return i3;
}
private static int bM() {
int i = j + 111;
g = i % 128;
if (i % 2 != 0) {
int i2 = bm().f.retryScreenOvalStrokeColor;
throw new ArithmeticException();
}
int i3 = bm().f.retryScreenOvalStrokeColor;
j = (g + 85) % 128;
return i3;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int O() {
g = (j + 111) % 128;
int i = bm().f.buttonTextNormalColor;
g = (j + 93) % 128;
return i;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int R() {
j = (g + 43) % 128;
int i = bm().f.buttonTextHighlightColor;
int i2 = j + 15;
g = i2 % 128;
if (i2 % 2 == 0) {
return i;
}
throw new ArithmeticException();
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int X() {
int i = g + 105;
j = i % 128;
if (i % 2 == 0) {
int i2 = bm().f.buttonTextDisabledColor;
throw new ArithmeticException();
}
int i3 = bm().f.buttonTextDisabledColor;
g = (j + 109) % 128;
return i3;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int T() {
g = (j + 63) % 128;
int i = bm().f.buttonBackgroundNormalColor;
g = (j + 41) % 128;
return i;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int W() {
g = (j + 19) % 128;
int i = bm().f.buttonBackgroundHighlightColor;
int i2 = j + 63;
g = i2 % 128;
if (i2 % 2 == 0) {
return i;
}
throw new ArithmeticException();
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int V() {
g = (j + 49) % 128;
int i = bm().f.buttonBackgroundDisabledColor;
int i2 = g + 105;
j = i2 % 128;
if (i2 % 2 != 0) {
return i;
}
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int U() {
j = (g + 85) % 128;
int i = bm().f.buttonBorderColor;
g = (j + 63) % 128;
return i;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int Y() {
g = (j + 63) % 128;
int i = bm().h.buttonTextNormalColor;
int i2 = j + 11;
g = i2 % 128;
if (i2 % 2 == 0) {
return i;
}
throw new ArithmeticException();
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int ac() {
g = (j + 51) % 128;
int i = bm().h.buttonTextHighlightColor;
int i2 = j + 81;
g = i2 % 128;
if (i2 % 2 == 0) {
return i;
}
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int aa() {
int i = j + 81;
g = i % 128;
if (i % 2 == 0) {
return bm().h.buttonTextDisabledColor;
}
int i2 = bm().h.buttonTextDisabledColor;
throw new ArithmeticException();
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int Z() {
int i = j + 117;
g = i % 128;
if (i % 2 != 0) {
int i2 = bm().h.buttonBackgroundNormalColor;
throw null;
}
int i3 = bm().h.buttonBackgroundNormalColor;
int i4 = g + 105;
j = i4 % 128;
if (i4 % 2 != 0) {
return i3;
}
throw new ArithmeticException();
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int ab() {
int i = j + 41;
g = i % 128;
if (i % 2 != 0) {
int i2 = bm().h.buttonBackgroundHighlightColor;
throw null;
}
int i3 = bm().h.buttonBackgroundHighlightColor;
int i4 = j + 89;
g = i4 % 128;
if (i4 % 2 == 0) {
return i3;
}
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int ad() {
j = (g + 71) % 128;
int i = bm().h.buttonBackgroundDisabledColor;
j = (g + 77) % 128;
return i;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int ah() {
int i = j + 23;
g = i % 128;
if (i % 2 == 0) {
return bm().h.buttonBorderColor;
}
int i2 = bm().h.buttonBorderColor;
throw new ArithmeticException();
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int ag() {
g = (j + 115) % 128;
int i = bm().i.buttonTextNormalColor;
int i2 = j + 79;
g = i2 % 128;
if (i2 % 2 == 0) {
return i;
}
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int af() {
g = (j + 43) % 128;
int i = bm().i.buttonTextHighlightColor;
g = (j + 107) % 128;
return i;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int ae() {
int i = j + 87;
g = i % 128;
if (i % 2 == 0) {
return bm().i.buttonTextDisabledColor;
}
int i2 = bm().i.buttonTextDisabledColor;
throw new ArithmeticException();
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int ai() {
g = (j + 111) % 128;
int i = bm().i.buttonBackgroundNormalColor;
int i2 = g + 19;
j = i2 % 128;
if (i2 % 2 != 0) {
return i;
}
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int ak() {
int i = j + 85;
g = i % 128;
if (i % 2 == 0) {
return bm().i.buttonBackgroundHighlightColor;
}
int i2 = bm().i.buttonBackgroundHighlightColor;
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int al() {
int i = g + 47;
j = i % 128;
if (i % 2 == 0) {
int i2 = bm().i.buttonBackgroundDisabledColor;
throw null;
}
int i3 = bm().i.buttonBackgroundDisabledColor;
j = (g + 91) % 128;
return i3;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int am() {
int i = j + 33;
g = i % 128;
if (i % 2 == 0) {
return bm().i.buttonBorderColor;
}
int i2 = bm().i.buttonBorderColor;
throw new ArithmeticException();
}
private static int bP() {
g = (j + 79) % 128;
int e2 = e(FaceTecSDK.c.i.backgroundColors);
int i = g + 121;
j = i % 128;
if (i % 2 != 0) {
return e2;
}
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int aj() {
int i = j + 25;
g = i % 128;
if (i % 2 == 0) {
return bm().i.mainHeaderDividerLineColor;
}
int i2 = bm().i.mainHeaderDividerLineColor;
throw new ArithmeticException();
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int ao() {
g = (j + 109) % 128;
int i = bm().i.mainHeaderTextColor;
j = (g + 123) % 128;
return i;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int aq() {
int i = g + 87;
j = i % 128;
if (i % 2 == 0) {
int i2 = bm().i.sectionHeaderTextColor;
throw null;
}
int i3 = bm().i.sectionHeaderTextColor;
int i4 = j + 81;
g = i4 % 128;
if (i4 % 2 == 0) {
return i3;
}
throw new ArithmeticException();
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int ap() {
j = (g + 41) % 128;
int i = bm().i.fieldLabelTextColor;
int i2 = j + 71;
g = i2 % 128;
if (i2 % 2 == 0) {
return i;
}
throw null;
}
private static int bQ() {
j = (g + 13) % 128;
int i = bm().i.fieldValueTextColor;
g = (j + 117) % 128;
return i;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int ar() {
int i = g + 81;
j = i % 128;
if (i % 2 != 0) {
int i2 = bm().i.inputFieldTextColor;
if (i2 == 0) {
j = (g + 105) % 128;
i2 = bQ();
}
j = (g + 29) % 128;
return i2;
}
int i3 = bm().i.inputFieldTextColor;
throw new ArithmeticException();
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int e(Context context) {
j = (g + 101) % 128;
int i = bm().i.inputFieldPlaceholderTextColor;
if (i != 0) {
return i;
}
int b2 = b(d(context, ar()), 102);
g = (j + 9) % 128;
return b2;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int an() {
g = (j + 117) % 128;
int i = bm().i.inputFieldBackgroundColor;
int i2 = j + 111;
g = i2 % 128;
if (i2 % 2 == 0) {
return i;
}
throw new ArithmeticException();
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int au() {
int i = g + 121;
j = i % 128;
if (i % 2 != 0) {
return bm().i.inputFieldBorderColor;
}
int i2 = bm().i.inputFieldBorderColor;
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int at() {
g = (j + 7) % 128;
int i = bm().i.scrollIndicatorBorderColor;
j = (g + 119) % 128;
return i;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int aw() {
int i = g + 35;
j = i % 128;
if (i % 2 == 0) {
int i2 = bm().i.scrollIndicatorBackgroundNormalColor;
throw new ArithmeticException();
}
int i3 = bm().i.scrollIndicatorBackgroundNormalColor;
g = (j + 79) % 128;
return i3;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int av() {
g = (j + 55) % 128;
int i = bm().i.scrollIndicatorBackgroundHighlightColor;
int i2 = j + 51;
g = i2 % 128;
if (i2 % 2 == 0) {
return i;
}
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int as() {
j = (g + 103) % 128;
int i = bm().i.scrollIndicatorForegroundNormalColor;
int i2 = j + 11;
g = i2 % 128;
if (i2 % 2 == 0) {
return i;
}
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int aA() {
int i = j + 121;
g = i % 128;
if (i % 2 != 0) {
int i2 = bm().i.scrollIndicatorForegroundHighlightColor;
throw null;
}
int i3 = bm().i.scrollIndicatorForegroundHighlightColor;
int i4 = j + 25;
g = i4 % 128;
if (i4 % 2 == 0) {
return i3;
}
throw new ArithmeticException();
}
private static int bR() {
j = (g + 85) % 128;
int e2 = e(FaceTecSDK.c.h.selectionScreenBackgroundColors);
int i = g + 111;
j = i % 128;
if (i % 2 != 0) {
return e2;
}
throw null;
}
private static int bS() {
int i = j + 27;
g = i % 128;
if (i % 2 != 0) {
int i2 = bm().h.selectionScreenForegroundColor;
throw new ArithmeticException();
}
int i3 = bm().h.selectionScreenForegroundColor;
int i4 = j + 65;
g = i4 % 128;
if (i4 % 2 == 0) {
return i3;
}
throw new ArithmeticException();
}
private static int bT() {
j = (g + 39) % 128;
int i = bm().h.reviewScreenForegroundColor;
g = (j + 107) % 128;
return i;
}
private static int bV() {
j = (g + 53) % 128;
int i = bm().h.captureScreenForegroundColor;
j = (g + 95) % 128;
return i;
}
private static int bW() {
int i = j + 71;
g = i % 128;
if (i % 2 != 0) {
int i2 = bm().h.captureScreenFocusMessageTextColor;
throw null;
}
int i3 = bm().h.captureScreenFocusMessageTextColor;
int i4 = g + 53;
j = i4 % 128;
if (i4 % 2 != 0) {
return i3;
}
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int ax() {
int i = g + 21;
j = i % 128;
if (i % 2 != 0) {
return bm().h.reviewScreenTextBackgroundColor;
}
int i2 = bm().h.reviewScreenTextBackgroundColor;
throw new ArithmeticException();
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int aB() {
j = (g + 89) % 128;
int i = bm().h.reviewScreenTextBackgroundBorderColor;
g = (j + 107) % 128;
return i;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int ay() {
int i = j + 117;
g = i % 128;
if (i % 2 == 0) {
return bm().h.captureScreenTextBackgroundColor;
}
int i2 = bm().h.captureScreenTextBackgroundColor;
throw new ArithmeticException();
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int az() {
g = (j + 23) % 128;
int i = bm().h.captureScreenTextBackgroundBorderColor;
int i2 = j + 39;
g = i2 % 128;
if (i2 % 2 == 0) {
return i;
}
throw new ArithmeticException();
}
private static int bU() {
int i = g + 37;
j = i % 128;
if (i % 2 != 0) {
return e(FaceTecSDK.c.h.captureScreenBackgroundColor);
}
e(FaceTecSDK.c.h.captureScreenBackgroundColor);
throw new ArithmeticException();
}
private static int bX() {
int i = j + 49;
g = i % 128;
if (i % 2 != 0) {
int i2 = bm().h.captureFrameStrokeColor;
throw null;
}
int i3 = bm().h.captureFrameStrokeColor;
int i4 = j + 69;
g = i4 % 128;
if (i4 % 2 == 0) {
return i3;
}
throw null;
}
private static int d(int i, int i2) {
int i3 = g + 37;
int i4 = i3 % 128;
j = i4;
if (i3 % 2 == 0) {
throw null;
}
if (i == 0) {
return i2;
}
int i5 = i4 + 103;
g = i5 % 128;
if (i5 % 2 == 0) {
return i;
}
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int aC() {
int i = j + 95;
g = i % 128;
if (i % 2 == 0) {
int i2 = bm().g.brandingImage;
if (i2 == 0) {
j = (g + 113) % 128;
i2 = FaceTecSDK.c.g.brandingImage;
}
j = (g + 9) % 128;
return i2;
}
int i3 = bm().g.brandingImage;
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int aG() {
int i = j + 3;
g = i % 128;
if (i % 2 == 0) {
int i2 = bm().h.inactiveTorchButtonImage;
if (i2 == 0) {
i2 = FaceTecSDK.c.h.inactiveTorchButtonImage;
}
j = (g + 117) % 128;
return i2;
}
int i3 = bm().h.inactiveTorchButtonImage;
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int aE() {
int i = j + 119;
g = i % 128;
if (i % 2 == 0) {
int i2 = bm().h.activeTorchButtonImage;
if (i2 == 0) {
i2 = FaceTecSDK.c.h.activeTorchButtonImage;
}
j = (g + 49) % 128;
return i2;
}
int i3 = bm().h.activeTorchButtonImage;
throw new ArithmeticException();
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int c(Context context) {
int i = bm().h.faceMatchToIDBrandingImage;
if (i == 0) {
j = (g + 67) % 128;
i = FaceTecSDK.c.h.faceMatchToIDBrandingImage;
}
if (i == 0) {
g = (j + 9) % 128;
i = context.getResources().getIdentifier("facetec_face_match_to_id_branding_logo", "drawable", context.getPackageName());
}
if (i != 0) {
return i;
}
int i2 = R.drawable.facetec_internal_id_scan_watermark;
j = (g + 67) % 128;
return i2;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int b(Context context) {
int i;
j = (g + 81) % 128;
if (FaceTecSDK.c.d) {
i = bm().h.standaloneIDScanWatermark;
if (i == 0) {
i = FaceTecSDK.c.h.standaloneIDScanWatermark;
}
if (i == 0) {
i = context.getResources().getIdentifier("facetec_standalone_id_scan_watermark", "drawable", context.getPackageName());
g = (j + 19) % 128;
}
} else {
i = 0;
}
if (i != 0) {
return i;
}
int i2 = g + 107;
j = i2 % 128;
if (i2 % 2 != 0) {
return R.drawable.facetec_internal_id_scan_watermark;
}
int i3 = R.drawable.facetec_internal_id_scan_watermark;
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int aD() {
j = (g + 85) % 128;
int i = bm().h.selectionScreenBrandingImage;
if (i != 0) {
return i;
}
int i2 = j + 5;
g = i2 % 128;
if (i2 % 2 == 0) {
return FaceTecSDK.c.h.selectionScreenBrandingImage;
}
int i3 = FaceTecSDK.c.h.selectionScreenBrandingImage;
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int aF() {
g = (j + 99) % 128;
int i = bm().h.selectionScreenDocumentImage;
if (i != 0) {
return i;
}
int i2 = j + 63;
g = i2 % 128;
if (i2 % 2 == 0) {
return FaceTecSDK.c.h.selectionScreenDocumentImage;
}
int i3 = FaceTecSDK.c.h.selectionScreenDocumentImage;
throw new ArithmeticException();
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int aL() {
g = (j + 9) % 128;
int i = bm().k.customImage;
if (i != 0) {
return i;
}
int i2 = FaceTecSDK.c.k.customImage;
g = (j + 31) % 128;
return i2;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int aK() {
g = (j + 93) % 128;
int d2 = d(bm().m.customAnimation, FaceTecSDK.c.m.customAnimation);
g = (j + 97) % 128;
return d2;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int aJ() {
j = (g + 1) % 128;
int d2 = d(bm().m.customAnimationImage, FaceTecSDK.c.m.customAnimationImage);
j = (g + 97) % 128;
return d2;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int aH() {
int i = g + 81;
j = i % 128;
if (i % 2 != 0) {
int i2 = bm().i.customStaticScrollIndicatorAnimation;
if (i2 != 0) {
return i2;
}
int i3 = FaceTecSDK.c.i.customStaticScrollIndicatorAnimation;
g = (j + 3) % 128;
return i3;
}
int i4 = bm().i.customStaticScrollIndicatorAnimation;
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int aI() {
int i = j + 75;
g = i % 128;
if (i % 2 == 0) {
int i2 = bm().i.customScrollIndicatorAnimation;
if (i2 != 0) {
return i2;
}
int i3 = FaceTecSDK.c.i.customScrollIndicatorAnimation;
g = (j + 59) % 128;
return i3;
}
int i4 = bm().i.customScrollIndicatorAnimation;
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int aM() {
int i = bm().j.customActivityIndicatorImage;
if (i == 0) {
int i2 = g + 105;
j = i2 % 128;
if (i2 % 2 == 0) {
int i3 = FaceTecSDK.c.j.customActivityIndicatorImage;
throw null;
}
i = FaceTecSDK.c.j.customActivityIndicatorImage;
}
g = (j + 101) % 128;
return i;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int aQ() {
g = (j + 29) % 128;
int i = bm().j.resultAnimationSuccessBackgroundImage;
if (i != 0) {
return i;
}
j = (g + 49) % 128;
int i2 = FaceTecSDK.c.j.resultAnimationSuccessBackgroundImage;
g = (j + 53) % 128;
return i2;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int aP() {
j = (g + 21) % 128;
int i = bm().j.resultAnimationUnsuccessBackgroundImage;
if (i == 0) {
int i2 = j + 111;
g = i2 % 128;
if (i2 % 2 != 0) {
int i3 = FaceTecSDK.c.j.resultAnimationUnsuccessBackgroundImage;
throw null;
}
i = FaceTecSDK.c.j.resultAnimationUnsuccessBackgroundImage;
}
int i4 = g + 15;
j = i4 % 128;
if (i4 % 2 != 0) {
return i;
}
throw new ArithmeticException();
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int[] aO() {
int i = j + 107;
g = i % 128;
if (i % 2 == 0) {
int[] iArr = bm().f.retryScreenSlideshowImages;
if (iArr.length == 0) {
iArr = FaceTecSDK.c.f.retryScreenSlideshowImages;
}
int i2 = j + 101;
g = i2 % 128;
if (i2 % 2 == 0) {
return iArr;
}
throw null;
}
int length = bm().f.retryScreenSlideshowImages.length;
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int aN() {
int i = bm().f.retryScreenIdealImage;
if (i == 0) {
int i2 = g + 39;
j = i2 % 128;
if (i2 % 2 == 0) {
int i3 = FaceTecSDK.c.f.retryScreenIdealImage;
throw null;
}
i = FaceTecSDK.c.f.retryScreenIdealImage;
}
if (i != 0) {
return i;
}
int i4 = R.drawable.facetec_ideal_pose_image;
j = (g + 57) % 128;
return i4;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int aR() {
int i = g + 99;
j = i % 128;
if (i % 2 != 0) {
int i2 = FaceTecSDK.c.f.cameraPermissionsScreenImage;
if (i2 == 0) {
i2 = R.drawable.facetec_camera;
}
j = (g + 15) % 128;
return i2;
}
int i3 = FaceTecSDK.c.f.cameraPermissionsScreenImage;
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int aT() {
int i = bm().h.additionalReviewScreenImage;
if (i == 0) {
int i2 = j + 103;
g = i2 % 128;
if (i2 % 2 != 0) {
int i3 = R.drawable.facetec_review;
throw null;
}
i = R.drawable.facetec_review;
}
j = (g + 33) % 128;
return i;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int d(Context context) {
int i = j + 35;
g = i % 128;
if (i % 2 == 0) {
return d(context, bX());
}
d(context, bX());
throw new ArithmeticException();
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int a(Context context) {
int i = j + 61;
g = i % 128;
if (i % 2 != 0) {
d(context, bU());
throw null;
}
int d2 = d(context, bU());
int i2 = j + 47;
g = i2 % 128;
if (i2 % 2 == 0) {
return d2;
}
throw new ArithmeticException();
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int i(Context context) {
int i = g + 117;
j = i % 128;
if (i % 2 == 0) {
d(context, bD());
throw null;
}
int d2 = d(context, bD());
int i2 = j + 93;
g = i2 % 128;
if (i2 % 2 == 0) {
return d2;
}
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static void e(View view) {
g = (j + 113) % 128;
int bA = bA();
int i = AnonymousClass4.a[a(view.getContext(), bA).ordinal()];
if (i == 1) {
view.setBackgroundResource(bA);
g = (j + 3) % 128;
} else if (i == 2) {
view.setBackgroundColor(bA);
}
}
private static int v(Context context) {
int i = j + 41;
g = i % 128;
if (i % 2 != 0) {
d(context, by());
throw null;
}
int d2 = d(context, by());
int i2 = g + 89;
j = i2 % 128;
if (i2 % 2 != 0) {
return d2;
}
throw new ArithmeticException();
}
/* JADX INFO: Access modifiers changed from: package-private */
public static void b(TextView textView) {
j = (g + 109) % 128;
textView.getContext();
a(textView, by());
int i = j + 63;
g = i % 128;
if (i % 2 != 0) {
throw null;
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int j(Context context) {
int i = g + 99;
j = i % 128;
if (i % 2 != 0) {
int d2 = d(context, bw());
if (d2 == 0) {
g = (j + 115) % 128;
d2 = v(context);
}
int i2 = g + 15;
j = i2 % 128;
if (i2 % 2 != 0) {
return d2;
}
throw null;
}
d(context, bw());
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int g(Context context) {
int i = g + 19;
j = i % 128;
if (i % 2 != 0) {
int d2 = d(context, bv());
if (d2 != 0) {
return d2;
}
int v = v(context);
j = (g + 89) % 128;
return v;
}
d(context, bv());
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int f(Context context) {
g = (j + 67) % 128;
int d2 = d(context, bz());
if (d2 == 0) {
j = (g + 17) % 128;
d2 = v(context);
}
int i = g + 37;
j = i % 128;
if (i % 2 != 0) {
return d2;
}
throw new ArithmeticException();
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int h(Context context) {
int i = g + 17;
j = i % 128;
if (i % 2 != 0) {
int d2 = d(context, bC());
if (d2 != 0) {
return d2;
}
int i2 = g + 85;
j = i2 % 128;
if (i2 % 2 != 0) {
return v(context);
}
v(context);
throw null;
}
d(context, bC());
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static void a(View view) {
j = (g + 13) % 128;
int P = P();
int i = AnonymousClass4.a[a(view.getContext(), P).ordinal()];
if (i == 1) {
view.setBackgroundColor(nMh.getColor(view.getContext(), P));
int i2 = j + 71;
g = i2 % 128;
if (i2 % 2 != 0) {
throw new ArithmeticException();
}
return;
}
if (i != 2) {
view.setBackgroundColor(0);
int i3 = j + 7;
g = i3 % 128;
if (i3 % 2 != 0) {
throw new ArithmeticException();
}
return;
}
view.setBackgroundColor(P);
int i4 = j + 97;
g = i4 % 128;
if (i4 % 2 != 0) {
throw null;
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public static void c(View view) {
int i = j + 101;
g = i % 128;
if (i % 2 == 0) {
int J = J();
int i2 = AnonymousClass4.a[a(view.getContext(), J).ordinal()];
if (i2 == 1) {
view.setBackgroundResource(J);
j = (g + 119) % 128;
return;
} else if (i2 == 2) {
view.setBackgroundColor(J);
return;
} else {
view.setBackgroundColor(0);
return;
}
}
int i3 = AnonymousClass4.a[a(view.getContext(), J()).ordinal()];
throw new ArithmeticException();
}
/* JADX INFO: Access modifiers changed from: package-private */
public static void b(View view) {
int bP = bP();
int i = AnonymousClass4.a[a(view.getContext(), bP).ordinal()];
if (i == 1) {
view.setBackgroundResource(bP);
j = (g + 21) % 128;
} else if (i == 2) {
view.setBackgroundColor(bP);
g = (j + 69) % 128;
} else {
view.setBackgroundColor(0);
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public static void d(View view) {
int i = j + 73;
g = i % 128;
if (i % 2 == 0) {
int bq = bq();
int i2 = AnonymousClass4.a[a(view.getContext(), bq).ordinal()];
if (i2 != 1) {
if (i2 == 2) {
view.setBackgroundColor(bq);
return;
} else {
view.setBackgroundColor(0);
return;
}
}
view.setBackgroundResource(bq);
int i3 = g + 9;
j = i3 % 128;
if (i3 % 2 == 0) {
throw null;
}
return;
}
int i4 = AnonymousClass4.a[a(view.getContext(), bq()).ordinal()];
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int n(Context context) {
int d2;
int i;
int i2 = j + 25;
g = i2 % 128;
if (i2 % 2 != 0) {
d2 = d(context, bB());
i = 19296;
} else {
d2 = d(context, bB());
i = 255;
}
int b2 = b(d2, i);
int i3 = j + 119;
g = i3 % 128;
if (i3 % 2 == 0) {
return b2;
}
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int k(Context context) {
g = (j + 77) % 128;
int d2 = d(context, bE());
j = (g + 5) % 128;
return d2;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int l(Context context) {
j = (g + 13) % 128;
int b2 = b(d(context, bA()), 255);
j = (g + 29) % 128;
return b2;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int m(Context context) {
j = (g + 57) % 128;
int d2 = d(context, bH());
j = (g + 123) % 128;
return d2;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int o(Context context) {
int i = g + 93;
j = i % 128;
if (i % 2 != 0) {
return d(context, bF());
}
d(context, bF());
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int q(Context context) {
j = (g + 99) % 128;
int d2 = d(context, bK());
j = (g + 115) % 128;
return d2;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int r(Context context) {
int i = g + 29;
j = i % 128;
if (i % 2 == 0) {
d(context, bM());
throw new ArithmeticException();
}
int d2 = d(context, bM());
int i2 = g + 39;
j = i2 % 128;
if (i2 % 2 != 0) {
return d2;
}
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int t(Context context) {
int i = g + 77;
j = i % 128;
if (i % 2 == 0) {
d(context, bJ());
throw new ArithmeticException();
}
int d2 = d(context, bJ());
int i2 = g + 89;
j = i2 % 128;
if (i2 % 2 != 0) {
return d2;
}
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int p(Context context) {
int i = j + 109;
g = i % 128;
if (i % 2 == 0) {
return d(context, bG());
}
d(context, bG());
throw new ArithmeticException();
}
/* JADX INFO: Access modifiers changed from: package-private */
public static Drawable s(Context context) {
j = (g + 35) % 128;
int J = J();
if (AnonymousClass4.a[a(context, J).ordinal()] == 1) {
if (nMh.getDrawable(context, J) == null) {
GradientDrawable gradientDrawable = new GradientDrawable();
gradientDrawable.setColor(b(nMh.getColor(context, J), 255));
return gradientDrawable;
}
g = (j + 63) % 128;
Drawable mutate = nMh.getDrawable(context, J).mutate();
if (!(!(mutate instanceof ShapeDrawable))) {
((ShapeDrawable) mutate).getPaint().setAlpha(255);
return mutate;
}
if (mutate instanceof GradientDrawable) {
return e(context, (GradientDrawable) mutate);
}
if (mutate instanceof ColorDrawable) {
mutate.setAlpha(255);
int i = j + 69;
g = i % 128;
if (i % 2 == 0) {
return mutate;
}
throw new ArithmeticException();
}
}
GradientDrawable gradientDrawable2 = new GradientDrawable();
gradientDrawable2.setColor(b(J, 255));
return gradientDrawable2;
}
private static GradientDrawable e(Context context, GradientDrawable gradientDrawable) {
g = (j + 47) % 128;
int[] colors = gradientDrawable.getColors();
if (colors != null) {
for (int i = 0; i < colors.length; i++) {
g = (j + 23) % 128;
int i2 = AnonymousClass4.a[a(context, colors[i]).ordinal()];
if (i2 == 1) {
colors[i] = b(nMh.getColor(context, colors[i]), 255);
} else if (i2 == 2) {
colors[i] = b(colors[i], 255);
}
}
}
gradientDrawable.setColors(colors);
j = (g + 65) % 128;
return gradientDrawable;
}
private static int e(Context context, int[] iArr) {
int i;
if (iArr == null) {
int i2 = j + 5;
g = i2 % 128;
if (i2 % 2 == 0) {
return 255;
}
throw null;
}
j = (g + 61) % 128;
int length = iArr.length;
int i3 = 0;
while (i < length) {
int i4 = iArr[i];
int i5 = AnonymousClass4.a[a(context, i4).ordinal()];
if (i5 != 1) {
i = i5 != 2 ? i + 1 : 0;
} else {
i4 = nMh.getColor(context, i4);
}
i3 += i4 >>> 24;
}
int length2 = i3 / iArr.length;
int i6 = g + 27;
j = i6 % 128;
if (i6 % 2 != 0) {
return length2;
}
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int c(Context context, int i) {
int i2 = AnonymousClass4.a[a(context, i).ordinal()];
if (i2 != 1) {
if (i2 != 2) {
return 255;
}
return i >>> 24;
}
Drawable drawable = nMh.getDrawable(context, i);
if (drawable != null) {
int i3 = g;
j = (i3 + 89) % 128;
if (drawable instanceof ShapeDrawable) {
return ((ShapeDrawable) drawable).getPaint().getAlpha();
}
if (!(drawable instanceof GradientDrawable)) {
if (drawable instanceof ColorDrawable) {
return drawable.getAlpha();
}
return 255;
}
int i4 = i3 + 11;
j = i4 % 128;
if (i4 % 2 != 0) {
return e(context, ((GradientDrawable) drawable).getColors());
}
e(context, ((GradientDrawable) drawable).getColors());
throw new ArithmeticException();
}
return 255 & (nMh.getColor(context, i) >> 24);
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int aU() {
int i = j;
g = (i + 103) % 128;
int i2 = i + 79;
g = i2 % 128;
if (i2 % 2 == 0) {
return 255;
}
throw new ArithmeticException();
}
/* JADX INFO: Access modifiers changed from: package-private */
public static void a(Drawable drawable, int i) {
if (!(drawable instanceof GradientDrawable)) {
if (drawable instanceof ColorDrawable) {
((ColorDrawable) drawable).setColor(i);
return;
}
if (drawable instanceof ShapeDrawable) {
int i2 = j + 33;
g = i2 % 128;
((ShapeDrawable) drawable).getPaint().setColor(i);
if (i2 % 2 != 0) {
throw new ArithmeticException();
}
return;
}
return;
}
g = (j + 19) % 128;
((GradientDrawable) drawable).setColor(i);
}
private static void d(View view, int i) {
int i2 = AnonymousClass4.a[a(view.getContext(), i).ordinal()];
if (i2 != 1) {
if (i2 == 2) {
view.setBackgroundColor(b(i, 255));
return;
}
return;
}
if (nMh.getDrawable(view.getContext(), i) == null) {
view.setBackgroundColor(b(nMh.getColor(view.getContext(), i), 255));
return;
}
Drawable mutate = nMh.getDrawable(view.getContext(), i).mutate();
if (mutate instanceof ShapeDrawable) {
g = (j + 39) % 128;
((ShapeDrawable) mutate).getPaint().setAlpha(255);
j = (g + 43) % 128;
} else if (mutate instanceof GradientDrawable) {
g = (j + 123) % 128;
mutate = e(view.getContext(), (GradientDrawable) mutate);
} else if (mutate instanceof ColorDrawable) {
int i3 = j + 83;
g = i3 % 128;
if (i3 % 2 != 0) {
mutate.setAlpha(18616);
} else {
mutate.setAlpha(255);
}
}
view.setBackground(mutate);
}
/* JADX INFO: Access modifiers changed from: package-private */
public static void f(View view) {
int i = g + 113;
j = i % 128;
if (i % 2 == 0) {
d(view, bx());
throw null;
}
d(view, bx());
int i2 = g + 15;
j = i2 % 128;
if (i2 % 2 == 0) {
throw new ArithmeticException();
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public static void e(TextView textView) {
int i = g + 113;
j = i % 128;
if (i % 2 != 0) {
a(textView, M());
g = (j + 1) % 128;
} else {
a(textView, M());
throw null;
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public static void b(ProgressBar progressBar, Drawable drawable) {
j = (g + 11) % 128;
int bI = bI();
int i = AnonymousClass4.a[a(progressBar.getContext(), bI).ordinal()];
if (i == 1) {
((GradientDrawable) drawable).setColor(nMh.getColor(progressBar.getContext(), bI));
return;
}
if (i == 2) {
((GradientDrawable) drawable).setColor(bI);
}
int i2 = j + 113;
g = i2 % 128;
if (i2 % 2 != 0) {
throw new ArithmeticException();
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public static void d(ProgressBar progressBar, Drawable drawable, Drawable drawable2) {
j = (g + 43) % 128;
int bO = bO();
int i = AnonymousClass4.a[a(progressBar.getContext(), bO).ordinal()];
if (i != 1) {
if (i == 2) {
((GradientDrawable) drawable).setColor(bO);
((GradientDrawable) drawable2).setColor(a(bO, 0.5f));
g = (j + 103) % 128;
return;
}
return;
}
((GradientDrawable) drawable).setColor(nMh.getColor(progressBar.getContext(), bO));
((GradientDrawable) drawable2).setColor(a(nMh.getColor(progressBar.getContext(), bO), 0.5f));
int i2 = j + 93;
g = i2 % 128;
if (i2 % 2 != 0) {
throw null;
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public static void d(TextView textView) {
g = (j + 83) % 128;
a(textView, bN());
g = (j + 95) % 128;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static void h(View view) {
int i = g + 89;
j = i % 128;
if (i % 2 != 0) {
d(view, bR());
} else {
d(view, bR());
throw null;
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public static void a(TextView textView) {
int i = g + 59;
j = i % 128;
if (i % 2 != 0) {
a(textView, bS());
} else {
a(textView, bS());
throw null;
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public static void c(TextView textView) {
j = (g + 7) % 128;
a(textView, bT());
g = (j + 49) % 128;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static void h(TextView textView) {
int i = j + 31;
g = i % 128;
if (i % 2 == 0) {
a(textView, bV());
} else {
a(textView, bV());
throw null;
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public static void i(TextView textView) {
int i = g + 35;
j = i % 128;
if (i % 2 != 0) {
a(textView, bW());
} else {
a(textView, bW());
throw null;
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public static void a(TextView textView, int i) {
int i2 = g + 109;
j = i2 % 128;
if (i2 % 2 != 0) {
int i3 = AnonymousClass4.a[a(textView.getContext(), i).ordinal()];
if (i3 == 1) {
textView.setTextColor(nMh.getColor(textView.getContext(), i));
return;
}
if (i3 == 2) {
textView.setTextColor(i);
}
int i4 = j + 39;
g = i4 % 128;
if (i4 % 2 != 0) {
throw null;
}
return;
}
int i5 = AnonymousClass4.a[a(textView.getContext(), i).ordinal()];
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static void c(Drawable drawable, int i) {
if (drawable instanceof ShapeDrawable) {
((ShapeDrawable) drawable).getPaint().setColor(i);
return;
}
if (drawable instanceof GradientDrawable) {
((GradientDrawable) drawable).setColor(i);
int i2 = g + 41;
j = i2 % 128;
if (i2 % 2 == 0) {
throw new ArithmeticException();
}
return;
}
if (drawable instanceof ColorDrawable) {
g = (j + 13) % 128;
((ColorDrawable) drawable).setColor(i);
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public static void b(Drawable drawable, int i, int i2, double d2) {
if (drawable instanceof GradientDrawable) {
j = (g + 119) % 128;
GradientDrawable gradientDrawable = (GradientDrawable) drawable;
gradientDrawable.setStroke(i2, i);
gradientDrawable.setCornerRadius((float) d2);
j = (g + 25) % 128;
}
g = (j + 45) % 128;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static void a(Context context, TextView textView, Drawable drawable, int i) {
int i2 = g + 107;
j = i2 % 128;
if (i2 % 2 == 0) {
int i3 = AnonymousClass4.a[a(textView.getContext(), i).ordinal()];
throw null;
}
int i4 = AnonymousClass4.a[a(textView.getContext(), i).ordinal()];
if (i4 == 1) {
if (drawable instanceof ShapeDrawable) {
j = (g + 111) % 128;
((ShapeDrawable) drawable).getPaint().setColor(nMh.getColor(context, i));
return;
}
if (drawable instanceof GradientDrawable) {
((GradientDrawable) drawable).setColor(nMh.getColor(context, i));
return;
}
if (drawable instanceof ColorDrawable) {
int i5 = g + 9;
j = i5 % 128;
if (i5 % 2 != 0) {
((ColorDrawable) drawable).setColor(nMh.getColor(context, i));
return;
} else {
((ColorDrawable) drawable).setColor(nMh.getColor(context, i));
throw null;
}
}
return;
}
if (i4 == 2) {
if (drawable instanceof ShapeDrawable) {
((ShapeDrawable) drawable).getPaint().setColor(i);
return;
}
if (!(!(drawable instanceof GradientDrawable))) {
j = (g + 5) % 128;
((GradientDrawable) drawable).setColor(i);
int i6 = g + 57;
j = i6 % 128;
if (i6 % 2 == 0) {
throw null;
}
return;
}
if (drawable instanceof ColorDrawable) {
int i7 = g + 1;
j = i7 % 128;
((ColorDrawable) drawable).setColor(i);
if (i7 % 2 == 0) {
throw new ArithmeticException();
}
}
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public static void c(Context context, TextView textView, Drawable drawable, int i, int i2, double d2) {
int i3 = AnonymousClass4.a[a(textView.getContext(), i).ordinal()];
if (i3 == 1) {
if (!(drawable instanceof GradientDrawable)) {
return;
}
GradientDrawable gradientDrawable = (GradientDrawable) drawable;
gradientDrawable.setStroke(i2, nMh.getColor(context, i));
gradientDrawable.setCornerRadius((float) d2);
int i4 = j + 81;
g = i4 % 128;
if (i4 % 2 != 0) {
throw new ArithmeticException();
}
return;
}
if (i3 == 2 && (drawable instanceof GradientDrawable)) {
int i5 = j + 27;
g = i5 % 128;
if (i5 % 2 == 0) {
GradientDrawable gradientDrawable2 = (GradientDrawable) drawable;
gradientDrawable2.setStroke(i2, i);
gradientDrawable2.setCornerRadius((float) d2);
} else {
GradientDrawable gradientDrawable3 = (GradientDrawable) drawable;
gradientDrawable3.setStroke(i2, i);
gradientDrawable3.setCornerRadius((float) d2);
throw null;
}
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public static void c(Button button, int i) {
int i2 = g + 65;
j = i2 % 128;
button.setTextColor(i);
if (i2 % 2 == 0) {
throw null;
}
g = (j + 89) % 128;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static void d(Context context, Drawable drawable, int i) {
g = (j + 23) % 128;
int i2 = AnonymousClass4.a[a(context, i).ordinal()];
if (i2 == 1) {
if (drawable instanceof GradientDrawable) {
((GradientDrawable) drawable).setColor(nMh.getColor(context, i));
}
} else if (i2 == 2 && (drawable instanceof GradientDrawable)) {
g = (j + 121) % 128;
((GradientDrawable) drawable).setColor(i);
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public static GradientDrawable u(Context context) {
GradientDrawable gradientDrawable = new GradientDrawable();
int bL = bL();
int i = AnonymousClass4.a[a(context, bL).ordinal()];
if (i != 1) {
if (i == 2) {
gradientDrawable.setColor(bL);
g = (j + 89) % 128;
}
} else if (nMh.getDrawable(context, bL) instanceof GradientDrawable) {
gradientDrawable = (GradientDrawable) nMh.getDrawable(context, bL);
} else {
gradientDrawable.setColor(nMh.getColor(context, bL));
}
if (gradientDrawable != null) {
gradientDrawable.setCornerRadius(av.b((int) (br() * d())));
g = (j + 17) % 128;
}
return gradientDrawable;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int a(int i, float f2) {
int i2 = j + 35;
g = i2 % 128;
return Color.argb(Math.round(i2 % 2 != 0 ? Color.alpha(i) % f2 : Color.alpha(i) * f2), Color.red(i), Color.green(i), Color.blue(i));
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int b(int i, int i2) {
g = (j + 35) % 128;
int argb = Color.argb(i2, Color.red(i), Color.green(i), Color.blue(i));
int i3 = g + 31;
j = i3 % 128;
if (i3 % 2 != 0) {
return argb;
}
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static void d(TextView textView, String str) {
j = (g + 13) % 128;
String replace = str.replace("\n", "<br/>");
g = (j + 29) % 128;
textView.setText(Html.fromHtml(replace, 63));
}
/* JADX INFO: Access modifiers changed from: package-private */
public static String a(boolean z, boolean z2) {
int i = j + 119;
g = i % 128;
if (i % 2 != 0) {
String str = FaceTecSDK.c.f.readyScreenHeaderAttributedString;
throw new ArithmeticException();
}
String str2 = FaceTecSDK.c.f.readyScreenHeaderAttributedString;
if (!str2.isEmpty() && str2.contains("\n")) {
str2 = str2.substring(0, str2.indexOf("\n"));
}
if (!z2 && str2.isEmpty()) {
g = (j + 109) % 128;
str2 = cx.d(R.string.FaceTec_instructions_header_ready_1);
if (!(!str2.contains("\n"))) {
j = (g + 25) % 128;
str2 = str2.substring(0, str2.indexOf("\n"));
}
}
if (!z) {
return str2;
}
int i2 = g + 117;
j = i2 % 128;
if (i2 % 2 == 0) {
boolean z3 = FaceTecSDK.c.c;
throw new ArithmeticException();
}
if (FaceTecSDK.c.c || str2.length() <= 30) {
return str2;
}
int i3 = g + 61;
j = i3 % 128;
String substring = i3 % 2 == 0 ? str2.substring(1, 12) : str2.substring(0, 30);
g = (j + 35) % 128;
return substring;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static String c(boolean z, boolean z2) {
g = (j + 91) % 128;
String str = FaceTecSDK.c.f.readyScreenHeaderAttributedString;
if (!str.isEmpty()) {
int i = j + 71;
g = i % 128;
if (i % 2 != 0) {
str.contains("\n");
throw new ArithmeticException();
}
if (str.contains("\n")) {
int i2 = g + 61;
j = i2 % 128;
str = str.substring(i2 % 2 == 0 ? 0 : str.indexOf("\n") + 1);
}
}
if (!z2 && str.isEmpty()) {
str = cx.d(R.string.FaceTec_instructions_header_ready_2);
if (str.contains("\n")) {
str = str.substring(str.indexOf("\n") + 1);
g = (j + 97) % 128;
}
}
if (!z || FaceTecSDK.c.c) {
return str;
}
j = (g + 47) % 128;
if (str.length() <= 30) {
return str;
}
int i3 = j;
g = (i3 + 51) % 128;
g = (i3 + 117) % 128;
return str.substring(0, 30);
}
/* JADX INFO: Access modifiers changed from: package-private */
public static String b(boolean z, boolean z2) {
int i = j + 117;
g = i % 128;
if (i % 2 != 0) {
String str = FaceTecSDK.c.f.readyScreenSubtextAttributedString;
throw null;
}
String str2 = FaceTecSDK.c.f.readyScreenSubtextAttributedString;
if (!str2.isEmpty()) {
g = (j + 3) % 128;
if (str2.contains("\n")) {
str2 = str2.substring(0, str2.indexOf("\n"));
}
}
if ((!z2) && str2.isEmpty()) {
str2 = cx.d(R.string.FaceTec_instructions_message_ready_1);
if (str2.contains("\n")) {
str2 = str2.substring(0, str2.indexOf("\n"));
j = (g + 65) % 128;
}
}
if (!z || FaceTecSDK.c.c || str2.length() <= 50) {
return str2;
}
j = (g + 11) % 128;
return str2.substring(0, 50);
}
/* JADX INFO: Access modifiers changed from: package-private */
public static String e(boolean z, boolean z2) {
String str = FaceTecSDK.c.f.readyScreenSubtextAttributedString;
if (!str.isEmpty()) {
g = (j + 121) % 128;
if (str.contains("\n")) {
str = str.substring(str.indexOf("\n") + 1);
}
}
if (!z2 && str.isEmpty()) {
str = cx.d(R.string.FaceTec_instructions_message_ready_2);
if (str.contains("\n")) {
str = str.substring(str.indexOf("\n") + 1);
}
}
if (!z) {
return str;
}
int i = g + 117;
j = i % 128;
if (i % 2 == 0) {
boolean z3 = FaceTecSDK.c.c;
throw new ArithmeticException();
}
if (FaceTecSDK.c.c) {
return str;
}
j = (g + 25) % 128;
return str.length() > 50 ? str.substring(0, 50) : str;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static String d(boolean z, boolean z2) {
String str = FaceTecSDK.c.f.retryScreenHeaderAttributedString;
if (!z2 && str.isEmpty()) {
g = (j + 123) % 128;
str = cx.d(R.string.FaceTec_retry_header);
}
if (!z) {
return str;
}
int i = j + 49;
g = i % 128;
if (i % 2 != 0) {
boolean z3 = FaceTecSDK.c.c;
throw null;
}
if (!(!FaceTecSDK.c.c) || str.length() <= 30) {
return str;
}
int i2 = j + 63;
g = i2 % 128;
return i2 % 2 != 0 ? str.substring(0, 125) : str.substring(0, 30);
}
/* JADX INFO: Access modifiers changed from: package-private */
public static String j(boolean z, boolean z2) {
int i = g + 31;
j = i % 128;
if (i % 2 != 0) {
String str = FaceTecSDK.c.f.retryScreenSubtextAttributedString;
if (!z2 && str.isEmpty()) {
str = cx.d(R.string.FaceTec_retry_subheader_message);
}
if (z && !FaceTecSDK.c.c) {
int i2 = j + 119;
g = i2 % 128;
if (i2 % 2 == 0 ? str.length() > 40 : str.length() > 62) {
str = str.substring(0, 40);
}
}
g = (j + 63) % 128;
return str;
}
String str2 = FaceTecSDK.c.f.retryScreenSubtextAttributedString;
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static String a(boolean z) {
String d2 = cx.d(R.string.FaceTec_retry_instruction_message_1);
if (!(!z)) {
j = (g + 47) % 128;
if (!FaceTecSDK.c.c && d2.length() > 40) {
int i = j;
g = (i + 111) % 128;
g = (i + 29) % 128;
d2 = d2.substring(0, 40);
}
}
int i2 = j + 21;
g = i2 % 128;
if (i2 % 2 == 0) {
return d2;
}
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static String d(boolean z) {
String d2 = cx.d(R.string.FaceTec_retry_instruction_message_2);
if (!(!z) && !FaceTecSDK.c.c && d2.length() > 40) {
int i = g;
j = (i + 29) % 128;
int i2 = i + 31;
j = i2 % 128;
d2 = i2 % 2 == 0 ? d2.substring(1, 72) : d2.substring(0, 40);
}
j = (g + 113) % 128;
return d2;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static String c(boolean z) {
String d2 = cx.d(R.string.FaceTec_retry_instruction_message_3);
if (z) {
int i = j + 43;
g = i % 128;
if (i % 2 != 0) {
boolean z2 = FaceTecSDK.c.c;
throw null;
}
if ((!FaceTecSDK.c.c) && d2.length() > 40) {
int i2 = j + 113;
g = i2 % 128;
d2 = i2 % 2 != 0 ? d2.substring(1, 126) : d2.substring(0, 40);
g = (j + 117) % 128;
return d2;
}
}
j = (g + 17) % 128;
g = (j + 117) % 128;
return d2;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static String e(boolean z) {
String d2 = cx.d(R.string.FaceTec_retry_ideal_image_label);
if (!z) {
return d2;
}
int i = j + 125;
g = i % 128;
if (i % 2 == 0) {
if (FaceTecSDK.c.c || d2.length() <= 20) {
return d2;
}
int i2 = j;
g = (i2 + 105) % 128;
g = (i2 + 101) % 128;
return d2.substring(0, 20);
}
boolean z2 = FaceTecSDK.c.c;
throw new ArithmeticException();
}
/* JADX INFO: Access modifiers changed from: package-private */
public static String b(boolean z) {
int i = j + 121;
g = i % 128;
if (i % 2 != 0) {
cx.d(R.string.FaceTec_retry_your_image_label);
throw null;
}
String d2 = cx.d(R.string.FaceTec_retry_your_image_label);
if (z) {
g = (j + 11) % 128;
if ((!FaceTecSDK.c.c) && d2.length() > 20) {
j = (g + 105) % 128;
d2 = d2.substring(0, 20);
}
}
g = (j + 47) % 128;
return d2;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int aS() {
int i = g + 73;
j = i % 128;
if (i % 2 != 0) {
return bm().h.additionalReviewScreenAnimation;
}
int i2 = bm().h.additionalReviewScreenAnimation;
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int aV() {
int i = j + 3;
g = i % 128;
if (i % 2 == 0) {
return bm().h.additionalReviewScreenStaticAnimation;
}
int i2 = bm().h.additionalReviewScreenStaticAnimation;
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int aY() {
int i = g + 81;
j = i % 128;
if (i % 2 == 0) {
int i2 = bm().h.customNFCStartingAnimation;
throw null;
}
int i3 = bm().h.customNFCStartingAnimation;
g = (j + 59) % 128;
return i3;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int aZ() {
int i = j + 35;
g = i % 128;
if (i % 2 == 0) {
return bm().h.customNFCScanningAnimation;
}
int i2 = bm().h.customNFCScanningAnimation;
throw new ArithmeticException();
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int aX() {
int i = j + 115;
g = i % 128;
if (i % 2 != 0) {
int i2 = bm().h.customNFCCardStartingAnimation;
throw new ArithmeticException();
}
int i3 = bm().h.customNFCCardStartingAnimation;
g = (j + 53) % 128;
return i3;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int ba() {
g = (j + 83) % 128;
int i = bm().h.customNFCCardScanningAnimation;
int i2 = g + 123;
j = i2 % 128;
if (i2 % 2 != 0) {
return i;
}
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int aW() {
int i = j + 51;
g = i % 128;
if (i % 2 != 0) {
int i2 = bm().h.customNFCSkipOrErrorAnimation;
throw null;
}
int i3 = bm().h.customNFCSkipOrErrorAnimation;
g = (j + 65) % 128;
return i3;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int bf() {
g = (j + 47) % 128;
int i = bm().h.customStaticNFCStartingAnimation;
g = (j + 47) % 128;
return i;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int be() {
j = (g + 25) % 128;
int i = bm().h.customStaticNFCScanningAnimation;
g = (j + 43) % 128;
return i;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int bb() {
int i = g + 41;
j = i % 128;
if (i % 2 == 0) {
int i2 = bm().h.customStaticNFCSkipOrErrorAnimation;
throw null;
}
int i3 = bm().h.customStaticNFCSkipOrErrorAnimation;
int i4 = j + 27;
g = i4 % 128;
if (i4 % 2 == 0) {
return i3;
}
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int bc() {
int i = g + 81;
j = i % 128;
if (i % 2 != 0) {
return bm().j.customActivityIndicatorAnimation;
}
int i2 = bm().j.customActivityIndicatorAnimation;
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int bd() {
g = (j + 39) % 128;
int i = bm().j.customResultAnimationSuccess;
g = (j + 123) % 128;
return i;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int bk() {
g = (j + 43) % 128;
int i = bm().j.customResultAnimationUnsuccess;
int i2 = g + 21;
j = i2 % 128;
if (i2 % 2 != 0) {
return i;
}
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int bi() {
int i = j + 59;
g = i % 128;
if (i % 2 != 0) {
int i2 = bm().j.customStaticResultAnimationSuccess;
throw null;
}
int i3 = bm().j.customStaticResultAnimationSuccess;
j = (g + 37) % 128;
return i3;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int bh() {
int i = j + 15;
g = i % 128;
if (i % 2 != 0) {
int i2 = bm().j.customStaticResultAnimationUnsuccess;
throw null;
}
int i3 = bm().j.customStaticResultAnimationUnsuccess;
j = (g + 41) % 128;
return i3;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static float bj() {
float max;
float f2;
int i = g + 23;
j = i % 128;
if (i % 2 == 0) {
max = Math.max(FaceTecSDK.c.j.animationRelativeScale, 0.5f);
f2 = BitmapDescriptorFactory.HUE_RED;
} else {
max = Math.max(FaceTecSDK.c.j.animationRelativeScale, 0.5f);
f2 = 2.0f;
}
float min = Math.min(max, f2);
int i2 = j + 3;
g = i2 % 128;
if (i2 % 2 == 0) {
return min;
}
throw new ArithmeticException();
}
/* JADX INFO: Access modifiers changed from: package-private */
public static String d(cm cmVar) {
String str;
HashMap<cm, String> hashMap = FaceTecCustomization.r;
if (hashMap != null) {
j = (g + 67) % 128;
str = hashMap.get(cmVar);
} else {
str = null;
}
if (str != null) {
return str;
}
switch (AnonymousClass4.c[cmVar.ordinal()]) {
case 1:
return cx.d(R.string.FaceTec_result_idscan_unsuccess_message);
case 2:
return cx.d(R.string.FaceTec_result_idscan_retry_face_did_not_match_message);
case 3:
return cx.d(R.string.FaceTec_result_idscan_retry_id_not_fully_visible_message);
case 4:
return cx.d(R.string.FaceTec_result_idscan_retry_ocr_results_not_good_enough_message);
case 5:
return cx.d(R.string.FaceTec_result_idscan_retry_id_type_not_supported_message);
case 6:
return cx.d(R.string.FaceTec_result_idscan_retry_barcode_not_read_message);
case 7:
j = (g + 71) % 128;
return str;
case 8:
return cx.d(R.string.FaceTec_result_idscan_skip_or_error_nfc_message);
case 9:
return cx.d(R.string.FaceTec_result_idscan_success_front_side_message);
case 10:
return cx.d(R.string.FaceTec_result_idscan_success_front_side_back_next_message);
case 11:
return cx.d(R.string.FaceTec_result_idscan_success_front_side_nfc_next_message);
case 12:
return cx.d(R.string.FaceTec_result_idscan_success_back_side_message);
case 13:
return cx.d(R.string.FaceTec_result_idscan_success_back_side_nfc_next_message);
case 14:
return cx.d(R.string.FaceTec_result_idscan_success_passport_message);
case 15:
return cx.d(R.string.FaceTec_result_idscan_success_passport_nfc_next_message);
case 16:
return cx.d(R.string.FaceTec_result_idscan_success_user_confirmation_message);
case 17:
return cx.d(R.string.FaceTec_result_idscan_success_nfc_message);
case 18:
String d2 = cx.d(R.string.FaceTec_result_idscan_success_additional_review_message);
g = (j + 77) % 128;
return d2;
default:
return str;
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public static String e(dd ddVar) {
j = (g + 125) % 128;
String str = FaceTecCustomization.s != null ? FaceTecCustomization.s.get(ddVar) : null;
g = (j + 99) % 128;
return str;
}
/* JADX INFO: Access modifiers changed from: package-private */
/* renamed from: com.facetec.sdk.db$4, reason: invalid class name */
/* loaded from: classes.dex */
public static final /* synthetic */ class AnonymousClass4 {
static final int[] a;
static final int[] b;
static final int[] c;
static {
int[] iArr = new int[bw.values().length];
b = iArr;
try {
iArr[bw.UNKNOWN.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
b[bw.STARTING.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
b[bw.SCANNING.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
try {
b[bw.WEAK_CONNECTION.ordinal()] = 4;
} catch (NoSuchFieldError unused4) {
}
try {
b[bw.FINISHED_WITH_SUCCESS.ordinal()] = 5;
} catch (NoSuchFieldError unused5) {
}
try {
b[bw.FINISHED_WITH_ERROR.ordinal()] = 6;
} catch (NoSuchFieldError unused6) {
}
try {
b[bw.SKIPPED.ordinal()] = 7;
} catch (NoSuchFieldError unused7) {
}
try {
b[bw.DISABLED.ordinal()] = 8;
} catch (NoSuchFieldError unused8) {
}
int[] iArr2 = new int[cm.values().length];
c = iArr2;
try {
iArr2[cm.UNKNOWN.ordinal()] = 1;
} catch (NoSuchFieldError unused9) {
}
try {
c[cm.IDSCAN_RETRY_FACE_DID_NOT_MATCH.ordinal()] = 2;
} catch (NoSuchFieldError unused10) {
}
try {
c[cm.IDSCAN_RETRY_ID_NOT_FULLY_VISIBLE.ordinal()] = 3;
} catch (NoSuchFieldError unused11) {
}
try {
c[cm.IDSCAN_RETRY_OCR_RESULTS_NOT_GOOD_ENOUGH.ordinal()] = 4;
} catch (NoSuchFieldError unused12) {
}
try {
c[cm.IDSCAN_RETRY_ID_TYPE_NOT_SUPPORTED.ordinal()] = 5;
} catch (NoSuchFieldError unused13) {
}
try {
c[cm.IDSCAN_RETRY_BARCODE_NOT_READ.ordinal()] = 6;
} catch (NoSuchFieldError unused14) {
}
try {
c[cm.IDSCAN_RETRY_USER_CONFIRMATION.ordinal()] = 7;
} catch (NoSuchFieldError unused15) {
}
try {
c[cm.IDSCAN_SKIP_OR_ERROR_NFC.ordinal()] = 8;
} catch (NoSuchFieldError unused16) {
}
try {
c[cm.IDSCAN_SUCCESS_FRONT_SIDE.ordinal()] = 9;
} catch (NoSuchFieldError unused17) {
}
try {
c[cm.IDSCAN_SUCCESS_FRONT_SIDE_BACK_NEXT.ordinal()] = 10;
} catch (NoSuchFieldError unused18) {
}
try {
c[cm.IDSCAN_SUCCESS_FRONT_SIDE_NFC_NEXT.ordinal()] = 11;
} catch (NoSuchFieldError unused19) {
}
try {
c[cm.IDSCAN_SUCCESS_BACK_SIDE.ordinal()] = 12;
} catch (NoSuchFieldError unused20) {
}
try {
c[cm.IDSCAN_SUCCESS_BACK_SIDE_NFC_NEXT.ordinal()] = 13;
} catch (NoSuchFieldError unused21) {
}
try {
c[cm.IDSCAN_SUCCESS_PASSPORT.ordinal()] = 14;
} catch (NoSuchFieldError unused22) {
}
try {
c[cm.IDSCAN_SUCCESS_PASSPORT_NFC_NEXT.ordinal()] = 15;
} catch (NoSuchFieldError unused23) {
}
try {
c[cm.IDSCAN_SUCCESS_USER_CONFIRMATION.ordinal()] = 16;
} catch (NoSuchFieldError unused24) {
}
try {
c[cm.IDSCAN_SUCCESS_NFC.ordinal()] = 17;
} catch (NoSuchFieldError unused25) {
}
try {
c[cm.IDSCAN_SUCCESS_ADDITIONAL_REVIEW.ordinal()] = 18;
} catch (NoSuchFieldError unused26) {
}
int[] iArr3 = new int[c.values().length];
a = iArr3;
try {
iArr3[c.RESOURCE.ordinal()] = 1;
} catch (NoSuchFieldError unused27) {
}
try {
a[c.COLOR.ordinal()] = 2;
} catch (NoSuchFieldError unused28) {
}
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public static String e(bw bwVar, boolean z) {
switch (AnonymousClass4.b[bwVar.ordinal()]) {
case 1:
j = (g + 27) % 128;
return "";
case 2:
if (z) {
return cx.d(R.string.FaceTec_idscan_nfc_card_status_starting_message);
}
return cx.d(R.string.FaceTec_idscan_nfc_status_starting_message);
case 3:
return cx.d(R.string.FaceTec_idscan_nfc_status_scanning_message);
case 4:
return cx.d(R.string.FaceTec_idscan_nfc_status_weak_connection_message);
case 5:
return cx.d(R.string.FaceTec_idscan_nfc_status_finished_with_success_message);
case 6:
if (z) {
return cx.d(R.string.FaceTec_idscan_nfc_card_status_finished_with_error_message);
}
return cx.d(R.string.FaceTec_idscan_nfc_status_finished_with_error_message);
case 7:
return cx.d(R.string.FaceTec_idscan_nfc_status_skipped_message);
case 8:
String d2 = cx.d(R.string.FaceTec_idscan_nfc_status_disabled_message);
g = (j + 9) % 128;
return d2;
default:
return null;
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public static boolean bg() {
if (FaceTecSDK.c.k.b == FaceTecCancelButtonCustomization.ButtonLocation.DISABLED) {
return false;
}
j = (g + 113) % 128;
if (FaceTecSDK.c.k.b == FaceTecCancelButtonCustomization.ButtonLocation.CUSTOM) {
return false;
}
g = (j + 79) % 128;
return true;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static void bp() {
int i = g + 97;
j = i % 128;
if (i % 2 == 0) {
h(false);
f(true);
} else {
h(false);
f(false);
}
j(false);
i(false);
bY();
cc();
}
/* JADX INFO: Access modifiers changed from: package-private */
/* JADX WARN: Code restructure failed: missing block: B:11:0x002e, code lost:
a("Ready Screen Header Line 1");
com.facetec.sdk.db.g = (com.facetec.sdk.db.j + 99) % 128;
*/
/* JADX WARN: Code restructure failed: missing block: B:13:0x002c, code lost:
if (r2.length() > 30) goto L9;
*/
/* JADX WARN: Code restructure failed: missing block: B:4:0x001c, code lost:
if (r2.length() > 4) goto L9;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public static void h(boolean r3) {
/*
int r0 = com.facetec.sdk.db.g
int r0 = r0 + 41
int r1 = r0 % 128
com.facetec.sdk.db.j = r1
int r0 = r0 % 2
r1 = 30
if (r0 != 0) goto L1f
r0 = 1
java.lang.String r2 = a(r0, r3)
java.lang.String r3 = c(r0, r3)
int r0 = r2.length()
r2 = 4
if (r0 <= r2) goto L3b
goto L2e
L1f:
r0 = 0
java.lang.String r2 = a(r0, r3)
java.lang.String r3 = c(r0, r3)
int r0 = r2.length()
if (r0 <= r1) goto L3b
L2e:
java.lang.String r0 = "Ready Screen Header Line 1"
a(r0)
int r0 = com.facetec.sdk.db.j
int r0 = r0 + 99
int r0 = r0 % 128
com.facetec.sdk.db.g = r0
L3b:
int r3 = r3.length()
if (r3 <= r1) goto L46
java.lang.String r3 = "Ready Screen Header Line 2"
a(r3)
L46:
return
*/
throw new UnsupportedOperationException("Method not decompiled: com.facetec.sdk.db.h(boolean):void");
}
/* JADX INFO: Access modifiers changed from: package-private */
public static void f(boolean z) {
g = (j + 33) % 128;
String b2 = b(false, z);
String e2 = e(false, z);
if (b2.length() > 50) {
a("Ready Screen Subtext Line 1");
}
if (e2.length() > 50) {
a("Ready Screen Subtext Line 2");
}
g = (j + 45) % 128;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static void j(boolean z) {
g = (j + 17) % 128;
String d2 = d(false, z);
if (d2.length() <= 30) {
if (d2.length() > 20) {
j = (g + 121) % 128;
e("Retry Screen Header");
j = (g + 81) % 128;
}
j = (g + 89) % 128;
return;
}
g = (j + 49) % 128;
a("Retry Screen Header");
}
/* JADX INFO: Access modifiers changed from: package-private */
public static void i(boolean z) {
g = (j + 81) % 128;
if (j(false, z).length() > 40) {
j = (g + 35) % 128;
a("Retry Screen Sub-Header Message");
}
}
private static void bY() {
String a2 = a(false);
String d2 = d(false);
String c2 = c(false);
if (a2 != null) {
int i = j + 109;
g = i % 128;
if (i % 2 == 0 ? a2.length() > 40 : a2.length() > 51) {
a("Retry Screen Instruction Message 1");
}
}
if (d2 != null) {
int i2 = g + 89;
j = i2 % 128;
if (i2 % 2 != 0 ? d2.length() > 40 : d2.length() > 94) {
a("Retry Screen Instruction Message 2");
}
}
if (c2 != null) {
int i3 = g + 125;
j = i3 % 128;
if (i3 % 2 == 0) {
if (c2.length() <= 75) {
return;
}
} else if (c2.length() <= 40) {
return;
}
a("Retry Screen Instruction Message 3");
}
}
private static void cc() {
g = (j + 91) % 128;
String b2 = b(false);
String e2 = e(false);
if (b2 != null && b2.length() > 20) {
j = (g + 73) % 128;
a("Retry Screen Your Image Label");
}
if (e2 == null || e2.length() <= 20) {
return;
}
a("Retry Screen Ideal Image Label");
}
private static void e(String str) {
g = (j + 25) % 128;
ao.e(String.format(Locale.getDefault(), "Your %s text has been configured to use more than %d characters. %d or less characters is recommended for this text in order to render well on all devices and OS versions.", str, 20, 20));
g = (j + 117) % 128;
}
private static void a(String str) {
String format;
int i = g + 71;
j = i % 128;
if (i % 2 == 0) {
Locale locale = Locale.getDefault();
Object[] objArr = new Object[0];
objArr[0] = str;
format = String.format(locale, "FaceTec SDK Text Customization Alert: Your text is too long for the %s text element to render correctly on a significant portion of supported devices. Please update this text string to short, concise text, based on our default text element for optimal User Experience and Success Rates. If you continue with too many characters, the FaceTec SDK will not show the excess characters, and this will likely impact User Experience and Success Rates. These character limitations must be in place to ensure compatibility with the 1,000,000+ Device/Model/Platform/Version/Screen Size/Camera Res combinations that FaceTec supports.", objArr);
} else {
format = String.format(Locale.getDefault(), "FaceTec SDK Text Customization Alert: Your text is too long for the %s text element to render correctly on a significant portion of supported devices. Please update this text string to short, concise text, based on our default text element for optimal User Experience and Success Rates. If you continue with too many characters, the FaceTec SDK will not show the excess characters, and this will likely impact User Experience and Success Rates. These character limitations must be in place to ensure compatibility with the 1,000,000+ Device/Model/Platform/Version/Screen Size/Camera Res combinations that FaceTec supports.", str);
}
ao.e(format);
}
private static void bZ(boolean z, int[] iArr, String str, Object[] objArr) {
int length;
char[] cArr;
int i;
String str2 = str;
byte[] bArr = str2;
if (str2 != null) {
bArr = str2.getBytes(LocalizedMessage.DEFAULT_ENCODING);
}
byte[] bArr2 = bArr;
gp gpVar = new gp();
byte b2 = 0;
int i2 = iArr[0];
int i3 = 1;
int i4 = iArr[1];
int i5 = 2;
int i6 = iArr[2];
int i7 = iArr[3];
char[] cArr2 = f;
if (cArr2 != null) {
int i8 = $11 + 63;
$10 = i8 % 128;
if (i8 % 2 != 0) {
length = cArr2.length;
cArr = new char[length];
i = 1;
} else {
length = cArr2.length;
cArr = new char[length];
i = 0;
}
while (i < length) {
int i9 = $10 + 63;
$11 = i9 % 128;
if (i9 % i5 == 0) {
try {
Object[] objArr2 = new Object[i3];
objArr2[b2] = Integer.valueOf(cArr2[i]);
Object obj = bo.s.get(-344240863);
if (obj == null) {
Class cls = (Class) bo.e(988 - Gravity.getAbsoluteGravity(b2, b2), (char) TextUtils.getOffsetAfter("", b2), (ViewConfiguration.getWindowTouchSlop() >> 8) + 32);
Object[] objArr3 = new Object[1];
ca((byte) 3, b2, b2, objArr3);
obj = cls.getMethod((String) objArr3[b2], Integer.TYPE);
bo.s.put(-344240863, obj);
}
cArr[i] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
b2 = 0;
i3 = 1;
i5 = 2;
i = 0;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
} else {
try {
Object[] objArr4 = {Integer.valueOf(cArr2[i])};
Object obj2 = bo.s.get(-344240863);
if (obj2 == null) {
Class cls2 = (Class) bo.e((ViewConfiguration.getTouchSlop() >> 8) + 988, (char) ((Process.getThreadPriority(0) + 20) >> 6), 32 - (ViewConfiguration.getMaximumFlingVelocity() >> 16));
Object[] objArr5 = new Object[1];
ca((byte) 3, (byte) 0, 0, objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE);
bo.s.put(-344240863, obj2);
}
cArr[i] = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue();
i++;
b2 = 0;
i3 = 1;
i5 = 2;
} catch (Throwable th2) {
Throwable cause2 = th2.getCause();
if (cause2 == null) {
throw th2;
}
throw cause2;
}
}
}
cArr2 = cArr;
}
char[] cArr3 = new char[i4];
System.arraycopy(cArr2, i2, cArr3, 0, i4);
if (bArr2 != null) {
char[] cArr4 = new char[i4];
gpVar.a = 0;
char c2 = 0;
while (gpVar.a < i4) {
if (bArr2[gpVar.a] == 1) {
int i10 = gpVar.a;
try {
Object[] objArr6 = {Integer.valueOf(cArr3[gpVar.a]), Integer.valueOf(c2)};
Object obj3 = bo.s.get(69282466);
if (obj3 == null) {
Class cls3 = (Class) bo.e(View.MeasureSpec.getSize(0) + 1570, (char) (11060 - Gravity.getAbsoluteGravity(0, 0)), TextUtils.indexOf("", "", 0) + 23);
Object[] objArr7 = new Object[1];
ca((byte) 0, (byte) 0, 0, objArr7);
obj3 = cls3.getMethod((String) objArr7[0], Integer.TYPE, Integer.TYPE);
bo.s.put(69282466, obj3);
}
cArr4[i10] = ((Character) ((Method) obj3).invoke(null, objArr6)).charValue();
} catch (Throwable th3) {
Throwable cause3 = th3.getCause();
if (cause3 == null) {
throw th3;
}
throw cause3;
}
} else {
int i11 = gpVar.a;
try {
Object[] objArr8 = {Integer.valueOf(cArr3[gpVar.a]), Integer.valueOf(c2)};
Object obj4 = bo.s.get(-1063034112);
if (obj4 == null) {
obj4 = ((Class) bo.e((Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)) + 1876, (char) (TextUtils.indexOf((CharSequence) "", '0') + 23953), View.MeasureSpec.getSize(0) + 23)).getMethod("g", Integer.TYPE, Integer.TYPE);
bo.s.put(-1063034112, obj4);
}
cArr4[i11] = ((Character) ((Method) obj4).invoke(null, objArr8)).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(735 - (ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), (char) (CdmaCellLocation.convertQuartSecToDecDegrees(0) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(0) == 0.0d ? 0 : -1)), KeyEvent.getDeadChar(0, 0) + 32);
Object[] objArr10 = new Object[1];
ca((byte) 7, (byte) 0, 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;
}
}
$10 = ($11 + 63) % 128;
cArr3 = cArr4;
}
if (i7 > 0) {
char[] cArr5 = new char[i4];
System.arraycopy(cArr3, 0, cArr5, 0, i4);
int i12 = i4 - i7;
System.arraycopy(cArr5, 0, cArr3, i12, i7);
System.arraycopy(cArr5, i7, cArr3, 0, i12);
}
if (z) {
char[] cArr6 = new char[i4];
int i13 = 0;
while (true) {
gpVar.a = i13;
if (gpVar.a >= i4) {
break;
}
cArr6[gpVar.a] = cArr3[(i4 - gpVar.a) - 1];
i13 = gpVar.a + 1;
}
cArr3 = cArr6;
}
if (i6 > 0) {
int i14 = 0;
while (true) {
gpVar.a = i14;
if (gpVar.a >= i4) {
break;
}
$10 = ($11 + 31) % 128;
cArr3[gpVar.a] = (char) (cArr3[gpVar.a] - iArr[2]);
i14 = gpVar.a + 1;
}
}
String str3 = new String(cArr3);
$10 = ($11 + 57) % 128;
objArr[0] = str3;
}
static void init$0() {
$$a = new byte[]{120, 59, 102, -57};
$$b = CipherSuite.TLS_RSA_PSK_WITH_AES_128_CBC_SHA;
}
static void bo() {
f = new char[]{38656, 38750, 38748, 38727, 38747, 38737, 38741};
}
}