apkfuckery/com.discord/smali_classes2/g0/r.smali

653 lines
15 KiB
Smali
Raw Normal View History

2020-09-22 07:09:10 +00:00
.class public final Lg0/r;
2020-09-16 23:45:23 +00:00
.super Ljava/lang/Object;
2020-10-05 23:18:16 +00:00
.source "Dispatcher.kt"
2020-09-16 23:45:23 +00:00
# instance fields
2020-10-05 23:18:16 +00:00
.field public a:I
.field public b:I
.field public c:Ljava/util/concurrent/ExecutorService;
.field public final d:Ljava/util/ArrayDeque;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayDeque<",
"Lg0/h0/g/e$a;",
">;"
}
.end annotation
.end field
.field public final e:Ljava/util/ArrayDeque;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayDeque<",
"Lg0/h0/g/e$a;",
">;"
}
.end annotation
.end field
.field public final f:Ljava/util/ArrayDeque;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayDeque<",
"Lg0/h0/g/e;",
">;"
}
.end annotation
.end field
2020-09-16 23:45:23 +00:00
# direct methods
2020-10-05 23:18:16 +00:00
.method public constructor <init>()V
2020-09-16 23:45:23 +00:00
.locals 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2020-10-05 23:18:16 +00:00
const/16 v0, 0x40
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
iput v0, p0, Lg0/r;->a:I
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
const/4 v0, 0x5
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
iput v0, p0, Lg0/r;->b:I
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
new-instance v0, Ljava/util/ArrayDeque;
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
invoke-direct {v0}, Ljava/util/ArrayDeque;-><init>()V
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
iput-object v0, p0, Lg0/r;->d:Ljava/util/ArrayDeque;
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
new-instance v0, Ljava/util/ArrayDeque;
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
invoke-direct {v0}, Ljava/util/ArrayDeque;-><init>()V
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
iput-object v0, p0, Lg0/r;->e:Ljava/util/ArrayDeque;
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
new-instance v0, Ljava/util/ArrayDeque;
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
invoke-direct {v0}, Ljava/util/ArrayDeque;-><init>()V
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
iput-object v0, p0, Lg0/r;->f:Ljava/util/ArrayDeque;
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
return-void
2020-09-29 21:44:44 +00:00
.end method
2020-09-16 23:45:23 +00:00
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
# virtual methods
.method public final declared-synchronized a()V
.locals 2
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
monitor-enter p0
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
:try_start_0
iget-object v0, p0, Lg0/r;->d:Ljava/util/ArrayDeque;
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
invoke-virtual {v0}, Ljava/util/ArrayDeque;->iterator()Ljava/util/Iterator;
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
move-result-object v0
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
:goto_0
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
move-result v1
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
if-eqz v1, :cond_0
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
move-result-object v1
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
check-cast v1, Lg0/h0/g/e$a;
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
iget-object v1, v1, Lg0/h0/g/e$a;->f:Lg0/h0/g/e;
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
invoke-virtual {v1}, Lg0/h0/g/e;->cancel()V
2020-09-29 21:44:44 +00:00
goto :goto_0
2020-10-05 23:18:16 +00:00
:cond_0
iget-object v0, p0, Lg0/r;->e:Ljava/util/ArrayDeque;
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
invoke-virtual {v0}, Ljava/util/ArrayDeque;->iterator()Ljava/util/Iterator;
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
move-result-object v0
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
:goto_1
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
move-result v1
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
if-eqz v1, :cond_1
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
move-result-object v1
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
check-cast v1, Lg0/h0/g/e$a;
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
iget-object v1, v1, Lg0/h0/g/e$a;->f:Lg0/h0/g/e;
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
invoke-virtual {v1}, Lg0/h0/g/e;->cancel()V
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
goto :goto_1
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
:cond_1
iget-object v0, p0, Lg0/r;->f:Ljava/util/ArrayDeque;
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
invoke-virtual {v0}, Ljava/util/ArrayDeque;->iterator()Ljava/util/Iterator;
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
move-result-object v0
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
:goto_2
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
move-result v1
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
if-eqz v1, :cond_2
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
move-result-object v1
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
check-cast v1, Lg0/h0/g/e;
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
invoke-virtual {v1}, Lg0/h0/g/e;->cancel()V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
goto :goto_2
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
:cond_2
monitor-exit p0
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
return-void
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
:catchall_0
move-exception v0
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
monitor-exit p0
2020-09-16 23:45:23 +00:00
throw v0
.end method
2020-10-05 23:18:16 +00:00
.method public final b(Ljava/util/Deque;Ljava/lang/Object;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Ljava/util/Deque<",
"TT;>;TT;)V"
}
.end annotation
monitor-enter p0
2020-09-16 23:45:23 +00:00
:try_start_0
2020-10-05 23:18:16 +00:00
invoke-interface {p1, p2}, Ljava/util/Deque;->remove(Ljava/lang/Object;)Z
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
move-result p1
2020-09-16 23:45:23 +00:00
:try_end_0
2020-10-05 23:18:16 +00:00
.catchall {:try_start_0 .. :try_end_0} :catchall_0
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
if-eqz p1, :cond_0
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
monitor-exit p0
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
invoke-virtual {p0}, Lg0/r;->d()Z
2020-09-16 23:45:23 +00:00
return-void
:cond_0
:try_start_1
2020-10-05 23:18:16 +00:00
new-instance p1, Ljava/lang/AssertionError;
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
const-string p2, "Call wasn\'t in-flight!"
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
invoke-direct {p1, p2}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
throw p1
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
:catchall_0
move-exception p1
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
monitor-exit p0
2020-09-16 23:45:23 +00:00
2020-09-29 21:44:44 +00:00
throw p1
2020-09-16 23:45:23 +00:00
.end method
2020-10-05 23:18:16 +00:00
.method public final c(Lg0/h0/g/e$a;)V
.locals 1
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
const-string v0, "call"
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
invoke-static {p1, v0}, Lc0/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
iget-object v0, p1, Lg0/h0/g/e$a;->d:Ljava/util/concurrent/atomic/AtomicInteger;
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicInteger;->decrementAndGet()I
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
iget-object v0, p0, Lg0/r;->e:Ljava/util/ArrayDeque;
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
invoke-virtual {p0, v0, p1}, Lg0/r;->b(Ljava/util/Deque;Ljava/lang/Object;)V
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
return-void
.end method
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
.method public final d()Z
.locals 15
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
sget-boolean v0, Lg0/h0/c;->g:Z
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
if-eqz v0, :cond_1
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
invoke-static {p0}, Ljava/lang/Thread;->holdsLock(Ljava/lang/Object;)Z
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
move-result v0
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
if-nez v0, :cond_0
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
goto :goto_0
2020-09-16 23:45:23 +00:00
2020-09-29 21:44:44 +00:00
:cond_0
2020-10-05 23:18:16 +00:00
new-instance v0, Ljava/lang/AssertionError;
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
const-string v1, "Thread "
2020-09-16 23:45:23 +00:00
2020-10-27 04:20:34 +00:00
invoke-static {v1}, Lf/e/c/a/a;->D(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
move-result-object v1
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
move-result-object v2
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
const-string v3, "Thread.currentThread()"
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
invoke-static {v2, v3}, Lc0/n/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
invoke-virtual {v2}, Ljava/lang/Thread;->getName()Ljava/lang/String;
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
move-result-object v2
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
const-string v2, " MUST NOT hold lock on "
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
move-result-object v1
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
invoke-direct {v0, v1}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
throw v0
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
:cond_1
2020-09-16 23:45:23 +00:00
:goto_0
2020-10-05 23:18:16 +00:00
new-instance v0, Ljava/util/ArrayList;
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
monitor-enter p0
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
:try_start_0
iget-object v1, p0, Lg0/r;->d:Ljava/util/ArrayDeque;
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
invoke-virtual {v1}, Ljava/util/ArrayDeque;->iterator()Ljava/util/Iterator;
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
move-result-object v1
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
const-string v2, "readyAsyncCalls.iterator()"
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
invoke-static {v1, v2}, Lc0/n/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-09-16 23:45:23 +00:00
:goto_1
2020-10-05 23:18:16 +00:00
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
move-result v2
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
if-eqz v2, :cond_4
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
move-result-object v2
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
check-cast v2, Lg0/h0/g/e$a;
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
iget-object v3, p0, Lg0/r;->e:Ljava/util/ArrayDeque;
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
invoke-virtual {v3}, Ljava/util/ArrayDeque;->size()I
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
move-result v3
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
iget v4, p0, Lg0/r;->a:I
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
if-lt v3, v4, :cond_2
2020-09-16 23:45:23 +00:00
goto :goto_2
:cond_2
2020-10-05 23:18:16 +00:00
iget-object v3, v2, Lg0/h0/g/e$a;->d:Ljava/util/concurrent/atomic/AtomicInteger;
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
invoke-virtual {v3}, Ljava/util/concurrent/atomic/AtomicInteger;->get()I
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
move-result v3
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
iget v4, p0, Lg0/r;->b:I
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
if-lt v3, v4, :cond_3
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
goto :goto_1
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
:cond_3
invoke-interface {v1}, Ljava/util/Iterator;->remove()V
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
iget-object v3, v2, Lg0/h0/g/e$a;->d:Ljava/util/concurrent/atomic/AtomicInteger;
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
invoke-virtual {v3}, Ljava/util/concurrent/atomic/AtomicInteger;->incrementAndGet()I
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
const-string v3, "asyncCall"
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
invoke-static {v2, v3}, Lc0/n/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
invoke-interface {v0, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
iget-object v3, p0, Lg0/r;->e:Ljava/util/ArrayDeque;
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
invoke-virtual {v3, v2}, Ljava/util/ArrayDeque;->add(Ljava/lang/Object;)Z
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
goto :goto_1
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
:cond_4
2020-09-16 23:45:23 +00:00
:goto_2
2020-10-05 23:18:16 +00:00
monitor-enter p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_3
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
:try_start_1
iget-object v1, p0, Lg0/r;->e:Ljava/util/ArrayDeque;
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
invoke-virtual {v1}, Ljava/util/ArrayDeque;->size()I
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
move-result v1
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
iget-object v2, p0, Lg0/r;->f:Ljava/util/ArrayDeque;
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
invoke-virtual {v2}, Ljava/util/ArrayDeque;->size()I
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
move-result v2
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_2
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
add-int/2addr v1, v2
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
:try_start_2
monitor-exit p0
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_3
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
const/4 v2, 0x0
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
if-lez v1, :cond_5
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
const/4 v1, 0x1
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
goto :goto_3
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
:cond_5
const/4 v1, 0x0
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
:goto_3
monitor-exit p0
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
invoke-interface {v0}, Ljava/util/List;->size()I
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
move-result v3
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
const/4 v4, 0x0
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
:goto_4
if-ge v4, v3, :cond_b
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
invoke-interface {v0, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
move-result-object v5
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
check-cast v5, Lg0/h0/g/e$a;
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
monitor-enter p0
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
:try_start_3
iget-object v6, p0, Lg0/r;->c:Ljava/util/concurrent/ExecutorService;
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
if-nez v6, :cond_6
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
new-instance v6, Ljava/util/concurrent/ThreadPoolExecutor;
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
const/4 v8, 0x0
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
const v9, 0x7fffffff
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
const-wide/16 v10, 0x3c
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
sget-object v12, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
new-instance v13, Ljava/util/concurrent/SynchronousQueue;
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
invoke-direct {v13}, Ljava/util/concurrent/SynchronousQueue;-><init>()V
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
new-instance v7, Ljava/lang/StringBuilder;
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
sget-object v14, Lg0/h0/c;->h:Ljava/lang/String;
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
invoke-virtual {v7, v14}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
const-string v14, " Dispatcher"
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
invoke-virtual {v7, v14}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
move-result-object v7
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
const-string v14, "name"
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
invoke-static {v7, v14}, Lc0/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
new-instance v14, Lg0/h0/b;
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
invoke-direct {v14, v7, v2}, Lg0/h0/b;-><init>(Ljava/lang/String;Z)V
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
move-object v7, v6
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
invoke-direct/range {v7 .. v14}, Ljava/util/concurrent/ThreadPoolExecutor;-><init>(IIJLjava/util/concurrent/TimeUnit;Ljava/util/concurrent/BlockingQueue;Ljava/util/concurrent/ThreadFactory;)V
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
iput-object v6, p0, Lg0/r;->c:Ljava/util/concurrent/ExecutorService;
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
:cond_6
iget-object v6, p0, Lg0/r;->c:Ljava/util/concurrent/ExecutorService;
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_1
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
const/4 v7, 0x0
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
if-eqz v6, :cond_a
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
monitor-exit p0
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
if-eqz v5, :cond_9
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
const-string v7, "executorService"
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
invoke-static {v6, v7}, Lc0/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
iget-object v7, v5, Lg0/h0/g/e$a;->f:Lg0/h0/g/e;
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
iget-object v7, v7, Lg0/h0/g/e;->s:Lg0/z;
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
iget-object v7, v7, Lg0/z;->d:Lg0/r;
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
sget-boolean v8, Lg0/h0/c;->g:Z
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
if-eqz v8, :cond_8
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
invoke-static {v7}, Ljava/lang/Thread;->holdsLock(Ljava/lang/Object;)Z
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
move-result v8
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
if-nez v8, :cond_7
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
goto :goto_5
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
:cond_7
new-instance v0, Ljava/lang/AssertionError;
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
const-string v1, "Thread "
2020-09-29 21:44:44 +00:00
2020-10-27 04:20:34 +00:00
invoke-static {v1}, Lf/e/c/a/a;->D(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
move-result-object v1
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
move-result-object v2
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
const-string v3, "Thread.currentThread()"
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
invoke-static {v2, v3}, Lc0/n/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
invoke-virtual {v2}, Ljava/lang/Thread;->getName()Ljava/lang/String;
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
move-result-object v2
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
const-string v2, " MUST NOT hold lock on "
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
invoke-virtual {v1, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
2020-09-16 23:45:23 +00:00
move-result-object v1
2020-10-05 23:18:16 +00:00
invoke-direct {v0, v1}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
throw v0
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
:cond_8
:goto_5
:try_start_4
invoke-interface {v6, v5}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V
:try_end_4
.catch Ljava/util/concurrent/RejectedExecutionException; {:try_start_4 .. :try_end_4} :catch_0
.catchall {:try_start_4 .. :try_end_4} :catchall_0
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
goto :goto_6
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
:catchall_0
move-exception v0
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
goto :goto_7
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
:catch_0
move-exception v6
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
:try_start_5
new-instance v7, Ljava/io/InterruptedIOException;
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
const-string v8, "executor rejected"
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
invoke-direct {v7, v8}, Ljava/io/InterruptedIOException;-><init>(Ljava/lang/String;)V
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
invoke-virtual {v7, v6}, Ljava/io/InterruptedIOException;->initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable;
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
iget-object v6, v5, Lg0/h0/g/e$a;->f:Lg0/h0/g/e;
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
invoke-virtual {v6, v7}, Lg0/h0/g/e;->j(Ljava/io/IOException;)Ljava/io/IOException;
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
iget-object v6, v5, Lg0/h0/g/e$a;->e:Lg0/g;
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
iget-object v8, v5, Lg0/h0/g/e$a;->f:Lg0/h0/g/e;
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
invoke-interface {v6, v8, v7}, Lg0/g;->b(Lg0/f;Ljava/io/IOException;)V
:try_end_5
.catchall {:try_start_5 .. :try_end_5} :catchall_0
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
iget-object v6, v5, Lg0/h0/g/e$a;->f:Lg0/h0/g/e;
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
iget-object v6, v6, Lg0/h0/g/e;->s:Lg0/z;
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
iget-object v6, v6, Lg0/z;->d:Lg0/r;
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
invoke-virtual {v6, v5}, Lg0/r;->c(Lg0/h0/g/e$a;)V
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
:goto_6
add-int/lit8 v4, v4, 0x1
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
goto/16 :goto_4
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
:goto_7
iget-object v1, v5, Lg0/h0/g/e$a;->f:Lg0/h0/g/e;
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
iget-object v1, v1, Lg0/h0/g/e;->s:Lg0/z;
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
iget-object v1, v1, Lg0/z;->d:Lg0/r;
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
invoke-virtual {v1, v5}, Lg0/r;->c(Lg0/h0/g/e$a;)V
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
throw v0
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
:cond_9
throw v7
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
:cond_a
:try_start_6
invoke-static {}, Lc0/n/c/j;->throwNpe()V
:try_end_6
.catchall {:try_start_6 .. :try_end_6} :catchall_1
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
throw v7
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
:catchall_1
move-exception v0
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
monitor-exit p0
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
throw v0
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
:cond_b
return v1
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
:catchall_2
move-exception v0
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
:try_start_7
monitor-exit p0
2020-09-16 23:45:23 +00:00
2020-10-05 23:18:16 +00:00
throw v0
:try_end_7
.catchall {:try_start_7 .. :try_end_7} :catchall_3
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
:catchall_3
move-exception v0
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
monitor-exit p0
2020-09-29 21:44:44 +00:00
throw v0
.end method