package o; /* renamed from: o.fWx, reason: case insensitive filesystem */ /* loaded from: classes6.dex */ public final class C13315fWx extends AbstractC13159fSg { private InterfaceC13169fSq e; public C13315fWx(InterfaceC13169fSq interfaceC13169fSq) { this.e = interfaceC13169fSq; } @Override // o.AbstractC13159fSg public final void a(InterfaceC13161fSi interfaceC13161fSi) { this.e.subscribe(new IeS(interfaceC13161fSi)); } /* renamed from: o.fWx$IeS */ /* loaded from: classes6.dex */ static final class IeS implements InterfaceC13174fSv, fSJ { private T c; private fSJ d; private InterfaceC13161fSi e; IeS(InterfaceC13161fSi interfaceC13161fSi) { this.e = interfaceC13161fSi; } @Override // o.fSJ public final void dispose() { this.d.dispose(); this.d = EnumC13192fTf.DISPOSED; } @Override // o.fSJ public final boolean isDisposed() { return this.d == EnumC13192fTf.DISPOSED; } @Override // o.InterfaceC13174fSv public final void onSubscribe(fSJ fsj) { if (EnumC13192fTf.d(this.d, fsj)) { this.d = fsj; this.e.onSubscribe(this); } } @Override // o.InterfaceC13174fSv public final void onError(Throwable th) { this.d = EnumC13192fTf.DISPOSED; this.c = null; this.e.onError(th); } @Override // o.InterfaceC13174fSv public final void onComplete() { this.d = EnumC13192fTf.DISPOSED; T t = this.c; if (t != null) { this.c = null; this.e.e(t); } else { this.e.onComplete(); } } @Override // o.InterfaceC13174fSv public final void onNext(T t) { this.c = t; } } }