.class public final Landroidx/lifecycle/WithLifecycleStateKt; .super Ljava/lang/Object; .source "WithLifecycleState.kt" # annotations .annotation system Ldalvik/annotation/SourceDebugExtension; value = "SMAP\nWithLifecycleState.kt\nKotlin\n*S Kotlin\n*F\n+ 1 WithLifecycleState.kt\nandroidx/lifecycle/WithLifecycleStateKt\n+ 2 CancellableContinuation.kt\nkotlinx/coroutines/CancellableContinuationKt\n*L\n1#1,206:1\n154#1,8:207\n154#1,8:215\n154#1,8:223\n154#1,8:231\n43#1,5:239\n154#1,8:244\n154#1,8:252\n154#1,8:260\n154#1,8:268\n308#2,11:276\n*E\n*S KotlinDebug\n*F\n+ 1 WithLifecycleState.kt\nandroidx/lifecycle/WithLifecycleStateKt\n*L\n47#1,8:207\n58#1,8:215\n71#1,8:223\n84#1,8:231\n98#1,5:239\n98#1,8:244\n111#1,8:252\n124#1,8:260\n137#1,8:268\n177#1,11:276\n*E\n" .end annotation .annotation runtime Lkotlin/Metadata; bv = {} d1 = { "\u0000*\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0007\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0004\u001a5\u0010\u0006\u001a\u00028\u0000\"\u0004\u0008\u0000\u0010\u0000*\u00020\u00012\u0006\u0010\u0003\u001a\u00020\u00022\u000e\u0008\u0004\u0010\u0005\u001a\u0008\u0012\u0004\u0012\u00028\u00000\u0004H\u0086H\u00f8\u0001\u0000\u00a2\u0006\u0004\u0008\u0006\u0010\u0007\u001a-\u0010\u0008\u001a\u00028\u0000\"\u0004\u0008\u0000\u0010\u0000*\u00020\u00012\u000e\u0008\u0004\u0010\u0005\u001a\u0008\u0012\u0004\u0012\u00028\u00000\u0004H\u0086H\u00f8\u0001\u0000\u00a2\u0006\u0004\u0008\u0008\u0010\t\u001a-\u0010\n\u001a\u00028\u0000\"\u0004\u0008\u0000\u0010\u0000*\u00020\u00012\u000e\u0008\u0004\u0010\u0005\u001a\u0008\u0012\u0004\u0012\u00028\u00000\u0004H\u0086H\u00f8\u0001\u0000\u00a2\u0006\u0004\u0008\n\u0010\t\u001a-\u0010\u000b\u001a\u00028\u0000\"\u0004\u0008\u0000\u0010\u0000*\u00020\u00012\u000e\u0008\u0004\u0010\u0005\u001a\u0008\u0012\u0004\u0012\u00028\u00000\u0004H\u0086H\u00f8\u0001\u0000\u00a2\u0006\u0004\u0008\u000b\u0010\t\u001a5\u0010\u0006\u001a\u00028\u0000\"\u0004\u0008\u0000\u0010\u0000*\u00020\u000c2\u0006\u0010\u0003\u001a\u00020\u00022\u000e\u0008\u0004\u0010\u0005\u001a\u0008\u0012\u0004\u0012\u00028\u00000\u0004H\u0086H\u00f8\u0001\u0000\u00a2\u0006\u0004\u0008\u0006\u0010\r\u001a-\u0010\u0008\u001a\u00028\u0000\"\u0004\u0008\u0000\u0010\u0000*\u00020\u000c2\u000e\u0008\u0004\u0010\u0005\u001a\u0008\u0012\u0004\u0012\u00028\u00000\u0004H\u0086H\u00f8\u0001\u0000\u00a2\u0006\u0004\u0008\u0008\u0010\u000e\u001a-\u0010\n\u001a\u00028\u0000\"\u0004\u0008\u0000\u0010\u0000*\u00020\u000c2\u000e\u0008\u0004\u0010\u0005\u001a\u0008\u0012\u0004\u0012\u00028\u00000\u0004H\u0086H\u00f8\u0001\u0000\u00a2\u0006\u0004\u0008\n\u0010\u000e\u001a-\u0010\u000b\u001a\u00028\u0000\"\u0004\u0008\u0000\u0010\u0000*\u00020\u000c2\u000e\u0008\u0004\u0010\u0005\u001a\u0008\u0012\u0004\u0012\u00028\u00000\u0004H\u0086H\u00f8\u0001\u0000\u00a2\u0006\u0004\u0008\u000b\u0010\u000e\u001a5\u0010\u000f\u001a\u00028\u0000\"\u0004\u0008\u0000\u0010\u0000*\u00020\u00012\u0006\u0010\u0003\u001a\u00020\u00022\u000e\u0008\u0004\u0010\u0005\u001a\u0008\u0012\u0004\u0012\u00028\u00000\u0004H\u0081H\u00f8\u0001\u0000\u00a2\u0006\u0004\u0008\u000f\u0010\u0007\u001aC\u0010\u0014\u001a\u00028\u0000\"\u0004\u0008\u0000\u0010\u0000*\u00020\u00012\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0011\u001a\u00020\u00102\u0006\u0010\u0013\u001a\u00020\u00122\u000c\u0010\u0005\u001a\u0008\u0012\u0004\u0012\u00028\u00000\u0004H\u0081@\u00f8\u0001\u0000\u00a2\u0006\u0004\u0008\u0014\u0010\u0015\u0082\u0002\u0004\n\u0002\u0008\u0019\u00a8\u0006\u0016" } d2 = { "R", "Landroidx/lifecycle/Lifecycle;", "Landroidx/lifecycle/Lifecycle$State;", "state", "Lkotlin/Function0;", "block", "withStateAtLeast", "(Landroidx/lifecycle/Lifecycle;Landroidx/lifecycle/Lifecycle$State;Lej/a;Lkotlin/coroutines/c;)Ljava/lang/Object;", "withCreated", "(Landroidx/lifecycle/Lifecycle;Lej/a;Lkotlin/coroutines/c;)Ljava/lang/Object;", "withStarted", "withResumed", "Landroidx/lifecycle/LifecycleOwner;", "(Landroidx/lifecycle/LifecycleOwner;Landroidx/lifecycle/Lifecycle$State;Lej/a;Lkotlin/coroutines/c;)Ljava/lang/Object;", "(Landroidx/lifecycle/LifecycleOwner;Lej/a;Lkotlin/coroutines/c;)Ljava/lang/Object;", "withStateAtLeastUnchecked", "", "dispatchNeeded", "Lkotlinx/coroutines/CoroutineDispatcher;", "lifecycleDispatcher", "suspendWithStateAtLeastUnchecked", "(Landroidx/lifecycle/Lifecycle;Landroidx/lifecycle/Lifecycle$State;ZLkotlinx/coroutines/CoroutineDispatcher;Lej/a;Lkotlin/coroutines/c;)Ljava/lang/Object;", "lifecycle-runtime-ktx_release" } k = 0x2 mv = { 0x1, 0x4, 0x1 } .end annotation # direct methods .method public static final suspendWithStateAtLeastUnchecked(Landroidx/lifecycle/Lifecycle;Landroidx/lifecycle/Lifecycle$State;ZLkotlinx/coroutines/CoroutineDispatcher;Lej/a;Lkotlin/coroutines/c;)Ljava/lang/Object; .locals 16 .param p0 # Landroidx/lifecycle/Lifecycle; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .param p1 # Landroidx/lifecycle/Lifecycle$State; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .param p3 # Lkotlinx/coroutines/CoroutineDispatcher; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .param p4 # Lej/a; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .param p5 # Lkotlin/coroutines/c; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .annotation system Ldalvik/annotation/Signature; value = { "(", "Landroidx/lifecycle/Lifecycle;", "Landroidx/lifecycle/Lifecycle$State;", "Z", "Lkotlinx/coroutines/CoroutineDispatcher;", "Lej/a<", "+TR;>;", "Lkotlin/coroutines/c<", "-TR;>;)", "Ljava/lang/Object;" } .end annotation .annotation build Lkotlin/PublishedApi; .end annotation .annotation build Lorg/jetbrains/annotations/Nullable; .end annotation .line 1 new-instance v7, Lkotlinx/coroutines/o; invoke-static/range {p5 .. p5}, Lkotlin/coroutines/intrinsics/IntrinsicsKt__IntrinsicsJvmKt;->d(Lkotlin/coroutines/c;)Lkotlin/coroutines/c; move-result-object v0 const/4 v1, 0x1 invoke-direct {v7, v0, v1}, Lkotlinx/coroutines/o;->(Lkotlin/coroutines/c;I)V .line 2 invoke-virtual {v7}, Lkotlinx/coroutines/o;->y()V .line 3 new-instance v15, Landroidx/lifecycle/WithLifecycleStateKt$suspendWithStateAtLeastUnchecked$$inlined$suspendCancellableCoroutine$lambda$1; move-object v0, v15 move-object v1, v7 move-object/from16 v2, p0 move-object/from16 v3, p1 move-object/from16 v4, p4 move/from16 v5, p2 move-object/from16 v6, p3 invoke-direct/range {v0 .. v6}, Landroidx/lifecycle/WithLifecycleStateKt$suspendWithStateAtLeastUnchecked$$inlined$suspendCancellableCoroutine$lambda$1;->(Lkotlinx/coroutines/n;Landroidx/lifecycle/Lifecycle;Landroidx/lifecycle/Lifecycle$State;Lej/a;ZLkotlinx/coroutines/CoroutineDispatcher;)V if-eqz p2, :cond_0 .line 4 sget-object v0, Lkotlin/coroutines/EmptyCoroutineContext;->INSTANCE:Lkotlin/coroutines/EmptyCoroutineContext; .line 5 new-instance v1, Landroidx/lifecycle/WithLifecycleStateKt$suspendWithStateAtLeastUnchecked$$inlined$suspendCancellableCoroutine$lambda$2; move-object v8, v1 move-object v9, v15 move-object/from16 v10, p0 move-object/from16 v11, p1 move-object/from16 v12, p4 move/from16 v13, p2 move-object/from16 v14, p3 invoke-direct/range {v8 .. v14}, Landroidx/lifecycle/WithLifecycleStateKt$suspendWithStateAtLeastUnchecked$$inlined$suspendCancellableCoroutine$lambda$2;->(Landroidx/lifecycle/WithLifecycleStateKt$suspendWithStateAtLeastUnchecked$$inlined$suspendCancellableCoroutine$lambda$1;Landroidx/lifecycle/Lifecycle;Landroidx/lifecycle/Lifecycle$State;Lej/a;ZLkotlinx/coroutines/CoroutineDispatcher;)V move-object/from16 v2, p3 .line 6 invoke-virtual {v2, v0, v1}, Lkotlinx/coroutines/CoroutineDispatcher;->dispatch(Lkotlin/coroutines/CoroutineContext;Ljava/lang/Runnable;)V move-object/from16 v0, p0 goto :goto_0 :cond_0 move-object/from16 v0, p0 move-object/from16 v2, p3 .line 7 invoke-virtual {v0, v15}, Landroidx/lifecycle/Lifecycle;->addObserver(Landroidx/lifecycle/LifecycleObserver;)V .line 8 :goto_0 new-instance v1, Landroidx/lifecycle/WithLifecycleStateKt$suspendWithStateAtLeastUnchecked$$inlined$suspendCancellableCoroutine$lambda$3; move-object v8, v1 move-object v9, v15 move-object/from16 v10, p0 move-object/from16 v11, p1 move-object/from16 v12, p4 move/from16 v13, p2 move-object/from16 v14, p3 invoke-direct/range {v8 .. v14}, Landroidx/lifecycle/WithLifecycleStateKt$suspendWithStateAtLeastUnchecked$$inlined$suspendCancellableCoroutine$lambda$3;->(Landroidx/lifecycle/WithLifecycleStateKt$suspendWithStateAtLeastUnchecked$$inlined$suspendCancellableCoroutine$lambda$1;Landroidx/lifecycle/Lifecycle;Landroidx/lifecycle/Lifecycle$State;Lej/a;ZLkotlinx/coroutines/CoroutineDispatcher;)V invoke-interface {v7, v1}, Lkotlinx/coroutines/n;->h(Lej/l;)V .line 9 invoke-virtual {v7}, Lkotlinx/coroutines/o;->D()Ljava/lang/Object; move-result-object v0 .line 10 invoke-static {}, Lvi/b;->h()Ljava/lang/Object; move-result-object v1 if-ne v0, v1, :cond_1 invoke-static/range {p5 .. p5}, Lwi/e;->c(Lkotlin/coroutines/c;)V :cond_1 return-object v0 .end method .method public static final withCreated(Landroidx/lifecycle/Lifecycle;Lej/a;Lkotlin/coroutines/c;)Ljava/lang/Object; .locals 6 .param p0 # Landroidx/lifecycle/Lifecycle; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .param p1 # Lej/a; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .param p2 # Lkotlin/coroutines/c; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .annotation system Ldalvik/annotation/Signature; value = { "(", "Landroidx/lifecycle/Lifecycle;", "Lej/a<", "+TR;>;", "Lkotlin/coroutines/c<", "-TR;>;)", "Ljava/lang/Object;" } .end annotation .annotation build Lorg/jetbrains/annotations/Nullable; .end annotation .line 1 sget-object v1, Landroidx/lifecycle/Lifecycle$State;->CREATED:Landroidx/lifecycle/Lifecycle$State; .line 2 invoke-static {}, Lkotlinx/coroutines/b1;->e()Lkotlinx/coroutines/i2; move-result-object v0 invoke-virtual {v0}, Lkotlinx/coroutines/i2;->H1()Lkotlinx/coroutines/i2; move-result-object v3 .line 3 invoke-interface {p2}, Lkotlin/coroutines/c;->getContext()Lkotlin/coroutines/CoroutineContext; move-result-object v0 invoke-virtual {v3, v0}, Lkotlinx/coroutines/CoroutineDispatcher;->isDispatchNeeded(Lkotlin/coroutines/CoroutineContext;)Z move-result v2 if-nez v2, :cond_1 .line 4 invoke-virtual {p0}, Landroidx/lifecycle/Lifecycle;->getCurrentState()Landroidx/lifecycle/Lifecycle$State; move-result-object v0 sget-object v4, Landroidx/lifecycle/Lifecycle$State;->DESTROYED:Landroidx/lifecycle/Lifecycle$State; if-eq v0, v4, :cond_0 .line 5 invoke-virtual {p0}, Landroidx/lifecycle/Lifecycle;->getCurrentState()Landroidx/lifecycle/Lifecycle$State; move-result-object v0 invoke-virtual {v0, v1}, Ljava/lang/Enum;->compareTo(Ljava/lang/Enum;)I move-result v0 if-ltz v0, :cond_1 invoke-interface {p1}, Lej/a;->invoke()Ljava/lang/Object; move-result-object p0 goto :goto_0 .line 6 :cond_0 new-instance p0, Landroidx/lifecycle/LifecycleDestroyedException; invoke-direct {p0}, Landroidx/lifecycle/LifecycleDestroyedException;->()V throw p0 .line 7 :cond_1 new-instance v4, Landroidx/lifecycle/WithLifecycleStateKt$withStateAtLeastUnchecked$2; invoke-direct {v4, p1}, Landroidx/lifecycle/WithLifecycleStateKt$withStateAtLeastUnchecked$2;->(Lej/a;)V move-object v0, p0 move-object v5, p2 invoke-static/range {v0 .. v5}, Landroidx/lifecycle/WithLifecycleStateKt;->suspendWithStateAtLeastUnchecked(Landroidx/lifecycle/Lifecycle;Landroidx/lifecycle/Lifecycle$State;ZLkotlinx/coroutines/CoroutineDispatcher;Lej/a;Lkotlin/coroutines/c;)Ljava/lang/Object; move-result-object p0 :goto_0 return-object p0 .end method .method public static final withCreated(Landroidx/lifecycle/LifecycleOwner;Lej/a;Lkotlin/coroutines/c;)Ljava/lang/Object; .locals 6 .param p0 # Landroidx/lifecycle/LifecycleOwner; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .param p1 # Lej/a; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .param p2 # Lkotlin/coroutines/c; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .annotation system Ldalvik/annotation/Signature; value = { "(", "Landroidx/lifecycle/LifecycleOwner;", "Lej/a<", "+TR;>;", "Lkotlin/coroutines/c<", "-TR;>;)", "Ljava/lang/Object;" } .end annotation .annotation build Lorg/jetbrains/annotations/Nullable; .end annotation .line 8 invoke-interface {p0}, Landroidx/lifecycle/LifecycleOwner;->getLifecycle()Landroidx/lifecycle/Lifecycle; move-result-object v0 const-string p0, "lifecycle" invoke-static {v0, p0}, Lkotlin/jvm/internal/f0;->o(Ljava/lang/Object;Ljava/lang/String;)V .line 9 sget-object v1, Landroidx/lifecycle/Lifecycle$State;->CREATED:Landroidx/lifecycle/Lifecycle$State; .line 10 invoke-static {}, Lkotlinx/coroutines/b1;->e()Lkotlinx/coroutines/i2; move-result-object p0 invoke-virtual {p0}, Lkotlinx/coroutines/i2;->H1()Lkotlinx/coroutines/i2; move-result-object v3 .line 11 invoke-interface {p2}, Lkotlin/coroutines/c;->getContext()Lkotlin/coroutines/CoroutineContext; move-result-object p0 invoke-virtual {v3, p0}, Lkotlinx/coroutines/CoroutineDispatcher;->isDispatchNeeded(Lkotlin/coroutines/CoroutineContext;)Z move-result v2 if-nez v2, :cond_1 .line 12 invoke-virtual {v0}, Landroidx/lifecycle/Lifecycle;->getCurrentState()Landroidx/lifecycle/Lifecycle$State; move-result-object p0 sget-object v4, Landroidx/lifecycle/Lifecycle$State;->DESTROYED:Landroidx/lifecycle/Lifecycle$State; if-eq p0, v4, :cond_0 .line 13 invoke-virtual {v0}, Landroidx/lifecycle/Lifecycle;->getCurrentState()Landroidx/lifecycle/Lifecycle$State; move-result-object p0 invoke-virtual {p0, v1}, Ljava/lang/Enum;->compareTo(Ljava/lang/Enum;)I move-result p0 if-ltz p0, :cond_1 invoke-interface {p1}, Lej/a;->invoke()Ljava/lang/Object; move-result-object p0 goto :goto_0 .line 14 :cond_0 new-instance p0, Landroidx/lifecycle/LifecycleDestroyedException; invoke-direct {p0}, Landroidx/lifecycle/LifecycleDestroyedException;->()V throw p0 .line 15 :cond_1 new-instance v4, Landroidx/lifecycle/WithLifecycleStateKt$withStateAtLeastUnchecked$2; invoke-direct {v4, p1}, Landroidx/lifecycle/WithLifecycleStateKt$withStateAtLeastUnchecked$2;->(Lej/a;)V move-object v5, p2 invoke-static/range {v0 .. v5}, Landroidx/lifecycle/WithLifecycleStateKt;->suspendWithStateAtLeastUnchecked(Landroidx/lifecycle/Lifecycle;Landroidx/lifecycle/Lifecycle$State;ZLkotlinx/coroutines/CoroutineDispatcher;Lej/a;Lkotlin/coroutines/c;)Ljava/lang/Object; move-result-object p0 :goto_0 return-object p0 .end method .method private static final withCreated$$forInline(Landroidx/lifecycle/Lifecycle;Lej/a;Lkotlin/coroutines/c;)Ljava/lang/Object; .locals 0 .param p0 # Landroidx/lifecycle/Lifecycle; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .param p1 # Lej/a; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .param p2 # Lkotlin/coroutines/c; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .annotation build Lorg/jetbrains/annotations/Nullable; .end annotation .line 1 sget-object p0, Landroidx/lifecycle/Lifecycle$State;->CREATED:Landroidx/lifecycle/Lifecycle$State; .line 2 invoke-static {}, Lkotlinx/coroutines/b1;->e()Lkotlinx/coroutines/i2; move-result-object p0 invoke-virtual {p0}, Lkotlinx/coroutines/i2;->H1()Lkotlinx/coroutines/i2; const/4 p0, 0x3 .line 3 invoke-static {p0}, Lkotlin/jvm/internal/c0;->e(I)V const/4 p0, 0x0 throw p0 .end method .method private static final withCreated$$forInline(Landroidx/lifecycle/LifecycleOwner;Lej/a;Lkotlin/coroutines/c;)Ljava/lang/Object; .locals 0 .param p0 # Landroidx/lifecycle/LifecycleOwner; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .param p1 # Lej/a; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .param p2 # Lkotlin/coroutines/c; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .annotation build Lorg/jetbrains/annotations/Nullable; .end annotation .line 4 invoke-interface {p0}, Landroidx/lifecycle/LifecycleOwner;->getLifecycle()Landroidx/lifecycle/Lifecycle; move-result-object p0 const-string p1, "lifecycle" invoke-static {p0, p1}, Lkotlin/jvm/internal/f0;->o(Ljava/lang/Object;Ljava/lang/String;)V .line 5 sget-object p0, Landroidx/lifecycle/Lifecycle$State;->CREATED:Landroidx/lifecycle/Lifecycle$State; .line 6 invoke-static {}, Lkotlinx/coroutines/b1;->e()Lkotlinx/coroutines/i2; move-result-object p0 invoke-virtual {p0}, Lkotlinx/coroutines/i2;->H1()Lkotlinx/coroutines/i2; const/4 p0, 0x3 .line 7 invoke-static {p0}, Lkotlin/jvm/internal/c0;->e(I)V const/4 p0, 0x0 throw p0 .end method .method public static final withResumed(Landroidx/lifecycle/Lifecycle;Lej/a;Lkotlin/coroutines/c;)Ljava/lang/Object; .locals 6 .param p0 # Landroidx/lifecycle/Lifecycle; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .param p1 # Lej/a; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .param p2 # Lkotlin/coroutines/c; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .annotation system Ldalvik/annotation/Signature; value = { "(", "Landroidx/lifecycle/Lifecycle;", "Lej/a<", "+TR;>;", "Lkotlin/coroutines/c<", "-TR;>;)", "Ljava/lang/Object;" } .end annotation .annotation build Lorg/jetbrains/annotations/Nullable; .end annotation .line 1 sget-object v1, Landroidx/lifecycle/Lifecycle$State;->RESUMED:Landroidx/lifecycle/Lifecycle$State; .line 2 invoke-static {}, Lkotlinx/coroutines/b1;->e()Lkotlinx/coroutines/i2; move-result-object v0 invoke-virtual {v0}, Lkotlinx/coroutines/i2;->H1()Lkotlinx/coroutines/i2; move-result-object v3 .line 3 invoke-interface {p2}, Lkotlin/coroutines/c;->getContext()Lkotlin/coroutines/CoroutineContext; move-result-object v0 invoke-virtual {v3, v0}, Lkotlinx/coroutines/CoroutineDispatcher;->isDispatchNeeded(Lkotlin/coroutines/CoroutineContext;)Z move-result v2 if-nez v2, :cond_1 .line 4 invoke-virtual {p0}, Landroidx/lifecycle/Lifecycle;->getCurrentState()Landroidx/lifecycle/Lifecycle$State; move-result-object v0 sget-object v4, Landroidx/lifecycle/Lifecycle$State;->DESTROYED:Landroidx/lifecycle/Lifecycle$State; if-eq v0, v4, :cond_0 .line 5 invoke-virtual {p0}, Landroidx/lifecycle/Lifecycle;->getCurrentState()Landroidx/lifecycle/Lifecycle$State; move-result-object v0 invoke-virtual {v0, v1}, Ljava/lang/Enum;->compareTo(Ljava/lang/Enum;)I move-result v0 if-ltz v0, :cond_1 invoke-interface {p1}, Lej/a;->invoke()Ljava/lang/Object; move-result-object p0 goto :goto_0 .line 6 :cond_0 new-instance p0, Landroidx/lifecycle/LifecycleDestroyedException; invoke-direct {p0}, Landroidx/lifecycle/LifecycleDestroyedException;->()V throw p0 .line 7 :cond_1 new-instance v4, Landroidx/lifecycle/WithLifecycleStateKt$withStateAtLeastUnchecked$2; invoke-direct {v4, p1}, Landroidx/lifecycle/WithLifecycleStateKt$withStateAtLeastUnchecked$2;->(Lej/a;)V move-object v0, p0 move-object v5, p2 invoke-static/range {v0 .. v5}, Landroidx/lifecycle/WithLifecycleStateKt;->suspendWithStateAtLeastUnchecked(Landroidx/lifecycle/Lifecycle;Landroidx/lifecycle/Lifecycle$State;ZLkotlinx/coroutines/CoroutineDispatcher;Lej/a;Lkotlin/coroutines/c;)Ljava/lang/Object; move-result-object p0 :goto_0 return-object p0 .end method .method public static final withResumed(Landroidx/lifecycle/LifecycleOwner;Lej/a;Lkotlin/coroutines/c;)Ljava/lang/Object; .locals 6 .param p0 # Landroidx/lifecycle/LifecycleOwner; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .param p1 # Lej/a; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .param p2 # Lkotlin/coroutines/c; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .annotation system Ldalvik/annotation/Signature; value = { "(", "Landroidx/lifecycle/LifecycleOwner;", "Lej/a<", "+TR;>;", "Lkotlin/coroutines/c<", "-TR;>;)", "Ljava/lang/Object;" } .end annotation .annotation build Lorg/jetbrains/annotations/Nullable; .end annotation .line 8 invoke-interface {p0}, Landroidx/lifecycle/LifecycleOwner;->getLifecycle()Landroidx/lifecycle/Lifecycle; move-result-object v0 const-string p0, "lifecycle" invoke-static {v0, p0}, Lkotlin/jvm/internal/f0;->o(Ljava/lang/Object;Ljava/lang/String;)V .line 9 sget-object v1, Landroidx/lifecycle/Lifecycle$State;->RESUMED:Landroidx/lifecycle/Lifecycle$State; .line 10 invoke-static {}, Lkotlinx/coroutines/b1;->e()Lkotlinx/coroutines/i2; move-result-object p0 invoke-virtual {p0}, Lkotlinx/coroutines/i2;->H1()Lkotlinx/coroutines/i2; move-result-object v3 .line 11 invoke-interface {p2}, Lkotlin/coroutines/c;->getContext()Lkotlin/coroutines/CoroutineContext; move-result-object p0 invoke-virtual {v3, p0}, Lkotlinx/coroutines/CoroutineDispatcher;->isDispatchNeeded(Lkotlin/coroutines/CoroutineContext;)Z move-result v2 if-nez v2, :cond_1 .line 12 invoke-virtual {v0}, Landroidx/lifecycle/Lifecycle;->getCurrentState()Landroidx/lifecycle/Lifecycle$State; move-result-object p0 sget-object v4, Landroidx/lifecycle/Lifecycle$State;->DESTROYED:Landroidx/lifecycle/Lifecycle$State; if-eq p0, v4, :cond_0 .line 13 invoke-virtual {v0}, Landroidx/lifecycle/Lifecycle;->getCurrentState()Landroidx/lifecycle/Lifecycle$State; move-result-object p0 invoke-virtual {p0, v1}, Ljava/lang/Enum;->compareTo(Ljava/lang/Enum;)I move-result p0 if-ltz p0, :cond_1 invoke-interface {p1}, Lej/a;->invoke()Ljava/lang/Object; move-result-object p0 goto :goto_0 .line 14 :cond_0 new-instance p0, Landroidx/lifecycle/LifecycleDestroyedException; invoke-direct {p0}, Landroidx/lifecycle/LifecycleDestroyedException;->()V throw p0 .line 15 :cond_1 new-instance v4, Landroidx/lifecycle/WithLifecycleStateKt$withStateAtLeastUnchecked$2; invoke-direct {v4, p1}, Landroidx/lifecycle/WithLifecycleStateKt$withStateAtLeastUnchecked$2;->(Lej/a;)V move-object v5, p2 invoke-static/range {v0 .. v5}, Landroidx/lifecycle/WithLifecycleStateKt;->suspendWithStateAtLeastUnchecked(Landroidx/lifecycle/Lifecycle;Landroidx/lifecycle/Lifecycle$State;ZLkotlinx/coroutines/CoroutineDispatcher;Lej/a;Lkotlin/coroutines/c;)Ljava/lang/Object; move-result-object p0 :goto_0 return-object p0 .end method .method private static final withResumed$$forInline(Landroidx/lifecycle/Lifecycle;Lej/a;Lkotlin/coroutines/c;)Ljava/lang/Object; .locals 0 .param p0 # Landroidx/lifecycle/Lifecycle; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .param p1 # Lej/a; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .param p2 # Lkotlin/coroutines/c; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .annotation build Lorg/jetbrains/annotations/Nullable; .end annotation .line 1 sget-object p0, Landroidx/lifecycle/Lifecycle$State;->RESUMED:Landroidx/lifecycle/Lifecycle$State; .line 2 invoke-static {}, Lkotlinx/coroutines/b1;->e()Lkotlinx/coroutines/i2; move-result-object p0 invoke-virtual {p0}, Lkotlinx/coroutines/i2;->H1()Lkotlinx/coroutines/i2; const/4 p0, 0x3 .line 3 invoke-static {p0}, Lkotlin/jvm/internal/c0;->e(I)V const/4 p0, 0x0 throw p0 .end method .method private static final withResumed$$forInline(Landroidx/lifecycle/LifecycleOwner;Lej/a;Lkotlin/coroutines/c;)Ljava/lang/Object; .locals 0 .param p0 # Landroidx/lifecycle/LifecycleOwner; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .param p1 # Lej/a; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .param p2 # Lkotlin/coroutines/c; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .annotation build Lorg/jetbrains/annotations/Nullable; .end annotation .line 4 invoke-interface {p0}, Landroidx/lifecycle/LifecycleOwner;->getLifecycle()Landroidx/lifecycle/Lifecycle; move-result-object p0 const-string p1, "lifecycle" invoke-static {p0, p1}, Lkotlin/jvm/internal/f0;->o(Ljava/lang/Object;Ljava/lang/String;)V .line 5 sget-object p0, Landroidx/lifecycle/Lifecycle$State;->RESUMED:Landroidx/lifecycle/Lifecycle$State; .line 6 invoke-static {}, Lkotlinx/coroutines/b1;->e()Lkotlinx/coroutines/i2; move-result-object p0 invoke-virtual {p0}, Lkotlinx/coroutines/i2;->H1()Lkotlinx/coroutines/i2; const/4 p0, 0x3 .line 7 invoke-static {p0}, Lkotlin/jvm/internal/c0;->e(I)V const/4 p0, 0x0 throw p0 .end method .method public static final withStarted(Landroidx/lifecycle/Lifecycle;Lej/a;Lkotlin/coroutines/c;)Ljava/lang/Object; .locals 6 .param p0 # Landroidx/lifecycle/Lifecycle; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .param p1 # Lej/a; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .param p2 # Lkotlin/coroutines/c; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .annotation system Ldalvik/annotation/Signature; value = { "(", "Landroidx/lifecycle/Lifecycle;", "Lej/a<", "+TR;>;", "Lkotlin/coroutines/c<", "-TR;>;)", "Ljava/lang/Object;" } .end annotation .annotation build Lorg/jetbrains/annotations/Nullable; .end annotation .line 1 sget-object v1, Landroidx/lifecycle/Lifecycle$State;->STARTED:Landroidx/lifecycle/Lifecycle$State; .line 2 invoke-static {}, Lkotlinx/coroutines/b1;->e()Lkotlinx/coroutines/i2; move-result-object v0 invoke-virtual {v0}, Lkotlinx/coroutines/i2;->H1()Lkotlinx/coroutines/i2; move-result-object v3 .line 3 invoke-interface {p2}, Lkotlin/coroutines/c;->getContext()Lkotlin/coroutines/CoroutineContext; move-result-object v0 invoke-virtual {v3, v0}, Lkotlinx/coroutines/CoroutineDispatcher;->isDispatchNeeded(Lkotlin/coroutines/CoroutineContext;)Z move-result v2 if-nez v2, :cond_1 .line 4 invoke-virtual {p0}, Landroidx/lifecycle/Lifecycle;->getCurrentState()Landroidx/lifecycle/Lifecycle$State; move-result-object v0 sget-object v4, Landroidx/lifecycle/Lifecycle$State;->DESTROYED:Landroidx/lifecycle/Lifecycle$State; if-eq v0, v4, :cond_0 .line 5 invoke-virtual {p0}, Landroidx/lifecycle/Lifecycle;->getCurrentState()Landroidx/lifecycle/Lifecycle$State; move-result-object v0 invoke-virtual {v0, v1}, Ljava/lang/Enum;->compareTo(Ljava/lang/Enum;)I move-result v0 if-ltz v0, :cond_1 invoke-interface {p1}, Lej/a;->invoke()Ljava/lang/Object; move-result-object p0 goto :goto_0 .line 6 :cond_0 new-instance p0, Landroidx/lifecycle/LifecycleDestroyedException; invoke-direct {p0}, Landroidx/lifecycle/LifecycleDestroyedException;->()V throw p0 .line 7 :cond_1 new-instance v4, Landroidx/lifecycle/WithLifecycleStateKt$withStateAtLeastUnchecked$2; invoke-direct {v4, p1}, Landroidx/lifecycle/WithLifecycleStateKt$withStateAtLeastUnchecked$2;->(Lej/a;)V move-object v0, p0 move-object v5, p2 invoke-static/range {v0 .. v5}, Landroidx/lifecycle/WithLifecycleStateKt;->suspendWithStateAtLeastUnchecked(Landroidx/lifecycle/Lifecycle;Landroidx/lifecycle/Lifecycle$State;ZLkotlinx/coroutines/CoroutineDispatcher;Lej/a;Lkotlin/coroutines/c;)Ljava/lang/Object; move-result-object p0 :goto_0 return-object p0 .end method .method public static final withStarted(Landroidx/lifecycle/LifecycleOwner;Lej/a;Lkotlin/coroutines/c;)Ljava/lang/Object; .locals 6 .param p0 # Landroidx/lifecycle/LifecycleOwner; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .param p1 # Lej/a; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .param p2 # Lkotlin/coroutines/c; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .annotation system Ldalvik/annotation/Signature; value = { "(", "Landroidx/lifecycle/LifecycleOwner;", "Lej/a<", "+TR;>;", "Lkotlin/coroutines/c<", "-TR;>;)", "Ljava/lang/Object;" } .end annotation .annotation build Lorg/jetbrains/annotations/Nullable; .end annotation .line 8 invoke-interface {p0}, Landroidx/lifecycle/LifecycleOwner;->getLifecycle()Landroidx/lifecycle/Lifecycle; move-result-object v0 const-string p0, "lifecycle" invoke-static {v0, p0}, Lkotlin/jvm/internal/f0;->o(Ljava/lang/Object;Ljava/lang/String;)V .line 9 sget-object v1, Landroidx/lifecycle/Lifecycle$State;->STARTED:Landroidx/lifecycle/Lifecycle$State; .line 10 invoke-static {}, Lkotlinx/coroutines/b1;->e()Lkotlinx/coroutines/i2; move-result-object p0 invoke-virtual {p0}, Lkotlinx/coroutines/i2;->H1()Lkotlinx/coroutines/i2; move-result-object v3 .line 11 invoke-interface {p2}, Lkotlin/coroutines/c;->getContext()Lkotlin/coroutines/CoroutineContext; move-result-object p0 invoke-virtual {v3, p0}, Lkotlinx/coroutines/CoroutineDispatcher;->isDispatchNeeded(Lkotlin/coroutines/CoroutineContext;)Z move-result v2 if-nez v2, :cond_1 .line 12 invoke-virtual {v0}, Landroidx/lifecycle/Lifecycle;->getCurrentState()Landroidx/lifecycle/Lifecycle$State; move-result-object p0 sget-object v4, Landroidx/lifecycle/Lifecycle$State;->DESTROYED:Landroidx/lifecycle/Lifecycle$State; if-eq p0, v4, :cond_0 .line 13 invoke-virtual {v0}, Landroidx/lifecycle/Lifecycle;->getCurrentState()Landroidx/lifecycle/Lifecycle$State; move-result-object p0 invoke-virtual {p0, v1}, Ljava/lang/Enum;->compareTo(Ljava/lang/Enum;)I move-result p0 if-ltz p0, :cond_1 invoke-interface {p1}, Lej/a;->invoke()Ljava/lang/Object; move-result-object p0 goto :goto_0 .line 14 :cond_0 new-instance p0, Landroidx/lifecycle/LifecycleDestroyedException; invoke-direct {p0}, Landroidx/lifecycle/LifecycleDestroyedException;->()V throw p0 .line 15 :cond_1 new-instance v4, Landroidx/lifecycle/WithLifecycleStateKt$withStateAtLeastUnchecked$2; invoke-direct {v4, p1}, Landroidx/lifecycle/WithLifecycleStateKt$withStateAtLeastUnchecked$2;->(Lej/a;)V move-object v5, p2 invoke-static/range {v0 .. v5}, Landroidx/lifecycle/WithLifecycleStateKt;->suspendWithStateAtLeastUnchecked(Landroidx/lifecycle/Lifecycle;Landroidx/lifecycle/Lifecycle$State;ZLkotlinx/coroutines/CoroutineDispatcher;Lej/a;Lkotlin/coroutines/c;)Ljava/lang/Object; move-result-object p0 :goto_0 return-object p0 .end method .method private static final withStarted$$forInline(Landroidx/lifecycle/Lifecycle;Lej/a;Lkotlin/coroutines/c;)Ljava/lang/Object; .locals 0 .param p0 # Landroidx/lifecycle/Lifecycle; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .param p1 # Lej/a; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .param p2 # Lkotlin/coroutines/c; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .annotation build Lorg/jetbrains/annotations/Nullable; .end annotation .line 1 sget-object p0, Landroidx/lifecycle/Lifecycle$State;->STARTED:Landroidx/lifecycle/Lifecycle$State; .line 2 invoke-static {}, Lkotlinx/coroutines/b1;->e()Lkotlinx/coroutines/i2; move-result-object p0 invoke-virtual {p0}, Lkotlinx/coroutines/i2;->H1()Lkotlinx/coroutines/i2; const/4 p0, 0x3 .line 3 invoke-static {p0}, Lkotlin/jvm/internal/c0;->e(I)V const/4 p0, 0x0 throw p0 .end method .method private static final withStarted$$forInline(Landroidx/lifecycle/LifecycleOwner;Lej/a;Lkotlin/coroutines/c;)Ljava/lang/Object; .locals 0 .param p0 # Landroidx/lifecycle/LifecycleOwner; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .param p1 # Lej/a; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .param p2 # Lkotlin/coroutines/c; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .annotation build Lorg/jetbrains/annotations/Nullable; .end annotation .line 4 invoke-interface {p0}, Landroidx/lifecycle/LifecycleOwner;->getLifecycle()Landroidx/lifecycle/Lifecycle; move-result-object p0 const-string p1, "lifecycle" invoke-static {p0, p1}, Lkotlin/jvm/internal/f0;->o(Ljava/lang/Object;Ljava/lang/String;)V .line 5 sget-object p0, Landroidx/lifecycle/Lifecycle$State;->STARTED:Landroidx/lifecycle/Lifecycle$State; .line 6 invoke-static {}, Lkotlinx/coroutines/b1;->e()Lkotlinx/coroutines/i2; move-result-object p0 invoke-virtual {p0}, Lkotlinx/coroutines/i2;->H1()Lkotlinx/coroutines/i2; const/4 p0, 0x3 .line 7 invoke-static {p0}, Lkotlin/jvm/internal/c0;->e(I)V const/4 p0, 0x0 throw p0 .end method .method public static final withStateAtLeast(Landroidx/lifecycle/Lifecycle;Landroidx/lifecycle/Lifecycle$State;Lej/a;Lkotlin/coroutines/c;)Ljava/lang/Object; .locals 7 .param p0 # Landroidx/lifecycle/Lifecycle; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .param p1 # Landroidx/lifecycle/Lifecycle$State; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .param p2 # Lej/a; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .param p3 # Lkotlin/coroutines/c; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .annotation system Ldalvik/annotation/Signature; value = { "(", "Landroidx/lifecycle/Lifecycle;", "Landroidx/lifecycle/Lifecycle$State;", "Lej/a<", "+TR;>;", "Lkotlin/coroutines/c<", "-TR;>;)", "Ljava/lang/Object;" } .end annotation .annotation build Lorg/jetbrains/annotations/Nullable; .end annotation .line 1 sget-object v0, Landroidx/lifecycle/Lifecycle$State;->CREATED:Landroidx/lifecycle/Lifecycle$State; invoke-virtual {p1, v0}, Ljava/lang/Enum;->compareTo(Ljava/lang/Enum;)I move-result v0 if-ltz v0, :cond_0 const/4 v0, 0x1 goto :goto_0 :cond_0 const/4 v0, 0x0 :goto_0 if-eqz v0, :cond_3 .line 2 invoke-static {}, Lkotlinx/coroutines/b1;->e()Lkotlinx/coroutines/i2; move-result-object v0 invoke-virtual {v0}, Lkotlinx/coroutines/i2;->H1()Lkotlinx/coroutines/i2; move-result-object v4 .line 3 invoke-interface {p3}, Lkotlin/coroutines/c;->getContext()Lkotlin/coroutines/CoroutineContext; move-result-object v0 invoke-virtual {v4, v0}, Lkotlinx/coroutines/CoroutineDispatcher;->isDispatchNeeded(Lkotlin/coroutines/CoroutineContext;)Z move-result v3 if-nez v3, :cond_2 .line 4 invoke-virtual {p0}, Landroidx/lifecycle/Lifecycle;->getCurrentState()Landroidx/lifecycle/Lifecycle$State; move-result-object v0 sget-object v1, Landroidx/lifecycle/Lifecycle$State;->DESTROYED:Landroidx/lifecycle/Lifecycle$State; if-eq v0, v1, :cond_1 .line 5 invoke-virtual {p0}, Landroidx/lifecycle/Lifecycle;->getCurrentState()Landroidx/lifecycle/Lifecycle$State; move-result-object v0 invoke-virtual {v0, p1}, Ljava/lang/Enum;->compareTo(Ljava/lang/Enum;)I move-result v0 if-ltz v0, :cond_2 invoke-interface {p2}, Lej/a;->invoke()Ljava/lang/Object; move-result-object p0 goto :goto_1 .line 6 :cond_1 new-instance p0, Landroidx/lifecycle/LifecycleDestroyedException; invoke-direct {p0}, Landroidx/lifecycle/LifecycleDestroyedException;->()V throw p0 .line 7 :cond_2 new-instance v5, Landroidx/lifecycle/WithLifecycleStateKt$withStateAtLeastUnchecked$2; invoke-direct {v5, p2}, Landroidx/lifecycle/WithLifecycleStateKt$withStateAtLeastUnchecked$2;->(Lej/a;)V move-object v1, p0 move-object v2, p1 move-object v6, p3 invoke-static/range {v1 .. v6}, Landroidx/lifecycle/WithLifecycleStateKt;->suspendWithStateAtLeastUnchecked(Landroidx/lifecycle/Lifecycle;Landroidx/lifecycle/Lifecycle$State;ZLkotlinx/coroutines/CoroutineDispatcher;Lej/a;Lkotlin/coroutines/c;)Ljava/lang/Object; move-result-object p0 :goto_1 return-object p0 .line 8 :cond_3 new-instance p0, Ljava/lang/StringBuilder; invoke-direct {p0}, Ljava/lang/StringBuilder;->()V const-string p2, "target state must be CREATED or greater, found " invoke-virtual {p0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p0 .line 9 new-instance p1, Ljava/lang/IllegalArgumentException; invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p0 invoke-direct {p1, p0}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw p1 .end method .method public static final withStateAtLeast(Landroidx/lifecycle/LifecycleOwner;Landroidx/lifecycle/Lifecycle$State;Lej/a;Lkotlin/coroutines/c;)Ljava/lang/Object; .locals 6 .param p0 # Landroidx/lifecycle/LifecycleOwner; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .param p1 # Landroidx/lifecycle/Lifecycle$State; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .param p2 # Lej/a; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .param p3 # Lkotlin/coroutines/c; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .annotation system Ldalvik/annotation/Signature; value = { "(", "Landroidx/lifecycle/LifecycleOwner;", "Landroidx/lifecycle/Lifecycle$State;", "Lej/a<", "+TR;>;", "Lkotlin/coroutines/c<", "-TR;>;)", "Ljava/lang/Object;" } .end annotation .annotation build Lorg/jetbrains/annotations/Nullable; .end annotation .line 10 invoke-interface {p0}, Landroidx/lifecycle/LifecycleOwner;->getLifecycle()Landroidx/lifecycle/Lifecycle; move-result-object v0 const-string p0, "lifecycle" invoke-static {v0, p0}, Lkotlin/jvm/internal/f0;->o(Ljava/lang/Object;Ljava/lang/String;)V .line 11 sget-object p0, Landroidx/lifecycle/Lifecycle$State;->CREATED:Landroidx/lifecycle/Lifecycle$State; invoke-virtual {p1, p0}, Ljava/lang/Enum;->compareTo(Ljava/lang/Enum;)I move-result p0 if-ltz p0, :cond_0 const/4 p0, 0x1 goto :goto_0 :cond_0 const/4 p0, 0x0 :goto_0 if-eqz p0, :cond_3 .line 12 invoke-static {}, Lkotlinx/coroutines/b1;->e()Lkotlinx/coroutines/i2; move-result-object p0 invoke-virtual {p0}, Lkotlinx/coroutines/i2;->H1()Lkotlinx/coroutines/i2; move-result-object v3 .line 13 invoke-interface {p3}, Lkotlin/coroutines/c;->getContext()Lkotlin/coroutines/CoroutineContext; move-result-object p0 invoke-virtual {v3, p0}, Lkotlinx/coroutines/CoroutineDispatcher;->isDispatchNeeded(Lkotlin/coroutines/CoroutineContext;)Z move-result v2 if-nez v2, :cond_2 .line 14 invoke-virtual {v0}, Landroidx/lifecycle/Lifecycle;->getCurrentState()Landroidx/lifecycle/Lifecycle$State; move-result-object p0 sget-object v1, Landroidx/lifecycle/Lifecycle$State;->DESTROYED:Landroidx/lifecycle/Lifecycle$State; if-eq p0, v1, :cond_1 .line 15 invoke-virtual {v0}, Landroidx/lifecycle/Lifecycle;->getCurrentState()Landroidx/lifecycle/Lifecycle$State; move-result-object p0 invoke-virtual {p0, p1}, Ljava/lang/Enum;->compareTo(Ljava/lang/Enum;)I move-result p0 if-ltz p0, :cond_2 invoke-interface {p2}, Lej/a;->invoke()Ljava/lang/Object; move-result-object p0 goto :goto_1 .line 16 :cond_1 new-instance p0, Landroidx/lifecycle/LifecycleDestroyedException; invoke-direct {p0}, Landroidx/lifecycle/LifecycleDestroyedException;->()V throw p0 .line 17 :cond_2 new-instance v4, Landroidx/lifecycle/WithLifecycleStateKt$withStateAtLeastUnchecked$2; invoke-direct {v4, p2}, Landroidx/lifecycle/WithLifecycleStateKt$withStateAtLeastUnchecked$2;->(Lej/a;)V move-object v1, p1 move-object v5, p3 invoke-static/range {v0 .. v5}, Landroidx/lifecycle/WithLifecycleStateKt;->suspendWithStateAtLeastUnchecked(Landroidx/lifecycle/Lifecycle;Landroidx/lifecycle/Lifecycle$State;ZLkotlinx/coroutines/CoroutineDispatcher;Lej/a;Lkotlin/coroutines/c;)Ljava/lang/Object; move-result-object p0 :goto_1 return-object p0 .line 18 :cond_3 new-instance p0, Ljava/lang/StringBuilder; invoke-direct {p0}, Ljava/lang/StringBuilder;->()V const-string p2, "target state must be CREATED or greater, found " invoke-virtual {p0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p0 .line 19 new-instance p1, Ljava/lang/IllegalArgumentException; invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p0 invoke-direct {p1, p0}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw p1 .end method .method private static final withStateAtLeast$$forInline(Landroidx/lifecycle/Lifecycle;Landroidx/lifecycle/Lifecycle$State;Lej/a;Lkotlin/coroutines/c;)Ljava/lang/Object; .locals 0 .param p0 # Landroidx/lifecycle/Lifecycle; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .param p1 # Landroidx/lifecycle/Lifecycle$State; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .param p2 # Lej/a; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .param p3 # Lkotlin/coroutines/c; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .annotation build Lorg/jetbrains/annotations/Nullable; .end annotation .line 1 sget-object p0, Landroidx/lifecycle/Lifecycle$State;->CREATED:Landroidx/lifecycle/Lifecycle$State; invoke-virtual {p1, p0}, Ljava/lang/Enum;->compareTo(Ljava/lang/Enum;)I move-result p0 if-ltz p0, :cond_0 const/4 p0, 0x1 goto :goto_0 :cond_0 const/4 p0, 0x0 :goto_0 if-nez p0, :cond_1 .line 2 new-instance p0, Ljava/lang/StringBuilder; invoke-direct {p0}, Ljava/lang/StringBuilder;->()V const-string p2, "target state must be CREATED or greater, found " invoke-virtual {p0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p0 .line 3 new-instance p1, Ljava/lang/IllegalArgumentException; invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p0 invoke-direct {p1, p0}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw p1 .line 4 :cond_1 invoke-static {}, Lkotlinx/coroutines/b1;->e()Lkotlinx/coroutines/i2; move-result-object p0 invoke-virtual {p0}, Lkotlinx/coroutines/i2;->H1()Lkotlinx/coroutines/i2; const/4 p0, 0x3 .line 5 invoke-static {p0}, Lkotlin/jvm/internal/c0;->e(I)V const/4 p0, 0x0 throw p0 .end method .method private static final withStateAtLeast$$forInline(Landroidx/lifecycle/LifecycleOwner;Landroidx/lifecycle/Lifecycle$State;Lej/a;Lkotlin/coroutines/c;)Ljava/lang/Object; .locals 0 .param p0 # Landroidx/lifecycle/LifecycleOwner; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .param p1 # Landroidx/lifecycle/Lifecycle$State; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .param p2 # Lej/a; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .param p3 # Lkotlin/coroutines/c; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .annotation build Lorg/jetbrains/annotations/Nullable; .end annotation .line 6 invoke-interface {p0}, Landroidx/lifecycle/LifecycleOwner;->getLifecycle()Landroidx/lifecycle/Lifecycle; move-result-object p0 const-string p2, "lifecycle" invoke-static {p0, p2}, Lkotlin/jvm/internal/f0;->o(Ljava/lang/Object;Ljava/lang/String;)V .line 7 sget-object p0, Landroidx/lifecycle/Lifecycle$State;->CREATED:Landroidx/lifecycle/Lifecycle$State; invoke-virtual {p1, p0}, Ljava/lang/Enum;->compareTo(Ljava/lang/Enum;)I move-result p0 if-ltz p0, :cond_0 const/4 p0, 0x1 goto :goto_0 :cond_0 const/4 p0, 0x0 :goto_0 if-nez p0, :cond_1 .line 8 new-instance p0, Ljava/lang/StringBuilder; invoke-direct {p0}, Ljava/lang/StringBuilder;->()V const-string p2, "target state must be CREATED or greater, found " invoke-virtual {p0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p0 .line 9 new-instance p1, Ljava/lang/IllegalArgumentException; invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p0 invoke-direct {p1, p0}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw p1 .line 10 :cond_1 invoke-static {}, Lkotlinx/coroutines/b1;->e()Lkotlinx/coroutines/i2; move-result-object p0 invoke-virtual {p0}, Lkotlinx/coroutines/i2;->H1()Lkotlinx/coroutines/i2; const/4 p0, 0x3 .line 11 invoke-static {p0}, Lkotlin/jvm/internal/c0;->e(I)V const/4 p0, 0x0 throw p0 .end method .method public static final withStateAtLeastUnchecked(Landroidx/lifecycle/Lifecycle;Landroidx/lifecycle/Lifecycle$State;Lej/a;Lkotlin/coroutines/c;)Ljava/lang/Object; .locals 7 .param p0 # Landroidx/lifecycle/Lifecycle; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .param p1 # Landroidx/lifecycle/Lifecycle$State; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .param p2 # Lej/a; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .param p3 # Lkotlin/coroutines/c; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .annotation system Ldalvik/annotation/Signature; value = { "(", "Landroidx/lifecycle/Lifecycle;", "Landroidx/lifecycle/Lifecycle$State;", "Lej/a<", "+TR;>;", "Lkotlin/coroutines/c<", "-TR;>;)", "Ljava/lang/Object;" } .end annotation .annotation build Lkotlin/PublishedApi; .end annotation .annotation build Lorg/jetbrains/annotations/Nullable; .end annotation .line 1 invoke-static {}, Lkotlinx/coroutines/b1;->e()Lkotlinx/coroutines/i2; move-result-object v0 invoke-virtual {v0}, Lkotlinx/coroutines/i2;->H1()Lkotlinx/coroutines/i2; move-result-object v4 .line 2 invoke-interface {p3}, Lkotlin/coroutines/c;->getContext()Lkotlin/coroutines/CoroutineContext; move-result-object v0 invoke-virtual {v4, v0}, Lkotlinx/coroutines/CoroutineDispatcher;->isDispatchNeeded(Lkotlin/coroutines/CoroutineContext;)Z move-result v3 if-nez v3, :cond_1 .line 3 invoke-virtual {p0}, Landroidx/lifecycle/Lifecycle;->getCurrentState()Landroidx/lifecycle/Lifecycle$State; move-result-object v0 sget-object v1, Landroidx/lifecycle/Lifecycle$State;->DESTROYED:Landroidx/lifecycle/Lifecycle$State; if-eq v0, v1, :cond_0 .line 4 invoke-virtual {p0}, Landroidx/lifecycle/Lifecycle;->getCurrentState()Landroidx/lifecycle/Lifecycle$State; move-result-object v0 invoke-virtual {v0, p1}, Ljava/lang/Enum;->compareTo(Ljava/lang/Enum;)I move-result v0 if-ltz v0, :cond_1 invoke-interface {p2}, Lej/a;->invoke()Ljava/lang/Object; move-result-object p0 return-object p0 .line 5 :cond_0 new-instance p0, Landroidx/lifecycle/LifecycleDestroyedException; invoke-direct {p0}, Landroidx/lifecycle/LifecycleDestroyedException;->()V throw p0 .line 6 :cond_1 new-instance v5, Landroidx/lifecycle/WithLifecycleStateKt$withStateAtLeastUnchecked$2; invoke-direct {v5, p2}, Landroidx/lifecycle/WithLifecycleStateKt$withStateAtLeastUnchecked$2;->(Lej/a;)V move-object v1, p0 move-object v2, p1 move-object v6, p3 invoke-static/range {v1 .. v6}, Landroidx/lifecycle/WithLifecycleStateKt;->suspendWithStateAtLeastUnchecked(Landroidx/lifecycle/Lifecycle;Landroidx/lifecycle/Lifecycle$State;ZLkotlinx/coroutines/CoroutineDispatcher;Lej/a;Lkotlin/coroutines/c;)Ljava/lang/Object; move-result-object p0 return-object p0 .end method .method private static final withStateAtLeastUnchecked$$forInline(Landroidx/lifecycle/Lifecycle;Landroidx/lifecycle/Lifecycle$State;Lej/a;Lkotlin/coroutines/c;)Ljava/lang/Object; .locals 0 .param p0 # Landroidx/lifecycle/Lifecycle; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .param p1 # Landroidx/lifecycle/Lifecycle$State; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .param p2 # Lej/a; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .param p3 # Lkotlin/coroutines/c; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .annotation build Lkotlin/PublishedApi; .end annotation .annotation build Lorg/jetbrains/annotations/Nullable; .end annotation .line 1 invoke-static {}, Lkotlinx/coroutines/b1;->e()Lkotlinx/coroutines/i2; move-result-object p0 invoke-virtual {p0}, Lkotlinx/coroutines/i2;->H1()Lkotlinx/coroutines/i2; const/4 p0, 0x3 .line 2 invoke-static {p0}, Lkotlin/jvm/internal/c0;->e(I)V const/4 p0, 0x0 throw p0 .end method