package o; import java.util.Objects; /* renamed from: o.fXc, reason: case insensitive filesystem */ /* loaded from: classes6.dex */ public final class C13329fXc extends fUX { private InterfaceC13189fTc b; private fSL d; public C13329fXc(InterfaceC13169fSq interfaceC13169fSq, InterfaceC13189fTc interfaceC13189fTc, fSL fsl) { super(interfaceC13169fSq); this.d = fsl; this.b = interfaceC13189fTc; } @Override // o.AbstractC13163fSk public final void subscribeActual(InterfaceC13174fSv interfaceC13174fSv) { try { this.c.subscribe(new Sts(interfaceC13174fSv, this.d, Objects.requireNonNull(this.b.d(), "The seed supplied is null"))); } catch (Throwable th) { C13147fSI.c(th); EnumC13195fTi.a(th, interfaceC13174fSv); } } /* renamed from: o.fXc$Sts */ /* loaded from: classes6.dex */ static final class Sts implements InterfaceC13174fSv, fSJ { private InterfaceC13174fSv a; private fSL b; private R c; private boolean d; private fSJ e; Sts(InterfaceC13174fSv interfaceC13174fSv, fSL fsl, R r) { this.a = interfaceC13174fSv; this.b = fsl; this.c = r; } @Override // o.InterfaceC13174fSv public final void onSubscribe(fSJ fsj) { if (EnumC13192fTf.d(this.e, fsj)) { this.e = fsj; this.a.onSubscribe(this); this.a.onNext(this.c); } } @Override // o.fSJ public final void dispose() { this.e.dispose(); } @Override // o.fSJ public final boolean isDisposed() { return this.e.isDisposed(); } @Override // o.InterfaceC13174fSv public final void onNext(T t) { if (this.d) { return; } try { R r = (R) Objects.requireNonNull(this.b.e(this.c, t), "The accumulator returned a null value"); this.c = r; this.a.onNext(r); } catch (Throwable th) { C13147fSI.c(th); this.e.dispose(); onError(th); } } @Override // o.InterfaceC13174fSv public final void onError(Throwable th) { if (this.d) { C13418fZu.c(th); } else { this.d = true; this.a.onError(th); } } @Override // o.InterfaceC13174fSv public final void onComplete() { if (this.d) { return; } this.d = true; this.a.onComplete(); } } }