package o; import java.util.NoSuchElementException; import o.C5342brI; import o.GJE; import o.ZI; import o.wRi; /* renamed from: o.brI, reason: case insensitive filesystem */ /* loaded from: classes4.dex */ public final class C5342brI extends ZI { public final zhU a; private final C17090to d; /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ @InterfaceC13391fZD public C5342brI(C16903sI c16903sI, zhU zhu, C17090to c17090to) { super(c16903sI); C14957gcv.e(c16903sI, ""); C14957gcv.e(zhu, ""); C14957gcv.e(c17090to, ""); this.a = zhu; this.d = c17090to; } /* renamed from: o.brI$RVV */ /* loaded from: classes4.dex */ public static final class RVV extends wRi.LWm> { private C5342brI a; private GJE.Sts c; public RVV(C5342brI c5342brI, GJE.Sts sts) { this.a = c5342brI; this.c = sts; } /* JADX WARN: Multi-variable type inference failed */ @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { final SP sp; zEQ zeq = (zEQ) obj; C14957gcv.e(zeq, ""); super.onNext(zeq); if (zeq.d != 0) { C17090to c17090to = this.a.d; T t = zeq.d; if (t != 0) { C14957gcv.c(t, ""); sp = c17090to.e((GJE) t); } else { throw new NoSuchElementException("No value present"); } } else { sp = null; } C5342brI c5342brI = this.a; final GJE.Sts sts = this.c; ZI.IeS ieS = new ZI.IeS(sp, sts) { // from class: o.brJ private GJE.Sts b; private SP c; @Override // o.ZI.IeS public final void e(Object obj2) { C5342brI.RVV.c(this.c, this.b, (InterfaceC9269dgZ) obj2); } { this.c = sp; this.b = sts; } }; if (c5342brI.f != 0) { ieS.e(c5342brI.f); } C5342brI.c(this.a); } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(Throwable th) { C14957gcv.e(th, ""); super.onError(th); C5342brI.c(this.a, th); } public static /* synthetic */ void c(SP sp, GJE.Sts sts, InterfaceC9269dgZ interfaceC9269dgZ) { C14957gcv.e(sts, ""); interfaceC9269dgZ.c(sp, sts); } } public static final /* synthetic */ void c(C5342brI c5342brI) { if (c5342brI.f != 0) { c5342brI.f.ar_(); } } public static final /* synthetic */ void c(C5342brI c5342brI, Throwable th) { if (c5342brI.b(th)) { c5342brI.d(c5342brI.j.e(th)); } } @Override // o.ZI public final void w_() { zhU zhu = this.a; if (!zhu.h.isDisposed()) { zhu.h.dispose(); } super.w_(); } }