Rabbit-R1/switch port/smali/smali_classes3/kotlin/ranges/ULongProgression.smali

490 lines
11 KiB
Smali
Raw Normal View History

2024-05-21 16:08:36 -05:00
.class public Lkotlin/ranges/ULongProgression;
.super Ljava/lang/Object;
.source "ULongRange.kt"
# interfaces
.implements Ljava/lang/Iterable;
.implements Lkotlin/jvm/internal/markers/KMappedMarker;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lkotlin/ranges/ULongProgression$Companion;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Ljava/lang/Iterable<",
"Lkotlin/ULong;",
">;",
"Lkotlin/jvm/internal/markers/KMappedMarker;"
}
.end annotation
.annotation runtime Lkotlin/Metadata;
d1 = {
"\u0000:\n\u0002\u0018\u0002\n\u0002\u0010\u001c\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0010\t\n\u0002\u0008\t\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u0008\n\u0002\u0008\u0002\n\u0002\u0010(\n\u0000\n\u0002\u0010\u000e\n\u0002\u0008\u0002\u0008\u0017\u0018\u0000 \u001a2\u0008\u0012\u0004\u0012\u00020\u00020\u0001:\u0001\u001aB\u001f\u0008\u0000\u0012\u0006\u0010\u0003\u001a\u00020\u0002\u0012\u0006\u0010\u0004\u001a\u00020\u0002\u0012\u0006\u0010\u0005\u001a\u00020\u0006\u00a2\u0006\u0002\u0010\u0007J\u0013\u0010\u000f\u001a\u00020\u00102\u0008\u0010\u0011\u001a\u0004\u0018\u00010\u0012H\u0096\u0002J\u0008\u0010\u0013\u001a\u00020\u0014H\u0016J\u0008\u0010\u0015\u001a\u00020\u0010H\u0016J\u000f\u0010\u0016\u001a\u0008\u0012\u0004\u0012\u00020\u00020\u0017H\u0086\u0002J\u0008\u0010\u0018\u001a\u00020\u0019H\u0016R\u0016\u0010\u0008\u001a\u00020\u0002\u00f8\u0001\u0000\u00a2\u0006\n\n\u0002\u0010\u000b\u001a\u0004\u0008\t\u0010\nR\u0016\u0010\u000c\u001a\u00020\u0002\u00f8\u0001\u0000\u00a2\u0006\n\n\u0002\u0010\u000b\u001a\u0004\u0008\r\u0010\nR\u0011\u0010\u0005\u001a\u00020\u0006\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u000e\u0010\n\u0082\u0002\u0004\n\u0002\u0008!\u00a8\u0006\u001b"
}
d2 = {
"Lkotlin/ranges/ULongProgression;",
"",
"Lkotlin/ULong;",
"start",
"endInclusive",
"step",
"",
"(JJJLkotlin/jvm/internal/DefaultConstructorMarker;)V",
"first",
"getFirst-s-VKNKU",
"()J",
"J",
"last",
"getLast-s-VKNKU",
"getStep",
"equals",
"",
"other",
"",
"hashCode",
"",
"isEmpty",
"iterator",
"",
"toString",
"",
"Companion",
"kotlin-stdlib"
}
k = 0x1
mv = {
0x1,
0x9,
0x0
}
xi = 0x30
.end annotation
# static fields
.field public static final Companion:Lkotlin/ranges/ULongProgression$Companion;
# instance fields
.field private final first:J
.field private final last:J
.field private final step:J
# direct methods
.method static constructor <clinit>()V
.locals 2
new-instance v0, Lkotlin/ranges/ULongProgression$Companion;
const/4 v1, 0x0
invoke-direct {v0, v1}, Lkotlin/ranges/ULongProgression$Companion;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
sput-object v0, Lkotlin/ranges/ULongProgression;->Companion:Lkotlin/ranges/ULongProgression$Companion;
return-void
.end method
.method private constructor <init>(JJJ)V
.locals 2
.line 58
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const-wide/16 v0, 0x0
cmp-long v0, p5, v0
if-eqz v0, :cond_1
const-wide/high16 v0, -0x8000000000000000L
cmp-long v0, p5, v0
if-eqz v0, :cond_0
iput-wide p1, p0, Lkotlin/ranges/ULongProgression;->first:J
.line 79
invoke-static/range {p1 .. p6}, Lkotlin/internal/UProgressionUtilKt;->getProgressionLastElement-7ftBX0g(JJJ)J
move-result-wide p1
iput-wide p1, p0, Lkotlin/ranges/ULongProgression;->last:J
iput-wide p5, p0, Lkotlin/ranges/ULongProgression;->step:J
return-void
.line 68
:cond_0
new-instance p0, Ljava/lang/IllegalArgumentException;
const-string p1, "Step must be greater than Long.MIN_VALUE to avoid overflow on negation."
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p0
.line 67
:cond_1
new-instance p0, Ljava/lang/IllegalArgumentException;
const-string p1, "Step must be non-zero."
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p0
.end method
.method public synthetic constructor <init>(JJJLkotlin/jvm/internal/DefaultConstructorMarker;)V
.locals 0
invoke-direct/range {p0 .. p6}, Lkotlin/ranges/ULongProgression;-><init>(JJJ)V
return-void
.end method
# virtual methods
.method public equals(Ljava/lang/Object;)Z
.locals 4
.line 97
instance-of v0, p1, Lkotlin/ranges/ULongProgression;
if-eqz v0, :cond_2
invoke-virtual {p0}, Lkotlin/ranges/ULongProgression;->isEmpty()Z
move-result v0
if-eqz v0, :cond_0
move-object v0, p1
check-cast v0, Lkotlin/ranges/ULongProgression;
invoke-virtual {v0}, Lkotlin/ranges/ULongProgression;->isEmpty()Z
move-result v0
if-nez v0, :cond_1
:cond_0
iget-wide v0, p0, Lkotlin/ranges/ULongProgression;->first:J
.line 98
check-cast p1, Lkotlin/ranges/ULongProgression;
iget-wide v2, p1, Lkotlin/ranges/ULongProgression;->first:J
cmp-long v0, v0, v2
if-nez v0, :cond_2
iget-wide v0, p0, Lkotlin/ranges/ULongProgression;->last:J
iget-wide v2, p1, Lkotlin/ranges/ULongProgression;->last:J
cmp-long v0, v0, v2
if-nez v0, :cond_2
iget-wide v0, p0, Lkotlin/ranges/ULongProgression;->step:J
iget-wide p0, p1, Lkotlin/ranges/ULongProgression;->step:J
cmp-long p0, v0, p0
if-nez p0, :cond_2
:cond_1
const/4 p0, 0x1
goto :goto_0
:cond_2
const/4 p0, 0x0
:goto_0
return p0
.end method
.method public final getFirst-s-VKNKU()J
.locals 2
iget-wide v0, p0, Lkotlin/ranges/ULongProgression;->first:J
return-wide v0
.end method
.method public final getLast-s-VKNKU()J
.locals 2
iget-wide v0, p0, Lkotlin/ranges/ULongProgression;->last:J
return-wide v0
.end method
.method public final getStep()J
.locals 2
iget-wide v0, p0, Lkotlin/ranges/ULongProgression;->step:J
return-wide v0
.end method
.method public hashCode()I
.locals 7
.line 101
invoke-virtual {p0}, Lkotlin/ranges/ULongProgression;->isEmpty()Z
move-result v0
if-eqz v0, :cond_0
const/4 p0, -0x1
goto :goto_0
:cond_0
iget-wide v0, p0, Lkotlin/ranges/ULongProgression;->first:J
const/16 v2, 0x20
ushr-long v3, v0, v2
invoke-static {v3, v4}, Lkotlin/ULong;->constructor-impl(J)J
move-result-wide v3
xor-long/2addr v0, v3
invoke-static {v0, v1}, Lkotlin/ULong;->constructor-impl(J)J
move-result-wide v0
long-to-int v0, v0
mul-int/lit8 v0, v0, 0x1f
iget-wide v3, p0, Lkotlin/ranges/ULongProgression;->last:J
ushr-long v5, v3, v2
invoke-static {v5, v6}, Lkotlin/ULong;->constructor-impl(J)J
move-result-wide v5
xor-long/2addr v3, v5
invoke-static {v3, v4}, Lkotlin/ULong;->constructor-impl(J)J
move-result-wide v3
long-to-int v1, v3
add-int/2addr v0, v1
mul-int/lit8 v0, v0, 0x1f
iget-wide v3, p0, Lkotlin/ranges/ULongProgression;->step:J
ushr-long v1, v3, v2
xor-long/2addr v1, v3
long-to-int p0, v1
add-int/2addr p0, v0
:goto_0
return p0
.end method
.method public isEmpty()Z
.locals 7
iget-wide v0, p0, Lkotlin/ranges/ULongProgression;->step:J
const-wide/16 v2, 0x0
cmp-long v0, v0, v2
const/4 v1, 0x1
const/4 v2, 0x0
iget-wide v3, p0, Lkotlin/ranges/ULongProgression;->first:J
iget-wide v5, p0, Lkotlin/ranges/ULongProgression;->last:J
.line 94
invoke-static {v3, v4, v5, v6}, Ljava/lang/Long;->compareUnsigned(JJ)I
move-result p0
if-lez v0, :cond_0
if-lez p0, :cond_1
goto :goto_0
:cond_0
if-gez p0, :cond_1
goto :goto_0
:cond_1
move v1, v2
:goto_0
return v1
.end method
.method public final iterator()Ljava/util/Iterator;
.locals 9
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Iterator<",
"Lkotlin/ULong;",
">;"
}
.end annotation
.line 86
new-instance v8, Lkotlin/ranges/ULongProgressionIterator;
iget-wide v1, p0, Lkotlin/ranges/ULongProgression;->first:J
iget-wide v3, p0, Lkotlin/ranges/ULongProgression;->last:J
iget-wide v5, p0, Lkotlin/ranges/ULongProgression;->step:J
const/4 v7, 0x0
move-object v0, v8
invoke-direct/range {v0 .. v7}, Lkotlin/ranges/ULongProgressionIterator;-><init>(JJJLkotlin/jvm/internal/DefaultConstructorMarker;)V
check-cast v8, Ljava/util/Iterator;
return-object v8
.end method
.method public toString()Ljava/lang/String;
.locals 4
iget-wide v0, p0, Lkotlin/ranges/ULongProgression;->step:J
const-wide/16 v2, 0x0
cmp-long v0, v0, v2
const-string v1, " step "
if-lez v0, :cond_0
.line 103
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
iget-wide v2, p0, Lkotlin/ranges/ULongProgression;->first:J
invoke-static {v2, v3}, Lkotlin/ULong;->toString-impl(J)Ljava/lang/String;
move-result-object v2
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object v0
const-string v2, ".."
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget-wide v2, p0, Lkotlin/ranges/ULongProgression;->last:J
invoke-static {v2, v3}, Lkotlin/ULong;->toString-impl(J)Ljava/lang/String;
move-result-object v2
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget-wide v1, p0, Lkotlin/ranges/ULongProgression;->step:J
goto :goto_0
:cond_0
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
iget-wide v2, p0, Lkotlin/ranges/ULongProgression;->first:J
invoke-static {v2, v3}, Lkotlin/ULong;->toString-impl(J)Ljava/lang/String;
move-result-object v2
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object v0
const-string v2, " downTo "
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget-wide v2, p0, Lkotlin/ranges/ULongProgression;->last:J
invoke-static {v2, v3}, Lkotlin/ULong;->toString-impl(J)Ljava/lang/String;
move-result-object v2
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget-wide v1, p0, Lkotlin/ranges/ULongProgression;->step:J
neg-long v1, v1
:goto_0
invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
move-result-object p0
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
return-object p0
.end method