apkfuckery/com.discord/smali_classes2/p0/t.smali

304 lines
5.7 KiB
Smali
Raw Normal View History

2020-09-02 04:07:20 +00:00
.class public final Lp0/t;
2020-09-09 19:21:20 +00:00
.super Ljava/lang/Object;
.source "SegmentPool.kt"
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
# static fields
.field public static final a:Lp0/s;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
.field public static final b:I
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
.field public static final c:[Ljava/util/concurrent/atomic/AtomicReference;
.annotation system Ldalvik/annotation/Signature;
value = {
"[",
"Ljava/util/concurrent/atomic/AtomicReference<",
"Lp0/s;",
">;"
}
.end annotation
.end field
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
.field public static final d:Lp0/t;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
# direct methods
.method public static constructor <clinit>()V
.locals 8
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
new-instance v0, Lp0/t;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-direct {v0}, Lp0/t;-><init>()V
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
sput-object v0, Lp0/t;->d:Lp0/t;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
new-instance v0, Lp0/s;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
const/4 v7, 0x0
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
new-array v2, v7, [B
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
const/4 v3, 0x0
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
const/4 v4, 0x0
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
const/4 v5, 0x0
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
const/4 v6, 0x0
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
move-object v1, v0
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-direct/range {v1 .. v6}, Lp0/s;-><init>([BIIZZ)V
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
sput-object v0, Lp0/t;->a:Lp0/s;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-static {}, Ljava/lang/Runtime;->getRuntime()Ljava/lang/Runtime;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
move-result-object v0
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {v0}, Ljava/lang/Runtime;->availableProcessors()I
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
move-result v0
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
mul-int/lit8 v0, v0, 0x2
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
add-int/lit8 v0, v0, -0x1
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-static {v0}, Ljava/lang/Integer;->highestOneBit(I)I
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
move-result v0
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
sput v0, Lp0/t;->b:I
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
new-array v1, v0, [Ljava/util/concurrent/atomic/AtomicReference;
2020-09-02 04:07:20 +00:00
:goto_0
2020-09-09 19:21:20 +00:00
if-ge v7, v0, :cond_0
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
new-instance v2, Ljava/util/concurrent/atomic/AtomicReference;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-direct {v2}, Ljava/util/concurrent/atomic/AtomicReference;-><init>()V
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
aput-object v2, v1, v7
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
add-int/lit8 v7, v7, 0x1
2020-09-02 04:07:20 +00:00
goto :goto_0
:cond_0
2020-09-09 19:21:20 +00:00
sput-object v1, Lp0/t;->c:[Ljava/util/concurrent/atomic/AtomicReference;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
return-void
2020-09-02 04:07:20 +00:00
.end method
2020-09-09 19:21:20 +00:00
.method public constructor <init>()V
.locals 0
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
return-void
2020-09-02 04:07:20 +00:00
.end method
2020-09-09 19:21:20 +00:00
.method public static final a(Lp0/s;)V
2020-09-02 04:07:20 +00:00
.locals 8
2020-09-09 19:21:20 +00:00
const-string v0, "segment"
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-static {p0, v0}, Lk0/n/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
iget-object v0, p0, Lp0/s;->f:Lp0/s;
2020-09-02 04:07:20 +00:00
const/4 v1, 0x0
2020-09-09 19:21:20 +00:00
if-nez v0, :cond_0
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
iget-object v0, p0, Lp0/s;->g:Lp0/s;
2020-09-02 04:07:20 +00:00
if-nez v0, :cond_0
2020-09-09 19:21:20 +00:00
const/4 v0, 0x1
2020-09-02 04:07:20 +00:00
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
2020-09-09 19:21:20 +00:00
if-eqz v0, :cond_6
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
iget-boolean v0, p0, Lp0/s;->d:Z
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
if-eqz v0, :cond_1
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
return-void
2020-09-02 04:07:20 +00:00
:cond_1
2020-09-09 19:21:20 +00:00
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
move-result-object v0
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
const-string v2, "Thread.currentThread()"
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-static {v0, v2}, Lk0/n/c/i;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {v0}, Ljava/lang/Thread;->getId()J
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
move-result-wide v2
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
sget v0, Lp0/t;->b:I
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
int-to-long v4, v0
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
const-wide/16 v6, 0x1
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
sub-long/2addr v4, v6
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
and-long/2addr v2, v4
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
long-to-int v0, v2
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
sget-object v2, Lp0/t;->c:[Ljava/util/concurrent/atomic/AtomicReference;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
aget-object v0, v2, v0
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
move-result-object v2
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
check-cast v2, Lp0/s;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
sget-object v3, Lp0/t;->a:Lp0/s;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
if-ne v2, v3, :cond_2
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
return-void
2020-09-02 04:07:20 +00:00
:cond_2
2020-09-09 19:21:20 +00:00
if-eqz v2, :cond_3
2020-09-08 08:16:32 +00:00
2020-09-09 19:21:20 +00:00
iget v3, v2, Lp0/s;->c:I
2020-09-02 04:07:20 +00:00
goto :goto_1
2020-09-09 19:21:20 +00:00
:cond_3
const/4 v3, 0x0
2020-09-02 04:07:20 +00:00
:goto_1
2020-09-09 19:21:20 +00:00
const/high16 v4, 0x10000
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
if-lt v3, v4, :cond_4
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
return-void
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
:cond_4
iput-object v2, p0, Lp0/s;->f:Lp0/s;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
iput v1, p0, Lp0/s;->b:I
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
add-int/lit16 v3, v3, 0x2000
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
iput v3, p0, Lp0/s;->c:I
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {v0, v2, p0}, Ljava/util/concurrent/atomic/AtomicReference;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;)Z
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
move-result v0
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
if-nez v0, :cond_5
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
const/4 v0, 0x0
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
iput-object v0, p0, Lp0/s;->f:Lp0/s;
2020-09-08 08:16:32 +00:00
:cond_5
2020-09-09 19:21:20 +00:00
return-void
2020-09-08 08:16:32 +00:00
2020-09-09 19:21:20 +00:00
:cond_6
new-instance p0, Ljava/lang/IllegalArgumentException;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
const-string v0, "Failed requirement."
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
2020-09-02 04:07:20 +00:00
move-result-object v0
2020-09-09 19:21:20 +00:00
invoke-direct {p0, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
throw p0
2020-09-02 04:07:20 +00:00
.end method
2020-09-09 19:21:20 +00:00
.method public static final b()Lp0/s;
2020-09-02 04:07:20 +00:00
.locals 6
2020-09-09 19:21:20 +00:00
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
move-result-object v0
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
const-string v1, "Thread.currentThread()"
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-static {v0, v1}, Lk0/n/c/i;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {v0}, Ljava/lang/Thread;->getId()J
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
move-result-wide v0
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
sget v2, Lp0/t;->b:I
2020-09-02 04:07:20 +00:00
int-to-long v2, v2
2020-09-09 19:21:20 +00:00
const-wide/16 v4, 0x1
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
sub-long/2addr v2, v4
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
and-long/2addr v0, v2
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
long-to-int v1, v0
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
sget-object v0, Lp0/t;->c:[Ljava/util/concurrent/atomic/AtomicReference;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
aget-object v0, v0, v1
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
sget-object v1, Lp0/t;->a:Lp0/s;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {v0, v1}, Ljava/util/concurrent/atomic/AtomicReference;->getAndSet(Ljava/lang/Object;)Ljava/lang/Object;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
move-result-object v1
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
check-cast v1, Lp0/s;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
sget-object v2, Lp0/t;->a:Lp0/s;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
if-ne v1, v2, :cond_0
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
new-instance v0, Lp0/s;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-direct {v0}, Lp0/s;-><init>()V
2020-09-02 04:07:20 +00:00
return-object v0
2020-09-09 19:21:20 +00:00
:cond_0
const/4 v2, 0x0
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
if-nez v1, :cond_1
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {v0, v2}, Ljava/util/concurrent/atomic/AtomicReference;->set(Ljava/lang/Object;)V
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
new-instance v0, Lp0/s;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-direct {v0}, Lp0/s;-><init>()V
2020-09-02 04:07:20 +00:00
return-object v0
2020-09-09 19:21:20 +00:00
:cond_1
iget-object v3, v1, Lp0/s;->f:Lp0/s;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {v0, v3}, Ljava/util/concurrent/atomic/AtomicReference;->set(Ljava/lang/Object;)V
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
iput-object v2, v1, Lp0/s;->f:Lp0/s;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
const/4 v0, 0x0
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
iput v0, v1, Lp0/s;->c:I
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
return-object v1
2020-09-02 04:07:20 +00:00
.end method