package F3;

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

/* JADX INFO: renamed from: F3.v, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes3.dex */
public final class C0221v implements Iterator {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public int f1609a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public int f1610b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public int f1611c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final /* synthetic */ C0225z f1612d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final /* synthetic */ int f1613e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public final /* synthetic */ C0225z f1614f;

    public C0221v(C0225z c0225z, int i6) {
        this.f1613e = i6;
        this.f1614f = c0225z;
        this.f1612d = c0225z;
        this.f1609a = c0225z.f1638e;
        this.f1610b = c0225z.isEmpty() ? -1 : 0;
        this.f1611c = -1;
    }

    @Override // java.util.Iterator
    public final boolean hasNext() {
        return this.f1610b >= 0;
    }

    @Override // java.util.Iterator
    public final Object next() {
        Object c0223x;
        C0225z c0225z = this.f1612d;
        if (c0225z.f1638e != this.f1609a) {
            throw new ConcurrentModificationException();
        }
        if (!hasNext()) {
            throw new NoSuchElementException();
        }
        int i6 = this.f1610b;
        this.f1611c = i6;
        switch (this.f1613e) {
            case 0:
                c0223x = this.f1614f.j()[i6];
                break;
            case 1:
                c0223x = new C0223x(this.f1614f, i6);
                break;
            default:
                c0223x = this.f1614f.k()[i6];
                break;
        }
        int i7 = this.f1610b + 1;
        if (i7 >= c0225z.f1639f) {
            i7 = -1;
        }
        this.f1610b = i7;
        return c0223x;
    }

    @Override // java.util.Iterator
    public final void remove() {
        C0225z c0225z = this.f1612d;
        if (c0225z.f1638e != this.f1609a) {
            throw new ConcurrentModificationException();
        }
        A4.g.t(this.f1611c >= 0, "no calls to next() since the last call to remove()");
        this.f1609a += 32;
        c0225z.remove(c0225z.j()[this.f1611c]);
        this.f1610b--;
        this.f1611c = -1;
    }
}
