package e.t;

import e.o.i;
import java.util.NoSuchElementException;

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

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

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

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

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

    public b(int i2, int i3, int i4) {
        this.f6039e = i4;
        this.f6036b = i3;
        boolean z = true;
        if (i4 <= 0 ? i2 < i3 : i2 > i3) {
            z = false;
        }
        this.f6037c = z;
        this.f6038d = z ? i2 : i3;
    }

    @Override // e.o.i
    public int a() {
        int i2 = this.f6038d;
        if (i2 != this.f6036b) {
            this.f6038d = this.f6039e + i2;
        } else {
            if (!this.f6037c) {
                throw new NoSuchElementException();
            }
            this.f6037c = false;
        }
        return i2;
    }

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