415 lines
		
	
	
		
			12 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
			
		
		
	
	
			415 lines
		
	
	
		
			12 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
.class public final Lkotlin/coroutines/g;
 | 
						|
.super Ljava/lang/Object;
 | 
						|
.source "SafeContinuationJvm.kt"
 | 
						|
 | 
						|
# interfaces
 | 
						|
.implements Lkotlin/coroutines/c;
 | 
						|
.implements Lwi/c;
 | 
						|
 | 
						|
 | 
						|
# annotations
 | 
						|
.annotation system Ldalvik/annotation/MemberClasses;
 | 
						|
    value = {
 | 
						|
        Lkotlin/coroutines/g$a;
 | 
						|
    }
 | 
						|
.end annotation
 | 
						|
 | 
						|
.annotation system Ldalvik/annotation/Signature;
 | 
						|
    value = {
 | 
						|
        "<T:",
 | 
						|
        "Ljava/lang/Object;",
 | 
						|
        ">",
 | 
						|
        "Ljava/lang/Object;",
 | 
						|
        "Lkotlin/coroutines/c<",
 | 
						|
        "TT;>;",
 | 
						|
        "Lwi/c;"
 | 
						|
    }
 | 
						|
.end annotation
 | 
						|
 | 
						|
.annotation runtime Lkotlin/Metadata;
 | 
						|
    bv = {}
 | 
						|
    d1 = {
 | 
						|
        "\u00008\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\u0008\u0005\n\u0002\u0018\u0002\n\u0002\u0008\u000c\u0008\u0001\u0018\u0000 \u001e*\u0006\u0008\u0000\u0010\u0001 \u00002\u0008\u0012\u0004\u0012\u00028\u00000\u00022\u00020\u0003:\u0001\u0010B!\u0008\u0000\u0012\u000c\u0010\u0012\u001a\u0008\u0012\u0004\u0012\u00028\u00000\u0002\u0012\u0008\u0010\u001a\u001a\u0004\u0018\u00010\t\u00a2\u0006\u0004\u0008\u001b\u0010\u001cB\u0017\u0008\u0011\u0012\u000c\u0010\u0012\u001a\u0008\u0012\u0004\u0012\u00028\u00000\u0002\u00a2\u0006\u0004\u0008\u001b\u0010\u001dJ \u0010\u0007\u001a\u00020\u00062\u000c\u0010\u0005\u001a\u0008\u0012\u0004\u0012\u00028\u00000\u0004H\u0016\u00f8\u0001\u0000\u00a2\u0006\u0004\u0008\u0007\u0010\u0008J\n\u0010\n\u001a\u0004\u0018\u00010\tH\u0001J\n\u0010\u000c\u001a\u0004\u0018\u00010\u000bH\u0016J\u0008\u0010\u000e\u001a\u00020\rH\u0016R\u0018\u0010\u0005\u001a\u0004\u0018\u00010\t8\u0002@\u0002X\u0082\u000e\u00a2\u0006\u0006\n\u0004\u0008\u0005\u0010\u000fR\u001a\u0010\u0012\u001a\u0008\u0012\u0004\u0012\u00028\u00000\u00028\u0002X\u0082\u0004\u00a2\u0006\u0006\n\u0004\u0008\u0010\u0010\u0011R\u0014\u0010\u0016\u001a\u00020\u00138VX\u0096\u0004\u00a2\u0006\u0006\u001a\u0004\u0008\u0014\u0010\u0015R\u0016\u0010\u0019\u001a\u0004\u0018\u00010\u00038VX\u0096\u0004\u00a2\u0006\u0006\u001a\u0004\u0008\u0017\u0010\u0018\u0082\u0002\u0004\n\u0002\u0008\u0019\u00a8\u0006\u001f"
 | 
						|
    }
 | 
						|
    d2 = {
 | 
						|
        "Lkotlin/coroutines/g;",
 | 
						|
        "T",
 | 
						|
        "Lkotlin/coroutines/c;",
 | 
						|
        "Lwi/c;",
 | 
						|
        "Lkotlin/Result;",
 | 
						|
        "result",
 | 
						|
        "Lkotlin/d1;",
 | 
						|
        "resumeWith",
 | 
						|
        "(Ljava/lang/Object;)V",
 | 
						|
        "",
 | 
						|
        "b",
 | 
						|
        "Ljava/lang/StackTraceElement;",
 | 
						|
        "getStackTraceElement",
 | 
						|
        "",
 | 
						|
        "toString",
 | 
						|
        "Ljava/lang/Object;",
 | 
						|
        "a",
 | 
						|
        "Lkotlin/coroutines/c;",
 | 
						|
        "delegate",
 | 
						|
        "Lkotlin/coroutines/CoroutineContext;",
 | 
						|
        "getContext",
 | 
						|
        "()Lkotlin/coroutines/CoroutineContext;",
 | 
						|
        "context",
 | 
						|
        "getCallerFrame",
 | 
						|
        "()Lwi/c;",
 | 
						|
        "callerFrame",
 | 
						|
        "initialResult",
 | 
						|
        "<init>",
 | 
						|
        "(Lkotlin/coroutines/c;Ljava/lang/Object;)V",
 | 
						|
        "(Lkotlin/coroutines/c;)V",
 | 
						|
        "c",
 | 
						|
        "kotlin-stdlib"
 | 
						|
    }
 | 
						|
    k = 0x1
 | 
						|
    mv = {
 | 
						|
        0x1,
 | 
						|
        0x5,
 | 
						|
        0x1
 | 
						|
    }
 | 
						|
