114 lines
1.8 KiB
Smali
114 lines
1.8 KiB
Smali
|
.class public final Lkotlin/ranges/a;
|
||
|
.super Lkotlin/a/aa;
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field private final bQl:I
|
||
|
|
||
|
.field private final bQn:I
|
||
|
|
||
|
.field private bQo:I
|
||
|
|
||
|
.field private hasNext:Z
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public constructor <init>(III)V
|
||
|
.locals 2
|
||
|
|
||
|
invoke-direct {p0}, Lkotlin/a/aa;-><init>()V
|
||
|
|
||
|
iput p3, p0, Lkotlin/ranges/a;->bQl:I
|
||
|
|
||
|
iput p2, p0, Lkotlin/ranges/a;->bQn:I
|
||
|
|
||
|
iget p3, p0, Lkotlin/ranges/a;->bQl:I
|
||
|
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
if-lez p3, :cond_0
|
||
|
|
||
|
if-gt p1, p2, :cond_1
|
||
|
|
||
|
:goto_0
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_0
|
||
|
if-lt p1, p2, :cond_1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_1
|
||
|
:goto_1
|
||
|
iput-boolean v0, p0, Lkotlin/ranges/a;->hasNext:Z
|
||
|
|
||
|
iget-boolean p2, p0, Lkotlin/ranges/a;->hasNext:Z
|
||
|
|
||
|
if-eqz p2, :cond_2
|
||
|
|
||
|
goto :goto_2
|
||
|
|
||
|
:cond_2
|
||
|
iget p1, p0, Lkotlin/ranges/a;->bQn:I
|
||
|
|
||
|
:goto_2
|
||
|
iput p1, p0, Lkotlin/ranges/a;->bQo:I
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public final hasNext()Z
|
||
|
.locals 1
|
||
|
|
||
|
iget-boolean v0, p0, Lkotlin/ranges/a;->hasNext:Z
|
||
|
|
||
|
return v0
|
||
|
.end method
|
||
|
|
||
|
.method public final nextInt()I
|
||
|
.locals 3
|
||
|
|
||
|
iget v0, p0, Lkotlin/ranges/a;->bQo:I
|
||
|
|
||
|
iget v1, p0, Lkotlin/ranges/a;->bQn:I
|
||
|
|
||
|
if-ne v0, v1, :cond_1
|
||
|
|
||
|
iget-boolean v1, p0, Lkotlin/ranges/a;->hasNext:Z
|
||
|
|
||
|
if-eqz v1, :cond_0
|
||
|
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
iput-boolean v1, p0, Lkotlin/ranges/a;->hasNext:Z
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
new-instance v0, Ljava/util/NoSuchElementException;
|
||
|
|
||
|
invoke-direct {v0}, Ljava/util/NoSuchElementException;-><init>()V
|
||
|
|
||
|
check-cast v0, Ljava/lang/Throwable;
|
||
|
|
||
|
throw v0
|
||
|
|
||
|
:cond_1
|
||
|
iget v1, p0, Lkotlin/ranges/a;->bQo:I
|
||
|
|
||
|
iget v2, p0, Lkotlin/ranges/a;->bQl:I
|
||
|
|
||
|
add-int/2addr v1, v2
|
||
|
|
||
|
iput v1, p0, Lkotlin/ranges/a;->bQo:I
|
||
|
|
||
|
:goto_0
|
||
|
return v0
|
||
|
.end method
|