package h.z;

import java.util.NoSuchElementException;

/* JADX INFO: compiled from: ProgressionIterators.kt */
/* JADX INFO: loaded from: classes.dex */
public final class b extends h.s.j {
    private final int b;

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

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

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

    public b(char c2, char c3, int i2) {
        this.b = i2;
        this.f999e = c3;
        boolean z = true;
        int iE = h.x.d.k.e(c2, c3);
        if (i2 <= 0 ? iE < 0 : iE > 0) {
            z = false;
        }
        this.f1000f = z;
        this.f1001g = z ? c2 : this.f999e;
    }

    @Override // h.s.j
    public char a() {
        int i2 = this.f1001g;
        if (i2 != this.f999e) {
            this.f1001g = this.b + i2;
        } else {
            if (!this.f1000f) {
                throw new NoSuchElementException();
            }
            this.f1000f = false;
        }
        return (char) i2;
    }

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