.end annotation
 | 
						|
 | 
						|
.annotation build Lkotlin/PublishedApi;
 | 
						|
.end annotation
 | 
						|
 | 
						|
.annotation build Lkotlin/SinceKotlin;
 | 
						|
    version = "1.3"
 | 
						|
.end annotation
 | 
						|
 | 
						|
 | 
						|
# static fields
 | 
						|
.field public static final b:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
 | 
						|
    .annotation system Ldalvik/annotation/Signature;
 | 
						|
        value = {
 | 
						|
            "Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater<",
 | 
						|
            "Lkotlin/coroutines/g<",
 | 
						|
            "*>;",
 | 
						|
            "Ljava/lang/Object;",
 | 
						|
            ">;"
 | 
						|
        }
 | 
						|
    .end annotation
 | 
						|
 | 
						|
    .annotation runtime Ljava/lang/Deprecated;
 | 
						|
    .end annotation
 | 
						|
.end field
 | 
						|
 | 
						|
.field public static final c:Lkotlin/coroutines/g$a;
 | 
						|
    .annotation build Lorg/jetbrains/annotations/NotNull;
 | 
						|
    .end annotation
 | 
						|
.end field
 | 
						|
 | 
						|
 | 
						|
# instance fields
 | 
						|
.field public final a:Lkotlin/coroutines/c;
 | 
						|
    .annotation system Ldalvik/annotation/Signature;
 | 
						|
        value = {
 | 
						|
            "Lkotlin/coroutines/c<",
 | 
						|
            "TT;>;"
 | 
						|
        }
 | 
						|
    .end annotation
 | 
						|
.end field
 | 
						|
 | 
						|
.field private volatile result:Ljava/lang/Object;
 | 
						|
 | 
						|
 | 
						|
# direct methods
 | 
						|
.method public static constructor <clinit>()V
 | 
						|
    .locals 3
 | 
						|
 | 
						|
    new-instance v0, Lkotlin/coroutines/g$a;
 | 
						|
 | 
						|
    const/4 v1, 0x0
 | 
						|
 | 
						|
    invoke-direct {v0, v1}, Lkotlin/coroutines/g$a;-><init>(Lkotlin/jvm/internal/u;)V
 | 
						|
 | 
						|
    sput-object v0, Lkotlin/coroutines/g;->c:Lkotlin/coroutines/g$a;
 | 
						|
 | 
						|
    .line 1
 | 
						|
    const-class v0, Lkotlin/coroutines/g;
 | 
						|
 | 
						|
    const-class v1, Ljava/lang/Object;
 | 
						|
 | 
						|
    const-string v2, "result"
 | 
						|
 | 
						|
    .line 2
 | 
						|
    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, Lkotlin/coroutines/g;->b:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
 | 
						|
 | 
						|
    return-void
 | 
						|
