.class Lkotlin/collections/UCollectionsKt___UCollectionsKt; .super Ljava/lang/Object; .source "_UCollections.kt" # annotations .annotation runtime Lkotlin/Metadata; d1 = { "\u0000F\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u001c\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u001e\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\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\u001a\u0017\u0010\u000c\u001a\u00020\r*\u0008\u0012\u0004\u0012\u00020\u00030\u000eH\u0007\u00a2\u0006\u0002\u0010\u000f\u001a\u0017\u0010\u0010\u001a\u00020\u0011*\u0008\u0012\u0004\u0012\u00020\u00010\u000eH\u0007\u00a2\u0006\u0002\u0010\u0012\u001a\u0017\u0010\u0013\u001a\u00020\u0014*\u0008\u0012\u0004\u0012\u00020\u00070\u000eH\u0007\u00a2\u0006\u0002\u0010\u0015\u001a\u0017\u0010\u0016\u001a\u00020\u0017*\u0008\u0012\u0004\u0012\u00020\n0\u000eH\u0007\u00a2\u0006\u0002\u0010\u0018\u00a8\u0006\u0019" } d2 = { "sum", "Lkotlin/UInt;", "", "Lkotlin/UByte;", "sumOfUByte", "(Ljava/lang/Iterable;)I", "sumOfUInt", "Lkotlin/ULong;", "sumOfULong", "(Ljava/lang/Iterable;)J", "Lkotlin/UShort;", "sumOfUShort", "toUByteArray", "Lkotlin/UByteArray;", "", "(Ljava/util/Collection;)[B", "toUIntArray", "Lkotlin/UIntArray;", "(Ljava/util/Collection;)[I", "toULongArray", "Lkotlin/ULongArray;", "(Ljava/util/Collection;)[J", "toUShortArray", "Lkotlin/UShortArray;", "(Ljava/util/Collection;)[S", "kotlin-stdlib" } k = 0x5 mv = { 0x1, 0x9, 0x0 } xi = 0x31 xs = "kotlin/collections/UCollectionsKt" .end annotation # direct methods .method public constructor ()V .locals 0 invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method .method public static final sumOfUByte(Ljava/lang/Iterable;)I .locals 2 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/Iterable<", "Lkotlin/UByte;", ">;)I" } .end annotation const-string v0, "" invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 108 invoke-interface {p0}, Ljava/lang/Iterable;->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 109 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(Ljava/lang/Iterable;)I .locals 2 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/Iterable<", "Lkotlin/UInt;", ">;)I" } .end annotation const-string v0, "" invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 80 invoke-interface {p0}, Ljava/lang/Iterable;->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 81 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(Ljava/lang/Iterable;)J .locals 4 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/Iterable<", "Lkotlin/ULong;", ">;)J" } .end annotation const-string v0, "" invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 94 invoke-interface {p0}, Ljava/lang/Iterable;->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 95 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(Ljava/lang/Iterable;)I .locals 3 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/Iterable<", "Lkotlin/UShort;", ">;)I" } .end annotation const-string v0, "" invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 122 invoke-interface {p0}, Ljava/lang/Iterable;->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 123 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 toUByteArray(Ljava/util/Collection;)[B .locals 4 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/util/Collection<", "Lkotlin/UByte;", ">;)[B" } .end annotation const-string v0, "" invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 26 invoke-interface {p0}, Ljava/util/Collection;->size()I move-result v0 invoke-static {v0}, Lkotlin/UByteArray;->constructor-impl(I)[B move-result-object v0 .line 28 invoke-interface {p0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator; move-result-object p0 const/4 v1, 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/UByte; invoke-virtual {v2}, Lkotlin/UByte;->unbox-impl()B move-result v2 add-int/lit8 v3, v1, 0x1 .line 29 invoke-static {v0, v1, v2}, Lkotlin/UByteArray;->set-VurrAj0([BIB)V move v1, v3 goto :goto_0 :cond_0 return-object v0 .end method .method public static final toUIntArray(Ljava/util/Collection;)[I .locals 4 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/util/Collection<", "Lkotlin/UInt;", ">;)[I" } .end annotation const-string v0, "" invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 39 invoke-interface {p0}, Ljava/util/Collection;->size()I move-result v0 invoke-static {v0}, Lkotlin/UIntArray;->constructor-impl(I)[I move-result-object v0 .line 41 invoke-interface {p0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator; move-result-object p0 const/4 v1, 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/UInt; invoke-virtual {v2}, Lkotlin/UInt;->unbox-impl()I move-result v2 add-int/lit8 v3, v1, 0x1 .line 42 invoke-static {v0, v1, v2}, Lkotlin/UIntArray;->set-VXSXFK8([III)V move v1, v3 goto :goto_0 :cond_0 return-object v0 .end method .method public static final toULongArray(Ljava/util/Collection;)[J .locals 5 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/util/Collection<", "Lkotlin/ULong;", ">;)[J" } .end annotation const-string v0, "" invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 52 invoke-interface {p0}, Ljava/util/Collection;->size()I move-result v0 invoke-static {v0}, Lkotlin/ULongArray;->constructor-impl(I)[J move-result-object v0 .line 54 invoke-interface {p0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator; move-result-object p0 const/4 v1, 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-int/lit8 v4, v1, 0x1 .line 55 invoke-static {v0, v1, v2, v3}, Lkotlin/ULongArray;->set-k8EXiF4([JIJ)V move v1, v4 goto :goto_0 :cond_0 return-object v0 .end method .method public static final toUShortArray(Ljava/util/Collection;)[S .locals 4 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/util/Collection<", "Lkotlin/UShort;", ">;)[S" } .end annotation const-string v0, "" invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 65 invoke-interface {p0}, Ljava/util/Collection;->size()I move-result v0 invoke-static {v0}, Lkotlin/UShortArray;->constructor-impl(I)[S move-result-object v0 .line 67 invoke-interface {p0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator; move-result-object p0 const/4 v1, 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/UShort; invoke-virtual {v2}, Lkotlin/UShort;->unbox-impl()S move-result v2 add-int/lit8 v3, v1, 0x1 .line 68 invoke-static {v0, v1, v2}, Lkotlin/UShortArray;->set-01HTLdE([SIS)V move v1, v3 goto :goto_0 :cond_0 return-object v0 .end method