CollectionsKt__CollectionsJVMKt.smali
9.5 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
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
.class Lkotlin/collections/CollectionsKt__CollectionsJVMKt;
.super Ljava/lang/Object;
.source "CollectionsJVM.kt"
# annotations
.annotation runtime Lkotlin/Metadata;
bv = {
0x1,
0x0,
0x3
}
d1 = {
"\u00002\n\u0000\n\u0002\u0010\u0008\n\u0002\u0008\u0004\n\u0002\u0010\u0011\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u001e\n\u0002\u0008\u0005\n\u0002\u0010 \n\u0002\u0008\u0004\n\u0002\u0010\u000b\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0000\u001a\u0011\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0001H\u0081\u0008\u001a\u0011\u0010\u0003\u001a\u00020\u00012\u0006\u0010\u0004\u001a\u00020\u0001H\u0081\u0008\u001a\"\u0010\u0005\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\u00070\u00062\n\u0010\u0008\u001a\u0006\u0012\u0002\u0008\u00030\tH\u0081\u0008\u00a2\u0006\u0002\u0010\n\u001a4\u0010\u0005\u001a\u0008\u0012\u0004\u0012\u0002H\u000b0\u0006\"\u0004\u0008\u0000\u0010\u000b2\n\u0010\u0008\u001a\u0006\u0012\u0002\u0008\u00030\t2\u000c\u0010\u000c\u001a\u0008\u0012\u0004\u0012\u0002H\u000b0\u0006H\u0081\u0008\u00a2\u0006\u0002\u0010\r\u001a\u001f\u0010\u000e\u001a\u0008\u0012\u0004\u0012\u0002H\u000b0\u000f\"\u0004\u0008\u0000\u0010\u000b2\u0006\u0010\u0010\u001a\u0002H\u000b\u00a2\u0006\u0002\u0010\u0011\u001a1\u0010\u0012\u001a\u000c\u0012\u0008\u0008\u0001\u0012\u0004\u0018\u00010\u00070\u0006\"\u0004\u0008\u0000\u0010\u000b*\n\u0012\u0006\u0008\u0001\u0012\u0002H\u000b0\u00062\u0006\u0010\u0013\u001a\u00020\u0014H\u0000\u00a2\u0006\u0002\u0010\u0015\u001a\u001f\u0010\u0016\u001a\u0008\u0012\u0004\u0012\u0002H\u000b0\u000f\"\u0004\u0008\u0000\u0010\u000b*\u0008\u0012\u0004\u0012\u0002H\u000b0\u0017H\u0087\u0008\u00a8\u0006\u0018"
}
d2 = {
"checkCountOverflow",
"",
"count",
"checkIndexOverflow",
"index",
"copyToArrayImpl",
"",
"",
"collection",
"",
"(Ljava/util/Collection;)[Ljava/lang/Object;",
"T",
"array",
"(Ljava/util/Collection;[Ljava/lang/Object;)[Ljava/lang/Object;",
"listOf",
"",
"element",
"(Ljava/lang/Object;)Ljava/util/List;",
"copyToArrayOfAny",
"isVarargs",
"",
"([Ljava/lang/Object;Z)[Ljava/lang/Object;",
"toList",
"Ljava/util/Enumeration;",
"kotlin-stdlib"
}
k = 0x5
mv = {
0x1,
0x1,
0xf
}
xi = 0x1
xs = "kotlin/collections/CollectionsKt"
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method private static final checkCountOverflow(I)I
.locals 3
.annotation build Lkotlin/PublishedApi;
.end annotation
.annotation build Lkotlin/SinceKotlin;
version = "1.3"
.end annotation
.annotation build Lkotlin/internal/InlineOnly;
.end annotation
if-gez p0, :cond_1
const/4 v0, 0x1
const/4 v1, 0x3
const/4 v2, 0x0
.line 67
invoke-static {v0, v1, v2}, Lkotlin/internal/PlatformImplementationsKt;->apiVersionIsAtLeast(III)Z
move-result v0
if-eqz v0, :cond_0
.line 68
invoke-static {}, Lkotlin/collections/CollectionsKt;->throwCountOverflow()V
goto :goto_0
.line 70
:cond_0
new-instance p0, Ljava/lang/ArithmeticException;
const-string v0, "Count overflow has happened."
invoke-direct {p0, v0}, Ljava/lang/ArithmeticException;-><init>(Ljava/lang/String;)V
check-cast p0, Ljava/lang/Throwable;
throw p0
:cond_1
:goto_0
return p0
.end method
.method private static final checkIndexOverflow(I)I
.locals 3
.annotation build Lkotlin/PublishedApi;
.end annotation
.annotation build Lkotlin/SinceKotlin;
version = "1.3"
.end annotation
.annotation build Lkotlin/internal/InlineOnly;
.end annotation
if-gez p0, :cond_1
const/4 v0, 0x1
const/4 v1, 0x3
const/4 v2, 0x0
.line 54
invoke-static {v0, v1, v2}, Lkotlin/internal/PlatformImplementationsKt;->apiVersionIsAtLeast(III)Z
move-result v0
if-eqz v0, :cond_0
.line 55
invoke-static {}, Lkotlin/collections/CollectionsKt;->throwIndexOverflow()V
goto :goto_0
.line 57
:cond_0
new-instance p0, Ljava/lang/ArithmeticException;
const-string v0, "Index overflow has happened."
invoke-direct {p0, v0}, Ljava/lang/ArithmeticException;-><init>(Ljava/lang/String;)V
check-cast p0, Ljava/lang/Throwable;
throw p0
:cond_1
:goto_0
return p0
.end method
.method private static final copyToArrayImpl(Ljava/util/Collection;)[Ljava/lang/Object;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Collection<",
"*>;)[",
"Ljava/lang/Object;"
}
.end annotation
.annotation build Lkotlin/internal/InlineOnly;
.end annotation
.line 33
invoke-static {p0}, Lkotlin/jvm/internal/CollectionToArray;->toArray(Ljava/util/Collection;)[Ljava/lang/Object;
move-result-object p0
return-object p0
.end method
.method private static final copyToArrayImpl(Ljava/util/Collection;[Ljava/lang/Object;)[Ljava/lang/Object;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Ljava/util/Collection<",
"*>;[TT;)[TT;"
}
.end annotation
.annotation build Lkotlin/internal/InlineOnly;
.end annotation
if-eqz p1, :cond_1
.line 38
invoke-static {p0, p1}, Lkotlin/jvm/internal/CollectionToArray;->toArray(Ljava/util/Collection;[Ljava/lang/Object;)[Ljava/lang/Object;
move-result-object p0
if-eqz p0, :cond_0
return-object p0
:cond_0
new-instance p0, Lkotlin/TypeCastException;
const-string p1, "null cannot be cast to non-null type kotlin.Array<T>"
invoke-direct {p0, p1}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V
throw p0
:cond_1
new-instance p0, Lkotlin/TypeCastException;
const-string p1, "null cannot be cast to non-null type kotlin.Array<kotlin.Any?>"
invoke-direct {p0, p1}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V
throw p0
.end method
.method public static final copyToArrayOfAny([Ljava/lang/Object;Z)[Ljava/lang/Object;
.locals 1
.param p0 # [Ljava/lang/Object;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">([TT;Z)[",
"Ljava/lang/Object;"
}
.end annotation
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
const-string v0, "$this$copyToArrayOfAny"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
if-eqz p1, :cond_0
.line 42
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object p1
const-class v0, [Ljava/lang/Object;
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result p1
if-eqz p1, :cond_0
goto :goto_0
.line 46
:cond_0
array-length p1, p0
const-class v0, [Ljava/lang/Object;
invoke-static {p0, p1, v0}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;ILjava/lang/Class;)[Ljava/lang/Object;
move-result-object p0
const-string p1, "java.util.Arrays.copyOf(\u2026 Array<Any?>::class.java)"
invoke-static {p0, p1}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
:goto_0
return-object p0
.end method
.method public static final listOf(Ljava/lang/Object;)Ljava/util/List;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(TT;)",
"Ljava/util/List<",
"TT;>;"
}
.end annotation
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.line 19
invoke-static {p0}, Ljava/util/Collections;->singletonList(Ljava/lang/Object;)Ljava/util/List;
move-result-object p0
const-string v0, "java.util.Collections.singletonList(element)"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
return-object p0
.end method
.method private static final toList(Ljava/util/Enumeration;)Ljava/util/List;
.locals 1
.param p0 # Ljava/util/Enumeration;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Ljava/util/Enumeration<",
"TT;>;)",
"Ljava/util/List<",
"TT;>;"
}
.end annotation
.annotation build Lkotlin/internal/InlineOnly;
.end annotation
.line 28
invoke-static {p0}, Ljava/util/Collections;->list(Ljava/util/Enumeration;)Ljava/util/ArrayList;
move-result-object p0
const-string v0, "java.util.Collections.list(this)"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
check-cast p0, Ljava/util/List;
return-object p0
.end method