f.smali
.class public final Lcom/garena/oktcp/internal/f;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/google/android/play/core/internal/w0;
.implements Lcom/google/android/gms/tasks/Continuation;
.implements Lcom/shopee/addon/userinfo/d;
# instance fields
.field public a:Ljava/lang/Object;
.field public b:Ljava/lang/Object;
# direct methods
.method public synthetic constructor <init>(Lcom/shopee/sz/endpoint/endpointservice/monitor/a;)V
.registers 2
.line 2
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 3
iput-object p1, p0, Lcom/garena/oktcp/internal/f;->a:Ljava/lang/Object;
return-void
.end method
.method public synthetic constructor <init>(Ljava/lang/Object;Ljava/lang/Object;)V
.registers 3
.line 1
iput-object p1, p0, Lcom/garena/oktcp/internal/f;->a:Ljava/lang/Object;
iput-object p2, p0, Lcom/garena/oktcp/internal/f;->b:Ljava/lang/Object;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final a()Lcom/shopee/addon/userinfo/proto/a;
.registers 8
.line 1
iget-object v0, p0, Lcom/garena/oktcp/internal/f;->a:Ljava/lang/Object;
check-cast v0, Lcom/shopee/app/data/store/n0;
invoke-interface {v0}, Lcom/shopee/app/data/store/n0;->q()Lcom/shopee/plugins/accountfacade/data/model/UserInfo;
move-result-object v0
const-wide/16 v1, 0x0
if-eqz v0, :cond_11
.line 2
invoke-virtual {v0}, Lcom/shopee/plugins/accountfacade/data/model/UserInfo;->getUserId()J
move-result-wide v3
goto :goto_12
:cond_11
move-wide v3, v1
:goto_12
cmp-long v5, v3, v1
if-nez v5, :cond_18
const/4 v1, 0x0
goto :goto_23
.line 3
:cond_18
sget-object v1, Lcom/shopee/app/util/client/c;->a:Lcom/shopee/app/util/client/c;
invoke-virtual {v1}, Lcom/shopee/app/util/client/c;->b()Z
move-result v1
if-eqz v1, :cond_22
const/4 v1, 0x2
goto :goto_23
:cond_22
const/4 v1, 0x1
:goto_23
const/4 v2, 0x0
if-eqz v0, :cond_2f
.line 4
invoke-virtual {v0}, Lcom/shopee/plugins/accountfacade/data/model/UserInfo;->getShopId()J
move-result-wide v5
invoke-static {v5, v6}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;
move-result-object v5
goto :goto_30
:cond_2f
move-object v5, v2
.line 5
:goto_30
new-instance v6, Lcom/shopee/addon/userinfo/proto/a$a;
invoke-direct {v6}, Lcom/shopee/addon/userinfo/proto/a$a;-><init>()V
.line 6
invoke-static {v3, v4}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;
move-result-object v3
.line 7
iput-object v3, v6, Lcom/shopee/addon/userinfo/proto/a$a;->a:Ljava/lang/String;
.line 8
iput-object v5, v6, Lcom/shopee/addon/userinfo/proto/a$a;->e:Ljava/lang/String;
if-eqz v0, :cond_44
.line 9
invoke-virtual {v0}, Lcom/shopee/plugins/accountfacade/data/model/UserInfo;->getUsername()Ljava/lang/String;
move-result-object v3
goto :goto_45
:cond_44
move-object v3, v2
.line 10
:goto_45
iput-object v3, v6, Lcom/shopee/addon/userinfo/proto/a$a;->c:Ljava/lang/String;
if-eqz v0, :cond_4d
.line 11
invoke-virtual {v0}, Lcom/shopee/plugins/accountfacade/data/model/UserInfo;->getToken()Ljava/lang/String;
move-result-object v2
.line 12
:cond_4d
iput-object v2, v6, Lcom/shopee/addon/userinfo/proto/a$a;->d:Ljava/lang/String;
.line 13
iput v1, v6, Lcom/shopee/addon/userinfo/proto/a$a;->b:I
.line 14
new-instance v0, Lcom/shopee/addon/userinfo/proto/a;
invoke-direct {v0, v6}, Lcom/shopee/addon/userinfo/proto/a;-><init>(Lcom/shopee/addon/userinfo/proto/a$a;)V
return-object v0
.end method
.method public final b()Lcom/shopee/addon/userinfo/proto/l;
.registers 5
.line 1
sget-object v0, Lcom/shopee/app/util/client/c;->a:Lcom/shopee/app/util/client/c;
invoke-virtual {v0}, Lcom/shopee/app/util/client/c;->b()Z
move-result v0
if-eqz v0, :cond_12
.line 2
new-instance v0, Lcom/shopee/addon/userinfo/proto/l$a;
invoke-direct {v0}, Lcom/shopee/addon/userinfo/proto/l$a;-><init>()V
invoke-virtual {v0}, Lcom/shopee/addon/userinfo/proto/l$a;->a()Lcom/shopee/addon/userinfo/proto/l;
move-result-object v0
return-object v0
.line 3
:cond_12
iget-object v0, p0, Lcom/garena/oktcp/internal/f;->a:Ljava/lang/Object;
check-cast v0, Lcom/shopee/app/data/store/n0;
invoke-interface {v0}, Lcom/shopee/app/data/store/n0;->q()Lcom/shopee/plugins/accountfacade/data/model/UserInfo;
move-result-object v0
if-eqz v0, :cond_46
.line 4
new-instance v1, Lcom/shopee/addon/userinfo/proto/l$a;
invoke-direct {v1}, Lcom/shopee/addon/userinfo/proto/l$a;-><init>()V
.line 5
invoke-virtual {v0}, Lcom/shopee/plugins/accountfacade/data/model/UserInfo;->getUserId()J
move-result-wide v2
invoke-static {v2, v3}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;
move-result-object v2
.line 6
iput-object v2, v1, Lcom/shopee/addon/userinfo/proto/l$a;->b:Ljava/lang/String;
.line 7
invoke-virtual {v0}, Lcom/shopee/plugins/accountfacade/data/model/UserInfo;->getShopId()J
move-result-wide v2
invoke-static {v2, v3}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;
move-result-object v2
.line 8
iput-object v2, v1, Lcom/shopee/addon/userinfo/proto/l$a;->c:Ljava/lang/String;
.line 9
invoke-virtual {v0}, Lcom/shopee/plugins/accountfacade/data/model/UserInfo;->getUsername()Ljava/lang/String;
move-result-object v2
.line 10
iput-object v2, v1, Lcom/shopee/addon/userinfo/proto/l$a;->d:Ljava/lang/String;
.line 11
invoke-virtual {v0}, Lcom/shopee/plugins/accountfacade/data/model/UserInfo;->getToken()Ljava/lang/String;
move-result-object v0
.line 12
iput-object v0, v1, Lcom/shopee/addon/userinfo/proto/l$a;->a:Ljava/lang/String;
.line 13
invoke-virtual {v1}, Lcom/shopee/addon/userinfo/proto/l$a;->a()Lcom/shopee/addon/userinfo/proto/l;
move-result-object v0
return-object v0
.line 14
:cond_46
new-instance v0, Lcom/shopee/addon/userinfo/proto/l$a;
invoke-direct {v0}, Lcom/shopee/addon/userinfo/proto/l$a;-><init>()V
invoke-virtual {v0}, Lcom/shopee/addon/userinfo/proto/l$a;->a()Lcom/shopee/addon/userinfo/proto/l;
move-result-object v0
return-object v0
.end method
.method public final c()Z
.registers 4
iget-object v0, p0, Lcom/garena/oktcp/internal/f;->a:Ljava/lang/Object;
check-cast v0, Lcom/shopee/app/data/store/n0;
invoke-interface {v0}, Lcom/shopee/app/data/store/n0;->q()Lcom/shopee/plugins/accountfacade/data/model/UserInfo;
move-result-object v0
const/4 v1, 0x1
const/4 v2, 0x0
if-eqz v0, :cond_14
invoke-virtual {v0}, Lcom/shopee/plugins/accountfacade/data/model/UserInfo;->getHasPassword()Z
move-result v0
if-ne v0, v1, :cond_14
const/4 v0, 0x1
goto :goto_15
:cond_14
const/4 v0, 0x0
:goto_15
if-eqz v0, :cond_20
sget-object v0, Lcom/shopee/app/util/client/c;->a:Lcom/shopee/app/util/client/c;
invoke-virtual {v0}, Lcom/shopee/app/util/client/c;->b()Z
move-result v0
if-nez v0, :cond_20
goto :goto_21
:cond_20
const/4 v1, 0x0
:goto_21
return v1
.end method
.method public final d()Z
.registers 4
iget-object v0, p0, Lcom/garena/oktcp/internal/f;->a:Ljava/lang/Object;
check-cast v0, Lcom/shopee/app/data/store/n0;
invoke-interface {v0}, Lcom/shopee/app/data/store/n0;->q()Lcom/shopee/plugins/accountfacade/data/model/UserInfo;
move-result-object v0
const/4 v1, 0x1
const/4 v2, 0x0
if-eqz v0, :cond_14
invoke-virtual {v0}, Lcom/shopee/plugins/accountfacade/data/model/UserInfo;->isLoggedIn()Z
move-result v0
if-ne v0, v1, :cond_14
const/4 v0, 0x1
goto :goto_15
:cond_14
const/4 v0, 0x0
:goto_15
if-eqz v0, :cond_20
sget-object v0, Lcom/shopee/app/util/client/c;->a:Lcom/shopee/app/util/client/c;
invoke-virtual {v0}, Lcom/shopee/app/util/client/c;->b()Z
move-result v0
if-nez v0, :cond_20
goto :goto_21
:cond_20
const/4 v1, 0x0
:goto_21
return v1
.end method
.method public final e()Lcom/shopee/addon/userinfo/proto/j;
.registers 5
.line 1
iget-object v0, p0, Lcom/garena/oktcp/internal/f;->b:Ljava/lang/Object;
check-cast v0, Lcom/shopee/app/network/http/api/w;
.line 2
sget-object v1, Lcom/shopee/app/network/http/data/user/GetLoginNonceRequest;->Companion:Lcom/shopee/app/network/http/data/user/GetLoginNonceRequest$Companion;
invoke-virtual {v1}, Lcom/shopee/app/network/http/data/user/GetLoginNonceRequest$Companion;->getEMPTY()Lcom/shopee/app/network/http/data/user/GetLoginNonceRequest;
move-result-object v1
const/4 v2, 0x1
.line 3
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
.line 4
invoke-interface {v0, v1, v2}, Lcom/shopee/app/network/http/api/w;->a(Lcom/shopee/app/network/http/data/user/GetLoginNonceRequest;Ljava/lang/Integer;)Lretrofit2/b;
move-result-object v0
.line 5
invoke-interface {v0}, Lretrofit2/b;->execute()Lretrofit2/x;
move-result-object v0
.line 6
iget-object v0, v0, Lretrofit2/x;->b:Ljava/lang/Object;
.line 7
check-cast v0, Lcom/shopee/app/network/http/data/user/GetLoginNonceResponse;
if-eqz v0, :cond_37
.line 8
new-instance v1, Lcom/shopee/addon/userinfo/proto/j;
invoke-virtual {v0}, Lcom/shopee/app/network/http/data/user/GetLoginNonceResponse;->getError()Ljava/lang/Integer;
move-result-object v2
invoke-virtual {v0}, Lcom/shopee/app/network/http/data/user/GetLoginNonceResponse;->getData()Lcom/shopee/app/network/http/data/user/GetLoginNonceResponseInner;
move-result-object v3
if-eqz v3, :cond_2e
invoke-virtual {v3}, Lcom/shopee/app/network/http/data/user/GetLoginNonceResponseInner;->getNonce()Ljava/lang/String;
move-result-object v3
goto :goto_2f
:cond_2e
const/4 v3, 0x0
:goto_2f
invoke-virtual {v0}, Lcom/shopee/app/network/http/data/user/GetLoginNonceResponse;->getErrorMsg()Ljava/lang/String;
move-result-object v0
invoke-direct {v1, v2, v3, v0}, Lcom/shopee/addon/userinfo/proto/j;-><init>(Ljava/lang/Integer;Ljava/lang/String;Ljava/lang/String;)V
return-object v1
.line 9
:cond_37
new-instance v0, Ljava/lang/RuntimeException;
const-string v1, "Nonce response is not suitable with "
.line 10
invoke-static {v1}, Landroid/support/v4/media/c;->c(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
.line 11
const-class v2, Lcom/shopee/app/network/http/data/user/GetLoginNonceResponse;
.line 12
invoke-static {v2, v1}, Landroidx/appcompat/view/f;->c(Ljava/lang/Class;Ljava/lang/StringBuilder;)Ljava/lang/String;
move-result-object v1
.line 13
invoke-direct {v0, v1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public final f(Lcom/shopee/addon/userinfo/proto/k;)V
.registers 4
.line 1
new-instance v0, Lcom/facebook/appevents/suggestedevents/c;
const/4 v1, 0x1
invoke-direct {v0, p0, p1, v1}, Lcom/facebook/appevents/suggestedevents/c;-><init>(Ljava/lang/Object;Ljava/lang/Object;I)V
.line 2
invoke-static {}, Lcom/shopee/app/asm/anr/threadpool/c;->b()Z
move-result p1
if-eqz p1, :cond_29
invoke-static {}, Lcom/shopee/app/asm/anr/threadpool/c;->a()Z
move-result p1
if-eqz p1, :cond_29
.line 3
:try_start_12
sget-object p1, Lcom/shopee/app/asm/anr/threadpool/c;->b:Landroid/os/Handler;
new-instance v1, Lcom/shopee/app/asm/anr/threadpool/a$a;
invoke-direct {v1, v0}, Lcom/shopee/app/asm/anr/threadpool/a$a;-><init>(Ljava/lang/Runnable;)V
invoke-virtual {p1, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
.line 4
sget-object p1, Lcom/shopee/app/asm/anr/threadpool/c;->a:Landroid/os/HandlerThread;
:try_end_1e
.catchall {:try_start_12 .. :try_end_1e} :catchall_1f
goto :goto_2c
:catchall_1f
move-exception p1
.line 5
invoke-virtual {p1}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
sget-object p1, Lcom/shopee/app/asm/anr/threadpool/c;->a:Landroid/os/HandlerThread;
.line 6
invoke-static {v0}, Lorg/androidannotations/api/a;->c(Ljava/lang/Runnable;)V
goto :goto_2c
.line 7
:cond_29
invoke-static {v0}, Lorg/androidannotations/api/a;->c(Ljava/lang/Runnable;)V
:goto_2c
return-void
.end method
.method public final then(Lcom/google/android/gms/tasks/Task;)Ljava/lang/Object;
.registers 5
iget-object v0, p0, Lcom/garena/oktcp/internal/f;->a:Ljava/lang/Object;
check-cast v0, Lcom/google/firebase/iid/l;
iget-object v1, p0, Lcom/garena/oktcp/internal/f;->b:Ljava/lang/Object;
check-cast v1, Landroid/util/Pair;
.line 1
monitor-enter v0
:try_start_9
iget-object v2, v0, Lcom/google/firebase/iid/l;->b:Landroidx/collection/a;
.line 2
invoke-virtual {v2, v1}, Landroidx/collection/g;->remove(Ljava/lang/Object;)Ljava/lang/Object;
.line 3
monitor-exit v0
return-object p1
:catchall_10
move-exception p1
monitor-exit v0
:try_end_12
.catchall {:try_start_9 .. :try_end_12} :catchall_10
throw p1
.end method
.method public final bridge synthetic zza()Ljava/lang/Object;
.registers 4
iget-object v0, p0, Lcom/garena/oktcp/internal/f;->a:Ljava/lang/Object;
check-cast v0, Lcom/google/android/play/core/internal/w0;
check-cast v0, Lcom/google/android/play/core/assetpacks/x2;
.line 1
invoke-virtual {v0}, Lcom/google/android/play/core/assetpacks/x2;->a()Landroid/content/Context;
move-result-object v0
iget-object v1, p0, Lcom/garena/oktcp/internal/f;->b:Ljava/lang/Object;
check-cast v1, Lcom/google/android/play/core/internal/w0;
invoke-interface {v1}, Lcom/google/android/play/core/internal/w0;->zza()Ljava/lang/Object;
move-result-object v1
.line 2
new-instance v2, Lcom/google/android/play/core/assetpacks/a0;
check-cast v1, Lcom/google/android/play/core/assetpacks/c2;
invoke-direct {v2, v0, v1}, Lcom/google/android/play/core/assetpacks/a0;-><init>(Landroid/content/Context;Lcom/google/android/play/core/assetpacks/c2;)V
return-object v2
.end method