package o; /* loaded from: classes6.dex */ public final class fVS extends fUX { private InterfaceC13193fTg e; public fVS(InterfaceC13169fSq interfaceC13169fSq, InterfaceC13193fTg interfaceC13193fTg) { super(interfaceC13169fSq); this.e = interfaceC13193fTg; } @Override // o.AbstractC13163fSk public final void subscribeActual(InterfaceC13174fSv interfaceC13174fSv) { this.c.subscribe(new HBt(interfaceC13174fSv, this.e)); } /* loaded from: classes6.dex */ static final class HBt extends fTA { private InterfaceC13193fTg a; HBt(InterfaceC13174fSv interfaceC13174fSv, InterfaceC13193fTg interfaceC13193fTg) { super(interfaceC13174fSv); this.a = interfaceC13193fTg; } @Override // o.InterfaceC13174fSv public final void onNext(T t) { if (this.b == 0) { try { if (this.a.a(t)) { this.d.onNext(t); return; } return; } catch (Throwable th) { b(th); return; } } this.d.onNext(null); } @Override // o.InterfaceC13413fZp public final int b(int i) { return e(i); } @Override // o.InterfaceC13414fZq public final T b() throws Throwable { T b; do { b = this.e.b(); if (b == null) { break; } } while (!this.a.a(b)); return b; } } }