package o;

import java.util.NoSuchElementException;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.bf, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0828bf extends S {
    public final /* synthetic */ int n = 1;

    /* renamed from: o, reason: collision with root package name */
    public final Object f459o;

    public C0828bf(Object[] objArr, int i, int i2) {
        super(i, i2);
        this.f459o = objArr;
    }

    @Override // java.util.ListIterator, java.util.Iterator
    public final Object next() {
        switch (this.n) {
            case 0:
                if (!hasNext()) {
                    throw new NoSuchElementException();
                }
                Object[] objArr = (Object[]) this.f459o;
                int i = this.l;
                this.l = i + 1;
                return objArr[i];
            default:
                if (!hasNext()) {
                    throw new NoSuchElementException();
                }
                this.l++;
                return this.f459o;
        }
    }

    @Override // java.util.ListIterator
    public final Object previous() {
        switch (this.n) {
            case 0:
                if (!hasPrevious()) {
                    throw new NoSuchElementException();
                }
                Object[] objArr = (Object[]) this.f459o;
                int i = this.l - 1;
                this.l = i;
                return objArr[i];
            default:
                if (!hasPrevious()) {
                    throw new NoSuchElementException();
                }
                this.l--;
                return this.f459o;
        }
    }

    public C0828bf(int i, Object obj) {
        super(i, 1);
        this.f459o = obj;
    }
}
