what-the-bank/sources/com/scb/phone/view/activity/prepaid/PointTabHolder.java

326 lines
13 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.activity.prepaid;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.media.AudioTrack;
import android.telephony.cdma.CdmaCellLocation;
import android.text.TextUtils;
import android.view.Gravity;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android.view.ViewGroup;
import android.widget.ExpandableListView;
import android.widget.LinearLayout;
import android.widget.TextView;
import butterknife.BindView;
import butterknife.ButterKnife;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.scb.phone.R;
import java.lang.reflect.Method;
import o.C1049Un;
import o.C1054Up;
import o.C16765qzi;
import o.C4403bZM;
import o.C6583cXR;
import o.Jdn;
import o.xzZ;
/* loaded from: classes5.dex */
public class PointTabHolder {
public View c;
@BindView
LinearLayout layoutPointValue;
@BindView
TextView tvPointLabel;
@BindView
TextView tvPointValue;
@BindView
TextView tvRemark;
@BindView
TextView tvUnable;
@BindView
TextView tvYouHave;
private static final byte[] $$a = {67, 63, -31, 118};
private static final int $$b = 231;
private static int $10 = 0;
private static int $11 = 1;
private static int d = 0;
private static int b = 1;
private static int[] a = {-1377740573, 449788918, 1966819711, 646922203, 1145961774, -945370068, -1218657144, -787440372, 817066717, -1755523111, 845077497, -1968532355, 821960933, 1258922144, -153660020, 695504185, -579941281, 1526805337};
/* 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: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 g(byte r6, byte r7, short r8, java.lang.Object[] r9) {
/*
int r7 = r7 * 4
int r0 = r7 + 1
byte[] r1 = com.scb.phone.view.activity.prepaid.PointTabHolder.$$a
int r8 = r8 + 4
int r6 = r6 * 2
int r6 = r6 + 102
byte[] r0 = new byte[r0]
r2 = 0
if (r1 != 0) goto L15
r4 = r7
r6 = r8
r3 = r2
goto L2c
L15:
r3 = r2
r5 = r8
r8 = r6
r6 = r5
L19:
byte r4 = (byte) r8
r0[r3] = r4
int r6 = r6 + 1
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[r6]
L2c:
int r8 = r8 + r4
goto L19
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.prepaid.PointTabHolder.g(byte, byte, short, java.lang.Object[]):void");
}
public PointTabHolder(ViewGroup viewGroup) {
View inflate = LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131560222, viewGroup, false);
this.c = inflate;
ButterKnife.c(this, inflate);
}
/* JADX INFO: Access modifiers changed from: package-private */
public final void e(C1054Up c1054Up, C1049Un c1049Un, Jdn.LWm lWm) {
int i = 2 % 2;
if (lWm.d == null && lWm.a != null) {
int i2 = b + 41;
d = i2 % 128;
if (i2 % 2 == 0) {
this.tvYouHave.setVisibility(8);
this.layoutPointValue.setVisibility(8);
this.tvUnable.setVisibility(0);
this.tvRemark.setVisibility(8);
this.tvUnable.setText(c1054Up.d);
return;
}
}
int i3 = d + 125;
b = i3 % 128;
int i4 = i3 % 2;
this.tvYouHave.setVisibility(0);
this.layoutPointValue.setVisibility(0);
this.tvUnable.setVisibility(8);
C16765qzi c16765qzi = lWm.d;
String b2 = C6583cXR.b(C6583cXR.c(c16765qzi.h).doubleValue());
this.tvPointValue.setText(b2);
this.tvPointLabel.setText(c1049Un.n);
Object[] objArr = new Object[1];
f(new int[]{-1687603078, -594696742}, 1 - (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)), objArr);
if (((String) objArr[0]).intern().equals(b2)) {
int i5 = b + 15;
d = i5 % 128;
if (i5 % 2 != 0) {
this.tvRemark.setVisibility(105);
return;
} else {
this.tvRemark.setVisibility(8);
return;
}
}
this.tvRemark.setVisibility(0);
String b3 = C6583cXR.b(C6583cXR.c(c16765qzi.d).doubleValue());
StringBuilder sb = new StringBuilder();
sb.append(this.c.getContext().getString(R.string.prepaid_message_m_card, b3, c1049Un.n, c16765qzi.b));
sb.append("\n");
sb.append(this.c.getContext().getString(R.string.prepaid_point_m_card));
this.tvRemark.setText(sb.toString());
}
private static void f(int[] iArr, int i, Object[] objArr) {
int i2;
int length;
int[] iArr2;
int i3 = 2;
int i4 = 2 % 2;
C4403bZM c4403bZM = new C4403bZM();
char[] cArr = new char[4];
char[] cArr2 = new char[iArr.length * 2];
int[] iArr3 = a;
int i5 = 729798706;
int i6 = 1;
int i7 = 0;
if (iArr3 != null) {
int i8 = $11 + 3;
$10 = i8 % 128;
if (i8 % 2 != 0) {
length = iArr3.length;
iArr2 = new int[length];
} else {
length = iArr3.length;
iArr2 = new int[length];
}
int i9 = 0;
while (i9 < length) {
int i10 = $11 + 93;
$10 = i10 % 128;
int i11 = i10 % i3;
try {
Object[] objArr2 = new Object[1];
objArr2[i7] = Integer.valueOf(iArr3[i9]);
Object obj = xzZ.y.get(Integer.valueOf(i5));
if (obj == null) {
Class cls = (Class) xzZ.c(15 - (ExpandableListView.getPackedPositionForGroup(i7) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(i7) == 0L ? 0 : -1)), TextUtils.getOffsetBefore("", i7) + 5, (char) ((ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 58133));
Class<?>[] clsArr = new Class[1];
clsArr[i7] = Integer.TYPE;
obj = cls.getMethod("i", clsArr);
xzZ.y.put(729798706, obj);
}
iArr2[i9] = ((Integer) ((Method) obj).invoke(null, objArr2)).intValue();
i9++;
i3 = 2;
i7 = 0;
i5 = 729798706;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
iArr3 = iArr2;
}
int length2 = iArr3.length;
int[] iArr4 = new int[length2];
int[] iArr5 = a;
if (iArr5 != null) {
int length3 = iArr5.length;
int[] iArr6 = new int[length3];
int i12 = 0;
while (i12 < length3) {
int i13 = $11 + 119;
$10 = i13 % 128;
if (i13 % 2 != 0) {
try {
Object[] objArr3 = new Object[i6];
objArr3[0] = Integer.valueOf(iArr5[i12]);
Object obj2 = xzZ.y.get(729798706);
if (obj2 != null) {
i2 = length3;
} else {
obj2 = ((Class) xzZ.c(15 - View.combineMeasuredStates(0, 0), ExpandableListView.getPackedPositionGroup(0L) + 5, (char) ((ViewConfiguration.getTapTimeout() >> 16) + 58134))).getMethod("i", Integer.TYPE);
i2 = length3;
xzZ.y.put(729798706, obj2);
}
iArr6[i12] = ((Integer) ((Method) obj2).invoke(null, objArr3)).intValue();
i12 %= 1;
} catch (Throwable th2) {
Throwable cause2 = th2.getCause();
if (cause2 == null) {
throw th2;
}
throw cause2;
}
} else {
i2 = length3;
Object[] objArr4 = {Integer.valueOf(iArr5[i12])};
Object obj3 = xzZ.y.get(729798706);
if (obj3 == null) {
obj3 = ((Class) xzZ.c(14 - MotionEvent.axisFromString(""), (ViewConfiguration.getScrollBarFadeDuration() >> 16) + 5, (char) (KeyEvent.normalizeMetaState(0) + 58134))).getMethod("i", Integer.TYPE);
xzZ.y.put(729798706, obj3);
}
iArr6[i12] = ((Integer) ((Method) obj3).invoke(null, objArr4)).intValue();
i12++;
}
length3 = i2;
i6 = 1;
}
int i14 = $11 + 61;
$10 = i14 % 128;
int i15 = i14 % 2;
iArr5 = iArr6;
}
char c = 0;
System.arraycopy(iArr5, 0, iArr4, 0, length2);
c4403bZM.b = 0;
while (c4403bZM.b < iArr.length) {
cArr[c] = (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 i16 = 0;
for (int i17 = 16; i16 < i17; i17 = 16) {
c4403bZM.e ^= iArr4[i16];
Object[] objArr5 = {c4403bZM, Integer.valueOf(C4403bZM.d(c4403bZM.e)), c4403bZM, c4403bZM};
Object obj4 = xzZ.y.get(-1196964548);
if (obj4 == null) {
Class cls2 = (Class) xzZ.c(ExpandableListView.getPackedPositionGroup(0L) + 118, 5 - Drawable.resolveOpacity(0, 0), (char) Gravity.getAbsoluteGravity(0, 0));
byte b2 = (byte) ($$b & 1);
byte b3 = (byte) (b2 - 1);
Object[] objArr6 = new Object[1];
g(b2, b3, (byte) (b3 - 1), objArr6);
obj4 = cls2.getMethod((String) objArr6[0], Object.class, Integer.TYPE, Object.class, Object.class);
xzZ.y.put(-1196964548, obj4);
}
int intValue = ((Integer) ((Method) obj4).invoke(null, objArr5)).intValue();
c4403bZM.e = c4403bZM.a;
c4403bZM.a = intValue;
i16++;
}
int i18 = c4403bZM.e;
c4403bZM.e = c4403bZM.a;
c4403bZM.a = i18;
c4403bZM.a ^= iArr4[16];
c4403bZM.e ^= iArr4[17];
int i19 = c4403bZM.e;
int i20 = 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];
Object[] objArr7 = {c4403bZM, c4403bZM};
Object obj5 = xzZ.y.get(1914371176);
if (obj5 == null) {
Class cls3 = (Class) xzZ.c(98 - Color.red(0), (CdmaCellLocation.convertQuartSecToDecDegrees(0) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(0) == 0.0d ? 0 : -1)) + 5, (char) (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)));
byte b4 = (byte) 0;
byte b5 = b4;
Object[] objArr8 = new Object[1];
g(b4, b5, (byte) (b5 - 1), objArr8);
obj5 = cls3.getMethod((String) objArr8[0], Object.class, Object.class);
xzZ.y.put(1914371176, obj5);
}
((Method) obj5).invoke(null, objArr7);
c = 0;
}
objArr[0] = new String(cArr2, 0, i);
}
}