package o; import java.util.concurrent.atomic.AtomicInteger; /* renamed from: o.fXX, reason: case insensitive filesystem */ /* loaded from: classes6.dex */ public final class C13325fXX extends AbstractC13175fSw { private fSP a; private fSD c; public C13325fXX(fSD fsd, fSP fsp) { this.c = fsd; this.a = fsp; } @Override // o.AbstractC13175fSw public final void e(InterfaceC13176fSx interfaceC13176fSx) { this.c.c(new LWm(interfaceC13176fSx, this.a)); } /* renamed from: o.fXX$LWm */ /* loaded from: classes6.dex */ static final class LWm extends AtomicInteger implements InterfaceC13176fSx, fSJ { private fSJ b; private InterfaceC13176fSx c; private fSP d; LWm(InterfaceC13176fSx interfaceC13176fSx, fSP fsp) { this.c = interfaceC13176fSx; this.d = fsp; } @Override // o.InterfaceC13176fSx public final void onSubscribe(fSJ fsj) { if (EnumC13192fTf.d(this.b, fsj)) { this.b = fsj; this.c.onSubscribe(this); } } @Override // o.InterfaceC13176fSx public final void e(T t) { this.c.e(t); if (compareAndSet(0, 1)) { try { this.d.c(); } catch (Throwable th) { C13147fSI.c(th); C13418fZu.c(th); } } } @Override // o.InterfaceC13176fSx public final void onError(Throwable th) { this.c.onError(th); if (compareAndSet(0, 1)) { try { this.d.c(); } catch (Throwable th2) { C13147fSI.c(th2); C13418fZu.c(th2); } } } @Override // o.fSJ public final void dispose() { this.b.dispose(); if (compareAndSet(0, 1)) { try { this.d.c(); } catch (Throwable th) { C13147fSI.c(th); C13418fZu.c(th); } } } @Override // o.fSJ public final boolean isDisposed() { return this.b.isDisposed(); } } }