package o; import io.reactivex.rxjava3.exceptions.CompositeException; import java.util.concurrent.atomic.AtomicReference; /* loaded from: classes6.dex */ public final class fTN extends AtomicReference implements InterfaceC13176fSx, fSJ { private fSQ b; private fSQ d; public fTN(fSQ fsq, fSQ fsq2) { this.d = fsq; this.b = fsq2; } @Override // o.InterfaceC13176fSx public final void onError(Throwable th) { lazySet(EnumC13192fTf.DISPOSED); try { this.b.c(th); } catch (Throwable th2) { C13147fSI.c(th2); C13418fZu.c(new CompositeException(th, th2)); } } @Override // o.InterfaceC13176fSx public final void onSubscribe(fSJ fsj) { EnumC13192fTf.a(this, fsj); } @Override // o.InterfaceC13176fSx public final void e(T t) { lazySet(EnumC13192fTf.DISPOSED); try { this.d.c(t); } catch (Throwable th) { C13147fSI.c(th); C13418fZu.c(th); } } @Override // o.fSJ public final void dispose() { EnumC13192fTf.e(this); } @Override // o.fSJ public final boolean isDisposed() { return get() == EnumC13192fTf.DISPOSED; } }