package o; import java.util.Objects; /* renamed from: o.fXd, reason: case insensitive filesystem */ /* loaded from: classes6.dex */ public final class C13330fXd extends fUX { private fSL e; public C13330fXd(InterfaceC13169fSq interfaceC13169fSq, fSL fsl) { super(interfaceC13169fSq); this.e = fsl; } @Override // o.AbstractC13163fSk public final void subscribeActual(InterfaceC13174fSv interfaceC13174fSv) { this.c.subscribe(new RVV(interfaceC13174fSv, this.e)); } /* renamed from: o.fXd$RVV */ /* loaded from: classes6.dex */ static final class RVV implements InterfaceC13174fSv, fSJ { private boolean a; private InterfaceC13174fSv b; private fSL c; private T d; private fSJ e; RVV(InterfaceC13174fSv interfaceC13174fSv, fSL fsl) { this.b = interfaceC13174fSv; this.c = fsl; } @Override // o.InterfaceC13174fSv public final void onSubscribe(fSJ fsj) { if (EnumC13192fTf.d(this.e, fsj)) { this.e = fsj; this.b.onSubscribe(this); } } @Override // o.fSJ public final void dispose() { this.e.dispose(); } @Override // o.fSJ public final boolean isDisposed() { return this.e.isDisposed(); } /* JADX WARN: Type inference failed for: r4v3, types: [T, java.lang.Object] */ @Override // o.InterfaceC13174fSv public final void onNext(T t) { if (this.a) { return; } InterfaceC13174fSv interfaceC13174fSv = this.b; T t2 = this.d; if (t2 == null) { this.d = t; interfaceC13174fSv.onNext(t); return; } try { ?? r4 = (T) Objects.requireNonNull(this.c.e(t2, t), "The value returned by the accumulator is null"); this.d = r4; interfaceC13174fSv.onNext(r4); } catch (Throwable th) { C13147fSI.c(th); this.e.dispose(); onError(th); } } @Override // o.InterfaceC13174fSv public final void onError(Throwable th) { if (this.a) { C13418fZu.c(th); } else { this.a = true; this.b.onError(th); } } @Override // o.InterfaceC13174fSv public final void onComplete() { if (this.a) { return; } this.a = true; this.b.onComplete(); } } }