what-the-bank/sources/com/scb/phone/view/activity/mediaimage/MediaImagePreviewActivity.java

925 lines
44 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.activity.mediaimage;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.PointF;
import android.graphics.drawable.Drawable;
import android.media.AudioTrack;
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.view.ViewGroup;
import android.widget.ExpandableListView;
import android.widget.RelativeLayout;
import android.widget.TextView;
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.scb.phone.view.activity.mediaimage.MediaImagePreviewActivity;
import com.scb.phone.view.custom.common.CustomDialog;
import com.scb.phone.view.util.plugins.camera.view.CropOverlayView;
import com.scb.phone.view.util.plugins.camera.view.ScaleImageView;
import java.lang.reflect.Method;
import net.sf.scuba.smartcards.ISO7816;
import o.AbstractC14961gcz;
import o.C0693Mj;
import o.C12914fKz;
import o.C14866gag;
import o.C14957gcv;
import o.C4188bSm;
import o.C8828dXL;
import o.InterfaceC13391fZD;
import o.InterfaceC13393fZL;
import o.InterfaceC14890gbN;
import o.InterfaceC15577gud;
import o.KIE;
import o.RI;
import o.cZS;
import o.fZZ;
import o.guQ;
import o.qeC;
import o.xzZ;
import org.bouncycastle.crypto.tls.CipherSuite;
import org.jnbis.internal.NistHelper;
/* loaded from: classes5.dex */
public final class MediaImagePreviewActivity extends Hilt_MediaImagePreviewActivity implements cZS {
public static final LWm l;
private static short[] p;
private static int q;
private static int r;
private static byte[] s;
private static int t;
private static int u;
private static int y;
private int k;
private RI m;
@InterfaceC13391fZD
public C4188bSm mediaImagePresenter;
/* renamed from: o, reason: collision with root package name */
private final InterfaceC13393fZL f7564o;
private static final byte[] $$p = {75, ISO7816.INS_UPDATE_RECORD, 11, 77};
private static final int $$q = 124;
private static int $10 = 0;
private static int $11 = 1;
private static int w = 1;
/* JADX WARN: Removed duplicated region for block: B:10:0x0027 */
/* JADX WARN: Removed duplicated region for block: B:7:0x001f */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0027 -> B:4:0x002c). 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(int r6, int r7, byte r8, java.lang.Object[] r9) {
/*
byte[] r0 = com.scb.phone.view.activity.mediaimage.MediaImagePreviewActivity.$$p
int r6 = 110 - r6
int r7 = r7 * 3
int r1 = 1 - r7
int r8 = r8 * 4
int r8 = r8 + 4
byte[] r1 = new byte[r1]
r2 = 0
int r7 = 0 - r7
if (r0 != 0) goto L17
r6 = r7
r3 = r8
r4 = r2
goto L2c
L17:
r3 = r2
L18:
byte r4 = (byte) r6
r1[r3] = r4
int r4 = r3 + 1
if (r3 != r7) goto L27
java.lang.String r6 = new java.lang.String
r6.<init>(r1, r2)
r9[r2] = r6
return
L27:
r3 = r0[r8]
r5 = r3
r3 = r8
r8 = r5
L2c:
int r8 = -r8
int r6 = r6 + r8
int r8 = r3 + 1
r3 = r4
goto L18
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.mediaimage.MediaImagePreviewActivity.aC(int, int, byte, java.lang.Object[]):void");
}
public static /* synthetic */ Object e(Object[] objArr, int i, int i2, int i3) {
Object obj;
int i4 = ~i;
int i5 = ~i2;
int i6 = ~(i4 | i5);
int i7 = ~i3;
int i8 = (~(i4 | i7)) | i6 | (~(i5 | i7));
int i9 = i | i2;
int i10 = (i * 85) + (i2 * 85) + ((i8 | (~(i9 | i3))) * (-84));
int i11 = i | (~(i3 | i5));
int i12 = ~(i2 | i7);
int i13 = i10 + ((i11 | i12) * (-84)) + (((~i9) | i12) * 84);
if (i13 == 1) {
return c(objArr);
}
try {
if (i13 == 2) {
MediaImagePreviewActivity mediaImagePreviewActivity = (MediaImagePreviewActivity) objArr[0];
int i14 = 2 % 2;
Context baseContext = mediaImagePreviewActivity.getBaseContext();
if (baseContext == null) {
int i15 = u + 73;
w = i15 % 128;
int i16 = i15 % 2;
Object[] objArr2 = new Object[1];
aB(((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.new_deejung_transfer_speedy_cash_about).substring(273, 274).codePointAt(0) - 6, new char[]{65534, 1, 65534, 11, 1, 15, '\f', 6, 1, 65483, 65534, '\r', '\r', 65483, 65502, 0, 17, 6, 19, 6, 17, 22, 65521, 5, 15, 2}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion + 107, false, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 32, objArr2);
Class<?> cls = Class.forName((String) objArr2[0]);
Object[] objArr3 = new Object[1];
aA((short) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().length() - 13), 960987064 - (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)), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.etb_set_detail_concent_contactual_acknowledge).substring(CipherSuite.TLS_RSA_PSK_WITH_3DES_EDE_CBC_SHA, CipherSuite.TLS_RSA_PSK_WITH_AES_128_CBC_SHA).length() + 11, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 286215029, (byte) (TextUtils.lastIndexOf("", '0', 0, 0) + 1), objArr3);
baseContext = (Context) cls.getMethod((String) objArr3[0], new Class[0]).invoke(null, null);
int i17 = u + 75;
w = i17 % 128;
int i18 = i17 % 2;
}
if (baseContext != null) {
baseContext = baseContext.getApplicationContext();
}
if (baseContext != null) {
int i19 = w + 47;
u = i19 % 128;
int i20 = i19 % 2;
Object obj2 = xzZ.y.get(125943855);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(View.MeasureSpec.getSize(0) + 492, 5 - (ViewConfiguration.getKeyRepeatTimeout() >> 16), (char) (ViewConfiguration.getMaximumFlingVelocity() >> 16))).getMethod("a", null);
xzZ.y.put(125943855, obj2);
}
obj = null;
Object invoke = ((Method) obj2).invoke(null, null);
Object[] objArr4 = {baseContext};
Object obj3 = xzZ.y.get(1378719468);
if (obj3 == null) {
obj3 = ((Class) xzZ.c(487 - (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)), TextUtils.getOffsetBefore("", 0) + 5, (char) Gravity.getAbsoluteGravity(0, 0))).getMethod(KtaJsonExactionHelper.OBJECT, Context.class);
xzZ.y.put(1378719468, obj3);
}
((Method) obj3).invoke(invoke, objArr4);
} else {
obj = null;
}
super.onResume();
return obj;
}
if (i13 != 3) {
return e(objArr);
}
MediaImagePreviewActivity mediaImagePreviewActivity2 = (MediaImagePreviewActivity) objArr[0];
Context context = (Context) objArr[1];
int i21 = 2 % 2;
int i22 = u + 87;
w = i22 % 128;
int i23 = i22 % 2;
super.attachBaseContext(context);
Object[] objArr5 = new Object[1];
aA((short) Color.blue(0), 960987043 - View.combineMeasuredStates(0, 0), (ViewConfiguration.getFadingEdgeLength() >> 16) + 12, (-286214997) + (ViewConfiguration.getEdgeSlop() >> 16), (byte) (ViewConfiguration.getScrollBarFadeDuration() >> 16), objArr5);
Class<?> cls2 = Class.forName((String) objArr5[0]);
Object[] objArr6 = new Object[1];
aA((short) View.combineMeasuredStates(0, 0), 960987060 - (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)), (-1) - (KeyEvent.getMaxKeyCode() >> 16), (-286214985) - (CdmaCellLocation.convertQuartSecToDecDegrees(0) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(0) == 0.0d ? 0 : -1)), (byte) ((ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) - 1), objArr6);
int intValue = ((Integer) cls2.getDeclaredMethod((String) objArr6[0], new Class[0]).invoke(null, new Object[0])).intValue() % 100000;
if (intValue < 99000 || intValue > 99999) {
if (context != null) {
context = context.getApplicationContext();
}
if (context != null) {
int i24 = u + 115;
w = i24 % 128;
int i25 = i24 % 2;
Object obj4 = xzZ.y.get(125943855);
if (obj4 == null) {
obj4 = ((Class) xzZ.c(492 - Drawable.resolveOpacity(0, 0), (Process.myPid() >> 22) + 5, (char) View.MeasureSpec.makeMeasureSpec(0, 0))).getMethod("a", null);
xzZ.y.put(125943855, obj4);
}
Object invoke2 = ((Method) obj4).invoke(null, null);
Object[] objArr7 = new Object[1];
aB(48 - (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)), new char[]{65516, 65515, 65521, 65516, 65517, 26, 65522, 31, 65519, NistHelper.SEP_FS, 65518, NistHelper.SEP_FS, 65522, 29, 65514, 65514, 65518, 65521, 65514, 31, 30, 27, 27, 65515, 65517, 65522, 65518, NistHelper.SEP_FS, 65521, 30, 65517, 65514, 65520, 65517, 27, 65516, NistHelper.SEP_FS, 31, 26, 27, 65522, 65515, 26, 65516, 27, 65516, 65521, 27}, (SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)) + 112, false, 31 - View.MeasureSpec.getMode(0), objArr7);
String str = (String) objArr7[0];
Object[] objArr8 = new Object[1];
aA((short) (1 - (ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1))), 960987081 + (ViewConfiguration.getMaximumFlingVelocity() >> 16), Gravity.getAbsoluteGravity(0, 0) + 58, (-286214992) - (Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)), (byte) ((-1) - TextUtils.indexOf((CharSequence) "", '0', 0)), objArr8);
String str2 = (String) objArr8[0];
Object[] objArr9 = new Object[1];
aA((short) TextUtils.getOffsetBefore("", 0), 960987143 + (AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), (ViewConfiguration.getEdgeSlop() >> 16) + 58, (-286214997) + (Process.myTid() >> 22), (byte) View.getDefaultSize(0, 0), objArr9);
String str3 = (String) objArr9[0];
Object[] objArr10 = new Object[1];
aB((ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)) + 73, new char[]{0, '\n', 65535, 7, 1, 16, 3, 11, 11, '\r', 1, 11, 65535, 7, 17, 65485, 65485, 65496, 17, 14, 18, 18, 6, 17, 18, '\f', 3, 20, 3, 65485, 65488, 20, 65485, 18, 17, 3, 5, '\f', 7, 65485, 7, 14, 65535, 65485, 11, '\r', 1, 65484, 3, 16, 65535, 19, 15, 17, 2, 16, 65535, 19, 5, 65484, 18, 17, 65535, 1, 18, 65535, 3, 16, 6, 18, 65484, '\t', '\f', 65535}, (ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)) + CipherSuite.TLS_PSK_WITH_3DES_EDE_CBC_SHA, true, (ViewConfiguration.getLongPressTimeout() >> 16) + 23, objArr10);
String str4 = (String) objArr10[0];
Object[] objArr11 = new Object[1];
aB(5 - KeyEvent.getDeadChar(0, 0), new char[]{65532, 65534, 7, 65532, 6}, 92 - (ViewConfiguration.getLongPressTimeout() >> 16), false, 2 - View.MeasureSpec.makeMeasureSpec(0, 0), objArr11);
String str5 = (String) objArr11[0];
Object[] objArr12 = new Object[1];
aB(36 - Color.alpha(0), new char[]{65520, 65519, 65520, 65516, ' ', ' ', NistHelper.SEP_FS, 65517, 65519, 31, 65524, 65519, 65515, 65512, 65521, 65515, ' ', 29, 65512, 65519, 65517, 65516, 65516, 65512, NistHelper.SEP_FS, 29, ' ', 30, 65512, 65517, 30, 65517, NistHelper.SEP_FS, 65522, ' ', 30}, 110 - TextUtils.lastIndexOf("", '0'), false, View.MeasureSpec.makeMeasureSpec(0, 0) + 5, objArr12);
Object[] objArr13 = {context, str, str2, str3, str4, true, str5, (String) objArr12[0]};
Object obj5 = xzZ.y.get(1656189573);
if (obj5 == null) {
obj5 = ((Class) xzZ.c((ViewConfiguration.getKeyRepeatDelay() >> 16) + 487, ((byte) KeyEvent.getModifierMetaStateMask()) + 6, (char) (TextUtils.lastIndexOf("", '0', 0, 0) + 1))).getMethod("e", Context.class, String.class, String.class, String.class, String.class, Boolean.TYPE, String.class, String.class);
xzZ.y.put(1656189573, obj5);
}
((Method) obj5).invoke(invoke2, objArr13);
}
}
return null;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause != null) {
throw cause;
}
throw th;
}
}
/* JADX WARN: Removed duplicated region for block: B:18:0x0092 */
/* JADX WARN: Removed duplicated region for block: B:22:0x0112 */
/* JADX WARN: Removed duplicated region for block: B:24:0x0120 */
/* JADX WARN: Removed duplicated region for block: B:27:0x0145 */
/* JADX WARN: Removed duplicated region for block: B:30:0x014d */
/* JADX WARN: Removed duplicated region for block: B:34:0x011d */
/* JADX WARN: Removed duplicated region for block: B:35:0x009a */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public static final /* synthetic */ void c(com.scb.phone.view.activity.mediaimage.MediaImagePreviewActivity r18) {
/*
Method dump skipped, instructions count: 376
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.mediaimage.MediaImagePreviewActivity.c(com.scb.phone.view.activity.mediaimage.MediaImagePreviewActivity):void");
}
private static /* synthetic */ Object e(Object[] objArr) {
MediaImagePreviewActivity mediaImagePreviewActivity = (MediaImagePreviewActivity) objArr[0];
int i = 2 % 2;
mediaImagePreviewActivity.setResult(0, new Intent());
mediaImagePreviewActivity.finish();
int i2 = w + 5;
u = i2 % 128;
if (i2 % 2 == 0) {
return null;
}
throw null;
}
public MediaImagePreviewActivity() {
RVV rvv = new RVV(this);
C14957gcv.e(rvv, "");
this.f7564o = new fZZ(rvv);
}
/* loaded from: classes5.dex */
static final class RVV extends AbstractC14961gcz implements InterfaceC14890gbN<KIE> {
private MediaImagePreviewActivity a;
@Override // o.InterfaceC14890gbN
public final /* synthetic */ KIE invoke() {
View inflate = this.a.getLayoutInflater().inflate(R.layout.2131558656, (ViewGroup) null, false);
int i = R.id.profile_crop_overlay;
CropOverlayView cropOverlayView = (CropOverlayView) qeC.e(inflate, R.id.profile_crop_overlay);
if (cropOverlayView != null) {
i = R.id.profile_image;
ScaleImageView scaleImageView = (ScaleImageView) qeC.e(inflate, R.id.profile_image);
if (scaleImageView != null) {
i = R.id.profile_image_cancel;
TextView textView = (TextView) qeC.e(inflate, R.id.profile_image_cancel);
if (textView != null) {
i = R.id.profile_image_choose;
TextView textView2 = (TextView) qeC.e(inflate, R.id.profile_image_choose);
if (textView2 != null) {
RelativeLayout relativeLayout = (RelativeLayout) inflate;
return new KIE(relativeLayout, cropOverlayView, scaleImageView, textView, textView2, relativeLayout);
}
}
}
}
throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(i)));
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
RVV(MediaImagePreviewActivity mediaImagePreviewActivity) {
super(0);
this.a = mediaImagePreviewActivity;
}
}
/* loaded from: classes5.dex */
static final class IeS extends AbstractC14961gcz implements InterfaceC14890gbN<C14866gag> {
private MediaImagePreviewActivity d;
@Override // o.InterfaceC14890gbN
public final /* synthetic */ C14866gag invoke() {
MediaImagePreviewActivity.c(this.d);
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
IeS(MediaImagePreviewActivity mediaImagePreviewActivity) {
super(0);
this.d = mediaImagePreviewActivity;
}
}
/* loaded from: classes5.dex */
static final class Sts extends AbstractC14961gcz implements InterfaceC14890gbN<C14866gag> {
private MediaImagePreviewActivity e;
@Override // o.InterfaceC14890gbN
public final /* synthetic */ C14866gag invoke() {
MediaImagePreviewActivity.d(this.e);
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
Sts(MediaImagePreviewActivity mediaImagePreviewActivity) {
super(0);
this.e = mediaImagePreviewActivity;
}
}
/* JADX WARN: Removed duplicated region for block: B:22:0x01a9 */
/* JADX WARN: Removed duplicated region for block: B:24:0x01aa */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private static void aB(int r19, char[] r20, int r21, boolean r22, int r23, java.lang.Object[] r24) {
/*
Method dump skipped, instructions count: 436
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.mediaimage.MediaImagePreviewActivity.aB(int, char[], int, boolean, int, java.lang.Object[]):void");
}
/* JADX WARN: Removed duplicated region for block: B:11:0x06df */
/* JADX WARN: Removed duplicated region for block: B:15:0x06e3 */
/* JADX WARN: Removed duplicated region for block: B:16:0x06c5 */
/* JADX WARN: Removed duplicated region for block: B:8:0x06c3 */
@Override // com.scb.phone.view.activity.mediaimage.Hilt_MediaImagePreviewActivity, 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 final void onCreate(android.os.Bundle r29) {
/*
Method dump skipped, instructions count: 2020
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.mediaimage.MediaImagePreviewActivity.onCreate(android.os.Bundle):void");
}
@Override // com.scb.phone.view.activity.BaseActivity, com.scb.phone.view.activity.PreLoadCheckActivity, androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, android.app.Activity
public final void onDestroy() {
int i = 2 % 2;
int i2 = u + 83;
w = i2 % 128;
int i3 = i2 % 2;
super.onDestroy();
C4188bSm c4188bSm = this.mediaImagePresenter;
if (c4188bSm != null) {
int i4 = w + 101;
u = i4 % 128;
int i5 = i4 % 2;
} else {
C14957gcv.a("");
c4188bSm = null;
}
c4188bSm.w_();
int i6 = w + 107;
u = i6 % 128;
if (i6 % 2 != 0) {
throw null;
}
}
/* JADX WARN: Code restructure failed: missing block: B:55:0x002f, code lost:
if (android.os.Build.VERSION.SDK_INT >= 33) goto L11;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void h() {
/*
Method dump skipped, instructions count: 262
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.mediaimage.MediaImagePreviewActivity.h():void");
}
/* JADX WARN: Removed duplicated region for block: B:10:0x0031 */
/* JADX WARN: Removed duplicated region for block: B:24:0x007e */
@Override // o.cZS
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void e(o.RI r9) {
/*
r8 = this;
r0 = 2
int r1 = r0 % r0
java.lang.String r1 = ""
o.C14957gcv.e(r9, r1)
r8.m = r9
java.lang.String r2 = r9.d
java.lang.CharSequence r2 = (java.lang.CharSequence) r2
r3 = 0
r4 = 1
r5 = 0
if (r2 == 0) goto L2d
int r6 = com.scb.phone.view.activity.mediaimage.MediaImagePreviewActivity.u
int r6 = r6 + 67
int r7 = r6 % 128
com.scb.phone.view.activity.mediaimage.MediaImagePreviewActivity.w = r7
int r6 = r6 % r0
if (r6 == 0) goto L26
boolean r2 = o.gdZ.d(r2)
if (r2 != 0) goto L2d
r2 = r3
goto L2e
L26:
o.gdZ.d(r2)
r5.hashCode()
throw r5
L2d:
r2 = r4
L2e:
r2 = r2 ^ r4
if (r2 == 0) goto L7e
o.bSm r2 = r8.mediaImagePresenter
if (r2 == 0) goto L43
int r1 = com.scb.phone.view.activity.mediaimage.MediaImagePreviewActivity.u
int r1 = r1 + 115
int r3 = r1 % 128
com.scb.phone.view.activity.mediaimage.MediaImagePreviewActivity.w = r3
int r1 = r1 % r0
if (r1 == 0) goto L42
r5 = r2
goto L4f
L42:
throw r5
L43:
o.C14957gcv.a(r1)
int r1 = com.scb.phone.view.activity.mediaimage.MediaImagePreviewActivity.w
int r1 = r1 + 15
int r2 = r1 % 128
com.scb.phone.view.activity.mediaimage.MediaImagePreviewActivity.u = r2
int r1 = r1 % r0
L4f:
java.lang.String r9 = r9.d
T extends o.cYp r1 = r5.f
if (r1 == 0) goto L5b
T extends o.cYp r0 = r5.f
r0.y()
goto L64
L5b:
int r1 = com.scb.phone.view.activity.mediaimage.MediaImagePreviewActivity.w
int r1 = r1 + 95
int r2 = r1 % 128
com.scb.phone.view.activity.mediaimage.MediaImagePreviewActivity.u = r2
int r1 = r1 % r0
L64:
o.uLu r0 = r5.d
o.dF r1 = o.C8233dF.d()
r1.a = r9
r0.c(r1)
o.uLu r9 = r5.d
o.bSm$RVV r0 = new o.bSm$RVV
r0.<init>(r5)
o.wRi$LWm r0 = (o.wRi.LWm) r0
o.fSk r1 = r9.i
r9.d(r1, r0)
return
L7e:
android.content.Intent r9 = new android.content.Intent
r9.<init>()
r8.setResult(r3, r9)
r8.finish()
return
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.mediaimage.MediaImagePreviewActivity.e(o.RI):void");
}
/* JADX WARN: Removed duplicated region for block: B:13:0x003a */
@Override // o.cZS
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void b(boolean r7) {
/*
r6 = this;
r0 = 2
int r1 = r0 % r0
r1 = 0
r2 = 0
if (r7 == 0) goto L64
o.RI r7 = r6.m
r3 = 1
if (r7 == 0) goto L17
int r4 = com.scb.phone.view.activity.mediaimage.MediaImagePreviewActivity.u
int r4 = r4 + r3
int r5 = r4 % 128
com.scb.phone.view.activity.mediaimage.MediaImagePreviewActivity.w = r5
int r4 = r4 % r0
java.lang.String r7 = r7.d
goto L18
L17:
r7 = r2
L18:
java.lang.CharSequence r7 = (java.lang.CharSequence) r7
if (r7 == 0) goto L35
int r4 = com.scb.phone.view.activity.mediaimage.MediaImagePreviewActivity.w
int r4 = r4 + 3
int r5 = r4 % 128
com.scb.phone.view.activity.mediaimage.MediaImagePreviewActivity.u = r5
int r4 = r4 % r0
boolean r7 = o.gdZ.d(r7)
if (r7 != 0) goto L35
int r7 = com.scb.phone.view.activity.mediaimage.MediaImagePreviewActivity.u
int r7 = r7 + 77
int r4 = r7 % 128
com.scb.phone.view.activity.mediaimage.MediaImagePreviewActivity.w = r4
int r7 = r7 % r0
goto L36
L35:
r1 = r3
L36:
r7 = r1 ^ 1
if (r7 == 0) goto L6f
android.content.Intent r7 = new android.content.Intent
r7.<init>()
java.lang.String r0 = "isCropped"
r7.putExtra(r0, r3)
o.RI r0 = r6.m
if (r0 == 0) goto L4b
java.lang.String r0 = r0.d
goto L4c
L4b:
r0 = r2
L4c:
java.lang.String r1 = "imageURL"
r7.putExtra(r1, r0)
o.RI r0 = r6.m
if (r0 == 0) goto L57
java.lang.String r2 = r0.a
L57:
java.lang.String r0 = "imageID"
r7.putExtra(r0, r2)
r0 = -1
r6.setResult(r0, r7)
r6.finish()
return
L64:
android.content.Intent r7 = new android.content.Intent
r7.<init>()
r6.setResult(r1, r7)
r6.finish()
L6f:
int r7 = com.scb.phone.view.activity.mediaimage.MediaImagePreviewActivity.u
int r7 = r7 + 17
int r1 = r7 % 128
com.scb.phone.view.activity.mediaimage.MediaImagePreviewActivity.w = r1
int r7 = r7 % r0
if (r7 == 0) goto L7b
return
L7b:
r2.hashCode()
throw r2
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.mediaimage.MediaImagePreviewActivity.b(boolean):void");
}
/* JADX WARN: Code restructure failed: missing block: B:39:0x01d1, code lost:
if (r4 != false) goto L46;
*/
/* JADX WARN: Code restructure failed: missing block: B:41:0x01f1, code lost:
r7 = r7 + 43;
com.scb.phone.view.activity.mediaimage.MediaImagePreviewActivity.$11 = r7 % 128;
r7 = r7 % 2;
r4 = 0;
*/
/* JADX WARN: Code restructure failed: missing block: B:75:0x01e7, code lost:
r7 = r7 + 15;
com.scb.phone.view.activity.mediaimage.MediaImagePreviewActivity.$11 = r7 % 128;
r7 = r7 % 2;
r4 = 1;
*/
/* JADX WARN: Code restructure failed: missing block: B:77:0x01e5, code lost:
if (r4 != false) goto L46;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private static void aA(short r18, int r19, int r20, int r21, byte r22, java.lang.Object[] r23) {
/*
Method dump skipped, instructions count: 795
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.mediaimage.MediaImagePreviewActivity.aA(short, int, int, int, byte, java.lang.Object[]):void");
}
private static /* synthetic */ Object c(Object[] objArr) {
MediaImagePreviewActivity mediaImagePreviewActivity = (MediaImagePreviewActivity) objArr[0];
C0693Mj c0693Mj = (C0693Mj) objArr[1];
int i = 2 % 2;
int i2 = u + 35;
w = i2 % 128;
if (i2 % 2 != 0) {
C14957gcv.e(c0693Mj, "");
C12914fKz.e(new Object[]{mediaImagePreviewActivity, Integer.valueOf(R.id.view_group_root), Integer.valueOf(R.drawable.ic_error_white_24dp), c0693Mj.c, Integer.valueOf(R.color.f2852131099792)}, 1259223802, -1259223796, R.id.view_group_root);
return null;
}
C14957gcv.e(c0693Mj, "");
C12914fKz.e(new Object[]{mediaImagePreviewActivity, Integer.valueOf(R.id.view_group_root), Integer.valueOf(R.drawable.ic_error_white_24dp), c0693Mj.c, Integer.valueOf(R.color.f2852131099792)}, 1259223802, -1259223796, R.id.view_group_root);
throw null;
}
/* loaded from: classes5.dex */
public static final class LWm {
private LWm() {
}
public /* synthetic */ LWm(byte b) {
this();
}
}
@Override // androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, android.app.Activity
public final void onRequestPermissionsResult(int i, String[] strArr, int[] iArr) {
int i2 = 2 % 2;
int i3 = u + 119;
w = i3 % 128;
int i4 = i3 % 2;
C14957gcv.e(strArr, "");
C14957gcv.e(iArr, "");
super.onRequestPermissionsResult(i, strArr, iArr);
C8828dXL.b(this, i, iArr);
int i5 = w + 123;
u = i5 % 128;
if (i5 % 2 == 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
public static void f() {
int i = 2 % 2;
int i2 = w + 69;
u = i2 % 128;
int i3 = i2 % 2;
guQ.b("onPermissionDenied", new Object[0]);
int i4 = u + 63;
w = i4 % 128;
if (i4 % 2 == 0) {
int i5 = 23 / 0;
}
}
public static void g() {
int i = 2 % 2;
int i2 = w + 63;
u = i2 % 128;
if (i2 % 2 != 0) {
guQ.b("onNeverAskAgain", new Object[1]);
} else {
guQ.b("onNeverAskAgain", new Object[0]);
}
int i3 = w + 117;
u = i3 % 128;
int i4 = i3 % 2;
}
public final void e(final InterfaceC15577gud interfaceC15577gud) {
int i = 2 % 2;
C14957gcv.e(interfaceC15577gud, "");
((CustomDialog) CustomDialog.e(new Object[]{CustomDialog.b(this).c(R.string.permission_storage_title).d(R.string.permission_storage).aoT_(R.string.permission_allow, new DialogInterface.OnClickListener(interfaceC15577gud) { // from class: o.dXO
private InterfaceC15577gud d;
@Override // android.content.DialogInterface.OnClickListener
public final void onClick(DialogInterface dialogInterface, int i2) {
MediaImagePreviewActivity.c(this.d);
}
{
this.d = interfaceC15577gud;
}
}), Integer.valueOf(R.string.permission_deny), new DialogInterface.OnClickListener(interfaceC15577gud) { // from class: o.dXN
private InterfaceC15577gud a;
@Override // android.content.DialogInterface.OnClickListener
public final void onClick(DialogInterface dialogInterface, int i2) {
MediaImagePreviewActivity.a(this.a);
}
{
this.a = interfaceC15577gud;
}
}})).show();
int i2 = u + 93;
w = i2 % 128;
if (i2 % 2 == 0) {
throw null;
}
}
public static void n() {
int i = 2 % 2;
int i2 = w + 37;
u = i2 % 128;
if (i2 % 2 != 0) {
guQ.b("onPermissionDeniedAndroid13", new Object[1]);
} else {
guQ.b("onPermissionDeniedAndroid13", new Object[0]);
}
}
public static void j() {
int i = 2 % 2;
int i2 = w + 97;
u = i2 % 128;
int i3 = i2 % 2;
guQ.b("onNeverAskAgainAndroid13", new Object[0]);
int i4 = u + 29;
w = i4 % 128;
int i5 = i4 % 2;
}
@Override // com.scb.phone.view.activity.mediaimage.Hilt_MediaImagePreviewActivity, 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 final void onPause() {
int i = 2 % 2;
int i2 = u + 85;
w = i2 % 128;
if (i2 % 2 == 0) {
getBaseContext();
throw null;
}
Context baseContext = getBaseContext();
if (baseContext == null) {
int i3 = u + 25;
w = i3 % 128;
int i4 = i3 % 2;
Object[] objArr = new Object[1];
aB(Color.green(0) + 26, new char[]{65534, 1, 65534, 11, 1, 15, '\f', 6, 1, 65483, 65534, '\r', '\r', 65483, 65502, 0, 17, 6, 19, 6, 17, 22, 65521, 5, 15, 2}, 141 - ExpandableListView.getPackedPositionType(0L), false, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.qr_expired_on).substring(7, 8).codePointAt(0) - 30, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
aA((short) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.ndid_select_idp_success_clickable_description).substring(0, 2).codePointAt(0) - 32), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().length() + 960987051, View.resolveSize(0, 0) + 12, (ViewConfiguration.getFadingEdgeLength() >> 16) - 286214995, (byte) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 34), objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
}
if (baseContext != null) {
baseContext = baseContext.getApplicationContext();
}
if (baseContext != null) {
int i5 = w + 105;
u = i5 % 128;
try {
if (i5 % 2 != 0) {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(491 - Process.getGidForName(""), 5 - Color.alpha(0), (char) ((Process.getThreadPriority(0) + 20) >> 6))).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(TextUtils.getTrimmedLength("") + 487, TextUtils.indexOf("", "") + 5, (char) ((-1) - ExpandableListView.getPackedPositionChild(0L)))).getMethod("c", Context.class);
xzZ.y.put(1633456013, obj2);
}
((Method) obj2).invoke(invoke, objArr3);
throw null;
}
Object obj3 = xzZ.y.get(125943855);
if (obj3 == null) {
obj3 = ((Class) xzZ.c(492 - ExpandableListView.getPackedPositionGroup(0L), (ViewConfiguration.getMaximumFlingVelocity() >> 16) + 5, (char) TextUtils.getOffsetBefore("", 0))).getMethod("a", null);
xzZ.y.put(125943855, obj3);
}
Object invoke2 = ((Method) obj3).invoke(null, null);
Object[] objArr4 = {baseContext};
Object obj4 = xzZ.y.get(1633456013);
if (obj4 == null) {
obj4 = ((Class) xzZ.c(MotionEvent.axisFromString("") + 488, Gravity.getAbsoluteGravity(0, 0) + 5, (char) (MotionEvent.axisFromString("") + 1))).getMethod("c", Context.class);
xzZ.y.put(1633456013, obj4);
}
((Method) obj4).invoke(invoke2, objArr4);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
super.onPause();
}
public static /* synthetic */ void c(InterfaceC15577gud interfaceC15577gud) {
int i = 2 % 2;
int i2 = u + 15;
w = i2 % 128;
int i3 = i2 % 2;
C14957gcv.e(interfaceC15577gud, "");
if (i3 == 0) {
interfaceC15577gud.c();
int i4 = 17 / 0;
} else {
interfaceC15577gud.c();
}
}
public static /* synthetic */ void a(InterfaceC15577gud interfaceC15577gud) {
int i = 2 % 2;
int i2 = w + 43;
u = i2 % 128;
int i3 = i2 % 2;
C14957gcv.e(interfaceC15577gud, "");
interfaceC15577gud.e();
int i4 = w + 51;
u = i4 % 128;
int i5 = i4 % 2;
}
static void m() {
r = -1787388344;
q = 1406017043;
t = 1119966627;
s = new byte[]{Ascii.NAK, Ascii.ESC, Ascii.ETB, -31, -24, 55, 55, -82, 17, 84, -33, -18, -17, -24, Ascii.ESC, -29, Ascii.CAN, -18, 1, -55, Ascii.EM, -22, 19, ISO7816.INS_CREATE_FILE, 6, -21, -17, -24, -23, Ascii.NAK, 58, ISO7816.INS_LOAD_KEY_FILE, 19, 28, -26, Ascii.NAK, -24, 7, 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, -63, 62, Ascii.SYN, -63, -18, 16, ISO7816.INS_CHANGE_CHV, -33, 35, ISO7816.INS_APPEND_RECORD, Ascii.SYN, -21, 19, ISO7816.INS_LOAD_KEY_FILE, Ascii.SYN, -24, 58, -58, -24, 38, -21, 16, -18, 17, Ascii.NAK, -22, -24, Ascii.NAK, -63, -22, 59, -59, 62, Ascii.SYN, -21, -58, -22, 59, ISO7816.INS_GET_RESPONSE, ISO7816.INS_CHANGE_CHV, -18, Ascii.DC2, -22, Ascii.DC4, -33, 17, Ascii.DC4, 60, 29, -23, -57, -24, 39, -17, Ascii.DC2, ISO7816.INS_LOAD_KEY_FILE, Ascii.NAK, 39, -57, 59, Ascii.SYN, -19, ISO7816.INS_ENVELOPE, Ascii.NAK, Ascii.NAK, Ascii.NAK, Ascii.NAK, Ascii.NAK};
y = 2015661581;
}
@Override // com.scb.phone.view.activity.mediaimage.Hilt_MediaImagePreviewActivity, 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 final void attachBaseContext(Context context) {
e(new Object[]{this, context}, 825481411, -825481408, System.identityHashCode(this));
}
@Override // com.scb.phone.view.activity.mediaimage.Hilt_MediaImagePreviewActivity, 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 final void onResume() {
e(new Object[]{this}, 353420686, -353420684, System.identityHashCode(this));
}
@Override // com.scb.phone.view.activity.mediaimage.Hilt_MediaImagePreviewActivity, 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 final void onStart() {
int i = 2 % 2;
int i2 = u + 109;
w = i2 % 128;
int i3 = i2 % 2;
super.onStart();
int i4 = w + 93;
u = i4 % 128;
if (i4 % 2 != 0) {
throw null;
}
}
@Override // o.cZS
public final void c(C0693Mj c0693Mj) {
e(new Object[]{this, c0693Mj}, 1794678472, -1794678471, System.identityHashCode(this));
}
public static final /* synthetic */ void d(MediaImagePreviewActivity mediaImagePreviewActivity) {
e(new Object[]{mediaImagePreviewActivity}, 1464202275, -1464202275, (int) System.currentTimeMillis());
}
static {
u = 0;
m();
l = new LWm((byte) 0);
int i = w + 71;
u = i % 128;
if (i % 2 != 0) {
int i2 = 82 / 0;
}
}
}