package o;

import java.util.Iterator;
import java.util.NoSuchElementException;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.tN, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C2518tN extends AbstractC2708vN implements Iterator, InterfaceC2989yJ {
    public final /* synthetic */ int p;

    public C2518tN(C2803wN c2803wN, int i) {
        this.p = i;
        this.f756o = c2803wN;
        this.m = -1;
        this.n = c2803wN.s;
        e();
    }

    @Override // java.util.Iterator
    public final Object next() {
        switch (this.p) {
            case 0:
                b();
                int i = this.l;
                C2803wN c2803wN = (C2803wN) this.f756o;
                if (i >= c2803wN.q) {
                    throw new NoSuchElementException();
                }
                this.l = i + 1;
                this.m = i;
                C2613uN c2613uN = new C2613uN(c2803wN, i);
                e();
                return c2613uN;
            case 1:
                b();
                int i2 = this.l;
                C2803wN c2803wN2 = (C2803wN) this.f756o;
                if (i2 >= c2803wN2.q) {
                    throw new NoSuchElementException();
                }
                this.l = i2 + 1;
                this.m = i2;
                Object obj = c2803wN2.l[i2];
                e();
                return obj;
            default:
                b();
                int i3 = this.l;
                C2803wN c2803wN3 = (C2803wN) this.f756o;
                if (i3 >= c2803wN3.q) {
                    throw new NoSuchElementException();
                }
                this.l = i3 + 1;
                this.m = i3;
                Object obj2 = c2803wN3.m[i3];
                e();
                return obj2;
        }
    }
}
