package defpackage;

import java.util.Iterator;

/* JADX INFO: renamed from: ᵮˋˑᵲ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C4212 implements Iterator, InterfaceC5238 {

    /* JADX INFO: renamed from: ˌᴵ, reason: contains not printable characters */
    public final /* synthetic */ int f16024 = 1;

    /* JADX INFO: renamed from: ᵔᵖᵹᵫ, reason: contains not printable characters */
    public int f16025;

    /* JADX INFO: renamed from: ᵜᵪʾ, reason: contains not printable characters */
    public final Iterator f16026;

    public C4212(Iterator it) {
        this.f16026 = it;
    }

    public C4212(C0830 c0830) {
        this.f16026 = c0830.f3716.iterator();
        this.f16025 = c0830.f3715;
    }

    @Override // java.util.Iterator
    public final boolean hasNext() {
        int i = this.f16024;
        Iterator it = this.f16026;
        switch (i) {
            case 0:
                break;
            default:
                return it.hasNext();
        }
        while (this.f16025 > 0 && it.hasNext()) {
            it.next();
            this.f16025--;
        }
        return it.hasNext();
    }

    @Override // java.util.Iterator
    public final Object next() {
        int i = this.f16024;
        Iterator it = this.f16026;
        switch (i) {
            case 0:
                break;
            default:
                int i2 = this.f16025;
                this.f16025 = i2 + 1;
                if (i2 >= 0) {
                    return new C5176(i2, it.next());
                }
                AbstractC0892.m3124();
                throw null;
        }
        while (this.f16025 > 0 && it.hasNext()) {
            it.next();
            this.f16025--;
        }
        return it.next();
    }

    @Override // java.util.Iterator
    public final void remove() {
        switch (this.f16024) {
            case 0:
                throw new UnsupportedOperationException("Operation is not supported for read-only collection");
            default:
                throw new UnsupportedOperationException("Operation is not supported for read-only collection");
        }
    }
}
