package x4;

import java.util.Iterator;
import java.util.NoSuchElementException;
import s4.InterfaceC1015a;

/* JADX INFO: renamed from: x4.b, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C1104b implements Iterator, InterfaceC1015a {

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public final int f10705k;

    /* JADX INFO: renamed from: l, reason: collision with root package name */
    public final int f10706l;

    /* JADX INFO: renamed from: m, reason: collision with root package name */
    public boolean f10707m;

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

    public C1104b(int i, int i5, int i6) {
        this.f10705k = i6;
        this.f10706l = i5;
        boolean z5 = false;
        if (i6 <= 0 ? i >= i5 : i <= i5) {
            z5 = true;
        }
        this.f10707m = z5;
        this.f10708n = z5 ? i : i5;
    }

    public final int a() {
        int i = this.f10708n;
        if (i != this.f10706l) {
            this.f10708n = this.f10705k + i;
            return i;
        }
        if (!this.f10707m) {
            throw new NoSuchElementException();
        }
        this.f10707m = false;
        return i;
    }

    @Override // java.util.Iterator
    public final boolean hasNext() {
        return this.f10707m;
    }

    @Override // java.util.Iterator
    public final /* bridge */ /* synthetic */ Object next() {
        return Integer.valueOf(a());
    }

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