319 lines
		
	
	
		
			8.6 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
			
		
		
	
	
			319 lines
		
	
	
		
			8.6 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
| .class public Lkotlinx/coroutines/internal/u;
 | |
| .super Ljava/lang/Object;
 | |
| .source "LockFreeTaskQueue.kt"
 | |
| 
 | |
| 
 | |
| # annotations
 | |
| .annotation system Ldalvik/annotation/Signature;
 | |
|     value = {
 | |
|         "<E:",
 | |
|         "Ljava/lang/Object;",
 | |
|         ">",
 | |
|         "Ljava/lang/Object;"
 | |
|     }
 | |
| .end annotation
 | |
| 
 | |
| .annotation system Ldalvik/annotation/SourceDebugExtension;
 | |
|     value = "SMAP\nLockFreeTaskQueue.kt\nKotlin\n*S Kotlin\n*F\n+ 1 LockFreeTaskQueue.kt\nkotlinx/coroutines/internal/LockFreeTaskQueue\n+ 2 AtomicFU.common.kt\nkotlinx/atomicfu/AtomicFU_commonKt\n*L\n1#1,308:1\n92#2,2:309\n92#2,2:311\n92#2,2:313\n*E\n*S KotlinDebug\n*F\n+ 1 LockFreeTaskQueue.kt\nkotlinx/coroutines/internal/LockFreeTaskQueue\n*L\n40#1,2:309\n47#1,2:311\n58#1,2:313\n*E\n"
 | |
| .end annotation
 | |
| 
 | |
| .annotation runtime Lkotlin/Metadata;
 | |
|     bv = {}
 | |
|     d1 = {
 | |
|         "\u00000\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0010\u000b\n\u0002\u0008\u0005\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010 \n\u0002\u0008\u0006\n\u0002\u0010\u0008\n\u0002\u0008\u0007\u0008\u0010\u0018\u0000*\u0008\u0008\u0000\u0010\u0002*\u00020\u00012\u00020\u0001B\u000f\u0012\u0006\u0010\u001a\u001a\u00020\u0007\u00a2\u0006\u0004\u0008\u001b\u0010\u001cJ\r\u0010\u0004\u001a\u00020\u0003\u00a2\u0006\u0004\u0008\u0004\u0010\u0005J\u0015\u0010\u0008\u001a\u00020\u00072\u0006\u0010\u0006\u001a\u00028\u0000\u00a2\u0006\u0004\u0008\u0008\u0010\tJ\u000f\u0010\n\u001a\u0004\u0018\u00018\u0000\u00a2\u0006\u0004\u0008\n\u0010\u000bJ-\u0010\u0010\u001a\u0008\u0012\u0004\u0012\u00028\u00010\u000f\"\u0004\u0008\u0001\u0010\u000c2\u0012\u0010\u000e\u001a\u000e\u0012\u0004\u0012\u00028\u0000\u0012\u0004\u0012\u00028\u00010\r\u00a2\u0006\u0004\u0008\u0010\u0010\u0011J\r\u0010\u0012\u001a\u00020\u0007\u00a2\u0006\u0004\u0008\u0012\u0010\u0013R\u0011\u0010\u0015\u001a\u00020\u00078F\u00a2\u0006\u0006\u001a\u0004\u0008\u0014\u0010\u0013R\u0011\u0010\u0019\u001a\u00020\u00168F\u00a2\u0006\u0006\u001a\u0004\u0008\u0017\u0010\u0018\u00a8\u0006\u001d"
 | |
|     }
 | |
