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