package f.b0;

import java.util.NoSuchElementException;

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

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

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

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

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

    public b(char c2, char c3, int i2) {
        this.f3900b = i2;
        this.f3901f = c3;
        boolean z = true;
        int iG = f.z.d.k.g(c2, c3);
        if (i2 <= 0 ? iG < 0 : iG > 0) {
            z = false;
        }
        this.f3902g = z;
        this.f3903h = z ? c2 : this.f3901f;
    }

    @Override // f.u.h
    public char a() {
        int i2 = this.f3903h;
        if (i2 != this.f3901f) {
            this.f3903h = this.f3900b + i2;
        } else {
            if (!this.f3902g) {
                throw new NoSuchElementException();
            }
            this.f3902g = false;
        }
        return (char) i2;
    }

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