package o; import android.os.Process; import android.os.SystemClock; import android.text.AndroidCharacter; import android.text.TextUtils; import android.view.MotionEvent; import android.view.View; import com.google.common.base.Ascii; import com.scb.phone.domain.interactor.emailverification.EmailMeVerificationCodeUseCase; import com.scb.phone.domain.interactor.emailverification.EnterVerificationCodeUseCase; import java.lang.reflect.Method; import o.C0690Mh; import o.C4749bfz; import o.ZI; import o.wRi; import org.bouncycastle.asn1.x509.DisplayText; /* renamed from: o.bfz */ /* loaded from: classes4.dex */ public class C4749bfz extends ZI { private final EmailMeVerificationCodeUseCase a; private final FHl b; private final EnterVerificationCodeUseCase c; private boolean d; private String e; private String g; private long h; private String i; private static final byte[] $$a = {4, 8, Ascii.DC4, -35}; private static final int $$b = DisplayText.DISPLAY_TEXT_MAXIMUM_SIZE; private static int $10 = 0; private static int $11 = 1; /* renamed from: o */ private static int f8570o = 0; private static int p = 1; private static char n = 9454; private static char k = 63276; private static char m = 50507; private static char l = 27223; public static /* synthetic */ Object a(Object[] objArr, int i, int i2, int i3) { int i4 = (i * (-494)) + (i2 * (-494)) + ((~(i | i2)) * (-495)); int i5 = (~i3) | i; int i6 = i4 + (i5 * 495) + (((~((~i) | (~i2))) | (~i5)) * 495); if (i6 == 1) { return d(objArr); } if (i6 == 2) { C4749bfz c4749bfz = (C4749bfz) objArr[0]; int i7 = 2 % 2; int i8 = p + 15; int i9 = i8 % 128; f8570o = i9; int i10 = i8 % 2; String str = c4749bfz.i; int i11 = i9 + 77; p = i11 % 128; int i12 = i11 % 2; return str; } if (i6 != 3) { C4749bfz c4749bfz2 = (C4749bfz) objArr[0]; int i13 = 2 % 2; int i14 = p + 51; f8570o = i14 % 128; int i15 = i14 % 2; if (c4749bfz2.f != 0) { int i16 = p + 105; f8570o = i16 % 128; int i17 = i16 % 2; c4749bfz2.f.ar_(); } else { int i18 = p + 111; f8570o = i18 % 128; int i19 = i18 % 2; } return null; } return e(objArr); } /* 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:0x002f). 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 r(int r6, int r7, int r8, java.lang.Object[] r9) { /* int r7 = r7 * 4 int r7 = 3 - r7 int r6 = 67 - r6 int r8 = r8 * 2 int r0 = 1 - r8 byte[] r1 = o.C4749bfz.$$a byte[] r0 = new byte[r0] r2 = 0 int r8 = 0 - r8 if (r1 != 0) goto L17 r3 = r7 r6 = r8 r4 = r2 goto L2f L17: r3 = r2 L18: byte r4 = (byte) r6 r0[r3] = r4 int r7 = r7 + 1 if (r3 != r8) goto L27 java.lang.String r6 = new java.lang.String r6.(r0, r2) r9[r2] = r6 return L27: int r3 = r3 + 1 r4 = r1[r7] r5 = r3 r3 = r7 r7 = r4 r4 = r5 L2f: int r6 = r6 + r7 r7 = r3 r3 = r4 goto L18 */ throw new UnsupportedOperationException("Method not decompiled: o.C4749bfz.r(int, int, int, java.lang.Object[]):void"); } static /* synthetic */ void a(C4749bfz c4749bfz) { int i = 2 % 2; int i2 = f8570o + 85; p = i2 % 128; if (i2 % 2 == 0) { int i3 = 32 / 0; if (c4749bfz.f == 0) { return; } } else if (c4749bfz.f == 0) { return; } int i4 = f8570o + 77; p = i4 % 128; int i5 = i4 % 2; c4749bfz.f.ar_(); } static /* synthetic */ void c(C4749bfz c4749bfz) { int i = 2 % 2; if (c4749bfz.f != 0) { int i2 = p; int i3 = i2 + 107; f8570o = i3 % 128; boolean z = i3 % 2 == 0; int i4 = i2 + 101; f8570o = i4 % 128; int i5 = i4 % 2; if (z) { c4749bfz.f.ar_(); } } } static /* synthetic */ void f(C4749bfz c4749bfz) { int i = 2 % 2; int i2 = f8570o + 75; p = i2 % 128; int i3 = i2 % 2; if (c4749bfz.f != 0) { int i4 = f8570o + 71; p = i4 % 128; int i5 = i4 % 2; c4749bfz.f.ar_(); return; } int i6 = p + 43; f8570o = i6 % 128; if (i6 % 2 != 0) { int i7 = 2 % 5; } } /* JADX INFO: Access modifiers changed from: package-private */ public static /* synthetic */ C16903sI g(C4749bfz c4749bfz) { int i = 2 % 2; int i2 = f8570o + 23; p = i2 % 128; int i3 = i2 % 2; C16903sI c16903sI = c4749bfz.j; int i4 = f8570o + 73; p = i4 % 128; if (i4 % 2 != 0) { return c16903sI; } throw null; } /* JADX INFO: Access modifiers changed from: package-private */ public static /* synthetic */ C16903sI j(C4749bfz c4749bfz) { int i = 2 % 2; int i2 = f8570o + 67; p = i2 % 128; int i3 = i2 % 2; C16903sI c16903sI = c4749bfz.j; int i4 = p + 85; f8570o = i4 % 128; if (i4 % 2 == 0) { return c16903sI; } throw null; } @InterfaceC13391fZD public C4749bfz(C16903sI c16903sI, EnterVerificationCodeUseCase enterVerificationCodeUseCase, EmailMeVerificationCodeUseCase emailMeVerificationCodeUseCase, FHl fHl) { super(c16903sI); this.a = emailMeVerificationCodeUseCase; this.c = enterVerificationCodeUseCase; this.b = fHl; } private /* synthetic */ void b(iKd ikd, InterfaceC6655cZN interfaceC6655cZN) { int i = 2 % 2; int i2 = f8570o + 121; p = i2 % 128; if (i2 % 2 != 0) { interfaceC6655cZN.d(ikd.h); interfaceC6655cZN.b(this.d); } else { interfaceC6655cZN.d(ikd.h); interfaceC6655cZN.b(this.d); Object obj = null; obj.hashCode(); throw null; } } public final void g() { int i = 2 % 2; int i2 = p + 29; f8570o = i2 % 128; int i3 = i2 % 2; iKd K = this.b.a.K(); boolean z = false; if (K == null) { ZI.IeS ieS = new ZI.IeS() { // from class: o.bfB @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC6655cZN) obj).h(); } }; if (this.f != 0) { z = true; } else { int i4 = f8570o + 23; p = i4 % 128; int i5 = i4 % 2; } if (z) { ieS.e(this.f); } int i6 = f8570o + 1; p = i6 % 128; int i7 = i6 % 2; return; } Object[] objArr = new Object[1]; q(new char[]{50680, 55671}, 1 - TextUtils.getTrimmedLength(""), objArr); this.d = ((String) objArr[0]).intern().equals(K.i); if (TextUtils.isEmpty(K.h)) { C4702bfE c4702bfE = new C4702bfE(); if (this.f != 0) { int i8 = f8570o + 1; p = i8 % 128; int i9 = i8 % 2; z = true; } if (!(!z)) { c4702bfE.e(this.f); return; } return; } ZI.IeS ieS2 = new ZI.IeS(this, K) { // from class: o.bfF private iKd a; private C4749bfz d; @Override // o.ZI.IeS public final void e(Object obj) { C4749bfz.c(this.d, this.a, (InterfaceC6655cZN) obj); } { this.d = this; this.a = K; } }; if (this.f != 0) { int i10 = f8570o + 35; p = i10 % 128; int i11 = i10 % 2; ieS2.e(this.f); } if (this.d) { ZI.IeS ieS3 = new ZI.IeS() { // from class: o.bfD @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC6655cZN) obj).e(); } }; if (this.f != 0) { ieS3.e(this.f); } } } public final void f() { int i = 2 % 2; int i2 = p + 95; int i3 = i2 % 128; f8570o = i3; int i4 = i2 % 2; if (!this.d) { int i5 = i3 + 117; p = i5 % 128; int i6 = i5 % 2; i(); if (i6 == 0) { int i7 = 65 / 0; } } int i8 = p + 87; f8570o = i8 % 128; int i9 = i8 % 2; } private static /* synthetic */ Object e(Object[] objArr) { C4749bfz c4749bfz = (C4749bfz) objArr[0]; int i = 2 % 2; ZI.IeS ieS = new ZI.IeS() { // from class: o.bfC @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC6655cZN) obj).c(); } }; Object obj = null; if (c4749bfz.f != 0) { int i2 = p + 55; f8570o = i2 % 128; if (i2 % 2 != 0) { ieS.e(c4749bfz.f); obj.hashCode(); throw null; } ieS.e(c4749bfz.f); } else { int i3 = p + 15; f8570o = i3 % 128; int i4 = i3 % 2; } return null; } private /* synthetic */ void b(InterfaceC6655cZN interfaceC6655cZN) { String str; String str2; boolean z; int i = 2 % 2; int i2 = f8570o + 99; p = i2 % 128; if (i2 % 2 == 0) { str = this.i; str2 = this.g; z = true; } else { str = this.i; str2 = this.g; z = false; } interfaceC6655cZN.e(str, str2, z); } public final void c() { int i = 2 % 2; ZI.IeS ieS = new ZI.IeS(this) { // from class: o.bfI private C4749bfz e; @Override // o.ZI.IeS public final void e(Object obj) { C4749bfz.e(this.e, (InterfaceC6655cZN) obj); } { this.e = this; } }; if (this.f != 0) { int i2 = f8570o + 121; int i3 = i2 % 128; p = i3; if (i2 % 2 != 0) { int i4 = i3 + 1; f8570o = i4 % 128; if (i4 % 2 != 0) { ieS.e(this.f); Object obj = null; obj.hashCode(); throw null; } ieS.e(this.f); } } int i5 = f8570o + 25; p = i5 % 128; int i6 = i5 % 2; } /* renamed from: o.bfz$4 */ /* loaded from: classes4.dex */ public final class AnonymousClass4 extends wRi.LWm { private C4749bfz e; AnonymousClass4(C4749bfz c4749bfz) { this.e = c4749bfz; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { rKG rkg = (rKG) obj; C4749bfz.a(this.e); C4749bfz.c(this.e, rkg.d); C4749bfz.d(this.e, rkg.a); C4749bfz.e(this.e, rkg.b); boolean z = (((String) C4749bfz.a(new Object[]{this.e}, -833423214, 833423216, (int) System.currentTimeMillis())) == null || ((String) C4749bfz.a(new Object[]{this.e}, -833423214, 833423216, (int) System.currentTimeMillis())).isEmpty() || ((String) C4749bfz.a(new Object[]{this.e}, -633261222, 633261223, (int) System.currentTimeMillis())) == null || ((String) C4749bfz.a(new Object[]{this.e}, -633261222, 633261223, (int) System.currentTimeMillis())).isEmpty() || C4749bfz.d(this.e) == null || C4749bfz.d(this.e).isEmpty()) ? false : true; C4749bfz c4749bfz = this.e; ZI.IeS ieS = new ZI.IeS(z) { // from class: o.bfH private boolean e; @Override // o.ZI.IeS public final void e(Object obj2) { ((InterfaceC6655cZN) obj2).d(this.e); } { this.e = z; } }; if (c4749bfz.f != 0) { ieS.e(c4749bfz.f); } } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(Throwable th) { C4749bfz.c(this.e); C4749bfz c4749bfz = this.e; ZI.IeS ieS = new ZI.IeS(this, th) { // from class: o.bfK private Throwable b; private C4749bfz.AnonymousClass4 d; @Override // o.ZI.IeS public final void e(Object obj) { InterfaceC6655cZN interfaceC6655cZN = (InterfaceC6655cZN) obj; interfaceC6655cZN.e(C4749bfz.j(this.d.e).d(this.b, C0690Mh.IeS.NAVIGATE_BACK)); } { this.d = this; this.b = th; } }; if (c4749bfz.f != 0) { ieS.e(c4749bfz.f); } } } private void i() { int i = 2 % 2; int i2 = p + 51; f8570o = i2 % 128; int i3 = i2 % 2; if (this.f != 0) { int i4 = f8570o + 19; p = i4 % 128; int i5 = i4 % 2; this.f.y(); } this.c.d(); EnterVerificationCodeUseCase enterVerificationCodeUseCase = this.c; enterVerificationCodeUseCase.d(enterVerificationCodeUseCase.i, new AnonymousClass4(this)); } /* renamed from: o.bfz$2 */ /* loaded from: classes4.dex */ public final class AnonymousClass2 extends wRi.LWm { private C4749bfz e; AnonymousClass2(C4749bfz c4749bfz) { this.e = c4749bfz; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { C4749bfz.a(new Object[]{this.e}, -468063222, 468063222, (int) System.currentTimeMillis()); C4749bfz c4749bfz = this.e; ZI.IeS ieS = new ZI.IeS((GDQ) obj) { // from class: o.bfP private GDQ a; @Override // o.ZI.IeS public final void e(Object obj2) { ((InterfaceC6655cZN) obj2).e(r0.a, this.a.c, true); } { this.a = r1; } }; if (c4749bfz.f != 0) { ieS.e(c4749bfz.f); } } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(Throwable th) { C4749bfz.f(this.e); if (th instanceof EmailMeVerificationCodeUseCase.EmailVerificationCodeNotSendException) { C4749bfz c4749bfz = this.e; ZI.IeS ieS = new ZI.IeS() { // from class: o.bfJ @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC6655cZN) obj).d(); } }; if (c4749bfz.f != 0) { ieS.e(c4749bfz.f); return; } return; } C4749bfz c4749bfz2 = this.e; ZI.IeS ieS2 = new ZI.IeS(this, th) { // from class: o.bfO private Throwable b; private C4749bfz.AnonymousClass2 e; @Override // o.ZI.IeS public final void e(Object obj) { InterfaceC6655cZN interfaceC6655cZN = (InterfaceC6655cZN) obj; interfaceC6655cZN.e(C4749bfz.g(this.e.e).e(this.b)); } { this.e = this; this.b = th; } }; if (c4749bfz2.f != 0) { ieS2.e(c4749bfz2.f); } } } public final void b() { int i = 2 % 2; int i2 = p + 45; f8570o = i2 % 128; if (i2 % 2 == 0 ? SystemClock.elapsedRealtime() - this.h < 60000 : (SystemClock.elapsedRealtime() & this.h) < 60000) { ZI.IeS ieS = new ZI.IeS() { // from class: o.bfG @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC6655cZN) obj).b(); } }; if (this.f != 0) { int i3 = f8570o + 47; p = i3 % 128; if (i3 % 2 == 0) { ieS.e(this.f); int i4 = 12 / 0; return; } else { ieS.e(this.f); return; } } return; } this.h = SystemClock.elapsedRealtime(); if (this.f != 0) { int i5 = p + 43; f8570o = i5 % 128; int i6 = i5 % 2; this.f.y(); } this.a.b(); EmailMeVerificationCodeUseCase emailMeVerificationCodeUseCase = this.a; emailMeVerificationCodeUseCase.d(emailMeVerificationCodeUseCase.i, new AnonymousClass2(this)); } private static void q(char[] cArr, int i, Object[] objArr) { int i2; int i3 = 2; int i4 = 2 % 2; jTb jtb = new jTb(); char[] cArr2 = new char[cArr.length]; jtb.b = 0; char[] cArr3 = new char[2]; while (jtb.b < cArr.length) { cArr3[0] = cArr[jtb.b]; cArr3[1] = cArr[jtb.b + 1]; int i5 = $11 + 107; $10 = i5 % 128; if (i5 % i3 != 0) { int i6 = 5 / 4; } int i7 = 58224; int i8 = 0; while (i8 < 16) { int i9 = $11 + 53; $10 = i9 % 128; int i10 = i9 % i3; char c = cArr3[1]; char c2 = cArr3[0]; int i11 = (c2 + i7) ^ ((c2 << 4) + ((char) (m ^ 41718355337583039L))); int i12 = c2 >>> 5; try { Object[] objArr2 = new Object[4]; objArr2[3] = Integer.valueOf(l); objArr2[i3] = Integer.valueOf(i12); objArr2[1] = Integer.valueOf(i11); objArr2[0] = Integer.valueOf(c); Object obj = xzZ.y.get(597144044); if (obj == null) { Class cls = (Class) xzZ.c(AndroidCharacter.getMirror('0') + 364, TextUtils.indexOf("", "", 0, 0) + 5, (char) (Process.getGidForName("") + 1)); byte b = (byte) 1; byte b2 = (byte) (b - 1); Object[] objArr3 = new Object[1]; r(b, b2, b2, objArr3); obj = cls.getMethod((String) objArr3[0], Integer.TYPE, Integer.TYPE, Integer.TYPE, Integer.TYPE); xzZ.y.put(597144044, obj); } char charValue = ((Character) ((Method) obj).invoke(null, objArr2)).charValue(); cArr3[1] = charValue; Object[] objArr4 = {Integer.valueOf(cArr3[0]), Integer.valueOf((charValue + i7) ^ ((charValue << 4) + ((char) (n ^ 41718355337583039L)))), Integer.valueOf(charValue >>> 5), Integer.valueOf(k)}; Object obj2 = xzZ.y.get(597144044); if (obj2 == null) { Class cls2 = (Class) xzZ.c(View.resolveSizeAndState(0, 0, 0) + 412, 5 - View.resolveSize(0, 0), (char) ((-1) - MotionEvent.axisFromString(""))); byte b3 = (byte) 1; byte b4 = (byte) (b3 - 1); Object[] objArr5 = new Object[1]; r(b3, b4, b4, objArr5); obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE, Integer.TYPE, Integer.TYPE, Integer.TYPE); xzZ.y.put(597144044, obj2); } cArr3[0] = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue(); i7 -= 40503; i8++; i3 = 2; } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } cArr2[jtb.b] = cArr3[0]; cArr2[jtb.b + 1] = cArr3[1]; Object[] objArr6 = {jtb, jtb}; Object obj3 = xzZ.y.get(943004485); if (obj3 != null) { i2 = 2; } else { Class cls3 = (Class) xzZ.c(98 - View.combineMeasuredStates(0, 0), 6 - (SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1)), (char) (TextUtils.lastIndexOf("", '0', 0) + 1)); byte b5 = (byte) 0; byte b6 = b5; Object[] objArr7 = new Object[1]; r(b5, b6, b6, objArr7); i2 = 2; obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class); xzZ.y.put(943004485, obj3); } ((Method) obj3).invoke(null, objArr6); i3 = i2; } objArr[0] = new String(cArr2, 0, i); } public final void d() { int i = 2 % 2; C4702bfE c4702bfE = new C4702bfE(); if (!(!(this.f != 0))) { int i2 = f8570o + 87; p = i2 % 128; if (i2 % 2 == 0) { c4702bfE.e(this.f); int i3 = 79 / 0; } else { c4702bfE.e(this.f); } } int i4 = f8570o + 33; p = i4 % 128; int i5 = i4 % 2; } private static /* synthetic */ Object d(Object[] objArr) { C4749bfz c4749bfz = (C4749bfz) objArr[0]; int i = 2 % 2; int i2 = f8570o + 75; p = i2 % 128; int i3 = i2 % 2; String str = c4749bfz.g; if (i3 == 0) { int i4 = 24 / 0; } return str; } public final void a() { a(new Object[]{this}, 1857397338, -1857397335, System.identityHashCode(this)); } static /* synthetic */ void d(C4749bfz c4749bfz, String str) { int i = 2 % 2; int i2 = p + 117; f8570o = i2 % 128; int i3 = i2 % 2; c4749bfz.i = str; if (i3 == 0) { return; } Object obj = null; obj.hashCode(); throw null; } static /* bridge */ /* synthetic */ void e(C4749bfz c4749bfz, String str) { int i = 2 % 2; int i2 = f8570o + 29; p = i2 % 128; int i3 = i2 % 2; c4749bfz.g = str; if (i3 == 0) { throw null; } } static /* bridge */ /* synthetic */ void c(C4749bfz c4749bfz, String str) { int i = 2 % 2; int i2 = p; int i3 = i2 + 25; f8570o = i3 % 128; int i4 = i3 % 2; c4749bfz.e = str; int i5 = i2 + 101; f8570o = i5 % 128; int i6 = i5 % 2; } static /* synthetic */ String e(C4749bfz c4749bfz) { return (String) a(new Object[]{c4749bfz}, -833423214, 833423216, (int) System.currentTimeMillis()); } static /* synthetic */ String b(C4749bfz c4749bfz) { return (String) a(new Object[]{c4749bfz}, -633261222, 633261223, (int) System.currentTimeMillis()); } static /* synthetic */ String d(C4749bfz c4749bfz) { int i = 2 % 2; int i2 = f8570o + 9; int i3 = i2 % 128; p = i3; int i4 = i2 % 2; String str = c4749bfz.e; if (i4 == 0) { Object obj = null; obj.hashCode(); throw null; } int i5 = i3 + 43; f8570o = i5 % 128; int i6 = i5 % 2; return str; } public static /* synthetic */ void c(C4749bfz c4749bfz, iKd ikd, InterfaceC6655cZN interfaceC6655cZN) { int i = 2 % 2; int i2 = f8570o + 11; p = i2 % 128; int i3 = i2 % 2; c4749bfz.b(ikd, interfaceC6655cZN); int i4 = f8570o + 53; p = i4 % 128; if (i4 % 2 == 0) { throw null; } } public static /* synthetic */ void e(C4749bfz c4749bfz, InterfaceC6655cZN interfaceC6655cZN) { int i = 2 % 2; int i2 = f8570o + 21; p = i2 % 128; int i3 = i2 % 2; Object obj = null; c4749bfz.b(interfaceC6655cZN); if (i3 == 0) { obj.hashCode(); throw null; } int i4 = f8570o + 3; p = i4 % 128; if (i4 % 2 == 0) { throw null; } } }