package o; import java.util.concurrent.atomic.AtomicReference; /* renamed from: o.fUn, reason: case insensitive filesystem */ /* loaded from: classes6.dex */ public final class C13235fUn extends fRY { private fRZ b; private AbstractC13173fSu d; public C13235fUn(fRZ frz, AbstractC13173fSu abstractC13173fSu) { this.b = frz; this.d = abstractC13173fSu; } @Override // o.fRY public final void c(InterfaceC13154fSb interfaceC13154fSb) { this.b.e(new RVV(interfaceC13154fSb, this.d)); } /* renamed from: o.fUn$RVV */ /* loaded from: classes6.dex */ static final class RVV extends AtomicReference implements InterfaceC13154fSb, fSJ, Runnable { private Throwable b; private AbstractC13173fSu c; private InterfaceC13154fSb d; RVV(InterfaceC13154fSb interfaceC13154fSb, AbstractC13173fSu abstractC13173fSu) { this.d = interfaceC13154fSb; this.c = abstractC13173fSu; } @Override // o.fSJ public final void dispose() { EnumC13192fTf.e(this); } @Override // o.fSJ public final boolean isDisposed() { return EnumC13192fTf.c(get()); } @Override // o.InterfaceC13154fSb public final void onSubscribe(fSJ fsj) { if (EnumC13192fTf.a(this, fsj)) { this.d.onSubscribe(this); } } @Override // o.InterfaceC13154fSb public final void onError(Throwable th) { this.b = th; EnumC13192fTf.c(this, this.c.a(this)); } @Override // o.InterfaceC13154fSb public final void onComplete() { EnumC13192fTf.c(this, this.c.a(this)); } @Override // java.lang.Runnable public final void run() { Throwable th = this.b; if (th != null) { this.b = null; this.d.onError(th); } else { this.d.onComplete(); } } } }