mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-26 09:02:34 -06:00
406 lines
9.4 KiB
Smali
406 lines
9.4 KiB
Smali
.class public Lkotlin/ranges/IntProgression;
|
|
.super Ljava/lang/Object;
|
|
.source "Progressions.kt"
|
|
|
|
# interfaces
|
|
.implements Ljava/lang/Iterable;
|
|
.implements Lkotlin/jvm/internal/markers/KMappedMarker;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lkotlin/ranges/IntProgression$Companion;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/lang/Object;",
|
|
"Ljava/lang/Iterable<",
|
|
"Ljava/lang/Integer;",
|
|
">;",
|
|
"Lkotlin/jvm/internal/markers/KMappedMarker;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation runtime Lkotlin/Metadata;
|
|
d1 = {
|
|
"\u0000,\n\u0002\u0018\u0002\n\u0002\u0010\u001c\n\u0002\u0010\u0008\n\u0002\u0008\u000b\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\u0008\u0002\u0008\u0016\u0018\u0000 \u00172\u0008\u0012\u0004\u0012\u00020\u00020\u0001:\u0001\u0017B\u001f\u0008\u0000\u0012\u0006\u0010\u0003\u001a\u00020\u0002\u0012\u0006\u0010\u0004\u001a\u00020\u0002\u0012\u0006\u0010\u0005\u001a\u00020\u0002\u00a2\u0006\u0002\u0010\u0006J\u0013\u0010\r\u001a\u00020\u000e2\u0008\u0010\u000f\u001a\u0004\u0018\u00010\u0010H\u0096\u0002J\u0008\u0010\u0011\u001a\u00020\u0002H\u0016J\u0008\u0010\u0012\u001a\u00020\u000eH\u0016J\t\u0010\u0013\u001a\u00020\u0014H\u0096\u0002J\u0008\u0010\u0015\u001a\u00020\u0016H\u0016R\u0011\u0010\u0007\u001a\u00020\u0002\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u0008\u0010\tR\u0011\u0010\n\u001a\u00020\u0002\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u000b\u0010\tR\u0011\u0010\u0005\u001a\u00020\u0002\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u000c\u0010\t\u00a8\u0006\u0018"
|
|
}
|
|
d2 = {
|
|
"Lkotlin/ranges/IntProgression;",
|
|
"",
|
|
"",
|
|
"start",
|
|
"endInclusive",
|
|
"step",
|
|
"(III)V",
|
|
"first",
|
|
"getFirst",
|
|
"()I",
|
|
"last",
|
|
"getLast",
|
|
"getStep",
|
|
"equals",
|
|
"",
|
|
"other",
|
|
"",
|
|
"hashCode",
|
|
"isEmpty",
|
|
"iterator",
|
|
"Lkotlin/collections/IntIterator;",
|
|
"toString",
|
|
"",
|
|
"Companion",
|
|
"kotlin-stdlib"
|
|
}
|
|
k = 0x1
|
|
mv = {
|
|
0x1,
|
|
0x9,
|
|
0x0
|
|
}
|
|
xi = 0x30
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final Companion:Lkotlin/ranges/IntProgression$Companion;
|
|
|
|
|
|
# instance fields
|
|
.field private final first:I
|
|
|
|
.field private final last:I
|
|
|
|
.field private final step:I
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 2
|
|
|
|
new-instance v0, Lkotlin/ranges/IntProgression$Companion;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {v0, v1}, Lkotlin/ranges/IntProgression$Companion;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
sput-object v0, Lkotlin/ranges/IntProgression;->Companion:Lkotlin/ranges/IntProgression$Companion;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(III)V
|
|
.locals 1
|
|
|
|
.line 77
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
if-eqz p3, :cond_1
|
|
|
|
const/high16 v0, -0x80000000
|
|
|
|
if-eq p3, v0, :cond_0
|
|
|
|
iput p1, p0, Lkotlin/ranges/IntProgression;->first:I
|
|
|
|
.line 97
|
|
invoke-static {p1, p2, p3}, Lkotlin/internal/ProgressionUtilKt;->getProgressionLastElement(III)I
|
|
|
|
move-result p1
|
|
|
|
iput p1, p0, Lkotlin/ranges/IntProgression;->last:I
|
|
|
|
iput p3, p0, Lkotlin/ranges/IntProgression;->step:I
|
|
|
|
return-void
|
|
|
|
.line 86
|
|
:cond_0
|
|
new-instance p0, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string p1, "Step must be greater than Int.MIN_VALUE to avoid overflow on negation."
|
|
|
|
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p0
|
|
|
|
.line 85
|
|
: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
|
|
|
|
|
|
# virtual methods
|
|
.method public equals(Ljava/lang/Object;)Z
|
|
.locals 2
|
|
|
|
.line 115
|
|
instance-of v0, p1, Lkotlin/ranges/IntProgression;
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
invoke-virtual {p0}, Lkotlin/ranges/IntProgression;->isEmpty()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
move-object v0, p1
|
|
|
|
check-cast v0, Lkotlin/ranges/IntProgression;
|
|
|
|
invoke-virtual {v0}, Lkotlin/ranges/IntProgression;->isEmpty()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
:cond_0
|
|
iget v0, p0, Lkotlin/ranges/IntProgression;->first:I
|
|
|
|
.line 116
|
|
check-cast p1, Lkotlin/ranges/IntProgression;
|
|
|
|
iget v1, p1, Lkotlin/ranges/IntProgression;->first:I
|
|
|
|
if-ne v0, v1, :cond_2
|
|
|
|
iget v0, p0, Lkotlin/ranges/IntProgression;->last:I
|
|
|
|
iget v1, p1, Lkotlin/ranges/IntProgression;->last:I
|
|
|
|
if-ne v0, v1, :cond_2
|
|
|
|
iget p0, p0, Lkotlin/ranges/IntProgression;->step:I
|
|
|
|
iget p1, p1, Lkotlin/ranges/IntProgression;->step:I
|
|
|
|
if-ne p0, p1, :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()I
|
|
.locals 0
|
|
|
|
iget p0, p0, Lkotlin/ranges/IntProgression;->first:I
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public final getLast()I
|
|
.locals 0
|
|
|
|
iget p0, p0, Lkotlin/ranges/IntProgression;->last:I
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public final getStep()I
|
|
.locals 0
|
|
|
|
iget p0, p0, Lkotlin/ranges/IntProgression;->step:I
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public hashCode()I
|
|
.locals 2
|
|
|
|
.line 119
|
|
invoke-virtual {p0}, Lkotlin/ranges/IntProgression;->isEmpty()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 p0, -0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iget v0, p0, Lkotlin/ranges/IntProgression;->first:I
|
|
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
iget v1, p0, Lkotlin/ranges/IntProgression;->last:I
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
iget p0, p0, Lkotlin/ranges/IntProgression;->step:I
|
|
|
|
add-int/2addr p0, v0
|
|
|
|
:goto_0
|
|
return p0
|
|
.end method
|
|
|
|
.method public isEmpty()Z
|
|
.locals 3
|
|
|
|
iget v0, p0, Lkotlin/ranges/IntProgression;->step:I
|
|
|
|
const/4 v1, 0x1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-lez v0, :cond_0
|
|
|
|
iget v0, p0, Lkotlin/ranges/IntProgression;->first:I
|
|
|
|
iget p0, p0, Lkotlin/ranges/IntProgression;->last:I
|
|
|
|
if-le v0, p0, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iget v0, p0, Lkotlin/ranges/IntProgression;->first:I
|
|
|
|
iget p0, p0, Lkotlin/ranges/IntProgression;->last:I
|
|
|
|
if-ge v0, p0, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
move v1, v2
|
|
|
|
:goto_0
|
|
return v1
|
|
.end method
|
|
|
|
.method public bridge synthetic iterator()Ljava/util/Iterator;
|
|
.locals 0
|
|
|
|
.line 77
|
|
invoke-virtual {p0}, Lkotlin/ranges/IntProgression;->iterator()Lkotlin/collections/IntIterator;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Ljava/util/Iterator;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public iterator()Lkotlin/collections/IntIterator;
|
|
.locals 3
|
|
|
|
.line 104
|
|
new-instance v0, Lkotlin/ranges/IntProgressionIterator;
|
|
|
|
iget v1, p0, Lkotlin/ranges/IntProgression;->first:I
|
|
|
|
iget v2, p0, Lkotlin/ranges/IntProgression;->last:I
|
|
|
|
iget p0, p0, Lkotlin/ranges/IntProgression;->step:I
|
|
|
|
invoke-direct {v0, v1, v2, p0}, Lkotlin/ranges/IntProgressionIterator;-><init>(III)V
|
|
|
|
check-cast v0, Lkotlin/collections/IntIterator;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
.locals 3
|
|
|
|
iget v0, p0, Lkotlin/ranges/IntProgression;->step:I
|
|
|
|
const-string v1, " step "
|
|
|
|
if-lez v0, :cond_0
|
|
|
|
.line 121
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
iget v2, p0, Lkotlin/ranges/IntProgression;->first:I
|
|
|
|
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(I)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 v2, p0, Lkotlin/ranges/IntProgression;->last:I
|
|
|
|
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(I)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 p0, p0, Lkotlin/ranges/IntProgression;->step:I
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
iget v2, p0, Lkotlin/ranges/IntProgression;->first:I
|
|
|
|
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(I)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 v2, p0, Lkotlin/ranges/IntProgression;->last:I
|
|
|
|
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(I)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 p0, p0, Lkotlin/ranges/IntProgression;->step:I
|
|
|
|
neg-int p0, p0
|
|
|
|
:goto_0
|
|
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(I)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
|