mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-25 16:42:30 -06:00
347 lines
9.9 KiB
Smali
347 lines
9.9 KiB
Smali
.class final Landroidx/room/RoomDatabaseKt$withTransaction$2;
|
|
.super Lkotlin/coroutines/jvm/internal/SuspendLambda;
|
|
.source "RoomDatabaseExt.kt"
|
|
|
|
# interfaces
|
|
.implements Lkotlin/jvm/functions/Function2;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Landroidx/room/RoomDatabaseKt;->withTransaction(Landroidx/room/RoomDatabase;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
|
.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/functions/Function2<",
|
|
"Lkotlinx/coroutines/CoroutineScope;",
|
|
"Lkotlin/coroutines/Continuation<",
|
|
"-TR;>;",
|
|
"Ljava/lang/Object;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation runtime Lkotlin/Metadata;
|
|
d1 = {
|
|
"\u0000\u0008\n\u0002\u0008\u0002\n\u0002\u0018\u0002\u0010\u0000\u001a\u0002H\u0001\"\u0004\u0008\u0000\u0010\u0001*\u00020\u0002H\u008a@"
|
|
}
|
|
d2 = {
|
|
"<anonymous>",
|
|
"R",
|
|
"Lkotlinx/coroutines/CoroutineScope;"
|
|
}
|
|
k = 0x3
|
|
mv = {
|
|
0x1,
|
|
0x7,
|
|
0x1
|
|
}
|
|
xi = 0x30
|
|
.end annotation
|
|
|
|
.annotation runtime Lkotlin/coroutines/jvm/internal/DebugMetadata;
|
|
c = "androidx.room.RoomDatabaseKt$withTransaction$2"
|
|
f = "RoomDatabaseExt.kt"
|
|
i = {
|
|
0x0
|
|
}
|
|
l = {
|
|
0x3b
|
|
}
|
|
m = "invokeSuspend"
|
|
n = {
|
|
"transactionElement"
|
|
}
|
|
s = {
|
|
"L$0"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final synthetic $block:Lkotlin/jvm/functions/Function1;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lkotlin/jvm/functions/Function1<",
|
|
"Lkotlin/coroutines/Continuation<",
|
|
"-TR;>;",
|
|
"Ljava/lang/Object;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field final synthetic $this_withTransaction:Landroidx/room/RoomDatabase;
|
|
|
|
.field private synthetic L$0:Ljava/lang/Object;
|
|
|
|
.field label:I
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Landroidx/room/RoomDatabase;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroidx/room/RoomDatabase;",
|
|
"Lkotlin/jvm/functions/Function1<",
|
|
"-",
|
|
"Lkotlin/coroutines/Continuation<",
|
|
"-TR;>;+",
|
|
"Ljava/lang/Object;",
|
|
">;",
|
|
"Lkotlin/coroutines/Continuation<",
|
|
"-",
|
|
"Landroidx/room/RoomDatabaseKt$withTransaction$2;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
iput-object p1, p0, Landroidx/room/RoomDatabaseKt$withTransaction$2;->$this_withTransaction:Landroidx/room/RoomDatabase;
|
|
|
|
iput-object p2, p0, Landroidx/room/RoomDatabaseKt$withTransaction$2;->$block:Lkotlin/jvm/functions/Function1;
|
|
|
|
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;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/lang/Object;",
|
|
"Lkotlin/coroutines/Continuation<",
|
|
"*>;)",
|
|
"Lkotlin/coroutines/Continuation<",
|
|
"Lkotlin/Unit;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
new-instance v0, Landroidx/room/RoomDatabaseKt$withTransaction$2;
|
|
|
|
iget-object v1, p0, Landroidx/room/RoomDatabaseKt$withTransaction$2;->$this_withTransaction:Landroidx/room/RoomDatabase;
|
|
|
|
iget-object p0, p0, Landroidx/room/RoomDatabaseKt$withTransaction$2;->$block:Lkotlin/jvm/functions/Function1;
|
|
|
|
invoke-direct {v0, v1, p0, p2}, Landroidx/room/RoomDatabaseKt$withTransaction$2;-><init>(Landroidx/room/RoomDatabase;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)V
|
|
|
|
iput-object p1, v0, Landroidx/room/RoomDatabaseKt$withTransaction$2;->L$0:Ljava/lang/Object;
|
|
|
|
check-cast v0, Lkotlin/coroutines/Continuation;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public bridge synthetic invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
check-cast p1, Lkotlinx/coroutines/CoroutineScope;
|
|
|
|
check-cast p2, Lkotlin/coroutines/Continuation;
|
|
|
|
invoke-virtual {p0, p1, p2}, Landroidx/room/RoomDatabaseKt$withTransaction$2;->invoke(Lkotlinx/coroutines/CoroutineScope;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public final invoke(Lkotlinx/coroutines/CoroutineScope;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lkotlinx/coroutines/CoroutineScope;",
|
|
"Lkotlin/coroutines/Continuation<",
|
|
"-TR;>;)",
|
|
"Ljava/lang/Object;"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-virtual {p0, p1, p2}, Landroidx/room/RoomDatabaseKt$withTransaction$2;->create(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Landroidx/room/RoomDatabaseKt$withTransaction$2;
|
|
|
|
sget-object p1, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
|
|
|
|
invoke-virtual {p0, p1}, Landroidx/room/RoomDatabaseKt$withTransaction$2;->invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public final invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
|
|
.locals 4
|
|
|
|
invoke-static {}, Lkotlin/coroutines/intrinsics/IntrinsicsKt;->getCOROUTINE_SUSPENDED()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
iget v1, p0, Landroidx/room/RoomDatabaseKt$withTransaction$2;->label:I
|
|
|
|
const/4 v2, 0x1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
if-ne v1, v2, :cond_0
|
|
|
|
iget-object v0, p0, Landroidx/room/RoomDatabaseKt$withTransaction$2;->L$0:Ljava/lang/Object;
|
|
|
|
.line 52
|
|
check-cast v0, Landroidx/room/TransactionElement;
|
|
|
|
:try_start_0
|
|
invoke-static {p1}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
goto :goto_0
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
new-instance p0, Ljava/lang/IllegalStateException;
|
|
|
|
const-string p1, "call to \'resume\' before \'invoke\' with coroutine"
|
|
|
|
invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p0
|
|
|
|
:cond_1
|
|
invoke-static {p1}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
|
|
|
|
iget-object p1, p0, Landroidx/room/RoomDatabaseKt$withTransaction$2;->L$0:Ljava/lang/Object;
|
|
|
|
check-cast p1, Lkotlinx/coroutines/CoroutineScope;
|
|
|
|
.line 53
|
|
invoke-interface {p1}, Lkotlinx/coroutines/CoroutineScope;->getCoroutineContext()Lkotlin/coroutines/CoroutineContext;
|
|
|
|
move-result-object p1
|
|
|
|
sget-object v1, Landroidx/room/TransactionElement;->Key:Landroidx/room/TransactionElement$Key;
|
|
|
|
check-cast v1, Lkotlin/coroutines/CoroutineContext$Key;
|
|
|
|
invoke-interface {p1, v1}, Lkotlin/coroutines/CoroutineContext;->get(Lkotlin/coroutines/CoroutineContext$Key;)Lkotlin/coroutines/CoroutineContext$Element;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
check-cast p1, Landroidx/room/TransactionElement;
|
|
|
|
.line 54
|
|
invoke-virtual {p1}, Landroidx/room/TransactionElement;->acquire()V
|
|
|
|
:try_start_1
|
|
iget-object v1, p0, Landroidx/room/RoomDatabaseKt$withTransaction$2;->$this_withTransaction:Landroidx/room/RoomDatabase;
|
|
|
|
.line 57
|
|
invoke-virtual {v1}, Landroidx/room/RoomDatabase;->beginTransaction()V
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_3
|
|
|
|
:try_start_2
|
|
iget-object v1, p0, Landroidx/room/RoomDatabaseKt$withTransaction$2;->$block:Lkotlin/jvm/functions/Function1;
|
|
|
|
iput-object p1, p0, Landroidx/room/RoomDatabaseKt$withTransaction$2;->L$0:Ljava/lang/Object;
|
|
|
|
iput v2, p0, Landroidx/room/RoomDatabaseKt$withTransaction$2;->label:I
|
|
|
|
.line 59
|
|
invoke-interface {v1, p0}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
:try_end_2
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_1
|
|
|
|
if-ne v1, v0, :cond_2
|
|
|
|
return-object v0
|
|
|
|
:cond_2
|
|
move-object v0, p1
|
|
|
|
move-object p1, v1
|
|
|
|
:goto_0
|
|
:try_start_3
|
|
iget-object v1, p0, Landroidx/room/RoomDatabaseKt$withTransaction$2;->$this_withTransaction:Landroidx/room/RoomDatabase;
|
|
|
|
.line 61
|
|
invoke-virtual {v1}, Landroidx/room/RoomDatabase;->setTransactionSuccessful()V
|
|
:try_end_3
|
|
.catchall {:try_start_3 .. :try_end_3} :catchall_0
|
|
|
|
:try_start_4
|
|
iget-object p0, p0, Landroidx/room/RoomDatabaseKt$withTransaction$2;->$this_withTransaction:Landroidx/room/RoomDatabase;
|
|
|
|
.line 65
|
|
invoke-virtual {p0}, Landroidx/room/RoomDatabase;->endTransaction()V
|
|
:try_end_4
|
|
.catchall {:try_start_4 .. :try_end_4} :catchall_2
|
|
|
|
.line 68
|
|
invoke-virtual {v0}, Landroidx/room/TransactionElement;->release()V
|
|
|
|
return-object p1
|
|
|
|
:catchall_1
|
|
move-exception v0
|
|
|
|
move-object v3, v0
|
|
|
|
move-object v0, p1
|
|
|
|
move-object p1, v3
|
|
|
|
:goto_1
|
|
:try_start_5
|
|
iget-object p0, p0, Landroidx/room/RoomDatabaseKt$withTransaction$2;->$this_withTransaction:Landroidx/room/RoomDatabase;
|
|
|
|
.line 65
|
|
invoke-virtual {p0}, Landroidx/room/RoomDatabase;->endTransaction()V
|
|
|
|
throw p1
|
|
:try_end_5
|
|
.catchall {:try_start_5 .. :try_end_5} :catchall_2
|
|
|
|
:catchall_2
|
|
move-exception p0
|
|
|
|
move-object p1, v0
|
|
|
|
goto :goto_2
|
|
|
|
:catchall_3
|
|
move-exception p0
|
|
|
|
.line 68
|
|
:goto_2
|
|
invoke-virtual {p1}, Landroidx/room/TransactionElement;->release()V
|
|
|
|
throw p0
|
|
.end method
|