package o; import android.content.res.Resources; import android.util.Base64; import java.nio.charset.StandardCharsets; import java.util.List; import o.C15715hv; import o.C4636bds; import o.InterfaceC6621cYR; import o.ZI; import o.wRi; /* renamed from: o.bds, reason: case insensitive filesystem */ /* loaded from: classes4.dex */ public class C4636bds extends ZI { public final C16706qX a; public final C16800rO b; public UaI c; public boolean d; public List e; public boolean g; public String h; public String i; public String k; private final C16843rl l; private final Wqj m; public String n; /* renamed from: o, reason: collision with root package name */ public fKT f8568o; private final Resources q; private final CQ s; /* renamed from: o.bds$Sts */ /* loaded from: classes4.dex */ public final class Sts extends wRi.LWm { private static byte c = 6; private static int d = 0; private static int e = 1; private C4636bds a; private void f(String str, Object[] objArr) { byte[] decode = Base64.decode(str, 0); byte[] bArr = new byte[decode.length]; for (int i = 0; i < decode.length; i++) { bArr[i] = (byte) (decode[(decode.length - i) - 1] ^ c); } objArr[0] = new String(bArr, StandardCharsets.UTF_8); } private Sts(C4636bds c4636bds) { this.a = c4636bds; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { final C16387nrD c16387nrD = (C16387nrD) obj; C4636bds.c(this.a); C4636bds c4636bds = this.a; ZI.IeS ieS = new ZI.IeS(this, c16387nrD) { // from class: o.bdD private C16387nrD b; private C4636bds.Sts d; @Override // o.ZI.IeS public final void e(Object obj2) { this.d.d(this.b, (InterfaceC6621cYR.nWP) obj2); } { this.d = this; this.b = c16387nrD; } }; if (c4636bds.f != 0) { ieS.e(c4636bds.f); } } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(Throwable th) { C4636bds.a(this.a, th, new Runnable(this) { // from class: o.bdx private C4636bds.Sts c; @Override // java.lang.Runnable public final void run() { C4636bds.Sts.c(this.c); } { this.c = this; } }); } /* JADX INFO: Access modifiers changed from: private */ public /* synthetic */ void d(C16387nrD c16387nrD, InterfaceC6621cYR.nWP nwp) { String str; int i = 2 % 2; int i2 = e + 19; d = i2 % 128; if (i2 % 2 != 0) { CQ unused = this.a.s; this.a.q.getString(C15715hv.tOB.loan_verification_ncb_consent_label).startsWith(",*,)"); Object obj = null; obj.hashCode(); throw null; } CQ cq = this.a.s; String string = this.a.q.getString(C15715hv.tOB.loan_verification_ncb_consent_label); if (string.startsWith(",*,)")) { int i3 = d + 7; e = i3 % 128; int i4 = i3 % 2; String substring = string.substring(4); Object[] objArr = new Object[1]; f(substring, objArr); str = ((String) objArr[0]).intern(); } else { str = string; } nwp.a(cq.e(str, c16387nrD, true, false, "NCB_CONSENT", false, null, null, C15715hv.LWm.transparent)); } public static /* synthetic */ void c(Sts sts) { C4636bds c4636bds = sts.a; C4640bdw c4640bdw = new C4640bdw(); if (c4636bds.f != 0) { c4640bdw.e(c4636bds.f); } } public /* synthetic */ Sts(C4636bds c4636bds, byte b) { this(c4636bds); } } @InterfaceC13391fZD public C4636bds(C16903sI c16903sI, Wqj wqj, fKT fkt, UaI uaI, C16706qX c16706qX, C16800rO c16800rO, C16843rl c16843rl, Resources resources, CQ cq) { super(c16903sI); this.m = wqj; this.f8568o = fkt; this.c = uaI; this.a = c16706qX; this.b = c16800rO; this.l = c16843rl; this.q = resources; this.s = cq; } public final String c(String str) { try { if (Double.valueOf(str.replace(",", "")).doubleValue() > 0.0d) { return this.k; } return null; } catch (Exception unused) { return null; } } /* renamed from: o.bds$HBt */ /* loaded from: classes4.dex */ public final class HBt extends wRi.LWm { private C4636bds d; private HBt(C4636bds c4636bds) { this.d = c4636bds; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { final String str = (String) obj; C4636bds.e(this.d); C4636bds c4636bds = this.d; ZI.IeS ieS = new ZI.IeS(this, str) { // from class: o.bdz private C4636bds.HBt c; private String e; @Override // o.ZI.IeS public final void e(Object obj2) { C4636bds.HBt.d(this.c, this.e, (InterfaceC6621cYR.nWP) obj2); } { this.c = this; this.e = str; } }; if (c4636bds.f != 0) { ieS.e(c4636bds.f); } } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(Throwable th) { C4636bds.d(this.d, th, new Runnable(this) { // from class: o.bdA private C4636bds.HBt c; @Override // java.lang.Runnable public final void run() { C4636bds.HBt.d(this.c); } { this.c = this; } }); } public static /* synthetic */ void d(HBt hBt) { C4636bds c4636bds = hBt.d; C4640bdw c4640bdw = new C4640bdw(); if (c4636bds.f != 0) { c4640bdw.e(c4636bds.f); } } public static /* synthetic */ void d(HBt hBt, String str, InterfaceC6621cYR.nWP nwp) { CQ cq = hBt.d.s; C14957gcv.e(str, ""); nwp.a(CQ.d(cq, null, null, str, null, true, false, false, null, null, null, 0, 1992)); } public /* synthetic */ HBt(C4636bds c4636bds, byte b) { this(c4636bds); } } /* renamed from: o.bds$RVV */ /* loaded from: classes4.dex */ public class RVV extends wRi.LWm { private C4636bds c; private String e; @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { final CfB cfB = (CfB) obj; C4636bds c4636bds = this.c; ZI.IeS ieS = new ZI.IeS(this, cfB) { // from class: o.bdy private CfB b; private C4636bds.RVV e; @Override // o.ZI.IeS public final void e(Object obj2) { InterfaceC6621cYR.nWP nwp = (InterfaceC6621cYR.nWP) obj2; nwp.b(r0.c.l.c(this.b), this.e.e); } { this.e = this; this.b = cfB; } }; if (c4636bds.f != 0) { ieS.e(c4636bds.f); } C4636bds.h(this.c); } public RVV(C4636bds c4636bds, String str) { this.c = c4636bds; this.e = str; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(Throwable th) { C4636bds.e(this.c, th, new Runnable(this) { // from class: o.bdt private C4636bds.RVV c; @Override // java.lang.Runnable public final void run() { C4636bds.RVV.c(this.c); } { this.c = this; } }); } public static /* synthetic */ void c(RVV rvv) { C4636bds c4636bds = rvv.c; ZI.IeS ieS = new ZI.IeS() { // from class: o.bdu @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC6621cYR.nWP) obj).c(); } }; if (c4636bds.f != 0) { ieS.e(c4636bds.f); } } } static /* synthetic */ void d(C4636bds c4636bds, Throwable th, Runnable runnable) { if (c4636bds.b(th)) { c4636bds.d(c4636bds.j.c(th, runnable)); } } static /* synthetic */ void e(C4636bds c4636bds) { if (c4636bds.f != 0) { c4636bds.f.ar_(); } } static /* synthetic */ void a(C4636bds c4636bds, Throwable th, Runnable runnable) { if (c4636bds.b(th)) { c4636bds.d(c4636bds.j.c(th, runnable)); } } static /* synthetic */ void c(C4636bds c4636bds) { if (c4636bds.f != 0) { c4636bds.f.ar_(); } } static /* synthetic */ void e(C4636bds c4636bds, Throwable th, Runnable runnable) { if (c4636bds.b(th)) { c4636bds.d(c4636bds.j.c(th, runnable)); } } static /* synthetic */ void h(C4636bds c4636bds) { if (c4636bds.f != 0) { c4636bds.f.ar_(); } } @Override // o.ZI public final void w_() { UaI uaI = this.c; if (!uaI.h.isDisposed()) { uaI.h.dispose(); } Wqj wqj = this.m; if (!wqj.h.isDisposed()) { wqj.h.dispose(); } fKT fkt = this.f8568o; if (!fkt.h.isDisposed()) { fkt.h.dispose(); } super.w_(); } }