apkfuckery/com.discord/smali/com/discord/stores/StoreGuildSubscriptions$Ran...

147 lines
3.5 KiB
Smali
Raw Normal View History

2019-07-24 11:27:29 +00:00
.class public final Lcom/discord/stores/StoreGuildSubscriptions$RangeComputer;
.super Ljava/lang/Object;
.source "StoreGuildSubscriptions.kt"
# annotations
2019-12-06 03:29:40 +00:00
.annotation build Landroidx/annotation/VisibleForTesting;
.end annotation
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/discord/stores/StoreGuildSubscriptions;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "RangeComputer"
.end annotation
# static fields
2019-12-06 03:29:40 +00:00
.field public static final DEFAULT_CHUNK_SIZE:I = 0x64
2019-07-24 11:27:29 +00:00
.field public static final INSTANCE:Lcom/discord/stores/StoreGuildSubscriptions$RangeComputer;
# direct methods
2019-12-06 03:29:40 +00:00
.method public static constructor <clinit>()V
2019-07-24 11:27:29 +00:00
.locals 1
new-instance v0, Lcom/discord/stores/StoreGuildSubscriptions$RangeComputer;
invoke-direct {v0}, Lcom/discord/stores/StoreGuildSubscriptions$RangeComputer;-><init>()V
sput-object v0, Lcom/discord/stores/StoreGuildSubscriptions$RangeComputer;->INSTANCE:Lcom/discord/stores/StoreGuildSubscriptions$RangeComputer;
return-void
.end method
2019-12-06 03:29:40 +00:00
.method public constructor <init>()V
2019-07-24 11:27:29 +00:00
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
2020-02-29 02:28:15 +00:00
.method public static synthetic computeRanges$default(Lcom/discord/stores/StoreGuildSubscriptions$RangeComputer;IIIILjava/lang/Object;)Ljava/util/List;
2019-07-24 11:27:29 +00:00
.locals 0
2020-02-29 02:28:15 +00:00
and-int/lit8 p4, p4, 0x4
2019-07-24 11:27:29 +00:00
2020-02-29 02:28:15 +00:00
if-eqz p4, :cond_0
2019-07-24 11:27:29 +00:00
2020-02-29 02:28:15 +00:00
const/16 p3, 0x64
2019-07-24 11:27:29 +00:00
:cond_0
2020-02-29 02:28:15 +00:00
invoke-virtual {p0, p1, p2, p3}, Lcom/discord/stores/StoreGuildSubscriptions$RangeComputer;->computeRanges(III)Ljava/util/List;
2019-07-24 11:27:29 +00:00
move-result-object p0
return-object p0
.end method
# virtual methods
2020-02-29 02:28:15 +00:00
.method public final computeRanges(III)Ljava/util/List;
.locals 3
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
2020-02-29 02:28:15 +00:00
"(III)",
2019-07-24 11:27:29 +00:00
"Ljava/util/List<",
"Lkotlin/ranges/IntRange;",
">;"
}
.end annotation
new-instance v0, Ljava/util/ArrayList;
const/4 v1, 0x3
invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(I)V
sget-object v1, Lcom/discord/stores/StoreGuildSubscriptions$RangeComputer$computeRanges$1;->INSTANCE:Lcom/discord/stores/StoreGuildSubscriptions$RangeComputer$computeRanges$1;
2020-02-29 02:28:15 +00:00
invoke-virtual {v1, p1, p3}, Lcom/discord/stores/StoreGuildSubscriptions$RangeComputer$computeRanges$1;->invoke(II)I
2019-07-24 11:27:29 +00:00
2020-02-29 02:28:15 +00:00
move-result p1
2019-10-09 23:16:36 +00:00
2020-02-29 02:28:15 +00:00
if-lez p1, :cond_0
2019-07-24 11:27:29 +00:00
2020-02-29 02:28:15 +00:00
const/4 v1, 0x0
2019-07-24 11:27:29 +00:00
2020-02-29 02:28:15 +00:00
invoke-static {v1, p3}, Lw/x/c;->until(II)Lkotlin/ranges/IntRange;
2020-02-20 19:33:18 +00:00
2020-02-29 02:28:15 +00:00
move-result-object v1
2020-02-20 19:33:18 +00:00
2020-02-29 02:28:15 +00:00
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
2019-07-24 11:27:29 +00:00
:cond_0
2020-02-29 02:28:15 +00:00
invoke-static {p1, p2}, Lw/x/c;->until(II)Lkotlin/ranges/IntRange;
2019-07-24 11:27:29 +00:00
move-result-object p1
2020-02-29 02:28:15 +00:00
invoke-static {p1, p3}, Lw/x/c;->step(Lkotlin/ranges/IntProgression;I)Lkotlin/ranges/IntProgression;
2019-07-24 11:27:29 +00:00
2019-10-09 23:16:36 +00:00
move-result-object p1
2019-07-24 11:27:29 +00:00
2019-10-09 23:16:36 +00:00
invoke-virtual {p1}, Lkotlin/ranges/IntProgression;->getFirst()I
2019-07-24 11:27:29 +00:00
2020-02-29 02:28:15 +00:00
move-result p2
2019-07-24 11:27:29 +00:00
2019-10-09 23:16:36 +00:00
invoke-virtual {p1}, Lkotlin/ranges/IntProgression;->getLast()I
2019-07-24 11:27:29 +00:00
2020-02-29 02:28:15 +00:00
move-result v1
2019-07-24 11:27:29 +00:00
2019-10-09 23:16:36 +00:00
invoke-virtual {p1}, Lkotlin/ranges/IntProgression;->getStep()I
2019-07-24 11:27:29 +00:00
2019-10-09 23:16:36 +00:00
move-result p1
2019-07-24 11:27:29 +00:00
2019-10-09 23:16:36 +00:00
if-ltz p1, :cond_1
2019-07-24 11:27:29 +00:00
2020-02-29 02:28:15 +00:00
if-gt p2, v1, :cond_2
2019-07-24 11:27:29 +00:00
goto :goto_0
2019-10-09 23:16:36 +00:00
:cond_1
2020-02-29 02:28:15 +00:00
if-lt p2, v1, :cond_2
2019-07-24 11:27:29 +00:00
:goto_0
2020-02-29 02:28:15 +00:00
add-int v2, p2, p3
2019-07-24 11:27:29 +00:00
2020-02-29 02:28:15 +00:00
invoke-static {p2, v2}, Lw/x/c;->until(II)Lkotlin/ranges/IntRange;
2019-07-24 11:27:29 +00:00
2020-02-29 02:28:15 +00:00
move-result-object v2
2019-07-24 11:27:29 +00:00
2020-02-29 02:28:15 +00:00
invoke-virtual {v0, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
2019-07-24 11:27:29 +00:00
2020-02-29 02:28:15 +00:00
if-eq p2, v1, :cond_2
2019-07-24 11:27:29 +00:00
2020-02-29 02:28:15 +00:00
add-int/2addr p2, p1
2019-07-24 11:27:29 +00:00
2019-10-09 23:16:36 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
2019-10-09 23:16:36 +00:00
:cond_2
2019-07-24 11:27:29 +00:00
return-object v0
.end method