package o; import java.util.Objects; import java.util.concurrent.atomic.AtomicReference; /* loaded from: classes6.dex */ public final class fUY extends AbstractC13163fSk { private fSS> d; private fSD e; public fUY(fSD fsd, fSS> fss) { this.e = fsd; this.d = fss; } @Override // o.AbstractC13163fSk public final void subscribeActual(InterfaceC13174fSv interfaceC13174fSv) { HBt hBt = new HBt(interfaceC13174fSv, this.d); interfaceC13174fSv.onSubscribe(hBt); this.e.c(hBt); } /* loaded from: classes6.dex */ static final class HBt extends AtomicReference implements InterfaceC13174fSv, InterfaceC13176fSx, fSJ { private InterfaceC13174fSv a; private fSS> d; HBt(InterfaceC13174fSv interfaceC13174fSv, fSS> fss) { this.a = interfaceC13174fSv; this.d = fss; } @Override // o.InterfaceC13174fSv public final void onNext(R r) { this.a.onNext(r); } @Override // o.InterfaceC13174fSv public final void onError(Throwable th) { this.a.onError(th); } @Override // o.InterfaceC13174fSv public final void onComplete() { this.a.onComplete(); } @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); } @Override // o.InterfaceC13176fSx public final void e(T t) { try { InterfaceC13169fSq interfaceC13169fSq = (InterfaceC13169fSq) Objects.requireNonNull(this.d.a(t), "The mapper returned a null Publisher"); if (isDisposed()) { return; } interfaceC13169fSq.subscribe(this); } catch (Throwable th) { C13147fSI.c(th); this.a.onError(th); } } } }