package o; import java.util.concurrent.atomic.AtomicReference; /* loaded from: classes6.dex */ public final class fUK extends AbstractC13163fSk { private InterfaceC13169fSq c; private fRZ d; public fUK(fRZ frz, InterfaceC13169fSq interfaceC13169fSq) { this.d = frz; this.c = interfaceC13169fSq; } @Override // o.AbstractC13163fSk public final void subscribeActual(InterfaceC13174fSv interfaceC13174fSv) { Sts sts = new Sts(interfaceC13174fSv, this.c); interfaceC13174fSv.onSubscribe(sts); this.d.e(sts); } /* loaded from: classes6.dex */ static final class Sts extends AtomicReference implements InterfaceC13174fSv, InterfaceC13154fSb, fSJ { private InterfaceC13169fSq b; private InterfaceC13174fSv e; Sts(InterfaceC13174fSv interfaceC13174fSv, InterfaceC13169fSq interfaceC13169fSq) { this.b = interfaceC13169fSq; this.e = interfaceC13174fSv; } @Override // o.InterfaceC13174fSv public final void onNext(R r) { this.e.onNext(r); } @Override // o.InterfaceC13174fSv public final void onError(Throwable th) { this.e.onError(th); } @Override // o.InterfaceC13174fSv public final void onComplete() { InterfaceC13169fSq interfaceC13169fSq = this.b; if (interfaceC13169fSq == null) { this.e.onComplete(); } else { this.b = null; interfaceC13169fSq.subscribe(this); } } @Override // o.fSJ public final void dispose() { EnumC13192fTf.e(this); } @Override // o.fSJ public final boolean isDisposed() { return EnumC13192fTf.c(get()); } @Override // o.InterfaceC13174fSv public final void onSubscribe(fSJ fsj) { EnumC13192fTf.c(this, fsj); } } }