what-the-bank/sources/com/scb/phone/view/custom/common/CustomFundsActions.java

446 lines
15 KiB
Java

package com.scb.phone.view.custom.common;
import android.content.Context;
import android.graphics.Color;
import android.graphics.ImageFormat;
import android.os.SystemClock;
import android.telephony.cdma.CdmaCellLocation;
import android.text.TextUtils;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewConfiguration;
import android.view.ViewGroup;
import android.widget.ExpandableListView;
import android.widget.RelativeLayout;
import butterknife.BindView;
import butterknife.ButterKnife;
import com.scb.phone.R;
import com.scb.phone.view.custom.common.CustomFundsActions;
import java.lang.reflect.Method;
import net.sf.scuba.smartcards.ISOFileInfo;
import o.C3614bBe;
import o.InterfaceC12848fIw;
import o.xzZ;
import okhttp3.internal.http2.Http2Connection;
/* loaded from: classes5.dex */
public class CustomFundsActions extends RelativeLayout {
private InterfaceC12848fIw a;
@BindView
DefaultButton purchaseButton;
@BindView
DefaultButton redeemButton;
@BindView
DefaultButton switchButton;
private static final byte[] $$a = {55, -23, -33, -19};
private static final int $$b = 205;
private static int $10 = 0;
private static int $11 = 1;
private static int i = 0;
private static int j = 1;
private static char[] b = {16285};
private static int c = 1934310988;
private static boolean e = true;
private static boolean d = true;
/* 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:0x002b). Please report as a decompilation issue!!! */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private static void g(int r5, byte r6, int r7, java.lang.Object[] r8) {
/*
int r7 = r7 * 57
int r7 = r7 + 65
int r6 = r6 * 4
int r0 = 1 - r6
int r5 = r5 * 4
int r5 = 4 - r5
byte[] r1 = com.scb.phone.view.custom.common.CustomFundsActions.$$a
byte[] r0 = new byte[r0]
r2 = 0
int r6 = 0 - r6
if (r1 != 0) goto L19
r7 = r5
r4 = r6
r3 = r2
goto L2b
L19:
r3 = r2
L1a:
byte r4 = (byte) r7
r0[r3] = r4
if (r3 != r6) goto L27
java.lang.String r5 = new java.lang.String
r5.<init>(r0, r2)
r8[r2] = r5
return
L27:
int r3 = r3 + 1
r4 = r1[r5]
L2b:
int r5 = r5 + 1
int r4 = -r4
int r7 = r7 + r4
goto L1a
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.custom.common.CustomFundsActions.g(int, byte, int, java.lang.Object[]):void");
}
public CustomFundsActions(Context context, AttributeSet attributeSet) {
super(context, attributeSet);
((LayoutInflater) context.getSystemService("layout_inflater")).inflate(R.layout.2131559028, (ViewGroup) this, true);
ButterKnife.c(this);
c();
}
private /* synthetic */ void e() {
int i2 = 2 % 2;
InterfaceC12848fIw interfaceC12848fIw = this.a;
if (interfaceC12848fIw != null) {
int i3 = j + 95;
i = i3 % 128;
int i4 = i3 % 2;
interfaceC12848fIw.d("BUTTON_PURCHASE");
if (i4 != 0) {
throw null;
}
}
int i5 = j + 53;
i = i5 % 128;
int i6 = i5 % 2;
}
private /* synthetic */ void a() {
int i2 = 2 % 2;
int i3 = j;
int i4 = i3 + 87;
i = i4 % 128;
int i5 = i4 % 2;
InterfaceC12848fIw interfaceC12848fIw = this.a;
if (interfaceC12848fIw != null) {
int i6 = i3 + 115;
i = i6 % 128;
int i7 = i6 % 2;
interfaceC12848fIw.d("BUTTON_REDEEM");
int i8 = i + 95;
j = i8 % 128;
int i9 = i8 % 2;
}
int i10 = i + 23;
j = i10 % 128;
int i11 = i10 % 2;
}
private void c() {
int i2 = 2 % 2;
this.purchaseButton.setOnClickListener(new View.OnClickListener(this) { // from class: o.eBN
private CustomFundsActions a;
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
CustomFundsActions.d(this.a);
}
{
this.a = this;
}
});
this.redeemButton.setOnClickListener(new View.OnClickListener(this) { // from class: o.eBP
private CustomFundsActions a;
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
CustomFundsActions.a(this.a);
}
{
this.a = this;
}
});
this.switchButton.setOnClickListener(new View.OnClickListener(this) { // from class: o.eBQ
private CustomFundsActions b;
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
Object[] objArr = {this.b};
CustomFundsActions.d(objArr);
}
{
this.b = this;
}
});
int i3 = i + 31;
j = i3 % 128;
int i4 = i3 % 2;
}
private /* synthetic */ void d() {
int i2 = 2 % 2;
int i3 = j + 115;
i = i3 % 128;
if (i3 % 2 != 0) {
Object obj = null;
obj.hashCode();
throw null;
}
InterfaceC12848fIw interfaceC12848fIw = this.a;
if (interfaceC12848fIw != null) {
interfaceC12848fIw.d("BUTTON_SWITCH");
int i4 = j + 7;
i = i4 % 128;
int i5 = i4 % 2;
}
}
public void setButtonEnabled(String str, String str2) {
DefaultButton defaultButton;
Object obj;
DefaultButton defaultButton2;
Object obj2;
int i2 = 2 % 2;
if (!(!"BUTTON_PURCHASE".equals(str))) {
int i3 = i + 101;
j = i3 % 128;
if (i3 % 2 == 0) {
defaultButton = this.purchaseButton;
Object[] objArr = new Object[1];
f(null, new byte[]{ISOFileInfo.DATA_BYTES2}, null, 118 % ImageFormat.getBitsPerPixel(1), objArr);
obj = objArr[0];
} else {
defaultButton = this.purchaseButton;
Object[] objArr2 = new Object[1];
f(null, new byte[]{ISOFileInfo.DATA_BYTES2}, null, 126 - ImageFormat.getBitsPerPixel(0), objArr2);
obj = objArr2[0];
}
defaultButton.setButtonEnabled(((String) obj).intern().equals(str2));
return;
}
if ("BUTTON_REDEEM".equals(str)) {
int i4 = j + 77;
i = i4 % 128;
int i5 = i4 % 2;
DefaultButton defaultButton3 = this.redeemButton;
Object[] objArr3 = new Object[1];
f(null, new byte[]{ISOFileInfo.DATA_BYTES2}, null, Color.rgb(0, 0, 0) + 16777343, objArr3);
defaultButton3.setButtonEnabled(((String) objArr3[0]).intern().equals(str2));
return;
}
if ("BUTTON_SWITCH".equals(str)) {
int i6 = j + 37;
i = i6 % 128;
if (i6 % 2 != 0) {
defaultButton2 = this.switchButton;
Object[] objArr4 = new Object[1];
f(null, new byte[]{ISOFileInfo.DATA_BYTES2}, null, 111 >>> ExpandableListView.getPackedPositionGroup(1L), objArr4);
obj2 = objArr4[0];
} else {
defaultButton2 = this.switchButton;
Object[] objArr5 = new Object[1];
f(null, new byte[]{ISOFileInfo.DATA_BYTES2}, null, 127 - ExpandableListView.getPackedPositionGroup(0L), objArr5);
obj2 = objArr5[0];
}
defaultButton2.setButtonEnabled(((String) obj2).intern().equals(str2));
}
}
private static void f(char[] cArr, byte[] bArr, int[] iArr, int i2, Object[] objArr) {
int i3 = 2;
int i4 = 2 % 2;
C3614bBe c3614bBe = new C3614bBe();
char[] cArr2 = b;
int i5 = 0;
if (cArr2 != null) {
int length = cArr2.length;
char[] cArr3 = new char[length];
int i6 = 0;
while (i6 < length) {
int i7 = $10 + 49;
$11 = i7 % 128;
int i8 = i7 % i3;
try {
Object[] objArr2 = new Object[1];
objArr2[i5] = Integer.valueOf(cArr2[i6]);
Object obj = xzZ.y.get(-950481649);
if (obj == null) {
Class cls = (Class) xzZ.c(337 - Color.red(i5), TextUtils.indexOf("", "", i5) + 5, (char) (Color.rgb(i5, i5, i5) + Http2Connection.OKHTTP_CLIENT_WINDOW_SIZE));
byte b2 = (byte) i5;
byte b3 = b2;
Object[] objArr3 = new Object[1];
g(b2, b3, b3, objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
xzZ.y.put(-950481649, obj);
}
cArr3[i6] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
i6++;
i3 = 2;
i5 = 0;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
int i9 = $10 + 43;
$11 = i9 % 128;
int i10 = i9 % 2;
cArr2 = cArr3;
}
Object[] objArr4 = {Integer.valueOf(c)};
Object obj2 = xzZ.y.get(-1521625011);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(283 - (ViewConfiguration.getEdgeSlop() >> 16), 5 - TextUtils.indexOf("", ""), (char) (39813 - (ViewConfiguration.getEdgeSlop() >> 16)));
byte b4 = (byte) 0;
byte b5 = b4;
Object[] objArr5 = new Object[1];
g(b4, b5, (byte) (b5 + 1), objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE);
xzZ.y.put(-1521625011, obj2);
}
int intValue = ((Integer) ((Method) obj2).invoke(null, objArr4)).intValue();
if (d) {
c3614bBe.c = bArr.length;
char[] cArr4 = new char[c3614bBe.c];
c3614bBe.a = 0;
while (c3614bBe.a < c3614bBe.c) {
cArr4[c3614bBe.a] = (char) (cArr2[bArr[(c3614bBe.c - 1) - c3614bBe.a] + i2] - intValue);
Object[] objArr6 = {c3614bBe, c3614bBe};
Object obj3 = xzZ.y.get(1779759091);
if (obj3 == null) {
obj3 = ((Class) xzZ.c(39 - TextUtils.lastIndexOf("", '0'), (ViewConfiguration.getScrollDefaultDelay() >> 16) + 5, (char) (CdmaCellLocation.convertQuartSecToDecDegrees(0) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(0) == 0.0d ? 0 : -1)))).getMethod("D", Object.class, Object.class);
xzZ.y.put(1779759091, obj3);
}
((Method) obj3).invoke(null, objArr6);
}
objArr[0] = new String(cArr4);
return;
}
if (e) {
int i11 = $11 + 7;
$10 = i11 % 128;
int i12 = i11 % 2;
c3614bBe.c = cArr.length;
char[] cArr5 = new char[c3614bBe.c];
c3614bBe.a = 0;
while (c3614bBe.a < c3614bBe.c) {
cArr5[c3614bBe.a] = (char) (cArr2[cArr[(c3614bBe.c - 1) - c3614bBe.a] - i2] - intValue);
Object[] objArr7 = {c3614bBe, c3614bBe};
Object obj4 = xzZ.y.get(1779759091);
if (obj4 == null) {
obj4 = ((Class) xzZ.c(41 - (SystemClock.elapsedRealtimeNanos() > 0L ? 1 : (SystemClock.elapsedRealtimeNanos() == 0L ? 0 : -1)), View.MeasureSpec.getMode(0) + 5, (char) (ViewConfiguration.getEdgeSlop() >> 16))).getMethod("D", Object.class, Object.class);
xzZ.y.put(1779759091, obj4);
}
((Method) obj4).invoke(null, objArr7);
int i13 = $11 + 65;
$10 = i13 % 128;
int i14 = i13 % 2;
}
objArr[0] = new String(cArr5);
return;
}
int i15 = 0;
c3614bBe.c = iArr.length;
char[] cArr6 = new char[c3614bBe.c];
while (true) {
c3614bBe.a = i15;
if (c3614bBe.a >= c3614bBe.c) {
objArr[0] = new String(cArr6);
return;
}
int i16 = $11 + 51;
$10 = i16 % 128;
if (i16 % 2 != 0) {
cArr6[c3614bBe.a] = (char) (cArr2[iArr[c3614bBe.c * c3614bBe.a] % i2] + intValue);
i15 = c3614bBe.a >>> 1;
} else {
cArr6[c3614bBe.a] = (char) (cArr2[iArr[(c3614bBe.c - 1) - c3614bBe.a] - i2] - intValue);
i15 = c3614bBe.a + 1;
}
}
}
/* JADX INFO: Access modifiers changed from: private */
public static /* synthetic */ Object d(Object[] objArr) {
CustomFundsActions customFundsActions = (CustomFundsActions) objArr[0];
int i2 = 2 % 2;
int i3 = j + 35;
i = i3 % 128;
int i4 = i3 % 2;
Object obj = null;
customFundsActions.d();
if (i4 != 0) {
obj.hashCode();
throw null;
}
int i5 = j + 45;
i = i5 % 128;
if (i5 % 2 == 0) {
return null;
}
throw null;
}
public void setOnCustomFundsActionsClickListener(InterfaceC12848fIw interfaceC12848fIw) {
int i2 = 2 % 2;
int i3 = i;
int i4 = i3 + 89;
j = i4 % 128;
int i5 = i4 % 2;
Object obj = null;
this.a = interfaceC12848fIw;
if (i5 == 0) {
throw null;
}
int i6 = i3 + 81;
j = i6 % 128;
if (i6 % 2 != 0) {
return;
}
obj.hashCode();
throw null;
}
public static /* synthetic */ void c(CustomFundsActions customFundsActions) {
d(new Object[]{customFundsActions});
}
public static /* synthetic */ void a(CustomFundsActions customFundsActions) {
int i2 = 2 % 2;
int i3 = i + 109;
j = i3 % 128;
int i4 = i3 % 2;
customFundsActions.a();
if (i4 == 0) {
throw null;
}
}
public static /* synthetic */ void d(CustomFundsActions customFundsActions) {
int i2 = 2 % 2;
int i3 = j + 111;
i = i3 % 128;
int i4 = i3 % 2;
customFundsActions.e();
if (i4 != 0) {
int i5 = 44 / 0;
}
int i6 = j + 11;
i = i6 % 128;
if (i6 % 2 == 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
}