package x4;

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

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

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

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

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

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

    public C1107e(long j5, long j6, long j7) {
        this.f10713k = j7;
        this.f10714l = j6;
        boolean z5 = false;
        if (j7 <= 0 ? j5 >= j6 : j5 <= j6) {
            z5 = true;
        }
        this.f10715m = z5;
        this.f10716n = z5 ? j5 : j6;
    }

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

    @Override // java.util.Iterator
    public final Object next() {
        long j5 = this.f10716n;
        if (j5 != this.f10714l) {
            this.f10716n = this.f10713k + j5;
        } else {
            if (!this.f10715m) {
                throw new NoSuchElementException();
            }
            this.f10715m = false;
        }
        return Long.valueOf(j5);
    }

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