package defpackage;

import java.util.ListIterator;

/* JADX INFO: renamed from: ˀᵛᵟ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C0578 extends C3158 implements ListIterator {

    /* JADX INFO: renamed from: ᵨᵼⁱ, reason: contains not printable characters */
    public final /* synthetic */ AbstractC3327 f2847;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C0578(AbstractC3327 abstractC3327, int i) {
        super(0, abstractC3327);
        this.f2847 = abstractC3327;
        int iMo2197 = abstractC3327.mo2197();
        if (i < 0 || i > iMo2197) {
            C1390.m3982(AbstractC3653.m8230(i, iMo2197, "index: ", ", size: "));
            throw null;
        }
        this.f12017 = i;
    }

    @Override // java.util.ListIterator
    public final void add(Object obj) {
        throw new UnsupportedOperationException("Operation is not supported for read-only collection");
    }

    @Override // java.util.ListIterator
    public final boolean hasPrevious() {
        return this.f12017 > 0;
    }

    @Override // java.util.ListIterator
    public final int nextIndex() {
        return this.f12017;
    }

    @Override // java.util.ListIterator
    public final Object previous() {
        if (!hasPrevious()) {
            C4468.m9518();
            return null;
        }
        int i = this.f12017 - 1;
        this.f12017 = i;
        return this.f2847.get(i);
    }

    @Override // java.util.ListIterator
    public final int previousIndex() {
        return this.f12017 - 1;
    }

    @Override // java.util.ListIterator
    public final void set(Object obj) {
        throw new UnsupportedOperationException("Operation is not supported for read-only collection");
    }
}
