what-the-bank/sources/com/scb/phone/view/activity/mwpartner/MwPartnerCropPhotoActivity....

964 lines
45 KiB
Java

package com.scb.phone.view.activity.mwpartner;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.os.Process;
import android.os.SystemClock;
import android.telephony.cdma.CdmaCellLocation;
import android.text.TextUtils;
import android.util.TypedValue;
import android.view.Gravity;
import android.view.KeyEvent;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android.widget.ExpandableListView;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import com.bumptech.glide.Glide;
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.lyft.android.scissors.CropView;
import com.scb.phone.R;
import com.scb.phone.view.activity.mwpartner.MwPartnerCropPhotoActivity;
import java.io.File;
import java.lang.reflect.Method;
import java.util.concurrent.Callable;
import net.sf.scuba.smartcards.ISOFileInfo;
import o.AbstractActivityC8881dYp;
import o.AbstractC13163fSk;
import o.C0413GaN;
import o.C11186eab;
import o.C13417fZt;
import o.C4403bZM;
import o.InterfaceC13391fZD;
import o.InterfaceC6657cZX;
import o.TVH;
import o.ZI;
import o.bVB;
import o.fKN;
import o.fRR;
import o.fSQ;
import o.guQ;
import o.rcp;
import o.xzZ;
import okhttp3.internal.ws.RealWebSocket;
import org.bouncycastle.crypto.tls.CipherSuite;
/* loaded from: classes5.dex */
public class MwPartnerCropPhotoActivity extends AbstractActivityC8881dYp implements InterfaceC6657cZX {
@BindView
CropView cropView;
@InterfaceC13391fZD
public bVB presenter;
private static final byte[] $$p = {43, -66, 11, ISOFileInfo.LCS_BYTE};
private static final int $$q = 123;
private static int $10 = 0;
private static int $11 = 1;
private static int m = 0;
private static int k = 1;
private static char[] l = {40038, 40056, 40061, 40035, 40057, 40046, 40060, 40060, 40034, 40044, 40056, 40061, 40031, 39993, 40060, 40056, 39993, 40035, 40013, 40093, 40086, 40087, 40094, 40088, 40080, 40079, 40073, 40081, 40083, 40095, 40091, 40071, 40095, 40083, 40093, 40083, 39990, 40089, 40095, 40095, 40091, 40060, 40050, 40055, 40049, 40090, 40096, 40098, 40099, 40091, 40050, 40055, 40054, 40089, 40088, 40095, 40089, 40051, 40049, 40048, 40090, 40091, 40090, 40097, 40098, 40108, 40088, 40048, 40068, 40091, 40091, 40091, 40048, 40088, 40091, 40051, 40048, 40048, 40050, 40091, 40088, 40094, 40095, 40089, 40072, 40206, 40200, 40165, 40146, 40157, 40167, 40164, 40164, 40166, 40147, 40164, 40164, 40187, 40186, 40187, 40206, 40165, 40158, 40158, 40156, 40166, 40200, 40165, 40165, 40207, 40164, 40147, 40166, 40166, 40147, 40146, 40146, 40157, 40157, 40156, 40167, 40160, 40158, 40157, 40158, 40167, 40166, 40165, 40167, 40152, 40159, 40156, 40158, 40157, 40147, 40157, 40157, 40157, 40158, 40164, 40186, 40147, 40166, 40165, 40164, 40164, 40165, 40206, 39986, 40056, 40058, 40034, 40038, 40038, 40001, 39995, 40031, 40025, 40026, 40056, 40039, 40045, 40033, 40032, 40007, 40007, 40039, 40035, 40003, 40005, 40037, 40034, 40003, 40002, 40032, 40034, 40032, 40056, 40057, 40032, 40032, 40034, 40032, 40037, 40001, 40026, 40056, 40033, 40041, 40032, 40033, 40040, 40032, 40038, 40037, 40026, 40007, 40039, 40044, 40042, 40044, 40045, 40046, 40045, 40033, 40032, 40034, 40038, 40037, 40034, 40035, 40044, 40046, 40037, 40026, 39972, 39999, 40029, 40058, 40057, 40063, 40037, 39957, 39984, 39988, 39988, 39988};
/* renamed from: o */
private static int[] f7585o = {-386582965, -2085913842, -232499622, -433894378, 1002598033, 113615703, 1939735389, -504027203, 96068956, 1009682112, 1592682566, 2121792934, -1227023676, 1235340237, 1365051017, -722712090, -1150963356, 549862942};
/* JADX WARN: Removed duplicated region for block: B:10:0x0028 */
/* JADX WARN: Removed duplicated region for block: B:7:0x0020 */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0028 -> B:4:0x002f). 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(short r6, byte r7, int r8, java.lang.Object[] r9) {
/*
int r6 = r6 * 3
int r6 = r6 + 4
int r7 = r7 * 2
int r0 = 1 - r7
int r8 = r8 + 71
byte[] r1 = com.scb.phone.view.activity.mwpartner.MwPartnerCropPhotoActivity.$$p
byte[] r0 = new byte[r0]
r2 = 0
int r7 = 0 - r7
if (r1 != 0) goto L17
r8 = r6
r4 = r7
r3 = r2
goto L2f
L17:
r3 = r2
L18:
r5 = r8
r8 = r6
r6 = r5
byte r4 = (byte) r6
r0[r3] = r4
if (r3 != r7) goto L28
java.lang.String r6 = new java.lang.String
r6.<init>(r0, r2)
r9[r2] = r6
return
L28:
int r3 = r3 + 1
r4 = r1[r8]
r5 = r8
r8 = r6
r6 = r5
L2f:
int r6 = r6 + 1
int r8 = r8 + r4
goto L18
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.mwpartner.MwPartnerCropPhotoActivity.aC(short, byte, int, java.lang.Object[]):void");
}
public static /* synthetic */ Object d(Object[] objArr, int i, int i2, int i3) {
return a(objArr);
}
public static /* synthetic */ Object a(Object[] objArr) {
Context context = (Context) objArr[0];
int i = 2 % 2;
Intent putExtra = new Intent(context, (Class<?>) MwPartnerCropPhotoActivity.class).putExtra("PHOTO_PATH", (String) objArr[1]);
int i2 = m + 101;
k = i2 % 128;
int i3 = i2 % 2;
return putExtra;
}
public static String aiA_(Intent intent) {
int i = 2 % 2;
int i2 = k + 75;
m = i2 % 128;
int i3 = i2 % 2;
String stringExtra = intent.getStringExtra("PHOTO_PATH");
if (i3 != 0) {
int i4 = 3 / 0;
}
return stringExtra;
}
@Override // o.AbstractActivityC8881dYp, 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;
Object[] objArr = new Object[1];
aA(new int[]{0, 18, 4, 6}, true, null, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
aB(new int[]{-1457996295, 1925237962, -1900166694, 155678151}, 5 - KeyEvent.normalizeMetaState(0), 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) {
int i2 = k + 15;
m = i2 % 128;
int i3 = i2 % 2;
Object[] objArr3 = new Object[1];
aB(new int[]{-1348943340, 519890987, -960643592, 764872167, 1355790950, 1801999296, -2096550807, 584960901, 9798461, 1892102498, 265365850, 1306709840, 362542551, 1418755981}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.credit_charge_info).substring(0, 1).length() + 25, objArr3);
Class<?> cls2 = Class.forName((String) objArr3[0]);
Object[] objArr4 = new Object[1];
aA(new int[]{18, 18, 42, 0}, false, new byte[]{1, 0, 1, 0, 1, 1, 0, 1, 1, 0, 0, 1, 0, 0, 1, 1, 0, 1}, objArr4);
baseContext = (Context) cls2.getMethod((String) objArr4[0], new Class[0]).invoke(null, null);
}
if (baseContext != null) {
baseContext = baseContext.getApplicationContext();
}
if (baseContext != null) {
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(492 - (ViewConfiguration.getMaximumDrawingCacheSize() >> 24), 5 - View.MeasureSpec.getSize(0), (char) ((SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)) - 1))).getMethod("a", null);
xzZ.y.put(125943855, obj);
}
Object invoke = ((Method) obj).invoke(null, null);
Object[] objArr5 = new Object[1];
aA(new int[]{36, 48, 70, 21}, false, new byte[]{1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 1, 1, 1, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 0, 1}, objArr5);
String str = (String) objArr5[0];
Object[] objArr6 = new Object[1];
aA(new int[]{84, 64, CipherSuite.TLS_DHE_DSS_WITH_AES_128_GCM_SHA256, 0}, true, new byte[]{1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 1, 0, 1}, objArr6);
String str2 = (String) objArr6[0];
Object[] objArr7 = new Object[1];
aB(new int[]{184462942, 918803147, 1000587678, 1485976309, 1443366421, -2128851190, -1180701624, -560870789, -958050001, -381906957, -1915551209, 703287391, 1296241408, 1676418796, -19605956, -151621245, 1128721440, 478325763, -1146889075, -1254102850, -368359084, 1840891944, 1818051849, -1284968878, -1413102974, 451357564, -2020489050, -825195487, -196202074, -1859103422, 1993976081, -1545572360}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.facebook_app_id).substring(0, 15).codePointAt(6) + 16, objArr7);
String str3 = (String) objArr7[0];
Object[] objArr8 = new Object[1];
aA(new int[]{CipherSuite.TLS_RSA_PSK_WITH_AES_128_CBC_SHA, 74, 0, 0}, true, new byte[]{1, 1, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0, 1, 1, 1, 1, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0}, objArr8);
String str4 = (String) objArr8[0];
Object[] objArr9 = new Object[1];
aA(new int[]{222, 5, 12, 0}, true, new byte[]{0, 0, 0, 0, 1}, objArr9);
String str5 = (String) objArr9[0];
Object[] objArr10 = new Object[1];
aB(new int[]{-232885473, -1460237694, -442069753, -1587502006, 418951385, -346682060, 590389513, -1207071870, -1718850518, 1838889739, 1527923545, -562247456, -125977220, -1962230810, 1999095246, -119157706, 1781461341, 1260855447}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(11) - 74, 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(View.MeasureSpec.getSize(0) + 487, 5 - (KeyEvent.getMaxKeyCode() >> 16), (char) ExpandableListView.getPackedPositionGroup(0L))).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);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
}
super.onCreate(bundle);
setContentView(R.layout.2131558676);
ButterKnife.Dg_(this);
this.presenter.e((bVB) this);
try {
Uri parse = Uri.parse(getIntent().getExtras().getString("PHOTO_PATH"));
CropView cropView = this.cropView;
if (cropView.e == null) {
cropView.e = new CropView.RVV(cropView);
}
CropView.RVV rvv = cropView.e;
fKN fkn = new fKN(Glide.e(this.cropView.getContext()));
rcp.RVV rvv2 = new rcp.RVV(rvv.d);
rvv2.d = fkn;
if (rvv2.a.getWidth() == 0) {
int i4 = m + 75;
k = i4 % 128;
int i5 = i4 % 2;
if (rvv2.a.getHeight() == 0) {
rvv2.a(parse);
return;
}
}
rvv2.d(parse);
} catch (NullPointerException | OutOfMemoryError e) {
guQ.e(e);
setResult(0, new Intent());
finish();
}
}
private static void aB(int[] iArr, int i, Object[] objArr) {
int i2;
int i3 = 2;
int i4 = 2 % 2;
C4403bZM c4403bZM = new C4403bZM();
char[] cArr = new char[4];
char[] cArr2 = new char[iArr.length * 2];
int[] iArr2 = f7585o;
int i5 = 729798706;
int i6 = 1;
int i7 = 0;
if (iArr2 != null) {
int length = iArr2.length;
int[] iArr3 = new int[length];
int i8 = 0;
while (i8 < length) {
int i9 = $10 + 1;
$11 = i9 % 128;
int i10 = i9 % i3;
try {
Object[] objArr2 = {Integer.valueOf(iArr2[i8])};
Object obj = xzZ.y.get(729798706);
if (obj == null) {
obj = ((Class) xzZ.c(ExpandableListView.getPackedPositionChild(0L) + 16, (ViewConfiguration.getLongPressTimeout() >> 16) + 5, (char) (58135 - (ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1))))).getMethod("i", Integer.TYPE);
xzZ.y.put(729798706, obj);
}
iArr3[i8] = ((Integer) ((Method) obj).invoke(null, objArr2)).intValue();
i8++;
i3 = 2;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
iArr2 = iArr3;
}
int length2 = iArr2.length;
int[] iArr4 = new int[length2];
int[] iArr5 = f7585o;
if (iArr5 != null) {
int i11 = $11 + 123;
$10 = i11 % 128;
int i12 = i11 % 2;
int length3 = iArr5.length;
int[] iArr6 = new int[length3];
int i13 = 0;
while (i13 < length3) {
Object[] objArr3 = new Object[i6];
objArr3[i7] = Integer.valueOf(iArr5[i13]);
Object obj2 = xzZ.y.get(Integer.valueOf(i5));
if (obj2 != null) {
i2 = i5;
} else {
Class cls = (Class) xzZ.c(16 - (ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), ExpandableListView.getPackedPositionChild(0L) + 6, (char) (KeyEvent.normalizeMetaState(i7) + 58134));
Class<?>[] clsArr = new Class[1];
clsArr[i7] = Integer.TYPE;
obj2 = cls.getMethod("i", clsArr);
i2 = 729798706;
xzZ.y.put(729798706, obj2);
}
iArr6[i13] = ((Integer) ((Method) obj2).invoke(null, objArr3)).intValue();
i13++;
i5 = i2;
i6 = 1;
i7 = 0;
}
iArr5 = iArr6;
}
int i14 = i7;
System.arraycopy(iArr5, i14, iArr4, i14, length2);
c4403bZM.b = i14;
while (c4403bZM.b < iArr.length) {
cArr[i14] = (char) (iArr[c4403bZM.b] >> 16);
cArr[1] = (char) iArr[c4403bZM.b];
cArr[2] = (char) (iArr[c4403bZM.b + 1] >> 16);
cArr[3] = (char) iArr[c4403bZM.b + 1];
c4403bZM.e = (cArr[0] << 16) + cArr[1];
c4403bZM.a = (cArr[2] << 16) + cArr[3];
C4403bZM.d(iArr4);
int i15 = 0;
for (int i16 = 16; i15 < i16; i16 = 16) {
int i17 = $10 + 13;
$11 = i17 % 128;
int i18 = i17 % 2;
c4403bZM.e ^= iArr4[i15];
Object[] objArr4 = {c4403bZM, Integer.valueOf(C4403bZM.d(c4403bZM.e)), c4403bZM, c4403bZM};
Object obj3 = xzZ.y.get(-1196964548);
if (obj3 == null) {
Class cls2 = (Class) xzZ.c((SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)) + 117, 5 - (ViewConfiguration.getMinimumFlingVelocity() >> 16), (char) (TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)));
byte b = (byte) 0;
byte b2 = b;
Object[] objArr5 = new Object[1];
aC(b, b2, (byte) (b2 | 33), objArr5);
obj3 = cls2.getMethod((String) objArr5[0], Object.class, Integer.TYPE, Object.class, Object.class);
xzZ.y.put(-1196964548, obj3);
}
int intValue = ((Integer) ((Method) obj3).invoke(null, objArr4)).intValue();
c4403bZM.e = c4403bZM.a;
c4403bZM.a = intValue;
i15++;
}
int i19 = c4403bZM.e;
c4403bZM.e = c4403bZM.a;
c4403bZM.a = i19;
c4403bZM.a ^= iArr4[16];
c4403bZM.e ^= iArr4[17];
int i20 = c4403bZM.e;
int i21 = c4403bZM.a;
cArr[0] = (char) (c4403bZM.e >>> 16);
cArr[1] = (char) c4403bZM.e;
cArr[2] = (char) (c4403bZM.a >>> 16);
cArr[3] = (char) c4403bZM.a;
C4403bZM.d(iArr4);
cArr2[c4403bZM.b * 2] = cArr[0];
cArr2[(c4403bZM.b * 2) + 1] = cArr[1];
cArr2[(c4403bZM.b * 2) + 2] = cArr[2];
cArr2[(c4403bZM.b * 2) + 3] = cArr[3];
try {
Object[] objArr6 = {c4403bZM, c4403bZM};
Object obj4 = xzZ.y.get(1914371176);
if (obj4 == null) {
Class cls3 = (Class) xzZ.c(TextUtils.indexOf((CharSequence) "", '0') + 99, (ViewConfiguration.getFadingEdgeLength() >> 16) + 5, (char) ((ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)) - 1));
byte b3 = (byte) 0;
byte b4 = b3;
Object[] objArr7 = new Object[1];
aC(b3, b4, (byte) (b4 | Ascii.US), objArr7);
obj4 = cls3.getMethod((String) objArr7[0], Object.class, Object.class);
xzZ.y.put(1914371176, obj4);
}
((Method) obj4).invoke(null, objArr6);
i14 = 0;
} catch (Throwable th2) {
Throwable cause2 = th2.getCause();
if (cause2 == null) {
throw th2;
}
throw cause2;
}
}
String str = new String(cArr2, 0, i);
int i22 = $11 + 109;
$10 = i22 % 128;
if (i22 % 2 == 0) {
objArr[0] = str;
} else {
int i23 = 99 / 0;
objArr[0] = str;
}
}
@OnClick
public void cancelClick() {
int i = 2 % 2;
int i2 = m + 35;
k = i2 % 128;
int i3 = i2 % 2;
finish();
int i4 = k + 63;
m = i4 % 128;
if (i4 % 2 == 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
@Override // androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, android.app.Activity
public void onRequestPermissionsResult(int i, String[] strArr, int[] iArr) {
int i2 = 2 % 2;
int i3 = m + 97;
k = i3 % 128;
if (i3 % 2 == 0) {
super.onRequestPermissionsResult(i, strArr, iArr);
C11186eab.c(this, i, iArr);
int i4 = 34 / 0;
} else {
super.onRequestPermissionsResult(i, strArr, iArr);
C11186eab.c(this, i, iArr);
}
}
@OnClick
public void usePhotoClick() {
int i = 2 % 2;
int i2 = m + 43;
k = i2 % 128;
int i3 = i2 % 2;
if (Build.VERSION.SDK_INT >= 33) {
int i4 = k + 59;
m = i4 % 128;
if (i4 % 2 == 0) {
g();
return;
} else {
g();
throw null;
}
}
C11186eab.e(this);
}
public final void g() {
int i = 2 % 2;
AbstractC13163fSk.fromCallable(new Callable(this, new File(getCacheDir(), "scb_merchant_crop.jpg")) { // from class: o.eaa
private File b;
private MwPartnerCropPhotoActivity c;
@Override // java.util.concurrent.Callable
public final Object call() {
return MwPartnerCropPhotoActivity.d(this.c, this.b);
}
{
this.c = this;
this.b = r2;
}
}).subscribeOn(C13417fZt.c()).observeOn(fRR.e()).subscribe(new fSQ(this) { // from class: o.dZY
private MwPartnerCropPhotoActivity c;
@Override // o.fSQ
public final void c(Object obj) {
MwPartnerCropPhotoActivity.e(this.c, (String) obj);
}
{
this.c = this;
}
}, new fSQ() { // from class: o.dZX
@Override // o.fSQ
public final void c(Object obj) {
MwPartnerCropPhotoActivity.h();
}
});
int i2 = m + 33;
k = i2 % 128;
int i3 = i2 % 2;
}
public static /* synthetic */ void h() throws Throwable {
int i = 2 % 2;
int i2 = m + 119;
k = i2 % 128;
int i3 = i2 % 2;
guQ.a("Merchant Wallet doing crop image is fail.", new Object[0]);
int i4 = k + 95;
m = i4 % 128;
if (i4 % 2 != 0) {
int i5 = 72 / 0;
}
}
public static void f() {
int i = 2 % 2;
int i2 = m + 97;
k = i2 % 128;
if (i2 % 2 == 0) {
guQ.b("onNeverAskAgain", new Object[0]);
} else {
guQ.b("onNeverAskAgain", new Object[0]);
}
}
@Override // o.InterfaceC6657cZX
public final void c(String str) {
int i = 2 % 2;
Intent intent = new Intent();
intent.putExtra("PHOTO_PATH", str);
setResult(-1, intent);
finish();
int i2 = k + 85;
m = i2 % 128;
if (i2 % 2 != 0) {
throw null;
}
}
@Override // o.InterfaceC6657cZX
public final void e() {
int i = 2 % 2;
setResult(0, new Intent());
finish();
int i2 = k + 11;
m = i2 % 128;
if (i2 % 2 != 0) {
throw null;
}
}
private static void aA(int[] iArr, boolean z, byte[] bArr, Object[] objArr) {
int i;
String str;
String str2 = "";
int i2 = 2 % 2;
TVH tvh = new TVH();
int i3 = 0;
int i4 = iArr[0];
int i5 = 1;
int i6 = iArr[1];
int i7 = iArr[2];
int i8 = iArr[3];
char[] cArr = l;
long j = 0;
if (cArr != null) {
int i9 = $11 + 47;
$10 = i9 % 128;
int i10 = i9 % 2;
int length = cArr.length;
char[] cArr2 = new char[length];
int i11 = 0;
while (i11 < length) {
try {
Object[] objArr2 = new Object[i5];
objArr2[i3] = Integer.valueOf(cArr[i11]);
Object obj = xzZ.y.get(1645349359);
if (obj != null) {
str = str2;
} else {
Class cls = (Class) xzZ.c(TextUtils.indexOf(str2, str2, i3) + 223, ExpandableListView.getPackedPositionChild(j) + 6, (char) (41977 - (CdmaCellLocation.convertQuartSecToDecDegrees(i3) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(i3) == 0.0d ? 0 : -1))));
byte b = (byte) i3;
byte b2 = b;
str = str2;
Object[] objArr3 = new Object[1];
aC(b, b2, b2, objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
xzZ.y.put(1645349359, obj);
}
cArr2[i11] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
i11++;
str2 = str;
i3 = 0;
i5 = 1;
j = 0;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
cArr = cArr2;
}
char[] cArr3 = new char[i6];
System.arraycopy(cArr, i4, cArr3, 0, i6);
if (bArr != null) {
int i12 = $11 + 35;
$10 = i12 % 128;
int i13 = i12 % 2;
char[] cArr4 = new char[i6];
tvh.c = 0;
char c = 0;
while (tvh.c < i6) {
if (bArr[tvh.c] == 1) {
int i14 = tvh.c;
Object[] objArr4 = {Integer.valueOf(cArr3[tvh.c]), Integer.valueOf(c)};
Object obj2 = xzZ.y.get(850398076);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(502 - View.getDefaultSize(0, 0), 5 - Drawable.resolveOpacity(0, 0), (char) (54 - Gravity.getAbsoluteGravity(0, 0)))).getMethod("F", Integer.TYPE, Integer.TYPE);
xzZ.y.put(850398076, obj2);
}
cArr4[i14] = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue();
} else {
int i15 = tvh.c;
Object[] objArr5 = {Integer.valueOf(cArr3[tvh.c]), Integer.valueOf(c)};
Object obj3 = xzZ.y.get(1084521042);
if (obj3 == null) {
obj3 = ((Class) xzZ.c((ViewConfiguration.getPressedStateDuration() >> 16) + 15, (ViewConfiguration.getWindowTouchSlop() >> 8) + 5, (char) (58134 - (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1))))).getMethod("H", Integer.TYPE, Integer.TYPE);
xzZ.y.put(1084521042, obj3);
}
cArr4[i15] = ((Character) ((Method) obj3).invoke(null, objArr5)).charValue();
}
c = cArr4[tvh.c];
Object[] objArr6 = {tvh, tvh};
Object obj4 = xzZ.y.get(1698744941);
if (obj4 == null) {
Class cls2 = (Class) xzZ.c(401 - ExpandableListView.getPackedPositionChild(0L), (ViewConfiguration.getJumpTapTimeout() >> 16) + 5, (char) ((CdmaCellLocation.convertQuartSecToDecDegrees(0) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(0) == 0.0d ? 0 : -1)) + 21608));
byte b3 = (byte) 0;
byte b4 = b3;
Object[] objArr7 = new Object[1];
aC(b3, b4, (byte) (b4 + 2), objArr7);
obj4 = cls2.getMethod((String) objArr7[0], Object.class, Object.class);
xzZ.y.put(1698744941, obj4);
}
((Method) obj4).invoke(null, objArr6);
}
cArr3 = cArr4;
}
if (i8 > 0) {
char[] cArr5 = new char[i6];
i = 0;
System.arraycopy(cArr3, 0, cArr5, 0, i6);
int i16 = i6 - i8;
System.arraycopy(cArr5, 0, cArr3, i16, i8);
System.arraycopy(cArr5, i8, cArr3, 0, i16);
} else {
i = 0;
}
if (z) {
char[] cArr6 = new char[i6];
while (true) {
tvh.c = i;
if (tvh.c >= i6) {
break;
}
int i17 = $10 + 91;
$11 = i17 % 128;
int i18 = i17 % 2;
cArr6[tvh.c] = cArr3[(i6 - tvh.c) - 1];
i = tvh.c + 1;
}
cArr3 = cArr6;
}
if (i7 > 0) {
int i19 = 0;
while (true) {
tvh.c = i19;
if (tvh.c >= i6) {
break;
}
cArr3[tvh.c] = (char) (cArr3[tvh.c] - iArr[2]);
i19 = tvh.c + 1;
}
}
objArr[0] = new String(cArr3);
}
@Override // o.AbstractActivityC8881dYp, 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(new int[]{-1348943340, 519890987, -960643592, 764872167, 1355790950, 1801999296, -2096550807, 584960901, 9798461, 1892102498, 265365850, 1306709840, 362542551, 1418755981}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.common_google_play_services_update_text).substring(0, 5).length() + 21, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
aA(new int[]{18, 18, 42, 0}, false, new byte[]{1, 0, 1, 0, 1, 1, 0, 1, 1, 0, 0, 1, 0, 0, 1, 1, 0, 1}, objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
int i2 = k + 21;
m = i2 % 128;
if (i2 % 2 != 0) {
int i3 = 4 / 5;
}
}
if (baseContext != null) {
baseContext = baseContext.getApplicationContext();
}
if (baseContext != null) {
int i4 = m + 67;
k = i4 % 128;
int i5 = i4 % 2;
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(492 - (ViewConfiguration.getTouchSlop() >> 8), (ViewConfiguration.getFadingEdgeLength() >> 16) + 5, (char) (Process.getGidForName("") + 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(487 - (ViewConfiguration.getMinimumFlingVelocity() >> 16), (ViewConfiguration.getDoubleTapTimeout() >> 16) + 5, (char) View.combineMeasuredStates(0, 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.AbstractActivityC8881dYp, 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;
Context baseContext = getBaseContext();
Object obj = null;
if (baseContext == null) {
int i2 = k + 111;
m = i2 % 128;
int i3 = i2 % 2;
Object[] objArr = new Object[1];
aB(new int[]{-1348943340, 519890987, -960643592, 764872167, 1355790950, 1801999296, -2096550807, 584960901, 9798461, 1892102498, 265365850, 1306709840, 362542551, 1418755981}, View.MeasureSpec.getSize(0) + 26, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
aA(new int[]{18, 18, 42, 0}, false, new byte[]{1, 0, 1, 0, 1, 1, 0, 1, 1, 0, 0, 1, 0, 0, 1, 1, 0, 1}, objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
}
if (baseContext != null) {
baseContext = baseContext.getApplicationContext();
}
if (baseContext != null) {
try {
Object obj2 = xzZ.y.get(125943855);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(Color.green(0) + 492, 5 - Drawable.resolveOpacity(0, 0), (char) ExpandableListView.getPackedPositionType(0L))).getMethod("a", null);
xzZ.y.put(125943855, obj2);
}
Object invoke = ((Method) obj2).invoke(null, null);
Object[] objArr3 = {baseContext};
Object obj3 = xzZ.y.get(1633456013);
if (obj3 == null) {
obj3 = ((Class) xzZ.c((ViewConfiguration.getMaximumDrawingCacheSize() >> 24) + 487, TextUtils.indexOf((CharSequence) "", '0') + 6, (char) (ViewConfiguration.getWindowTouchSlop() >> 8))).getMethod("c", Context.class);
xzZ.y.put(1633456013, obj3);
}
((Method) obj3).invoke(invoke, objArr3);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
super.onPause();
int i4 = k + 37;
m = i4 % 128;
if (i4 % 2 == 0) {
return;
}
obj.hashCode();
throw null;
}
@Override // o.AbstractActivityC8881dYp, 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) {
int i = 2 % 2;
int i2 = m + 21;
k = i2 % 128;
int i3 = i2 % 2;
super.attachBaseContext(context);
Object[] objArr = new Object[1];
aA(new int[]{0, 18, 4, 6}, true, null, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
aB(new int[]{-1457996295, 1925237962, -1900166694, 155678151}, 5 - (ViewConfiguration.getWindowTouchSlop() >> 8), 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 applicationContext = context != null ? context.getApplicationContext() : context;
if (applicationContext != null) {
int i4 = k + 83;
m = i4 % 128;
int i5 = i4 % 2;
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(492 - ((Process.getThreadPriority(0) + 20) >> 6), 4 - MotionEvent.axisFromString(""), (char) View.MeasureSpec.getSize(0))).getMethod("a", null);
xzZ.y.put(125943855, obj);
}
Object invoke = ((Method) obj).invoke(null, null);
Object[] objArr3 = new Object[1];
aA(new int[]{36, 48, 70, 21}, false, new byte[]{1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 1, 1, 1, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 0, 1}, objArr3);
String str = (String) objArr3[0];
Object[] objArr4 = new Object[1];
aA(new int[]{84, 64, CipherSuite.TLS_DHE_DSS_WITH_AES_128_GCM_SHA256, 0}, true, new byte[]{1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 1, 0, 1}, objArr4);
String str2 = (String) objArr4[0];
Object[] objArr5 = new Object[1];
aB(new int[]{184462942, 918803147, 1000587678, 1485976309, 1443366421, -2128851190, -1180701624, -560870789, -958050001, -381906957, -1915551209, 703287391, 1296241408, 1676418796, -19605956, -151621245, 1128721440, 478325763, -1146889075, -1254102850, -368359084, 1840891944, 1818051849, -1284968878, -1413102974, 451357564, -2020489050, -825195487, -196202074, -1859103422, 1993976081, -1545572360}, 65 - (SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1)), objArr5);
String str3 = (String) objArr5[0];
Object[] objArr6 = new Object[1];
aA(new int[]{CipherSuite.TLS_RSA_PSK_WITH_AES_128_CBC_SHA, 74, 0, 0}, true, new byte[]{1, 1, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0, 1, 1, 1, 1, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0}, objArr6);
String str4 = (String) objArr6[0];
Object[] objArr7 = new Object[1];
aA(new int[]{222, 5, 12, 0}, true, new byte[]{0, 0, 0, 0, 1}, objArr7);
String str5 = (String) objArr7[0];
Object[] objArr8 = new Object[1];
aB(new int[]{-232885473, -1460237694, -442069753, -1587502006, 418951385, -346682060, 590389513, -1207071870, -1718850518, 1838889739, 1527923545, -562247456, -125977220, -1962230810, 1999095246, -119157706, 1781461341, 1260855447}, 37 - (SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1)), objArr8);
Object[] objArr9 = {applicationContext, str, str2, str3, str4, true, str5, (String) objArr8[0]};
Object obj2 = xzZ.y.get(1656189573);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(ExpandableListView.getPackedPositionType(0L) + 487, TextUtils.getOffsetAfter("", 0) + 5, (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;
}
}
}
}
public static /* synthetic */ String d(MwPartnerCropPhotoActivity mwPartnerCropPhotoActivity, File file) {
Bitmap bitmap;
int i = 2 % 2;
CropView cropView = mwPartnerCropPhotoActivity.cropView;
if (cropView.e == null) {
cropView.e = new CropView.RVV(cropView);
}
rcp.IeS ieS = new rcp.IeS(cropView.e.d);
C0413GaN.e();
ieS.a = 80;
Bitmap.CompressFormat compressFormat = Bitmap.CompressFormat.JPEG;
C0413GaN.b(compressFormat, "format == null");
ieS.b = compressFormat;
CropView cropView2 = ieS.e;
Bitmap bitmap2 = cropView2.b;
if (bitmap2 == null) {
int i2 = k + 47;
m = i2 % 128;
bitmap = null;
if (i2 % 2 != 0) {
throw null;
}
} else {
Bitmap.Config config = bitmap2.getConfig();
if (config == null) {
int i3 = k + 1;
m = i3 % 128;
int i4 = i3 % 2;
config = Bitmap.Config.ARGB_8888;
}
int i5 = cropView2.a.j;
Bitmap createBitmap = Bitmap.createBitmap(cropView2.a.h, i5, config);
Canvas canvas = new Canvas(createBitmap);
canvas.translate(-((cropView2.getRight() - r4) / 2), -((cropView2.getBottom() - i5) / 2));
cropView2.OA_(canvas);
bitmap = createBitmap;
}
C0413GaN.OK_(bitmap, ieS.b, ieS.a, file);
return file.getPath();
}
public static /* synthetic */ void e(MwPartnerCropPhotoActivity mwPartnerCropPhotoActivity, String str) {
int i = 2 % 2;
File file = new File(str);
String obj = Uri.fromFile(file).toString();
if (mwPartnerCropPhotoActivity.cropView.b == null) {
mwPartnerCropPhotoActivity.setResult(0, new Intent());
mwPartnerCropPhotoActivity.finish();
return;
}
bVB bvb = mwPartnerCropPhotoActivity.presenter;
if ((file.length() / RealWebSocket.DEFAULT_MINIMUM_DEFLATE_SIZE) / RealWebSocket.DEFAULT_MINIMUM_DEFLATE_SIZE > 7) {
ZI.IeS ieS = new ZI.IeS() { // from class: o.bVy
@Override // o.ZI.IeS
public final void e(Object obj2) {
((InterfaceC6657cZX) obj2).e();
}
};
if (bvb.f != 0) {
int i2 = k;
int i3 = i2 + 41;
m = i3 % 128;
int i4 = i3 % 2;
int i5 = i2 + 87;
m = i5 % 128;
int i6 = i5 % 2;
ieS.e(bvb.f);
}
int i7 = k + 39;
m = i7 % 128;
if (i7 % 2 != 0) {
int i8 = 65 / 0;
return;
}
return;
}
ZI.IeS ieS2 = new ZI.IeS(obj) { // from class: o.bVx
private String a;
@Override // o.ZI.IeS
public final void e(Object obj2) {
((InterfaceC6657cZX) obj2).c(this.a);
}
{
this.a = obj;
}
};
if (bvb.f != 0) {
int i9 = k + 101;
int i10 = i9 % 128;
m = i10;
int i11 = i9 % 2;
int i12 = i10 + 117;
k = i12 % 128;
if (i12 % 2 != 0) {
ieS2.e(bvb.f);
return;
}
ieS2.e(bvb.f);
Object obj2 = null;
obj2.hashCode();
throw null;
}
}
@Override // o.AbstractActivityC8881dYp, 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 = m + 107;
k = i2 % 128;
int i3 = i2 % 2;
super.onStart();
int i4 = k + 75;
m = i4 % 128;
int i5 = i4 % 2;
}
public static Intent aiB_(Context context, String str) {
Object[] objArr = {context, str};
return (Intent) a(objArr);
}
}