package d.p0;

import d.j0.g0;

/* JADX INFO: compiled from: Progressions.kt */
/* JADX INFO: loaded from: classes.dex */
@d.n
public class i implements Iterable<Long> {

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

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

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

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

    /* JADX INFO: compiled from: Progressions.kt */
    @d.n
    public static final class a {
        private a() {
        }

        public /* synthetic */ a(d.n0.c.l lVar) {
            this();
        }
    }

    public i(long j, long j2, long j3) {
        if (j3 == 0) {
            throw new IllegalArgumentException("Step must be non-zero.");
        }
        if (j3 == Long.MIN_VALUE) {
            throw new IllegalArgumentException("Step must be greater than Long.MIN_VALUE to avoid overflow on negation.");
        }
        this.f2679d = j;
        this.f2680e = d.l0.c.d(j, j2, j3);
        this.f2681f = j3;
    }

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

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

    @Override // java.lang.Iterable
    /* JADX INFO: renamed from: c, reason: merged with bridge method [inline-methods] */
    public g0 iterator() {
        return new j(this.f2679d, this.f2680e, this.f2681f);
    }
}
