package o; import android.graphics.Color; import android.os.Process; import android.text.TextUtils; import android.util.TypedValue; import android.view.View; import android.view.ViewConfiguration; import android.widget.ExpandableListView; import com.google.android.gms.maps.model.BitmapDescriptorFactory; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.beid.beidk.definitions.LivenessStatus; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.lang.reflect.Method; import java.util.Objects; import net.sf.scuba.smartcards.ISOFileInfo; /* renamed from: o.fQk, reason: case insensitive filesystem */ /* loaded from: classes5.dex */ public class C13097fQk { @SerializedName("result") private String b = null; @SerializedName("errorCode") private IeS c = null; @SerializedName("error") private String e = null; private static final byte[] $$a = {116, ISOFileInfo.SECURITY_ATTR_EXP, 37, 13}; private static final int $$b = 219; private static int $10 = 0; private static int $11 = 1; private static int d = 0; private static int i = 1; private static long a = 7503636941133702491L; /* JADX WARN: Removed duplicated region for block: B:10:0x0024 */ /* JADX WARN: Removed duplicated region for block: B:7:0x001c */ /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0024 -> B:4:0x0029). 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 g(short r7, int r8, int r9, java.lang.Object[] r10) { /* byte[] r0 = o.C13097fQk.$$a int r9 = r9 + 77 int r7 = r7 * 2 int r7 = r7 + 1 int r8 = r8 * 3 int r8 = r8 + 4 byte[] r1 = new byte[r7] r2 = 0 if (r0 != 0) goto L14 r3 = r7 r4 = r2 goto L29 L14: r3 = r2 L15: int r4 = r3 + 1 byte r5 = (byte) r9 r1[r3] = r5 if (r4 != r7) goto L24 java.lang.String r7 = new java.lang.String r7.(r1, r2) r10[r2] = r7 return L24: r3 = r0[r8] r6 = r3 r3 = r9 r9 = r6 L29: int r9 = -r9 int r9 = r9 + r3 int r8 = r8 + 1 r3 = r4 goto L15 */ throw new UnsupportedOperationException("Method not decompiled: o.C13097fQk.g(short, int, int, java.lang.Object[]):void"); } private static void f(char[] cArr, int i2, Object[] objArr) { int i3 = 2 % 2; C4593bdB c4593bdB = new C4593bdB(); c4593bdB.a = i2; int length = cArr.length; long[] jArr = new long[length]; c4593bdB.e = 0; while (c4593bdB.e < cArr.length) { int i4 = $11 + 59; $10 = i4 % 128; int i5 = i4 % 2; int i6 = c4593bdB.e; try { Object[] objArr2 = {Integer.valueOf(cArr[c4593bdB.e]), c4593bdB, c4593bdB}; Object obj = xzZ.y.get(-1229953068); if (obj == null) { Class cls = (Class) xzZ.c(Color.green(0) + 402, Color.green(0) + 5, (char) (View.getDefaultSize(0, 0) + 21608)); byte b = (byte) 0; byte b2 = b; Object[] objArr3 = new Object[1]; g(b, b2, b2, objArr3); obj = cls.getMethod((String) objArr3[0], Integer.TYPE, Object.class, Object.class); xzZ.y.put(-1229953068, obj); } jArr[i6] = ((Long) ((Method) obj).invoke(null, objArr2)).longValue() ^ (a ^ (-6958928035870403642L)); Object[] objArr4 = {c4593bdB, c4593bdB}; Object obj2 = xzZ.y.get(-1143917229); if (obj2 == null) { Class cls2 = (Class) xzZ.c(TextUtils.getCapsMode("", 0, 0) + 238, 5 - View.getDefaultSize(0, 0), (char) ExpandableListView.getPackedPositionType(0L)); byte b3 = (byte) 0; byte b4 = b3; Object[] objArr5 = new Object[1]; g(b3, b4, (byte) (b4 + 1), objArr5); obj2 = cls2.getMethod((String) objArr5[0], Object.class, Object.class); xzZ.y.put(-1143917229, obj2); } ((Method) obj2).invoke(null, objArr4); int i7 = $10 + 85; $11 = i7 % 128; int i8 = i7 % 2; } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } char[] cArr2 = new char[length]; c4593bdB.e = 0; while (c4593bdB.e < cArr.length) { int i9 = $10 + 105; $11 = i9 % 128; if (i9 % 2 == 0) { cArr2[c4593bdB.e] = (char) jArr[c4593bdB.e]; Object[] objArr6 = {c4593bdB, c4593bdB}; Object obj3 = xzZ.y.get(-1143917229); if (obj3 == null) { Class cls3 = (Class) xzZ.c(Color.red(0) + 238, (Process.myPid() >> 22) + 5, (char) (ViewConfiguration.getMaximumFlingVelocity() >> 16)); byte b5 = (byte) 0; byte b6 = b5; Object[] objArr7 = new Object[1]; g(b5, b6, (byte) (b6 + 1), objArr7); obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class); xzZ.y.put(-1143917229, obj3); } Object obj4 = null; ((Method) obj3).invoke(null, objArr6); obj4.hashCode(); throw null; } cArr2[c4593bdB.e] = (char) jArr[c4593bdB.e]; try { Object[] objArr8 = {c4593bdB, c4593bdB}; Object obj5 = xzZ.y.get(-1143917229); if (obj5 == null) { Class cls4 = (Class) xzZ.c(239 - (Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)), 4 - TextUtils.indexOf((CharSequence) "", '0', 0, 0), (char) ((Process.getThreadPriority(0) + 20) >> 6)); byte b7 = (byte) 0; byte b8 = b7; Object[] objArr9 = new Object[1]; g(b7, b8, (byte) (b8 + 1), objArr9); obj5 = cls4.getMethod((String) objArr9[0], Object.class, Object.class); xzZ.y.put(-1143917229, obj5); } ((Method) obj5).invoke(null, objArr8); } catch (Throwable th2) { Throwable cause2 = th2.getCause(); if (cause2 == null) { throw th2; } throw cause2; } } objArr[0] = new String(cArr2); } @JsonAdapter(HBt.class) /* renamed from: o.fQk$IeS */ /* loaded from: classes5.dex */ public enum IeS { _1001("1001"), _1002("1002"), _1003("1003"), _1004("1004"), _1005(LivenessStatus.ERROR_MATCHING_FAIL), _400("400"), _500(LivenessStatus.ERROR_UNKNOW); public String h; /* renamed from: o.fQk$IeS$HBt */ /* loaded from: classes5.dex */ public static class HBt extends TypeAdapter { @Override // com.google.gson.TypeAdapter /* renamed from: read */ public final /* synthetic */ IeS read2(JsonReader jsonReader) throws IOException { return IeS.a(String.valueOf(jsonReader.nextString())); } @Override // com.google.gson.TypeAdapter public final /* synthetic */ void write(JsonWriter jsonWriter, IeS ieS) throws IOException { jsonWriter.value(ieS.h); } } @Override // java.lang.Enum public final String toString() { return String.valueOf(this.h); } public static IeS a(String str) { for (IeS ieS : values()) { if (String.valueOf(ieS.h).equals(str)) { return ieS; } } return null; } IeS(String str) { this.h = str; } } /* JADX INFO: Access modifiers changed from: private */ public static /* synthetic */ Object c(Object[] objArr) { C13097fQk c13097fQk = (C13097fQk) objArr[0]; int i2 = 2 % 2; int i3 = i; int i4 = i3 + 113; d = i4 % 128; int i5 = i4 % 2; String str = c13097fQk.e; int i6 = i3 + 53; d = i6 % 128; if (i6 % 2 == 0) { return str; } throw null; } public String toString() { int i2 = 2 % 2; StringBuilder sb = new StringBuilder("class PassportVerificationResult {\n result: "); sb.append(e((Object) this.b)); sb.append("\n errorCode: "); sb.append(e(this.c)); sb.append("\n error: "); sb.append(e((Object) this.e)); sb.append("\n}"); String obj = sb.toString(); int i3 = i + 79; d = i3 % 128; if (i3 % 2 == 0) { return obj; } throw null; } public int hashCode() { int hash; int i2 = 2 % 2; int i3 = d + 107; i = i3 % 128; if (i3 % 2 == 0) { String str = this.b; IeS ieS = this.c; String str2 = this.e; Object[] objArr = new Object[3]; objArr[1] = str; objArr[1] = ieS; objArr[2] = str2; hash = Objects.hash(objArr); } else { hash = Objects.hash(this.b, this.c, this.e); } int i4 = d + 83; i = i4 % 128; int i5 = i4 % 2; return hash; } public boolean equals(Object obj) { int i2 = 2 % 2; int i3 = i; int i4 = i3 + 13; d = i4 % 128; int i5 = i4 % 2; if (this == obj) { return true; } if (obj != null) { int i6 = i3 + 5; d = i6 % 128; int i7 = i6 % 2; if (getClass() == obj.getClass()) { C13097fQk c13097fQk = (C13097fQk) obj; if (Objects.equals(this.b, c13097fQk.b)) { int i8 = i + 3; d = i8 % 128; int i9 = i8 % 2; if (Objects.equals(this.c, c13097fQk.c)) { int i10 = i + 121; d = i10 % 128; int i11 = i10 % 2; String str = this.e; String str2 = c13097fQk.e; if (i11 != 0) { Objects.equals(str, str2); throw null; } if (Objects.equals(str, str2)) { return true; } } } return false; } } return false; } @ApiModelProperty("Error Message") public final String e() { System.identityHashCode(this); return (String) c(new Object[]{this}); } public final C13097fQk d(String str) { int i2 = 2 % 2; int i3 = i; int i4 = i3 + 9; d = i4 % 128; int i5 = i4 % 2; this.e = str; int i6 = i3 + 97; d = i6 % 128; int i7 = i6 % 2; return this; } @ApiModelProperty("Error Code
1001-Age less than 15
1002-Available for Thai passport only
1003-Document expired
1004-Digital Signature Invalid
1005-Passport is in blacklist") public final IeS d() { int i2 = 2 % 2; int i3 = d; int i4 = i3 + 107; i = i4 % 128; int i5 = i4 % 2; IeS ieS = this.c; int i6 = i3 + 27; i = i6 % 128; if (i6 % 2 == 0) { int i7 = 83 / 0; } return ieS; } @ApiModelProperty("Verification Result") public final String b() { int i2 = 2 % 2; int i3 = i; int i4 = i3 + 121; d = i4 % 128; int i5 = i4 % 2; String str = this.b; int i6 = i3 + 113; d = i6 % 128; if (i6 % 2 != 0) { int i7 = 27 / 0; } return str; } public final C13097fQk e(String str) { int i2 = 2 % 2; int i3 = d; int i4 = i3 + 71; i = i4 % 128; int i5 = i4 % 2; this.b = str; if (i5 == 0) { Object obj = null; obj.hashCode(); throw null; } int i6 = i3 + 105; i = i6 % 128; int i7 = i6 % 2; return this; } public final C13097fQk d(IeS ieS) { int i2 = 2 % 2; int i3 = d + 51; i = i3 % 128; int i4 = i3 % 2; this.c = ieS; if (i4 != 0) { return this; } Object obj = null; obj.hashCode(); throw null; } private static String e(Object obj) { int i2 = 2 % 2; int i3 = d + 67; i = i3 % 128; int i4 = i3 % 2; if (obj != null) { return obj.toString().replace("\n", "\n "); } Object[] objArr = new Object[1]; f(new char[]{63219, 221, 6811, 5230}, 63029 - (TypedValue.complexToFraction(0, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFraction(0, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), objArr); String intern = ((String) objArr[0]).intern(); int i5 = i + 107; d = i5 % 128; if (i5 % 2 == 0) { return intern; } throw null; } }