.end method
 | 
						|
 | 
						|
.method public constructor <init>(Lkotlin/coroutines/c;)V
 | 
						|
    .locals 1
 | 
						|
    .param p1    # Lkotlin/coroutines/c;
 | 
						|
        .annotation build Lorg/jetbrains/annotations/NotNull;
 | 
						|
        .end annotation
 | 
						|
    .end param
 | 
						|
    .annotation system Ldalvik/annotation/Signature;
 | 
						|
        value = {
 | 
						|
            "(",
 | 
						|
            "Lkotlin/coroutines/c<",
 | 
						|
            "-TT;>;)V"
 | 
						|
        }
 | 
						|
    .end annotation
 | 
						|
 | 
						|
    .annotation build Lkotlin/PublishedApi;
 | 
						|
    .end annotation
 | 
						|
 | 
						|
    const-string v0, "delegate"
 | 
						|
 | 
						|
    invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
 | 
						|
 | 
						|
    .line 3
 | 
						|
    sget-object v0, Lkotlin/coroutines/intrinsics/CoroutineSingletons;->UNDECIDED:Lkotlin/coroutines/intrinsics/CoroutineSingletons;
 | 
						|
 | 
						|
    invoke-direct {p0, p1, v0}, Lkotlin/coroutines/g;-><init>(Lkotlin/coroutines/c;Ljava/lang/Object;)V
 | 
						|
 | 
						|
    return-void
 | 
						|
.end method
 | 
						|
 | 
						|
.method public constructor <init>(Lkotlin/coroutines/c;Ljava/lang/Object;)V
 | 
						|
    .locals 1
 | 
						|
    .param p1    # Lkotlin/coroutines/c;
 | 
						|
        .annotation build Lorg/jetbrains/annotations/NotNull;
 | 
						|
        .end annotation
 | 
						|
    .end param
 | 
						|
    .param p2    # Ljava/lang/Object;
 | 
						|
        .annotation build Lorg/jetbrains/annotations/Nullable;
 | 
						|
        .end annotation
 | 
						|
    .end param
 | 
						|
    .annotation system Ldalvik/annotation/Signature;
 | 
						|
        value = {
 | 
						|
            "(",
 | 
						|
            "Lkotlin/coroutines/c<",
 | 
						|
            "-TT;>;",
 | 
						|
            "Ljava/lang/Object;",
 | 
						|
            ")V"
 | 
						|
        }
 | 
						|
    .end annotation
 | 
						|
 | 
						|
    const-string v0, "delegate"
 | 
						|
 | 
						|
    invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
 | 
						|
 | 
						|
    .line 1
 | 
						|
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V
 | 
						|
 | 
						|
    iput-object p1, p0, Lkotlin/coroutines/g;->a:Lkotlin/coroutines/c;
 | 
						|
 | 
						|
    .line 2
 | 
						|
    iput-object p2, p0, Lkotlin/coroutines/g;->result:Ljava/lang/Object;
 | 
						|
 | 
						|
    return-void
 | 
						|
.end method
 | 
						|
 | 
						|
 | 
						|
# virtual methods
 | 
						|
