package o; import java.util.List; import o.C0690Mh; import o.InterfaceC9010dbe; import o.ZI; import o.cUF; import o.wRi; /* loaded from: classes4.dex */ public class cUF extends ZI { private final C0339El a; public boolean b; public final tLY c; public C1226Yl d; public boolean e; private final C0337Ej g; private C1189Xo h; private final C17361wD i; /* renamed from: o, reason: collision with root package name */ private final C0290Di f8626o; @InterfaceC13391fZD public cUF(tLY tly, C0337Ej c0337Ej, C0339El c0339El, C16903sI c16903sI, C17361wD c17361wD, C0290Di c0290Di) { super(c16903sI); this.e = false; this.c = tly; this.g = c0337Ej; this.a = c0339El; this.i = c17361wD; this.f8626o = c0290Di; this.b = false; } /* loaded from: classes4.dex */ public final class RVV extends wRi.LWm { private cUF b; private RVV(cUF cuf) { this.b = cuf; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { final C16876rxN c16876rxN = (C16876rxN) obj; this.b.b = false; if (this.b.f != 0) { Double c = C6583cXR.c(this.b.d.k); if (c.doubleValue() >= c16876rxN.c.doubleValue()) { c = c16876rxN.c; } c16876rxN.c = c; if (this.b.d.b || this.b.e) { cUF cuf = this.b; ZI.IeS ieS = new ZI.IeS(this, c16876rxN) { // from class: o.cUM private C16876rxN a; private cUF.RVV d; @Override // o.ZI.IeS public final void e(Object obj2) { InterfaceC9010dbe.ufv ufvVar = (InterfaceC9010dbe.ufv) obj2; ufvVar.c(this.d.b.g.d(this.a)); } { this.d = this; this.a = c16876rxN; } }; if (cuf.f != 0) { ieS.e(cuf.f); return; } return; } cUF cuf2 = this.b; ZI.IeS ieS2 = new ZI.IeS(this, c16876rxN) { // from class: o.cUK private cUF.RVV c; private C16876rxN d; @Override // o.ZI.IeS public final void e(Object obj2) { InterfaceC9010dbe.ufv ufvVar = (InterfaceC9010dbe.ufv) obj2; ufvVar.d(this.c.b.g.d(this.d)); } { this.c = this; this.d = c16876rxN; } }; if (cuf2.f != 0) { ieS2.e(cuf2.f); } } } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onComplete() { cUF.i(this.b); } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(Throwable th) { cUF.b(this.b, th, C0690Mh.IeS.NAVIGATE_BACK); } public /* synthetic */ RVV(cUF cuf, byte b) { this(cuf); } } /* loaded from: classes4.dex */ public final class IeS extends wRi.LWm> { private cUF a; private IeS(cUF cuf) { this.a = cuf; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { final List list = (List) obj; this.a.b = false; if (this.a.d.b || this.a.e) { cUF cuf = this.a; ZI.IeS ieS = new ZI.IeS(list) { // from class: o.cUG private List e; @Override // o.ZI.IeS public final void e(Object obj2) { ((InterfaceC9010dbe.ufv) obj2).b(this.e); } { this.e = list; } }; if (cuf.f != 0) { ieS.e(cuf.f); return; } return; } cUF cuf2 = this.a; ZI.IeS ieS2 = new ZI.IeS(list) { // from class: o.cUI private List c; @Override // o.ZI.IeS public final void e(Object obj2) { ((InterfaceC9010dbe.ufv) obj2).d((List) this.c); } { this.c = list; } }; if (cuf2.f != 0) { ieS2.e(cuf2.f); } } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onComplete() { cUF.j(this.a); } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(Throwable th) { cUF.d(this.a, th, C0690Mh.IeS.NAVIGATE_BACK); } public /* synthetic */ IeS(cUF cuf, byte b) { this(cuf); } } /* loaded from: classes4.dex */ public final class LWm extends wRi.LWm { private cUF e; @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onComplete() { } private LWm(cUF cuf) { this.e = cuf; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { this.e.b = false; cUF cuf = this.e; C0290Di unused = cuf.f8626o; C0339El unused2 = this.e.a; cuf.h = C0290Di.d(C0339El.a((CWS) obj), this.e.d, this.e.c.e()); final cUF cuf2 = this.e; ZI.IeS ieS = new ZI.IeS(cuf2) { // from class: o.cUJ private cUF b; @Override // o.ZI.IeS public final void e(Object obj2) { ((InterfaceC9010dbe.ufv) obj2).d(r0.h, this.b.c.d()); } { this.b = cuf2; } }; if (cuf2.f != 0) { ieS.e(cuf2.f); } } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(Throwable th) { cUF.e(this.e, th); } public /* synthetic */ LWm(cUF cuf, byte b) { this(cuf); } } static /* synthetic */ void i(cUF cuf) { if (cuf.f != 0) { cuf.f.aq_(); } } static /* synthetic */ void b(cUF cuf, Throwable th, C0690Mh.IeS ieS) { if (cuf.b(th)) { cuf.d(cuf.j.d(th, ieS)); } } static /* synthetic */ void j(cUF cuf) { if (cuf.f != 0) { cuf.f.aq_(); } } static /* synthetic */ void d(cUF cuf, Throwable th, C0690Mh.IeS ieS) { if (cuf.b(th)) { cuf.d(cuf.j.d(th, ieS)); } } static /* synthetic */ void e(cUF cuf, Throwable th) { if (cuf.b(th)) { cuf.d(cuf.j.e(th)); } } }