package xd;

import java.util.Iterator;
import java.util.NoSuchElementException;

/* JADX INFO: loaded from: classes.dex */
public final class e implements Iterator, td.a {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final long f34818a;

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

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

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public long f34821d;

    public e(long j10, long j11, long j12) {
        this.f34818a = j12;
        this.f34819b = j11;
        boolean z10 = true;
        if (j12 <= 0 ? j10 < j11 : j10 > j11) {
            z10 = false;
        }
        this.f34820c = z10;
        this.f34821d = z10 ? j10 : j11;
    }

    @Override // java.util.Iterator
    /* JADX INFO: renamed from: a, reason: merged with bridge method [inline-methods] */
    public final Object next() {
        long j10 = this.f34821d;
        if (j10 != this.f34819b) {
            this.f34821d = this.f34818a + j10;
        } else {
            if (!this.f34820c) {
                throw new NoSuchElementException();
            }
            this.f34820c = false;
        }
        return Long.valueOf(j10);
    }

    public final void b() {
        throw new UnsupportedOperationException("Operation is not supported for read-only collection");
    }

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

    @Override // java.util.Iterator
    public final /* bridge */ /* synthetic */ void remove() {
        b();
        throw null;
    }
}
