package d.p0;

import d.n0.c.s;
import java.util.NoSuchElementException;

/* JADX INFO: compiled from: ProgressionIterators.kt */
/* JADX INFO: loaded from: classes.dex */
@d.n
public final class b extends d.j0.m {

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

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

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

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

    public b(char c2, char c3, int i) {
        this.f2660c = i;
        this.f2661d = c3;
        boolean z = true;
        if (i <= 0 ? s.f(c2, c3) < 0 : s.f(c2, c3) > 0) {
            z = false;
        }
        this.f2662e = z;
        this.f2663f = z ? c2 : c3;
    }

    @Override // d.j0.m
    public char a() {
        int i = this.f2663f;
        if (i != this.f2661d) {
            this.f2663f = this.f2660c + i;
        } else {
            if (!this.f2662e) {
                throw new NoSuchElementException();
            }
            this.f2662e = false;
        }
        return (char) i;
    }

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