2020-09-22 07:09:10 +00:00
|
|
|
.class public abstract Ld0/a/k0;
|
|
|
|
.super Ld0/a/v;
|
2020-09-16 23:45:23 +00:00
|
|
|
.source "EventLoop.common.kt"
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field public d:J
|
|
|
|
|
|
|
|
.field public e:Z
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
.field public f:Ld0/a/r1/a;
|
2020-09-16 23:45:23 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
2020-09-22 07:09:10 +00:00
|
|
|
"Ld0/a/r1/a<",
|
|
|
|
"Ld0/a/f0<",
|
2020-09-16 23:45:23 +00:00
|
|
|
"*>;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>()V
|
|
|
|
.locals 0
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
invoke-direct {p0}, Ld0/a/v;-><init>()V
|
2020-09-16 23:45:23 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
2020-09-16 23:45:23 +00:00
|
|
|
.method public final B()Z
|
|
|
|
.locals 7
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
iget-object v0, p0, Ld0/a/k0;->f:Ld0/a/r1/a;
|
2020-09-16 23:45:23 +00:00
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
iget v2, v0, Ld0/a/r1/a;->b:I
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
iget v3, v0, Ld0/a/r1/a;->c:I
|
2020-09-16 23:45:23 +00:00
|
|
|
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
const/4 v5, 0x1
|
|
|
|
|
|
|
|
if-ne v2, v3, :cond_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
2020-09-22 07:09:10 +00:00
|
|
|
iget-object v3, v0, Ld0/a/r1/a;->a:[Ljava/lang/Object;
|
2020-09-16 23:45:23 +00:00
|
|
|
|
|
|
|
aget-object v6, v3, v2
|
|
|
|
|
|
|
|
aput-object v4, v3, v2
|
|
|
|
|
|
|
|
add-int/2addr v2, v5
|
|
|
|
|
|
|
|
array-length v3, v3
|
|
|
|
|
|
|
|
add-int/lit8 v3, v3, -0x1
|
|
|
|
|
|
|
|
and-int/2addr v2, v3
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
iput v2, v0, Ld0/a/r1/a;->b:I
|
2020-09-16 23:45:23 +00:00
|
|
|
|
|
|
|
if-eqz v6, :cond_2
|
|
|
|
|
|
|
|
move-object v4, v6
|
|
|
|
|
|
|
|
:goto_0
|
2020-09-22 07:09:10 +00:00
|
|
|
check-cast v4, Ld0/a/f0;
|
2020-09-16 23:45:23 +00:00
|
|
|
|
|
|
|
if-eqz v4, :cond_1
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
invoke-virtual {v4}, Ld0/a/f0;->run()V
|
2020-09-16 23:45:23 +00:00
|
|
|
|
|
|
|
return v5
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
return v1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
new-instance v0, Lkotlin/TypeCastException;
|
|
|
|
|
|
|
|
const-string v1, "null cannot be cast to non-null type T"
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
return v1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final t(Z)V
|
|
|
|
.locals 7
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
iget-wide v0, p0, Ld0/a/k0;->d:J
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
invoke-virtual {p0, p1}, Ld0/a/k0;->v(Z)J
|
2020-09-16 23:45:23 +00:00
|
|
|
|
|
|
|
move-result-wide v2
|
|
|
|
|
|
|
|
sub-long/2addr v0, v2
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
iput-wide v0, p0, Ld0/a/k0;->d:J
|
2020-09-16 23:45:23 +00:00
|
|
|
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
|
|
|
|
cmp-long p1, v0, v2
|
|
|
|
|
|
|
|
if-lez p1, :cond_0
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
2020-09-22 07:09:10 +00:00
|
|
|
iget-boolean p1, p0, Ld0/a/k0;->e:Z
|
2020-09-16 23:45:23 +00:00
|
|
|
|
|
|
|
if-eqz p1, :cond_7
|
|
|
|
|
|
|
|
move-object p1, p0
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
check-cast p1, Ld0/a/l0;
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
sget-object v0, Ld0/a/l1;->b:Ld0/a/l1;
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
sget-object v0, Ld0/a/l1;->a:Ljava/lang/ThreadLocal;
|
2020-09-16 23:45:23 +00:00
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/ThreadLocal;->set(Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
iput v0, p1, Ld0/a/l0;->_isCompleted:I
|
2020-09-16 23:45:23 +00:00
|
|
|
|
|
|
|
:cond_1
|
2020-09-22 07:09:10 +00:00
|
|
|
iget-object v4, p1, Ld0/a/l0;->_queue:Ljava/lang/Object;
|
2020-09-16 23:45:23 +00:00
|
|
|
|
|
|
|
if-nez v4, :cond_2
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
sget-object v4, Ld0/a/l0;->g:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
sget-object v5, Ld0/a/n0;->b:Ld0/a/r1/n;
|
2020-09-16 23:45:23 +00:00
|
|
|
|
|
|
|
invoke-virtual {v4, p1, v1, v5}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
if-eqz v4, :cond_1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_2
|
2020-09-22 07:09:10 +00:00
|
|
|
instance-of v5, v4, Ld0/a/r1/i;
|
2020-09-16 23:45:23 +00:00
|
|
|
|
|
|
|
if-eqz v5, :cond_3
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
check-cast v4, Ld0/a/r1/i;
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
invoke-virtual {v4}, Ld0/a/r1/i;->b()Z
|
2020-09-16 23:45:23 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_3
|
2020-09-22 07:09:10 +00:00
|
|
|
sget-object v5, Ld0/a/n0;->b:Ld0/a/r1/n;
|
2020-09-16 23:45:23 +00:00
|
|
|
|
|
|
|
if-ne v4, v5, :cond_4
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_4
|
2020-09-22 07:09:10 +00:00
|
|
|
new-instance v5, Ld0/a/r1/i;
|
2020-09-16 23:45:23 +00:00
|
|
|
|
|
|
|
const/16 v6, 0x8
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
invoke-direct {v5, v6, v0}, Ld0/a/r1/i;-><init>(IZ)V
|
2020-09-16 23:45:23 +00:00
|
|
|
|
|
|
|
move-object v6, v4
|
|
|
|
|
|
|
|
check-cast v6, Ljava/lang/Runnable;
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
invoke-virtual {v5, v6}, Ld0/a/r1/i;->a(Ljava/lang/Object;)I
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
sget-object v6, Ld0/a/l0;->g:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
|
2020-09-16 23:45:23 +00:00
|
|
|
|
|
|
|
invoke-virtual {v6, p1, v4, v5}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
if-eqz v4, :cond_1
|
|
|
|
|
|
|
|
:goto_0
|
2020-09-22 07:09:10 +00:00
|
|
|
invoke-virtual {p1}, Ld0/a/l0;->H()J
|
2020-09-16 23:45:23 +00:00
|
|
|
|
|
|
|
move-result-wide v4
|
|
|
|
|
|
|
|
cmp-long v0, v4, v2
|
|
|
|
|
|
|
|
if-gtz v0, :cond_5
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
invoke-static {}, Ljava/lang/System;->nanoTime()J
|
|
|
|
|
|
|
|
move-result-wide v2
|
|
|
|
|
|
|
|
:goto_1
|
2020-09-22 07:09:10 +00:00
|
|
|
iget-object v0, p1, Ld0/a/l0;->_delayed:Ljava/lang/Object;
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
check-cast v0, Ld0/a/l0$c;
|
2020-09-16 23:45:23 +00:00
|
|
|
|
|
|
|
if-eqz v0, :cond_7
|
|
|
|
|
|
|
|
monitor-enter v0
|
|
|
|
|
|
|
|
:try_start_0
|
2020-09-22 07:09:10 +00:00
|
|
|
iget v4, v0, Ld0/a/r1/q;->_size:I
|
2020-09-16 23:45:23 +00:00
|
|
|
|
|
|
|
if-lez v4, :cond_6
|
|
|
|
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
invoke-virtual {v0, v4}, Ld0/a/r1/q;->c(I)Ld0/a/r1/r;
|
2020-09-16 23:45:23 +00:00
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
:try_end_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
move-object v4, v1
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
monitor-exit v0
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
check-cast v4, Ld0/a/l0$b;
|
2020-09-16 23:45:23 +00:00
|
|
|
|
|
|
|
if-eqz v4, :cond_7
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
sget-object v0, Ld0/a/z;->j:Ld0/a/z;
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
invoke-virtual {v0, v2, v3, v4}, Ld0/a/l0;->I(JLd0/a/l0$b;)V
|
2020-09-16 23:45:23 +00:00
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
move-exception p1
|
|
|
|
|
|
|
|
monitor-exit v0
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
|
|
|
|
:cond_7
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final v(Z)J
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
|
|
|
const-wide v0, 0x100000000L
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-wide/16 v0, 0x1
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
return-wide v0
|
|
|
|
.end method
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
.method public final x(Ld0/a/f0;)V
|
2020-09-16 23:45:23 +00:00
|
|
|
.locals 12
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
2020-09-22 07:09:10 +00:00
|
|
|
"Ld0/a/f0<",
|
2020-09-16 23:45:23 +00:00
|
|
|
"*>;)V"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
iget-object v0, p0, Ld0/a/k0;->f:Ld0/a/r1/a;
|
2020-09-16 23:45:23 +00:00
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
2020-09-22 07:09:10 +00:00
|
|
|
new-instance v0, Ld0/a/r1/a;
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
invoke-direct {v0}, Ld0/a/r1/a;-><init>()V
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
iput-object v0, p0, Ld0/a/k0;->f:Ld0/a/r1/a;
|
2020-09-16 23:45:23 +00:00
|
|
|
|
|
|
|
:goto_0
|
2020-09-22 07:09:10 +00:00
|
|
|
iget-object v1, v0, Ld0/a/r1/a;->a:[Ljava/lang/Object;
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
iget v2, v0, Ld0/a/r1/a;->c:I
|
2020-09-16 23:45:23 +00:00
|
|
|
|
|
|
|
aput-object p1, v1, v2
|
|
|
|
|
|
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
|
|
|
|
array-length p1, v1
|
|
|
|
|
|
|
|
add-int/lit8 p1, p1, -0x1
|
|
|
|
|
|
|
|
and-int/2addr p1, v2
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
iput p1, v0, Ld0/a/r1/a;->c:I
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
iget v4, v0, Ld0/a/r1/a;->b:I
|
2020-09-16 23:45:23 +00:00
|
|
|
|
|
|
|
if-ne p1, v4, :cond_1
|
|
|
|
|
|
|
|
array-length p1, v1
|
|
|
|
|
|
|
|
shl-int/lit8 v2, p1, 0x1
|
|
|
|
|
|
|
|
new-array v11, v2, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
const/4 v5, 0x0
|
|
|
|
|
|
|
|
const/16 v6, 0xa
|
|
|
|
|
|
|
|
move-object v2, v11
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
invoke-static/range {v1 .. v6}, Lc0/i/f;->copyInto$default([Ljava/lang/Object;[Ljava/lang/Object;IIII)[Ljava/lang/Object;
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
iget-object v5, v0, Ld0/a/r1/a;->a:[Ljava/lang/Object;
|
2020-09-16 23:45:23 +00:00
|
|
|
|
|
|
|
array-length v1, v5
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
iget v9, v0, Ld0/a/r1/a;->b:I
|
2020-09-16 23:45:23 +00:00
|
|
|
|
|
|
|
sub-int v7, v1, v9
|
|
|
|
|
|
|
|
const/4 v8, 0x0
|
|
|
|
|
|
|
|
const/4 v10, 0x4
|
|
|
|
|
|
|
|
move-object v6, v11
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
invoke-static/range {v5 .. v10}, Lc0/i/f;->copyInto$default([Ljava/lang/Object;[Ljava/lang/Object;IIII)[Ljava/lang/Object;
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
iput-object v11, v0, Ld0/a/r1/a;->a:[Ljava/lang/Object;
|
2020-09-16 23:45:23 +00:00
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
iput v1, v0, Ld0/a/r1/a;->b:I
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
iput p1, v0, Ld0/a/r1/a;->c:I
|
2020-09-16 23:45:23 +00:00
|
|
|
|
|
|
|
:cond_1
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final y(Z)V
|
|
|
|
.locals 4
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
iget-wide v0, p0, Ld0/a/k0;->d:J
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
invoke-virtual {p0, p1}, Ld0/a/k0;->v(Z)J
|
2020-09-16 23:45:23 +00:00
|
|
|
|
|
|
|
move-result-wide v2
|
|
|
|
|
|
|
|
add-long/2addr v2, v0
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
iput-wide v2, p0, Ld0/a/k0;->d:J
|
2020-09-16 23:45:23 +00:00
|
|
|
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
iput-boolean p1, p0, Ld0/a/k0;->e:Z
|
2020-09-16 23:45:23 +00:00
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final z()Z
|
|
|
|
.locals 6
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
iget-wide v0, p0, Ld0/a/k0;->d:J
|
2020-09-16 23:45:23 +00:00
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
invoke-virtual {p0, v2}, Ld0/a/k0;->v(Z)J
|
2020-09-16 23:45:23 +00:00
|
|
|
|
|
|
|
move-result-wide v3
|
|
|
|
|
|
|
|
cmp-long v5, v0, v3
|
|
|
|
|
|
|
|
if-ltz v5, :cond_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
return v2
|
2020-05-17 12:40:10 +00:00
|
|
|
.end method
|