package g.j0;

import java.util.NoSuchElementException;

/* JADX INFO: compiled from: ProgressionIterators.kt */
/* JADX INFO: loaded from: classes.dex */
@g.i
public final class b extends g.c0.i {

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

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

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

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

    public b(char c2, char c3, int i2) {
        this.f4119b = i2;
        this.f4120e = c3;
        boolean z = true;
        if (i2 <= 0 ? g.h0.c.l.h(c2, c3) < 0 : g.h0.c.l.h(c2, c3) > 0) {
            z = false;
        }
        this.f4121f = z;
        this.f4122g = z ? c2 : c3;
    }

    @Override // g.c0.i
    public char b() {
        int i2 = this.f4122g;
        if (i2 != this.f4120e) {
            this.f4122g = this.f4119b + i2;
        } else {
            if (!this.f4121f) {
                throw new NoSuchElementException();
            }
            this.f4121f = false;
        }
        return (char) i2;
    }

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