354 lines
5.5 KiB
Smali
354 lines
5.5 KiB
Smali
.class public final Ly/b$a;
|
|
.super Ljava/lang/Object;
|
|
.source "AsyncTimeout.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Ly/b;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = "a"
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public synthetic constructor <init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a()Ly/b;
|
|
.locals 9
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/lang/InterruptedException;
|
|
}
|
|
.end annotation
|
|
|
|
const-class v0, Ly/b;
|
|
|
|
sget-object v1, Ly/b;->j:Ly/b;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-eqz v1, :cond_5
|
|
|
|
iget-object v1, v1, Ly/b;->f:Ly/b;
|
|
|
|
if-nez v1, :cond_2
|
|
|
|
invoke-static {}, Ljava/lang/System;->nanoTime()J
|
|
|
|
move-result-wide v3
|
|
|
|
sget-wide v5, Ly/b;->h:J
|
|
|
|
invoke-virtual {v0, v5, v6}, Ljava/lang/Object;->wait(J)V
|
|
|
|
sget-object v0, Ly/b;->j:Ly/b;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iget-object v0, v0, Ly/b;->f:Ly/b;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
invoke-static {}, Ljava/lang/System;->nanoTime()J
|
|
|
|
move-result-wide v0
|
|
|
|
sub-long/2addr v0, v3
|
|
|
|
sget-wide v3, Ly/b;->i:J
|
|
|
|
cmp-long v5, v0, v3
|
|
|
|
if-ltz v5, :cond_0
|
|
|
|
sget-object v2, Ly/b;->j:Ly/b;
|
|
|
|
:cond_0
|
|
return-object v2
|
|
|
|
:cond_1
|
|
invoke-static {}, Lt/u/b/j;->throwNpe()V
|
|
|
|
throw v2
|
|
|
|
:cond_2
|
|
invoke-static {}, Ljava/lang/System;->nanoTime()J
|
|
|
|
move-result-wide v3
|
|
|
|
iget-wide v5, v1, Ly/b;->g:J
|
|
|
|
sub-long/2addr v5, v3
|
|
|
|
const-wide/16 v3, 0x0
|
|
|
|
cmp-long v7, v5, v3
|
|
|
|
if-lez v7, :cond_3
|
|
|
|
const-wide/32 v3, 0xf4240
|
|
|
|
div-long v7, v5, v3
|
|
|
|
mul-long v3, v3, v7
|
|
|
|
sub-long/2addr v5, v3
|
|
|
|
long-to-int v1, v5
|
|
|
|
invoke-virtual {v0, v7, v8, v1}, Ljava/lang/Object;->wait(JI)V
|
|
|
|
return-object v2
|
|
|
|
:cond_3
|
|
sget-object v0, Ly/b;->j:Ly/b;
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
iget-object v3, v1, Ly/b;->f:Ly/b;
|
|
|
|
iput-object v3, v0, Ly/b;->f:Ly/b;
|
|
|
|
iput-object v2, v1, Ly/b;->f:Ly/b;
|
|
|
|
return-object v1
|
|
|
|
:cond_4
|
|
invoke-static {}, Lt/u/b/j;->throwNpe()V
|
|
|
|
throw v2
|
|
|
|
:cond_5
|
|
invoke-static {}, Lt/u/b/j;->throwNpe()V
|
|
|
|
throw v2
|
|
.end method
|
|
|
|
.method public final a(Ly/b;JZ)V
|
|
.locals 8
|
|
|
|
const-class v0, Ly/b;
|
|
|
|
monitor-enter v0
|
|
|
|
:try_start_0
|
|
sget-object v1, Ly/b;->j:Ly/b;
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
new-instance v1, Ly/b;
|
|
|
|
invoke-direct {v1}, Ly/b;-><init>()V
|
|
|
|
sput-object v1, Ly/b;->j:Ly/b;
|
|
|
|
new-instance v1, Ly/b$b;
|
|
|
|
invoke-direct {v1}, Ly/b$b;-><init>()V
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Thread;->start()V
|
|
|
|
:cond_0
|
|
invoke-static {}, Ljava/lang/System;->nanoTime()J
|
|
|
|
move-result-wide v1
|
|
|
|
const-wide/16 v3, 0x0
|
|
|
|
cmp-long v5, p2, v3
|
|
|
|
if-eqz v5, :cond_1
|
|
|
|
if-eqz p4, :cond_1
|
|
|
|
invoke-virtual {p1}, Ly/x;->c()J
|
|
|
|
move-result-wide v3
|
|
|
|
sub-long/2addr v3, v1
|
|
|
|
invoke-static {p2, p3, v3, v4}, Ljava/lang/Math;->min(JJ)J
|
|
|
|
move-result-wide p2
|
|
|
|
add-long/2addr p2, v1
|
|
|
|
iput-wide p2, p1, Ly/b;->g:J
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
if-eqz v5, :cond_2
|
|
|
|
add-long/2addr p2, v1
|
|
|
|
iput-wide p2, p1, Ly/b;->g:J
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
if-eqz p4, :cond_8
|
|
|
|
invoke-virtual {p1}, Ly/x;->c()J
|
|
|
|
move-result-wide p2
|
|
|
|
iput-wide p2, p1, Ly/b;->g:J
|
|
|
|
:goto_0
|
|
iget-wide p2, p1, Ly/b;->g:J
|
|
|
|
sub-long/2addr p2, v1
|
|
|
|
sget-object p4, Ly/b;->j:Ly/b;
|
|
|
|
const/4 v3, 0x0
|
|
|
|
if-eqz p4, :cond_7
|
|
|
|
:goto_1
|
|
iget-object v4, p4, Ly/b;->f:Ly/b;
|
|
|
|
if-eqz v4, :cond_5
|
|
|
|
iget-object v4, p4, Ly/b;->f:Ly/b;
|
|
|
|
if-eqz v4, :cond_4
|
|
|
|
iget-wide v5, v4, Ly/b;->g:J
|
|
|
|
sub-long/2addr v5, v1
|
|
|
|
cmp-long v7, p2, v5
|
|
|
|
if-gez v7, :cond_3
|
|
|
|
goto :goto_2
|
|
|
|
:cond_3
|
|
move-object p4, v4
|
|
|
|
goto :goto_1
|
|
|
|
:cond_4
|
|
invoke-static {}, Lt/u/b/j;->throwNpe()V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
throw v3
|
|
|
|
:cond_5
|
|
:goto_2
|
|
:try_start_1
|
|
iget-object p2, p4, Ly/b;->f:Ly/b;
|
|
|
|
iput-object p2, p1, Ly/b;->f:Ly/b;
|
|
|
|
iput-object p1, p4, Ly/b;->f:Ly/b;
|
|
|
|
sget-object p1, Ly/b;->j:Ly/b;
|
|
|
|
if-ne p4, p1, :cond_6
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->notify()V
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
:cond_6
|
|
monitor-exit v0
|
|
|
|
return-void
|
|
|
|
:cond_7
|
|
:try_start_2
|
|
invoke-static {}, Lt/u/b/j;->throwNpe()V
|
|
:try_end_2
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
|
|
|
throw v3
|
|
|
|
:cond_8
|
|
:try_start_3
|
|
new-instance p1, Ljava/lang/AssertionError;
|
|
|
|
invoke-direct {p1}, Ljava/lang/AssertionError;-><init>()V
|
|
|
|
throw p1
|
|
:try_end_3
|
|
.catchall {:try_start_3 .. :try_end_3} :catchall_0
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
monitor-exit v0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final a(Ly/b;)Z
|
|
.locals 3
|
|
|
|
const-class v0, Ly/b;
|
|
|
|
monitor-enter v0
|
|
|
|
:try_start_0
|
|
sget-object v1, Ly/b;->j:Ly/b;
|
|
|
|
:goto_0
|
|
if-eqz v1, :cond_1
|
|
|
|
iget-object v2, v1, Ly/b;->f:Ly/b;
|
|
|
|
if-ne v2, p1, :cond_0
|
|
|
|
iget-object v2, p1, Ly/b;->f:Ly/b;
|
|
|
|
iput-object v2, v1, Ly/b;->f:Ly/b;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
iput-object v1, p1, Ly/b;->f:Ly/b;
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
monitor-exit v0
|
|
|
|
return p1
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
move-object v1, v2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 p1, 0x1
|
|
|
|
monitor-exit v0
|
|
|
|
return p1
|
|
|
|
:goto_1
|
|
monitor-exit v0
|
|
|
|
throw p1
|
|
.end method
|