package g9; import java.util.NoSuchElementException; import t8.z; /* loaded from: classes2.dex */ public final class b extends z { /* renamed from: a, reason: collision with root package name */ private final int f9863a; /* renamed from: b, reason: collision with root package name */ private final int f9864b; /* renamed from: c, reason: collision with root package name */ private boolean f9865c; /* renamed from: d, reason: collision with root package name */ private int f9866d; public b(int i10, int i11, int i12) { this.f9863a = i12; this.f9864b = i11; boolean z10 = true; if (i12 <= 0 ? i10 < i11 : i10 > i11) { z10 = false; } this.f9865c = z10; this.f9866d = z10 ? i10 : i11; } @Override // t8.z public int a() { int i10 = this.f9866d; if (i10 != this.f9864b) { this.f9866d = this.f9863a + i10; } else { if (!this.f9865c) { throw new NoSuchElementException(); } this.f9865c = false; } return i10; } @Override // java.util.Iterator public boolean hasNext() { return this.f9865c; } }