.class public final La0/a/w; .super Ljava/lang/Object; .source "CoroutineContext.kt" # static fields .field public static final a:Ljava/util/concurrent/atomic/AtomicLong; .field public static final b:Z # direct methods .method public static constructor ()V .locals 3 new-instance v0, Ljava/util/concurrent/atomic/AtomicLong; invoke-direct {v0}, Ljava/util/concurrent/atomic/AtomicLong;->()V sput-object v0, La0/a/w;->a:Ljava/util/concurrent/atomic/AtomicLong; const-string v0, "kotlinx.coroutines.scheduler" invoke-static {v0}, La0/a/a2/w;->a(Ljava/lang/String;)Ljava/lang/String; move-result-object v0 if-nez v0, :cond_0 goto :goto_0 :cond_0 invoke-virtual {v0}, Ljava/lang/String;->hashCode()I move-result v1 if-eqz v1, :cond_2 const/16 v2, 0xddf if-eq v1, v2, :cond_1 const v2, 0x1ad6f if-ne v1, v2, :cond_3 const-string v1, "off" invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v1 if-eqz v1, :cond_3 const/4 v0, 0x0 goto :goto_1 :cond_1 const-string v1, "on" invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v1 if-eqz v1, :cond_3 goto :goto_0 :cond_2 const-string v1, "" invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v1 if-eqz v1, :cond_3 :goto_0 const/4 v0, 0x1 :goto_1 sput-boolean v0, La0/a/w;->b:Z return-void :cond_3 new-instance v1, Ljava/lang/StringBuilder; invoke-direct {v1}, Ljava/lang/StringBuilder;->()V const-string v2, "System property \'kotlinx.coroutines.scheduler\' has unrecognized value \'" invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; const/16 v0, 0x27 invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder; invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v0 new-instance v1, Ljava/lang/IllegalStateException; invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object v0 invoke-direct {v1, v0}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V throw v1 .end method .method public static final a(Lkotlin/coroutines/CoroutineContext;)Ljava/lang/String; .locals 3 const/4 v0, 0x0 if-eqz p0, :cond_3 sget-boolean v1, La0/a/e0;->a:Z if-nez v1, :cond_0 return-object v0 :cond_0 sget-object v1, La0/a/z;->e:La0/a/z$a; invoke-interface {p0, v1}, Lkotlin/coroutines/CoroutineContext;->get(Lkotlin/coroutines/CoroutineContext$b;)Lkotlin/coroutines/CoroutineContext$a; move-result-object v1 check-cast v1, La0/a/z; if-eqz v1, :cond_2 sget-object v0, La0/a/a0;->e:La0/a/a0$a; invoke-interface {p0, v0}, Lkotlin/coroutines/CoroutineContext;->get(Lkotlin/coroutines/CoroutineContext$b;)Lkotlin/coroutines/CoroutineContext$a; move-result-object p0 check-cast p0, La0/a/a0; if-eqz p0, :cond_1 iget-object p0, p0, La0/a/a0;->d:Ljava/lang/String; if-eqz p0, :cond_1 goto :goto_0 :cond_1 const-string p0, "coroutine" :goto_0 new-instance v0, Ljava/lang/StringBuilder; invoke-direct {v0}, Ljava/lang/StringBuilder;->()V invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; const/16 p0, 0x23 invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder; iget-wide v1, v1, La0/a/z;->d:J invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder; invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p0 return-object p0 :cond_2 return-object v0 :cond_3 const-string p0, "$this$coroutineName" invoke-static {p0}, Lz/u/b/j;->a(Ljava/lang/String;)V throw v0 .end method .method public static final a(Lkotlinx/coroutines/CoroutineScope;Lkotlin/coroutines/CoroutineContext;)Lkotlin/coroutines/CoroutineContext; .locals 2 const/4 v0, 0x0 if-eqz p0, :cond_3 if-eqz p1, :cond_2 invoke-interface {p0}, Lkotlinx/coroutines/CoroutineScope;->c()Lkotlin/coroutines/CoroutineContext; move-result-object p0 invoke-interface {p0, p1}, Lkotlin/coroutines/CoroutineContext;->plus(Lkotlin/coroutines/CoroutineContext;)Lkotlin/coroutines/CoroutineContext; move-result-object p0 sget-boolean p1, La0/a/e0;->a:Z if-eqz p1, :cond_0 new-instance p1, La0/a/z; sget-object v0, La0/a/w;->a:Ljava/util/concurrent/atomic/AtomicLong; invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicLong;->incrementAndGet()J move-result-wide v0 invoke-direct {p1, v0, v1}, La0/a/z;->(J)V invoke-interface {p0, p1}, Lkotlin/coroutines/CoroutineContext;->plus(Lkotlin/coroutines/CoroutineContext;)Lkotlin/coroutines/CoroutineContext; move-result-object p1 goto :goto_0 :cond_0 move-object p1, p0 :goto_0 sget-object v0, La0/a/n0;->a:La0/a/x; if-eq p0, v0, :cond_1 sget-object v0, Lz/s/c;->a:Lz/s/c$a; invoke-interface {p0, v0}, Lkotlin/coroutines/CoroutineContext;->get(Lkotlin/coroutines/CoroutineContext$b;)Lkotlin/coroutines/CoroutineContext$a; move-result-object p0 if-nez p0, :cond_1 sget-object p0, La0/a/n0;->a:La0/a/x; invoke-interface {p1, p0}, Lkotlin/coroutines/CoroutineContext;->plus(Lkotlin/coroutines/CoroutineContext;)Lkotlin/coroutines/CoroutineContext; move-result-object p1 :cond_1 return-object p1 :cond_2 const-string p0, "context" invoke-static {p0}, Lz/u/b/j;->a(Ljava/lang/String;)V throw v0 :cond_3 const-string p0, "$this$newCoroutineContext" invoke-static {p0}, Lz/u/b/j;->a(Ljava/lang/String;)V throw v0 .end method