package o; import o.ZI; import o.cMP; import o.wRi; /* loaded from: classes4.dex */ public class cMP extends ZI { public C1187Xm a; public iRl d; @InterfaceC13391fZD public cMP(C16903sI c16903sI, iRl irl) { super(c16903sI); this.d = irl; } /* JADX INFO: Access modifiers changed from: package-private */ public static /* synthetic */ void a(C1187Xm c1187Xm, InterfaceC9662dny interfaceC9662dny) { interfaceC9662dny.b(c1187Xm); interfaceC9662dny.b(); } /* JADX INFO: Access modifiers changed from: package-private */ public static /* synthetic */ void a(boolean z, String str, InterfaceC9662dny interfaceC9662dny) { if (z) { interfaceC9662dny.a(str); } else { interfaceC9662dny.e(str); } } /* loaded from: classes4.dex */ public final class Sts extends wRi.LWm { private String c; private cMP e; @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { if (this.e.f != 0) { cMP cmp = this.e; ZI.IeS ieS = new ZI.IeS(this) { // from class: o.cMV private cMP.Sts e; @Override // o.ZI.IeS public final void e(Object obj2) { ((InterfaceC9662dny) obj2).d(this.e.c); } { this.e = this; } }; if (cmp.f != 0) { ieS.e(cmp.f); } } this.e.d.a.U(); } public Sts(cMP cmp, String str) { this.e = cmp; this.c = str; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onComplete() { cMP.e(this.e); cMP.b(this.e); } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(final Throwable th) { if (this.e.f == 0 || this.e.i(th)) { return; } cMP.a(this.e); cMP.d(this.e); cMP cmp = this.e; ZI.IeS ieS = new ZI.IeS(this, th) { // from class: o.cNa private cMP.Sts a; private Throwable c; @Override // o.ZI.IeS public final void e(Object obj) { InterfaceC9662dny interfaceC9662dny = (InterfaceC9662dny) obj; interfaceC9662dny.d(this.a.e.j.e(this.c)); } { this.a = this; this.c = th; } }; if (cmp.f != 0) { ieS.e(cmp.f); } } } @Override // o.ZI public final void w_() { iRl irl = this.d; if (!irl.h.isDisposed()) { irl.h.dispose(); } super.w_(); } static /* synthetic */ void e(cMP cmp) { if (cmp.f != 0) { cmp.f.aq_(); } } static /* synthetic */ void b(cMP cmp) { if (cmp.f != 0) { cmp.f.ar_(); } } static /* synthetic */ void a(cMP cmp) { if (cmp.f != 0) { cmp.f.aq_(); } } static /* synthetic */ void d(cMP cmp) { if (cmp.f != 0) { cmp.f.ar_(); } } }