package o; import java.util.Iterator; import java.util.NoSuchElementException; /* renamed from: o.fUT, reason: case insensitive filesystem */ /* loaded from: classes6.dex */ public final class C13220fUT implements Iterable { private InterfaceC13169fSq a; private T b; public C13220fUT(InterfaceC13169fSq interfaceC13169fSq, T t) { this.a = interfaceC13169fSq; this.b = t; } @Override // java.lang.Iterable public final Iterator iterator() { Sts sts = new Sts(this.b); this.a.subscribe(sts); return new Sts.IeS(sts); } /* renamed from: o.fUT$Sts */ /* loaded from: classes6.dex */ static final class Sts extends AbstractC13398fZa { volatile Object d; Sts(T t) { this.d = fYX.d(t); } @Override // o.InterfaceC13174fSv public final void onComplete() { this.d = fYX.c(); } @Override // o.InterfaceC13174fSv public final void onError(Throwable th) { this.d = fYX.a(th); } @Override // o.InterfaceC13174fSv public final void onNext(T t) { this.d = fYX.d(t); } /* renamed from: o.fUT$Sts$IeS */ /* loaded from: classes6.dex */ final class IeS implements Iterator { private Sts a; private Object b; IeS(Sts sts) { this.a = sts; } @Override // java.util.Iterator public final boolean hasNext() { this.b = this.a.d; return !fYX.e(r0); } @Override // java.util.Iterator public final T next() { try { if (this.b == null) { this.b = this.a.d; } if (fYX.e(this.b)) { throw new NoSuchElementException(); } if (fYX.b(this.b)) { throw fYR.c(fYX.a(this.b)); } return (T) fYX.c(this.b); } finally { this.b = null; } } @Override // java.util.Iterator public final void remove() { throw new UnsupportedOperationException("Read only iterator"); } } } }