package o; import java.util.Objects; import java.util.concurrent.LinkedBlockingQueue; /* renamed from: o.fVe, reason: case insensitive filesystem */ /* loaded from: classes6.dex */ public final class C13261fVe { public static void a(InterfaceC13169fSq interfaceC13169fSq, InterfaceC13174fSv interfaceC13174fSv) { LinkedBlockingQueue linkedBlockingQueue = new LinkedBlockingQueue(); C13184fTL c13184fTL = new C13184fTL(linkedBlockingQueue); interfaceC13174fSv.onSubscribe(c13184fTL); interfaceC13169fSq.subscribe(c13184fTL); while (!c13184fTL.isDisposed()) { Object poll = linkedBlockingQueue.poll(); if (poll == null) { try { poll = linkedBlockingQueue.take(); } catch (InterruptedException e) { c13184fTL.dispose(); interfaceC13174fSv.onError(e); return; } } if (c13184fTL.isDisposed() || poll == C13184fTL.a || fYX.d(poll, interfaceC13174fSv)) { return; } } } public static void b(InterfaceC13169fSq interfaceC13169fSq, fSQ fsq, fSQ fsq2, fSP fsp) { Objects.requireNonNull(fsq, "onNext is null"); Objects.requireNonNull(fsq2, "onError is null"); Objects.requireNonNull(fsp, "onComplete is null"); a(interfaceC13169fSq, new fTY(fsq, fsq2, fsp, C13194fTh.c())); } }