Rabbit-R1/switch port/smali/smali_classes3/kotlin/sequences/USequencesKt___USequencesKt.smali

267 lines
6.1 KiB
Smali
Raw Normal View History

2024-05-21 16:08:36 -05:00
.class Lkotlin/sequences/USequencesKt___USequencesKt;
.super Ljava/lang/Object;
.source "_USequences.kt"
# annotations
.annotation runtime Lkotlin/Metadata;
d1 = {
"\u0000\"\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\u001a\u0019\u0010\u0000\u001a\u00020\u0001*\u0008\u0012\u0004\u0012\u00020\u00030\u0002H\u0007\u00a2\u0006\u0004\u0008\u0004\u0010\u0005\u001a\u0019\u0010\u0000\u001a\u00020\u0001*\u0008\u0012\u0004\u0012\u00020\u00010\u0002H\u0007\u00a2\u0006\u0004\u0008\u0006\u0010\u0005\u001a\u0019\u0010\u0000\u001a\u00020\u0007*\u0008\u0012\u0004\u0012\u00020\u00070\u0002H\u0007\u00a2\u0006\u0004\u0008\u0008\u0010\t\u001a\u0019\u0010\u0000\u001a\u00020\u0001*\u0008\u0012\u0004\u0012\u00020\n0\u0002H\u0007\u00a2\u0006\u0004\u0008\u000b\u0010\u0005\u00a8\u0006\u000c"
}
d2 = {
"sum",
"Lkotlin/UInt;",
"Lkotlin/sequences/Sequence;",
"Lkotlin/UByte;",
"sumOfUByte",
"(Lkotlin/sequences/Sequence;)I",
"sumOfUInt",
"Lkotlin/ULong;",
"sumOfULong",
"(Lkotlin/sequences/Sequence;)J",
"Lkotlin/UShort;",
"sumOfUShort",
"kotlin-stdlib"
}
k = 0x5
mv = {
0x1,
0x9,
0x0
}
xi = 0x31
xs = "kotlin/sequences/USequencesKt"
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static final sumOfUByte(Lkotlin/sequences/Sequence;)I
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/sequences/Sequence<",
"Lkotlin/UByte;",
">;)I"
}
.end annotation
const-string v0, "<this>"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 60
invoke-interface {p0}, Lkotlin/sequences/Sequence;->iterator()Ljava/util/Iterator;
move-result-object p0
const/4 v0, 0x0
:goto_0
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_0
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lkotlin/UByte;
invoke-virtual {v1}, Lkotlin/UByte;->unbox-impl()B
move-result v1
and-int/lit16 v1, v1, 0xff
.line 61
invoke-static {v1}, Lkotlin/UInt;->constructor-impl(I)I
move-result v1
add-int/2addr v0, v1
invoke-static {v0}, Lkotlin/UInt;->constructor-impl(I)I
move-result v0
goto :goto_0
:cond_0
return v0
.end method
.method public static final sumOfUInt(Lkotlin/sequences/Sequence;)I
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/sequences/Sequence<",
"Lkotlin/UInt;",
">;)I"
}
.end annotation
const-string v0, "<this>"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 28
invoke-interface {p0}, Lkotlin/sequences/Sequence;->iterator()Ljava/util/Iterator;
move-result-object p0
const/4 v0, 0x0
:goto_0
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_0
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lkotlin/UInt;
invoke-virtual {v1}, Lkotlin/UInt;->unbox-impl()I
move-result v1
add-int/2addr v0, v1
.line 29
invoke-static {v0}, Lkotlin/UInt;->constructor-impl(I)I
move-result v0
goto :goto_0
:cond_0
return v0
.end method
.method public static final sumOfULong(Lkotlin/sequences/Sequence;)J
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/sequences/Sequence<",
"Lkotlin/ULong;",
">;)J"
}
.end annotation
const-string v0, "<this>"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 44
invoke-interface {p0}, Lkotlin/sequences/Sequence;->iterator()Ljava/util/Iterator;
move-result-object p0
const-wide/16 v0, 0x0
:goto_0
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_0
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
check-cast v2, Lkotlin/ULong;
invoke-virtual {v2}, Lkotlin/ULong;->unbox-impl()J
move-result-wide v2
add-long/2addr v0, v2
.line 45
invoke-static {v0, v1}, Lkotlin/ULong;->constructor-impl(J)J
move-result-wide v0
goto :goto_0
:cond_0
return-wide v0
.end method
.method public static final sumOfUShort(Lkotlin/sequences/Sequence;)I
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/sequences/Sequence<",
"Lkotlin/UShort;",
">;)I"
}
.end annotation
const-string v0, "<this>"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 76
invoke-interface {p0}, Lkotlin/sequences/Sequence;->iterator()Ljava/util/Iterator;
move-result-object p0
const/4 v0, 0x0
:goto_0
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_0
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lkotlin/UShort;
invoke-virtual {v1}, Lkotlin/UShort;->unbox-impl()S
move-result v1
const v2, 0xffff
and-int/2addr v1, v2
.line 77
invoke-static {v1}, Lkotlin/UInt;->constructor-impl(I)I
move-result v1
add-int/2addr v0, v1
invoke-static {v0}, Lkotlin/UInt;->constructor-impl(I)I
move-result v0
goto :goto_0
:cond_0
return v0
.end method