.method public final b()Ljava/lang/Object;
 | 
						|
    .locals 3
 | 
						|
    .annotation build Lkotlin/PublishedApi;
 | 
						|
    .end annotation
 | 
						|
 | 
						|
    .annotation build Lorg/jetbrains/annotations/Nullable;
 | 
						|
    .end annotation
 | 
						|
 | 
						|
    .line 1
 | 
						|
    iget-object v0, p0, Lkotlin/coroutines/g;->result:Ljava/lang/Object;
 | 
						|
 | 
						|
    .line 2
 | 
						|
    sget-object v1, Lkotlin/coroutines/intrinsics/CoroutineSingletons;->UNDECIDED:Lkotlin/coroutines/intrinsics/CoroutineSingletons;
 | 
						|
 | 
						|
    if-ne v0, v1, :cond_1
 | 
						|
 | 
						|
    .line 3
 | 
						|
    sget-object v0, Lkotlin/coroutines/g;->b:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
 | 
						|
 | 
						|
    invoke-static {}, Lvi/b;->h()Ljava/lang/Object;
 | 
						|
 | 
						|
    move-result-object v2
 | 
						|
 | 
						|
    invoke-virtual {v0, p0, v1, v2}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
 | 
						|
 | 
						|
    move-result v0
 | 
						|
 | 
						|
    if-eqz v0, :cond_0
 | 
						|
 | 
						|
    invoke-static {}, Lvi/b;->h()Ljava/lang/Object;
 | 
						|
 | 
						|
    move-result-object v0
 | 
						|
 | 
						|
    return-object v0
 | 
						|
 | 
						|
    .line 4
 | 
						|
    :cond_0
 | 
						|
    iget-object v0, p0, Lkotlin/coroutines/g;->result:Ljava/lang/Object;
 | 
						|
 | 
						|
    .line 5
 | 
						|
    :cond_1
 | 
						|
    sget-object v1, Lkotlin/coroutines/intrinsics/CoroutineSingletons;->RESUMED:Lkotlin/coroutines/intrinsics/CoroutineSingletons;
 | 
						|
 | 
						|
    if-ne v0, v1, :cond_2
 | 
						|
 | 
						|
    invoke-static {}, Lvi/b;->h()Ljava/lang/Object;
 | 
						|
 | 
						|
    move-result-object v0
 | 
						|
 | 
						|
    goto :goto_0
 | 
						|
 | 
						|
    .line 6
 | 
						|
    :cond_2
 | 
						|
    instance-of v1, v0, Lkotlin/Result$Failure;
 | 
						|
 | 
						|
    if-nez v1, :cond_3
 | 
						|
 | 
						|
    :goto_0
 | 
						|
    return-object v0
 | 
						|
 | 
						|
    :cond_3
 | 
						|
    check-cast v0, Lkotlin/Result$Failure;
 | 
						|
 | 
						|
    iget-object v0, v0, Lkotlin/Result$Failure;->exception:Ljava/lang/Throwable;
 | 
						|
 | 
						|
    throw v0
 | 
						|
.end method
 | 
						|
 | 
						|
.method public getCallerFrame()Lwi/c;
 | 
						|
    .locals 2
 | 
						|
    .annotation build Lorg/jetbrains/annotations/Nullable;
 | 
						|
    .end annotation
 | 
						|
 | 
						|
    .line 1
 | 
						|
    iget-object v0, p0, Lkotlin/coroutines/g;->a:Lkotlin/coroutines/c;
 | 
						|
 | 
						|
    instance-of v1, v0, Lwi/c;
 | 
						|
 | 
						|
    if-nez v1, :cond_0
 | 
						|
 | 
						|
    const/4 v0, 0x0
 | 
						|
 | 
						|
    :cond_0
 | 
						|
    check-cast v0, Lwi/c;
 | 
						|
 | 
						|
    return-object v0
 | 
						|
.end method
 | 
						|
 | 
						|
.method public getContext()Lkotlin/coroutines/CoroutineContext;
 | 
						|
    .locals 1
 | 
						|
    .annotation build Lorg/jetbrains/annotations/NotNull;
 | 
						|
    .end annotation
 | 
						|
 | 
						|
    .line 1
 | 
						|
    iget-object v0, p0, Lkotlin/coroutines/g;->a:Lkotlin/coroutines/c;
 | 
						|
 | 
						|
    invoke-interface {v0}, Lkotlin/coroutines/c;->getContext()Lkotlin/coroutines/CoroutineContext;
 | 
						|
 | 
						|
    move-result-object v0
 | 
						|
 | 
						|
    return-object v0
 | 
						|
.end method
 | 
						|
 | 
						|
.method public getStackTraceElement()Ljava/lang/StackTraceElement;
 | 
						|
    .locals 1
 | 
						|
    .annotation build Lorg/jetbrains/annotations/Nullable;
 | 
						|
    .end annotation
 | 
						|
 | 
						|
    const/4 v0, 0x0
 | 
						|
 | 
						|
    return-object v0
 | 
						|
