Rabbit-R1/switch port/smali/smali_classes3/kotlin/ranges/LongProgressionIterator.smali

158 lines
3.5 KiB
Smali
Raw Normal View History

2024-05-21 16:08:36 -05:00
.class public final Lkotlin/ranges/LongProgressionIterator;
.super Lkotlin/collections/LongIterator;
.source "ProgressionIterators.kt"
# annotations
.annotation runtime Lkotlin/Metadata;
d1 = {
"\u0000\u001a\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\t\n\u0002\u0008\u0005\n\u0002\u0010\u000b\n\u0002\u0008\u0005\u0008\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\u0003\u00a2\u0006\u0002\u0010\u0006J\t\u0010\u0008\u001a\u00020\tH\u0096\u0002J\u0008\u0010\r\u001a\u00020\u0003H\u0016R\u000e\u0010\u0007\u001a\u00020\u0003X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0008\u001a\u00020\tX\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u000e\u0010\n\u001a\u00020\u0003X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u0011\u0010\u0005\u001a\u00020\u0003\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u000b\u0010\u000c\u00a8\u0006\u000e"
}
d2 = {
"Lkotlin/ranges/LongProgressionIterator;",
"Lkotlin/collections/LongIterator;",
"first",
"",
"last",
"step",
"(JJJ)V",
"finalElement",
"hasNext",
"",
"next",
"getStep",
"()J",
"nextLong",
"kotlin-stdlib"
}
k = 0x1
mv = {
0x1,
0x9,
0x0
}
xi = 0x30
.end annotation
# instance fields
.field private final finalElement:J
.field private hasNext:Z
.field private next:J
.field private final step:J
# direct methods
.method public constructor <init>(JJJ)V
.locals 2
.line 62
invoke-direct {p0}, Lkotlin/collections/LongIterator;-><init>()V
iput-wide p5, p0, Lkotlin/ranges/LongProgressionIterator;->step:J
iput-wide p3, p0, Lkotlin/ranges/LongProgressionIterator;->finalElement:J
const-wide/16 v0, 0x0
cmp-long p5, p5, v0
const/4 p6, 0x1
const/4 v0, 0x0
if-lez p5, :cond_0
cmp-long p5, p1, p3
if-gtz p5, :cond_1
goto :goto_0
:cond_0
cmp-long p5, p1, p3
if-ltz p5, :cond_1
goto :goto_0
:cond_1
move p6, v0
:goto_0
iput-boolean p6, p0, Lkotlin/ranges/LongProgressionIterator;->hasNext:Z
if-eqz p6, :cond_2
goto :goto_1
:cond_2
move-wide p1, p3
:goto_1
iput-wide p1, p0, Lkotlin/ranges/LongProgressionIterator;->next:J
return-void
.end method
# virtual methods
.method public final getStep()J
.locals 2
iget-wide v0, p0, Lkotlin/ranges/LongProgressionIterator;->step:J
return-wide v0
.end method
.method public hasNext()Z
.locals 0
iget-boolean p0, p0, Lkotlin/ranges/LongProgressionIterator;->hasNext:Z
return p0
.end method
.method public nextLong()J
.locals 4
iget-wide v0, p0, Lkotlin/ranges/LongProgressionIterator;->next:J
iget-wide v2, p0, Lkotlin/ranges/LongProgressionIterator;->finalElement:J
cmp-long v2, v0, v2
if-nez v2, :cond_1
iget-boolean v2, p0, Lkotlin/ranges/LongProgressionIterator;->hasNext:Z
if-eqz v2, :cond_0
const/4 v2, 0x0
iput-boolean v2, p0, Lkotlin/ranges/LongProgressionIterator;->hasNext:Z
goto :goto_0
.line 72
:cond_0
new-instance p0, Ljava/util/NoSuchElementException;
invoke-direct {p0}, Ljava/util/NoSuchElementException;-><init>()V
throw p0
:cond_1
iget-wide v2, p0, Lkotlin/ranges/LongProgressionIterator;->step:J
add-long/2addr v2, v0
iput-wide v2, p0, Lkotlin/ranges/LongProgressionIterator;->next:J
:goto_0
return-wide v0
.end method