953 lines
16 KiB
Smali
953 lines
16 KiB
Smali
|
.class public abstract La0/a/l0;
|
||
|
.super La0/a/m0;
|
||
|
.source "EventLoop.common.kt"
|
||
|
|
||
|
# interfaces
|
||
|
.implements La0/a/b0;
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/MemberClasses;
|
||
|
value = {
|
||
|
La0/a/l0$b;,
|
||
|
La0/a/l0$a;,
|
||
|
La0/a/l0$c;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# static fields
|
||
|
.field public static final g:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
|
||
|
|
||
|
.field public static final h:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field public volatile _delayed:Ljava/lang/Object;
|
||
|
|
||
|
.field public volatile _isCompleted:I
|
||
|
|
||
|
.field public volatile _queue:Ljava/lang/Object;
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public static constructor <clinit>()V
|
||
|
.locals 3
|
||
|
|
||
|
const-class v0, Ljava/lang/Object;
|
||
|
|
||
|
const-class v1, La0/a/l0;
|
||
|
|
||
|
const-string v2, "_queue"
|
||
|
|
||
|
invoke-static {v1, v0, v2}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->newUpdater(Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/String;)Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
sput-object v2, La0/a/l0;->g:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
|
||
|
|
||
|
const-string v2, "_delayed"
|
||
|
|
||
|
invoke-static {v1, v0, v2}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->newUpdater(Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/String;)Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
sput-object v0, La0/a/l0;->h:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public constructor <init>()V
|
||
|
.locals 1
|
||
|
|
||
|
invoke-direct {p0}, La0/a/m0;-><init>()V
|
||
|
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
iput-object v0, p0, La0/a/l0;->_queue:Ljava/lang/Object;
|
||
|
|
||
|
iput-object v0, p0, La0/a/l0;->_delayed:Ljava/lang/Object;
|
||
|
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
iput v0, p0, La0/a/l0;->_isCompleted:I
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public final E(Ljava/lang/Runnable;)V
|
||
|
.locals 1
|
||
|
|
||
|
invoke-virtual {p0, p1}, La0/a/l0;->F(Ljava/lang/Runnable;)Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
invoke-virtual {p0}, La0/a/m0;->D()Ljava/lang/Thread;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
if-eq v0, p1, :cond_1
|
||
|
|
||
|
invoke-static {p1}, Ljava/util/concurrent/locks/LockSupport;->unpark(Ljava/lang/Thread;)V
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
sget-object v0, La0/a/z;->j:La0/a/z;
|
||
|
|
||
|
invoke-virtual {v0, p1}, La0/a/l0;->E(Ljava/lang/Runnable;)V
|
||
|
|
||
|
:cond_1
|
||
|
:goto_0
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public final F(Ljava/lang/Runnable;)Z
|
||
|
.locals 5
|
||
|
|
||
|
:cond_0
|
||
|
:goto_0
|
||
|
iget-object v0, p0, La0/a/l0;->_queue:Ljava/lang/Object;
|
||
|
|
||
|
iget v1, p0, La0/a/l0;->_isCompleted:I
|
||
|
|
||
|
const/4 v2, 0x0
|
||
|
|
||
|
if-eqz v1, :cond_1
|
||
|
|
||
|
return v2
|
||
|
|
||
|
:cond_1
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
if-nez v0, :cond_2
|
||
|
|
||
|
sget-object v0, La0/a/l0;->g:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
|
||
|
|
||
|
const/4 v2, 0x0
|
||
|
|
||
|
invoke-virtual {v0, p0, v2, p1}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
return v1
|
||
|
|
||
|
:cond_2
|
||
|
instance-of v3, v0, La0/a/r1/i;
|
||
|
|
||
|
if-eqz v3, :cond_6
|
||
|
|
||
|
move-object v3, v0
|
||
|
|
||
|
check-cast v3, La0/a/r1/i;
|
||
|
|
||
|
invoke-virtual {v3, p1}, La0/a/r1/i;->a(Ljava/lang/Object;)I
|
||
|
|
||
|
move-result v4
|
||
|
|
||
|
if-eqz v4, :cond_5
|
||
|
|
||
|
if-eq v4, v1, :cond_4
|
||
|
|
||
|
const/4 v0, 0x2
|
||
|
|
||
|
if-eq v4, v0, :cond_3
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_3
|
||
|
return v2
|
||
|
|
||
|
:cond_4
|
||
|
sget-object v1, La0/a/l0;->g:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
|
||
|
|
||
|
invoke-virtual {v3}, La0/a/r1/i;->d()La0/a/r1/i;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-virtual {v1, p0, v0, v2}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_5
|
||
|
return v1
|
||
|
|
||
|
:cond_6
|
||
|
sget-object v3, La0/a/n0;->b:La0/a/r1/n;
|
||
|
|
||
|
if-ne v0, v3, :cond_7
|
||
|
|
||
|
return v2
|
||
|
|
||
|
:cond_7
|
||
|
new-instance v2, La0/a/r1/i;
|
||
|
|
||
|
const/16 v3, 0x8
|
||
|
|
||
|
invoke-direct {v2, v3, v1}, La0/a/r1/i;-><init>(IZ)V
|
||
|
|
||
|
move-object v3, v0
|
||
|
|
||
|
check-cast v3, Ljava/lang/Runnable;
|
||
|
|
||
|
invoke-virtual {v2, v3}, La0/a/r1/i;->a(Ljava/lang/Object;)I
|
||
|
|
||
|
invoke-virtual {v2, p1}, La0/a/r1/i;->a(Ljava/lang/Object;)I
|
||
|
|
||
|
sget-object v3, La0/a/l0;->g:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
|
||
|
|
||
|
invoke-virtual {v3, p0, v0, v2}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
return v1
|
||
|
.end method
|
||
|
|
||
|
.method public G()Z
|
||
|
.locals 4
|
||
|
|
||
|
iget-object v0, p0, La0/a/k0;->f:La0/a/r1/a;
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
const/4 v2, 0x0
|
||
|
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
iget v3, v0, La0/a/r1/a;->b:I
|
||
|
|
||
|
iget v0, v0, La0/a/r1/a;->c:I
|
||
|
|
||
|
if-ne v3, v0, :cond_0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_1
|
||
|
:goto_0
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
:goto_1
|
||
|
if-nez v0, :cond_2
|
||
|
|
||
|
return v2
|
||
|
|
||
|
:cond_2
|
||
|
iget-object v0, p0, La0/a/l0;->_delayed:Ljava/lang/Object;
|
||
|
|
||
|
check-cast v0, La0/a/l0$c;
|
||
|
|
||
|
if-eqz v0, :cond_4
|
||
|
|
||
|
iget v0, v0, La0/a/r1/q;->_size:I
|
||
|
|
||
|
if-nez v0, :cond_3
|
||
|
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
goto :goto_2
|
||
|
|
||
|
:cond_3
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
:goto_2
|
||
|
if-nez v0, :cond_4
|
||
|
|
||
|
return v2
|
||
|
|
||
|
:cond_4
|
||
|
iget-object v0, p0, La0/a/l0;->_queue:Ljava/lang/Object;
|
||
|
|
||
|
if-nez v0, :cond_5
|
||
|
|
||
|
goto :goto_3
|
||
|
|
||
|
:cond_5
|
||
|
instance-of v3, v0, La0/a/r1/i;
|
||
|
|
||
|
if-eqz v3, :cond_6
|
||
|
|
||
|
check-cast v0, La0/a/r1/i;
|
||
|
|
||
|
invoke-virtual {v0}, La0/a/r1/i;->c()Z
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
goto :goto_3
|
||
|
|
||
|
:cond_6
|
||
|
sget-object v3, La0/a/n0;->b:La0/a/r1/n;
|
||
|
|
||
|
if-ne v0, v3, :cond_7
|
||
|
|
||
|
goto :goto_3
|
||
|
|
||
|
:cond_7
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
:goto_3
|
||
|
return v1
|
||
|
.end method
|
||
|
|
||
|
.method public H()J
|
||
|
.locals 12
|
||
|
|
||
|
invoke-virtual {p0}, La0/a/k0;->B()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
const-wide/16 v1, 0x0
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
return-wide v1
|
||
|
|
||
|
:cond_0
|
||
|
iget-object v0, p0, La0/a/l0;->_delayed:Ljava/lang/Object;
|
||
|
|
||
|
check-cast v0, La0/a/l0$c;
|
||
|
|
||
|
const/4 v3, 0x0
|
||
|
|
||
|
const/4 v4, 0x1
|
||
|
|
||
|
const/4 v5, 0x0
|
||
|
|
||
|
if-eqz v0, :cond_6
|
||
|
|
||
|
iget v6, v0, La0/a/r1/q;->_size:I
|
||
|
|
||
|
if-nez v6, :cond_1
|
||
|
|
||
|
const/4 v6, 0x1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_1
|
||
|
const/4 v6, 0x0
|
||
|
|
||
|
:goto_0
|
||
|
if-nez v6, :cond_6
|
||
|
|
||
|
invoke-static {}, Ljava/lang/System;->nanoTime()J
|
||
|
|
||
|
move-result-wide v6
|
||
|
|
||
|
:goto_1
|
||
|
monitor-enter v0
|
||
|
|
||
|
:try_start_0
|
||
|
invoke-virtual {v0}, La0/a/r1/q;->b()La0/a/r1/r;
|
||
|
|
||
|
move-result-object v8
|
||
|
|
||
|
if-eqz v8, :cond_5
|
||
|
|
||
|
check-cast v8, La0/a/l0$b;
|
||
|
|
||
|
iget-wide v9, v8, La0/a/l0$b;->f:J
|
||
|
|
||
|
sub-long v9, v6, v9
|
||
|
|
||
|
cmp-long v11, v9, v1
|
||
|
|
||
|
if-ltz v11, :cond_2
|
||
|
|
||
|
const/4 v9, 0x1
|
||
|
|
||
|
goto :goto_2
|
||
|
|
||
|
:cond_2
|
||
|
const/4 v9, 0x0
|
||
|
|
||
|
:goto_2
|
||
|
if-eqz v9, :cond_3
|
||
|
|
||
|
invoke-virtual {p0, v8}, La0/a/l0;->F(Ljava/lang/Runnable;)Z
|
||
|
|
||
|
move-result v8
|
||
|
|
||
|
goto :goto_3
|
||
|
|
||
|
:cond_3
|
||
|
const/4 v8, 0x0
|
||
|
|
||
|
:goto_3
|
||
|
if-eqz v8, :cond_4
|
||
|
|
||
|
invoke-virtual {v0, v5}, La0/a/r1/q;->c(I)La0/a/r1/r;
|
||
|
|
||
|
move-result-object v8
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
goto :goto_4
|
||
|
|
||
|
:cond_4
|
||
|
move-object v8, v3
|
||
|
|
||
|
:goto_4
|
||
|
monitor-exit v0
|
||
|
|
||
|
goto :goto_5
|
||
|
|
||
|
:cond_5
|
||
|
monitor-exit v0
|
||
|
|
||
|
move-object v8, v3
|
||
|
|
||
|
:goto_5
|
||
|
check-cast v8, La0/a/l0$b;
|
||
|
|
||
|
if-eqz v8, :cond_6
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception v1
|
||
|
|
||
|
monitor-exit v0
|
||
|
|
||
|
throw v1
|
||
|
|
||
|
:cond_6
|
||
|
:goto_6
|
||
|
iget-object v0, p0, La0/a/l0;->_queue:Ljava/lang/Object;
|
||
|
|
||
|
if-nez v0, :cond_7
|
||
|
|
||
|
goto :goto_7
|
||
|
|
||
|
:cond_7
|
||
|
instance-of v6, v0, La0/a/r1/i;
|
||
|
|
||
|
if-eqz v6, :cond_9
|
||
|
|
||
|
move-object v6, v0
|
||
|
|
||
|
check-cast v6, La0/a/r1/i;
|
||
|
|
||
|
invoke-virtual {v6}, La0/a/r1/i;->e()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v7
|
||
|
|
||
|
sget-object v8, La0/a/r1/i;->g:La0/a/r1/n;
|
||
|
|
||
|
if-eq v7, v8, :cond_8
|
||
|
|
||
|
move-object v3, v7
|
||
|
|
||
|
check-cast v3, Ljava/lang/Runnable;
|
||
|
|
||
|
goto :goto_7
|
||
|
|
||
|
:cond_8
|
||
|
sget-object v7, La0/a/l0;->g:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
|
||
|
|
||
|
invoke-virtual {v6}, La0/a/r1/i;->d()La0/a/r1/i;
|
||
|
|
||
|
move-result-object v6
|
||
|
|
||
|
invoke-virtual {v7, p0, v0, v6}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
|
||
|
|
||
|
goto :goto_6
|
||
|
|
||
|
:cond_9
|
||
|
sget-object v6, La0/a/n0;->b:La0/a/r1/n;
|
||
|
|
||
|
if-ne v0, v6, :cond_a
|
||
|
|
||
|
goto :goto_7
|
||
|
|
||
|
:cond_a
|
||
|
sget-object v6, La0/a/l0;->g:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
|
||
|
|
||
|
invoke-virtual {v6, p0, v0, v3}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v6
|
||
|
|
||
|
if-eqz v6, :cond_6
|
||
|
|
||
|
move-object v3, v0
|
||
|
|
||
|
check-cast v3, Ljava/lang/Runnable;
|
||
|
|
||
|
:goto_7
|
||
|
if-eqz v3, :cond_b
|
||
|
|
||
|
invoke-interface {v3}, Ljava/lang/Runnable;->run()V
|
||
|
|
||
|
return-wide v1
|
||
|
|
||
|
:cond_b
|
||
|
iget-object v0, p0, La0/a/k0;->f:La0/a/r1/a;
|
||
|
|
||
|
const-wide v6, 0x7fffffffffffffffL
|
||
|
|
||
|
if-eqz v0, :cond_e
|
||
|
|
||
|
iget v3, v0, La0/a/r1/a;->b:I
|
||
|
|
||
|
iget v0, v0, La0/a/r1/a;->c:I
|
||
|
|
||
|
if-ne v3, v0, :cond_c
|
||
|
|
||
|
goto :goto_8
|
||
|
|
||
|
:cond_c
|
||
|
const/4 v4, 0x0
|
||
|
|
||
|
:goto_8
|
||
|
if-eqz v4, :cond_d
|
||
|
|
||
|
goto :goto_9
|
||
|
|
||
|
:cond_d
|
||
|
move-wide v3, v1
|
||
|
|
||
|
goto :goto_a
|
||
|
|
||
|
:cond_e
|
||
|
:goto_9
|
||
|
move-wide v3, v6
|
||
|
|
||
|
:goto_a
|
||
|
cmp-long v0, v3, v1
|
||
|
|
||
|
if-nez v0, :cond_f
|
||
|
|
||
|
goto :goto_c
|
||
|
|
||
|
:cond_f
|
||
|
iget-object v0, p0, La0/a/l0;->_queue:Ljava/lang/Object;
|
||
|
|
||
|
if-nez v0, :cond_10
|
||
|
|
||
|
goto :goto_b
|
||
|
|
||
|
:cond_10
|
||
|
instance-of v3, v0, La0/a/r1/i;
|
||
|
|
||
|
if-eqz v3, :cond_13
|
||
|
|
||
|
check-cast v0, La0/a/r1/i;
|
||
|
|
||
|
invoke-virtual {v0}, La0/a/r1/i;->c()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-nez v0, :cond_11
|
||
|
|
||
|
goto :goto_c
|
||
|
|
||
|
:cond_11
|
||
|
:goto_b
|
||
|
iget-object v0, p0, La0/a/l0;->_delayed:Ljava/lang/Object;
|
||
|
|
||
|
check-cast v0, La0/a/l0$c;
|
||
|
|
||
|
if-eqz v0, :cond_14
|
||
|
|
||
|
monitor-enter v0
|
||
|
|
||
|
:try_start_1
|
||
|
invoke-virtual {v0}, La0/a/r1/q;->b()La0/a/r1/r;
|
||
|
|
||
|
move-result-object v3
|
||
|
:try_end_1
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_1
|
||
|
|
||
|
monitor-exit v0
|
||
|
|
||
|
check-cast v3, La0/a/l0$b;
|
||
|
|
||
|
if-eqz v3, :cond_14
|
||
|
|
||
|
iget-wide v3, v3, La0/a/l0$b;->f:J
|
||
|
|
||
|
invoke-static {}, Ljava/lang/System;->nanoTime()J
|
||
|
|
||
|
move-result-wide v5
|
||
|
|
||
|
sub-long/2addr v3, v5
|
||
|
|
||
|
cmp-long v0, v3, v1
|
||
|
|
||
|
if-gez v0, :cond_12
|
||
|
|
||
|
goto :goto_c
|
||
|
|
||
|
:cond_12
|
||
|
move-wide v1, v3
|
||
|
|
||
|
goto :goto_c
|
||
|
|
||
|
:catchall_1
|
||
|
move-exception v1
|
||
|
|
||
|
monitor-exit v0
|
||
|
|
||
|
throw v1
|
||
|
|
||
|
:cond_13
|
||
|
sget-object v3, La0/a/n0;->b:La0/a/r1/n;
|
||
|
|
||
|
if-ne v0, v3, :cond_15
|
||
|
|
||
|
:cond_14
|
||
|
move-wide v1, v6
|
||
|
|
||
|
:cond_15
|
||
|
:goto_c
|
||
|
return-wide v1
|
||
|
.end method
|
||
|
|
||
|
.method public final I(JLa0/a/l0$b;)V
|
||
|
.locals 12
|
||
|
|
||
|
iget v0, p0, La0/a/l0;->_isCompleted:I
|
||
|
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
const/4 v2, 0x2
|
||
|
|
||
|
const/4 v3, 0x0
|
||
|
|
||
|
const/4 v4, 0x1
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_0
|
||
|
iget-object v0, p0, La0/a/l0;->_delayed:Ljava/lang/Object;
|
||
|
|
||
|
check-cast v0, La0/a/l0$c;
|
||
|
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_1
|
||
|
sget-object v0, La0/a/l0;->h:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
|
||
|
|
||
|
new-instance v5, La0/a/l0$c;
|
||
|
|
||
|
invoke-direct {v5, p1, p2}, La0/a/l0$c;-><init>(J)V
|
||
|
|
||
|
invoke-virtual {v0, p0, v1, v5}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
|
||
|
|
||
|
iget-object v0, p0, La0/a/l0;->_delayed:Ljava/lang/Object;
|
||
|
|
||
|
if-eqz v0, :cond_e
|
||
|
|
||
|
check-cast v0, La0/a/l0$c;
|
||
|
|
||
|
:goto_0
|
||
|
monitor-enter p3
|
||
|
|
||
|
:try_start_0
|
||
|
iget-object v5, p3, La0/a/l0$b;->d:Ljava/lang/Object;
|
||
|
|
||
|
sget-object v6, La0/a/n0;->a:La0/a/r1/n;
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_2
|
||
|
|
||
|
if-ne v5, v6, :cond_2
|
||
|
|
||
|
monitor-exit p3
|
||
|
|
||
|
const/4 v0, 0x2
|
||
|
|
||
|
goto :goto_3
|
||
|
|
||
|
:cond_2
|
||
|
:try_start_1
|
||
|
monitor-enter v0
|
||
|
:try_end_1
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_2
|
||
|
|
||
|
:try_start_2
|
||
|
invoke-virtual {v0}, La0/a/r1/q;->b()La0/a/r1/r;
|
||
|
|
||
|
move-result-object v5
|
||
|
|
||
|
check-cast v5, La0/a/l0$b;
|
||
|
|
||
|
iget v6, p0, La0/a/l0;->_isCompleted:I
|
||
|
:try_end_2
|
||
|
.catchall {:try_start_2 .. :try_end_2} :catchall_1
|
||
|
|
||
|
if-eqz v6, :cond_3
|
||
|
|
||
|
:try_start_3
|
||
|
monitor-exit v0
|
||
|
:try_end_3
|
||
|
.catchall {:try_start_3 .. :try_end_3} :catchall_2
|
||
|
|
||
|
monitor-exit p3
|
||
|
|
||
|
:goto_1
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
goto :goto_3
|
||
|
|
||
|
:cond_3
|
||
|
const-wide/16 v6, 0x0
|
||
|
|
||
|
if-nez v5, :cond_4
|
||
|
|
||
|
:try_start_4
|
||
|
iput-wide p1, v0, La0/a/l0$c;->b:J
|
||
|
|
||
|
goto :goto_2
|
||
|
|
||
|
:cond_4
|
||
|
iget-wide v8, v5, La0/a/l0$b;->f:J
|
||
|
|
||
|
sub-long v10, v8, p1
|
||
|
|
||
|
cmp-long v5, v10, v6
|
||
|
|
||
|
if-ltz v5, :cond_5
|
||
|
|
||
|
move-wide v8, p1
|
||
|
|
||
|
:cond_5
|
||
|
iget-wide v10, v0, La0/a/l0$c;->b:J
|
||
|
|
||
|
sub-long v10, v8, v10
|
||
|
|
||
|
cmp-long v5, v10, v6
|
||
|
|
||
|
if-lez v5, :cond_6
|
||
|
|
||
|
iput-wide v8, v0, La0/a/l0$c;->b:J
|
||
|
|
||
|
:cond_6
|
||
|
:goto_2
|
||
|
iget-wide v8, p3, La0/a/l0$b;->f:J
|
||
|
|
||
|
iget-wide v10, v0, La0/a/l0$c;->b:J
|
||
|
|
||
|
sub-long/2addr v8, v10
|
||
|
|
||
|
cmp-long v5, v8, v6
|
||
|
|
||
|
if-gez v5, :cond_7
|
||
|
|
||
|
iget-wide v5, v0, La0/a/l0$c;->b:J
|
||
|
|
||
|
iput-wide v5, p3, La0/a/l0$b;->f:J
|
||
|
|
||
|
:cond_7
|
||
|
invoke-virtual {v0, p3}, La0/a/r1/q;->a(La0/a/r1/r;)V
|
||
|
:try_end_4
|
||
|
.catchall {:try_start_4 .. :try_end_4} :catchall_1
|
||
|
|
||
|
:try_start_5
|
||
|
monitor-exit v0
|
||
|
:try_end_5
|
||
|
.catchall {:try_start_5 .. :try_end_5} :catchall_2
|
||
|
|
||
|
monitor-exit p3
|
||
|
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
:goto_3
|
||
|
if-eqz v0, :cond_a
|
||
|
|
||
|
if-eq v0, v4, :cond_9
|
||
|
|
||
|
if-ne v0, v2, :cond_8
|
||
|
|
||
|
goto :goto_5
|
||
|
|
||
|
:cond_8
|
||
|
const-string p1, "unexpected result"
|
||
|
|
||
|
new-instance p2, Ljava/lang/IllegalStateException;
|
||
|
|
||
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
invoke-direct {p2, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
throw p2
|
||
|
|
||
|
:cond_9
|
||
|
sget-object v0, La0/a/z;->j:La0/a/z;
|
||
|
|
||
|
invoke-virtual {v0, p1, p2, p3}, La0/a/l0;->I(JLa0/a/l0$b;)V
|
||
|
|
||
|
goto :goto_5
|
||
|
|
||
|
:cond_a
|
||
|
iget-object p1, p0, La0/a/l0;->_delayed:Ljava/lang/Object;
|
||
|
|
||
|
check-cast p1, La0/a/l0$c;
|
||
|
|
||
|
if-eqz p1, :cond_b
|
||
|
|
||
|
monitor-enter p1
|
||
|
|
||
|
:try_start_6
|
||
|
invoke-virtual {p1}, La0/a/r1/q;->b()La0/a/r1/r;
|
||
|
|
||
|
move-result-object p2
|
||
|
:try_end_6
|
||
|
.catchall {:try_start_6 .. :try_end_6} :catchall_0
|
||
|
|
||
|
monitor-exit p1
|
||
|
|
||
|
move-object v1, p2
|
||
|
|
||
|
check-cast v1, La0/a/l0$b;
|
||
|
|
||
|
goto :goto_4
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception p2
|
||
|
|
||
|
monitor-exit p1
|
||
|
|
||
|
throw p2
|
||
|
|
||
|
:cond_b
|
||
|
:goto_4
|
||
|
if-ne v1, p3, :cond_c
|
||
|
|
||
|
const/4 v3, 0x1
|
||
|
|
||
|
:cond_c
|
||
|
if-eqz v3, :cond_d
|
||
|
|
||
|
invoke-virtual {p0}, La0/a/m0;->D()Ljava/lang/Thread;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
|
||
|
|
||
|
move-result-object p2
|
||
|
|
||
|
if-eq p2, p1, :cond_d
|
||
|
|
||
|
invoke-static {p1}, Ljava/util/concurrent/locks/LockSupport;->unpark(Ljava/lang/Thread;)V
|
||
|
|
||
|
:cond_d
|
||
|
:goto_5
|
||
|
return-void
|
||
|
|
||
|
:catchall_1
|
||
|
move-exception p1
|
||
|
|
||
|
:try_start_7
|
||
|
monitor-exit v0
|
||
|
|
||
|
throw p1
|
||
|
:try_end_7
|
||
|
.catchall {:try_start_7 .. :try_end_7} :catchall_2
|
||
|
|
||
|
:catchall_2
|
||
|
move-exception p1
|
||
|
|
||
|
monitor-exit p3
|
||
|
|
||
|
throw p1
|
||
|
|
||
|
:cond_e
|
||
|
invoke-static {}, Lz/n/c/j;->throwNpe()V
|
||
|
|
||
|
throw v1
|
||
|
.end method
|
||
|
|
||
|
.method public b(JLa0/a/f;)V
|
||
|
.locals 3
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(J",
|
||
|
"La0/a/f<",
|
||
|
"-",
|
||
|
"Lkotlin/Unit;",
|
||
|
">;)V"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
const-wide/16 v0, 0x0
|
||
|
|
||
|
cmp-long v2, p1, v0
|
||
|
|
||
|
if-gtz v2, :cond_0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
const-wide v0, 0x8637bd05af6L
|
||
|
|
||
|
cmp-long v2, p1, v0
|
||
|
|
||
|
if-ltz v2, :cond_1
|
||
|
|
||
|
const-wide v0, 0x7fffffffffffffffL
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_1
|
||
|
const-wide/32 v0, 0xf4240
|
||
|
|
||
|
mul-long v0, v0, p1
|
||
|
|
||
|
:goto_0
|
||
|
const-wide p1, 0x3fffffffffffffffL # 1.9999999999999998
|
||
|
|
||
|
cmp-long v2, v0, p1
|
||
|
|
||
|
if-gez v2, :cond_2
|
||
|
|
||
|
invoke-static {}, Ljava/lang/System;->nanoTime()J
|
||
|
|
||
|
move-result-wide p1
|
||
|
|
||
|
new-instance v2, La0/a/l0$a;
|
||
|
|
||
|
add-long/2addr v0, p1
|
||
|
|
||
|
invoke-direct {v2, p0, v0, v1, p3}, La0/a/l0$a;-><init>(La0/a/l0;JLa0/a/f;)V
|
||
|
|
||
|
new-instance v0, La0/a/i0;
|
||
|
|
||
|
invoke-direct {v0, v2}, La0/a/i0;-><init>(La0/a/h0;)V
|
||
|
|
||
|
invoke-interface {p3, v0}, La0/a/f;->b(Lkotlin/jvm/functions/Function1;)V
|
||
|
|
||
|
invoke-virtual {p0, p1, p2, v2}, La0/a/l0;->I(JLa0/a/l0$b;)V
|
||
|
|
||
|
:cond_2
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public final dispatch(Lkotlin/coroutines/CoroutineContext;Ljava/lang/Runnable;)V
|
||
|
.locals 0
|
||
|
|
||
|
invoke-virtual {p0, p2}, La0/a/l0;->E(Ljava/lang/Runnable;)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|