g.smali
.class public final Lcom/garena/reactpush/util/g;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field public static final a:Lkotlin/n;
# direct methods
.method public static constructor <clinit>()V
.registers 1
sget-object v0, Lcom/garena/reactpush/util/g$a;->a:Lcom/garena/reactpush/util/g$a;
invoke-static {v0}, Lkotlin/g;->b(Lkotlin/jvm/functions/a;)Lkotlin/f;
move-result-object v0
check-cast v0, Lkotlin/n;
sput-object v0, Lcom/garena/reactpush/util/g;->a:Lkotlin/n;
return-void
.end method
.method public static final a(Ljava/lang/Runnable;)V
.registers 4
.line 1
sget-object v0, Lcom/garena/reactpush/util/g;->a:Lkotlin/n;
invoke-virtual {v0}, Lkotlin/n;->getValue()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/util/concurrent/ExecutorService;
.line 2
invoke-static {}, Lcom/shopee/app/asm/anr/threadpool/c;->b()Z
move-result v1
if-eqz v1, :cond_42
invoke-static {}, Lcom/shopee/app/asm/anr/threadpool/c;->a()Z
move-result v1
if-eqz v1, :cond_42
.line 3
:try_start_14
sget-object v1, Lcom/shopee/app/asm/anr/threadpool/c;->a:Landroid/os/HandlerThread;
.line 4
sget-object v1, Lcom/shopee/app/asm/anr/threadpool/c;->b:Landroid/os/Handler;
new-instance v2, Lcom/shopee/app/asm/anr/threadpool/a$b;
invoke-direct {v2, v0, p0}, Lcom/shopee/app/asm/anr/threadpool/a$b;-><init>(Ljava/util/concurrent/Executor;Ljava/lang/Runnable;)V
invoke-virtual {v1, v2}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
:try_end_20
.catchall {:try_start_14 .. :try_end_20} :catchall_21
goto :goto_5c
:catchall_21
move-exception v1
.line 5
invoke-virtual {v1}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
sget-object v1, Lcom/shopee/app/asm/anr/threadpool/c;->a:Landroid/os/HandlerThread;
.line 6
:try_start_27
invoke-static {p0, v0}, Lcom/shopee/app/asm/anr/threadpool/a;->a(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_33
.line 7
sget-object v0, Lcom/shopee/app/asm/fix/threadpool/global/i;->e:Lcom/shopee/app/asm/fix/threadpool/global/j;
.line 8
invoke-virtual {v0, p0}, Lcom/shopee/app/asm/anr/threadpool/b;->execute(Ljava/lang/Runnable;)V
goto :goto_5c
.line 9
:cond_33
invoke-interface {v0, p0}, Ljava/util/concurrent/Executor;->execute(Ljava/lang/Runnable;)V
:try_end_36
.catchall {:try_start_27 .. :try_end_36} :catchall_37
goto :goto_5c
:catchall_37
move-exception p0
.line 10
sget-object v0, Lcom/shopee/app/asm/anr/threadpool/c;->a:Landroid/os/HandlerThread;
.line 11
invoke-static {}, Lcom/shopee/app/apm/c;->d()Lcom/shopee/app/apm/nonfatal/a;
move-result-object v0
invoke-virtual {v0, p0}, Lcom/shopee/app/apm/nonfatal/a;->c(Ljava/lang/Throwable;)V
goto :goto_5c
.line 12
:cond_42
:try_start_42
invoke-static {p0, v0}, Lcom/shopee/app/asm/anr/threadpool/a;->a(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_4e
.line 13
sget-object v0, Lcom/shopee/app/asm/fix/threadpool/global/i;->e:Lcom/shopee/app/asm/fix/threadpool/global/j;
.line 14
invoke-virtual {v0, p0}, Lcom/shopee/app/asm/anr/threadpool/b;->execute(Ljava/lang/Runnable;)V
goto :goto_5c
.line 15
:cond_4e
invoke-interface {v0, p0}, Ljava/util/concurrent/Executor;->execute(Ljava/lang/Runnable;)V
:try_end_51
.catchall {:try_start_42 .. :try_end_51} :catchall_52
goto :goto_5c
:catchall_52
move-exception p0
.line 16
sget-object v0, Lcom/shopee/app/asm/anr/threadpool/c;->a:Landroid/os/HandlerThread;
.line 17
invoke-static {}, Lcom/shopee/app/apm/c;->d()Lcom/shopee/app/apm/nonfatal/a;
move-result-object v0
invoke-virtual {v0, p0}, Lcom/shopee/app/apm/nonfatal/a;->c(Ljava/lang/Throwable;)V
:goto_5c
return-void
.end method