d$b.smali
.class public final Ltj/d$b;
.super Lkotlin/coroutines/jvm/internal/SuspendLambda;
.source "LanguageViewModule.kt"
# interfaces
.implements Lkotlin/jvm/functions/Function2;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Ltj/d;->a(Landroid/content/Context;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/coroutines/jvm/internal/SuspendLambda;",
"Lkotlin/jvm/functions/Function2<",
"Lkotlinx/coroutines/CoroutineScope;",
"Lkotlin/coroutines/Continuation<",
"-",
"Lkotlin/Unit;",
">;",
"Ljava/lang/Object;",
">;"
}
.end annotation
.annotation runtime Lkotlin/coroutines/jvm/internal/DebugMetadata;
c = "com.shopee.foody.driver.setting.LanguageViewModule$restart$1"
f = "LanguageViewModule.kt"
i = {
0x0
}
l = {
0x51
}
m = "invokeSuspend"
n = {
"$this$launch"
}
s = {
"L$0"
}
.end annotation
# instance fields
.field public a:Lkotlinx/coroutines/CoroutineScope;
.field public b:Ljava/lang/Object;
.field public c:I
.field public final synthetic d:Landroid/content/Context;
.field public final synthetic e:Landroid/content/Intent;
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Landroid/content/Intent;Lkotlin/coroutines/Continuation;)V
.registers 4
iput-object p1, p0, Ltj/d$b;->d:Landroid/content/Context;
iput-object p2, p0, Ltj/d$b;->e:Landroid/content/Intent;
const/4 p1, 0x2
invoke-direct {p0, p1, p3}, Lkotlin/coroutines/jvm/internal/SuspendLambda;-><init>(ILkotlin/coroutines/Continuation;)V
return-void
.end method
# virtual methods
.method public final create(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Object;",
"Lkotlin/coroutines/Continuation<",
"*>;)",
"Lkotlin/coroutines/Continuation<",
"Lkotlin/Unit;",
">;"
}
.end annotation
new-instance v0, Ltj/d$b;
iget-object v1, p0, Ltj/d$b;->d:Landroid/content/Context;
iget-object v2, p0, Ltj/d$b;->e:Landroid/content/Intent;
invoke-direct {v0, v1, v2, p2}, Ltj/d$b;-><init>(Landroid/content/Context;Landroid/content/Intent;Lkotlin/coroutines/Continuation;)V
check-cast p1, Lkotlinx/coroutines/CoroutineScope;
iput-object p1, v0, Ltj/d$b;->a:Lkotlinx/coroutines/CoroutineScope;
return-object v0
.end method
.method public final invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.registers 3
check-cast p2, Lkotlin/coroutines/Continuation;
invoke-virtual {p0, p1, p2}, Ltj/d$b;->create(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
move-result-object p1
check-cast p1, Ltj/d$b;
sget-object p2, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
invoke-virtual {p1, p2}, Ltj/d$b;->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 7
invoke-static {}, Lkotlin/coroutines/intrinsics/IntrinsicsKt__IntrinsicsKt;->getCOROUTINE_SUSPENDED()Ljava/lang/Object;
move-result-object v0
iget v1, p0, Ltj/d$b;->c:I
const/4 v2, 0x1
if-eqz v1, :cond_1b
if-ne v1, v2, :cond_13
iget-object v0, p0, Ltj/d$b;->b:Ljava/lang/Object;
check-cast v0, Lkotlinx/coroutines/CoroutineScope;
invoke-static {p1}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
goto :goto_2d
:cond_13
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
:cond_1b
invoke-static {p1}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
iget-object p1, p0, Ltj/d$b;->a:Lkotlinx/coroutines/CoroutineScope;
const-wide/16 v3, 0x5dc
iput-object p1, p0, Ltj/d$b;->b:Ljava/lang/Object;
iput v2, p0, Ltj/d$b;->c:I
invoke-static {v3, v4, p0}, Lkotlinx/coroutines/DelayKt;->delay(JLkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object p1
if-ne p1, v0, :cond_2d
return-object v0
:cond_2d
:goto_2d
iget-object p1, p0, Ltj/d$b;->d:Landroid/content/Context;
new-array v0, v2, [Landroid/content/Intent;
const/4 v1, 0x0
iget-object v2, p0, Ltj/d$b;->e:Landroid/content/Intent;
aput-object v2, v0, v1
invoke-static {p1, v0}, Lcom/jakewharton/processphoenix/ProcessPhoenix;->triggerRebirth(Landroid/content/Context;[Landroid/content/Intent;)V
sget-object p1, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
return-object p1
.end method