package d.f;

import d.c.f;
import java.util.NoSuchElementException;

/* JADX INFO: loaded from: classes.dex */
public final class b extends f {

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

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

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

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

    public b(int i, int i2, int i3) {
        this.f1654a = i3;
        this.f1655b = i2;
        boolean z = true;
        if (i3 <= 0 ? i < i2 : i > i2) {
            z = false;
        }
        this.f1656c = z;
        this.f1657d = z ? i : i2;
    }

    @Override // d.c.f
    public int a() {
        int i = this.f1657d;
        if (i != this.f1655b) {
            this.f1657d = this.f1654a + i;
        } else {
            if (!this.f1656c) {
                throw new NoSuchElementException();
            }
            this.f1656c = false;
        }
        return i;
    }

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