apkfuckery/com.discord/smali_classes2/y/n$a.smali
2019-12-18 10:41:56 +01:00

1053 lines
19 KiB
Smali

.class public final Ly/n$a;
.super Ljava/lang/Object;
.source "Options.kt"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Ly/n;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "a"
.end annotation
# direct methods
.method public synthetic constructor <init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final a(Ly/e;)J
.locals 4
iget-wide v0, p1, Ly/e;->e:J
const/4 p1, 0x4
int-to-long v2, p1
div-long/2addr v0, v2
return-wide v0
.end method
.method public final varargs a([Lokio/ByteString;)Ly/n;
.locals 13
const/4 v0, 0x0
if-eqz p1, :cond_13
array-length v1, p1
const/4 v2, 0x0
if-nez v1, :cond_0
const/4 v1, 0x1
goto :goto_0
:cond_0
const/4 v1, 0x0
:goto_0
if-eqz v1, :cond_1
new-instance p1, Ly/n;
new-array v1, v2, [Lokio/ByteString;
const/4 v2, 0x2
new-array v2, v2, [I
fill-array-data v2, :array_0
invoke-direct {p1, v1, v2, v0}, Ly/n;-><init>([Lokio/ByteString;[ILkotlin/jvm/internal/DefaultConstructorMarker;)V
return-object p1
:cond_1
invoke-static {p1}, Le/k/a/b/e/p/g;->toMutableList([Ljava/lang/Object;)Ljava/util/List;
move-result-object v8
invoke-static {v8}, Le/k/a/b/e/p/g;->sort(Ljava/util/List;)V
new-instance v1, Ljava/util/ArrayList;
array-length v3, p1
invoke-direct {v1, v3}, Ljava/util/ArrayList;-><init>(I)V
array-length v3, p1
const/4 v4, 0x0
:goto_1
if-ge v4, v3, :cond_2
aget-object v5, p1, v4
const/4 v5, -0x1
invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v5
invoke-interface {v1, v5}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
add-int/lit8 v4, v4, 0x1
goto :goto_1
:cond_2
new-array v3, v2, [Ljava/lang/Integer;
invoke-interface {v1, v3}, Ljava/util/Collection;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
move-result-object v1
if-eqz v1, :cond_12
check-cast v1, [Ljava/lang/Integer;
array-length v3, v1
invoke-static {v1, v3}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
move-result-object v1
check-cast v1, [Ljava/lang/Integer;
invoke-static {v1}, Le/k/a/b/e/p/g;->mutableListOf([Ljava/lang/Object;)Ljava/util/List;
move-result-object v11
array-length v1, p1
const/4 v3, 0x0
const/4 v4, 0x0
:goto_2
if-ge v3, v1, :cond_8
aget-object v5, p1, v3
add-int/lit8 v6, v4, 0x1
invoke-interface {v8}, Ljava/util/List;->size()I
move-result v7
invoke-interface {v8}, Ljava/util/List;->size()I
move-result v9
const-string v10, ")."
if-ltz v7, :cond_7
if-gt v7, v9, :cond_6
add-int/lit8 v7, v7, -0x1
const/4 v9, 0x0
:goto_3
if-gt v9, v7, :cond_4
add-int v10, v9, v7
ushr-int/lit8 v10, v10, 0x1
invoke-interface {v8, v10}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v12
check-cast v12, Ljava/lang/Comparable;
invoke-static {v12, v5}, Le/k/a/b/e/p/g;->compareValues(Ljava/lang/Comparable;Ljava/lang/Comparable;)I
move-result v12
if-gez v12, :cond_3
add-int/lit8 v9, v10, 0x1
goto :goto_3
:cond_3
if-lez v12, :cond_5
add-int/lit8 v7, v10, -0x1
goto :goto_3
:cond_4
add-int/lit8 v9, v9, 0x1
neg-int v10, v9
:cond_5
invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v4
invoke-interface {v11, v10, v4}, Ljava/util/List;->set(ILjava/lang/Object;)Ljava/lang/Object;
add-int/lit8 v3, v3, 0x1
move v4, v6
goto :goto_2
:cond_6
new-instance p1, Ljava/lang/IndexOutOfBoundsException;
const-string v0, "toIndex ("
const-string v1, ") is greater than size ("
invoke-static {v0, v7, v1, v9, v10}, Le/e/b/a/a;->a(Ljava/lang/String;ILjava/lang/String;ILjava/lang/String;)Ljava/lang/String;
move-result-object v0
invoke-direct {p1, v0}, Ljava/lang/IndexOutOfBoundsException;-><init>(Ljava/lang/String;)V
throw p1
:cond_7
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string v0, "fromIndex ("
const-string v1, ") is greater than toIndex ("
invoke-static {v0, v2, v1, v7, v10}, Le/e/b/a/a;->a(Ljava/lang/String;ILjava/lang/String;ILjava/lang/String;)Ljava/lang/String;
move-result-object v0
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
:cond_8
invoke-interface {v8, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v1
check-cast v1, Lokio/ByteString;
invoke-virtual {v1}, Lokio/ByteString;->j()I
move-result v1
if-lez v1, :cond_9
const/4 v1, 0x1
goto :goto_4
:cond_9
const/4 v1, 0x0
:goto_4
if-eqz v1, :cond_11
const/4 v1, 0x0
:goto_5
invoke-interface {v8}, Ljava/util/List;->size()I
move-result v3
if-ge v1, v3, :cond_f
invoke-interface {v8, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v3
check-cast v3, Lokio/ByteString;
add-int/lit8 v4, v1, 0x1
move v5, v4
:goto_6
invoke-interface {v8}, Ljava/util/List;->size()I
move-result v6
if-ge v5, v6, :cond_e
invoke-interface {v8, v5}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v6
check-cast v6, Lokio/ByteString;
invoke-virtual {v6, v3}, Lokio/ByteString;->b(Lokio/ByteString;)Z
move-result v7
if-nez v7, :cond_a
goto :goto_8
:cond_a
invoke-virtual {v6}, Lokio/ByteString;->j()I
move-result v7
invoke-virtual {v3}, Lokio/ByteString;->j()I
move-result v9
if-eq v7, v9, :cond_b
const/4 v7, 0x1
goto :goto_7
:cond_b
const/4 v7, 0x0
:goto_7
if-eqz v7, :cond_d
invoke-interface {v11, v5}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v6
check-cast v6, Ljava/lang/Number;
invoke-virtual {v6}, Ljava/lang/Number;->intValue()I
move-result v6
invoke-interface {v11, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v7
check-cast v7, Ljava/lang/Number;
invoke-virtual {v7}, Ljava/lang/Number;->intValue()I
move-result v7
if-le v6, v7, :cond_c
invoke-interface {v8, v5}, Ljava/util/List;->remove(I)Ljava/lang/Object;
invoke-interface {v11, v5}, Ljava/util/List;->remove(I)Ljava/lang/Object;
goto :goto_6
:cond_c
add-int/lit8 v5, v5, 0x1
goto :goto_6
:cond_d
new-instance p1, Ljava/lang/StringBuilder;
invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V
const-string v0, "duplicate option: "
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
new-instance v0, Ljava/lang/IllegalArgumentException;
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
:cond_e
:goto_8
move v1, v4
goto :goto_5
:cond_f
new-instance v1, Ly/e;
invoke-direct {v1}, Ly/e;-><init>()V
const-wide/16 v4, 0x0
const/4 v7, 0x0
const/4 v9, 0x0
invoke-interface {v8}, Ljava/util/List;->size()I
move-result v10
move-object v3, p0
move-object v6, v1
invoke-virtual/range {v3 .. v11}, Ly/n$a;->a(JLy/e;ILjava/util/List;IILjava/util/List;)V
invoke-virtual {p0, v1}, Ly/n$a;->a(Ly/e;)J
move-result-wide v3
long-to-int v4, v3
new-array v3, v4, [I
:goto_9
invoke-virtual {v1}, Ly/e;->q()Z
move-result v4
if-nez v4, :cond_10
add-int/lit8 v4, v2, 0x1
invoke-virtual {v1}, Ly/e;->readInt()I
move-result v5
aput v5, v3, v2
move v2, v4
goto :goto_9
:cond_10
new-instance v1, Ly/n;
invoke-virtual {p1}, Ljava/lang/Object;->clone()Ljava/lang/Object;
move-result-object p1
check-cast p1, [Lokio/ByteString;
invoke-direct {v1, p1, v3, v0}, Ly/n;-><init>([Lokio/ByteString;[ILkotlin/jvm/internal/DefaultConstructorMarker;)V
return-object v1
:cond_11
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string v0, "the empty byte string is not a supported option"
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
:cond_12
new-instance p1, Lt/l;
const-string v0, "null cannot be cast to non-null type kotlin.Array<T>"
invoke-direct {p1, v0}, Lt/l;-><init>(Ljava/lang/String;)V
throw p1
:cond_13
const-string p1, "byteStrings"
invoke-static {p1}, Lt/u/b/j;->a(Ljava/lang/String;)V
throw v0
:array_0
.array-data 4
0x0
-0x1
.end array-data
.end method
.method public final a(JLy/e;ILjava/util/List;IILjava/util/List;)V
.locals 19
.annotation system Ldalvik/annotation/Signature;
value = {
"(J",
"Ly/e;",
"I",
"Ljava/util/List<",
"+",
"Lokio/ByteString;",
">;II",
"Ljava/util/List<",
"Ljava/lang/Integer;",
">;)V"
}
.end annotation
move-object/from16 v9, p0
move-object/from16 v10, p3
move/from16 v11, p4
move-object/from16 v12, p5
move/from16 v0, p6
move/from16 v13, p7
move-object/from16 v14, p8
if-ge v0, v13, :cond_0
const/4 v3, 0x1
goto :goto_0
:cond_0
const/4 v3, 0x0
:goto_0
const-string v4, "Failed requirement."
if-eqz v3, :cond_14
move v3, v0
:goto_1
if-ge v3, v13, :cond_3
invoke-interface {v12, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v5
check-cast v5, Lokio/ByteString;
invoke-virtual {v5}, Lokio/ByteString;->j()I
move-result v5
if-lt v5, v11, :cond_1
const/4 v5, 0x1
goto :goto_2
:cond_1
const/4 v5, 0x0
:goto_2
if-eqz v5, :cond_2
add-int/lit8 v3, v3, 0x1
goto :goto_1
:cond_2
new-instance v0, Ljava/lang/IllegalArgumentException;
invoke-virtual {v4}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
:cond_3
invoke-interface/range {p5 .. p6}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v3
check-cast v3, Lokio/ByteString;
add-int/lit8 v4, v13, -0x1
invoke-interface {v12, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v4
check-cast v4, Lokio/ByteString;
invoke-virtual {v3}, Lokio/ByteString;->j()I
move-result v5
const/4 v15, -0x1
if-ne v11, v5, :cond_4
invoke-interface {v14, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v3
check-cast v3, Ljava/lang/Number;
invoke-virtual {v3}, Ljava/lang/Number;->intValue()I
move-result v3
add-int/lit8 v0, v0, 0x1
invoke-interface {v12, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v5
check-cast v5, Lokio/ByteString;
move v6, v0
move v0, v3
move-object v3, v5
goto :goto_3
:cond_4
move v6, v0
const/4 v0, -0x1
:goto_3
invoke-virtual {v3, v11}, Lokio/ByteString;->a(I)B
move-result v5
invoke-virtual {v4, v11}, Lokio/ByteString;->a(I)B
move-result v7
const/4 v8, 0x2
if-eq v5, v7, :cond_e
add-int/lit8 v1, v6, 0x1
const/4 v2, 0x1
:goto_4
if-ge v1, v13, :cond_6
add-int/lit8 v3, v1, -0x1
invoke-interface {v12, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v3
check-cast v3, Lokio/ByteString;
invoke-virtual {v3, v11}, Lokio/ByteString;->a(I)B
move-result v3
invoke-interface {v12, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v4
check-cast v4, Lokio/ByteString;
invoke-virtual {v4, v11}, Lokio/ByteString;->a(I)B
move-result v4
if-eq v3, v4, :cond_5
add-int/lit8 v2, v2, 0x1
:cond_5
add-int/lit8 v1, v1, 0x1
goto :goto_4
:cond_6
invoke-virtual {v9, v10}, Ly/n$a;->a(Ly/e;)J
move-result-wide v3
add-long v3, v3, p1
int-to-long v7, v8
add-long/2addr v3, v7
mul-int/lit8 v1, v2, 0x2
int-to-long v7, v1
add-long v16, v3, v7
invoke-virtual {v10, v2}, Ly/e;->writeInt(I)Ly/e;
invoke-virtual {v10, v0}, Ly/e;->writeInt(I)Ly/e;
move v0, v6
:goto_5
if-ge v0, v13, :cond_9
invoke-interface {v12, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v1
check-cast v1, Lokio/ByteString;
invoke-virtual {v1, v11}, Lokio/ByteString;->a(I)B
move-result v1
if-eq v0, v6, :cond_7
add-int/lit8 v2, v0, -0x1
invoke-interface {v12, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v2
check-cast v2, Lokio/ByteString;
invoke-virtual {v2, v11}, Lokio/ByteString;->a(I)B
move-result v2
if-eq v1, v2, :cond_8
:cond_7
and-int/lit16 v1, v1, 0xff
invoke-virtual {v10, v1}, Ly/e;->writeInt(I)Ly/e;
:cond_8
add-int/lit8 v0, v0, 0x1
goto :goto_5
:cond_9
new-instance v8, Ly/e;
invoke-direct {v8}, Ly/e;-><init>()V
:goto_6
if-ge v6, v13, :cond_d
invoke-interface {v12, v6}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lokio/ByteString;
invoke-virtual {v0, v11}, Lokio/ByteString;->a(I)B
move-result v0
add-int/lit8 v1, v6, 0x1
move v2, v1
:goto_7
if-ge v2, v13, :cond_b
invoke-interface {v12, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v3
check-cast v3, Lokio/ByteString;
invoke-virtual {v3, v11}, Lokio/ByteString;->a(I)B
move-result v3
if-eq v0, v3, :cond_a
move v7, v2
goto :goto_8
:cond_a
add-int/lit8 v2, v2, 0x1
goto :goto_7
:cond_b
move v7, v13
:goto_8
if-ne v1, v7, :cond_c
add-int/lit8 v0, v11, 0x1
invoke-interface {v12, v6}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v1
check-cast v1, Lokio/ByteString;
invoke-virtual {v1}, Lokio/ByteString;->j()I
move-result v1
if-ne v0, v1, :cond_c
invoke-interface {v14, v6}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/Number;
invoke-virtual {v0}, Ljava/lang/Number;->intValue()I
move-result v0
invoke-virtual {v10, v0}, Ly/e;->writeInt(I)Ly/e;
move/from16 v18, v7
move-object v15, v8
goto :goto_9
:cond_c
invoke-virtual {v9, v8}, Ly/n$a;->a(Ly/e;)J
move-result-wide v0
add-long v0, v0, v16
long-to-int v1, v0
mul-int/lit8 v1, v1, -0x1
invoke-virtual {v10, v1}, Ly/e;->writeInt(I)Ly/e;
add-int/lit8 v4, v11, 0x1
move-object/from16 v0, p0
move-wide/from16 v1, v16
move-object v3, v8
move-object/from16 v5, p5
move/from16 v18, v7
move-object v15, v8
move-object/from16 v8, p8
invoke-virtual/range {v0 .. v8}, Ly/n$a;->a(JLy/e;ILjava/util/List;IILjava/util/List;)V
:goto_9
move-object v8, v15
move/from16 v6, v18
const/4 v15, -0x1
goto :goto_6
:cond_d
move-object v15, v8
invoke-virtual {v10, v15}, Ly/e;->a(Ly/w;)J
goto/16 :goto_d
:cond_e
invoke-virtual {v3}, Lokio/ByteString;->j()I
move-result v5
invoke-virtual {v4}, Lokio/ByteString;->j()I
move-result v7
invoke-static {v5, v7}, Ljava/lang/Math;->min(II)I
move-result v5
move v7, v11
const/4 v15, 0x0
:goto_a
if-ge v7, v5, :cond_f
invoke-virtual {v3, v7}, Lokio/ByteString;->a(I)B
move-result v1
invoke-virtual {v4, v7}, Lokio/ByteString;->a(I)B
move-result v2
if-ne v1, v2, :cond_f
add-int/lit8 v15, v15, 0x1
add-int/lit8 v7, v7, 0x1
goto :goto_a
:cond_f
invoke-virtual {v9, v10}, Ly/n$a;->a(Ly/e;)J
move-result-wide v1
add-long v1, v1, p1
int-to-long v4, v8
add-long/2addr v1, v4
int-to-long v4, v15
add-long/2addr v1, v4
const-wide/16 v4, 0x1
add-long/2addr v1, v4
neg-int v4, v15
invoke-virtual {v10, v4}, Ly/e;->writeInt(I)Ly/e;
invoke-virtual {v10, v0}, Ly/e;->writeInt(I)Ly/e;
add-int v4, v11, v15
:goto_b
if-ge v11, v4, :cond_10
invoke-virtual {v3, v11}, Lokio/ByteString;->a(I)B
move-result v0
and-int/lit16 v0, v0, 0xff
invoke-virtual {v10, v0}, Ly/e;->writeInt(I)Ly/e;
add-int/lit8 v11, v11, 0x1
goto :goto_b
:cond_10
add-int/lit8 v0, v6, 0x1
if-ne v0, v13, :cond_13
invoke-interface {v12, v6}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lokio/ByteString;
invoke-virtual {v0}, Lokio/ByteString;->j()I
move-result v0
if-ne v4, v0, :cond_11
const/16 v16, 0x1
goto :goto_c
:cond_11
const/16 v16, 0x0
:goto_c
if-eqz v16, :cond_12
invoke-interface {v14, v6}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/Number;
invoke-virtual {v0}, Ljava/lang/Number;->intValue()I
move-result v0
invoke-virtual {v10, v0}, Ly/e;->writeInt(I)Ly/e;
goto :goto_d
:cond_12
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "Check failed."
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
:cond_13
new-instance v11, Ly/e;
invoke-direct {v11}, Ly/e;-><init>()V
invoke-virtual {v9, v11}, Ly/n$a;->a(Ly/e;)J
move-result-wide v7
add-long/2addr v7, v1
long-to-int v0, v7
const/4 v3, -0x1
mul-int/lit8 v0, v0, -0x1
invoke-virtual {v10, v0}, Ly/e;->writeInt(I)Ly/e;
move-object/from16 v0, p0
move-object v3, v11
move-object/from16 v5, p5
move/from16 v7, p7
move-object/from16 v8, p8
invoke-virtual/range {v0 .. v8}, Ly/n$a;->a(JLy/e;ILjava/util/List;IILjava/util/List;)V
invoke-virtual {v10, v11}, Ly/e;->a(Ly/w;)J
:goto_d
return-void
:cond_14
new-instance v0, Ljava/lang/IllegalArgumentException;
invoke-virtual {v4}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
.end method