ULongProgressionIterator.smali
4.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
.class final Lkotlin/ranges/ULongProgressionIterator;
.super Lkotlin/collections/ULongIterator;
.source "ULongRange.kt"
# annotations
.annotation system Ldalvik/annotation/SourceDebugExtension;
value = "SMAP\nULongRange.kt\nKotlin\n*S Kotlin\n*F\n+ 1 ULongRange.kt\nkotlin/ranges/ULongProgressionIterator\n*L\n1#1,127:1\n*E\n"
.end annotation
.annotation build Lkotlin/ExperimentalUnsignedTypes;
.end annotation
.annotation runtime Lkotlin/Metadata;
bv = {
0x1,
0x0,
0x3
}
d1 = {
"\u0000\"\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0010\t\n\u0002\u0008\u0004\n\u0002\u0010\u000b\n\u0002\u0008\u0004\u0008\u0003\u0018\u00002\u00020\u0001B \u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0003\u0012\u0006\u0010\u0005\u001a\u00020\u0006\u00f8\u0001\u0000\u00a2\u0006\u0002\u0010\u0007J\t\u0010\n\u001a\u00020\u000bH\u0096\u0002J\u0010\u0010\r\u001a\u00020\u0003H\u0016\u00f8\u0001\u0000\u00a2\u0006\u0002\u0010\u000eR\u0013\u0010\u0008\u001a\u00020\u0003X\u0082\u0004\u00f8\u0001\u0000\u00a2\u0006\u0004\n\u0002\u0010\tR\u000e\u0010\n\u001a\u00020\u000bX\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u0013\u0010\u000c\u001a\u00020\u0003X\u0082\u000e\u00f8\u0001\u0000\u00a2\u0006\u0004\n\u0002\u0010\tR\u0013\u0010\u0005\u001a\u00020\u0003X\u0082\u0004\u00f8\u0001\u0000\u00a2\u0006\u0004\n\u0002\u0010\t\u0082\u0002\u0004\n\u0002\u0008\u0019\u00a8\u0006\u000f"
}
d2 = {
"Lkotlin/ranges/ULongProgressionIterator;",
"Lkotlin/collections/ULongIterator;",
"first",
"Lkotlin/ULong;",
"last",
"step",
"",
"(JJJLkotlin/jvm/internal/DefaultConstructorMarker;)V",
"finalElement",
"J",
"hasNext",
"",
"next",
"nextULong",
"()J",
"kotlin-stdlib"
}
k = 0x1
mv = {
0x1,
0x1,
0xf
}
.end annotation
.annotation build Lkotlin/SinceKotlin;
version = "1.3"
.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 private constructor <init>(JJJ)V
.locals 3
.line 107
invoke-direct {p0}, Lkotlin/collections/ULongIterator;-><init>()V
.line 108
iput-wide p3, p0, Lkotlin/ranges/ULongProgressionIterator;->finalElement:J
const-wide/16 v0, 0x0
cmp-long v0, p5, v0
const/4 v1, 0x1
const/4 v2, 0x0
if-lez v0, :cond_0
.line 109
invoke-static {p1, p2, p3, p4}, Lkotlin/UnsignedKt;->ulongCompare(JJ)I
move-result p3
if-gtz p3, :cond_1
goto :goto_0
:cond_0
invoke-static {p1, p2, p3, p4}, Lkotlin/UnsignedKt;->ulongCompare(JJ)I
move-result p3
if-ltz p3, :cond_1
goto :goto_0
:cond_1
move v1, v2
:goto_0
iput-boolean v1, p0, Lkotlin/ranges/ULongProgressionIterator;->hasNext:Z
.line 110
invoke-static {p5, p6}, Lkotlin/ULong;->constructor-impl(J)J
move-result-wide p3
iput-wide p3, p0, Lkotlin/ranges/ULongProgressionIterator;->step:J
.line 111
iget-boolean p3, p0, Lkotlin/ranges/ULongProgressionIterator;->hasNext:Z
if-eqz p3, :cond_2
goto :goto_1
:cond_2
iget-wide p1, p0, Lkotlin/ranges/ULongProgressionIterator;->finalElement:J
:goto_1
iput-wide p1, p0, Lkotlin/ranges/ULongProgressionIterator;->next:J
return-void
.end method
.method public synthetic constructor <init>(JJJLkotlin/jvm/internal/DefaultConstructorMarker;)V
.locals 0
.line 107
invoke-direct/range {p0 .. p6}, Lkotlin/ranges/ULongProgressionIterator;-><init>(JJJ)V
return-void
.end method
# virtual methods
.method public hasNext()Z
.locals 1
.line 113
iget-boolean v0, p0, Lkotlin/ranges/ULongProgressionIterator;->hasNext:Z
return v0
.end method
.method public nextULong()J
.locals 4
.line 116
iget-wide v0, p0, Lkotlin/ranges/ULongProgressionIterator;->next:J
.line 117
iget-wide v2, p0, Lkotlin/ranges/ULongProgressionIterator;->finalElement:J
cmp-long v2, v0, v2
if-nez v2, :cond_1
.line 118
iget-boolean v2, p0, Lkotlin/ranges/ULongProgressionIterator;->hasNext:Z
if-eqz v2, :cond_0
const/4 v2, 0x0
.line 119
iput-boolean v2, p0, Lkotlin/ranges/ULongProgressionIterator;->hasNext:Z
goto :goto_0
.line 118
:cond_0
new-instance v0, Ljava/util/NoSuchElementException;
invoke-direct {v0}, Ljava/util/NoSuchElementException;-><init>()V
check-cast v0, Ljava/lang/Throwable;
throw v0
.line 121
:cond_1
iget-wide v2, p0, Lkotlin/ranges/ULongProgressionIterator;->step:J
add-long/2addr v2, v0
invoke-static {v2, v3}, Lkotlin/ULong;->constructor-impl(J)J
move-result-wide v2
iput-wide v2, p0, Lkotlin/ranges/ULongProgressionIterator;->next:J
:goto_0
return-wide v0
.end method