|     d2 = {
 | |
|         "Lkotlinx/coroutines/internal/u;",
 | |
|         "",
 | |
|         "E",
 | |
|         "Lkotlin/d1;",
 | |
|         "b",
 | |
|         "()V",
 | |
|         "element",
 | |
|         "",
 | |
|         "a",
 | |
|         "(Ljava/lang/Object;)Z",
 | |
|         "g",
 | |
|         "()Ljava/lang/Object;",
 | |
|         "R",
 | |
|         "Lkotlin/Function1;",
 | |
|         "transform",
 | |
|         "",
 | |
|         "f",
 | |
|         "(Lej/l;)Ljava/util/List;",
 | |
|         "d",
 | |
|         "()Z",
 | |
|         "e",
 | |
|         "isEmpty",
 | |
|         "",
 | |
|         "c",
 | |
|         "()I",
 | |
|         "size",
 | |
|         "singleConsumer",
 | |
|         "<init>",
 | |
|         "(Z)V",
 | |
|         "kotlinx-coroutines-core"
 | |
|     }
 | |
|     k = 0x1
 | |
|     mv = {
 | |
|         0x1,
 | |
|         0x4,
 | |
|         0x0
 | |
|     }
 | |
| .end annotation
 | |
| 
 | |
| 
 | |
| # static fields
 | |
| .field public static final a:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
 | |
| 
 | |
| 
 | |
| # instance fields
 | |
| .field private volatile _cur:Ljava/lang/Object;
 | |
| 
 | |
| 
 | |
| # direct methods
 | |
| .method public static constructor <clinit>()V
 | |
|     .locals 3
 | |
| 
 | |
|     const-class v0, Lkotlinx/coroutines/internal/u;
 | |
| 
 | |
|     const-class v1, Ljava/lang/Object;
 | |
| 
 | |
|     const-string v2, "_cur"
 | |
| 
 | |
|     invoke-static {v0, v1, v2}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->newUpdater(Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/String;)Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     sput-object v0, Lkotlinx/coroutines/internal/u;->a:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public constructor <init>(Z)V
 | |
|     .locals 2
 | |
| 
 | |
|     .line 1
 | |
|     invoke-direct {p0}, Ljava/lang/Object;-><init>()V
 | |
| 
 | |
|     .line 2
 | |
|     new-instance v0, Lkotlinx/coroutines/internal/v;
 | |
| 
 | |
|     const/16 v1, 0x8
 | |
| 
 | |
|     invoke-direct {v0, v1, p1}, Lkotlinx/coroutines/internal/v;-><init>(IZ)V
 | |
| 
 | |
|     iput-object v0, p0, Lkotlinx/coroutines/internal/u;->_cur:Ljava/lang/Object;
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| 
 | |
| # virtual methods
 | |
| .method public final a(Ljava/lang/Object;)Z
 | |
|     .locals 3
 | |
|     .param p1    # Ljava/lang/Object;
 | |
|         .annotation build Lorg/jetbrains/annotations/NotNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(TE;)Z"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     :goto_0
 | |
|     iget-object v0, p0, Lkotlinx/coroutines/internal/u;->_cur:Ljava/lang/Object;
 | |
| 
 | |
|     check-cast v0, Lkotlinx/coroutines/internal/v;
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {v0, p1}, Lkotlinx/coroutines/internal/v;->a(Ljava/lang/Object;)I
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     const/4 v2, 0x1
 | |
| 
 | |
|     if-eqz v1, :cond_2
 | |
| 
 | |
|     if-eq v1, v2, :cond_1
 | |
| 
 | |
|     const/4 v0, 0x2
 | |
| 
 | |
|     if-eq v1, v0, :cond_0
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 p1, 0x0
 | |
| 
 | |
|     return p1
 | |
| 
 | |
|     .line 3
 | |
|     :cond_1
 | |
|     sget-object v1, Lkotlinx/coroutines/internal/u;->a:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
 | |
| 
 | |
|     invoke-virtual {v0}, Lkotlinx/coroutines/internal/v;->k()Lkotlinx/coroutines/internal/v;
 | |
| 
 | |
|     move-result-object v2
 | |
| 
 | |
|     invoke-virtual {v1, p0, v0, v2}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_2
 | |
|     return v2
 | |
| .end method
 | |
| 
 | |
| .method public final b()V
 | |
|     .locals 3
 | |
| 
 | |
|     .line 1
 | |
|     :goto_0
 | |
