2020-07-08 16:44:49 +00:00
|
|
|
.class public final Ln0/q;
|
|
|
|
.super Ljava/lang/Object;
|
2020-07-23 01:06:17 +00:00
|
|
|
.source "Dispatcher.kt"
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2020-07-23 01:06:17 +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<",
|
|
|
|
"Ln0/z$a;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
|
|
|
.field public final e:Ljava/util/ArrayDeque;
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Ljava/util/ArrayDeque<",
|
|
|
|
"Ln0/z$a;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
|
|
|
.field public final f:Ljava/util/ArrayDeque;
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Ljava/util/ArrayDeque<",
|
|
|
|
"Ln0/z;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2020-07-23 01:06:17 +00:00
|
|
|
.method public constructor <init>()V
|
|
|
|
.locals 1
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
const/16 v0, 0x40
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
iput v0, p0, Ln0/q;->a:I
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
const/4 v0, 0x5
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
iput v0, p0, Ln0/q;->b:I
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
new-instance v0, Ljava/util/ArrayDeque;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-direct {v0}, Ljava/util/ArrayDeque;-><init>()V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
iput-object v0, p0, Ln0/q;->d:Ljava/util/ArrayDeque;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
new-instance v0, Ljava/util/ArrayDeque;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-direct {v0}, Ljava/util/ArrayDeque;-><init>()V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
iput-object v0, p0, Ln0/q;->e:Ljava/util/ArrayDeque;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
new-instance v0, Ljava/util/ArrayDeque;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-direct {v0}, Ljava/util/ArrayDeque;-><init>()V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
iput-object v0, p0, Ln0/q;->f:Ljava/util/ArrayDeque;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
return-void
|
|
|
|
.end method
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
# virtual methods
|
|
|
|
.method public final declared-synchronized a()V
|
|
|
|
.locals 2
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
monitor-enter p0
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
:try_start_0
|
|
|
|
iget-object v0, p0, Ln0/q;->d:Ljava/util/ArrayDeque;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-virtual {v0}, Ljava/util/ArrayDeque;->iterator()Ljava/util/Iterator;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
move-result-object v0
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
:goto_0
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
move-result v1
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
if-eqz v1, :cond_0
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
move-result-object v1
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
check-cast v1, Ln0/z$a;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
iget-object v1, v1, Ln0/z$a;->f:Ln0/z;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-virtual {v1}, Ln0/z;->cancel()V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
goto :goto_0
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
:cond_0
|
|
|
|
iget-object v0, p0, Ln0/q;->e:Ljava/util/ArrayDeque;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-virtual {v0}, Ljava/util/ArrayDeque;->iterator()Ljava/util/Iterator;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
move-result-object v0
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
:goto_1
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
move-result v1
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
if-eqz v1, :cond_1
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
move-result-object v1
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
check-cast v1, Ln0/z$a;
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
iget-object v1, v1, Ln0/z$a;->f:Ln0/z;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-virtual {v1}, Ln0/z;->cancel()V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
goto :goto_1
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
:cond_1
|
|
|
|
iget-object v0, p0, Ln0/q;->f:Ljava/util/ArrayDeque;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-virtual {v0}, Ljava/util/ArrayDeque;->iterator()Ljava/util/Iterator;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
move-result-object v0
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
:goto_2
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
2020-07-22 00:04:40 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
move-result v1
|
2020-07-22 00:04:40 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
if-eqz v1, :cond_2
|
2020-07-22 00:04:40 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
2020-07-22 00:04:40 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
check-cast v1, Ln0/z;
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-virtual {v1}, Ln0/z;->cancel()V
|
|
|
|
:try_end_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
goto :goto_2
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
:cond_2
|
|
|
|
monitor-exit p0
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
return-void
|
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
:catchall_0
|
|
|
|
move-exception v0
|
2020-07-22 00:04:40 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
monitor-exit p0
|
2020-07-22 00:04:40 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
throw v0
|
2020-07-22 00:04:40 +00:00
|
|
|
.end method
|
|
|
|
|
2020-07-23 01:06:17 +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-07-22 00:04:40 +00:00
|
|
|
|
|
|
|
:try_start_0
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-interface {p1, p2}, Ljava/util/Deque;->remove(Ljava/lang/Object;)Z
|
2020-07-22 00:04:40 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
move-result p1
|
2020-07-22 00:04:40 +00:00
|
|
|
:try_end_0
|
2020-07-23 01:06:17 +00:00
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
2020-07-22 00:04:40 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
if-eqz p1, :cond_0
|
2020-07-22 00:04:40 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
monitor-exit p0
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-virtual {p0}, Ln0/q;->d()Z
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
:try_start_1
|
2020-07-23 01:06:17 +00:00
|
|
|
new-instance p1, Ljava/lang/AssertionError;
|
2020-07-22 00:04:40 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
const-string p2, "Call wasn\'t in-flight!"
|
2020-07-22 00:04:40 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-direct {p1, p2}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
throw p1
|
|
|
|
:try_end_1
|
|
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
2020-07-22 00:04:40 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
:catchall_0
|
|
|
|
move-exception p1
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
monitor-exit p0
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
.method public final c(Ln0/z$a;)V
|
|
|
|
.locals 1
|
2020-07-22 00:04:40 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
iget-object v0, p1, Ln0/z$a;->d:Ljava/util/concurrent/atomic/AtomicInteger;
|
2020-07-22 00:04:40 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicInteger;->decrementAndGet()I
|
2020-07-22 00:04:40 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
iget-object v0, p0, Ln0/q;->e:Ljava/util/ArrayDeque;
|
2020-07-22 00:04:40 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-virtual {p0, v0, p1}, Ln0/q;->b(Ljava/util/Deque;Ljava/lang/Object;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
return-void
|
2020-07-22 00:04:40 +00:00
|
|
|
.end method
|
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
.method public final d()Z
|
|
|
|
.locals 17
|
2020-07-22 00:04:40 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
move-object/from16 v1, p0
|
2020-07-22 00:04:40 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-static/range {p0 .. p0}, Ljava/lang/Thread;->holdsLock(Ljava/lang/Object;)Z
|
2020-07-22 00:04:40 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
move-result v0
|
2020-07-22 00:04:40 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
const/4 v2, 0x1
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
xor-int/2addr v0, v2
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
sget-boolean v3, Lj0/i;->a:Z
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
if-eqz v3, :cond_1
|
2020-07-22 00:04:40 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
if-eqz v0, :cond_0
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
goto :goto_0
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
:cond_0
|
2020-07-23 01:06:17 +00:00
|
|
|
const-string v0, "Assertion failed"
|
2020-07-22 00:04:40 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
new-instance v2, Ljava/lang/AssertionError;
|
2020-07-22 00:04:40 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-direct {v2, v0}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V
|
2020-07-22 00:04:40 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
throw v2
|
2020-07-22 00:04:40 +00:00
|
|
|
|
|
|
|
:cond_1
|
|
|
|
:goto_0
|
2020-07-23 01:06:17 +00:00
|
|
|
new-instance v3, Ljava/util/ArrayList;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
monitor-enter p0
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
:try_start_0
|
|
|
|
iget-object v0, v1, Ln0/q;->d:Ljava/util/ArrayDeque;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-virtual {v0}, Ljava/util/ArrayDeque;->iterator()Ljava/util/Iterator;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
move-result-object v0
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
const-string v4, "readyAsyncCalls.iterator()"
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-static {v0, v4}, Lj0/o/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
:goto_1
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
move-result v4
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
if-eqz v4, :cond_4
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
move-result-object v4
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
check-cast v4, Ln0/z$a;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
iget-object v5, v1, Ln0/q;->e:Ljava/util/ArrayDeque;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-virtual {v5}, Ljava/util/ArrayDeque;->size()I
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
move-result v5
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
iget v6, v1, Ln0/q;->a:I
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
if-lt v5, v6, :cond_2
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
goto :goto_2
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
:cond_2
|
2020-07-23 01:06:17 +00:00
|
|
|
iget-object v5, v4, Ln0/z$a;->d:Ljava/util/concurrent/atomic/AtomicInteger;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-virtual {v5}, Ljava/util/concurrent/atomic/AtomicInteger;->get()I
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
move-result v5
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
iget v6, v1, Ln0/q;->b:I
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
if-lt v5, v6, :cond_3
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
goto :goto_1
|
2020-07-22 00:04:40 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
:cond_3
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->remove()V
|
2020-07-22 00:04:40 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
iget-object v5, v4, Ln0/z$a;->d:Ljava/util/concurrent/atomic/AtomicInteger;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-virtual {v5}, Ljava/util/concurrent/atomic/AtomicInteger;->incrementAndGet()I
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
const-string v5, "asyncCall"
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-static {v4, v5}, Lj0/o/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-interface {v3, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
iget-object v5, v1, Ln0/q;->e:Ljava/util/ArrayDeque;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-virtual {v5, v4}, Ljava/util/ArrayDeque;->add(Ljava/lang/Object;)Z
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
goto :goto_1
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
:cond_4
|
|
|
|
:goto_2
|
|
|
|
monitor-enter p0
|
|
|
|
:try_end_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_3
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
:try_start_1
|
|
|
|
iget-object v0, v1, Ln0/q;->e:Ljava/util/ArrayDeque;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-virtual {v0}, Ljava/util/ArrayDeque;->size()I
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
move-result v0
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
iget-object v4, v1, Ln0/q;->f:Ljava/util/ArrayDeque;
|
2020-07-22 00:04:40 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-virtual {v4}, Ljava/util/ArrayDeque;->size()I
|
2020-07-22 00:04:40 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
move-result v4
|
|
|
|
:try_end_1
|
|
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_2
|
2020-07-22 00:04:40 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
add-int/2addr v0, v4
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
:try_start_2
|
|
|
|
monitor-exit p0
|
|
|
|
:try_end_2
|
|
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_3
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
const/4 v4, 0x0
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
if-lez v0, :cond_5
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
const/4 v5, 0x1
|
2020-07-22 00:04:40 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
goto :goto_3
|
2020-07-22 00:04:40 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
:cond_5
|
|
|
|
const/4 v5, 0x0
|
2020-07-22 00:04:40 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
:goto_3
|
|
|
|
monitor-exit p0
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-interface {v3}, Ljava/util/List;->size()I
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
move-result v6
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
const/4 v7, 0x0
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
:goto_4
|
|
|
|
if-ge v7, v6, :cond_b
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-interface {v3, v7}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
move-result-object v0
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
move-object v8, v0
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
check-cast v8, Ln0/z$a;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
monitor-enter p0
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
:try_start_3
|
|
|
|
iget-object v0, v1, Ln0/q;->c:Ljava/util/concurrent/ExecutorService;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
if-nez v0, :cond_6
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
new-instance v0, Ljava/util/concurrent/ThreadPoolExecutor;
|
2020-07-22 00:04:40 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
const/4 v10, 0x0
|
2020-07-22 00:04:40 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
const v11, 0x7fffffff
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
const-wide/16 v12, 0x3c
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
sget-object v14, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
new-instance v15, Ljava/util/concurrent/SynchronousQueue;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-direct {v15}, Ljava/util/concurrent/SynchronousQueue;-><init>()V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
const-string v9, "OkHttp Dispatcher"
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-static {v9, v4}, Ln0/g0/b;->A(Ljava/lang/String;Z)Ljava/util/concurrent/ThreadFactory;
|
2020-07-22 00:04:40 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
move-result-object v16
|
2020-07-22 00:04:40 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
move-object v9, v0
|
2020-07-22 00:04:40 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-direct/range {v9 .. v16}, Ljava/util/concurrent/ThreadPoolExecutor;-><init>(IIJLjava/util/concurrent/TimeUnit;Ljava/util/concurrent/BlockingQueue;Ljava/util/concurrent/ThreadFactory;)V
|
2020-07-22 00:04:40 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
iput-object v0, v1, Ln0/q;->c:Ljava/util/concurrent/ExecutorService;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
:cond_6
|
|
|
|
iget-object v0, v1, Ln0/q;->c:Ljava/util/concurrent/ExecutorService;
|
|
|
|
:try_end_3
|
|
|
|
.catchall {:try_start_3 .. :try_end_3} :catchall_1
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
const/4 v9, 0x0
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
if-eqz v0, :cond_a
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
monitor-exit p0
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
iget-object v10, v8, Ln0/z$a;->f:Ln0/z;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
iget-object v10, v10, Ln0/z;->f:Ln0/x;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
iget-object v10, v10, Ln0/x;->d:Ln0/q;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-static {v10}, Ljava/lang/Thread;->holdsLock(Ljava/lang/Object;)Z
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
move-result v10
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
xor-int/2addr v10, v2
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
sget-boolean v11, Lj0/i;->a:Z
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
if-eqz v11, :cond_8
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
if-eqz v10, :cond_7
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
goto :goto_5
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
:cond_7
|
|
|
|
new-instance v0, Ljava/lang/AssertionError;
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
const-string v2, "Assertion failed"
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-direct {v0, v2}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
throw v0
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
:cond_8
|
|
|
|
:goto_5
|
|
|
|
:try_start_4
|
|
|
|
invoke-interface {v0, v8}, 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-07-14 22:43:59 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
goto :goto_6
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
:catchall_0
|
|
|
|
move-exception v0
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
goto :goto_7
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
:catch_0
|
|
|
|
move-exception v0
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
move-object v10, v0
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
:try_start_5
|
|
|
|
new-instance v0, Ljava/io/InterruptedIOException;
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
const-string v11, "executor rejected"
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-direct {v0, v11}, Ljava/io/InterruptedIOException;-><init>(Ljava/lang/String;)V
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-virtual {v0, v10}, Ljava/io/InterruptedIOException;->initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable;
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
iget-object v10, v8, Ln0/z$a;->f:Ln0/z;
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
iget-object v10, v10, Ln0/z;->d:Ln0/g0/d/m;
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
if-eqz v10, :cond_9
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-virtual {v10, v0}, Ln0/g0/d/m;->h(Ljava/io/IOException;)Ljava/io/IOException;
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
iget-object v9, v8, Ln0/z$a;->e:Ln0/g;
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
iget-object v10, v8, Ln0/z$a;->f:Ln0/z;
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-interface {v9, v10, v0}, Ln0/g;->b(Ln0/f;Ljava/io/IOException;)V
|
|
|
|
:try_end_5
|
|
|
|
.catchall {:try_start_5 .. :try_end_5} :catchall_0
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
iget-object v0, v8, Ln0/z$a;->f:Ln0/z;
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
iget-object v0, v0, Ln0/z;->f:Ln0/x;
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
iget-object v0, v0, Ln0/x;->d:Ln0/q;
|
2020-07-22 00:04:40 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-virtual {v0, v8}, Ln0/q;->c(Ln0/z$a;)V
|
2020-07-22 00:04:40 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
:goto_6
|
|
|
|
add-int/lit8 v7, v7, 0x1
|
2020-07-22 00:04:40 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
goto :goto_4
|
2020-07-22 00:04:40 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
:cond_9
|
|
|
|
:try_start_6
|
|
|
|
const-string v0, "transmitter"
|
2020-07-22 00:04:40 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-static {v0}, Lj0/o/c/h;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
|
|
|
:try_end_6
|
|
|
|
.catchall {:try_start_6 .. :try_end_6} :catchall_0
|
2020-07-22 00:04:40 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
throw v9
|
2020-07-22 00:04:40 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
:goto_7
|
|
|
|
iget-object v2, v8, Ln0/z$a;->f:Ln0/z;
|
2020-07-22 00:04:40 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
iget-object v2, v2, Ln0/z;->f:Ln0/x;
|
2020-07-22 00:04:40 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
iget-object v2, v2, Ln0/x;->d:Ln0/q;
|
2020-07-22 00:04:40 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-virtual {v2, v8}, Ln0/q;->c(Ln0/z$a;)V
|
2020-07-22 00:04:40 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
throw v0
|
2020-07-22 00:04:40 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
:cond_a
|
|
|
|
:try_start_7
|
|
|
|
invoke-static {}, Lj0/o/c/h;->throwNpe()V
|
|
|
|
:try_end_7
|
|
|
|
.catchall {:try_start_7 .. :try_end_7} :catchall_1
|
2020-07-22 00:04:40 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
throw v9
|
2020-07-22 00:04:40 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
:catchall_1
|
|
|
|
move-exception v0
|
2020-07-22 00:04:40 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
monitor-exit p0
|
2020-07-22 00:04:40 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
throw v0
|
2020-07-22 00:04:40 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
:cond_b
|
|
|
|
return v5
|
2020-07-22 00:04:40 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
:catchall_2
|
|
|
|
move-exception v0
|
2020-07-22 00:04:40 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
:try_start_8
|
|
|
|
monitor-exit p0
|
2020-07-22 00:04:40 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
throw v0
|
|
|
|
:try_end_8
|
|
|
|
.catchall {:try_start_8 .. :try_end_8} :catchall_3
|
2020-07-22 00:04:40 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
:catchall_3
|
|
|
|
move-exception v0
|
2020-07-22 00:04:40 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
monitor-exit p0
|
2020-07-22 00:04:40 +00:00
|
|
|
|
|
|
|
throw v0
|
2020-07-08 16:44:49 +00:00
|
|
|
.end method
|