package o; import io.reactivex.rxjava3.exceptions.CompositeException; import java.util.Objects; /* renamed from: o.fWv, reason: case insensitive filesystem */ /* loaded from: classes6.dex */ public final class C13313fWv extends fUX> { private fSS> a; private InterfaceC13189fTc> d; private fSS> e; public C13313fWv(InterfaceC13169fSq interfaceC13169fSq, fSS> fss, fSS> fss2, InterfaceC13189fTc> interfaceC13189fTc) { super(interfaceC13169fSq); this.a = fss; this.e = fss2; this.d = interfaceC13189fTc; } @Override // o.AbstractC13163fSk public final void subscribeActual(InterfaceC13174fSv> interfaceC13174fSv) { this.c.subscribe(new IeS(interfaceC13174fSv, this.a, this.e, this.d)); } /* renamed from: o.fWv$IeS */ /* loaded from: classes6.dex */ static final class IeS implements InterfaceC13174fSv, fSJ { private fSJ a; private fSS> b; private InterfaceC13174fSv> c; private InterfaceC13189fTc> d; private fSS> e; IeS(InterfaceC13174fSv> interfaceC13174fSv, fSS> fss, fSS> fss2, InterfaceC13189fTc> interfaceC13189fTc) { this.c = interfaceC13174fSv; this.b = fss; this.e = fss2; this.d = interfaceC13189fTc; } @Override // o.InterfaceC13174fSv public final void onSubscribe(fSJ fsj) { if (EnumC13192fTf.d(this.a, fsj)) { this.a = fsj; this.c.onSubscribe(this); } } @Override // o.fSJ public final void dispose() { this.a.dispose(); } @Override // o.fSJ public final boolean isDisposed() { return this.a.isDisposed(); } @Override // o.InterfaceC13174fSv public final void onNext(T t) { try { this.c.onNext((InterfaceC13169fSq) Objects.requireNonNull(this.b.a(t), "The onNext ObservableSource returned is null")); } catch (Throwable th) { C13147fSI.c(th); this.c.onError(th); } } @Override // o.InterfaceC13174fSv public final void onError(Throwable th) { try { this.c.onNext((InterfaceC13169fSq) Objects.requireNonNull(this.e.a(th), "The onError ObservableSource returned is null")); this.c.onComplete(); } catch (Throwable th2) { C13147fSI.c(th2); this.c.onError(new CompositeException(th, th2)); } } @Override // o.InterfaceC13174fSv public final void onComplete() { try { this.c.onNext((InterfaceC13169fSq) Objects.requireNonNull(this.d.d(), "The onComplete ObservableSource returned is null")); this.c.onComplete(); } catch (Throwable th) { C13147fSI.c(th); this.c.onError(th); } } } }