package defpackage;

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

/* renamed from: ᵗᵽᵦ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C2484 implements Iterator {

    /* renamed from: ᵡⁱᵥ, reason: contains not printable characters */
    public final /* synthetic */ C0106 f9705;

    /* renamed from: ᵢˇᵭ, reason: contains not printable characters */
    public int f9706;

    /* renamed from: ᵤᵙᵷ, reason: contains not printable characters */
    public final /* synthetic */ int f9707;

    /* renamed from: ᵧᵾˀˈ, reason: contains not printable characters */
    public int f9708;

    /* renamed from: ᵾᵬ, reason: contains not printable characters */
    public final /* synthetic */ C0106 f9709;

    /* renamed from: ᵿʗᵝʽ, reason: contains not printable characters */
    public int f9710;

    public C2484(C0106 c0106, int i) {
        this.f9707 = i;
        this.f9705 = c0106;
        this.f9709 = c0106;
        this.f9708 = c0106.f1394;
        this.f9706 = c0106.isEmpty() ? -1 : 0;
        this.f9710 = -1;
    }

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

    @Override // java.util.Iterator
    public final Object next() {
        Object c2829;
        C0106 c0106 = this.f9709;
        if (c0106.f1394 != this.f9708) {
            throw new ConcurrentModificationException();
        }
        if (!hasNext()) {
            C0190.m1427();
            return null;
        }
        int i = this.f9706;
        this.f9710 = i;
        int i2 = this.f9707;
        C0106 c01062 = this.f9705;
        switch (i2) {
            case 0:
                c2829 = c01062.m1191()[i];
                break;
            case 1:
                c2829 = new C2829(c01062, i);
                break;
            default:
                c2829 = c01062.m1192()[i];
                break;
        }
        int i3 = this.f9706 + 1;
        if (i3 >= c0106.f1392) {
            i3 = -1;
        }
        this.f9706 = i3;
        return c2829;
    }

    @Override // java.util.Iterator
    public final void remove() {
        C0106 c0106 = this.f9709;
        if (c0106.f1394 != this.f9708) {
            throw new ConcurrentModificationException();
        }
        ᵛᵾˏ.ᵢˇᵭ("no calls to next() since the last call to remove()", this.f9710 >= 0);
        this.f9708 += 32;
        c0106.remove(c0106.m1191()[this.f9710]);
        this.f9706--;
        this.f9710 = -1;
    }
}
