d$a.smali

.class public final Lcom/garena/reactpush/util/d$a;
.super Ljava/lang/Thread;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/garena/reactpush/util/d;->c()Lokhttp3/Call;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x1
    name = null
.end annotation


# instance fields
.field public final synthetic a:Lcom/garena/reactpush/util/d;


# direct methods
.method public constructor <init>(Lcom/garena/reactpush/util/d;)V
    .registers 2

    iput-object p1, p0, Lcom/garena/reactpush/util/d$a;->a:Lcom/garena/reactpush/util/d;

    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public final run()V
    .registers 8

    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
    const-string v1, "runnable"

    const-string v2, "com/garena/reactpush/util/FileSync$1"

    const-string v3, "run"

    if-eqz v0, :cond_18

    invoke-static {v3, v2, v1}, Lcom/shopee/monitor/trace/c;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 1
    :cond_18
    :try_start_18
    iget-object v4, p0, Lcom/garena/reactpush/util/d$a;->a:Lcom/garena/reactpush/util/d;

    iget-object v5, v4, Lcom/garena/reactpush/util/d;->g:Lokhttp3/Call;

    invoke-static {v5}, Lcom/google/firebase/perf/network/FirebasePerfOkHttpClient;->execute(Lokhttp3/Call;)Lokhttp3/Response;

    move-result-object v6

    invoke-virtual {v4, v5, v6}, Lcom/garena/reactpush/util/d;->onResponse(Lokhttp3/Call;Lokhttp3/Response;)V
    :try_end_23
    .catch Ljava/io/IOException; {:try_start_18 .. :try_end_23} :catch_2b
    .catch Ljava/lang/Exception; {:try_start_18 .. :try_end_23} :catch_24

    goto :goto_33

    :catch_24
    move-exception v4

    .line 2
    sget-object v5, Lcom/garena/reactpush/a;->e:Lcom/garena/reactpush/util/i;

    invoke-interface {v5, v4}, Lcom/garena/reactpush/util/i;->b(Ljava/lang/Throwable;)V

    goto :goto_33

    :catch_2b
    move-exception v4

    .line 3
    iget-object v5, p0, Lcom/garena/reactpush/util/d$a;->a:Lcom/garena/reactpush/util/d;

    iget-object v6, v5, Lcom/garena/reactpush/util/d;->g:Lokhttp3/Call;

    invoke-virtual {v5, v6, v4}, Lcom/garena/reactpush/util/d;->onFailure(Lokhttp3/Call;Ljava/io/IOException;)V

    :goto_33
    if-eqz v0, :cond_38

    .line 4
    invoke-static {v3, v2, v1}, Lcom/shopee/monitor/trace/c;->b(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    :cond_38
    return-void
.end method