apkfuckery/com.discord/smali_classes2/kotlin/ranges/LongRange.smali
2020-09-22 07:09:10 +00:00

259 lines
4.3 KiB
Smali

.class public final Lkotlin/ranges/LongRange;
.super Lc0/q/c;
.source "Ranges.kt"
# interfaces
.implements Lc0/q/a;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Lc0/q/c;",
"Lc0/q/a<",
"Ljava/lang/Long;",
">;"
}
.end annotation
# static fields
.field public static final g:Lkotlin/ranges/LongRange;
.field public static final h:Lkotlin/ranges/LongRange;
# direct methods
.method public static constructor <clinit>()V
.locals 5
new-instance v0, Lkotlin/ranges/LongRange;
const-wide/16 v1, 0x1
const-wide/16 v3, 0x0
invoke-direct {v0, v1, v2, v3, v4}, Lkotlin/ranges/LongRange;-><init>(JJ)V
sput-object v0, Lkotlin/ranges/LongRange;->g:Lkotlin/ranges/LongRange;
return-void
.end method
.method public constructor <init>(JJ)V
.locals 7
const-wide/16 v5, 0x1
move-object v0, p0
move-wide v1, p1
move-wide v3, p3
invoke-direct/range {v0 .. v6}, Lc0/q/c;-><init>(JJJ)V
return-void
.end method
# virtual methods
.method public contains(Ljava/lang/Comparable;)Z
.locals 4
check-cast p1, Ljava/lang/Number;
invoke-virtual {p1}, Ljava/lang/Number;->longValue()J
move-result-wide v0
iget-wide v2, p0, Lc0/q/c;->d:J
cmp-long p1, v2, v0
if-gtz p1, :cond_0
iget-wide v2, p0, Lc0/q/c;->e:J
cmp-long p1, v0, v2
if-gtz p1, :cond_0
const/4 p1, 0x1
goto :goto_0
:cond_0
const/4 p1, 0x0
:goto_0
return p1
.end method
.method public equals(Ljava/lang/Object;)Z
.locals 5
instance-of v0, p1, Lkotlin/ranges/LongRange;
if-eqz v0, :cond_2
invoke-virtual {p0}, Lkotlin/ranges/LongRange;->isEmpty()Z
move-result v0
if-eqz v0, :cond_0
move-object v0, p1
check-cast v0, Lkotlin/ranges/LongRange;
invoke-virtual {v0}, Lkotlin/ranges/LongRange;->isEmpty()Z
move-result v0
if-nez v0, :cond_1
:cond_0
iget-wide v0, p0, Lc0/q/c;->d:J
check-cast p1, Lkotlin/ranges/LongRange;
iget-wide v2, p1, Lc0/q/c;->d:J
cmp-long v4, v0, v2
if-nez v4, :cond_2
iget-wide v0, p0, Lc0/q/c;->e:J
iget-wide v2, p1, Lc0/q/c;->e:J
cmp-long p1, v0, v2
if-nez p1, :cond_2
:cond_1
const/4 p1, 0x1
goto :goto_0
:cond_2
const/4 p1, 0x0
:goto_0
return p1
.end method
.method public getEndInclusive()Ljava/lang/Comparable;
.locals 2
iget-wide v0, p0, Lc0/q/c;->e:J
invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v0
return-object v0
.end method
.method public getStart()Ljava/lang/Comparable;
.locals 2
iget-wide v0, p0, Lc0/q/c;->d:J
invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v0
return-object v0
.end method
.method public hashCode()I
.locals 7
invoke-virtual {p0}, Lkotlin/ranges/LongRange;->isEmpty()Z
move-result v0
if-eqz v0, :cond_0
const/4 v0, -0x1
goto :goto_0
:cond_0
const/16 v0, 0x1f
int-to-long v0, v0
iget-wide v2, p0, Lc0/q/c;->d:J
const/16 v4, 0x20
ushr-long v5, v2, v4
xor-long/2addr v2, v5
mul-long v0, v0, v2
iget-wide v2, p0, Lc0/q/c;->e:J
ushr-long v4, v2, v4
xor-long/2addr v2, v4
add-long/2addr v0, v2
long-to-int v0, v0
:goto_0
return v0
.end method
.method public isEmpty()Z
.locals 5
iget-wide v0, p0, Lc0/q/c;->d:J
iget-wide v2, p0, Lc0/q/c;->e:J
cmp-long v4, v0, v2
if-lez v4, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return v0
.end method
.method public toString()Ljava/lang/String;
.locals 3
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
iget-wide v1, p0, Lc0/q/c;->d:J
invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
const-string v1, ".."
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-wide v1, p0, Lc0/q/c;->e:J
invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method