package o; import o.ZI; import o.bSB; import o.cZR; import o.wRi; /* loaded from: classes4.dex */ public class bSB extends ZI { public int a; public final C15889jRC b; public int c; public String d; public String e; public String g; private final C17561xo h; @InterfaceC13391fZD public bSB(C16903sI c16903sI, C15889jRC c15889jRC, C17561xo c17561xo) { super(c16903sI); this.a = 1; this.c = 1; this.b = c15889jRC; this.h = c17561xo; } /* renamed from: o.bSB$2, reason: invalid class name */ /* loaded from: classes4.dex */ public class AnonymousClass2 extends wRi.LWm { private bSB c; public AnonymousClass2(bSB bsb) { this.c = bsb; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { Bnu bnu = (Bnu) obj; super.onNext(bnu); bSB.c(this.c); final RM a = this.c.h.a(bnu, this.c.b.a.T()); bSB bsb = this.c; ZI.IeS ieS = new ZI.IeS(this, a) { // from class: o.bSF private RM a; private bSB.AnonymousClass2 b; @Override // o.ZI.IeS public final void e(Object obj2) { bSB.AnonymousClass2.d(this.b, this.a, (cZR.RVV) obj2); } { this.b = this; this.a = a; } }; if (bsb.f != 0) { ieS.e(bsb.f); } } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(Throwable th) { super.onError(th); guQ.e(th); bSB.e(this.c); bSB bsb = this.c; ZI.IeS ieS = new ZI.IeS() { // from class: o.bSI @Override // o.ZI.IeS public final void e(Object obj) { ((cZR.RVV) obj).b(); } }; if (bsb.f != 0) { ieS.e(bsb.f); } } public static /* synthetic */ void d(AnonymousClass2 anonymousClass2, RM rm, cZR.RVV rvv) { if (rm.d != null) { anonymousClass2.c.a = rm.d.b; if (anonymousClass2.c.a <= 1) { rvv.c(); } rvv.c(rm, rm.d.a); return; } rvv.a(); } } /* renamed from: o.bSB$5, reason: invalid class name */ /* loaded from: classes4.dex */ public class AnonymousClass5 extends wRi.LWm { private bSB e; public AnonymousClass5(bSB bsb) { this.e = bsb; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { Bnu bnu = (Bnu) obj; super.onNext(bnu); final RM a = this.e.h.a(bnu, this.e.b.a.T()); bSB bsb = this.e; ZI.IeS ieS = new ZI.IeS(a) { // from class: o.bSG private RM c; @Override // o.ZI.IeS public final void e(Object obj2) { bSB.AnonymousClass5.d(this.c, (cZR.RVV) obj2); } { this.c = a; } }; if (bsb.f != 0) { ieS.e(bsb.f); } } /* JADX INFO: Access modifiers changed from: package-private */ public static /* synthetic */ void d(RM rm, cZR.RVV rvv) { if (rm.d != null) { rvv.e(rm.d.a); } } } @Override // o.ZI public final void w_() { C15889jRC c15889jRC = this.b; if (!c15889jRC.h.isDisposed()) { c15889jRC.h.dispose(); } super.w_(); } static /* synthetic */ void e(bSB bsb) { if (bsb.f != 0) { bsb.f.aq_(); } } static /* synthetic */ void c(bSB bsb) { if (bsb.f != 0) { bsb.f.aq_(); } } }