package o; import kotlin.NoWhenBranchMatchedException; import o.AbstractC5115bmu; import o.HQp; import o.InterfaceC9245dgA; import o.ZI; import o.wRi; /* renamed from: o.bmu, reason: case insensitive filesystem */ /* loaded from: classes4.dex */ public abstract class AbstractC5115bmu extends ZI { HQp a; Sts b; public final Tdc c; final zWC e; /* renamed from: o.bmu$LWm */ /* loaded from: classes4.dex */ public enum LWm { VERIFY_EMAIL, OPEN_ACCOUNT, ADD_ACCOUNT, SETUP_LOAN } /* renamed from: o.bmu$Sts */ /* loaded from: classes4.dex */ public enum Sts { OPEN_VERIFIED, ADD_VERIFIED, NO_VALUE_VERIFIED, NO_VERIFIED } public abstract void b(); public abstract boolean d(); /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ public AbstractC5115bmu(C16903sI c16903sI, Tdc tdc, zWC zwc) { super(c16903sI); C14957gcv.e(c16903sI, ""); C14957gcv.e(tdc, ""); C14957gcv.e(zwc, ""); this.c = tdc; this.e = zwc; } /* renamed from: o.bmu$RVV */ /* loaded from: classes4.dex */ public static final class RVV extends wRi.LWm { private AbstractC5115bmu b; public RVV(AbstractC5115bmu abstractC5115bmu) { this.b = abstractC5115bmu; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { Sts sts; final LWm lWm; final HQp hQp = (HQp) obj; C14957gcv.e(hQp, ""); AbstractC5115bmu abstractC5115bmu = this.b; C14957gcv.e(hQp, ""); abstractC5115bmu.a = hQp; final AbstractC5115bmu abstractC5115bmu2 = this.b; if (!hQp.a) { sts = Sts.NO_VERIFIED; } else { int i = IeS.b[hQp.b.ordinal()]; if (i == 1) { sts = Sts.ADD_VERIFIED; } else if (i == 2) { sts = Sts.OPEN_VERIFIED; } else { if (i != 3) { throw new NoWhenBranchMatchedException(); } sts = Sts.NO_VALUE_VERIFIED; } } C14957gcv.e(sts, ""); abstractC5115bmu2.b = sts; ZI.IeS ieS = new ZI.IeS(abstractC5115bmu2) { // from class: o.bmr private AbstractC5115bmu e; @Override // o.ZI.IeS public final void e(Object obj2) { AbstractC5115bmu abstractC5115bmu3 = this.e; InterfaceC9245dgA interfaceC9245dgA = (InterfaceC9245dgA) obj2; C14957gcv.e(abstractC5115bmu3, ""); AbstractC5115bmu.Sts sts2 = abstractC5115bmu3.b; if (sts2 == null) { C14957gcv.a(""); sts2 = null; } interfaceC9245dgA.c(sts2); } { this.e = abstractC5115bmu2; } }; if (abstractC5115bmu2.f != 0) { ieS.e(abstractC5115bmu2.f); } AbstractC5115bmu abstractC5115bmu3 = this.b; if (!abstractC5115bmu3.d()) { lWm = LWm.VERIFY_EMAIL; } else { int i2 = IeS.b[hQp.b.ordinal()]; if (i2 == 1) { lWm = LWm.ADD_ACCOUNT; } else if (i2 == 2) { lWm = LWm.OPEN_ACCOUNT; } else if (i2 == 3) { lWm = LWm.SETUP_LOAN; } else { throw new NoWhenBranchMatchedException(); } } ZI.IeS ieS2 = new ZI.IeS(lWm) { // from class: o.bmv private AbstractC5115bmu.LWm d; @Override // o.ZI.IeS public final void e(Object obj2) { AbstractC5115bmu.LWm lWm2 = this.d; C14957gcv.e(lWm2, ""); ((InterfaceC9245dgA) obj2).b(lWm2); } { this.d = lWm; } }; if (abstractC5115bmu3.f != 0) { ieS2.e(abstractC5115bmu3.f); } final AbstractC5115bmu abstractC5115bmu4 = this.b; ZI.IeS ieS3 = new ZI.IeS(abstractC5115bmu4, hQp) { // from class: o.bmz private AbstractC5115bmu c; private HQp d; @Override // o.ZI.IeS public final void e(Object obj2) { AbstractC5115bmu.RVV.c(this.c, this.d, (InterfaceC9245dgA) obj2); } { this.c = abstractC5115bmu4; this.d = hQp; } }; if (abstractC5115bmu4.f != 0) { ieS3.e(abstractC5115bmu4.f); } AbstractC5115bmu abstractC5115bmu5 = this.b; if (abstractC5115bmu5.f != 0) { abstractC5115bmu5.f.ar_(); } } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(Throwable th) { C14957gcv.e(th, ""); final AbstractC5115bmu abstractC5115bmu = this.b; Runnable runnable = new Runnable(abstractC5115bmu) { // from class: o.bmA private AbstractC5115bmu d; @Override // java.lang.Runnable public final void run() { AbstractC5115bmu.RVV.d(this.d); } { this.d = abstractC5115bmu; } }; if (abstractC5115bmu.b(th)) { abstractC5115bmu.d(abstractC5115bmu.j.c(th, runnable)); } } public static /* synthetic */ void d(AbstractC5115bmu abstractC5115bmu) { C14957gcv.e(abstractC5115bmu, ""); ZI.IeS ieS = new ZI.IeS() { // from class: o.bmy @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC9245dgA) obj).a(); } }; if (abstractC5115bmu.f != 0) { ieS.e(abstractC5115bmu.f); } } public static /* synthetic */ void c(AbstractC5115bmu abstractC5115bmu, HQp hQp, InterfaceC9245dgA interfaceC9245dgA) { C14957gcv.e(abstractC5115bmu, ""); C14957gcv.e(hQp, ""); String c = C6583cXR.c(abstractC5115bmu.e.a.f()); C14957gcv.c((Object) c, ""); interfaceC9245dgA.b(c, hQp.a, hQp.b); } } /* renamed from: o.bmu$IeS */ /* loaded from: classes4.dex */ public final /* synthetic */ class IeS { public static final int[] b; static { int[] iArr = new int[HQp.Sts.values().length]; try { iArr[HQp.Sts.ADD.ordinal()] = 1; } catch (NoSuchFieldError unused) { } try { iArr[HQp.Sts.OPEN.ordinal()] = 2; } catch (NoSuchFieldError unused2) { } try { iArr[HQp.Sts.NO_VALUE.ordinal()] = 3; } catch (NoSuchFieldError unused3) { } b = iArr; } } }