package o; import android.graphics.Color; import android.graphics.ImageFormat; import android.media.AudioTrack; import android.os.Process; import android.os.SystemClock; import android.telephony.cdma.CdmaCellLocation; import android.util.TypedValue; import android.view.KeyEvent; import android.view.View; import android.view.ViewConfiguration; import android.widget.ExpandableListView; import com.google.android.gms.maps.model.BitmapDescriptorFactory; import com.google.common.base.Ascii; import com.google.gson.Gson; import com.huawei.hms.framework.common.ContainerUtils; import io.beid.beidk.definitions.SCBHeader; import java.lang.reflect.Method; import java.util.Arrays; import java.util.HashMap; import java.util.Locale; import java.util.Map; /* renamed from: o.td, reason: case insensitive filesystem */ /* loaded from: classes3.dex */ public final class C17061td { private static char[] a; private static long d; private static int e; private final String b; private final InterfaceC3521azC c; private static final byte[] $$a = {Ascii.SYN, 77, -47, -12}; private static final int $$b = 44; private static int $10 = 0; private static int $11 = 1; private static int i = 1; /* JADX WARN: Removed duplicated region for block: B:10:0x0025 */ /* JADX WARN: Removed duplicated region for block: B:7:0x001d */ /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0025 -> B:4:0x002a). 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(byte r6, short r7, short r8, java.lang.Object[] r9) { /* int r6 = r6 * 3 int r0 = r6 + 1 int r8 = 106 - r8 byte[] r1 = o.C17061td.$$a int r7 = r7 + 4 byte[] r0 = new byte[r0] r2 = 0 if (r1 != 0) goto L13 r3 = r6 r8 = r7 r4 = r2 goto L2a L13: r3 = r2 L14: byte r4 = (byte) r8 r0[r3] = r4 int r7 = r7 + 1 int r4 = r3 + 1 if (r3 != r6) goto L25 java.lang.String r6 = new java.lang.String r6.(r0, r2) r9[r2] = r6 return L25: r3 = r1[r7] r5 = r8 r8 = r7 r7 = r5 L2a: int r7 = r7 + r3 r3 = r4 r5 = r8 r8 = r7 r7 = r5 goto L14 */ throw new UnsupportedOperationException("Method not decompiled: o.C17061td.g(byte, short, short, java.lang.Object[]):void"); } @InterfaceC13391fZD public C17061td(InterfaceC3521azC interfaceC3521azC, String str) { C14957gcv.e(interfaceC3521azC, ""); C14957gcv.e(str, ""); this.c = interfaceC3521azC; this.b = str; } /* renamed from: o.td$RVV */ /* loaded from: classes3.dex */ public static final class RVV { private RVV() { } public /* synthetic */ RVV(byte b) { this(); } } /* JADX WARN: Removed duplicated region for block: B:10:? A[RETURN, SYNTHETIC] */ /* JADX WARN: Removed duplicated region for block: B:7:0x001e */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ private final java.lang.String b() { /* r4 = this; r0 = 2 int r1 = r0 % r0 o.azC r1 = r4.c o.dAG r1 = r1.a() if (r1 == 0) goto L1b int r2 = o.C17061td.i int r2 = r2 + 83 int r3 = r2 % 128 o.C17061td.e = r3 int r2 = r2 % r0 o.CNl r1 = r1.h if (r1 == 0) goto L1b java.lang.String r1 = r1.d goto L1c L1b: r1 = 0 L1c: if (r1 != 0) goto L29 int r1 = o.C17061td.e int r1 = r1 + 13 int r2 = r1 % 128 o.C17061td.i = r2 int r1 = r1 % r0 java.lang.String r1 = "" L29: return r1 */ throw new UnsupportedOperationException("Method not decompiled: o.C17061td.b():java.lang.String"); } public static /* synthetic */ String e(C17061td c17061td, String str, String str2, String str3) { int i2 = 2 % 2; int i3 = i + 61; e = i3 % 128; int i4 = i3 % 2; Object[] objArr = new Object[1]; f((char) (CdmaCellLocation.convertQuartSecToDecDegrees(0) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(0) == 0.0d ? 0 : -1)), Color.green(0), (ViewConfiguration.getMinimumFlingVelocity() >> 16) + 1, objArr); String b = c17061td.b(str, str2, str3, ((String) objArr[0]).intern()); int i5 = i + 77; e = i5 % 128; int i6 = i5 % 2; return b; } public final String b(String str, String str2, String str3, String str4) { int i2 = 2 % 2; C14957gcv.e(str, ""); C14957gcv.e(str2, ""); C14957gcv.e(str3, ""); C14957gcv.e(str4, ""); HashMap hashMap = new HashMap(); hashMap.put("UserId", "ENET"); String upperCase = this.b.toUpperCase(Locale.ROOT); C14957gcv.c((Object) upperCase, ""); hashMap.put(SCBHeader.SCB_REQ_HEADER_ACCEPT_LANGUAGE, upperCase); hashMap.put("funcNm", "Search"); hashMap.put("ekycMethod", str); hashMap.put("referenceID", str2); hashMap.put("userType", str3); hashMap.put("rqLog", str4); String b = b(); String e2 = e(b()); String str5 = (String) a(new Object[]{hashMap}); StringBuilder sb = new StringBuilder(); sb.append(b); sb.append(e2); sb.append(str5); String obj = sb.toString(); int i3 = e + 51; i = i3 % 128; int i4 = i3 % 2; return obj; } public final String e(String str, String str2, String str3) { int i2 = 2 % 2; C14957gcv.e(str, ""); C14957gcv.e(str2, ""); C14957gcv.e(str3, ""); HashMap hashMap = new HashMap(); hashMap.put("UserId", "ENET"); String upperCase = this.b.toUpperCase(Locale.ROOT); C14957gcv.c((Object) upperCase, ""); hashMap.put(SCBHeader.SCB_REQ_HEADER_ACCEPT_LANGUAGE, upperCase); hashMap.put("funcNm", "Search"); hashMap.put("ekycMethod", str); hashMap.put("referenceID", str2); hashMap.put("userType", str3); String e2 = e("scbeasy://fatcaportal"); String str4 = (String) a(new Object[]{hashMap}); StringBuilder sb = new StringBuilder("scbeasy://fatcaportal"); sb.append(e2); sb.append(str4); String obj = sb.toString(); int i3 = e + 51; i = i3 % 128; if (i3 % 2 != 0) { return obj; } Object obj2 = null; obj2.hashCode(); throw null; } private static String e(String str) { String str2 = "?"; int i2 = 2 % 2; int i3 = i + 15; e = i3 % 128; int i4 = i3 % 2; if (gdZ.d((CharSequence) str, (CharSequence) "?", false)) { int i5 = i + 105; e = i5 % 128; int i6 = i5 % 2; str2 = ContainerUtils.FIELD_DELIMITER; if (i6 != 0) { int i7 = 18 / 0; } } return str2; } private static void f(char c, int i2, int i3, Object[] objArr) { int i4 = 2 % 2; dQY dqy = new dQY(); long[] jArr = new long[i3]; dqy.a = 0; while (dqy.a < i3) { int i5 = dqy.a; try { Object[] objArr2 = {Integer.valueOf(a[i2 + dqy.a])}; Object obj = xzZ.y.get(1095064095); if (obj == null) { Class cls = (Class) xzZ.c(Color.blue(0) + 308, 5 - (TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), (char) (32797 - View.MeasureSpec.getSize(0))); byte b = (byte) 0; byte b2 = (byte) (b - 1); Object[] objArr3 = new Object[1]; g(b, b2, (byte) (b2 & 8), objArr3); obj = cls.getMethod((String) objArr3[0], Integer.TYPE); xzZ.y.put(1095064095, obj); } Object[] objArr4 = {Long.valueOf(((Long) ((Method) obj).invoke(null, objArr2)).longValue()), Long.valueOf(dqy.a), Long.valueOf(d), Integer.valueOf(c)}; Object obj2 = xzZ.y.get(-548438098); if (obj2 == null) { Class cls2 = (Class) xzZ.c(View.MeasureSpec.makeMeasureSpec(0, 0) + 412, 5 - ExpandableListView.getPackedPositionType(0L), (char) ((Process.getThreadPriority(0) + 20) >> 6)); byte b3 = (byte) 0; byte b4 = (byte) (b3 - 1); Object[] objArr5 = new Object[1]; g(b3, b4, (byte) (b4 & 7), objArr5); obj2 = cls2.getMethod((String) objArr5[0], Long.TYPE, Long.TYPE, Long.TYPE, Integer.TYPE); xzZ.y.put(-548438098, obj2); } jArr[i5] = ((Long) ((Method) obj2).invoke(null, objArr4)).longValue(); Object[] objArr6 = {dqy, dqy}; Object obj3 = xzZ.y.get(1071125919); if (obj3 == null) { Class cls3 = (Class) xzZ.c((ViewConfiguration.getKeyRepeatTimeout() >> 16) + 407, (AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 4, (char) (29235 - (Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)))); byte b5 = (byte) 0; byte b6 = (byte) (b5 - 1); 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(1071125919, obj3); } ((Method) obj3).invoke(null, objArr6); } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } char[] cArr = new char[i3]; dqy.a = 0; while (dqy.a < i3) { int i6 = $10 + 39; $11 = i6 % 128; if (i6 % 2 == 0) { cArr[dqy.a] = (char) jArr[dqy.a]; try { Object[] objArr8 = {dqy, dqy}; Object obj4 = xzZ.y.get(1071125919); if (obj4 == null) { Class cls4 = (Class) xzZ.c(ImageFormat.getBitsPerPixel(0) + 408, 4 - ((byte) KeyEvent.getModifierMetaStateMask()), (char) (29234 - (ViewConfiguration.getWindowTouchSlop() >> 8))); byte b7 = (byte) 0; byte b8 = (byte) (b7 - 1); Object[] objArr9 = new Object[1]; g(b7, b8, (byte) (b8 + 1), objArr9); obj4 = cls4.getMethod((String) objArr9[0], Object.class, Object.class); xzZ.y.put(1071125919, obj4); } ((Method) obj4).invoke(null, objArr8); throw null; } catch (Throwable th2) { Throwable cause2 = th2.getCause(); if (cause2 == null) { throw th2; } throw cause2; } } cArr[dqy.a] = (char) jArr[dqy.a]; Object[] objArr10 = {dqy, dqy}; Object obj5 = xzZ.y.get(1071125919); if (obj5 == null) { Class cls5 = (Class) xzZ.c((SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)) + 406, (ViewConfiguration.getKeyRepeatTimeout() >> 16) + 5, (char) (29234 - (ViewConfiguration.getJumpTapTimeout() >> 16))); byte b9 = (byte) 0; byte b10 = (byte) (b9 - 1); Object[] objArr11 = new Object[1]; g(b9, b10, (byte) (b10 + 1), objArr11); obj5 = cls5.getMethod((String) objArr11[0], Object.class, Object.class); xzZ.y.put(1071125919, obj5); } ((Method) obj5).invoke(null, objArr10); int i7 = $10 + 101; $11 = i7 % 128; int i8 = i7 % 2; } objArr[0] = new String(cArr); } /* JADX INFO: Access modifiers changed from: private */ public static /* synthetic */ Object a(Object[] objArr) { Map map = (Map) objArr[0]; int i2 = 2 % 2; C14957gcv.e(map, ""); StringBuilder sb = new StringBuilder(); for (Map.Entry entry : map.entrySet()) { if (sb.length() > 0) { int i3 = e + 89; i = i3 % 128; if (i3 % 2 == 0) { sb.append(ContainerUtils.FIELD_DELIMITER); int i4 = 82 / 0; } else { sb.append(ContainerUtils.FIELD_DELIMITER); } } gcH gch = gcH.d; String format = String.format("%s=%s", Arrays.copyOf(new Object[]{entry.getKey(), entry.getValue()}, 2)); C14957gcv.c((Object) format, ""); sb.append(format); int i5 = e + 71; i = i5 % 128; int i6 = i5 % 2; } String obj = sb.toString(); C14957gcv.c((Object) obj, ""); return obj; } public static MB b(String str) { int i2 = 2 % 2; String str2 = ""; C14957gcv.e(str, ""); MB mb = (MB) new Gson().fromJson(str, MB.class); String str3 = mb.d; String str4 = mb.c; if (str4 == null) { int i3 = i + 1; e = i3 % 128; int i4 = i3 % 2; } else { str2 = str4; } MB mb2 = new MB(str3, str2); int i5 = i + 31; e = i5 % 128; int i6 = i5 % 2; return mb2; } static void e() { a = new char[]{36835}; d = -1488124366278882110L; } private static String d(Map map) { return (String) a(new Object[]{map}); } static { e = 0; e(); new RVV((byte) 0); int i2 = i + 19; e = i2 % 128; int i3 = i2 % 2; } }