a.smali
.class public final Lcom/singbox/component/f/a;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field public static final a:Lcom/singbox/component/f/a;
.field private static final b:Landroidx/lifecycle/MutableLiveData;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/lifecycle/MutableLiveData<",
"Ljava/lang/Long;",
">;"
}
.end annotation
.end field
.field private static final c:Landroidx/lifecycle/LiveData;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/lifecycle/LiveData<",
"Ljava/lang/Long;",
">;"
}
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.registers 1
.line 11
new-instance v0, Lcom/singbox/component/f/a;
invoke-direct {v0}, Lcom/singbox/component/f/a;-><init>()V
sput-object v0, Lcom/singbox/component/f/a;->a:Lcom/singbox/component/f/a;
.line 13
new-instance v0, Landroidx/lifecycle/MutableLiveData;
invoke-direct {v0}, Landroidx/lifecycle/MutableLiveData;-><init>()V
.line 14
sput-object v0, Lcom/singbox/component/f/a;->b:Landroidx/lifecycle/MutableLiveData;
check-cast v0, Landroidx/lifecycle/LiveData;
sput-object v0, Lcom/singbox/component/f/a;->c:Landroidx/lifecycle/LiveData;
return-void
.end method
.method private constructor <init>()V
.registers 1
.line 11
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static a()Landroidx/lifecycle/LiveData;
.registers 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Landroidx/lifecycle/LiveData<",
"Ljava/lang/Long;",
">;"
}
.end annotation
.line 14
sget-object v0, Lcom/singbox/component/f/a;->c:Landroidx/lifecycle/LiveData;
return-object v0
.end method
# virtual methods
.method public final a(JLkotlin/c/c;)Ljava/lang/Object;
.registers 11
.annotation system Ldalvik/annotation/Signature;
value = {
"(J",
"Lkotlin/c/c<",
"-",
"Ljava/lang/Long;",
">;)",
"Ljava/lang/Object;"
}
.end annotation
instance-of v0, p3, Lcom/singbox/component/f/a$b;
if-eqz v0, :cond_14
move-object v0, p3
check-cast v0, Lcom/singbox/component/f/a$b;
iget v1, v0, Lcom/singbox/component/f/a$b;->b:I
const/high16 v2, -0x80000000
and-int/2addr v1, v2
if-eqz v1, :cond_14
iget p3, v0, Lcom/singbox/component/f/a$b;->b:I
sub-int/2addr p3, v2
iput p3, v0, Lcom/singbox/component/f/a$b;->b:I
goto :goto_19
:cond_14
new-instance v0, Lcom/singbox/component/f/a$b;
invoke-direct {v0, p0, p3}, Lcom/singbox/component/f/a$b;-><init>(Lcom/singbox/component/f/a;Lkotlin/c/c;)V
:goto_19
iget-object p3, v0, Lcom/singbox/component/f/a$b;->a:Ljava/lang/Object;
.line 1054
sget-object v1, Lkotlin/c/a/a;->COROUTINE_SUSPENDED:Lkotlin/c/a/a;
.line 22
iget v2, v0, Lcom/singbox/component/f/a$b;->b:I
const/4 v3, 0x1
if-eqz v2, :cond_32
if-ne v2, v3, :cond_2a
iget-wide p1, v0, Lcom/singbox/component/f/a$b;->i:J
invoke-static {p3}, Lkotlin/o;->a(Ljava/lang/Object;)V
goto :goto_94
.line 31
:cond_2a
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "call to \'resume\' before \'invoke\' with coroutine"
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.line 22
:cond_32
invoke-static {p3}, Lkotlin/o;->a(Ljava/lang/Object;)V
.line 23
new-instance p3, Lcom/singbox/component/backend/proto/profile/c;
invoke-static {p1, p2}, Lkotlin/c/b/a/b;->a(J)Ljava/lang/Long;
move-result-object v2
invoke-direct {p3, v2}, Lcom/singbox/component/backend/proto/profile/c;-><init>(Ljava/lang/Long;)V
.line 24
sget-object v2, Lcom/singbox/component/backend/a;->a:Lcom/singbox/component/backend/a;
.line 36
invoke-static {}, Lsg/bigo/common/p;->b()Z
move-result v4
if-nez v4, :cond_59
.line 37
new-instance p3, Lsg/bigo/httplogin/a/d$a;
const/16 v0, -0x46a0
new-instance v1, Ljava/io/IOException;
const-string v2, "not net"
invoke-direct {v1, v2}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
check-cast v1, Ljava/lang/Throwable;
invoke-direct {p3, v0, v1}, Lsg/bigo/httplogin/a/d$a;-><init>(ILjava/lang/Throwable;)V
check-cast p3, Lsg/bigo/httplogin/a/d;
goto :goto_a6
.line 40
:cond_59
invoke-static {}, Lcom/singbox/component/j/b;->a()Lokhttp3/x;
move-result-object v4
.line 42
iput-object p0, v0, Lcom/singbox/component/f/a$b;->d:Ljava/lang/Object;
iput-wide p1, v0, Lcom/singbox/component/f/a$b;->i:J
iput-object p3, v0, Lcom/singbox/component/f/a$b;->e:Ljava/lang/Object;
iput-object v2, v0, Lcom/singbox/component/f/a$b;->f:Ljava/lang/Object;
const/4 v2, 0x0
iput-object v2, v0, Lcom/singbox/component/f/a$b;->g:Ljava/lang/Object;
iput-object v4, v0, Lcom/singbox/component/f/a$b;->h:Ljava/lang/Object;
iput v3, v0, Lcom/singbox/component/f/a$b;->b:I
.line 43
new-instance v5, Lkotlinx/coroutines/l;
invoke-static {v0}, Lkotlin/c/a/b;->a(Lkotlin/c/c;)Lkotlin/c/c;
move-result-object v6
invoke-direct {v5, v6, v3}, Lkotlinx/coroutines/l;-><init>(Lkotlin/c/c;I)V
.line 47
move-object v3, v5
check-cast v3, Lkotlinx/coroutines/k;
.line 48
check-cast p3, Lsg/bigo/httplogin/a/b;
new-instance v6, Lcom/singbox/component/f/a$a;
invoke-direct {v6, v3}, Lcom/singbox/component/f/a$a;-><init>(Lkotlinx/coroutines/k;)V
check-cast v6, Lsg/bigo/httplogin/a/a;
invoke-static {v4, p3, v6, v2}, Lsg/bigo/httplogin/b/a;->a(Lokhttp3/x;Lsg/bigo/httplogin/a/b;Lsg/bigo/httplogin/a/a;Ljava/lang/String;)V
.line 51
invoke-virtual {v5}, Lkotlinx/coroutines/l;->c()Ljava/lang/Object;
move-result-object p3
.line 2054
sget-object v2, Lkotlin/c/a/a;->COROUTINE_SUSPENDED:Lkotlin/c/a/a;
if-ne p3, v2, :cond_91
const-string v2, "frame"
.line 42
invoke-static {v0, v2}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V
:cond_91
if-ne p3, v1, :cond_94
return-object v1
.line 52
:cond_94
:goto_94
check-cast p3, Lsg/bigo/httplogin/a/d;
.line 53
instance-of v0, p3, Lsg/bigo/httplogin/a/d$a;
if-eqz v0, :cond_a6
move-object v0, p3
check-cast v0, Lsg/bigo/httplogin/a/d$a;
.line 3009
iget v0, v0, Lsg/bigo/httplogin/a/d$a;->a:I
const/16 v1, 0x191
if-ne v0, v1, :cond_a6
.line 54
invoke-static {}, Lcom/singbox/component/backend/a;->a()V
.line 25
:cond_a6
:goto_a6
instance-of v0, p3, Lsg/bigo/httplogin/a/d$b;
if-eqz v0, :cond_d6
check-cast p3, Lsg/bigo/httplogin/a/d$b;
invoke-static {p3}, Lcom/singbox/component/backend/base/b;->a(Lsg/bigo/httplogin/a/d$b;)Z
move-result v0
if-eqz v0, :cond_d6
.line 4007
iget-object p3, p3, Lsg/bigo/httplogin/a/d$b;->a:Ljava/lang/Object;
.line 26
check-cast p3, Lcom/singbox/component/backend/proto/profile/DelMySongResponse;
invoke-virtual {p3}, Lcom/singbox/component/backend/proto/profile/DelMySongResponse;->getData()Ljava/lang/Object;
move-result-object p3
check-cast p3, Lcom/singbox/component/backend/proto/profile/d;
if-eqz p3, :cond_d6
.line 4015
iget-object p3, p3, Lcom/singbox/component/backend/proto/profile/d;->a:Ljava/lang/Long;
if-eqz p3, :cond_d6
.line 26
check-cast p3, Ljava/lang/Number;
invoke-virtual {p3}, Ljava/lang/Number;->longValue()J
move-result-wide v0
.line 27
sget-object p3, Lcom/singbox/component/f/a;->b:Landroidx/lifecycle/MutableLiveData;
invoke-static {p1, p2}, Lkotlin/c/b/a/b;->a(J)Ljava/lang/Long;
move-result-object p1
invoke-virtual {p3, p1}, Landroidx/lifecycle/MutableLiveData;->postValue(Ljava/lang/Object;)V
.line 28
invoke-static {v0, v1}, Lkotlin/c/b/a/b;->a(J)Ljava/lang/Long;
move-result-object p1
return-object p1
:cond_d6
const-wide/16 p1, -0x1
.line 31
invoke-static {p1, p2}, Lkotlin/c/b/a/b;->a(J)Ljava/lang/Long;
move-result-object p1
return-object p1
.end method