apkfuckery/com.discord/smali_classes2/z/a/r0.smali

542 lines
9 KiB
Smali
Raw Normal View History

2020-03-27 22:23:51 +00:00
.class public abstract Lz/a/r0;
.super Lz/a/x;
2019-12-06 03:29:40 +00:00
.source "EventLoop.common.kt"
# instance fields
.field public d:J
.field public e:Z
2020-03-27 22:23:51 +00:00
.field public f:Lz/a/a2/a;
2019-12-06 03:29:40 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
2020-03-27 22:23:51 +00:00
"Lz/a/a2/a<",
"Lz/a/m0<",
2019-12-06 03:29:40 +00:00
"*>;>;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>()V
.locals 0
2020-03-27 22:23:51 +00:00
invoke-direct {p0}, Lz/a/x;-><init>()V
2019-12-06 03:29:40 +00:00
return-void
.end method
2020-03-27 22:23:51 +00:00
.method public static synthetic a(Lz/a/r0;ZILjava/lang/Object;)V
2019-12-06 03:29:40 +00:00
.locals 0
if-nez p3, :cond_1
and-int/lit8 p2, p2, 0x1
if-eqz p2, :cond_0
const/4 p1, 0x0
:cond_0
2020-03-27 22:23:51 +00:00
invoke-virtual {p0, p1}, Lz/a/r0;->a(Z)V
2019-12-06 03:29:40 +00:00
return-void
:cond_1
new-instance p0, Ljava/lang/UnsupportedOperationException;
const-string p1, "Super calls with default arguments not supported in this target, function: decrementUseCount"
invoke-direct {p0, p1}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
throw p0
.end method
2020-03-27 22:23:51 +00:00
.method public static synthetic b(Lz/a/r0;ZILjava/lang/Object;)V
2019-12-06 03:29:40 +00:00
.locals 0
if-nez p3, :cond_1
and-int/lit8 p2, p2, 0x1
if-eqz p2, :cond_0
const/4 p1, 0x0
:cond_0
2020-03-27 22:23:51 +00:00
invoke-virtual {p0, p1}, Lz/a/r0;->c(Z)V
2019-12-06 03:29:40 +00:00
return-void
:cond_1
new-instance p0, Ljava/lang/UnsupportedOperationException;
const-string p1, "Super calls with default arguments not supported in this target, function: incrementUseCount"
invoke-direct {p0, p1}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
throw p0
.end method
# virtual methods
2020-03-27 22:23:51 +00:00
.method public final a(Lz/a/m0;)V
2020-03-14 02:12:46 +00:00
.locals 6
2019-12-06 03:29:40 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
2020-03-27 22:23:51 +00:00
"Lz/a/m0<",
2019-12-06 03:29:40 +00:00
"*>;)V"
}
.end annotation
2020-03-14 02:12:46 +00:00
if-eqz p1, :cond_2
2019-12-06 03:29:40 +00:00
2020-03-27 22:23:51 +00:00
iget-object v0, p0, Lz/a/r0;->f:Lz/a/a2/a;
2019-12-06 03:29:40 +00:00
if-eqz v0, :cond_0
goto :goto_0
:cond_0
2020-03-27 22:23:51 +00:00
new-instance v0, Lz/a/a2/a;
2019-12-06 03:29:40 +00:00
2020-03-27 22:23:51 +00:00
invoke-direct {v0}, Lz/a/a2/a;-><init>()V
2019-12-06 03:29:40 +00:00
2020-03-27 22:23:51 +00:00
iput-object v0, p0, Lz/a/r0;->f:Lz/a/a2/a;
2019-12-06 03:29:40 +00:00
:goto_0
2020-03-27 22:23:51 +00:00
iget-object v1, v0, Lz/a/a2/a;->a:[Ljava/lang/Object;
2020-03-14 02:12:46 +00:00
2020-03-27 22:23:51 +00:00
iget v2, v0, Lz/a/a2/a;->c:I
2020-03-14 02:12:46 +00:00
aput-object p1, v1, v2
add-int/lit8 v2, v2, 0x1
array-length p1, v1
add-int/lit8 p1, p1, -0x1
and-int/2addr p1, v2
2020-03-27 22:23:51 +00:00
iput p1, v0, Lz/a/a2/a;->c:I
2020-03-14 02:12:46 +00:00
2020-03-27 22:23:51 +00:00
iget p1, v0, Lz/a/a2/a;->c:I
2020-03-14 02:12:46 +00:00
2020-03-27 22:23:51 +00:00
iget v2, v0, Lz/a/a2/a;->b:I
2020-03-14 02:12:46 +00:00
if-ne p1, v2, :cond_1
array-length p1, v1
shl-int/lit8 v3, p1, 0x1
new-array v3, v3, [Ljava/lang/Object;
array-length v4, v1
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
sub-int/2addr v4, v2
const/4 v5, 0x0
invoke-static {v1, v2, v3, v5, v4}, Le/k/a/c/e/p/g;->a([Ljava/lang/Object;I[Ljava/lang/Object;II)V
2020-03-27 22:23:51 +00:00
iget-object v1, v0, Lz/a/a2/a;->a:[Ljava/lang/Object;
2020-03-14 02:12:46 +00:00
2020-03-27 22:23:51 +00:00
iget v2, v0, Lz/a/a2/a;->b:I
2020-03-14 02:12:46 +00:00
invoke-static {v1, v5, v3, v4, v2}, Le/k/a/c/e/p/g;->a([Ljava/lang/Object;I[Ljava/lang/Object;II)V
2020-03-27 22:23:51 +00:00
iput-object v3, v0, Lz/a/a2/a;->a:[Ljava/lang/Object;
2020-03-14 02:12:46 +00:00
2020-03-27 22:23:51 +00:00
iput v5, v0, Lz/a/a2/a;->b:I
2020-03-14 02:12:46 +00:00
2020-03-27 22:23:51 +00:00
iput p1, v0, Lz/a/a2/a;->c:I
2020-03-14 02:12:46 +00:00
:cond_1
2019-12-06 03:29:40 +00:00
return-void
2020-03-14 02:12:46 +00:00
:cond_2
const-string p1, "task"
2020-03-27 22:23:51 +00:00
invoke-static {p1}, Ly/u/b/j;->a(Ljava/lang/String;)V
2020-03-14 02:12:46 +00:00
const/4 p1, 0x0
throw p1
2019-12-06 03:29:40 +00:00
.end method
.method public final a(Z)V
.locals 6
2020-03-27 22:23:51 +00:00
iget-wide v0, p0, Lz/a/r0;->d:J
2019-12-06 03:29:40 +00:00
2020-03-27 22:23:51 +00:00
invoke-virtual {p0, p1}, Lz/a/r0;->b(Z)J
2019-12-06 03:29:40 +00:00
move-result-wide v2
sub-long/2addr v0, v2
2020-03-27 22:23:51 +00:00
iput-wide v0, p0, Lz/a/r0;->d:J
2019-12-06 03:29:40 +00:00
2020-03-27 22:23:51 +00:00
iget-wide v0, p0, Lz/a/r0;->d:J
2019-12-06 03:29:40 +00:00
const-wide/16 v2, 0x0
cmp-long p1, v0, v2
if-lez p1, :cond_0
return-void
:cond_0
const/4 p1, 0x1
cmp-long v4, v0, v2
if-nez v4, :cond_1
const/4 v0, 0x1
goto :goto_0
:cond_1
const/4 v0, 0x0
:goto_0
if-eqz v0, :cond_9
2020-03-27 22:23:51 +00:00
iget-boolean v0, p0, Lz/a/r0;->e:Z
2019-12-06 03:29:40 +00:00
if-eqz v0, :cond_8
move-object v0, p0
2020-03-27 22:23:51 +00:00
check-cast v0, Lz/a/s0;
2019-12-06 03:29:40 +00:00
2020-03-27 22:23:51 +00:00
sget-object v1, Lz/a/t1;->b:Lz/a/t1;
2019-12-06 03:29:40 +00:00
2020-03-27 22:23:51 +00:00
invoke-virtual {v1}, Lz/a/t1;->c()V
2019-12-06 03:29:40 +00:00
2020-03-27 22:23:51 +00:00
iput-boolean p1, v0, Lz/a/s0;->isCompleted:Z
2019-12-06 03:29:40 +00:00
2020-03-27 22:23:51 +00:00
iget-boolean v1, v0, Lz/a/s0;->isCompleted:Z
2019-12-06 03:29:40 +00:00
2020-03-27 22:23:51 +00:00
sget-boolean v4, Ly/p;->a:Z
2019-12-06 03:29:40 +00:00
if-eqz v4, :cond_3
if-eqz v1, :cond_2
goto :goto_1
:cond_2
new-instance p1, Ljava/lang/AssertionError;
const-string v0, "Assertion failed"
invoke-direct {p1, v0}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V
throw p1
:cond_3
:goto_1
2020-03-27 22:23:51 +00:00
iget-object v1, v0, Lz/a/s0;->_queue:Ljava/lang/Object;
2019-12-06 03:29:40 +00:00
if-nez v1, :cond_4
2020-03-27 22:23:51 +00:00
sget-object v1, Lz/a/s0;->g:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
2019-12-06 03:29:40 +00:00
const/4 v4, 0x0
2020-03-27 22:23:51 +00:00
sget-object v5, Lz/a/t0;->b:Lz/a/a2/v;
2019-12-06 03:29:40 +00:00
invoke-virtual {v1, v0, v4, v5}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_3
goto :goto_2
:cond_4
2020-03-27 22:23:51 +00:00
instance-of v4, v1, Lz/a/a2/p;
2019-12-06 03:29:40 +00:00
if-eqz v4, :cond_5
2020-03-27 22:23:51 +00:00
check-cast v1, Lz/a/a2/p;
2019-12-06 03:29:40 +00:00
2020-03-27 22:23:51 +00:00
invoke-virtual {v1}, Lz/a/a2/p;->a()Z
2019-12-06 03:29:40 +00:00
goto :goto_2
:cond_5
2020-03-27 22:23:51 +00:00
sget-object v4, Lz/a/t0;->b:Lz/a/a2/v;
2019-12-06 03:29:40 +00:00
if-ne v1, v4, :cond_6
goto :goto_2
:cond_6
2020-03-27 22:23:51 +00:00
new-instance v4, Lz/a/a2/p;
2019-12-06 03:29:40 +00:00
const/16 v5, 0x8
2020-03-27 22:23:51 +00:00
invoke-direct {v4, v5, p1}, Lz/a/a2/p;-><init>(IZ)V
2019-12-06 03:29:40 +00:00
move-object v5, v1
check-cast v5, Ljava/lang/Runnable;
2020-03-27 22:23:51 +00:00
invoke-virtual {v4, v5}, Lz/a/a2/p;->a(Ljava/lang/Object;)I
2019-12-06 03:29:40 +00:00
2020-03-27 22:23:51 +00:00
sget-object v5, Lz/a/s0;->g:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
2019-12-06 03:29:40 +00:00
invoke-virtual {v5, v0, v1, v4}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_3
:goto_2
2020-03-27 22:23:51 +00:00
invoke-virtual {v0}, Lz/a/s0;->g()J
2019-12-06 03:29:40 +00:00
move-result-wide v4
cmp-long p1, v4, v2
if-gtz p1, :cond_7
goto :goto_2
:cond_7
:goto_3
2020-03-27 22:23:51 +00:00
iget-object p1, v0, Lz/a/s0;->_delayed:Ljava/lang/Object;
2019-12-06 03:29:40 +00:00
2020-03-27 22:23:51 +00:00
check-cast p1, Lz/a/a2/z;
2019-12-06 03:29:40 +00:00
if-eqz p1, :cond_8
2020-03-27 22:23:51 +00:00
invoke-virtual {p1}, Lz/a/a2/z;->b()Lz/a/a2/a0;
2019-12-06 03:29:40 +00:00
move-result-object p1
2020-03-27 22:23:51 +00:00
check-cast p1, Lz/a/s0$b;
2019-12-06 03:29:40 +00:00
if-eqz p1, :cond_8
2020-03-27 22:23:51 +00:00
sget-object v1, Lz/a/f0;->j:Lz/a/f0;
2019-12-06 03:29:40 +00:00
2020-03-27 22:23:51 +00:00
invoke-virtual {v1, p1}, Lz/a/s0;->a(Lz/a/s0$b;)V
2019-12-06 03:29:40 +00:00
goto :goto_3
:cond_8
return-void
:cond_9
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "Extra decrementUseCount"
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
.end method
.method public final b(Z)J
.locals 2
if-eqz p1, :cond_0
const-wide v0, 0x100000000L
goto :goto_0
:cond_0
const-wide/16 v0, 0x1
:goto_0
return-wide v0
.end method
.method public final c(Z)V
.locals 4
2020-03-27 22:23:51 +00:00
iget-wide v0, p0, Lz/a/r0;->d:J
2019-12-06 03:29:40 +00:00
2020-03-27 22:23:51 +00:00
invoke-virtual {p0, p1}, Lz/a/r0;->b(Z)J
2019-12-06 03:29:40 +00:00
move-result-wide v2
add-long/2addr v2, v0
2020-03-27 22:23:51 +00:00
iput-wide v2, p0, Lz/a/r0;->d:J
2019-12-06 03:29:40 +00:00
if-nez p1, :cond_0
const/4 p1, 0x1
2020-03-27 22:23:51 +00:00
iput-boolean p1, p0, Lz/a/r0;->e:Z
2019-12-06 03:29:40 +00:00
:cond_0
return-void
.end method
.method public e()J
.locals 2
2020-03-27 22:23:51 +00:00
iget-object v0, p0, Lz/a/r0;->f:Lz/a/a2/a;
2019-12-06 03:29:40 +00:00
if-eqz v0, :cond_2
2020-03-27 22:23:51 +00:00
iget v1, v0, Lz/a/a2/a;->b:I
2019-12-06 03:29:40 +00:00
2020-03-27 22:23:51 +00:00
iget v0, v0, Lz/a/a2/a;->c:I
2019-12-06 03:29:40 +00:00
if-ne v1, v0, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
if-eqz v0, :cond_1
goto :goto_1
:cond_1
const-wide/16 v0, 0x0
goto :goto_2
:cond_2
:goto_1
const-wide v0, 0x7fffffffffffffffL
:goto_2
return-wide v0
.end method
.method public final f()Z
.locals 6
2020-03-27 22:23:51 +00:00
iget-wide v0, p0, Lz/a/r0;->d:J
2019-12-06 03:29:40 +00:00
const/4 v2, 0x1
2020-03-27 22:23:51 +00:00
invoke-virtual {p0, v2}, Lz/a/r0;->b(Z)J
2019-12-06 03:29:40 +00:00
move-result-wide v3
cmp-long v5, v0, v3
if-ltz v5, :cond_0
goto :goto_0
:cond_0
const/4 v2, 0x0
:goto_0
return v2
.end method
.method public g()J
.locals 2
2020-03-27 22:23:51 +00:00
invoke-virtual {p0}, Lz/a/r0;->h()Z
2019-12-06 03:29:40 +00:00
move-result v0
if-nez v0, :cond_0
const-wide v0, 0x7fffffffffffffffL
return-wide v0
:cond_0
2020-03-27 22:23:51 +00:00
invoke-virtual {p0}, Lz/a/r0;->e()J
2019-12-06 03:29:40 +00:00
move-result-wide v0
return-wide v0
.end method
.method public final h()Z
.locals 7
2020-03-27 22:23:51 +00:00
iget-object v0, p0, Lz/a/r0;->f:Lz/a/a2/a;
2019-12-06 03:29:40 +00:00
const/4 v1, 0x0
if-eqz v0, :cond_3
2020-03-27 22:23:51 +00:00
iget v2, v0, Lz/a/a2/a;->b:I
2019-12-06 03:29:40 +00:00
2020-03-27 22:23:51 +00:00
iget v3, v0, Lz/a/a2/a;->c:I
2019-12-06 03:29:40 +00:00
const/4 v4, 0x0
const/4 v5, 0x1
if-ne v2, v3, :cond_0
goto :goto_0
:cond_0
2020-03-27 22:23:51 +00:00
iget-object v3, v0, Lz/a/a2/a;->a:[Ljava/lang/Object;
2019-12-06 03:29:40 +00:00
aget-object v6, v3, v2
aput-object v4, v3, v2
add-int/2addr v2, v5
array-length v3, v3
add-int/lit8 v3, v3, -0x1
and-int/2addr v2, v3
2020-03-27 22:23:51 +00:00
iput v2, v0, Lz/a/a2/a;->b:I
2019-12-06 03:29:40 +00:00
if-eqz v6, :cond_2
move-object v4, v6
:goto_0
2020-03-27 22:23:51 +00:00
check-cast v4, Lz/a/m0;
2019-12-06 03:29:40 +00:00
if-eqz v4, :cond_1
2020-03-27 22:23:51 +00:00
invoke-virtual {v4}, Lz/a/m0;->run()V
2019-12-06 03:29:40 +00:00
return v5
:cond_1
return v1
:cond_2
2020-03-27 22:23:51 +00:00
new-instance v0, Ly/l;
2019-12-06 03:29:40 +00:00
const-string v1, "null cannot be cast to non-null type T"
2020-03-27 22:23:51 +00:00
invoke-direct {v0, v1}, Ly/l;-><init>(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
throw v0
:cond_3
return v1
.end method