package o; import java.util.Iterator; import java.util.Objects; /* renamed from: o.fWa, reason: case insensitive filesystem */ /* loaded from: classes6.dex */ public final class C13292fWa extends fUX { private fSS> b; public C13292fWa(InterfaceC13169fSq interfaceC13169fSq, fSS> fss) { super(interfaceC13169fSq); this.b = fss; } @Override // o.AbstractC13163fSk public final void subscribeActual(InterfaceC13174fSv interfaceC13174fSv) { this.c.subscribe(new IeS(interfaceC13174fSv, this.b)); } /* renamed from: o.fWa$IeS */ /* loaded from: classes6.dex */ static final class IeS implements InterfaceC13174fSv, fSJ { private InterfaceC13174fSv a; private fSJ d; private fSS> e; IeS(InterfaceC13174fSv interfaceC13174fSv, fSS> fss) { this.a = interfaceC13174fSv; this.e = fss; } @Override // o.InterfaceC13174fSv public final void onSubscribe(fSJ fsj) { if (EnumC13192fTf.d(this.d, fsj)) { this.d = fsj; this.a.onSubscribe(this); } } @Override // o.InterfaceC13174fSv public final void onNext(T t) { if (this.d == EnumC13192fTf.DISPOSED) { return; } try { Iterator it = this.e.a(t).iterator(); InterfaceC13174fSv interfaceC13174fSv = this.a; while (it.hasNext()) { try { try { interfaceC13174fSv.onNext((Object) Objects.requireNonNull(it.next(), "The iterator returned a null value")); } catch (Throwable th) { C13147fSI.c(th); this.d.dispose(); onError(th); return; } } catch (Throwable th2) { C13147fSI.c(th2); this.d.dispose(); onError(th2); return; } } } catch (Throwable th3) { C13147fSI.c(th3); this.d.dispose(); onError(th3); } } @Override // o.InterfaceC13174fSv public final void onError(Throwable th) { if (this.d == EnumC13192fTf.DISPOSED) { C13418fZu.c(th); } else { this.d = EnumC13192fTf.DISPOSED; this.a.onError(th); } } @Override // o.InterfaceC13174fSv public final void onComplete() { if (this.d == EnumC13192fTf.DISPOSED) { return; } this.d = EnumC13192fTf.DISPOSED; this.a.onComplete(); } @Override // o.fSJ public final boolean isDisposed() { return this.d.isDisposed(); } @Override // o.fSJ public final void dispose() { this.d.dispose(); this.d = EnumC13192fTf.DISPOSED; } } }