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

731 lines
45 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.content.Context;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.ImageFormat;
import android.graphics.drawable.Drawable;
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.Gravity;
import android.view.KeyEvent;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewConfiguration;
import android.widget.ExpandableListView;
import androidx.viewpager.widget.ViewPager;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.google.android.material.tabs.TabLayout;
import com.google.common.base.Ascii;
import com.kofax.kmc.kut.utilities.IpLibUtil;
import com.scb.phone.R;
import java.lang.reflect.Method;
import net.sf.scuba.smartcards.ISO7816;
import net.sf.scuba.smartcards.ISOFileInfo;
import o.AbstractActivityC11864enQ;
import o.C12510eza;
import o.IRS;
import o.Tlu;
import o.nMh;
import o.xzZ;
import org.jnbis.internal.NistHelper;
/* loaded from: classes5.dex */
public class GiftingActivity extends AbstractActivityC11864enQ implements ViewPager.ojQ {
private static short[] s;
@BindView
TabLayout giftsTabLayout;
@BindView
ViewPager giftsViewPager;
private boolean m;
/* renamed from: o, reason: collision with root package name */
private boolean f7944o;
private static final byte[] $$g = {76, ISO7816.INS_UPDATE_RECORD, -78, ISOFileInfo.FCI_EXT};
private static final int $$h = 112;
private static int $10 = 0;
private static int $11 = 1;
private static int v = 0;
private static int y = 1;
private static char[] k = {49118, 49105, 49098, 49117, 48160, 49116, 49108, 48173, 49089, 48169, 48174, 49119, 49104, 49126, 49115, 49029, 49106, 49034, 49094, 49095, 49035, 49026, 49114, 48171, 49090, 49111, 49088, 49138, 48168, 48170, 49123, 49107, 49033, 49091, 49028, 49031, 49052, 49024, 48163, 49053, 49112, 48172, 48175, 49109, 49093, 49110, 49025, 49030, 48161};
private static char l = 35374;
private static int q = 742368510;
private static int t = 1406017136;
private static int r = -803610022;
private static byte[] p = {ISOFileInfo.A0, Ascii.DC4, 47, ISO7816.INS_CHANGE_CHV, 29, 7, 76, Ascii.SYN, 28, ISO7816.INS_CHANGE_CHV, 30, 38, Ascii.SUB, -11, 4, 105, -21, Ascii.CAN, ISO7816.INS_DELETE_FILE, 93, ISO7816.INS_UNBLOCK_CHV, 45, 46, Ascii.EM, 33, 30, -50, 45, ISO7816.INS_UPDATE_BINARY, 5, -41, 46, -25, 2, -1, 4, -44, -4, 5, -8, 7, -3, 43, 5, ISO7816.INS_UNBLOCK_CHV, -43, ISO7816.INS_UPDATE_BINARY, -4, ISO7816.INS_UPDATE_BINARY, 5, -3, 41, 3, ISO7816.INS_PSO, -3, 5, -41, 41, ISO7816.INS_UPDATE_BINARY, 33, -34, 46, -26, Ascii.SUB, -45, ISO7816.INS_PSO, ISO7816.INS_UPDATE_BINARY, -6, 2, -6, Ascii.CAN, 40, -44, -41, ISO7816.INS_UNBLOCK_CHV, -45, 40, 45, -43, 45, -44, -7, 5, ISO7816.INS_UNBLOCK_CHV, -5, 5, -8, 6, -3, -44, -50, 89, Byte.MIN_VALUE, 104, 89, ISO7816.INS_MANAGE_CHANNEL, 110, -70, 35, -65, 124, 104, 119, ISOFileInfo.FCI_BYTE, 38, 104, 118, -124, 88, 118, -72, 119, 110, ISO7816.INS_MANAGE_CHANNEL, 105, -107, 116, 118, -107, 89, 116, ISOFileInfo.FCI_EXT, 69, Byte.MIN_VALUE, 104, 119, 88, 116, ISOFileInfo.FCI_EXT, 94, -70, ISO7816.INS_MANAGE_CHANNEL, 108, 116, 106, 35, 105, 106, -126, 109, 113, 91, 118, -69, 115, 108, 38, -107, -69, 91, ISOFileInfo.FCI_EXT, 104, 125, 92, -75, 33, -75, 41, ISOFileInfo.LCS_BYTE, -86, 90, -126, 87, ISOFileInfo.DATA_BYTES2, ISOFileInfo.FMD_BYTE, Byte.MIN_VALUE, ISO7816.INS_MANAGE_CHANNEL, 120, 113, -111, 71, 43, -100, Byte.MIN_VALUE, 85, 87, 90, -126, 86, ISOFileInfo.DATA_BYTES2, Byte.MIN_VALUE, 41, -99, ISOFileInfo.FILE_IDENTIFIER, 91, ISOFileInfo.SECURITY_ATTR_COMPACT, 95, ISOFileInfo.FILE_IDENTIFIER, -126, ISOFileInfo.ENV_TEMP_EF, 123, 70, 84, 103, -126};
private static void az(short s2, byte b, short s3, Object[] objArr) {
int i = 4 - (s3 * 4);
byte[] bArr = $$g;
int i2 = 120 - s2;
int i3 = b * 4;
byte[] bArr2 = new byte[i3 + 1];
int i4 = -1;
if (bArr == null) {
i2 += -i;
i++;
i4 = -1;
}
while (true) {
int i5 = i4 + 1;
bArr2[i5] = (byte) i2;
if (i5 == i3) {
objArr[0] = new String(bArr2, 0);
return;
}
int i6 = i;
i2 += -bArr[i];
i = i6 + 1;
i4 = i5;
}
}
@Override // o.AbstractActivityC11864enQ, 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 onCreate(Bundle bundle) {
int i = 2 % 2;
int i2 = v + 25;
y = i2 % 128;
int i3 = i2 % 2;
Object[] objArr = new Object[1];
ax(new char[]{17, 2, 22, 11, 1, 26, ' ', '.', '\f', '!', '%', ' ', '\f', 1, '\n', '/', 13825, 13825}, (byte) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.taking_photo_details_blurry_card).substring(30, 31).codePointAt(0) - 8), 18 - (Process.myPid() >> 22), objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
ax(new char[]{1, 3, '\b', 27, 13871}, (byte) ((ViewConfiguration.getEdgeSlop() >> 16) + 49), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.hml_moa_buttons_text).substring(31, 32).length() + 4, objArr2);
int intValue = ((Integer) cls.getDeclaredMethod((String) objArr2[0], new Class[0]).invoke(null, new Object[0])).intValue() % 100000;
if (intValue < 99000 || intValue > 99999) {
Context baseContext = getBaseContext();
if (baseContext == null) {
Object[] objArr3 = new Object[1];
ay((short) ((ViewConfiguration.getFadingEdgeLength() >> 16) - 30), 2131641621 - Color.rgb(0, 0, 0), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(1) - 213, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(3) + 2082997220, (byte) ((-32) - (TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1))), objArr3);
Class<?> cls2 = Class.forName((String) objArr3[0]);
Object[] objArr4 = new Object[1];
ax(new char[]{11, 19, 13895, 13895, 3, '\n', 20, 26, 13897, 13897, '\b', 25, '\t', 19, 15, 26, 6, 4}, (byte) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.no_accounts_description).substring(34, 35).length() + 94), 17 - TextUtils.indexOf((CharSequence) "", '0', 0), objArr4);
baseContext = (Context) cls2.getMethod((String) objArr4[0], new Class[0]).invoke(null, null);
}
if (baseContext != null) {
baseContext = baseContext.getApplicationContext();
}
if (baseContext != null) {
int i4 = v + 107;
y = i4 % 128;
int i5 = i4 % 2;
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c((Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)) + 491, KeyEvent.normalizeMetaState(0) + 5, (char) (ViewConfiguration.getTapTimeout() >> 16))).getMethod("a", null);
xzZ.y.put(125943855, obj);
}
Object invoke = ((Method) obj).invoke(null, null);
Object[] objArr5 = new Object[1];
ax(new char[]{27, NistHelper.SEP_FS, '$', 0, '(', '\t', ',', 15, 3, 15, ',', 18, '$', 2, ')', 16, 2, '$', '0', 18, '&', '$', 17, 18, 1, 22, 19, 5, '\n', 19, 26, 22, 26, '*', 14, 27, ',', '.', 13912, 13912, '*', '\'', 19, '-', '\r', 19, '*', '&'}, (byte) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().length() + 83), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.hml_outcome_counter_attention_text).substring(70, 71).codePointAt(0) + 16, objArr5);
String str = (String) objArr5[0];
Object[] objArr6 = new Object[1];
ay((short) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.point_x_tool_title).substring(0, 7).length() - 135), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 2146548467, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.billpayment_bnpl_total_interest_fee_1).substring(26, 27).length() - 103, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().length() + 2082997257, (byte) (Gravity.getAbsoluteGravity(0, 0) - 68), objArr6);
String str2 = (String) objArr6[0];
Object[] objArr7 = new Object[1];
ay((short) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 147), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 2146548403, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().length() - 115, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.auto_bo_downtime_desc_1).substring(27, 28).codePointAt(0) + 2082997234, (byte) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(4) - 100), objArr7);
String str3 = (String) objArr7[0];
Object[] objArr8 = new Object[1];
ax(new char[]{15, 20, 26, '(', 25, '!', 13811, 13811, 27, 23, 14, 2, 19, '\f', 13877, 13877, '+', '\n', '\b', 26, 18, '\t', 2, 15, 5, '&', '(', 18, 15, 7, ',', 17, 26, 19, 19, 23, 18, '(', 4, 20, 15, '\t', 26, 27, 25, 17, 15, '\t', '.', '&', 19, '\f', 1, '#', 19, 30, 29, '+', 24, 1, 3, '0', '!', 26, '%', '+', '+', '\'', '.', '-', 3, '\n', 26, '!'}, (byte) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().length() + 49), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion + 40, objArr8);
String str4 = (String) objArr8[0];
Object[] objArr9 = new Object[1];
ay((short) ((Process.myTid() >> 22) - 110), (-2146548305) - (ViewConfiguration.getWindowTouchSlop() >> 8), (-103) - ExpandableListView.getPackedPositionChild(0L), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion + 2082997192, (byte) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.easycash_contact_number).substring(0, 11).codePointAt(6) - 115), objArr9);
String str5 = (String) objArr9[0];
Object[] objArr10 = new Object[1];
ay((short) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().length() + 7), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 2146548334, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(8) - 214, 2082997270 - Drawable.resolveOpacity(0, 0), (byte) (87 - TextUtils.indexOf("", "", 0)), objArr10);
Object[] objArr11 = {baseContext, str, str2, str3, str4, true, str5, (String) objArr10[0]};
Object obj2 = xzZ.y.get(1656189573);
if (obj2 == null) {
obj2 = ((Class) xzZ.c((TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 487, TextUtils.indexOf("", "", 0, 0) + 5, (char) TextUtils.indexOf("", "", 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, objArr11);
int i6 = v + 23;
y = i6 % 128;
int i7 = i6 % 2;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
}
super.onCreate(bundle);
setContentView(R.layout.2131558594);
ButterKnife.Dg_(this);
this.giftsViewPager.setAdapter(new C12510eza(getSupportFragmentManager(), this));
this.giftsTabLayout.setupWithViewPager(this.giftsViewPager);
this.giftsViewPager.addOnPageChangeListener(this);
super.Z();
ac();
p(getString(R.string.gifting_main_tile));
if (!this.m) {
this.m = true;
d_("gifts_box_received");
}
}
@Override // com.scb.phone.view.activity.BaseActivity
public final void Z() {
int i = 2 % 2;
int i2 = v + 9;
y = i2 % 128;
int i3 = i2 % 2;
super.Z();
ac();
p(getString(R.string.gifting_main_tile));
int i4 = y + 85;
v = i4 % 128;
int i5 = i4 % 2;
}
@Override // com.scb.phone.view.activity.BaseActivity, android.app.Activity
public boolean onCreateOptionsMenu(Menu menu) {
int i = 2 % 2;
int i2 = v + 37;
y = i2 % 128;
int i3 = i2 % 2;
getMenuInflater().inflate(R.menu.2131689486, menu);
Drawable pI_ = Tlu.pI_(menu.findItem(R.id.menu_action_help).getIcon());
Tlu.pE_(pI_, nMh.getColor(this, R.color.f13682131100876));
menu.findItem(R.id.menu_action_help).setIcon(pI_);
int i4 = v + 47;
y = i4 % 128;
if (i4 % 2 == 0) {
int i5 = 39 / 0;
}
return true;
}
@Override // com.scb.phone.view.activity.BaseActivity, android.app.Activity
public boolean onOptionsItemSelected(MenuItem menuItem) {
int i = 2 % 2;
int i2 = y + 71;
v = i2 % 128;
if (i2 % 2 == 0) {
if (menuItem.getItemId() != R.id.menu_action_help) {
return super.onOptionsItemSelected(menuItem);
}
startActivity(new Intent(this, (Class<?>) GiftingAboutActivity.class));
int i3 = v + 71;
y = i3 % 128;
int i4 = i3 % 2;
return true;
}
menuItem.getItemId();
throw null;
}
@OnClick
public void onGiftsSendButtonClick(View view) {
int i = 2 % 2;
d_("gifts_box_send_gift_action");
Intent intent = new Intent(this, (Class<?>) GiftSelectionActivity.class);
intent.addFlags(603979776);
startActivity(intent);
int i2 = y + 35;
v = i2 % 128;
int i3 = i2 % 2;
}
@Override // androidx.viewpager.widget.ViewPager.ojQ
public void onPageSelected(int i) {
int i2 = 2 % 2;
int i3 = y + 103;
v = i3 % 128;
if (i3 % 2 != 0) {
throw null;
}
if (!this.m) {
this.m = true;
d_("gifts_box_received");
int i4 = v + 125;
y = i4 % 128;
int i5 = i4 % 2;
}
if (!(!this.f7944o)) {
return;
}
int i6 = v + 81;
y = i6 % 128;
int i7 = i6 % 2;
this.f7944o = true;
d_("gifts_box_sent");
int i8 = v + 65;
y = i8 % 128;
int i9 = i8 % 2;
}
/* JADX WARN: Code restructure failed: missing block: B:32:0x0021, code lost:
r7 = (java.lang.Object[]) null;
r6 = new java.lang.Object[1];
ay((short) (((android.content.Context) java.lang.Class.forName("android.app.ActivityThread").getMethod("currentApplication", new java.lang.Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 64), ((android.content.Context) java.lang.Class.forName("android.app.ActivityThread").getMethod("currentApplication", new java.lang.Class[0]).invoke(null, null)).getApplicationContext().getPackageName().length() - 2146548472, ((android.content.Context) java.lang.Class.forName("android.app.ActivityThread").getMethod("currentApplication", new java.lang.Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(com.scb.phone.R.string.event_exchange_rate).substring(25, 26).length() - 103, ((android.content.Context) java.lang.Class.forName("android.app.ActivityThread").getMethod("currentApplication", new java.lang.Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(com.scb.phone.R.string.cash_rewards_eta).substring(20, 21).codePointAt(0) + 2082997234, (byte) (((android.content.Context) java.lang.Class.forName("android.app.ActivityThread").getMethod("currentApplication", new java.lang.Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 66), r6);
r6 = java.lang.Class.forName((java.lang.String) r6[0]);
r8 = new java.lang.Object[1];
ax(new char[]{11, 19, 13895, 13895, 3, '\n', 20, 26, 13897, 13897, '\b', 25, '\t', 19, 15, 26, 6, 4}, (byte) (((android.content.Context) java.lang.Class.forName("android.app.ActivityThread").getMethod("currentApplication", new java.lang.Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(com.scb.phone.R.string.single_form_scbs_open_mf_and_om_checkbox).substring(4, 5).codePointAt(0) + 63), ((android.content.Context) java.lang.Class.forName("android.app.ActivityThread").getMethod("currentApplication", new java.lang.Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 16, r8);
r1 = (android.content.Context) r6.getMethod((java.lang.String) r8[0], new java.lang.Class[0]).invoke(null, null);
*/
/* JADX WARN: Code restructure failed: missing block: B:34:0x001f, code lost:
if (r1 == null) goto L9;
*/
/* JADX WARN: Code restructure failed: missing block: B:4:0x0018, code lost:
if (r1 == null) goto L9;
*/
@Override // o.AbstractActivityC11864enQ, 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 onResume() {
/*
Method dump skipped, instructions count: 544
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.sme.gifting.GiftingActivity.onResume():void");
}
/* JADX WARN: Code restructure failed: missing block: B:19:0x00a5, code lost:
if (r4 != null) goto L25;
*/
/* JADX WARN: Code restructure failed: missing block: B:20:0x013d, code lost:
if (r4 == null) goto L51;
*/
/* JADX WARN: Code restructure failed: missing block: B:21:0x013f, code lost:
r0 = com.scb.phone.view.activity.sme.gifting.GiftingActivity.p;
*/
/* JADX WARN: Code restructure failed: missing block: B:22:0x0144, code lost:
r7 = new java.lang.Object[]{java.lang.Integer.valueOf(r20), java.lang.Integer.valueOf(com.scb.phone.view.activity.sme.gifting.GiftingActivity.q)};
r3 = o.xzZ.y.get(-2092856797);
*/
/* JADX WARN: Code restructure failed: missing block: B:23:0x015f, code lost:
if (r3 == null) goto L48;
*/
/* JADX WARN: Code restructure failed: missing block: B:26:0x01b1, code lost:
r3 = (byte) (((byte) (r0[((java.lang.Integer) ((java.lang.reflect.Method) r3).invoke(null, r7)).intValue()] ^ (-7303220121662775787L))) + ((int) (com.scb.phone.view.activity.sme.gifting.GiftingActivity.t ^ (-7303220121662775787L))));
*/
/* JADX WARN: Code restructure failed: missing block: B:27:0x0162, code lost:
r3 = (java.lang.Class) o.xzZ.c(android.view.View.combineMeasuredStates(0, 0) + 337, 5 - (android.view.ViewConfiguration.getWindowTouchSlop() >> 8), (char) android.view.Gravity.getAbsoluteGravity(0, 0));
r8 = (byte) 0;
r11 = new java.lang.Object[1];
az((byte) 10, r8, r8, 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:28:0x01c4, code lost:
r3 = (short) (((short) (com.scb.phone.view.activity.sme.gifting.GiftingActivity.s[r20 + ((int) (com.scb.phone.view.activity.sme.gifting.GiftingActivity.q ^ (-7303220121662775787L)))] ^ (-7303220121662775787L))) + ((int) (com.scb.phone.view.activity.sme.gifting.GiftingActivity.t ^ (-7303220121662775787L))));
*/
/* JADX WARN: Code restructure failed: missing block: B:29:0x00ac, code lost:
r3 = r3 + 65;
com.scb.phone.view.activity.sme.gifting.GiftingActivity.$11 = r3 % 128;
*/
/* JADX WARN: Code restructure failed: missing block: B:30:0x00b3, code lost:
if ((r3 % 2) != 0) goto L28;
*/
/* JADX WARN: Code restructure failed: missing block: B:31:0x00b5, code lost:
r3 = r4.length;
r14 = new byte[r3];
r15 = 1;
*/
/* JADX WARN: Code restructure failed: missing block: B:33:0x00be, code lost:
if (r15 >= r3) goto L91;
*/
/* JADX WARN: Code restructure failed: missing block: B:36:0x00c2, code lost:
r8 = new java.lang.Object[]{java.lang.Integer.valueOf(r4[r15])};
r0 = o.xzZ.y.get(-1648115392);
*/
/* JADX WARN: Code restructure failed: missing block: B:37:0x00d7, code lost:
if (r0 == null) goto L34;
*/
/* JADX WARN: Code restructure failed: missing block: B:40:0x0124, code lost:
r14[r15] = ((java.lang.Byte) ((java.lang.reflect.Method) r0).invoke(null, r8)).byteValue();
r15 = r15 + 1;
r9 = com.google.android.gms.maps.model.BitmapDescriptorFactory.HUE_RED;
r13 = '0';
*/
/* JADX WARN: Code restructure failed: missing block: B:41:0x00da, code lost:
r0 = (java.lang.Class) o.xzZ.c(59 - ((byte) android.view.KeyEvent.getModifierMetaStateMask()), 5 - (android.util.TypedValue.complexToFloat(0) > r9 ? 1 : (android.util.TypedValue.complexToFloat(0) == r9 ? 0 : -1)), (char) (android.text.TextUtils.indexOf("", r13) + 1));
r9 = (byte) 0;
r11 = new java.lang.Object[1];
az((byte) 12, r9, r9, 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:43:0x0133, code lost:
r0 = move-exception;
*/
/* JADX WARN: Code restructure failed: missing block: B:44:0x0134, code lost:
r1 = r0.getCause();
*/
/* JADX WARN: Code restructure failed: missing block: B:45:0x0138, code lost:
if (r1 != null) goto L40;
*/
/* JADX WARN: Code restructure failed: missing block: B:46:0x013a, code lost:
throw r1;
*/
/* JADX WARN: Code restructure failed: missing block: B:48:0x013b, code lost:
throw r0;
*/
/* JADX WARN: Code restructure failed: missing block: B:50:0x013c, code lost:
r4 = r14;
*/
/* JADX WARN: Code restructure failed: missing block: B:51:0x00ba, code lost:
r3 = r4.length;
r14 = new byte[r3];
r15 = 0;
*/
/* JADX WARN: Code restructure failed: missing block: B:53:0x00aa, code lost:
if (r4 != null) goto L25;
*/
/* JADX WARN: Removed duplicated region for block: B:93:0x033a */
/* JADX WARN: Removed duplicated region for block: B:94:0x033b */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private static void ay(short r19, int r20, int r21, int r22, byte r23, java.lang.Object[] r24) {
/*
Method dump skipped, instructions count: 828
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.sme.gifting.GiftingActivity.ay(short, int, int, int, byte, java.lang.Object[]):void");
}
@Override // o.AbstractActivityC11864enQ, 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 = y + 71;
v = i2 % 128;
int i3 = i2 % 2;
Context baseContext = getBaseContext();
if (baseContext == null) {
Object[] objArr = new Object[1];
ay((short) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 64), (-2146548459) - (ViewConfiguration.getFadingEdgeLength() >> 16), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.cardless_review_tag).substring(0, 19).codePointAt(5) - 203, 2082997266 - KeyEvent.keyCodeFromString(""), (byte) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.auto_app_outcome_upselling_custom_placeholder).substring(0, 7).codePointAt(0) - 81), objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
ax(new char[]{11, 19, 13895, 13895, 3, '\n', 20, 26, 13897, 13897, '\b', 25, '\t', 19, 15, 26, 6, 4}, (byte) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion + 61), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.registration_line).substring(0, 3).length() + 15, objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
int i4 = y + 83;
v = i4 % 128;
int i5 = i4 % 2;
}
if (baseContext != null) {
baseContext = baseContext.getApplicationContext();
}
if (baseContext != null) {
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(492 - TextUtils.indexOf("", ""), TextUtils.getOffsetAfter("", 0) + 5, (char) (AndroidCharacter.getMirror('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(487 - View.resolveSize(0, 0), ExpandableListView.getPackedPositionType(0L) + 5, (char) (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)))).getMethod("c", Context.class);
xzZ.y.put(1633456013, obj2);
}
((Method) obj2).invoke(invoke, objArr3);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
super.onPause();
int i6 = y + 43;
v = i6 % 128;
if (i6 % 2 != 0) {
throw null;
}
}
private static void ax(char[] cArr, byte b, int i, Object[] objArr) {
int i2;
Object obj;
int i3 = 2 % 2;
IRS irs = new IRS();
char[] cArr2 = k;
Object obj2 = null;
int i4 = 3;
if (cArr2 != null) {
int length = cArr2.length;
char[] cArr3 = new char[length];
int i5 = 0;
while (i5 < length) {
try {
Object[] objArr2 = {Integer.valueOf(cArr2[i5])};
Object obj3 = xzZ.y.get(-1987398494);
if (obj3 == null) {
Class cls = (Class) xzZ.c(298 - (ViewConfiguration.getScrollDefaultDelay() >> 16), 5 - View.MeasureSpec.makeMeasureSpec(0, 0), (char) ((Process.getThreadPriority(0) + 20) >> 6));
byte b2 = (byte) i4;
byte b3 = (byte) (b2 - 3);
Object[] objArr3 = new Object[1];
az(b2, b3, b3, objArr3);
obj3 = cls.getMethod((String) objArr3[0], Integer.TYPE);
xzZ.y.put(-1987398494, obj3);
}
cArr3[i5] = ((Character) ((Method) obj3).invoke(null, objArr2)).charValue();
i5++;
i4 = 3;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
cArr2 = cArr3;
}
Object[] objArr4 = {Integer.valueOf(l)};
Object obj4 = xzZ.y.get(-1987398494);
if (obj4 == null) {
Class cls2 = (Class) xzZ.c(297 - TextUtils.indexOf((CharSequence) "", '0'), 5 - Color.red(0), (char) KeyEvent.getDeadChar(0, 0));
byte b4 = (byte) 3;
byte b5 = (byte) (b4 - 3);
Object[] objArr5 = new Object[1];
az(b4, b5, b5, objArr5);
obj4 = cls2.getMethod((String) objArr5[0], Integer.TYPE);
xzZ.y.put(-1987398494, obj4);
}
char charValue = ((Character) ((Method) obj4).invoke(null, objArr4)).charValue();
char[] cArr4 = new char[i];
if (i % 2 != 0) {
int i6 = $11 + 97;
$10 = i6 % 128;
if (i6 % 2 != 0) {
i2 = i + 15;
cArr4[i2] = (char) (cArr[i2] >> b);
} else {
i2 = i - 1;
cArr4[i2] = (char) (cArr[i2] - b);
}
} else {
i2 = i;
}
if (i2 > 1) {
irs.e = 0;
while (irs.e < i2) {
irs.b = cArr[irs.e];
irs.c = cArr[irs.e + 1];
if (irs.b == irs.c) {
cArr4[irs.e] = (char) (irs.b - b);
cArr4[irs.e + 1] = (char) (irs.c - b);
obj = obj2;
} else {
Object[] objArr6 = {irs, irs, Integer.valueOf(charValue), irs, irs, Integer.valueOf(charValue), irs, irs, Integer.valueOf(charValue), irs, irs, Integer.valueOf(charValue), irs};
Object obj5 = xzZ.y.get(822107368);
if (obj5 == null) {
Class cls3 = (Class) xzZ.c(232 - ExpandableListView.getPackedPositionChild(0L), (ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)) + 4, (char) (Gravity.getAbsoluteGravity(0, 0) + 22024));
byte b6 = (byte) 0;
byte b7 = b6;
Object[] objArr7 = new Object[1];
az(b6, b7, b7, objArr7);
obj5 = cls3.getMethod((String) objArr7[0], Object.class, Object.class, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Object.class);
xzZ.y.put(822107368, obj5);
}
if (((Integer) ((Method) obj5).invoke(null, objArr6)).intValue() == irs.j) {
int i7 = $10 + 91;
$11 = i7 % 128;
int i8 = i7 % 2;
Object[] objArr8 = {irs, irs, Integer.valueOf(charValue), Integer.valueOf(charValue), irs, irs, Integer.valueOf(charValue), Integer.valueOf(charValue), irs, Integer.valueOf(charValue), irs};
Object obj6 = xzZ.y.get(-1152873385);
if (obj6 == null) {
Class cls4 = (Class) xzZ.c(327 - (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)), View.getDefaultSize(0, 0) + 5, (char) (ViewConfiguration.getMinimumFlingVelocity() >> 16));
byte b8 = (byte) 2;
byte b9 = (byte) (b8 - 2);
Object[] objArr9 = new Object[1];
az(b8, b9, b9, objArr9);
obj6 = cls4.getMethod((String) objArr9[0], Object.class, Object.class, Integer.TYPE, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Integer.TYPE, Object.class, Integer.TYPE, Object.class);
xzZ.y.put(-1152873385, obj6);
}
obj = null;
int intValue = ((Integer) ((Method) obj6).invoke(null, objArr8)).intValue();
int i9 = (irs.d * charValue) + irs.j;
cArr4[irs.e] = cArr2[intValue];
cArr4[irs.e + 1] = cArr2[i9];
} else {
obj = null;
if (irs.a == irs.d) {
irs.f = ((irs.f + charValue) - 1) % charValue;
irs.j = ((irs.j + charValue) - 1) % charValue;
int i10 = (irs.a * charValue) + irs.f;
int i11 = (irs.d * charValue) + irs.j;
cArr4[irs.e] = cArr2[i10];
cArr4[irs.e + 1] = cArr2[i11];
} else {
int i12 = (irs.a * charValue) + irs.j;
int i13 = (irs.d * charValue) + irs.f;
cArr4[irs.e] = cArr2[i12];
cArr4[irs.e + 1] = cArr2[i13];
}
}
}
irs.e += 2;
obj2 = obj;
}
}
for (int i14 = 0; i14 < i; i14++) {
cArr4[i14] = (char) (cArr4[i14] ^ 13722);
}
objArr[0] = new String(cArr4);
}
@Override // o.AbstractActivityC11864enQ, 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 = v + 45;
y = i2 % 128;
int i3 = i2 % 2;
super.attachBaseContext(context);
Object[] objArr = new Object[1];
ax(new char[]{17, 2, 22, 11, 1, 26, ' ', '.', '\f', '!', '%', ' ', '\f', 1, '\n', '/', 13825, 13825}, (byte) (24 - KeyEvent.getDeadChar(0, 0)), (Process.myPid() >> 22) + 18, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
ax(new char[]{1, 3, '\b', 27, 13871}, (byte) ((ViewConfiguration.getDoubleTapTimeout() >> 16) + 49), (TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 5, objArr2);
int intValue = ((Integer) cls.getDeclaredMethod((String) objArr2[0], new Class[0]).invoke(null, new Object[0])).intValue() % 100000;
if (intValue >= 99000) {
int i4 = y + 77;
v = i4 % 128;
if (i4 % 2 != 0) {
throw null;
}
if (intValue <= 99999) {
return;
}
}
if (context != null) {
int i5 = y + 77;
v = i5 % 128;
if (i5 % 2 != 0) {
context2 = context.getApplicationContext();
int i6 = 66 / 0;
} else {
context2 = context.getApplicationContext();
}
} else {
context2 = context;
}
if (context2 != null) {
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(TextUtils.indexOf((CharSequence) "", '0', 0) + 493, 5 - ExpandableListView.getPackedPositionGroup(0L), (char) (ExpandableListView.getPackedPositionChild(0L) + 1))).getMethod("a", null);
xzZ.y.put(125943855, obj);
}
Object invoke = ((Method) obj).invoke(null, null);
Object[] objArr3 = new Object[1];
ax(new char[]{27, NistHelper.SEP_FS, '$', 0, '(', '\t', ',', 15, 3, 15, ',', 18, '$', 2, ')', 16, 2, '$', '0', 18, '&', '$', 17, 18, 1, 22, 19, 5, '\n', 19, 26, 22, 26, '*', 14, 27, ',', '.', 13912, 13912, '*', '\'', 19, '-', '\r', 19, '*', '&'}, (byte) ((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)) + 96), (Process.myTid() >> 22) + 48, objArr3);
String str = (String) objArr3[0];
Object[] objArr4 = new Object[1];
ay((short) ((ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)) - 129), (-2146548433) - View.MeasureSpec.getMode(0), Color.alpha(0) + IpLibUtil.KIPP_BAD_POINTER, 2082997271 - (ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)), (byte) ((-69) - TextUtils.lastIndexOf("", '0')), objArr4);
String str2 = (String) objArr4[0];
Object[] objArr5 = new Object[1];
ay((short) ((-112) - (Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1))), Color.argb(0, 0, 0, 0) - 2146548369, (-102) - TextUtils.indexOf("", "", 0, 0), 2082997265 - ImageFormat.getBitsPerPixel(0), (byte) ((ViewConfiguration.getEdgeSlop() >> 16) + 15), objArr5);
String str3 = (String) objArr5[0];
Object[] objArr6 = new Object[1];
ax(new char[]{15, 20, 26, '(', 25, '!', 13811, 13811, 27, 23, 14, 2, 19, '\f', 13877, 13877, '+', '\n', '\b', 26, 18, '\t', 2, 15, 5, '&', '(', 18, 15, 7, ',', 17, 26, 19, 19, 23, 18, '(', 4, 20, 15, '\t', 26, 27, 25, 17, 15, '\t', '.', '&', 19, '\f', 1, '#', 19, 30, 29, '+', 24, 1, 3, '0', '!', 26, '%', '+', '+', '\'', '.', '-', 3, '\n', 26, '!'}, (byte) (ExpandableListView.getPackedPositionChild(0L) + 63), 73 - TextUtils.indexOf((CharSequence) "", '0', 0), objArr6);
String str4 = (String) objArr6[0];
Object[] objArr7 = new Object[1];
ay((short) ((-109) - (SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1))), (-2146548305) - (ViewConfiguration.getMaximumDrawingCacheSize() >> 24), (-102) - (ViewConfiguration.getTouchSlop() >> 8), 2082997225 - ExpandableListView.getPackedPositionChild(0L), (byte) ((-60) - View.combineMeasuredStates(0, 0)), objArr7);
String str5 = (String) objArr7[0];
Object[] objArr8 = new Object[1];
ay((short) (20 - ExpandableListView.getPackedPositionType(0L)), TextUtils.getTrimmedLength("") - 2146548300, (ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)) - 103, 2082997270 - (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), (byte) (87 - (ViewConfiguration.getTouchSlop() >> 8)), 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 - KeyEvent.normalizeMetaState(0), 6 - (SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)), (char) (KeyEvent.getMaxKeyCode() >> 16))).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.AbstractActivityC11864enQ, 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 = v + 55;
y = i2 % 128;
int i3 = i2 % 2;
super.onStart();
if (i3 == 0) {
int i4 = 55 / 0;
}
int i5 = y + 115;
v = i5 % 128;
int i6 = i5 % 2;
}
@Override // androidx.viewpager.widget.ViewPager.ojQ
public void onPageScrolled(int i, float f, int i2) {
int i3 = 2 % 2;
int i4 = y + 33;
v = i4 % 128;
int i5 = i4 % 2;
}
@Override // androidx.viewpager.widget.ViewPager.ojQ
public void onPageScrollStateChanged(int i) {
int i2 = 2 % 2;
int i3 = y + 71;
v = i3 % 128;
if (i3 % 2 == 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
}