400 lines
16 KiB
Java
400 lines
16 KiB
Java
package o;
|
|
|
|
import android.content.SharedPreferences;
|
|
import android.content.res.Resources;
|
|
import android.graphics.BitmapFactory;
|
|
import android.graphics.Color;
|
|
import android.graphics.drawable.Drawable;
|
|
import android.os.Process;
|
|
import android.os.SystemClock;
|
|
import android.telephony.cdma.CdmaCellLocation;
|
|
import android.text.TextUtils;
|
|
import android.view.KeyEvent;
|
|
import android.view.View;
|
|
import android.view.ViewConfiguration;
|
|
import android.widget.ExpandableListView;
|
|
import java.lang.reflect.Method;
|
|
import java.util.Iterator;
|
|
import java.util.List;
|
|
import net.sf.scuba.smartcards.ISO7816;
|
|
import o.C15715hv;
|
|
import o.PRA;
|
|
|
|
/* renamed from: o.Bd, reason: case insensitive filesystem */
|
|
/* loaded from: classes3.dex */
|
|
public final class C0199Bd extends C16157lj {
|
|
private static final byte[] $$d = {82, ISO7816.INS_UNBLOCK_CHV, -108, -93};
|
|
private static final int $$e = 242;
|
|
private static int $10 = 0;
|
|
private static int $11 = 1;
|
|
private static int a = 0;
|
|
private static int h = 1;
|
|
private static char[] d = {49026};
|
|
private static char b = 35368;
|
|
|
|
/* 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 q(int r7, short r8, int r9, java.lang.Object[] r10) {
|
|
/*
|
|
byte[] r0 = o.C0199Bd.$$d
|
|
int r9 = r9 * 2
|
|
int r9 = r9 + 1
|
|
int r7 = 120 - r7
|
|
int r8 = r8 * 2
|
|
int r8 = 3 - r8
|
|
byte[] r1 = new byte[r9]
|
|
r2 = 0
|
|
if (r0 != 0) goto L15
|
|
r3 = r8
|
|
r7 = r9
|
|
r5 = r2
|
|
goto L2c
|
|
L15:
|
|
r3 = r2
|
|
L16:
|
|
int r8 = r8 + 1
|
|
byte r4 = (byte) r7
|
|
int r5 = r3 + 1
|
|
r1[r3] = r4
|
|
if (r5 != r9) goto L27
|
|
java.lang.String r7 = new java.lang.String
|
|
r7.<init>(r1, r2)
|
|
r10[r2] = r7
|
|
return
|
|
L27:
|
|
r3 = r0[r8]
|
|
r6 = r3
|
|
r3 = r8
|
|
r8 = r6
|
|
L2c:
|
|
int r8 = -r8
|
|
int r7 = r7 + r8
|
|
r8 = r3
|
|
r3 = r5
|
|
goto L16
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: o.C0199Bd.q(int, short, int, java.lang.Object[]):void");
|
|
}
|
|
|
|
@InterfaceC13391fZD
|
|
public C0199Bd(Resources resources, SharedPreferences sharedPreferences) {
|
|
super(resources, sharedPreferences);
|
|
}
|
|
|
|
public final C1082Ve a(C15953jsr c15953jsr, boolean z) {
|
|
C1087Vh c1087Vh;
|
|
int i = 2 % 2;
|
|
int i2 = a + 11;
|
|
h = i2 % 128;
|
|
int i3 = i2 % 2;
|
|
List<C1087Vh> d2 = d(c15953jsr.d, z);
|
|
Iterator<C1087Vh> it = d2.iterator();
|
|
while (true) {
|
|
if (it.hasNext()) {
|
|
C1087Vh next = it.next();
|
|
if (next.e) {
|
|
c1087Vh = next;
|
|
break;
|
|
}
|
|
} else {
|
|
int i4 = h + 11;
|
|
a = i4 % 128;
|
|
int i5 = i4 % 2;
|
|
c1087Vh = null;
|
|
break;
|
|
}
|
|
}
|
|
C1082Ve e = C1082Ve.e();
|
|
e.d = c15953jsr.a;
|
|
e.b = d2;
|
|
e.c = c1087Vh;
|
|
e.a = BitmapFactory.decodeResource(this.e, C15715hv.IeS.thai_qr_logo);
|
|
return e;
|
|
}
|
|
|
|
private static /* synthetic */ C1087Vh c(boolean z, KwE kwE) {
|
|
int i = 2 % 2;
|
|
int i2 = a + 95;
|
|
h = i2 % 128;
|
|
int i3 = i2 % 2;
|
|
C1087Vh c = c(kwE, z);
|
|
int i4 = h + 59;
|
|
a = i4 % 128;
|
|
if (i4 % 2 == 0) {
|
|
return c;
|
|
}
|
|
throw null;
|
|
}
|
|
|
|
private List<C1087Vh> d(List<KwE> list, final boolean z) {
|
|
int i = 2 % 2;
|
|
YKU yku = new YKU(list);
|
|
List<C1087Vh> list2 = (List) new YKU(yku.a, new wxK(yku.b, new InterfaceC1244Ytw(this, z) { // from class: o.Ba
|
|
private boolean c;
|
|
private C0199Bd d;
|
|
|
|
@Override // o.InterfaceC1244Ytw
|
|
public final Object d(Object obj) {
|
|
Object[] objArr = {this.d, Boolean.valueOf(this.c), (KwE) obj};
|
|
return (C1087Vh) C0199Bd.e(objArr);
|
|
}
|
|
|
|
{
|
|
this.d = this;
|
|
this.c = z;
|
|
}
|
|
})).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8()));
|
|
int i2 = a + 95;
|
|
h = i2 % 128;
|
|
if (i2 % 2 != 0) {
|
|
return list2;
|
|
}
|
|
throw null;
|
|
}
|
|
|
|
private static C1087Vh c(KwE kwE, boolean z) {
|
|
int i = 2 % 2;
|
|
int i2 = h + 83;
|
|
a = i2 % 128;
|
|
if (i2 % 2 == 0) {
|
|
boolean z2 = false;
|
|
if (!TextUtils.isEmpty(kwE.b)) {
|
|
String str = kwE.b;
|
|
Object[] objArr = new Object[1];
|
|
n((ViewConfiguration.getScrollBarFadeDuration() >> 16) + 1, new char[]{13742}, (byte) ((ViewConfiguration.getLongPressTimeout() >> 16) + 3), objArr);
|
|
if (str.equals(((String) objArr[0]).intern())) {
|
|
z2 = true;
|
|
}
|
|
}
|
|
C1087Vh b2 = C1087Vh.b();
|
|
b2.j = kwE.d;
|
|
b2.g = kwE.f;
|
|
b2.d = kwE.a;
|
|
b2.e = z2;
|
|
b2.f = b(kwE.f, kwE.d, z);
|
|
b2.a = kwE.c;
|
|
b2.c = i(kwE.a);
|
|
b2.b = c(Double.valueOf(kwE.c));
|
|
int i3 = h + 17;
|
|
a = i3 % 128;
|
|
int i4 = i3 % 2;
|
|
return b2;
|
|
}
|
|
TextUtils.isEmpty(kwE.b);
|
|
Object obj = null;
|
|
obj.hashCode();
|
|
throw null;
|
|
}
|
|
|
|
private static void n(int i, char[] cArr, byte b2, Object[] objArr) {
|
|
int i2;
|
|
char c;
|
|
int i3;
|
|
int i4 = 2 % 2;
|
|
IRS irs = new IRS();
|
|
char[] cArr2 = d;
|
|
long j = 0;
|
|
int i5 = 3;
|
|
int i6 = 1;
|
|
if (cArr2 != null) {
|
|
int length = cArr2.length;
|
|
char[] cArr3 = new char[length];
|
|
int i7 = 0;
|
|
while (i7 < length) {
|
|
int i8 = $10 + 29;
|
|
$11 = i8 % 128;
|
|
if (i8 % 2 == 0) {
|
|
try {
|
|
Object[] objArr2 = new Object[i6];
|
|
objArr2[0] = Integer.valueOf(cArr2[i7]);
|
|
Object obj = xzZ.y.get(-1987398494);
|
|
if (obj == null) {
|
|
Class cls = (Class) xzZ.c(298 - Drawable.resolveOpacity(0, 0), 6 - (SystemClock.elapsedRealtime() > j ? 1 : (SystemClock.elapsedRealtime() == j ? 0 : -1)), (char) ((Process.getThreadPriority(0) + 20) >> 6));
|
|
byte b3 = (byte) i5;
|
|
byte b4 = (byte) (b3 - 3);
|
|
Object[] objArr3 = new Object[1];
|
|
q(b3, b4, b4, objArr3);
|
|
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
|
|
xzZ.y.put(-1987398494, obj);
|
|
}
|
|
cArr3[i7] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
|
|
} catch (Throwable th) {
|
|
Throwable cause = th.getCause();
|
|
if (cause == null) {
|
|
throw th;
|
|
}
|
|
throw cause;
|
|
}
|
|
} else {
|
|
try {
|
|
Object[] objArr4 = {Integer.valueOf(cArr2[i7])};
|
|
Object obj2 = xzZ.y.get(-1987398494);
|
|
if (obj2 == null) {
|
|
Class cls2 = (Class) xzZ.c(298 - TextUtils.getTrimmedLength(""), (ViewConfiguration.getTouchSlop() >> 8) + 5, (char) (((byte) KeyEvent.getModifierMetaStateMask()) + 1));
|
|
byte b5 = (byte) 3;
|
|
byte b6 = (byte) (b5 - 3);
|
|
Object[] objArr5 = new Object[1];
|
|
q(b5, b6, b6, objArr5);
|
|
obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE);
|
|
xzZ.y.put(-1987398494, obj2);
|
|
}
|
|
cArr3[i7] = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue();
|
|
i7++;
|
|
} catch (Throwable th2) {
|
|
Throwable cause2 = th2.getCause();
|
|
if (cause2 == null) {
|
|
throw th2;
|
|
}
|
|
throw cause2;
|
|
}
|
|
}
|
|
j = 0;
|
|
i5 = 3;
|
|
i6 = 1;
|
|
}
|
|
cArr2 = cArr3;
|
|
}
|
|
Object[] objArr6 = {Integer.valueOf(b)};
|
|
Object obj3 = xzZ.y.get(-1987398494);
|
|
char c2 = 4;
|
|
if (obj3 == null) {
|
|
Class cls3 = (Class) xzZ.c(298 - View.MeasureSpec.getMode(0), (ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)) + 4, (char) (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)));
|
|
byte b7 = (byte) 3;
|
|
byte b8 = (byte) (b7 - 3);
|
|
Object[] objArr7 = new Object[1];
|
|
q(b7, b8, b8, objArr7);
|
|
obj3 = cls3.getMethod((String) objArr7[0], Integer.TYPE);
|
|
xzZ.y.put(-1987398494, obj3);
|
|
}
|
|
char charValue = ((Character) ((Method) obj3).invoke(null, objArr6)).charValue();
|
|
char[] cArr4 = new char[i];
|
|
if (i % 2 != 0) {
|
|
int i9 = $11 + 57;
|
|
$10 = i9 % 128;
|
|
int i10 = i9 % 2;
|
|
i2 = i - 1;
|
|
cArr4[i2] = (char) (cArr[i2] - b2);
|
|
} else {
|
|
i2 = i;
|
|
}
|
|
int i11 = 1;
|
|
if (i2 > 1) {
|
|
irs.e = 0;
|
|
while (irs.e < i2) {
|
|
irs.b = cArr[irs.e];
|
|
irs.c = cArr[irs.e + i11];
|
|
if (irs.b == irs.c) {
|
|
cArr4[irs.e] = (char) (irs.b - b2);
|
|
cArr4[irs.e + 1] = (char) (irs.c - b2);
|
|
c = c2;
|
|
i3 = 1;
|
|
} else {
|
|
Object[] objArr8 = new Object[13];
|
|
objArr8[12] = irs;
|
|
objArr8[11] = Integer.valueOf(charValue);
|
|
objArr8[10] = irs;
|
|
objArr8[9] = irs;
|
|
objArr8[8] = Integer.valueOf(charValue);
|
|
objArr8[7] = irs;
|
|
objArr8[6] = irs;
|
|
objArr8[5] = Integer.valueOf(charValue);
|
|
objArr8[c2] = irs;
|
|
objArr8[3] = irs;
|
|
objArr8[2] = Integer.valueOf(charValue);
|
|
objArr8[1] = irs;
|
|
objArr8[0] = irs;
|
|
Object obj4 = xzZ.y.get(822107368);
|
|
if (obj4 == null) {
|
|
Class cls4 = (Class) xzZ.c(233 - (ViewConfiguration.getScrollDefaultDelay() >> 16), 4 - TextUtils.indexOf((CharSequence) "", '0', 0), (char) (TextUtils.indexOf("", "", 0, 0) + 22024));
|
|
byte b9 = (byte) 0;
|
|
byte b10 = b9;
|
|
Object[] objArr9 = new Object[1];
|
|
q(b9, b10, b10, objArr9);
|
|
obj4 = cls4.getMethod((String) objArr9[0], Object.class, Object.class, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Object.class);
|
|
xzZ.y.put(822107368, obj4);
|
|
}
|
|
if (((Integer) ((Method) obj4).invoke(null, objArr8)).intValue() == irs.j) {
|
|
int i12 = $10 + 13;
|
|
$11 = i12 % 128;
|
|
int i13 = i12 % 2;
|
|
Object[] objArr10 = {irs, irs, Integer.valueOf(charValue), Integer.valueOf(charValue), irs, irs, Integer.valueOf(charValue), Integer.valueOf(charValue), irs, Integer.valueOf(charValue), irs};
|
|
Object obj5 = xzZ.y.get(-1152873385);
|
|
if (obj5 != null) {
|
|
c = 4;
|
|
} else {
|
|
Class cls5 = (Class) xzZ.c(327 - Color.green(0), 5 - (CdmaCellLocation.convertQuartSecToDecDegrees(0) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(0) == 0.0d ? 0 : -1)), (char) (ViewConfiguration.getScrollBarFadeDuration() >> 16));
|
|
byte b11 = (byte) ($$e & 15);
|
|
byte b12 = (byte) (b11 - 2);
|
|
Object[] objArr11 = new Object[1];
|
|
q(b11, b12, b12, objArr11);
|
|
String str = (String) objArr11[0];
|
|
c = 4;
|
|
obj5 = cls5.getMethod(str, Object.class, Object.class, Integer.TYPE, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Integer.TYPE, Object.class, Integer.TYPE, Object.class);
|
|
xzZ.y.put(-1152873385, obj5);
|
|
}
|
|
int intValue = ((Integer) ((Method) obj5).invoke(null, objArr10)).intValue();
|
|
int i14 = (irs.d * charValue) + irs.j;
|
|
cArr4[irs.e] = cArr2[intValue];
|
|
cArr4[irs.e + 1] = cArr2[i14];
|
|
} else {
|
|
c = 4;
|
|
if (irs.a == irs.d) {
|
|
irs.f = ((irs.f + charValue) - 1) % charValue;
|
|
irs.j = ((irs.j + charValue) - 1) % charValue;
|
|
int i15 = (irs.a * charValue) + irs.f;
|
|
int i16 = (irs.d * charValue) + irs.j;
|
|
cArr4[irs.e] = cArr2[i15];
|
|
cArr4[irs.e + 1] = cArr2[i16];
|
|
int i17 = $11 + 73;
|
|
$10 = i17 % 128;
|
|
int i18 = i17 % 2;
|
|
} else {
|
|
int i19 = (irs.a * charValue) + irs.j;
|
|
int i20 = (irs.d * charValue) + irs.f;
|
|
cArr4[irs.e] = cArr2[i19];
|
|
i3 = 1;
|
|
cArr4[irs.e + 1] = cArr2[i20];
|
|
}
|
|
}
|
|
i3 = 1;
|
|
}
|
|
irs.e += 2;
|
|
i11 = i3;
|
|
c2 = c;
|
|
}
|
|
}
|
|
for (int i21 = 0; i21 < i; i21++) {
|
|
cArr4[i21] = (char) (cArr4[i21] ^ 13722);
|
|
}
|
|
objArr[0] = new String(cArr4);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static /* synthetic */ Object e(Object[] objArr) {
|
|
boolean booleanValue = ((Boolean) objArr[1]).booleanValue();
|
|
KwE kwE = (KwE) objArr[2];
|
|
int i = 2 % 2;
|
|
int i2 = h + 125;
|
|
a = i2 % 128;
|
|
if (i2 % 2 != 0) {
|
|
c(booleanValue, kwE);
|
|
throw null;
|
|
}
|
|
C1087Vh c = c(booleanValue, kwE);
|
|
int i3 = a + 109;
|
|
h = i3 % 128;
|
|
int i4 = i3 % 2;
|
|
return c;
|
|
}
|
|
|
|
public static /* synthetic */ C1087Vh a(C0199Bd c0199Bd, boolean z, KwE kwE) {
|
|
Object[] objArr = {c0199Bd, Boolean.valueOf(z), kwE};
|
|
return (C1087Vh) e(objArr);
|
|
}
|
|
}
|