package o; /* renamed from: o.fXm, reason: case insensitive filesystem */ /* loaded from: classes6.dex */ public final class C13339fXm extends fUX { private InterfaceC13169fSq a; public C13339fXm(InterfaceC13169fSq interfaceC13169fSq, InterfaceC13169fSq interfaceC13169fSq2) { super(interfaceC13169fSq); this.a = interfaceC13169fSq2; } @Override // o.AbstractC13163fSk public final void subscribeActual(InterfaceC13174fSv interfaceC13174fSv) { C13406fZi c13406fZi = new C13406fZi(interfaceC13174fSv); C13190fTd c13190fTd = new C13190fTd(); c13406fZi.onSubscribe(c13190fTd); IeS ieS = new IeS(c13406fZi, c13190fTd); this.a.subscribe(new Sts(this, c13190fTd, ieS, c13406fZi)); this.c.subscribe(ieS); } /* renamed from: o.fXm$IeS */ /* loaded from: classes6.dex */ static final class IeS implements InterfaceC13174fSv { private fSJ a; volatile boolean b; private InterfaceC13174fSv c; private boolean d; private C13190fTd e; IeS(InterfaceC13174fSv interfaceC13174fSv, C13190fTd c13190fTd) { this.c = interfaceC13174fSv; this.e = c13190fTd; } @Override // o.InterfaceC13174fSv public final void onSubscribe(fSJ fsj) { if (EnumC13192fTf.d(this.a, fsj)) { this.a = fsj; this.e.e(0, fsj); } } @Override // o.InterfaceC13174fSv public final void onNext(T t) { if (this.d) { this.c.onNext(t); } else if (this.b) { this.d = true; this.c.onNext(t); } } @Override // o.InterfaceC13174fSv public final void onError(Throwable th) { this.e.dispose(); this.c.onError(th); } @Override // o.InterfaceC13174fSv public final void onComplete() { this.e.dispose(); this.c.onComplete(); } } /* renamed from: o.fXm$Sts */ /* loaded from: classes6.dex */ final class Sts implements InterfaceC13174fSv { private C13190fTd a; private C13339fXm b; private C13406fZi c; private fSJ d; private IeS e; Sts(C13339fXm c13339fXm, C13190fTd c13190fTd, IeS ieS, C13406fZi c13406fZi) { this.b = c13339fXm; this.a = c13190fTd; this.e = ieS; this.c = c13406fZi; } @Override // o.InterfaceC13174fSv public final void onSubscribe(fSJ fsj) { if (EnumC13192fTf.d(this.d, fsj)) { this.d = fsj; this.a.e(1, fsj); } } @Override // o.InterfaceC13174fSv public final void onNext(U u) { this.d.dispose(); this.e.b = true; } @Override // o.InterfaceC13174fSv public final void onError(Throwable th) { this.a.dispose(); this.c.onError(th); } @Override // o.InterfaceC13174fSv public final void onComplete() { this.e.b = true; } } }