package o; import o.InterfaceC6669cZl; import o.ZI; import o.wRi; /* loaded from: classes4.dex */ public class bEM extends ZI { public PS c; public final C17752zVW d; @InterfaceC13391fZD public bEM(C16903sI c16903sI, C17752zVW c17752zVW) { super(c16903sI); this.d = c17752zVW; } /* loaded from: classes4.dex */ public class LWm extends wRi.LWm { private bEM d; public LWm(bEM bem) { this.d = bem; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { Pag pag = (Pag) obj; bEM.d(this.d); if (pag != null) { bEM bem = this.d; ZI.IeS ieS = new ZI.IeS() { // from class: o.bEN @Override // o.ZI.IeS public final void e(Object obj2) { ((InterfaceC6669cZl.LWm) obj2).c(); } }; if (bem.f != 0) { ieS.e(bem.f); } } } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(Throwable th) { bEM.c(this.d); bEM.b(this.d, th); } } static /* synthetic */ void c(bEM bem) { if (bem.f != 0) { bem.f.ar_(); } } static /* synthetic */ void b(bEM bem, Throwable th) { if (bem.b(th)) { bem.d(bem.j.e(th)); } } static /* synthetic */ void d(bEM bem) { if (bem.f != 0) { bem.f.ar_(); } } @Override // o.ZI public final void w_() { C17752zVW c17752zVW = this.d; if (!c17752zVW.h.isDisposed()) { c17752zVW.h.dispose(); } super.w_(); } }