apkfuckery/com.discord/smali_classes2/u/a/a2/z.smali
2020-01-07 03:40:43 +01:00

671 lines
11 KiB
Smali

.class public final Lu/a/a2/z;
.super Ljava/lang/Object;
.source "ThreadSafeHeap.kt"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T::",
"Lu/a/a2/a0;",
":",
"Ljava/lang/Comparable<",
"-TT;>;>",
"Ljava/lang/Object;"
}
.end annotation
# instance fields
.field public a:[Lu/a/a2/a0;
.annotation system Ldalvik/annotation/Signature;
value = {
"[TT;"
}
.end annotation
.end field
.field public volatile size:I
# direct methods
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final declared-synchronized a()Lu/a/a2/a0;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()TT;"
}
.end annotation
monitor-enter p0
:try_start_0
iget-object v0, p0, Lu/a/a2/z;->a:[Lu/a/a2/a0;
if-eqz v0, :cond_0
const/4 v1, 0x0
aget-object v0, v0, v1
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
goto :goto_0
:catchall_0
move-exception v0
goto :goto_1
:cond_0
const/4 v0, 0x0
:goto_0
monitor-exit p0
return-object v0
:goto_1
monitor-exit p0
throw v0
.end method
.method public final a(I)Lu/a/a2/a0;
.locals 11
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)TT;"
}
.end annotation
iget v0, p0, Lu/a/a2/z;->size:I
const/4 v1, 0x0
const/4 v2, 0x1
if-lez v0, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
const-string v3, "Check failed."
if-eqz v0, :cond_11
iget-object v0, p0, Lu/a/a2/z;->a:[Lu/a/a2/a0;
const/4 v4, 0x0
if-eqz v0, :cond_10
iget v5, p0, Lu/a/a2/z;->size:I
const/4 v6, -0x1
add-int/2addr v5, v6
iput v5, p0, Lu/a/a2/z;->size:I
iget v5, p0, Lu/a/a2/z;->size:I
if-ge p1, v5, :cond_c
iget v5, p0, Lu/a/a2/z;->size:I
invoke-virtual {p0, p1, v5}, Lu/a/a2/z;->a(II)V
add-int/lit8 v5, p1, -0x1
div-int/lit8 v5, v5, 0x2
if-lez p1, :cond_3
aget-object v7, v0, p1
if-eqz v7, :cond_2
check-cast v7, Ljava/lang/Comparable;
aget-object v8, v0, v5
if-eqz v8, :cond_1
invoke-interface {v7, v8}, Ljava/lang/Comparable;->compareTo(Ljava/lang/Object;)I
move-result v7
if-gez v7, :cond_3
invoke-virtual {p0, p1, v5}, Lu/a/a2/z;->a(II)V
invoke-virtual {p0, v5}, Lu/a/a2/z;->b(I)V
goto :goto_3
:cond_1
invoke-static {}, Lt/u/b/j;->throwNpe()V
throw v4
:cond_2
invoke-static {}, Lt/u/b/j;->throwNpe()V
throw v4
:cond_3
:goto_1
mul-int/lit8 v5, p1, 0x2
add-int/2addr v5, v2
iget v7, p0, Lu/a/a2/z;->size:I
if-lt v5, v7, :cond_4
goto :goto_3
:cond_4
iget-object v7, p0, Lu/a/a2/z;->a:[Lu/a/a2/a0;
if-eqz v7, :cond_b
add-int/lit8 v8, v5, 0x1
iget v9, p0, Lu/a/a2/z;->size:I
if-ge v8, v9, :cond_7
aget-object v9, v7, v8
if-eqz v9, :cond_6
check-cast v9, Ljava/lang/Comparable;
aget-object v10, v7, v5
if-eqz v10, :cond_5
invoke-interface {v9, v10}, Ljava/lang/Comparable;->compareTo(Ljava/lang/Object;)I
move-result v9
if-gez v9, :cond_7
move v5, v8
goto :goto_2
:cond_5
invoke-static {}, Lt/u/b/j;->throwNpe()V
throw v4
:cond_6
invoke-static {}, Lt/u/b/j;->throwNpe()V
throw v4
:cond_7
:goto_2
aget-object v8, v7, p1
if-eqz v8, :cond_a
check-cast v8, Ljava/lang/Comparable;
aget-object v7, v7, v5
if-eqz v7, :cond_9
invoke-interface {v8, v7}, Ljava/lang/Comparable;->compareTo(Ljava/lang/Object;)I
move-result v7
if-gtz v7, :cond_8
goto :goto_3
:cond_8
invoke-virtual {p0, p1, v5}, Lu/a/a2/z;->a(II)V
move p1, v5
goto :goto_1
:cond_9
invoke-static {}, Lt/u/b/j;->throwNpe()V
throw v4
:cond_a
invoke-static {}, Lt/u/b/j;->throwNpe()V
throw v4
:cond_b
invoke-static {}, Lt/u/b/j;->throwNpe()V
throw v4
:cond_c
:goto_3
iget p1, p0, Lu/a/a2/z;->size:I
aget-object p1, v0, p1
if-eqz p1, :cond_f
check-cast p1, Lu/a/s0$b;
invoke-virtual {p1}, Lu/a/s0$b;->a()Lu/a/a2/z;
move-result-object v5
if-ne v5, p0, :cond_d
const/4 v1, 0x1
:cond_d
if-eqz v1, :cond_e
invoke-virtual {p1, v4}, Lu/a/s0$b;->a(Lu/a/a2/z;)V
iput v6, p1, Lu/a/s0$b;->e:I
iget v1, p0, Lu/a/a2/z;->size:I
aput-object v4, v0, v1
return-object p1
:cond_e
new-instance p1, Ljava/lang/IllegalStateException;
invoke-virtual {v3}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
:cond_f
invoke-static {}, Lt/u/b/j;->throwNpe()V
throw v4
:cond_10
invoke-static {}, Lt/u/b/j;->throwNpe()V
throw v4
:cond_11
new-instance p1, Ljava/lang/IllegalStateException;
invoke-virtual {v3}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public final a(II)V
.locals 4
iget-object v0, p0, Lu/a/a2/z;->a:[Lu/a/a2/a0;
const/4 v1, 0x0
if-eqz v0, :cond_2
aget-object v2, v0, p2
if-eqz v2, :cond_1
aget-object v3, v0, p1
if-eqz v3, :cond_0
aput-object v2, v0, p1
aput-object v3, v0, p2
check-cast v2, Lu/a/s0$b;
iput p1, v2, Lu/a/s0$b;->e:I
check-cast v3, Lu/a/s0$b;
iput p2, v3, Lu/a/s0$b;->e:I
return-void
:cond_0
invoke-static {}, Lt/u/b/j;->throwNpe()V
throw v1
:cond_1
invoke-static {}, Lt/u/b/j;->throwNpe()V
throw v1
:cond_2
invoke-static {}, Lt/u/b/j;->throwNpe()V
throw v1
.end method
.method public final a(Lu/a/a2/a0;)V
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
if-eqz p1, :cond_4
move-object v0, p1
check-cast v0, Lu/a/s0$b;
invoke-virtual {v0}, Lu/a/s0$b;->a()Lu/a/a2/z;
move-result-object v1
if-nez v1, :cond_0
const/4 v1, 0x1
goto :goto_0
:cond_0
const/4 v1, 0x0
:goto_0
if-eqz v1, :cond_3
invoke-virtual {v0, p0}, Lu/a/s0$b;->a(Lu/a/a2/z;)V
iget-object v1, p0, Lu/a/a2/z;->a:[Lu/a/a2/a0;
if-nez v1, :cond_1
const/4 v1, 0x4
new-array v1, v1, [Lu/a/a2/a0;
iput-object v1, p0, Lu/a/a2/z;->a:[Lu/a/a2/a0;
goto :goto_1
:cond_1
iget v2, p0, Lu/a/a2/z;->size:I
array-length v3, v1
if-lt v2, v3, :cond_2
iget v2, p0, Lu/a/a2/z;->size:I
mul-int/lit8 v2, v2, 0x2
invoke-static {v1, v2}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
move-result-object v1
const-string v2, "java.util.Arrays.copyOf(this, newSize)"
invoke-static {v1, v2}, Lt/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
check-cast v1, [Lu/a/a2/a0;
iput-object v1, p0, Lu/a/a2/z;->a:[Lu/a/a2/a0;
:cond_2
:goto_1
iget v2, p0, Lu/a/a2/z;->size:I
add-int/lit8 v3, v2, 0x1
iput v3, p0, Lu/a/a2/z;->size:I
aput-object p1, v1, v2
iput v2, v0, Lu/a/s0$b;->e:I
invoke-virtual {p0, v2}, Lu/a/a2/z;->b(I)V
return-void
:cond_3
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "Check failed."
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
:cond_4
const-string p1, "node"
invoke-static {p1}, Lt/u/b/j;->a(Ljava/lang/String;)V
const/4 p1, 0x0
throw p1
.end method
.method public final declared-synchronized b()Lu/a/a2/a0;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()TT;"
}
.end annotation
monitor-enter p0
:try_start_0
iget v0, p0, Lu/a/a2/z;->size:I
if-lez v0, :cond_0
const/4 v0, 0x0
invoke-virtual {p0, v0}, Lu/a/a2/z;->a(I)Lu/a/a2/a0;
move-result-object v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
monitor-exit p0
return-object v0
:catchall_0
move-exception v0
monitor-exit p0
throw v0
.end method
.method public final b(I)V
.locals 4
:goto_0
if-gtz p1, :cond_0
return-void
:cond_0
iget-object v0, p0, Lu/a/a2/z;->a:[Lu/a/a2/a0;
const/4 v1, 0x0
if-eqz v0, :cond_4
add-int/lit8 v2, p1, -0x1
div-int/lit8 v2, v2, 0x2
aget-object v3, v0, v2
if-eqz v3, :cond_3
check-cast v3, Ljava/lang/Comparable;
aget-object v0, v0, p1
if-eqz v0, :cond_2
invoke-interface {v3, v0}, Ljava/lang/Comparable;->compareTo(Ljava/lang/Object;)I
move-result v0
if-gtz v0, :cond_1
return-void
:cond_1
invoke-virtual {p0, p1, v2}, Lu/a/a2/z;->a(II)V
move p1, v2
goto :goto_0
:cond_2
invoke-static {}, Lt/u/b/j;->throwNpe()V
throw v1
:cond_3
invoke-static {}, Lt/u/b/j;->throwNpe()V
throw v1
:cond_4
invoke-static {}, Lt/u/b/j;->throwNpe()V
throw v1
.end method
.method public final declared-synchronized b(Lu/a/a2/a0;)Z
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)Z"
}
.end annotation
monitor-enter p0
:try_start_0
const-string v0, "node"
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-eqz p1, :cond_3
move-object v0, p1
check-cast v0, Lu/a/s0$b;
:try_start_1
invoke-virtual {v0}, Lu/a/s0$b;->a()Lu/a/a2/z;
move-result-object v0
const/4 v1, 0x1
const/4 v2, 0x0
if-nez v0, :cond_0
const/4 v1, 0x0
goto :goto_0
:cond_0
check-cast p1, Lu/a/s0$b;
iget p1, p1, Lu/a/s0$b;->e:I
if-ltz p1, :cond_1
const/4 v2, 0x1
:cond_1
if-eqz v2, :cond_2
invoke-virtual {p0, p1}, Lu/a/a2/z;->a(I)Lu/a/a2/a0;
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
:goto_0
monitor-exit p0
return v1
:cond_2
:try_start_2
const-string p1, "Check failed."
new-instance v0, Ljava/lang/IllegalStateException;
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {v0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
:cond_3
invoke-static {v0}, Lt/u/b/j;->a(Ljava/lang/String;)V
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_0
const/4 p1, 0x0
throw p1
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method