package kotlin.ranges;

import java.util.NoSuchElementException;
import kotlin.Metadata;
import kotlin.collections.CharIterator;
import kotlin.jvm.internal.o;

/* JADX INFO: renamed from: r.h0.b, reason: from Kotlin metadata */
/* JADX INFO: loaded from: classes.dex */
@Metadata(d1 = {"\u0000\"\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\f\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\u0005\b\u0000\u0018\u00002\u00020\u0001B\u001d\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0003\u0012\u0006\u0010\u0005\u001a\u00020\u0006¢\u0006\u0002\u0010\u0007J\t\u0010\t\u001a\u00020\nH\u0096\u0002J\b\u0010\u000e\u001a\u00020\u0003H\u0016R\u000e\u0010\b\u001a\u00020\u0006X\u0082\u0004¢\u0006\u0002\n\u0000R\u000e\u0010\t\u001a\u00020\nX\u0082\u000e¢\u0006\u0002\n\u0000R\u000e\u0010\u000b\u001a\u00020\u0006X\u0082\u000e¢\u0006\u0002\n\u0000R\u0011\u0010\u0005\u001a\u00020\u0006¢\u0006\b\n\u0000\u001a\u0004\b\f\u0010\r¨\u0006\u000f"}, d2 = {"Lkotlin/ranges/CharProgressionIterator;", "Lkotlin/collections/CharIterator;", "first", "", "last", "step", "", "(CCI)V", "finalElement", "hasNext", "", "next", "getStep", "()I", "nextChar", "kotlin-stdlib"}, k = 1, mv = {1, 7, 1}, xi = 48)
public final class CharProgressionIterator extends CharIterator {

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

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

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

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

    public CharProgressionIterator(char c2, char c3, int i2) {
        this.f6195f = i2;
        this.f6196m = c3;
        boolean z2 = true;
        if (i2 <= 0 ? o.h(c2, c3) < 0 : o.h(c2, c3) > 0) {
            z2 = false;
        }
        this.f6197n = z2;
        this.f6198o = z2 ? c2 : c3;
    }

    @Override // kotlin.collections.CharIterator
    public char c() {
        int i2 = this.f6198o;
        if (i2 != this.f6196m) {
            this.f6198o = this.f6195f + i2;
        } else {
            if (!this.f6197n) {
                throw new NoSuchElementException();
            }
            this.f6197n = false;
        }
        return (char) i2;
    }

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