.class public final Landroidx/lifecycle/LifecycleKt; .super Ljava/lang/Object; .source "Lifecycle.kt" # annotations .annotation runtime Lkotlin/Metadata; bv = { 0x1, 0x0, 0x3 } d1 = { "\u0000\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0003\"\u0015\u0010\u0000\u001a\u00020\u0001*\u00020\u00028F\u00a2\u0006\u0006\u001a\u0004\u0008\u0003\u0010\u0004\u00a8\u0006\u0005" } d2 = { "coroutineScope", "Landroidx/lifecycle/LifecycleCoroutineScope;", "Landroidx/lifecycle/Lifecycle;", "getCoroutineScope", "(Landroidx/lifecycle/Lifecycle;)Landroidx/lifecycle/LifecycleCoroutineScope;", "lifecycle-runtime-ktx_release" } k = 0x2 mv = { 0x1, 0x4, 0x1 } .end annotation # direct methods .method public static final getCoroutineScope(Landroidx/lifecycle/Lifecycle;)Landroidx/lifecycle/LifecycleCoroutineScope; .locals 4 .param p0 # Landroidx/lifecycle/Lifecycle; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation const-string v0, "$this$coroutineScope" invoke-static {p0, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V .line 1 :cond_0 iget-object v0, p0, Landroidx/lifecycle/Lifecycle;->mInternalScopeRef:Ljava/util/concurrent/atomic/AtomicReference; invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object; move-result-object v0 check-cast v0, Landroidx/lifecycle/LifecycleCoroutineScopeImpl; if-eqz v0, :cond_1 return-object v0 .line 2 :cond_1 new-instance v0, Landroidx/lifecycle/LifecycleCoroutineScopeImpl; const/4 v1, 0x1 const/4 v2, 0x0 .line 3 invoke-static {v2, v1, v2}, Lkotlinx/coroutines/a3;->c(Lkotlinx/coroutines/y1;ILjava/lang/Object;)Lkotlinx/coroutines/z; move-result-object v1 invoke-static {}, Lkotlinx/coroutines/b1;->e()Lkotlinx/coroutines/i2; move-result-object v3 invoke-virtual {v3}, Lkotlinx/coroutines/i2;->H1()Lkotlinx/coroutines/i2; move-result-object v3 invoke-interface {v1, v3}, Lkotlin/coroutines/CoroutineContext;->plus(Lkotlin/coroutines/CoroutineContext;)Lkotlin/coroutines/CoroutineContext; move-result-object v1 .line 4 invoke-direct {v0, p0, v1}, Landroidx/lifecycle/LifecycleCoroutineScopeImpl;->(Landroidx/lifecycle/Lifecycle;Lkotlin/coroutines/CoroutineContext;)V .line 5 iget-object v1, p0, Landroidx/lifecycle/Lifecycle;->mInternalScopeRef:Ljava/util/concurrent/atomic/AtomicReference; invoke-virtual {v1, v2, v0}, Ljava/util/concurrent/atomic/AtomicReference;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;)Z move-result v1 if-eqz v1, :cond_0 .line 6 invoke-virtual {v0}, Landroidx/lifecycle/LifecycleCoroutineScopeImpl;->register()V return-object v0 .end method