what-the-bank/sources/com/scb/phone/view/activity/sme/gifting/GiftingStatusBaseActivity.java

668 lines
38 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.activity.sme.gifting;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.content.Context;
import android.graphics.Color;
import android.graphics.PointF;
import android.media.AudioTrack;
import android.os.Bundle;
import android.os.Process;
import android.os.SystemClock;
import android.text.AndroidCharacter;
import android.text.TextUtils;
import android.util.TypedValue;
import android.view.KeyEvent;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android.widget.ExpandableListView;
import butterknife.BindView;
import com.airbnb.lottie.LottieAnimationView;
import com.airbnb.lottie.LottieComposition;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.google.common.base.Ascii;
import com.kofax.mobile.sdk._internal.impl.extraction.kta.KtaJsonExactionHelper;
import com.scb.phone.R;
import com.squareup.picasso.Picasso;
import java.lang.reflect.Method;
import net.sf.scuba.smartcards.ISO7816;
import net.sf.scuba.smartcards.ISOFileInfo;
import o.AbstractActivityC11870enW;
import o.WI;
import o.dQY;
import o.xzZ;
import org.bouncycastle.crypto.tls.CipherSuite;
import org.json.JSONObject;
/* loaded from: classes5.dex */
public abstract class GiftingStatusBaseActivity extends AbstractActivityC11870enW {
private static short[] s;
protected boolean b = false;
@BindView
protected LottieAnimationView giftAnimation;
/* renamed from: o, reason: collision with root package name */
private WI f7949o;
private static final byte[] $$p = {70, -37, 38, -31};
private static final int $$q = CipherSuite.TLS_PSK_WITH_AES_256_CBC_SHA384;
private static int $10 = 0;
private static int $11 = 1;
private static int q = 0;
private static int w = 1;
private static char[] m = {38195, 10835, 60392, 43885, 26753, 10256, 59820, 43381, 28229, 12230, 61226, 44231, 27668, 11678, 60707, 41654, 25553, 9086, 36799, 12484, 61785, 45558, 29194, 36785, 12488, 61822, 45549, 29195, 12951, 62268, 45978, 29914, 13637, 62952, 46718, 30341, 14096, 63412, 47162, 31053, 14819, 61302, 20511, 37293, 53608, 4808, 21007, 37819, 54063, 5213, 21913, 38179, 55011, 5696, 22406, 38758, 55550, 6613, 22827, 39611, 55874, 7128, 23400, 40108, 56711, 7497, 24230, 40546, 57287, 7936, 16621, 32801, 49415, 662, 16957, 33729, 50011, 1213, 17449, 34143, 50892, 1581, 18356, 34632, 51415, 2096, 18940, 35536, 51730, 36787, 12421, 61756, 45484, 29199, 13002, 62253, 46014, 29848, 13580, 62903, 46706, 30340, 14149, 63472, 47211, 31043, 14831, 64122, 47839, 31567, 15353, 64623, 48409, 32217, 15933, 65266, 48898, 32718, 8311, 57577, 41415, 25094, 8959, 58125, 41930, 25723, 9451, 58777, 42506, 26303, 10021, 59345, 43076, 26784, 10546, 59926, 43734, 27488, 11144, 60494, 44279, 28008, 11792, 61064, 44909, 28586, 4100, 53394, 37158, 20963, 4761, 54099, 37812, 36794, 12489, 61816, 45551, 29213, 12995, 62311, 46068, 29913, 13660, 62949, 46714, 30341, 14110, 63405, 47166, 31047, 14847, 64127, 47750, 31519, 15269, 64570, 48458, 32212, 15982, 65210, 48915, 32670, 8243, 57525, 41410, 25158, 8958, 58125, 41868, 25658, 9463, 58831, 42574, 26347, 10087, 59264, 43012, 26807, 10532, 59969, 43713, 27495, 11203, 60447, 44192, 27955, 11782, 61145, 44923, 28659, 4170, 53405, 37161, 20913, 4804, 54083, 37879, 21565, 5259, 54654, 38384, 22219, 5967, 55277, 39029, 22686, 6406};
private static long l = -4589279877659217731L;
private static int k = -855513297;
private static int r = 1406017133;
private static int p = -1965900285;
private static byte[] t = {Ascii.SYN, -23, -26, Ascii.US, 1, -50, 16, 30, -26, Ascii.CAN, ISO7816.INS_CREATE_FILE, 4, 55, 6, ISOFileInfo.AB, Ascii.NAK, Ascii.SUB, 38, -33, -18, -17, -24, Ascii.ESC, -29, Ascii.CAN, 17, -22, 57, -21, Ascii.DC2, -37, 62, -61, 56, -24, ISO7816.INS_GET_RESPONSE, 57, -60, 59, -63, Ascii.ETB, 57, 16, -23, -22, ISO7816.INS_GET_RESPONSE, -22, 57, -63, Ascii.NAK, 63, Ascii.SYN, -63, 57, -21, Ascii.NAK, -22, 29, ISO7816.INS_APPEND_RECORD, Ascii.DC2, ISO7816.INS_PUT_DATA, 38, -17, Ascii.SYN, -22, -58, 62, -58, ISO7816.INS_CHANGE_CHV, Ascii.DC4, -24, -21, 16, -17, Ascii.DC4, 17, -23, 17, -24, -59, 57, 16, -57, 57, -60, 58, -63, -24, Ascii.ETB, -29, Ascii.US, ISO7816.INS_CREATE_FILE, 33, -23, Ascii.DC4, -22, -57, -21, 59, -61, 58, ISO7816.INS_PUT_DATA, ISO7816.INS_CHANGE_CHV, 16, -33, -21, Ascii.SYN, Ascii.DC4, 33, -23, Ascii.NAK, -22, -21, Ascii.DC2, -34, -24, 32, -17, 28, -24, -23, -18, ISO7816.INS_GET_RESPONSE, 37, Ascii.ETB, -60, -23, Ascii.NAK, Ascii.NAK, Ascii.NAK, Ascii.NAK};
/* 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:0x0026). 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 aC(byte r6, short r7, short r8, java.lang.Object[] r9) {
/*
int r7 = r7 + 98
int r8 = r8 + 4
int r6 = r6 * 4
int r6 = 1 - r6
byte[] r0 = com.scb.phone.view.activity.sme.gifting.GiftingStatusBaseActivity.$$p
byte[] r1 = new byte[r6]
r2 = 0
if (r0 != 0) goto L12
r3 = r6
r4 = r2
goto L26
L12:
r3 = r2
L13:
int r8 = r8 + 1
int r4 = r3 + 1
byte r5 = (byte) r7
r1[r3] = r5
if (r4 != r6) goto L24
java.lang.String r6 = new java.lang.String
r6.<init>(r1, r2)
r9[r2] = r6
return
L24:
r3 = r0[r8]
L26:
int r7 = r7 + r3
r3 = r4
goto L13
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.sme.gifting.GiftingStatusBaseActivity.aC(byte, short, short, java.lang.Object[]):void");
}
protected abstract void b(WI wi);
protected abstract int f();
private static void aA(int i, int i2, char c, Object[] objArr) {
int i3 = 2 % 2;
dQY dqy = new dQY();
long[] jArr = new long[i2];
dqy.a = 0;
while (dqy.a < i2) {
int i4 = $10 + 101;
$11 = i4 % 128;
int i5 = i4 % 2;
int i6 = dqy.a;
try {
Object[] objArr2 = {Integer.valueOf(m[i + dqy.a])};
Object obj = xzZ.y.get(1095064095);
if (obj == null) {
Class cls = (Class) xzZ.c(308 - (PointF.length(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) > BitmapDescriptorFactory.HUE_RED ? 1 : (PointF.length(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), 5 - (PointF.length(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) > BitmapDescriptorFactory.HUE_RED ? 1 : (PointF.length(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), (char) (TextUtils.getTrimmedLength("") + 32797));
byte b = (byte) 0;
byte b2 = b;
Object[] objArr3 = new Object[1];
aC(b, b2, (byte) (b2 - 1), objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
xzZ.y.put(1095064095, obj);
}
try {
Object[] objArr4 = {Long.valueOf(((Long) ((Method) obj).invoke(null, objArr2)).longValue()), Long.valueOf(dqy.a), Long.valueOf(l), Integer.valueOf(c)};
Object obj2 = xzZ.y.get(-548438098);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c((ViewConfiguration.getKeyRepeatDelay() >> 16) + 412, View.MeasureSpec.getSize(0) + 5, (char) Color.green(0));
byte b3 = (byte) 0;
byte b4 = (byte) (b3 + 1);
Object[] objArr5 = new Object[1];
aC(b3, b4, (byte) (-b4), objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Long.TYPE, Long.TYPE, Long.TYPE, Integer.TYPE);
xzZ.y.put(-548438098, obj2);
}
jArr[i6] = ((Long) ((Method) obj2).invoke(null, objArr4)).longValue();
try {
Object[] objArr6 = {dqy, dqy};
Object obj3 = xzZ.y.get(1071125919);
if (obj3 == null) {
Class cls3 = (Class) xzZ.c(407 - (ViewConfiguration.getMinimumFlingVelocity() >> 16), ExpandableListView.getPackedPositionChild(0L) + 6, (char) (29234 - View.combineMeasuredStates(0, 0)));
byte b5 = (byte) 0;
Object[] objArr7 = new Object[1];
aC(b5, (byte) (b5 | 8), (byte) (-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;
}
} catch (Throwable th2) {
Throwable cause2 = th2.getCause();
if (cause2 == null) {
throw th2;
}
throw cause2;
}
} catch (Throwable th3) {
Throwable cause3 = th3.getCause();
if (cause3 == null) {
throw th3;
}
throw cause3;
}
}
char[] cArr = new char[i2];
dqy.a = 0;
while (dqy.a < i2) {
int i7 = $10 + 109;
$11 = i7 % 128;
int i8 = i7 % 2;
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(TextUtils.indexOf((CharSequence) "", '0') + 408, View.resolveSize(0, 0) + 5, (char) (View.MeasureSpec.getMode(0) + 29234));
byte b6 = (byte) 0;
Object[] objArr9 = new Object[1];
aC(b6, (byte) (b6 | 8), (byte) (-1), objArr9);
obj4 = cls4.getMethod((String) objArr9[0], Object.class, Object.class);
xzZ.y.put(1071125919, obj4);
}
((Method) obj4).invoke(null, objArr8);
} catch (Throwable th4) {
Throwable cause4 = th4.getCause();
if (cause4 == null) {
throw th4;
}
throw cause4;
}
}
objArr[0] = new String(cArr);
}
/* JADX WARN: Code restructure failed: missing block: B:6:0x0100, code lost:
if (r2 > 99999) goto L10;
*/
@Override // o.AbstractActivityC11870enW, com.scb.phone.view.activity.BaseActivity, com.scb.phone.view.activity.PreLoadCheckActivity, com.akexorcist.localizationactivity.LocalizationActivity, androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, android.app.Activity
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public void onCreate(android.os.Bundle r35) {
/*
Method dump skipped, instructions count: 1479
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.sme.gifting.GiftingStatusBaseActivity.onCreate(android.os.Bundle):void");
}
/* JADX INFO: Access modifiers changed from: protected */
public final void h() {
int i = 2 % 2;
int i2 = w + 63;
q = i2 % 128;
if (i2 % 2 != 0) {
getIntent().getExtras();
Object obj = null;
obj.hashCode();
throw null;
}
Bundle extras = getIntent().getExtras();
if (extras != null) {
int i3 = w + 93;
q = i3 % 128;
int i4 = i3 % 2;
if (extras.containsKey("EXTRA_GIFT_STATUS_SELECTED")) {
int i5 = q + 89;
w = i5 % 128;
int i6 = i5 % 2;
this.f7949o = (WI) extras.get("EXTRA_GIFT_STATUS_SELECTED");
this.b = extras.getBoolean("EXTRA_GIFT_FROM_PREVIEW");
b(this.f7949o);
}
}
}
public final void d(JSONObject jSONObject) {
int i = 2 % 2;
int i2 = w + 59;
q = i2 % 128;
try {
if (i2 % 2 != 0) {
this.giftAnimation.setAnimationFromJson(jSONObject.toString(), null);
this.giftAnimation.loop(true);
} else {
this.giftAnimation.setAnimationFromJson(jSONObject.toString(), null);
this.giftAnimation.loop(true);
}
this.giftAnimation.playAnimation();
int i3 = q + 101;
w = i3 % 128;
int i4 = i3 % 2;
} catch (Exception unused) {
}
}
public final void b(JSONObject jSONObject, JSONObject jSONObject2) {
int i = 2 % 2;
try {
this.giftAnimation.setAnimationFromJson(jSONObject.toString(), null);
LottieComposition fromJsonSync = LottieComposition.Factory.fromJsonSync(getResources(), jSONObject2);
this.giftAnimation.loop(true);
this.giftAnimation.addAnimatorListener(new AnimatorListenerAdapter(this, fromJsonSync) { // from class: com.scb.phone.view.activity.sme.gifting.GiftingStatusBaseActivity.3
private LottieComposition a;
private GiftingStatusBaseActivity c;
{
this.c = this;
this.a = fromJsonSync;
}
@Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
public final void onAnimationRepeat(Animator animator) {
this.c.giftAnimation.removeAnimatorListener(this);
this.c.giftAnimation.setComposition(this.a);
this.c.giftAnimation.playAnimation();
}
});
this.giftAnimation.playAnimation();
int i2 = w + 17;
q = i2 % 128;
int i3 = i2 % 2;
} catch (Exception unused) {
}
}
/* JADX INFO: Access modifiers changed from: private */
public static /* synthetic */ Object a(Object[] objArr) {
GiftingStatusBaseActivity giftingStatusBaseActivity = (GiftingStatusBaseActivity) objArr[0];
JSONObject jSONObject = (JSONObject) objArr[1];
String str = (String) objArr[2];
int i = 2 % 2;
Object obj = null;
try {
giftingStatusBaseActivity.giftAnimation.setAnimationFromJson(jSONObject.toString(), null);
giftingStatusBaseActivity.giftAnimation.loop(false);
giftingStatusBaseActivity.giftAnimation.addAnimatorListener(new AnimatorListenerAdapter(giftingStatusBaseActivity, str) { // from class: com.scb.phone.view.activity.sme.gifting.GiftingStatusBaseActivity.5
private GiftingStatusBaseActivity c;
private String e;
{
this.c = giftingStatusBaseActivity;
this.e = str;
}
@Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
public final void onAnimationEnd(Animator animator) {
super.onAnimationEnd(animator);
this.c.giftAnimation.cancelAnimation();
this.c.a(this.e);
}
});
giftingStatusBaseActivity.giftAnimation.playAnimation();
int i2 = w + 97;
q = i2 % 128;
if (i2 % 2 == 0) {
return null;
}
obj.hashCode();
throw null;
} catch (Exception unused) {
return null;
}
}
public final void a(String str) {
int i = 2 % 2;
int i2 = w + 69;
q = i2 % 128;
int i3 = i2 % 2;
Picasso.d().e(str).aBu_(this.giftAnimation, null);
int i4 = q + 51;
w = i4 % 128;
if (i4 % 2 == 0) {
throw null;
}
}
@Override // o.AbstractActivityC11870enW, com.scb.phone.view.activity.BaseActivity, com.scb.phone.view.activity.PreLoadCheckActivity, com.akexorcist.localizationactivity.LocalizationActivity, androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, android.app.Activity
public void onResume() {
int i = 2 % 2;
Context baseContext = getBaseContext();
if (baseContext == null) {
Object[] objArr = new Object[1];
aB((short) TextUtils.getOffsetAfter("", 0), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion + 1630537380, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.abc_menu_shift_shortcut_label).substring(0, 6).length() - 100, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().length() + 652435518, (byte) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 34), objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
aA(((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.close_account_details_interest_rate).substring(13, 17).codePointAt(3) - 18, (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 18, (char) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.investment_risk_confirm).substring(38, 40).length() - 2), objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
int i2 = w + 39;
q = i2 % 128;
int i3 = i2 % 2;
}
if (baseContext != null) {
baseContext = baseContext.getApplicationContext();
}
if (baseContext != null) {
int i4 = w + 31;
q = i4 % 128;
int i5 = i4 % 2;
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(492 - (Process.myPid() >> 22), (ViewConfiguration.getKeyRepeatDelay() >> 16) + 5, (char) (TextUtils.lastIndexOf("", '0', 0, 0) + 1))).getMethod("a", null);
xzZ.y.put(125943855, obj);
}
Object invoke = ((Method) obj).invoke(null, null);
Object[] objArr3 = {baseContext};
Object obj2 = xzZ.y.get(1378719468);
if (obj2 == null) {
obj2 = ((Class) xzZ.c((ViewConfiguration.getEdgeSlop() >> 16) + 487, 5 - TextUtils.getOffsetAfter("", 0), (char) TextUtils.getOffsetBefore("", 0))).getMethod(KtaJsonExactionHelper.OBJECT, Context.class);
xzZ.y.put(1378719468, obj2);
}
((Method) obj2).invoke(invoke, objArr3);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
super.onResume();
}
@Override // o.AbstractActivityC11870enW, com.scb.phone.view.activity.BaseActivity, com.scb.phone.view.activity.PreLoadCheckActivity, com.akexorcist.localizationactivity.LocalizationActivity, androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, android.app.Activity
public void onPause() {
int i = 2 % 2;
int i2 = q + 33;
w = i2 % 128;
int i3 = i2 % 2;
Context baseContext = getBaseContext();
if (baseContext == null) {
Object[] objArr = new Object[1];
aB((short) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.edit_email_description_blank_state).substring(58, 59).length() - 1), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(1) + 1630537303, Color.argb(0, 0, 0, 0) - 94, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().length() + 652435518, (byte) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(4) - 115), objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
aA(((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.hml_personal_info_last_name_hint_eng).substring(10, 11).length() + 22, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().length() + 5, (char) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(5) - 99), objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
int i4 = w + 89;
q = i4 % 128;
int i5 = i4 % 2;
}
if (baseContext != null) {
baseContext = baseContext.getApplicationContext();
int i6 = q + 41;
w = i6 % 128;
int i7 = i6 % 2;
}
if (baseContext != null) {
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(492 - (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)), (ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)) + 4, (char) TextUtils.getCapsMode("", 0, 0))).getMethod("a", null);
xzZ.y.put(125943855, obj);
}
Object invoke = ((Method) obj).invoke(null, null);
Object[] objArr3 = {baseContext};
Object obj2 = xzZ.y.get(1633456013);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(535 - AndroidCharacter.getMirror('0'), 5 - View.getDefaultSize(0, 0), (char) (1 - (Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1))))).getMethod("c", Context.class);
xzZ.y.put(1633456013, obj2);
}
((Method) obj2).invoke(invoke, objArr3);
int i8 = q + 55;
w = i8 % 128;
if (i8 % 2 == 0) {
int i9 = 5 % 3;
}
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
super.onPause();
}
/* JADX WARN: Code restructure failed: missing block: B:51:0x00a7, code lost:
if (r3 != null) goto L21;
*/
/* JADX WARN: Code restructure failed: missing block: B:52:0x019b, code lost:
if (r3 == null) goto L49;
*/
/* JADX WARN: Code restructure failed: missing block: B:53:0x019d, code lost:
r0 = com.scb.phone.view.activity.sme.gifting.GiftingStatusBaseActivity.t;
*/
/* JADX WARN: Code restructure failed: missing block: B:54:0x01a2, code lost:
r9 = new java.lang.Object[]{java.lang.Integer.valueOf(r19), java.lang.Integer.valueOf(com.scb.phone.view.activity.sme.gifting.GiftingStatusBaseActivity.k)};
r3 = o.xzZ.y.get(-2092856797);
*/
/* JADX WARN: Code restructure failed: missing block: B:55:0x01bd, code lost:
if (r3 == null) goto L46;
*/
/* JADX WARN: Code restructure failed: missing block: B:58:0x0218, code lost:
r3 = (byte) (((byte) (r0[((java.lang.Integer) ((java.lang.reflect.Method) r3).invoke(null, r9)).intValue()] ^ (-7303220121662775787L))) + ((int) (com.scb.phone.view.activity.sme.gifting.GiftingStatusBaseActivity.r ^ (-7303220121662775787L))));
*/
/* JADX WARN: Code restructure failed: missing block: B:59:0x01c0, code lost:
r3 = (java.lang.Class) o.xzZ.c((android.view.ViewConfiguration.getTouchSlop() >> 8) + 337, 6 - (android.os.SystemClock.uptimeMillis() > 0 ? 1 : (android.os.SystemClock.uptimeMillis() == 0 ? 0 : -1)), (char) ((-1) - (android.widget.ExpandableListView.getPackedPositionForChild(0, 0) > 0 ? 1 : (android.widget.ExpandableListView.getPackedPositionForChild(0, 0) == 0 ? 0 : -1))));
r7 = (byte) 0;
r11 = new java.lang.Object[1];
aC(r7, (byte) (r7 | 12), (byte) (-1), r11);
r3 = r3.getMethod((java.lang.String) r11[0], java.lang.Integer.TYPE, java.lang.Integer.TYPE);
o.xzZ.y.put(-2092856797, r3);
*/
/* JADX WARN: Code restructure failed: missing block: B:60:0x022c, code lost:
r11 = -7303220121662775787L;
r3 = (short) (((short) (com.scb.phone.view.activity.sme.gifting.GiftingStatusBaseActivity.s[r19 + ((int) (com.scb.phone.view.activity.sme.gifting.GiftingStatusBaseActivity.k ^ (-7303220121662775787L)))] ^ (-7303220121662775787L))) + ((int) (com.scb.phone.view.activity.sme.gifting.GiftingStatusBaseActivity.r ^ (-7303220121662775787L))));
*/
/* JADX WARN: Code restructure failed: missing block: B:61:0x00ae, code lost:
r15 = r3.length;
r13 = new byte[r15];
r14 = 0;
*/
/* JADX WARN: Code restructure failed: missing block: B:62:0x00b2, code lost:
if (r14 >= r15) goto L91;
*/
/* JADX WARN: Code restructure failed: missing block: B:63:0x00b4, code lost:
r11 = com.scb.phone.view.activity.sme.gifting.GiftingStatusBaseActivity.$11 + 79;
com.scb.phone.view.activity.sme.gifting.GiftingStatusBaseActivity.$10 = r11 % 128;
*/
/* JADX WARN: Code restructure failed: missing block: B:64:0x00c0, code lost:
if ((r11 % r0) == 0) goto L32;
*/
/* JADX WARN: Code restructure failed: missing block: B:66:0x00c4, code lost:
r7 = new java.lang.Object[]{java.lang.Integer.valueOf(r3[r14])};
r0 = o.xzZ.y.get(-1648115392);
*/
/* JADX WARN: Code restructure failed: missing block: B:67:0x00d6, code lost:
if (r0 == null) goto L29;
*/
/* JADX WARN: Code restructure failed: missing block: B:70:0x0123, code lost:
r13[r14] = ((java.lang.Byte) ((java.lang.reflect.Method) r0).invoke(null, r7)).byteValue();
r14 = r14 / 0;
*/
/* JADX WARN: Code restructure failed: missing block: B:72:0x0192, code lost:
r0 = 2;
r9 = -1;
*/
/* JADX WARN: Code restructure failed: missing block: B:73:0x00d9, code lost:
r0 = (java.lang.Class) o.xzZ.c(android.text.TextUtils.getTrimmedLength("") + 60, android.os.Process.getGidForName("") + 6, (char) (android.view.ViewConfiguration.getKeyRepeatTimeout() >> 16));
r10 = (byte) 0;
r12 = (byte) r9;
r9 = new java.lang.Object[1];
aC(r10, (byte) (r10 | 10), r12, r9);
r0 = r0.getMethod((java.lang.String) r9[0], java.lang.Integer.TYPE);
o.xzZ.y.put(-1648115392, r0);
*/
/* JADX WARN: Code restructure failed: missing block: B:75:0x012a, code lost:
r7 = new java.lang.Object[]{java.lang.Integer.valueOf(r3[r14])};
r0 = o.xzZ.y.get(-1648115392);
*/
/* JADX WARN: Code restructure failed: missing block: B:76:0x013f, code lost:
if (r0 == null) goto L36;
*/
/* JADX WARN: Code restructure failed: missing block: B:79:0x018e, code lost:
r13[r14] = ((java.lang.Byte) ((java.lang.reflect.Method) r0).invoke(null, r7)).byteValue();
r14 = r14 + 1;
*/
/* JADX WARN: Code restructure failed: missing block: B:81:0x0142, code lost:
r0 = (java.lang.Class) o.xzZ.c(android.view.View.MeasureSpec.getMode(0) + 60, android.view.View.combineMeasuredStates(0, 0) + 5, (char) ((-1) - ((byte) android.view.KeyEvent.getModifierMetaStateMask())));
r9 = (byte) 0;
r11 = new java.lang.Object[1];
aC(r9, (byte) (r9 | 10), (byte) (-1), r11);
r0 = r0.getMethod((java.lang.String) r11[0], java.lang.Integer.TYPE);
o.xzZ.y.put(-1648115392, r0);
*/
/* JADX WARN: Code restructure failed: missing block: B:83:0x019a, code lost:
r3 = r13;
*/
/* JADX WARN: Code restructure failed: missing block: B:85:0x00ac, code lost:
if (r3 != null) goto L21;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private static void aB(short r18, int r19, int r20, int r21, byte r22, java.lang.Object[] r23) {
/*
Method dump skipped, instructions count: 893
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.sme.gifting.GiftingStatusBaseActivity.aB(short, int, int, int, byte, java.lang.Object[]):void");
}
@Override // o.AbstractActivityC11870enW, com.scb.phone.view.activity.BaseActivity, com.scb.phone.view.activity.PreLoadCheckActivity, com.akexorcist.localizationactivity.LocalizationActivity, androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, android.app.Activity, android.view.ContextThemeWrapper, android.content.ContextWrapper
public void attachBaseContext(Context context) {
Context context2;
int i = 2 % 2;
int i2 = w + 21;
q = i2 % 128;
int i3 = i2 % 2;
super.attachBaseContext(context);
Object[] objArr = new Object[1];
aA((-1) - ((byte) KeyEvent.getModifierMetaStateMask()), 17 - MotionEvent.axisFromString(""), (char) ((ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 6783), objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
aA((ViewConfiguration.getTouchSlop() >> 8) + 18, (ViewConfiguration.getMinimumFlingVelocity() >> 16) + 5, (char) TextUtils.getTrimmedLength(""), objArr2);
int intValue = ((Integer) cls.getDeclaredMethod((String) objArr2[0], new Class[0]).invoke(null, new Object[0])).intValue() % 100000;
if (intValue < 99000 || intValue > 99999) {
if (context != null) {
int i4 = w + 13;
q = i4 % 128;
int i5 = i4 % 2;
context2 = context.getApplicationContext();
} else {
context2 = context;
}
if (context2 != null) {
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(Color.alpha(0) + 492, 5 - View.MeasureSpec.getSize(0), (char) (ViewConfiguration.getKeyRepeatDelay() >> 16))).getMethod("a", null);
xzZ.y.put(125943855, obj);
}
Object invoke = ((Method) obj).invoke(null, null);
Object[] objArr3 = new Object[1];
aA(41 - View.MeasureSpec.makeMeasureSpec(0, 0), (SystemClock.elapsedRealtimeNanos() > 0L ? 1 : (SystemClock.elapsedRealtimeNanos() == 0L ? 0 : -1)) + 47, (char) ((ViewConfiguration.getWindowTouchSlop() >> 8) + 24725), objArr3);
String str = (String) objArr3[0];
Object[] objArr4 = new Object[1];
aB((short) KeyEvent.keyCodeFromString(""), MotionEvent.axisFromString("") + 1630537440, (ViewConfiguration.getKeyRepeatDelay() >> 16) - 56, 652435535 - View.getDefaultSize(0, 0), (byte) View.MeasureSpec.getMode(0), objArr4);
String str2 = (String) objArr4[0];
Object[] objArr5 = new Object[1];
aA((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)) + 89, TextUtils.indexOf("", "") + 64, (char) ((-1) - (ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1))), objArr5);
String str3 = (String) objArr5[0];
Object[] objArr6 = new Object[1];
aA(152 - Process.getGidForName(""), 74 - (ViewConfiguration.getMaximumFlingVelocity() >> 16), (char) ((Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)) - 1), objArr6);
String str4 = (String) objArr6[0];
Object[] objArr7 = new Object[1];
aB((short) (ViewConfiguration.getLongPressTimeout() >> 16), (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 1630537502, (-115) - TextUtils.getOffsetAfter("", 0), 652435491 - (ViewConfiguration.getMinimumFlingVelocity() >> 16), (byte) TextUtils.getOffsetAfter("", 0), objArr7);
String str5 = (String) objArr7[0];
Object[] objArr8 = new Object[1];
aB((short) ExpandableListView.getPackedPositionType(0L), 1630537506 - TextUtils.getTrimmedLength(""), (-84) - View.resolveSizeAndState(0, 0, 0), TextUtils.indexOf("", "") + 652435535, (byte) (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), objArr8);
Object[] objArr9 = {context2, str, str2, str3, str4, true, str5, (String) objArr8[0]};
Object obj2 = xzZ.y.get(1656189573);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(487 - (ViewConfiguration.getTapTimeout() >> 16), 6 - (Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)), (char) View.MeasureSpec.makeMeasureSpec(0, 0))).getMethod("e", Context.class, String.class, String.class, String.class, String.class, Boolean.TYPE, String.class, String.class);
xzZ.y.put(1656189573, obj2);
}
((Method) obj2).invoke(invoke, objArr9);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
}
}
@Override // o.AbstractActivityC11870enW, com.scb.phone.view.activity.BaseActivity, com.scb.phone.view.activity.PreLoadCheckActivity, com.akexorcist.localizationactivity.LocalizationActivity, androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, android.app.Activity
public void onStart() {
int i = 2 % 2;
int i2 = w + 69;
q = i2 % 128;
int i3 = i2 % 2;
super.onStart();
if (i3 != 0) {
int i4 = 18 / 0;
}
}
public final void c(JSONObject jSONObject, String str) {
Object[] objArr = {this, jSONObject, str};
int i = ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion + 938765731;
a(objArr);
}
}