package o; import java.util.Objects; /* renamed from: o.fWM, reason: case insensitive filesystem */ /* loaded from: classes6.dex */ public final class C13286fWM extends AbstractC13175fSw { private InterfaceC13169fSq b; private fSL c; private R d; public C13286fWM(InterfaceC13169fSq interfaceC13169fSq, R r, fSL fsl) { this.b = interfaceC13169fSq; this.d = r; this.c = fsl; } @Override // o.AbstractC13175fSw public final void e(InterfaceC13176fSx interfaceC13176fSx) { this.b.subscribe(new HBt(interfaceC13176fSx, this.c, this.d)); } /* renamed from: o.fWM$HBt */ /* loaded from: classes6.dex */ static final class HBt implements InterfaceC13174fSv, fSJ { private fSJ a; private R b; private InterfaceC13176fSx c; private fSL e; /* JADX INFO: Access modifiers changed from: package-private */ public HBt(InterfaceC13176fSx interfaceC13176fSx, fSL fsl, R r) { this.c = interfaceC13176fSx; this.b = r; this.e = fsl; } @Override // o.InterfaceC13174fSv public final void onSubscribe(fSJ fsj) { if (EnumC13192fTf.d(this.a, fsj)) { this.a = fsj; this.c.onSubscribe(this); } } @Override // o.InterfaceC13174fSv public final void onNext(T t) { R r = this.b; if (r != null) { try { this.b = (R) Objects.requireNonNull(this.e.e(r, t), "The reducer returned a null value"); } catch (Throwable th) { C13147fSI.c(th); this.a.dispose(); onError(th); } } } @Override // o.InterfaceC13174fSv public final void onError(Throwable th) { if (this.b != null) { this.b = null; this.c.onError(th); } else { C13418fZu.c(th); } } @Override // o.InterfaceC13174fSv public final void onComplete() { R r = this.b; if (r != null) { this.b = null; this.c.e(r); } } @Override // o.fSJ public final void dispose() { this.a.dispose(); } @Override // o.fSJ public final boolean isDisposed() { return this.a.isDisposed(); } } }