apkfuckery/com.discord/smali_classes2/l0/a/r1/q.smali
2020-09-09 19:21:20 +00:00

426 lines
6.9 KiB
Smali

.class public Ll0/a/r1/q;
.super Ljava/lang/Object;
.source "ThreadSafeHeap.kt"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T::",
"Ll0/a/r1/r;",
":",
"Ljava/lang/Comparable<",
"-TT;>;>",
"Ljava/lang/Object;"
}
.end annotation
# instance fields
.field public volatile _size:I
.field public a:[Ll0/a/r1/r;
.annotation system Ldalvik/annotation/Signature;
value = {
"[TT;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>()V
.locals 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
iput v0, p0, Ll0/a/r1/q;->_size:I
return-void
.end method
# virtual methods
.method public final a(Ll0/a/r1/r;)V
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
invoke-interface {p1, p0}, Ll0/a/r1/r;->g(Ll0/a/r1/q;)V
iget-object v0, p0, Ll0/a/r1/q;->a:[Ll0/a/r1/r;
if-nez v0, :cond_0
const/4 v0, 0x4
new-array v0, v0, [Ll0/a/r1/r;
iput-object v0, p0, Ll0/a/r1/q;->a:[Ll0/a/r1/r;
goto :goto_0
:cond_0
iget v1, p0, Ll0/a/r1/q;->_size:I
array-length v2, v0
if-lt v1, v2, :cond_1
iget v1, p0, Ll0/a/r1/q;->_size:I
mul-int/lit8 v1, v1, 0x2
invoke-static {v0, v1}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
move-result-object v0
const-string v1, "java.util.Arrays.copyOf(this, newSize)"
invoke-static {v0, v1}, Lk0/n/c/i;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
check-cast v0, [Ll0/a/r1/r;
iput-object v0, p0, Ll0/a/r1/q;->a:[Ll0/a/r1/r;
:cond_1
:goto_0
iget v1, p0, Ll0/a/r1/q;->_size:I
add-int/lit8 v2, v1, 0x1
iput v2, p0, Ll0/a/r1/q;->_size:I
aput-object p1, v0, v1
invoke-interface {p1, v1}, Ll0/a/r1/r;->f(I)V
invoke-virtual {p0, v1}, Ll0/a/r1/q;->d(I)V
return-void
.end method
.method public final b()Ll0/a/r1/r;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()TT;"
}
.end annotation
iget-object v0, p0, Ll0/a/r1/q;->a:[Ll0/a/r1/r;
if-eqz v0, :cond_0
const/4 v1, 0x0
aget-object v0, v0, v1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return-object v0
.end method
.method public final c(I)Ll0/a/r1/r;
.locals 8
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)TT;"
}
.end annotation
iget-object v0, p0, Ll0/a/r1/q;->a:[Ll0/a/r1/r;
const/4 v1, 0x0
if-eqz v0, :cond_d
iget v2, p0, Ll0/a/r1/q;->_size:I
const/4 v3, -0x1
add-int/2addr v2, v3
iput v2, p0, Ll0/a/r1/q;->_size:I
iget v2, p0, Ll0/a/r1/q;->_size:I
if-ge p1, v2, :cond_b
iget v2, p0, Ll0/a/r1/q;->_size:I
invoke-virtual {p0, p1, v2}, Ll0/a/r1/q;->e(II)V
add-int/lit8 v2, p1, -0x1
div-int/lit8 v2, v2, 0x2
if-lez p1, :cond_2
aget-object v4, v0, p1
if-eqz v4, :cond_1
check-cast v4, Ljava/lang/Comparable;
aget-object v5, v0, v2
if-eqz v5, :cond_0
invoke-interface {v4, v5}, Ljava/lang/Comparable;->compareTo(Ljava/lang/Object;)I
move-result v4
if-gez v4, :cond_2
invoke-virtual {p0, p1, v2}, Ll0/a/r1/q;->e(II)V
invoke-virtual {p0, v2}, Ll0/a/r1/q;->d(I)V
goto :goto_2
:cond_0
invoke-static {}, Lk0/n/c/i;->throwNpe()V
throw v1
:cond_1
invoke-static {}, Lk0/n/c/i;->throwNpe()V
throw v1
:cond_2
:goto_0
mul-int/lit8 v2, p1, 0x2
add-int/lit8 v2, v2, 0x1
iget v4, p0, Ll0/a/r1/q;->_size:I
if-lt v2, v4, :cond_3
goto :goto_2
:cond_3
iget-object v4, p0, Ll0/a/r1/q;->a:[Ll0/a/r1/r;
if-eqz v4, :cond_a
add-int/lit8 v5, v2, 0x1
iget v6, p0, Ll0/a/r1/q;->_size:I
if-ge v5, v6, :cond_6
aget-object v6, v4, v5
if-eqz v6, :cond_5
check-cast v6, Ljava/lang/Comparable;
aget-object v7, v4, v2
if-eqz v7, :cond_4
invoke-interface {v6, v7}, Ljava/lang/Comparable;->compareTo(Ljava/lang/Object;)I
move-result v6
if-gez v6, :cond_6
move v2, v5
goto :goto_1
:cond_4
invoke-static {}, Lk0/n/c/i;->throwNpe()V
throw v1
:cond_5
invoke-static {}, Lk0/n/c/i;->throwNpe()V
throw v1
:cond_6
:goto_1
aget-object v5, v4, p1
if-eqz v5, :cond_9
check-cast v5, Ljava/lang/Comparable;
aget-object v4, v4, v2
if-eqz v4, :cond_8
invoke-interface {v5, v4}, Ljava/lang/Comparable;->compareTo(Ljava/lang/Object;)I
move-result v4
if-gtz v4, :cond_7
goto :goto_2
:cond_7
invoke-virtual {p0, p1, v2}, Ll0/a/r1/q;->e(II)V
move p1, v2
goto :goto_0
:cond_8
invoke-static {}, Lk0/n/c/i;->throwNpe()V
throw v1
:cond_9
invoke-static {}, Lk0/n/c/i;->throwNpe()V
throw v1
:cond_a
invoke-static {}, Lk0/n/c/i;->throwNpe()V
throw v1
:cond_b
:goto_2
iget p1, p0, Ll0/a/r1/q;->_size:I
aget-object p1, v0, p1
if-eqz p1, :cond_c
invoke-interface {p1, v1}, Ll0/a/r1/r;->g(Ll0/a/r1/q;)V
invoke-interface {p1, v3}, Ll0/a/r1/r;->f(I)V
iget v2, p0, Ll0/a/r1/q;->_size:I
aput-object v1, v0, v2
return-object p1
:cond_c
invoke-static {}, Lk0/n/c/i;->throwNpe()V
throw v1
:cond_d
invoke-static {}, Lk0/n/c/i;->throwNpe()V
throw v1
.end method
.method public final d(I)V
.locals 4
:goto_0
if-gtz p1, :cond_0
return-void
:cond_0
iget-object v0, p0, Ll0/a/r1/q;->a:[Ll0/a/r1/r;
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}, Ll0/a/r1/q;->e(II)V
move p1, v2
goto :goto_0
:cond_2
invoke-static {}, Lk0/n/c/i;->throwNpe()V
throw v1
:cond_3
invoke-static {}, Lk0/n/c/i;->throwNpe()V
throw v1
:cond_4
invoke-static {}, Lk0/n/c/i;->throwNpe()V
throw v1
.end method
.method public final e(II)V
.locals 4
iget-object v0, p0, Ll0/a/r1/q;->a:[Ll0/a/r1/r;
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
invoke-interface {v2, p1}, Ll0/a/r1/r;->f(I)V
invoke-interface {v3, p2}, Ll0/a/r1/r;->f(I)V
return-void
:cond_0
invoke-static {}, Lk0/n/c/i;->throwNpe()V
throw v1
:cond_1
invoke-static {}, Lk0/n/c/i;->throwNpe()V
throw v1
:cond_2
invoke-static {}, Lk0/n/c/i;->throwNpe()V
throw v1
.end method