package kotlin.ranges;

import o1.AbstractC0654B;

/* JADX INFO: loaded from: classes.dex */
public abstract class j implements Iterable, z1.a {

    /* JADX INFO: renamed from: x, reason: collision with root package name */
    public static final a f5127x = new a(null);

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

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    private final long f5129g;

    /* JADX INFO: renamed from: r, reason: collision with root package name */
    private final long f5130r;

    public static final class a {
        public /* synthetic */ a(kotlin.jvm.internal.g gVar) {
            this();
        }

        private a() {
        }
    }

    public j(long j2, long j3, long j4) {
        if (j4 == 0) {
            throw new IllegalArgumentException("Step must be non-zero.");
        }
        if (j4 == Long.MIN_VALUE) {
            throw new IllegalArgumentException("Step must be greater than Long.MIN_VALUE to avoid overflow on negation.");
        }
        this.f5128b = j2;
        this.f5129g = t1.c.d(j2, j3, j4);
        this.f5130r = j4;
    }

    public final long a() {
        return this.f5128b;
    }

    public final long b() {
        return this.f5129g;
    }

    @Override // java.lang.Iterable
    /* JADX INFO: renamed from: c, reason: merged with bridge method [inline-methods] */
    public AbstractC0654B iterator() {
        return new k(this.f5128b, this.f5129g, this.f5130r);
    }
}
