apkfuckery/com.discord/smali_classes2/x/o.smali

784 lines
16 KiB
Smali
Raw Normal View History

2019-12-21 01:41:59 +00:00
.class public final Lx/o;
2019-07-24 11:27:29 +00:00
.super Ljava/lang/Object;
2019-11-28 00:30:53 +00:00
.source "Dispatcher.kt"
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
# instance fields
2019-12-06 03:29:40 +00:00
.field public a:I
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public b:I
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public c:Ljava/lang/Runnable;
.field public d:Ljava/util/concurrent/ExecutorService;
.field public final e:Ljava/util/ArrayDeque;
2019-11-28 00:30:53 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayDeque<",
2019-12-21 01:41:59 +00:00
"Lx/x$a;",
2019-11-28 00:30:53 +00:00
">;"
}
.end annotation
.end field
2019-12-06 03:29:40 +00:00
.field public final f:Ljava/util/ArrayDeque;
2019-11-28 00:30:53 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayDeque<",
2019-12-21 01:41:59 +00:00
"Lx/x$a;",
2019-11-28 00:30:53 +00:00
">;"
}
.end annotation
.end field
2019-12-06 03:29:40 +00:00
.field public final g:Ljava/util/ArrayDeque;
2019-11-28 00:30:53 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayDeque<",
2019-12-21 01:41:59 +00:00
"Lx/x;",
2019-11-28 00:30:53 +00:00
">;"
}
.end annotation
.end field
2019-07-24 11:27:29 +00:00
# direct methods
2019-11-28 00:30:53 +00:00
.method public constructor <init>()V
2019-07-24 11:27:29 +00:00
.locals 1
2019-11-28 00:30:53 +00:00
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/16 v0, 0x40
2019-12-21 01:41:59 +00:00
iput v0, p0, Lx/o;->a:I
2019-11-28 00:30:53 +00:00
const/4 v0, 0x5
2019-12-21 01:41:59 +00:00
iput v0, p0, Lx/o;->b:I
2019-11-28 00:30:53 +00:00
new-instance v0, Ljava/util/ArrayDeque;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-direct {v0}, Ljava/util/ArrayDeque;-><init>()V
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
iput-object v0, p0, Lx/o;->e:Ljava/util/ArrayDeque;
2019-11-28 00:30:53 +00:00
new-instance v0, Ljava/util/ArrayDeque;
invoke-direct {v0}, Ljava/util/ArrayDeque;-><init>()V
2019-12-21 01:41:59 +00:00
iput-object v0, p0, Lx/o;->f:Ljava/util/ArrayDeque;
2019-11-28 00:30:53 +00:00
new-instance v0, Ljava/util/ArrayDeque;
invoke-direct {v0}, Ljava/util/ArrayDeque;-><init>()V
2019-12-21 01:41:59 +00:00
iput-object v0, p0, Lx/o;->g:Ljava/util/ArrayDeque;
2019-07-24 11:27:29 +00:00
return-void
.end method
2019-12-06 03:29:40 +00:00
# virtual methods
.method public final declared-synchronized a()V
.locals 2
2019-11-28 00:30:53 +00:00
monitor-enter p0
:try_start_0
2019-12-21 01:41:59 +00:00
iget-object v0, p0, Lx/o;->e:Ljava/util/ArrayDeque;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v0}, Ljava/util/ArrayDeque;->iterator()Ljava/util/Iterator;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
:goto_0
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
move-result v1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
if-eqz v1, :cond_0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v1
2019-11-28 00:30:53 +00:00
2019-12-21 01:41:59 +00:00
check-cast v1, Lx/x$a;
2019-11-28 00:30:53 +00:00
2019-12-21 01:41:59 +00:00
iget-object v1, v1, Lx/x$a;->f:Lx/x;
2019-11-28 00:30:53 +00:00
2019-12-21 01:41:59 +00:00
invoke-virtual {v1}, Lx/x;->a()V
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
goto :goto_0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
:cond_0
2019-12-21 01:41:59 +00:00
iget-object v0, p0, Lx/o;->f:Ljava/util/ArrayDeque;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v0}, Ljava/util/ArrayDeque;->iterator()Ljava/util/Iterator;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
:goto_1
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
move-result v1
if-eqz v1, :cond_1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
2019-11-28 00:30:53 +00:00
2019-12-21 01:41:59 +00:00
check-cast v1, Lx/x$a;
2019-11-28 00:30:53 +00:00
2019-12-21 01:41:59 +00:00
iget-object v1, v1, Lx/x$a;->f:Lx/x;
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
invoke-virtual {v1}, Lx/x;->a()V
2019-12-06 03:29:40 +00:00
goto :goto_1
:cond_1
2019-12-21 01:41:59 +00:00
iget-object v0, p0, Lx/o;->g:Ljava/util/ArrayDeque;
2019-12-06 03:29:40 +00:00
invoke-virtual {v0}, Ljava/util/ArrayDeque;->iterator()Ljava/util/Iterator;
move-result-object v0
:goto_2
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_2
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
2019-12-21 01:41:59 +00:00
check-cast v1, Lx/x;
2019-11-28 00:30:53 +00:00
2019-12-21 01:41:59 +00:00
invoke-virtual {v1}, Lx/x;->a()V
2019-11-28 00:30:53 +00:00
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
2019-12-06 03:29:40 +00:00
goto :goto_2
:cond_2
2019-11-28 00:30:53 +00:00
monitor-exit p0
2019-12-06 03:29:40 +00:00
return-void
2019-11-28 00:30:53 +00:00
:catchall_0
move-exception v0
monitor-exit p0
throw v0
.end method
2019-12-06 03:29:40 +00:00
.method public final a(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
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
monitor-enter p0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
:try_start_0
invoke-interface {p1, p2}, Ljava/util/Deque;->remove(Ljava/lang/Object;)Z
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
move-result p1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
if-eqz p1, :cond_1
2019-11-28 00:30:53 +00:00
2019-12-21 01:41:59 +00:00
iget-object p1, p0, Lx/o;->c:Ljava/lang/Runnable;
2019-12-06 03:29:40 +00:00
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
monitor-exit p0
2019-11-28 00:30:53 +00:00
2019-12-21 01:41:59 +00:00
invoke-virtual {p0}, Lx/o;->c()Z
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
move-result p2
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
if-nez p2, :cond_0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
if-eqz p1, :cond_0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-interface {p1}, Ljava/lang/Runnable;->run()V
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
:cond_0
return-void
2019-11-28 00:30:53 +00:00
:cond_1
2019-12-06 03:29:40 +00:00
:try_start_1
new-instance p1, Ljava/lang/AssertionError;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
const-string p2, "Call wasn\'t in-flight!"
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-direct {p1, p2}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
throw p1
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
:catchall_0
move-exception p1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
monitor-exit p0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
throw p1
.end method
2019-11-28 00:30:53 +00:00
2019-12-21 01:41:59 +00:00
.method public final a(Lx/x$a;)V
2019-12-06 03:29:40 +00:00
.locals 5
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
const/4 v0, 0x0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
if-eqz p1, :cond_5
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
monitor-enter p0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
:try_start_0
2019-12-21 01:41:59 +00:00
iget-object v1, p0, Lx/o;->e:Ljava/util/ArrayDeque;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v1, p1}, Ljava/util/ArrayDeque;->add(Ljava/lang/Object;)Z
2019-11-28 00:30:53 +00:00
2019-12-21 01:41:59 +00:00
iget-object v1, p1, Lx/x$a;->f:Lx/x;
2019-11-28 00:30:53 +00:00
2019-12-21 01:41:59 +00:00
iget-boolean v1, v1, Lx/x;->h:Z
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
if-nez v1, :cond_4
2019-11-28 00:30:53 +00:00
2019-12-21 01:41:59 +00:00
invoke-virtual {p1}, Lx/x$a;->a()Ljava/lang/String;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v1
2019-11-28 00:30:53 +00:00
2019-12-21 01:41:59 +00:00
iget-object v2, p0, Lx/o;->f:Ljava/util/ArrayDeque;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v2}, Ljava/util/ArrayDeque;->iterator()Ljava/util/Iterator;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v2
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
:cond_0
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
move-result v3
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
if-eqz v3, :cond_1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v3
2019-11-28 00:30:53 +00:00
2019-12-21 01:41:59 +00:00
check-cast v3, Lx/x$a;
2019-11-28 00:30:53 +00:00
2019-12-21 01:41:59 +00:00
invoke-virtual {v3}, Lx/x$a;->a()Ljava/lang/String;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v4
2019-11-28 00:30:53 +00:00
2019-12-21 01:41:59 +00:00
invoke-static {v4, v1}, Lt/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
move-result v4
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
if-eqz v4, :cond_0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
goto :goto_0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
:cond_1
2019-12-21 01:41:59 +00:00
iget-object v2, p0, Lx/o;->e:Ljava/util/ArrayDeque;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v2}, Ljava/util/ArrayDeque;->iterator()Ljava/util/Iterator;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v2
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
:cond_2
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
move-result v3
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
if-eqz v3, :cond_3
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v3
2019-11-28 00:30:53 +00:00
2019-12-21 01:41:59 +00:00
check-cast v3, Lx/x$a;
2019-11-28 00:30:53 +00:00
2019-12-21 01:41:59 +00:00
invoke-virtual {v3}, Lx/x$a;->a()Ljava/lang/String;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v4
2019-12-21 01:41:59 +00:00
invoke-static {v4, v1}, Lt/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
2019-11-28 00:30:53 +00:00
move-result v4
2019-12-06 03:29:40 +00:00
if-eqz v4, :cond_2
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
goto :goto_0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
:cond_3
move-object v3, v0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
:goto_0
if-eqz v3, :cond_4
2019-11-28 00:30:53 +00:00
2019-12-21 01:41:59 +00:00
iget-object v0, v3, Lx/x$a;->d:Ljava/util/concurrent/atomic/AtomicInteger;
2019-11-28 00:30:53 +00:00
2019-12-21 01:41:59 +00:00
iput-object v0, p1, Lx/x$a;->d:Ljava/util/concurrent/atomic/AtomicInteger;
2019-12-06 03:29:40 +00:00
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
:cond_4
monitor-exit p0
2019-11-28 00:30:53 +00:00
2019-12-21 01:41:59 +00:00
invoke-virtual {p0}, Lx/o;->c()Z
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
return-void
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
:catchall_0
move-exception p1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
monitor-exit p0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
throw p1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
:cond_5
const-string p1, "call"
2019-11-28 00:30:53 +00:00
2019-12-21 01:41:59 +00:00
invoke-static {p1}, Lt/u/b/j;->a(Ljava/lang/String;)V
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
throw v0
.end method
2019-11-28 00:30:53 +00:00
2019-12-21 01:41:59 +00:00
.method public final declared-synchronized a(Lx/x;)V
2019-12-06 03:29:40 +00:00
.locals 1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
monitor-enter p0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
:try_start_0
const-string v0, "call"
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
if-eqz p1, :cond_0
2019-11-28 00:30:53 +00:00
2019-12-21 01:41:59 +00:00
iget-object v0, p0, Lx/o;->g:Ljava/util/ArrayDeque;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v0, p1}, Ljava/util/ArrayDeque;->add(Ljava/lang/Object;)Z
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
monitor-exit p0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
return-void
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
:cond_0
2019-11-28 00:30:53 +00:00
:try_start_1
2019-12-21 01:41:59 +00:00
invoke-static {v0}, Lt/u/b/j;->a(Ljava/lang/String;)V
2019-11-28 00:30:53 +00:00
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
2019-12-06 03:29:40 +00:00
const/4 p1, 0x0
throw p1
2019-11-28 00:30:53 +00:00
:catchall_0
2019-12-06 03:29:40 +00:00
move-exception p1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
monitor-exit p0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
throw p1
.end method
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
.method public final declared-synchronized b()Ljava/util/concurrent/ExecutorService;
.locals 9
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
monitor-enter p0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
:try_start_0
2019-12-21 01:41:59 +00:00
iget-object v0, p0, Lx/o;->d:Ljava/util/concurrent/ExecutorService;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
if-nez v0, :cond_0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
new-instance v0, Ljava/util/concurrent/ThreadPoolExecutor;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
const/4 v2, 0x0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
const v3, 0x7fffffff
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
const-wide/16 v4, 0x3c
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
sget-object v6, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
new-instance v7, Ljava/util/concurrent/SynchronousQueue;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-direct {v7}, Ljava/util/concurrent/SynchronousQueue;-><init>()V
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
const-string v1, "OkHttp Dispatcher"
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
const/4 v8, 0x0
2019-11-28 00:30:53 +00:00
2019-12-21 01:41:59 +00:00
invoke-static {v1, v8}, Lx/c0/a;->a(Ljava/lang/String;Z)Ljava/util/concurrent/ThreadFactory;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v8
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
move-object v1, v0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-direct/range {v1 .. v8}, Ljava/util/concurrent/ThreadPoolExecutor;-><init>(IIJLjava/util/concurrent/TimeUnit;Ljava/util/concurrent/BlockingQueue;Ljava/util/concurrent/ThreadFactory;)V
2019-11-28 00:30:53 +00:00
2019-12-21 01:41:59 +00:00
iput-object v0, p0, Lx/o;->d:Ljava/util/concurrent/ExecutorService;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
:cond_0
2019-12-21 01:41:59 +00:00
iget-object v0, p0, Lx/o;->d:Ljava/util/concurrent/ExecutorService;
2019-12-06 03:29:40 +00:00
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
if-eqz v0, :cond_1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
monitor-exit p0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
return-object v0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
:cond_1
:try_start_1
2019-12-21 01:41:59 +00:00
invoke-static {}, Lt/u/b/j;->throwNpe()V
2019-12-06 03:29:40 +00:00
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
const/4 v0, 0x0
2019-11-28 00:30:53 +00:00
throw v0
2019-12-06 03:29:40 +00:00
:catchall_0
2019-11-28 00:30:53 +00:00
move-exception v0
monitor-exit p0
throw v0
.end method
2019-12-21 01:41:59 +00:00
.method public final b(Lx/x$a;)V
2019-12-06 03:29:40 +00:00
.locals 1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
if-eqz p1, :cond_0
2019-11-28 00:30:53 +00:00
2019-12-21 01:41:59 +00:00
iget-object v0, p1, Lx/x$a;->d:Ljava/util/concurrent/atomic/AtomicInteger;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicInteger;->decrementAndGet()I
2019-11-28 00:30:53 +00:00
2019-12-21 01:41:59 +00:00
iget-object v0, p0, Lx/o;->f:Ljava/util/ArrayDeque;
2019-11-28 00:30:53 +00:00
2019-12-21 01:41:59 +00:00
invoke-virtual {p0, v0, p1}, Lx/o;->a(Ljava/util/Deque;Ljava/lang/Object;)V
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
return-void
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
:cond_0
const-string p1, "call"
2019-11-28 00:30:53 +00:00
2019-12-21 01:41:59 +00:00
invoke-static {p1}, Lt/u/b/j;->a(Ljava/lang/String;)V
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
const/4 p1, 0x0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
throw p1
2019-11-28 00:30:53 +00:00
.end method
2019-12-06 03:29:40 +00:00
.method public final c()Z
.locals 9
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-static {p0}, Ljava/lang/Thread;->holdsLock(Ljava/lang/Object;)Z
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
move-result v0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
const/4 v1, 0x1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
xor-int/2addr v0, v1
2019-11-28 00:30:53 +00:00
2019-12-21 01:41:59 +00:00
sget-boolean v2, Lt/p;->a:Z
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
if-eqz v2, :cond_1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
if-eqz v0, :cond_0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
goto :goto_0
2019-11-28 00:30:53 +00:00
:cond_0
2019-12-06 03:29:40 +00:00
new-instance v0, Ljava/lang/AssertionError;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
const-string v1, "Assertion failed"
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-direct {v0, v1}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
throw v0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
:cond_1
:goto_0
new-instance v0, Ljava/util/ArrayList;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
2019-11-28 00:30:53 +00:00
monitor-enter p0
:try_start_0
2019-12-21 01:41:59 +00:00
iget-object v2, p0, Lx/o;->e:Ljava/util/ArrayDeque;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v2}, Ljava/util/ArrayDeque;->iterator()Ljava/util/Iterator;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v2
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
const-string v3, "readyAsyncCalls.iterator()"
2019-11-28 00:30:53 +00:00
2019-12-21 01:41:59 +00:00
invoke-static {v2, v3}, Lt/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
:goto_1
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
move-result v3
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
if-eqz v3, :cond_4
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
2019-11-28 00:30:53 +00:00
move-result-object v3
2019-12-21 01:41:59 +00:00
check-cast v3, Lx/x$a;
2019-11-28 00:30:53 +00:00
2019-12-21 01:41:59 +00:00
iget-object v4, p0, Lx/o;->f:Ljava/util/ArrayDeque;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v4}, Ljava/util/ArrayDeque;->size()I
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
move-result v4
2019-11-28 00:30:53 +00:00
2019-12-21 01:41:59 +00:00
iget v5, p0, Lx/o;->a:I
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
if-lt v4, v5, :cond_2
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
goto :goto_2
2019-11-28 00:30:53 +00:00
:cond_2
2019-12-21 01:41:59 +00:00
iget-object v4, v3, Lx/x$a;->d:Ljava/util/concurrent/atomic/AtomicInteger;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v4}, Ljava/util/concurrent/atomic/AtomicInteger;->get()I
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
move-result v4
2019-11-28 00:30:53 +00:00
2019-12-21 01:41:59 +00:00
iget v5, p0, Lx/o;->b:I
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
if-lt v4, v5, :cond_3
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
goto :goto_1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
:cond_3
invoke-interface {v2}, Ljava/util/Iterator;->remove()V
2019-11-28 00:30:53 +00:00
2019-12-21 01:41:59 +00:00
iget-object v4, v3, Lx/x$a;->d:Ljava/util/concurrent/atomic/AtomicInteger;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v4}, Ljava/util/concurrent/atomic/AtomicInteger;->incrementAndGet()I
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
const-string v4, "asyncCall"
2019-11-28 00:30:53 +00:00
2019-12-21 01:41:59 +00:00
invoke-static {v3, v4}, Lt/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-interface {v0, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
2019-11-28 00:30:53 +00:00
2019-12-21 01:41:59 +00:00
iget-object v4, p0, Lx/o;->f:Ljava/util/ArrayDeque;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v4, v3}, Ljava/util/ArrayDeque;->add(Ljava/lang/Object;)Z
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
goto :goto_1
2019-11-28 00:30:53 +00:00
:cond_4
2019-12-06 03:29:40 +00:00
:goto_2
2019-12-21 01:41:59 +00:00
invoke-virtual {p0}, Lx/o;->d()I
2019-12-06 03:29:40 +00:00
move-result v2
2019-11-28 00:30:53 +00:00
:try_end_0
2019-12-06 03:29:40 +00:00
.catchall {:try_start_0 .. :try_end_0} :catchall_1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
const/4 v3, 0x0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
if-lez v2, :cond_5
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/4 v2, 0x1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
goto :goto_3
:cond_5
const/4 v2, 0x0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
:goto_3
2019-11-28 00:30:53 +00:00
monitor-exit p0
2019-12-06 03:29:40 +00:00
invoke-interface {v0}, Ljava/util/List;->size()I
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
move-result v4
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
:goto_4
if-ge v3, v4, :cond_9
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-interface {v0, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v5
2019-11-28 00:30:53 +00:00
2019-12-21 01:41:59 +00:00
check-cast v5, Lx/x$a;
2019-11-28 00:30:53 +00:00
2019-12-21 01:41:59 +00:00
invoke-virtual {p0}, Lx/o;->b()Ljava/util/concurrent/ExecutorService;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v6
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
if-eqz v6, :cond_8
2019-11-28 00:30:53 +00:00
2019-12-21 01:41:59 +00:00
iget-object v7, v5, Lx/x$a;->f:Lx/x;
2019-11-28 00:30:53 +00:00
2019-12-21 01:41:59 +00:00
iget-object v7, v7, Lx/x;->f:Lx/v;
2019-11-28 00:30:53 +00:00
2019-12-21 01:41:59 +00:00
iget-object v7, v7, Lx/v;->d:Lx/o;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-static {v7}, Ljava/lang/Thread;->holdsLock(Ljava/lang/Object;)Z
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
move-result v7
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
xor-int/2addr v7, v1
2019-11-28 00:30:53 +00:00
2019-12-21 01:41:59 +00:00
sget-boolean v8, Lt/p;->a:Z
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
if-eqz v8, :cond_7
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
if-eqz v7, :cond_6
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
goto :goto_5
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
:cond_6
new-instance v0, Ljava/lang/AssertionError;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
const-string v1, "Assertion failed"
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-direct {v0, v1}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
throw v0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
:cond_7
:goto_5
:try_start_1
invoke-interface {v6, v5}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V
:try_end_1
.catch Ljava/util/concurrent/RejectedExecutionException; {:try_start_1 .. :try_end_1} :catch_0
.catchall {:try_start_1 .. :try_end_1} :catchall_0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
goto :goto_6
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
:catchall_0
move-exception v0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
goto :goto_7
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
:catch_0
move-exception v6
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
:try_start_2
new-instance v7, Ljava/io/InterruptedIOException;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
const-string v8, "executor rejected"
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-direct {v7, v8}, Ljava/io/InterruptedIOException;-><init>(Ljava/lang/String;)V
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v7, v6}, Ljava/io/InterruptedIOException;->initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable;
2019-11-28 00:30:53 +00:00
2019-12-21 01:41:59 +00:00
iget-object v6, v5, Lx/x$a;->f:Lx/x;
2019-11-28 00:30:53 +00:00
2019-12-21 01:41:59 +00:00
invoke-static {v6}, Lx/x;->a(Lx/x;)Lx/c0/c/n;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v6
2019-11-28 00:30:53 +00:00
2019-12-21 01:41:59 +00:00
invoke-virtual {v6, v7}, Lx/c0/c/n;->a(Ljava/io/IOException;)Ljava/io/IOException;
2019-11-28 00:30:53 +00:00
2019-12-21 01:41:59 +00:00
iget-object v6, v5, Lx/x$a;->e:Lx/f;
2019-11-28 00:30:53 +00:00
2019-12-21 01:41:59 +00:00
iget-object v8, v5, Lx/x$a;->f:Lx/x;
2019-11-28 00:30:53 +00:00
2019-12-21 01:41:59 +00:00
invoke-interface {v6, v8, v7}, Lx/f;->a(Lx/e;Ljava/io/IOException;)V
2019-12-06 03:29:40 +00:00
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_0
2019-11-28 00:30:53 +00:00
2019-12-21 01:41:59 +00:00
iget-object v6, v5, Lx/x$a;->f:Lx/x;
2019-11-28 00:30:53 +00:00
2019-12-21 01:41:59 +00:00
iget-object v6, v6, Lx/x;->f:Lx/v;
2019-11-28 00:30:53 +00:00
2019-12-21 01:41:59 +00:00
iget-object v6, v6, Lx/v;->d:Lx/o;
2019-11-28 00:30:53 +00:00
2019-12-21 01:41:59 +00:00
invoke-virtual {v6, v5}, Lx/o;->b(Lx/x$a;)V
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
:goto_6
add-int/lit8 v3, v3, 0x1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
goto :goto_4
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
:goto_7
2019-12-21 01:41:59 +00:00
iget-object v1, v5, Lx/x$a;->f:Lx/x;
2019-11-28 00:30:53 +00:00
2019-12-21 01:41:59 +00:00
iget-object v1, v1, Lx/x;->f:Lx/v;
2019-11-28 00:30:53 +00:00
2019-12-21 01:41:59 +00:00
iget-object v1, v1, Lx/v;->d:Lx/o;
2019-11-28 00:30:53 +00:00
2019-12-21 01:41:59 +00:00
invoke-virtual {v1, v5}, Lx/o;->b(Lx/x$a;)V
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
throw v0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
:cond_8
const-string v0, "executorService"
2019-11-28 00:30:53 +00:00
2019-12-21 01:41:59 +00:00
invoke-static {v0}, Lt/u/b/j;->a(Ljava/lang/String;)V
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
const/4 v0, 0x0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
throw v0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
:cond_9
return v2
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
:catchall_1
move-exception v0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
monitor-exit p0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
throw v0
.end method
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
.method public final declared-synchronized d()I
.locals 2
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
monitor-enter p0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
:try_start_0
2019-12-21 01:41:59 +00:00
iget-object v0, p0, Lx/o;->f:Ljava/util/ArrayDeque;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v0}, Ljava/util/ArrayDeque;->size()I
move-result v0
2019-11-28 00:30:53 +00:00
2019-12-21 01:41:59 +00:00
iget-object v1, p0, Lx/o;->g:Ljava/util/ArrayDeque;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v1}, Ljava/util/ArrayDeque;->size()I
move-result v1
2019-11-28 00:30:53 +00:00
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
2019-12-06 03:29:40 +00:00
add-int/2addr v0, v1
2019-11-28 00:30:53 +00:00
monitor-exit p0
2019-12-06 03:29:40 +00:00
return v0
2019-11-28 00:30:53 +00:00
:catchall_0
move-exception v0
monitor-exit p0
throw v0
2019-07-24 11:27:29 +00:00
.end method