what-the-bank/sources/o/fLM.java

717 lines
24 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.os.SystemClock;
import android.text.AndroidCharacter;
import android.text.Editable;
import android.text.TextUtils;
import android.text.TextWatcher;
import android.util.TypedValue;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android.widget.EditText;
import android.widget.ExpandableListView;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.google.android.material.textfield.TextInputLayout;
import java.lang.ref.WeakReference;
import java.lang.reflect.Method;
import java.text.DecimalFormat;
import org.jmrtd.lds.CVCAFile;
/* loaded from: classes5.dex */
public class fLM implements TextWatcher {
private boolean a;
private final WeakReference<EditText> b;
private String c;
private double d;
private double e;
private TextInputLayout f;
private String g;
private boolean h;
private String i;
private String j;
private double k;
private String l;
private double m;
private IeS n;
/* renamed from: o, reason: collision with root package name */
private final Object f9096o;
private static final byte[] $$a = {110, 84, -61, CVCAFile.CAR_TAG};
private static final int $$b = 228;
private static int $10 = 0;
private static int $11 = 1;
private static int s = 0;
private static int t = 1;
private static int[] p = {-860538233, -1614061521, 1356997636, -1402635915, 434360874, 1413084993, -481442871, -1735140523, -746234715, -1519668643, -748463638, -1147362562, 1133590023, 1166216535, -55931444, -731705876, 936613927, -458411112};
@FunctionalInterface
/* loaded from: classes5.dex */
public interface IeS {
void e(double d);
}
/* JADX WARN: Removed duplicated region for block: B:10:0x0026 */
/* JADX WARN: Removed duplicated region for block: B:7:0x001e */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0026 -> 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 q(int r7, byte r8, byte r9, java.lang.Object[] r10) {
/*
int r8 = r8 * 2
int r8 = r8 + 1
int r7 = r7 * 2
int r7 = 104 - r7
byte[] r0 = o.fLM.$$a
int r9 = r9 * 4
int r9 = r9 + 4
byte[] r1 = new byte[r8]
r2 = 0
if (r0 != 0) goto L16
r3 = r9
r4 = r2
goto L2b
L16:
r3 = r2
L17:
int r4 = r3 + 1
byte r5 = (byte) r7
r1[r3] = r5
if (r4 != r8) goto L26
java.lang.String r7 = new java.lang.String
r7.<init>(r1, r2)
r10[r2] = r7
return
L26:
r3 = r0[r9]
r6 = r3
r3 = r9
r9 = r6
L2b:
int r9 = -r9
int r3 = r3 + 1
int r7 = r7 + r9
r9 = r3
r3 = r4
goto L17
*/
throw new UnsupportedOperationException("Method not decompiled: o.fLM.q(int, byte, byte, java.lang.Object[]):void");
}
public fLM(EditText editText, TextInputLayout textInputLayout, double d, double d2, String str, String str2) {
this(editText, textInputLayout, d, d, d2, str, str2, null);
}
public fLM(EditText editText, TextInputLayout textInputLayout, double d, double d2, String str, String str2, String str3) {
this(editText, textInputLayout, d, d, d2, str, str2, str3);
}
public fLM(EditText editText, TextInputLayout textInputLayout, double d, double d2, double d3, String str, String str2, String str3, double d4, String str4) {
double d5;
this.d = 1.0d;
this.c = null;
this.a = false;
this.j = "";
this.b = new WeakReference<>(editText);
this.f = textInputLayout;
this.n = null;
this.m = d;
this.e = d2;
this.i = str;
this.g = str2;
this.l = str3;
this.d = d4;
this.c = str4;
if (d3 == 0.0d) {
int i = t + 65;
s = i % 128;
int i2 = i % 2;
int i3 = 2 % 2;
d5 = 0.01d;
} else {
d5 = d3;
}
this.k = d5;
this.f9096o = new Object();
int i4 = t + 61;
s = i4 % 128;
int i5 = i4 % 2;
}
public fLM(EditText editText, TextInputLayout textInputLayout, double d, double d2, double d3, String str, String str2, String str3) {
this.d = 1.0d;
Object obj = null;
this.c = null;
this.a = false;
this.j = "";
this.b = new WeakReference<>(editText);
this.f = textInputLayout;
this.n = null;
this.m = d;
this.e = d2;
this.i = str;
this.g = str2;
this.l = str3;
if (d3 == 0.0d) {
int i = s + 103;
t = i % 128;
int i2 = i % 2;
int i3 = 2 % 2;
d3 = 0.01d;
}
this.k = d3;
this.f9096o = new Object();
int i4 = s + 119;
t = i4 % 128;
if (i4 % 2 != 0) {
return;
}
obj.hashCode();
throw null;
}
public fLM(EditText editText, IeS ieS) {
this.d = 1.0d;
this.c = null;
this.a = false;
this.j = "";
this.b = new WeakReference<>(editText);
this.n = ieS;
this.m = 9.9999999999E8d;
this.f9096o = new Object();
}
public final void a(double d) {
int i = 2 % 2;
int i2 = s + 115;
t = i2 % 128;
Object obj = null;
if (i2 % 2 != 0) {
this.e = d;
String obj2 = this.b.get().getText().toString();
if (TextUtils.isEmpty(obj2)) {
return;
}
int i3 = t + 115;
s = i3 % 128;
int i4 = i3 % 2;
Double c = C6583cXR.c(obj2);
if (i4 == 0) {
b(c.doubleValue());
return;
} else {
b(c.doubleValue());
obj.hashCode();
throw null;
}
}
this.e = d;
TextUtils.isEmpty(this.b.get().getText().toString());
obj.hashCode();
throw null;
}
/* JADX WARN: Code restructure failed: missing block: B:13:0x0048, code lost:
if (android.text.TextUtils.isEmpty(r4) != false) goto L11;
*/
/* JADX WARN: Code restructure failed: missing block: B:4:0x002b, code lost:
if ((!android.text.TextUtils.isEmpty(r4)) != true) goto L11;
*/
/* JADX WARN: Code restructure failed: missing block: B:5:0x004b, code lost:
b(o.C6583cXR.c(r4).doubleValue());
r4 = o.fLM.t + 83;
o.fLM.s = r4 % 128;
r4 = r4 % 2;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void a(double r4, java.lang.String r6) {
/*
r3 = this;
r0 = 2
int r1 = r0 % r0
int r1 = o.fLM.s
int r1 = r1 + 25
int r2 = r1 % 128
o.fLM.t = r2
int r1 = r1 % r0
r2 = 1
if (r1 != 0) goto L2e
r3.k = r4
r4 = 0
r3.a = r4
r3.j = r6
java.lang.ref.WeakReference<android.widget.EditText> r4 = r3.b
java.lang.Object r4 = r4.get()
android.widget.EditText r4 = (android.widget.EditText) r4
android.text.Editable r4 = r4.getText()
java.lang.String r4 = r4.toString()
boolean r5 = android.text.TextUtils.isEmpty(r4)
r5 = r5 ^ r2
if (r5 == r2) goto L4b
goto L5f
L2e:
r3.k = r4
r3.a = r2
r3.j = r6
java.lang.ref.WeakReference<android.widget.EditText> r4 = r3.b
java.lang.Object r4 = r4.get()
android.widget.EditText r4 = (android.widget.EditText) r4
android.text.Editable r4 = r4.getText()
java.lang.String r4 = r4.toString()
boolean r5 = android.text.TextUtils.isEmpty(r4)
if (r5 == 0) goto L4b
goto L5f
L4b:
java.lang.Double r4 = o.C6583cXR.c(r4)
double r4 = r4.doubleValue()
r3.b(r4)
int r4 = o.fLM.t
int r4 = r4 + 83
int r5 = r4 % 128
o.fLM.s = r5
int r4 = r4 % r0
L5f:
int r4 = o.fLM.s
int r4 = r4 + 101
int r5 = r4 % 128
o.fLM.t = r5
int r4 = r4 % r0
if (r4 == 0) goto L6b
return
L6b:
r4 = 0
throw r4
*/
throw new UnsupportedOperationException("Method not decompiled: o.fLM.a(double, java.lang.String):void");
}
@Override // android.text.TextWatcher
public void beforeTextChanged(CharSequence charSequence, int i, int i2, int i3) {
int i4 = 2 % 2;
boolean z = false;
if (charSequence.length() <= i) {
this.h = false;
return;
}
int i5 = t + 115;
s = i5 % 128;
int i6 = i5 % 2;
if (',' == charSequence.charAt(i)) {
int i7 = s + 115;
t = i7 % 128;
int i8 = i7 % 2;
z = true;
}
this.h = z;
int i9 = s + 99;
t = i9 % 128;
if (i9 % 2 != 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
@Override // android.text.TextWatcher
public void onTextChanged(CharSequence charSequence, int i, int i2, int i3) {
int i4 = 2 % 2;
int i5 = t + 109;
s = i5 % 128;
int i6 = i5 % 2;
EditText editText = this.b.get();
if (editText == null) {
int i7 = t + 25;
s = i7 % 128;
int i8 = i7 % 2;
} else {
editText.getEditableText().setSpan(this.f9096o, i, i3 + i, 17);
int i9 = t + 93;
s = i9 % 128;
if (i9 % 2 != 0) {
throw null;
}
}
}
@Override // android.text.TextWatcher
public void afterTextChanged(Editable editable) {
int i = 2 % 2;
int i2 = s + 81;
t = i2 % 128;
int i3 = i2 % 2;
aAL_(editable, false);
int i4 = t + 47;
s = i4 % 128;
int i5 = i4 % 2;
}
private static void r(int[] iArr, int i, Object[] objArr) {
int i2;
char c;
int i3 = 2 % 2;
C4403bZM c4403bZM = new C4403bZM();
int i4 = 4;
char[] cArr = new char[4];
char[] cArr2 = new char[iArr.length * 2];
int[] iArr2 = p;
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) {
try {
Object[] objArr2 = new Object[i6];
objArr2[0] = Integer.valueOf(iArr2[i8]);
Object obj = xzZ.y.get(729798706);
if (obj == null) {
obj = ((Class) xzZ.c(14 - ((byte) KeyEvent.getModifierMetaStateMask()), (SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)) + i4, (char) (58134 - View.resolveSizeAndState(0, 0, 0)))).getMethod("i", Integer.TYPE);
xzZ.y.put(729798706, obj);
}
iArr3[i8] = ((Integer) ((Method) obj).invoke(null, objArr2)).intValue();
i8++;
i4 = 4;
i6 = 1;
} 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 = p;
if (iArr5 != null) {
int i9 = $11 + 103;
$10 = i9 % 128;
int i10 = i9 % 2;
int length3 = iArr5.length;
int[] iArr6 = new int[length3];
int i11 = 0;
while (i11 < length3) {
Object[] objArr3 = new Object[1];
objArr3[i7] = Integer.valueOf(iArr5[i11]);
Object obj2 = xzZ.y.get(Integer.valueOf(i5));
if (obj2 != null) {
c = 58134;
} else {
c = 58134;
Class cls = (Class) xzZ.c(15 - (TypedValue.complexToFraction(i7, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFraction(i7, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), AndroidCharacter.getMirror('0') - '+', (char) ((ViewConfiguration.getKeyRepeatTimeout() >> 16) + 58134));
Class<?>[] clsArr = new Class[1];
clsArr[i7] = Integer.TYPE;
obj2 = cls.getMethod("i", clsArr);
i5 = 729798706;
xzZ.y.put(729798706, obj2);
}
iArr6[i11] = ((Integer) ((Method) obj2).invoke(null, objArr3)).intValue();
i11++;
i7 = 0;
}
i2 = i7;
iArr5 = iArr6;
} else {
i2 = 0;
}
System.arraycopy(iArr5, i2, iArr4, i2, length2);
c4403bZM.b = i2;
while (c4403bZM.b < iArr.length) {
int i12 = $10 + 11;
$11 = i12 % 128;
int i13 = i12 % 2;
cArr[0] = (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 i14 = 0;
for (int i15 = 16; i14 < i15; i15 = 16) {
int i16 = $11 + 27;
$10 = i16 % 128;
int i17 = i16 % 2;
c4403bZM.e ^= iArr4[i14];
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(ExpandableListView.getPackedPositionChild(0L) + 119, 6 - (ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)), (char) (1 - (SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1))));
byte b = (byte) 0;
byte b2 = b;
Object[] objArr5 = new Object[1];
q(b, b2, b2, 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;
i14++;
}
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[] objArr6 = {c4403bZM, c4403bZM};
Object obj4 = xzZ.y.get(1914371176);
if (obj4 == null) {
Class cls3 = (Class) xzZ.c(97 - TextUtils.indexOf((CharSequence) "", '0', 0), '5' - AndroidCharacter.getMirror('0'), (char) (KeyEvent.getMaxKeyCode() >> 16));
byte b3 = (byte) 1;
byte b4 = (byte) (b3 - 1);
Object[] objArr7 = new Object[1];
q(b3, b4, b4, objArr7);
obj4 = cls3.getMethod((String) objArr7[0], Object.class, Object.class);
xzZ.y.put(1914371176, obj4);
}
((Method) obj4).invoke(null, objArr6);
int i21 = $10 + 123;
$11 = i21 % 128;
int i22 = i21 % 2;
}
objArr[0] = new String(cArr2, 0, i);
}
public final void aAL_(Editable editable, boolean z) {
int i = 2 % 2;
EditText editText = this.b.get();
if (editText == null || editable == null) {
return;
}
String obj = editable.toString();
if (obj.equalsIgnoreCase(".")) {
return;
}
if (obj.isEmpty()) {
IeS ieS = this.n;
if (ieS != null) {
int i2 = t + 15;
s = i2 % 128;
int i3 = i2 % 2;
ieS.e(0.0d);
}
if (!(!z)) {
b(0.0d);
int i4 = s + 53;
t = i4 % 128;
int i5 = i4 % 2;
return;
}
return;
}
if (editable.getSpanStart(this.f9096o) == editable.getSpanEnd(this.f9096o)) {
int i6 = s + 45;
t = i6 % 128;
int i7 = i6 % 2;
if (this.h) {
StringBuilder sb = new StringBuilder();
sb.append(obj.substring(0, editable.getSpanEnd(this.f9096o) - 1));
sb.append(obj.substring(editable.getSpanEnd(this.f9096o)));
obj = sb.toString();
}
}
Double c = C6583cXR.c(obj);
b(c.doubleValue());
if (editable.toString().indexOf(".") != editable.length() - 1 || editable.getSpanEnd(this.f9096o) < obj.indexOf(".")) {
editText.removeTextChangedListener(this);
int selectionStart = editText.getSelectionStart();
int length = editText.getText().length();
editText.setText((String) d(new Object[]{obj}));
editText.addTextChangedListener(this);
if (editText.getText().length() - length == 1) {
selectionStart++;
}
if (selectionStart >= editText.getText().length()) {
selectionStart = editText.getText().length();
}
editText.setSelection(selectionStart);
}
double doubleValue = c.doubleValue();
IeS ieS2 = this.n;
if (ieS2 != null) {
int i8 = t + 57;
s = i8 % 128;
int i9 = i8 % 2;
ieS2.e(doubleValue);
if (i9 == 0) {
return;
}
Object obj2 = null;
obj2.hashCode();
throw null;
}
}
/* JADX INFO: Access modifiers changed from: private */
public static /* synthetic */ Object d(Object[] objArr) {
String str = (String) objArr[0];
int i = 2 % 2;
int i2 = t + 81;
s = i2 % 128;
String str2 = "###,###,###,##0.";
for (int i3 = i2 % 2 != 0 ? 1 : 0; i3 < 2; i3++) {
int i4 = t + 27;
s = i4 % 128;
if (i4 % 2 != 0) {
((Integer) C6583cXR.c(new Object[]{str}, -681284434, 681284436, (int) System.currentTimeMillis())).intValue();
Object obj = null;
obj.hashCode();
throw null;
}
if (i3 < ((Integer) C6583cXR.c(new Object[]{str}, -681284434, 681284436, (int) System.currentTimeMillis())).intValue()) {
StringBuilder sb = new StringBuilder();
sb.append(str2);
Object[] objArr2 = new Object[1];
r(new int[]{82626452, 1114772071}, (ViewConfiguration.getDoubleTapTimeout() >> 16) + 1, objArr2);
sb.append(((String) objArr2[0]).intern());
str2 = sb.toString();
} else {
StringBuilder sb2 = new StringBuilder();
sb2.append(str2);
sb2.append("#");
str2 = sb2.toString();
int i5 = s + 23;
t = i5 % 128;
if (i5 % 2 == 0) {
int i6 = 5 / 3;
}
}
}
return new DecimalFormat(str2).format(C6583cXR.c(str));
}
/* JADX WARN: Code restructure failed: missing block: B:10:0x0043, code lost:
return;
*/
/* JADX WARN: Code restructure failed: missing block: B:12:0x003a, code lost:
r11 = r9.f;
*/
/* JADX WARN: Code restructure failed: missing block: B:16:0x0038, code lost:
if (r10 != null) goto L13;
*/
/* JADX WARN: Code restructure failed: missing block: B:8:0x0033, code lost:
if (r10 != null) goto L13;
*/
/* JADX WARN: Code restructure failed: missing block: B:9:0x003e, code lost:
r9.f.setErrorEnabled(false);
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private void b(double r10) {
/*
Method dump skipped, instructions count: 287
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: o.fLM.b(double):void");
}
public final void c(boolean z) {
int i = 2 % 2;
if (!(!z)) {
int i2 = t;
int i3 = i2 + 1;
s = i3 % 128;
int i4 = i3 % 2;
String str = this.l;
if (str != null) {
int i5 = i2 + 43;
s = i5 % 128;
int i6 = i5 % 2;
this.f.setError(str);
int i7 = t + 83;
s = i7 % 128;
if (i7 % 2 == 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
}
this.f.setErrorEnabled(false);
}
public final void d() {
int i = 2 % 2;
int i2 = t + 31;
s = i2 % 128;
int i3 = i2 % 2;
EditText editText = this.b.get();
if (editText == null || editText.getText().toString().length() <= 0) {
return;
}
editText.setSelection(editText.getText().toString().length());
int i4 = t + 125;
s = i4 % 128;
int i5 = i4 % 2;
}
public final void b(IeS ieS) {
int i = 2 % 2;
int i2 = s;
int i3 = i2 + 107;
t = i3 % 128;
int i4 = i3 % 2;
this.n = ieS;
int i5 = i2 + 65;
t = i5 % 128;
if (i5 % 2 != 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
private static boolean d(double d, double d2) {
int i = 2 % 2;
boolean z = false;
if (d2 > 0.0d && d % d2 == 0.0d) {
int i2 = s + 7;
t = i2 % 128;
int i3 = i2 % 2;
z = true;
}
int i4 = t + 13;
s = i4 % 128;
int i5 = i4 % 2;
return z;
}
private static String e(String str) {
return (String) d(new Object[]{str});
}
}