EditorRepository$entranceSwitch$1.smali
.class final Lcom/sandboxol/editor/domain/EditorRepository$entranceSwitch$1;
.super Lkotlin/coroutines/jvm/internal/SuspendLambda;
.source "EditorRepository.kt"
# interfaces
.implements Lkotlin/jvm/a/p;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/sandboxol/editor/domain/d;->a(Lkotlinx/coroutines/F;Ljava/lang/String;ZLrx/functions/Action1;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/coroutines/jvm/internal/SuspendLambda;",
"Lkotlin/jvm/a/p<",
"Lkotlinx/coroutines/F;",
"Lkotlin/coroutines/c<",
"-",
"Lkotlin/n;",
">;",
"Ljava/lang/Object;",
">;"
}
.end annotation
.annotation runtime Lkotlin/coroutines/jvm/internal/d;
c = "com.sandboxol.editor.domain.EditorRepository$entranceSwitch$1"
f = "EditorRepository.kt"
l = {
0x91
}
m = "invokeSuspend"
.end annotation
# instance fields
.field final synthetic $callback:Lrx/functions/Action1;
.field final synthetic $on:Z
.field final synthetic $request:Lcom/sandboxol/center/entity/request/EntranceSwitchRequest;
.field label:I
# direct methods
.method constructor <init>(Lcom/sandboxol/center/entity/request/EntranceSwitchRequest;Lrx/functions/Action1;ZLkotlin/coroutines/c;)V
.registers 5
iput-object p1, p0, Lcom/sandboxol/editor/domain/EditorRepository$entranceSwitch$1;->$request:Lcom/sandboxol/center/entity/request/EntranceSwitchRequest;
iput-object p2, p0, Lcom/sandboxol/editor/domain/EditorRepository$entranceSwitch$1;->$callback:Lrx/functions/Action1;
iput-boolean p3, p0, Lcom/sandboxol/editor/domain/EditorRepository$entranceSwitch$1;->$on:Z
const/4 p1, 0x2
invoke-direct {p0, p1, p4}, Lkotlin/coroutines/jvm/internal/SuspendLambda;-><init>(ILkotlin/coroutines/c;)V
return-void
.end method
# virtual methods
.method public final create(Ljava/lang/Object;Lkotlin/coroutines/c;)Lkotlin/coroutines/c;
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Object;",
"Lkotlin/coroutines/c<",
"*>;)",
"Lkotlin/coroutines/c<",
"Lkotlin/n;",
">;"
}
.end annotation
const-string p1, "completion"
invoke-static {p2, p1}, Lkotlin/jvm/internal/i;->c(Ljava/lang/Object;Ljava/lang/String;)V
new-instance p1, Lcom/sandboxol/editor/domain/EditorRepository$entranceSwitch$1;
iget-object v0, p0, Lcom/sandboxol/editor/domain/EditorRepository$entranceSwitch$1;->$request:Lcom/sandboxol/center/entity/request/EntranceSwitchRequest;
iget-object v1, p0, Lcom/sandboxol/editor/domain/EditorRepository$entranceSwitch$1;->$callback:Lrx/functions/Action1;
iget-boolean v2, p0, Lcom/sandboxol/editor/domain/EditorRepository$entranceSwitch$1;->$on:Z
invoke-direct {p1, v0, v1, v2, p2}, Lcom/sandboxol/editor/domain/EditorRepository$entranceSwitch$1;-><init>(Lcom/sandboxol/center/entity/request/EntranceSwitchRequest;Lrx/functions/Action1;ZLkotlin/coroutines/c;)V
return-object p1
.end method
.method public final invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.registers 3
check-cast p2, Lkotlin/coroutines/c;
invoke-virtual {p0, p1, p2}, Lcom/sandboxol/editor/domain/EditorRepository$entranceSwitch$1;->create(Ljava/lang/Object;Lkotlin/coroutines/c;)Lkotlin/coroutines/c;
move-result-object p1
check-cast p1, Lcom/sandboxol/editor/domain/EditorRepository$entranceSwitch$1;
sget-object p2, Lkotlin/n;->a:Lkotlin/n;
invoke-virtual {p1, p2}, Lcom/sandboxol/editor/domain/EditorRepository$entranceSwitch$1;->invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public final invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
.registers 5
invoke-static {}, Lkotlin/coroutines/intrinsics/a;->a()Ljava/lang/Object;
move-result-object v0
.line 1
iget v1, p0, Lcom/sandboxol/editor/domain/EditorRepository$entranceSwitch$1;->label:I
const/4 v2, 0x1
if-eqz v1, :cond_17
if-ne v1, v2, :cond_f
invoke-static {p1}, Lkotlin/k;->a(Ljava/lang/Object;)V
goto :goto_27
.line 2
:cond_f
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "call to \'resume\' before \'invoke\' with coroutine"
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.line 3
:cond_17
invoke-static {p1}, Lkotlin/k;->a(Ljava/lang/Object;)V
.line 4
sget-object p1, Lcom/sandboxol/editor/api/a;->b:Lcom/sandboxol/editor/api/a;
iget-object v1, p0, Lcom/sandboxol/editor/domain/EditorRepository$entranceSwitch$1;->$request:Lcom/sandboxol/center/entity/request/EntranceSwitchRequest;
iput v2, p0, Lcom/sandboxol/editor/domain/EditorRepository$entranceSwitch$1;->label:I
invoke-virtual {p1, v1, p0}, Lcom/sandboxol/editor/api/a;->a(Lcom/sandboxol/center/entity/request/EntranceSwitchRequest;Lkotlin/coroutines/c;)Ljava/lang/Object;
move-result-object p1
if-ne p1, v0, :cond_27
return-object v0
.line 5
:cond_27
:goto_27
check-cast p1, Lcom/sandboxol/editor/api/a/b;
.line 6
instance-of v0, p1, Lcom/sandboxol/editor/api/a/b$c;
if-eqz v0, :cond_39
.line 7
iget-object p1, p0, Lcom/sandboxol/editor/domain/EditorRepository$entranceSwitch$1;->$callback:Lrx/functions/Action1;
iget-boolean v0, p0, Lcom/sandboxol/editor/domain/EditorRepository$entranceSwitch$1;->$on:Z
invoke-static {v0}, Lkotlin/coroutines/jvm/internal/a;->a(Z)Ljava/lang/Boolean;
move-result-object v0
invoke-interface {p1, v0}, Lrx/functions/Action1;->call(Ljava/lang/Object;)V
goto :goto_a1
.line 8
:cond_39
instance-of v0, p1, Lcom/sandboxol/editor/api/a/b$a;
if-eqz v0, :cond_6e
.line 9
iget-object v0, p0, Lcom/sandboxol/editor/domain/EditorRepository$entranceSwitch$1;->$callback:Lrx/functions/Action1;
iget-boolean v1, p0, Lcom/sandboxol/editor/domain/EditorRepository$entranceSwitch$1;->$on:Z
xor-int/2addr v1, v2
invoke-static {v1}, Lkotlin/coroutines/jvm/internal/a;->a(Z)Ljava/lang/Boolean;
move-result-object v1
invoke-interface {v0, v1}, Lrx/functions/Action1;->call(Ljava/lang/Object;)V
.line 10
sget-object v0, Lcom/sandboxol/editor/b/b;->a:Lcom/sandboxol/editor/b/b;
invoke-static {}, Lcom/sandboxol/common/base/app/BaseApplication;->getContext()Landroid/content/Context;
move-result-object v1
const-string v2, "BaseApplication.getContext()"
invoke-static {v1, v2}, Lkotlin/jvm/internal/i;->b(Ljava/lang/Object;Ljava/lang/String;)V
check-cast p1, Lcom/sandboxol/editor/api/a/b$a;
invoke-virtual {p1}, Lcom/sandboxol/editor/api/a/b$a;->a()Ljava/lang/Object;
move-result-object v2
check-cast v2, Lcom/sandboxol/editor/api/a/a;
invoke-virtual {v2}, Lcom/sandboxol/editor/api/a/a;->a()I
move-result v2
invoke-virtual {p1}, Lcom/sandboxol/editor/api/a/b$a;->a()Ljava/lang/Object;
move-result-object p1
check-cast p1, Lcom/sandboxol/editor/api/a/a;
invoke-virtual {p1}, Lcom/sandboxol/editor/api/a/a;->b()Ljava/lang/String;
move-result-object p1
invoke-virtual {v0, v1, v2, p1}, Lcom/sandboxol/editor/b/b;->a(Landroid/content/Context;ILjava/lang/String;)V
goto :goto_a1
.line 11
:cond_6e
instance-of v0, p1, Lcom/sandboxol/editor/api/a/b$b;
if-eqz v0, :cond_88
.line 12
iget-object p1, p0, Lcom/sandboxol/editor/domain/EditorRepository$entranceSwitch$1;->$callback:Lrx/functions/Action1;
iget-boolean v0, p0, Lcom/sandboxol/editor/domain/EditorRepository$entranceSwitch$1;->$on:Z
xor-int/2addr v0, v2
invoke-static {v0}, Lkotlin/coroutines/jvm/internal/a;->a(Z)Ljava/lang/Boolean;
move-result-object v0
invoke-interface {p1, v0}, Lrx/functions/Action1;->call(Ljava/lang/Object;)V
.line 13
invoke-static {}, Lcom/sandboxol/common/base/app/BaseApplication;->getContext()Landroid/content/Context;
move-result-object p1
sget v0, Lcom/sandboxol/editor/R$string;->network_connection_failed:I
invoke-static {p1, v0}, Lcom/sandboxol/common/utils/AppToastUtils;->showLongNegativeTipToast(Landroid/content/Context;I)V
goto :goto_a1
.line 14
:cond_88
instance-of p1, p1, Lcom/sandboxol/editor/api/a/b$d;
if-eqz p1, :cond_a1
.line 15
iget-object p1, p0, Lcom/sandboxol/editor/domain/EditorRepository$entranceSwitch$1;->$callback:Lrx/functions/Action1;
iget-boolean v0, p0, Lcom/sandboxol/editor/domain/EditorRepository$entranceSwitch$1;->$on:Z
xor-int/2addr v0, v2
invoke-static {v0}, Lkotlin/coroutines/jvm/internal/a;->a(Z)Ljava/lang/Boolean;
move-result-object v0
invoke-interface {p1, v0}, Lrx/functions/Action1;->call(Ljava/lang/Object;)V
.line 16
invoke-static {}, Lcom/sandboxol/common/base/app/BaseApplication;->getContext()Landroid/content/Context;
move-result-object p1
sget v0, Lcom/sandboxol/editor/R$string;->inner_error:I
invoke-static {p1, v0}, Lcom/sandboxol/common/utils/AppToastUtils;->showLongNegativeTipToast(Landroid/content/Context;I)V
.line 17
:cond_a1
:goto_a1
sget-object p1, Lkotlin/n;->a:Lkotlin/n;
return-object p1
.end method