package g.j0;

import g.c0.s;
import java.util.NoSuchElementException;

/* JADX INFO: compiled from: ProgressionIterators.kt */
/* JADX INFO: loaded from: classes.dex */
@g.i
public final class j extends s {

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

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

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

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

    public j(long j2, long j3, long j4) {
        this.f4135b = j4;
        this.f4136e = j3;
        boolean z = true;
        if (j4 <= 0 ? j2 < j3 : j2 > j3) {
            z = false;
        }
        this.f4137f = z;
        this.f4138g = z ? j2 : j3;
    }

    @Override // g.c0.s
    public long b() {
        long j2 = this.f4138g;
        if (j2 != this.f4136e) {
            this.f4138g = this.f4135b + j2;
        } else {
            if (!this.f4137f) {
                throw new NoSuchElementException();
            }
            this.f4137f = false;
        }
        return j2;
    }

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