a$c.smali
.class public final Lokio/a$c;
.super Ljava/lang/Thread;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lokio/a;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "c"
.end annotation
# direct methods
.method public constructor <init>()V
.registers 2
const-string v0, "Okio Watchdog"
.line 1
invoke-direct {p0, v0}, Ljava/lang/Thread;-><init>(Ljava/lang/String;)V
const/4 v0, 0x1
.line 2
invoke-virtual {p0, v0}, Ljava/lang/Thread;->setDaemon(Z)V
return-void
.end method
# virtual methods
.method public final run()V
.registers 6
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
move-result-object v0
invoke-static {}, Landroid/os/Looper;->myLooper()Landroid/os/Looper;
move-result-object v1
if-ne v0, v1, :cond_c
const/4 v0, 0x1
goto :goto_d
:cond_c
const/4 v0, 0x0
:goto_d
if-eqz v0, :cond_18
const-string v1, "run"
const-string v2, "okio/AsyncTimeout$Watchdog"
const-string v3, "runnable"
invoke-static {v1, v2, v3}, Lcom/shopee/monitor/trace/c;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
.line 1
:catch_18
:cond_18
:goto_18
:try_start_18
const-class v1, Lokio/a;
monitor-enter v1
:try_end_1b
.catch Ljava/lang/InterruptedException; {:try_start_18 .. :try_end_1b} :catch_18
.line 2
:try_start_1b
invoke-static {}, Lokio/a;->awaitTimeout()Lokio/a;
move-result-object v2
if-nez v2, :cond_23
.line 3
monitor-exit v1
goto :goto_18
.line 4
:cond_23
sget-object v3, Lokio/a;->head:Lokio/a;
if-ne v2, v3, :cond_37
const/4 v2, 0x0
.line 5
sput-object v2, Lokio/a;->head:Lokio/a;
.line 6
monitor-exit v1
:try_end_2b
.catchall {:try_start_1b .. :try_end_2b} :catchall_3c
if-eqz v0, :cond_36
const-string v0, "run"
const-string v1, "okio/AsyncTimeout$Watchdog"
const-string v2, "runnable"
invoke-static {v0, v1, v2}, Lcom/shopee/monitor/trace/c;->b(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
:cond_36
return-void
.line 7
:cond_37
:try_start_37
monitor-exit v1
:try_end_38
.catchall {:try_start_37 .. :try_end_38} :catchall_3c
.line 8
:try_start_38
invoke-virtual {v2}, Lokio/a;->timedOut()V
:try_end_3b
.catch Ljava/lang/InterruptedException; {:try_start_38 .. :try_end_3b} :catch_18
goto :goto_18
:catchall_3c
move-exception v2
.line 9
:try_start_3d
monitor-exit v1
:try_end_3e
.catchall {:try_start_3d .. :try_end_3e} :catchall_3c
if-eqz v0, :cond_49
:try_start_40
const-string v1, "run"
const-string v3, "okio/AsyncTimeout$Watchdog"
const-string v4, "runnable"
invoke-static {v1, v3, v4}, Lcom/shopee/monitor/trace/c;->b(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
:cond_49
throw v2
:try_end_4a
.catch Ljava/lang/InterruptedException; {:try_start_40 .. :try_end_4a} :catch_18
.end method