package o; import io.reactivex.rxjava3.exceptions.CompositeException; /* renamed from: o.fWJ, reason: case insensitive filesystem */ /* loaded from: classes6.dex */ public final class C13285fWJ extends fUX { private InterfaceC13193fTg b; public C13285fWJ(InterfaceC13169fSq interfaceC13169fSq, InterfaceC13193fTg interfaceC13193fTg) { super(interfaceC13169fSq); this.b = interfaceC13193fTg; } @Override // o.AbstractC13163fSk public final void subscribeActual(InterfaceC13174fSv interfaceC13174fSv) { this.c.subscribe(new Sts(interfaceC13174fSv, this.b)); } /* renamed from: o.fWJ$Sts */ /* loaded from: classes6.dex */ public static final class Sts implements InterfaceC13174fSv, fSJ { private InterfaceC13193fTg a; private fSJ b; private InterfaceC13174fSv d; public Sts(InterfaceC13174fSv interfaceC13174fSv, InterfaceC13193fTg interfaceC13193fTg) { this.d = interfaceC13174fSv; this.a = interfaceC13193fTg; } @Override // o.InterfaceC13174fSv public final void onSubscribe(fSJ fsj) { if (EnumC13192fTf.d(this.b, fsj)) { this.b = fsj; this.d.onSubscribe(this); } } @Override // o.InterfaceC13174fSv public final void onNext(T t) { this.d.onNext(t); } @Override // o.InterfaceC13174fSv public final void onError(Throwable th) { try { if (this.a.a(th)) { this.d.onComplete(); } else { this.d.onError(th); } } catch (Throwable th2) { C13147fSI.c(th2); this.d.onError(new CompositeException(th, th2)); } } @Override // o.InterfaceC13174fSv public final void onComplete() { this.d.onComplete(); } @Override // o.fSJ public final void dispose() { this.b.dispose(); } @Override // o.fSJ public final boolean isDisposed() { return this.b.isDisposed(); } } }