.end method
 | 
						|
 | 
						|
.method public resumeWith(Ljava/lang/Object;)V
 | 
						|
    .locals 3
 | 
						|
    .param p1    # Ljava/lang/Object;
 | 
						|
        .annotation build Lorg/jetbrains/annotations/NotNull;
 | 
						|
        .end annotation
 | 
						|
    .end param
 | 
						|
 | 
						|
    .line 1
 | 
						|
    :cond_0
 | 
						|
    iget-object v0, p0, Lkotlin/coroutines/g;->result:Ljava/lang/Object;
 | 
						|
 | 
						|
    .line 2
 | 
						|
    sget-object v1, Lkotlin/coroutines/intrinsics/CoroutineSingletons;->UNDECIDED:Lkotlin/coroutines/intrinsics/CoroutineSingletons;
 | 
						|
 | 
						|
    if-ne v0, v1, :cond_1
 | 
						|
 | 
						|
    sget-object v0, Lkotlin/coroutines/g;->b:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
 | 
						|
 | 
						|
    invoke-virtual {v0, p0, v1, p1}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
 | 
						|
 | 
						|
    move-result v0
 | 
						|
 | 
						|
    if-eqz v0, :cond_0
 | 
						|
 | 
						|
    return-void
 | 
						|
 | 
						|
    .line 3
 | 
						|
    :cond_1
 | 
						|
    invoke-static {}, Lvi/b;->h()Ljava/lang/Object;
 | 
						|
 | 
						|
    move-result-object v1
 | 
						|
 | 
						|
    if-ne v0, v1, :cond_2
 | 
						|
 | 
						|
    sget-object v0, Lkotlin/coroutines/g;->b:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
 | 
						|
 | 
						|
    invoke-static {}, Lvi/b;->h()Ljava/lang/Object;
 | 
						|
 | 
						|
    move-result-object v1
 | 
						|
 | 
						|
    sget-object v2, Lkotlin/coroutines/intrinsics/CoroutineSingletons;->RESUMED:Lkotlin/coroutines/intrinsics/CoroutineSingletons;
 | 
						|
 | 
						|
    invoke-virtual {v0, p0, v1, v2}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
 | 
						|
 | 
						|
    move-result v0
 | 
						|
 | 
						|
    if-eqz v0, :cond_0
 | 
						|
 | 
						|
    .line 4
 | 
						|
    iget-object v0, p0, Lkotlin/coroutines/g;->a:Lkotlin/coroutines/c;
 | 
						|
 | 
						|
    invoke-interface {v0, p1}, Lkotlin/coroutines/c;->resumeWith(Ljava/lang/Object;)V
 | 
						|
 | 
						|
    return-void
 | 
						|
 | 
						|
    .line 5
 | 
						|
    :cond_2
 | 
						|
    new-instance p1, Ljava/lang/IllegalStateException;
 | 
						|
 | 
						|
    const-string v0, "Already resumed"
 | 
						|
 | 
						|
    invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
 | 
						|
 | 
						|
    throw p1
 | 
						|
.end method
 | 
						|
 | 
						|
.method public toString()Ljava/lang/String;
 | 
						|
    .locals 2
 | 
						|
    .annotation build Lorg/jetbrains/annotations/NotNull;
 | 
						|
    .end annotation
 | 
						|
 | 
						|
    const-string v0, "SafeContinuation for "
 | 
						|
 | 
						|
    .line 1
 | 
						|
    invoke-static {v0}, Landroid/support/v4/media/d;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
 | 
						|
 | 
						|
    move-result-object v0
 | 
						|
 | 
						|
    iget-object v1, p0, Lkotlin/coroutines/g;->a:Lkotlin/coroutines/c;
 | 
						|
 | 
						|
    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
 | 
						|
 | 
						|
    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
 | 
						|
 | 
						|
    move-result-object v0
 | 
						|
 | 
						|
    return-object v0
 | 
						|
.end method
 |