|     iget-object v0, p0, Lkotlinx/coroutines/internal/u;->_cur:Ljava/lang/Object;
 | |
| 
 | |
|     check-cast v0, Lkotlinx/coroutines/internal/v;
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {v0}, Lkotlinx/coroutines/internal/v;->d()Z
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     if-eqz v1, :cond_0
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     .line 3
 | |
|     :cond_0
 | |
|     sget-object v1, Lkotlinx/coroutines/internal/u;->a:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
 | |
| 
 | |
|     invoke-virtual {v0}, Lkotlinx/coroutines/internal/v;->k()Lkotlinx/coroutines/internal/v;
 | |
| 
 | |
|     move-result-object v2
 | |
| 
 | |
|     invoke-virtual {v1, p0, v0, v2}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
 | |
| 
 | |
|     goto :goto_0
 | |
| .end method
 | |
| 
 | |
| .method public final c()I
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lkotlinx/coroutines/internal/u;->_cur:Ljava/lang/Object;
 | |
| 
 | |
|     check-cast v0, Lkotlinx/coroutines/internal/v;
 | |
| 
 | |
|     invoke-virtual {v0}, Lkotlinx/coroutines/internal/v;->f()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public final d()Z
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lkotlinx/coroutines/internal/u;->_cur:Ljava/lang/Object;
 | |
| 
 | |
|     check-cast v0, Lkotlinx/coroutines/internal/v;
 | |
| 
 | |
|     invoke-virtual {v0}, Lkotlinx/coroutines/internal/v;->g()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public final e()Z
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lkotlinx/coroutines/internal/u;->_cur:Ljava/lang/Object;
 | |
| 
 | |
|     check-cast v0, Lkotlinx/coroutines/internal/v;
 | |
| 
 | |
|     invoke-virtual {v0}, Lkotlinx/coroutines/internal/v;->h()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public final f(Lej/l;)Ljava/util/List;
 | |
|     .locals 1
 | |
|     .param p1    # Lej/l;
 | |
|         .annotation build Lorg/jetbrains/annotations/NotNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "<R:",
 | |
|             "Ljava/lang/Object;",
 | |
|             ">(",
 | |
|             "Lej/l<",
 | |
|             "-TE;+TR;>;)",
 | |
|             "Ljava/util/List<",
 | |
|             "TR;>;"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation build Lorg/jetbrains/annotations/NotNull;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lkotlinx/coroutines/internal/u;->_cur:Ljava/lang/Object;
 | |
| 
 | |
|     check-cast v0, Lkotlinx/coroutines/internal/v;
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Lkotlinx/coroutines/internal/v;->i(Lej/l;)Ljava/util/List;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     return-object p1
 | |
| .end method
 | |
| 
 | |
| .method public final g()Ljava/lang/Object;
 | |
|     .locals 3
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "()TE;"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation build Lorg/jetbrains/annotations/Nullable;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     :goto_0
 | |
|     iget-object v0, p0, Lkotlinx/coroutines/internal/u;->_cur:Ljava/lang/Object;
 | |
| 
 | |
|     check-cast v0, Lkotlinx/coroutines/internal/v;
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {v0}, Lkotlinx/coroutines/internal/v;->l()Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     .line 3
 | |
|     sget-object v2, Lkotlinx/coroutines/internal/v;->s:Lkotlinx/coroutines/internal/i0;
 | |
| 
 | |
|     if-eq v1, v2, :cond_0
 | |
| 
 | |
|     return-object v1
 | |
| 
 | |
|     .line 4
 | |
|     :cond_0
 | |
|     sget-object v1, Lkotlinx/coroutines/internal/u;->a:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
 | |
| 
 | |
|     invoke-virtual {v0}, Lkotlinx/coroutines/internal/v;->k()Lkotlinx/coroutines/internal/v;
 | |
| 
 | |
|     move-result-object v2
 | |
| 
 | |
|     invoke-virtual {v1, p0, v0, v2}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
 | |
| 
 | |
|     goto :goto_0
 | |
| .end method
 |