package z1;

import java.util.NoSuchElementException;
import l1.v;

/* JADX INFO: compiled from: ProgressionIterators.kt */
/* JADX INFO: loaded from: classes.dex */
public final class b extends v {

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    private final int f6004e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    private final int f6005f;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    private boolean f6006g;

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    private int f6007h;

    public b(int i3, int i4, int i5) {
        this.f6004e = i5;
        this.f6005f = i4;
        boolean z2 = true;
        if (i5 <= 0 ? i3 < i4 : i3 > i4) {
            z2 = false;
        }
        this.f6006g = z2;
        this.f6007h = z2 ? i3 : i4;
    }

    @Override // l1.v
    public int a() {
        int i3 = this.f6007h;
        if (i3 != this.f6005f) {
            this.f6007h = this.f6004e + i3;
        } else {
            if (!this.f6006g) {
                throw new NoSuchElementException();
            }
            this.f6006g = false;
        }
        return i3;
    }

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