Changes of com.discord v1349

This commit is contained in:
root 2020-11-30 22:35:21 +00:00
parent ee3363e6d6
commit 3f4974bc38
11672 changed files with 479129 additions and 478996 deletions

View file

@ -0,0 +1,38 @@
.class public Ly/a/s1/a;
.super Ljava/lang/Object;
.source "ArrayQueue.kt"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;"
}
.end annotation
# instance fields
.field public a:[Ljava/lang/Object;
.field public b:I
.field public c:I
# direct methods
.method public constructor <init>()V
.locals 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/16 v0, 0x10
new-array v0, v0, [Ljava/lang/Object;
iput-object v0, p0, Ly/a/s1/a;->a:[Ljava/lang/Object;
return-void
.end method

View file

@ -0,0 +1,23 @@
.class public final Ly/a/s1/b;
.super Ljava/lang/Object;
.source "Atomic.kt"
# static fields
.field public static final a:Ljava/lang/Object;
# direct methods
.method public static constructor <clinit>()V
.locals 2
new-instance v0, Ly/a/s1/n;
const-string v1, "NO_DECISION"
invoke-direct {v0, v1}, Ly/a/s1/n;-><init>(Ljava/lang/String;)V
sput-object v0, Ly/a/s1/b;->a:Ljava/lang/Object;
return-void
.end method

View file

@ -0,0 +1,117 @@
.class public abstract Ly/a/s1/c;
.super Ly/a/s1/k;
.source "Atomic.kt"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ly/a/s1/k;"
}
.end annotation
# static fields
.field public static final a:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
# instance fields
.field private volatile _consensus:Ljava/lang/Object;
# direct methods
.method public static constructor <clinit>()V
.locals 3
const-class v0, Ly/a/s1/c;
const-class v1, Ljava/lang/Object;
const-string v2, "_consensus"
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, Ly/a/s1/c;->a:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
return-void
.end method
.method public constructor <init>()V
.locals 1
invoke-direct {p0}, Ly/a/s1/k;-><init>()V
sget-object v0, Ly/a/s1/b;->a:Ljava/lang/Object;
iput-object v0, p0, Ly/a/s1/c;->_consensus:Ljava/lang/Object;
return-void
.end method
# virtual methods
.method public final a(Ljava/lang/Object;)Ljava/lang/Object;
.locals 3
iget-object v0, p0, Ly/a/s1/c;->_consensus:Ljava/lang/Object;
sget-object v1, Ly/a/s1/b;->a:Ljava/lang/Object;
if-ne v0, v1, :cond_2
invoke-virtual {p0, p1}, Ly/a/s1/c;->c(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
iget-object v2, p0, Ly/a/s1/c;->_consensus:Ljava/lang/Object;
if-eq v2, v1, :cond_0
move-object v0, v2
goto :goto_0
:cond_0
sget-object v2, Ly/a/s1/c;->a:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
invoke-virtual {v2, p0, v1, v0}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_1
goto :goto_0
:cond_1
iget-object v0, p0, Ly/a/s1/c;->_consensus:Ljava/lang/Object;
:cond_2
:goto_0
invoke-virtual {p0, p1, v0}, Ly/a/s1/c;->b(Ljava/lang/Object;Ljava/lang/Object;)V
return-object v0
.end method
.method public abstract b(Ljava/lang/Object;Ljava/lang/Object;)V
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;",
"Ljava/lang/Object;",
")V"
}
.end annotation
.end method
.method public abstract c(Ljava/lang/Object;)Ljava/lang/Object;
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)",
"Ljava/lang/Object;"
}
.end annotation
.end method

View file

@ -0,0 +1,56 @@
.class public final Ly/a/s1/d;
.super Ljava/lang/Object;
.source "Scopes.kt"
# interfaces
.implements Lkotlinx/coroutines/CoroutineScope;
# instance fields
.field public final d:Lkotlin/coroutines/CoroutineContext;
# direct methods
.method public constructor <init>(Lkotlin/coroutines/CoroutineContext;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Ly/a/s1/d;->d:Lkotlin/coroutines/CoroutineContext;
return-void
.end method
# virtual methods
.method public getCoroutineContext()Lkotlin/coroutines/CoroutineContext;
.locals 1
iget-object v0, p0, Ly/a/s1/d;->d:Lkotlin/coroutines/CoroutineContext;
return-object v0
.end method
.method public toString()Ljava/lang/String;
.locals 2
const-string v0, "CoroutineScope(coroutineContext="
invoke-static {v0}, Lf/e/c/a/a;->G(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget-object v1, p0, Ly/a/s1/d;->d:Lkotlin/coroutines/CoroutineContext;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const/16 v1, 0x29
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method

View file

@ -0,0 +1,23 @@
.class public Ly/a/s1/e;
.super Ly/a/s1/g;
.source "LockFreeLinkedList.kt"
# direct methods
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ly/a/s1/g;-><init>()V
return-void
.end method
# virtual methods
.method public g()Z
.locals 1
const/4 v0, 0x0
return v0
.end method

View file

@ -0,0 +1,23 @@
.class public final Ly/a/s1/f;
.super Ljava/lang/Object;
.source "LockFreeLinkedList.kt"
# static fields
.field public static final a:Ljava/lang/Object;
# direct methods
.method public static constructor <clinit>()V
.locals 2
new-instance v0, Ly/a/s1/n;
const-string v1, "CONDITION_FALSE"
invoke-direct {v0, v1}, Ly/a/s1/n;-><init>(Ljava/lang/String;)V
sput-object v0, Ly/a/s1/f;->a:Ljava/lang/Object;
return-void
.end method

View file

@ -0,0 +1,101 @@
.class public abstract Ly/a/s1/g$a;
.super Ly/a/s1/c;
.source "LockFreeLinkedList.kt"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Ly/a/s1/g;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x409
name = "a"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ly/a/s1/c<",
"Ly/a/s1/g;",
">;"
}
.end annotation
# instance fields
.field public b:Ly/a/s1/g;
.field public final c:Ly/a/s1/g;
# direct methods
.method public constructor <init>(Ly/a/s1/g;)V
.locals 0
invoke-direct {p0}, Ly/a/s1/c;-><init>()V
iput-object p1, p0, Ly/a/s1/g$a;->c:Ly/a/s1/g;
return-void
.end method
# virtual methods
.method public b(Ljava/lang/Object;Ljava/lang/Object;)V
.locals 2
check-cast p1, Ly/a/s1/g;
if-nez p2, :cond_0
const/4 p2, 0x1
goto :goto_0
:cond_0
const/4 p2, 0x0
:goto_0
if-eqz p2, :cond_1
iget-object v0, p0, Ly/a/s1/g$a;->c:Ly/a/s1/g;
goto :goto_1
:cond_1
iget-object v0, p0, Ly/a/s1/g$a;->b:Ly/a/s1/g;
:goto_1
if-eqz v0, :cond_3
sget-object v1, Ly/a/s1/g;->d:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
invoke-virtual {v1, p1, p0, v0}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
move-result p1
if-eqz p1, :cond_3
if-eqz p2, :cond_3
iget-object p1, p0, Ly/a/s1/g$a;->c:Ly/a/s1/g;
iget-object p2, p0, Ly/a/s1/g$a;->b:Ly/a/s1/g;
if-eqz p2, :cond_2
invoke-virtual {p1, p2}, Ly/a/s1/g;->c(Ly/a/s1/g;)V
goto :goto_2
:cond_2
invoke-static {}, Lx/m/c/j;->throwNpe()V
const/4 p1, 0x0
throw p1
:cond_3
:goto_2
return-void
.end method

View file

@ -0,0 +1,481 @@
.class public Ly/a/s1/g;
.super Ljava/lang/Object;
.source "LockFreeLinkedList.kt"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Ly/a/s1/g$a;
}
.end annotation
# static fields
.field public static final d:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
.field public static final e:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
.field public static final f:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
# instance fields
.field public volatile _next:Ljava/lang/Object;
.field public volatile _prev:Ljava/lang/Object;
.field private volatile _removedRef:Ljava/lang/Object;
# direct methods
.method public static constructor <clinit>()V
.locals 3
const-class v0, Ljava/lang/Object;
const-class v1, Ly/a/s1/g;
const-string v2, "_next"
invoke-static {v1, v0, v2}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->newUpdater(Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/String;)Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
move-result-object v2
sput-object v2, Ly/a/s1/g;->d:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
const-string v2, "_prev"
invoke-static {v1, v0, v2}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->newUpdater(Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/String;)Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
move-result-object v2
sput-object v2, Ly/a/s1/g;->e:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
const-string v2, "_removedRef"
invoke-static {v1, v0, 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, Ly/a/s1/g;->f:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
return-void
.end method
.method public constructor <init>()V
.locals 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p0, p0, Ly/a/s1/g;->_next:Ljava/lang/Object;
iput-object p0, p0, Ly/a/s1/g;->_prev:Ljava/lang/Object;
const/4 v0, 0x0
iput-object v0, p0, Ly/a/s1/g;->_removedRef:Ljava/lang/Object;
return-void
.end method
# virtual methods
.method public final b(Ly/a/s1/k;)Ly/a/s1/g;
.locals 6
:goto_0
iget-object p1, p0, Ly/a/s1/g;->_prev:Ljava/lang/Object;
check-cast p1, Ly/a/s1/g;
const/4 v0, 0x0
move-object v1, p1
:goto_1
move-object v2, v0
:goto_2
iget-object v3, v1, Ly/a/s1/g;->_next:Ljava/lang/Object;
if-ne v3, p0, :cond_2
if-ne p1, v1, :cond_0
return-object v1
:cond_0
sget-object v0, Ly/a/s1/g;->e:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
invoke-virtual {v0, p0, p1, v1}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
move-result p1
if-nez p1, :cond_1
goto :goto_0
:cond_1
return-object v1
:cond_2
invoke-virtual {p0}, Ly/a/s1/g;->g()Z
move-result v4
if-eqz v4, :cond_3
return-object v0
:cond_3
if-nez v3, :cond_4
return-object v1
:cond_4
instance-of v4, v3, Ly/a/s1/k;
if-eqz v4, :cond_5
check-cast v3, Ly/a/s1/k;
invoke-virtual {v3, v1}, Ly/a/s1/k;->a(Ljava/lang/Object;)Ljava/lang/Object;
goto :goto_0
:cond_5
instance-of v4, v3, Ly/a/s1/l;
if-eqz v4, :cond_8
if-eqz v2, :cond_7
sget-object v4, Ly/a/s1/g;->d:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
check-cast v3, Ly/a/s1/l;
iget-object v3, v3, Ly/a/s1/l;->a:Ly/a/s1/g;
invoke-virtual {v4, v2, v1, v3}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v1
if-nez v1, :cond_6
goto :goto_0
:cond_6
move-object v1, v2
goto :goto_1
:cond_7
iget-object v1, v1, Ly/a/s1/g;->_prev:Ljava/lang/Object;
check-cast v1, Ly/a/s1/g;
goto :goto_2
:cond_8
if-eqz v3, :cond_9
move-object v2, v3
check-cast v2, Ly/a/s1/g;
move-object v5, v2
move-object v2, v1
move-object v1, v5
goto :goto_2
:cond_9
new-instance p1, Lkotlin/TypeCastException;
const-string v0, "null cannot be cast to non-null type kotlinx.coroutines.internal.Node /* = kotlinx.coroutines.internal.LockFreeLinkedListNode */"
invoke-direct {p1, v0}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public final c(Ly/a/s1/g;)V
.locals 2
:cond_0
iget-object v0, p1, Ly/a/s1/g;->_prev:Ljava/lang/Object;
check-cast v0, Ly/a/s1/g;
invoke-virtual {p0}, Ly/a/s1/g;->d()Ljava/lang/Object;
move-result-object v1
if-eq v1, p1, :cond_1
return-void
:cond_1
sget-object v1, Ly/a/s1/g;->e:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
invoke-virtual {v1, p1, v0, p0}, 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-virtual {p0}, Ly/a/s1/g;->g()Z
move-result v0
if-eqz v0, :cond_2
const/4 v0, 0x0
invoke-virtual {p1, v0}, Ly/a/s1/g;->b(Ly/a/s1/k;)Ly/a/s1/g;
:cond_2
return-void
.end method
.method public final d()Ljava/lang/Object;
.locals 2
:goto_0
iget-object v0, p0, Ly/a/s1/g;->_next:Ljava/lang/Object;
instance-of v1, v0, Ly/a/s1/k;
if-nez v1, :cond_0
return-object v0
:cond_0
check-cast v0, Ly/a/s1/k;
invoke-virtual {v0, p0}, Ly/a/s1/k;->a(Ljava/lang/Object;)Ljava/lang/Object;
goto :goto_0
.end method
.method public final e()Ly/a/s1/g;
.locals 2
invoke-virtual {p0}, Ly/a/s1/g;->d()Ljava/lang/Object;
move-result-object v0
instance-of v1, v0, Ly/a/s1/l;
if-nez v1, :cond_0
const/4 v1, 0x0
goto :goto_0
:cond_0
move-object v1, v0
:goto_0
check-cast v1, Ly/a/s1/l;
if-eqz v1, :cond_1
iget-object v1, v1, Ly/a/s1/l;->a:Ly/a/s1/g;
if-eqz v1, :cond_1
goto :goto_1
:cond_1
if-eqz v0, :cond_2
move-object v1, v0
check-cast v1, Ly/a/s1/g;
:goto_1
return-object v1
:cond_2
new-instance v0, Lkotlin/TypeCastException;
const-string v1, "null cannot be cast to non-null type kotlinx.coroutines.internal.Node /* = kotlinx.coroutines.internal.LockFreeLinkedListNode */"
invoke-direct {v0, v1}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public final f()Ly/a/s1/g;
.locals 2
const/4 v0, 0x0
invoke-virtual {p0, v0}, Ly/a/s1/g;->b(Ly/a/s1/k;)Ly/a/s1/g;
move-result-object v0
if-eqz v0, :cond_0
goto :goto_1
:cond_0
iget-object v0, p0, Ly/a/s1/g;->_prev:Ljava/lang/Object;
check-cast v0, Ly/a/s1/g;
:goto_0
invoke-virtual {v0}, Ly/a/s1/g;->g()Z
move-result v1
if-nez v1, :cond_1
:goto_1
return-object v0
:cond_1
iget-object v0, v0, Ly/a/s1/g;->_prev:Ljava/lang/Object;
check-cast v0, Ly/a/s1/g;
goto :goto_0
.end method
.method public g()Z
.locals 1
invoke-virtual {p0}, Ly/a/s1/g;->d()Ljava/lang/Object;
move-result-object v0
instance-of v0, v0, Ly/a/s1/l;
return v0
.end method
.method public i()Z
.locals 4
:cond_0
invoke-virtual {p0}, Ly/a/s1/g;->d()Ljava/lang/Object;
move-result-object v0
instance-of v1, v0, Ly/a/s1/l;
if-eqz v1, :cond_1
check-cast v0, Ly/a/s1/l;
iget-object v0, v0, Ly/a/s1/l;->a:Ly/a/s1/g;
goto :goto_1
:cond_1
if-ne v0, p0, :cond_2
check-cast v0, Ly/a/s1/g;
goto :goto_1
:cond_2
if-eqz v0, :cond_5
move-object v1, v0
check-cast v1, Ly/a/s1/g;
iget-object v2, v1, Ly/a/s1/g;->_removedRef:Ljava/lang/Object;
check-cast v2, Ly/a/s1/l;
if-eqz v2, :cond_3
goto :goto_0
:cond_3
new-instance v2, Ly/a/s1/l;
invoke-direct {v2, v1}, Ly/a/s1/l;-><init>(Ly/a/s1/g;)V
sget-object v3, Ly/a/s1/g;->f:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
invoke-virtual {v3, v1, v2}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->lazySet(Ljava/lang/Object;Ljava/lang/Object;)V
:goto_0
sget-object v3, Ly/a/s1/g;->d:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
invoke-virtual {v3, p0, v0, 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
const/4 v0, 0x0
invoke-virtual {v1, v0}, Ly/a/s1/g;->b(Ly/a/s1/k;)Ly/a/s1/g;
:goto_1
if-nez v0, :cond_4
const/4 v0, 0x1
goto :goto_2
:cond_4
const/4 v0, 0x0
:goto_2
return v0
:cond_5
new-instance v0, Lkotlin/TypeCastException;
const-string v1, "null cannot be cast to non-null type kotlinx.coroutines.internal.Node /* = kotlinx.coroutines.internal.LockFreeLinkedListNode */"
invoke-direct {v0, v1}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public toString()Ljava/lang/String;
.locals 2
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const/16 v1, 0x40
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
invoke-static {p0}, Ljava/lang/System;->identityHashCode(Ljava/lang/Object;)I
move-result v1
invoke-static {v1}, Ljava/lang/Integer;->toHexString(I)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method

View file

@ -0,0 +1,186 @@
.class public Ly/a/s1/h;
.super Ljava/lang/Object;
.source "LockFreeTaskQueue.kt"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<E:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;"
}
.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, Ly/a/s1/h;
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, Ly/a/s1/h;->a:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
return-void
.end method
.method public constructor <init>(Z)V
.locals 2
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
new-instance v0, Ly/a/s1/i;
const/16 v1, 0x8
invoke-direct {v0, v1, p1}, Ly/a/s1/i;-><init>(IZ)V
iput-object v0, p0, Ly/a/s1/h;->_cur:Ljava/lang/Object;
return-void
.end method
# virtual methods
.method public final a(Ljava/lang/Object;)Z
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(TE;)Z"
}
.end annotation
:goto_0
iget-object v0, p0, Ly/a/s1/h;->_cur:Ljava/lang/Object;
check-cast v0, Ly/a/s1/i;
invoke-virtual {v0, p1}, Ly/a/s1/i;->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
:cond_1
sget-object v1, Ly/a/s1/h;->a:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
invoke-virtual {v0}, Ly/a/s1/i;->e()Ly/a/s1/i;
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
:goto_0
iget-object v0, p0, Ly/a/s1/h;->_cur:Ljava/lang/Object;
check-cast v0, Ly/a/s1/i;
invoke-virtual {v0}, Ly/a/s1/i;->b()Z
move-result v1
if-eqz v1, :cond_0
return-void
:cond_0
sget-object v1, Ly/a/s1/h;->a:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
invoke-virtual {v0}, Ly/a/s1/i;->e()Ly/a/s1/i;
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
iget-object v0, p0, Ly/a/s1/h;->_cur:Ljava/lang/Object;
check-cast v0, Ly/a/s1/i;
invoke-virtual {v0}, Ly/a/s1/i;->c()I
move-result v0
return v0
.end method
.method public final d()Ljava/lang/Object;
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"()TE;"
}
.end annotation
:goto_0
iget-object v0, p0, Ly/a/s1/h;->_cur:Ljava/lang/Object;
check-cast v0, Ly/a/s1/i;
invoke-virtual {v0}, Ly/a/s1/i;->f()Ljava/lang/Object;
move-result-object v1
sget-object v2, Ly/a/s1/i;->g:Ly/a/s1/n;
if-eq v1, v2, :cond_0
return-object v1
:cond_0
sget-object v1, Ly/a/s1/h;->a:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
invoke-virtual {v0}, Ly/a/s1/i;->e()Ly/a/s1/i;
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

View file

@ -0,0 +1,24 @@
.class public final Ly/a/s1/i$a;
.super Ljava/lang/Object;
.source "LockFreeTaskQueue.kt"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Ly/a/s1/i;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "a"
.end annotation
# direct methods
.method public constructor <init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method

View file

@ -0,0 +1,30 @@
.class public final Ly/a/s1/i$b;
.super Ljava/lang/Object;
.source "LockFreeTaskQueue.kt"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Ly/a/s1/i;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "b"
.end annotation
# instance fields
.field public final a:I
# direct methods
.method public constructor <init>(I)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput p1, p0, Ly/a/s1/i$b;->a:I
return-void
.end method

View file

@ -0,0 +1,821 @@
.class public final Ly/a/s1/i;
.super Ljava/lang/Object;
.source "LockFreeTaskQueue.kt"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Ly/a/s1/i$b;,
Ly/a/s1/i$a;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<E:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;"
}
.end annotation
# static fields
.field public static final e:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
.field public static final f:Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;
.field public static final g:Ly/a/s1/n;
.field public static final h:Ly/a/s1/i$a;
# instance fields
.field private volatile _next:Ljava/lang/Object;
.field private volatile _state:J
.field public final a:I
.field public b:Ljava/util/concurrent/atomic/AtomicReferenceArray;
.field public final c:I
.field public final d:Z
# direct methods
.method public static constructor <clinit>()V
.locals 3
const-class v0, Ly/a/s1/i;
new-instance v1, Ly/a/s1/i$a;
const/4 v2, 0x0
invoke-direct {v1, v2}, Ly/a/s1/i$a;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
sput-object v1, Ly/a/s1/i;->h:Ly/a/s1/i$a;
new-instance v1, Ly/a/s1/n;
const-string v2, "REMOVE_FROZEN"
invoke-direct {v1, v2}, Ly/a/s1/n;-><init>(Ljava/lang/String;)V
sput-object v1, Ly/a/s1/i;->g:Ly/a/s1/n;
const-class v1, Ljava/lang/Object;
const-string v2, "_next"
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 v1
sput-object v1, Ly/a/s1/i;->e:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
const-string v1, "_state"
invoke-static {v0, v1}, Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;->newUpdater(Ljava/lang/Class;Ljava/lang/String;)Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;
move-result-object v0
sput-object v0, Ly/a/s1/i;->f:Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;
return-void
.end method
.method public constructor <init>(IZ)V
.locals 4
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput p1, p0, Ly/a/s1/i;->c:I
iput-boolean p2, p0, Ly/a/s1/i;->d:Z
add-int/lit8 p2, p1, -0x1
iput p2, p0, Ly/a/s1/i;->a:I
const/4 v0, 0x0
iput-object v0, p0, Ly/a/s1/i;->_next:Ljava/lang/Object;
const-wide/16 v0, 0x0
iput-wide v0, p0, Ly/a/s1/i;->_state:J
new-instance v0, Ljava/util/concurrent/atomic/AtomicReferenceArray;
invoke-direct {v0, p1}, Ljava/util/concurrent/atomic/AtomicReferenceArray;-><init>(I)V
iput-object v0, p0, Ly/a/s1/i;->b:Ljava/util/concurrent/atomic/AtomicReferenceArray;
const/4 v0, 0x0
const/4 v1, 0x1
const v2, 0x3fffffff # 1.9999999f
if-gt p2, v2, :cond_0
const/4 v2, 0x1
goto :goto_0
:cond_0
const/4 v2, 0x0
:goto_0
const-string v3, "Check failed."
if-eqz v2, :cond_3
and-int/2addr p1, p2
if-nez p1, :cond_1
const/4 v0, 0x1
:cond_1
if-eqz v0, :cond_2
return-void
:cond_2
new-instance p1, Ljava/lang/IllegalStateException;
invoke-virtual {v3}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
:cond_3
new-instance p1, Ljava/lang/IllegalStateException;
invoke-virtual {v3}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method
# virtual methods
.method public final a(Ljava/lang/Object;)I
.locals 15
.annotation system Ldalvik/annotation/Signature;
value = {
"(TE;)I"
}
.end annotation
move-object v6, p0
move-object/from16 v7, p1
:cond_0
iget-wide v2, v6, Ly/a/s1/i;->_state:J
const-wide/high16 v0, 0x3000000000000000L # 1.727233711018889E-77
and-long/2addr v0, v2
const-wide/16 v8, 0x0
const/4 v4, 0x1
cmp-long v5, v0, v8
if-eqz v5, :cond_2
const-wide/high16 v0, 0x2000000000000000L
and-long/2addr v0, v2
cmp-long v2, v0, v8
if-eqz v2, :cond_1
const/4 v4, 0x2
:cond_1
return v4
:cond_2
const-wide/32 v0, 0x3fffffff
and-long/2addr v0, v2
const/4 v10, 0x0
shr-long/2addr v0, v10
long-to-int v1, v0
const-wide v11, 0xfffffffc0000000L
and-long/2addr v11, v2
const/16 v0, 0x1e
shr-long/2addr v11, v0
long-to-int v12, v11
iget v11, v6, Ly/a/s1/i;->a:I
add-int/lit8 v5, v12, 0x2
and-int/2addr v5, v11
and-int v13, v1, v11
if-ne v5, v13, :cond_3
return v4
:cond_3
iget-boolean v5, v6, Ly/a/s1/i;->d:Z
const v13, 0x3fffffff # 1.9999999f
if-nez v5, :cond_5
iget-object v5, v6, Ly/a/s1/i;->b:Ljava/util/concurrent/atomic/AtomicReferenceArray;
and-int v14, v12, v11
invoke-virtual {v5, v14}, Ljava/util/concurrent/atomic/AtomicReferenceArray;->get(I)Ljava/lang/Object;
move-result-object v5
if-eqz v5, :cond_5
iget v0, v6, Ly/a/s1/i;->c:I
const/16 v2, 0x400
if-lt v0, v2, :cond_4
sub-int/2addr v12, v1
and-int v1, v12, v13
shr-int/lit8 v0, v0, 0x1
if-le v1, v0, :cond_0
:cond_4
return v4
:cond_5
add-int/lit8 v1, v12, 0x1
and-int/2addr v1, v13
sget-object v4, Ly/a/s1/i;->f:Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;
const-wide v13, -0xfffffffc0000001L # -3.1050369248997324E231
and-long/2addr v13, v2
int-to-long v8, v1
shl-long v0, v8, v0
or-long v8, v13, v0
move-object v0, v4
move-object v1, p0
move-wide v4, v8
invoke-virtual/range {v0 .. v5}, Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;->compareAndSet(Ljava/lang/Object;JJ)Z
move-result v0
if-eqz v0, :cond_0
iget-object v0, v6, Ly/a/s1/i;->b:Ljava/util/concurrent/atomic/AtomicReferenceArray;
and-int v1, v12, v11
invoke-virtual {v0, v1, v7}, Ljava/util/concurrent/atomic/AtomicReferenceArray;->set(ILjava/lang/Object;)V
move-object v0, v6
:goto_0
iget-wide v1, v0, Ly/a/s1/i;->_state:J
const-wide/high16 v3, 0x1000000000000000L
and-long/2addr v1, v3
const-wide/16 v3, 0x0
cmp-long v5, v1, v3
if-nez v5, :cond_6
goto :goto_2
:cond_6
invoke-virtual {v0}, Ly/a/s1/i;->e()Ly/a/s1/i;
move-result-object v0
iget-object v1, v0, Ly/a/s1/i;->b:Ljava/util/concurrent/atomic/AtomicReferenceArray;
iget v2, v0, Ly/a/s1/i;->a:I
and-int/2addr v2, v12
invoke-virtual {v1, v2}, Ljava/util/concurrent/atomic/AtomicReferenceArray;->get(I)Ljava/lang/Object;
move-result-object v1
instance-of v2, v1, Ly/a/s1/i$b;
if-eqz v2, :cond_7
check-cast v1, Ly/a/s1/i$b;
iget v1, v1, Ly/a/s1/i$b;->a:I
if-ne v1, v12, :cond_7
iget-object v1, v0, Ly/a/s1/i;->b:Ljava/util/concurrent/atomic/AtomicReferenceArray;
iget v2, v0, Ly/a/s1/i;->a:I
and-int/2addr v2, v12
invoke-virtual {v1, v2, v7}, Ljava/util/concurrent/atomic/AtomicReferenceArray;->set(ILjava/lang/Object;)V
goto :goto_1
:cond_7
const/4 v0, 0x0
:goto_1
if-eqz v0, :cond_8
goto :goto_0
:cond_8
:goto_2
return v10
.end method
.method public final b()Z
.locals 10
:cond_0
iget-wide v2, p0, Ly/a/s1/i;->_state:J
const-wide/high16 v0, 0x2000000000000000L
and-long v4, v2, v0
const/4 v6, 0x1
const-wide/16 v7, 0x0
cmp-long v9, v4, v7
if-eqz v9, :cond_1
return v6
:cond_1
const-wide/high16 v4, 0x1000000000000000L
and-long/2addr v4, v2
cmp-long v9, v4, v7
if-eqz v9, :cond_2
const/4 v0, 0x0
return v0
:cond_2
or-long v4, v2, v0
sget-object v0, Ly/a/s1/i;->f:Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;
move-object v1, p0
invoke-virtual/range {v0 .. v5}, Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;->compareAndSet(Ljava/lang/Object;JJ)Z
move-result v0
if-eqz v0, :cond_0
return v6
.end method
.method public final c()I
.locals 6
iget-wide v0, p0, Ly/a/s1/i;->_state:J
const-wide/32 v2, 0x3fffffff
and-long/2addr v2, v0
const/4 v4, 0x0
shr-long/2addr v2, v4
long-to-int v3, v2
const-wide v4, 0xfffffffc0000000L
and-long/2addr v0, v4
const/16 v2, 0x1e
shr-long/2addr v0, v2
long-to-int v1, v0
sub-int/2addr v1, v3
const v0, 0x3fffffff # 1.9999999f
and-int/2addr v0, v1
return v0
.end method
.method public final d()Z
.locals 7
iget-wide v0, p0, Ly/a/s1/i;->_state:J
const-wide/32 v2, 0x3fffffff
and-long/2addr v2, v0
const/4 v4, 0x0
shr-long/2addr v2, v4
long-to-int v3, v2
const-wide v5, 0xfffffffc0000000L
and-long/2addr v0, v5
const/16 v2, 0x1e
shr-long/2addr v0, v2
long-to-int v1, v0
if-ne v3, v1, :cond_0
const/4 v4, 0x1
:cond_0
return v4
.end method
.method public final e()Ly/a/s1/i;
.locals 10
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ly/a/s1/i<",
"TE;>;"
}
.end annotation
:cond_0
iget-wide v2, p0, Ly/a/s1/i;->_state:J
const-wide/high16 v0, 0x1000000000000000L
and-long v4, v2, v0
const-wide/16 v6, 0x0
cmp-long v8, v4, v6
if-eqz v8, :cond_1
goto :goto_0
:cond_1
or-long v6, v2, v0
sget-object v0, Ly/a/s1/i;->f:Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;
move-object v1, p0
move-wide v4, v6
invoke-virtual/range {v0 .. v5}, Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;->compareAndSet(Ljava/lang/Object;JJ)Z
move-result v0
if-eqz v0, :cond_0
move-wide v2, v6
:goto_0
iget-object v0, p0, Ly/a/s1/i;->_next:Ljava/lang/Object;
check-cast v0, Ly/a/s1/i;
if-eqz v0, :cond_2
return-object v0
:cond_2
sget-object v0, Ly/a/s1/i;->e:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
const/4 v1, 0x0
new-instance v4, Ly/a/s1/i;
iget v5, p0, Ly/a/s1/i;->c:I
mul-int/lit8 v5, v5, 0x2
iget-boolean v6, p0, Ly/a/s1/i;->d:Z
invoke-direct {v4, v5, v6}, Ly/a/s1/i;-><init>(IZ)V
const-wide/32 v5, 0x3fffffff
and-long/2addr v5, v2
const/4 v7, 0x0
shr-long/2addr v5, v7
long-to-int v6, v5
const-wide v7, 0xfffffffc0000000L
and-long/2addr v7, v2
const/16 v5, 0x1e
shr-long/2addr v7, v5
long-to-int v5, v7
:goto_1
iget v7, p0, Ly/a/s1/i;->a:I
and-int v8, v6, v7
and-int/2addr v7, v5
if-eq v8, v7, :cond_4
iget-object v7, p0, Ly/a/s1/i;->b:Ljava/util/concurrent/atomic/AtomicReferenceArray;
invoke-virtual {v7, v8}, Ljava/util/concurrent/atomic/AtomicReferenceArray;->get(I)Ljava/lang/Object;
move-result-object v7
if-eqz v7, :cond_3
goto :goto_2
:cond_3
new-instance v7, Ly/a/s1/i$b;
invoke-direct {v7, v6}, Ly/a/s1/i$b;-><init>(I)V
:goto_2
iget-object v8, v4, Ly/a/s1/i;->b:Ljava/util/concurrent/atomic/AtomicReferenceArray;
iget v9, v4, Ly/a/s1/i;->a:I
and-int/2addr v9, v6
invoke-virtual {v8, v9, v7}, Ljava/util/concurrent/atomic/AtomicReferenceArray;->set(ILjava/lang/Object;)V
add-int/lit8 v6, v6, 0x1
goto :goto_1
:cond_4
const-wide v5, -0x1000000000000001L # -3.1050361846014175E231
and-long/2addr v5, v2
iput-wide v5, v4, Ly/a/s1/i;->_state:J
invoke-virtual {v0, p0, v1, v4}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
goto :goto_0
.end method
.method public final f()Ljava/lang/Object;
.locals 29
move-object/from16 v6, p0
:cond_0
:goto_0
iget-wide v2, v6, Ly/a/s1/i;->_state:J
const-wide/high16 v7, 0x1000000000000000L
and-long v0, v2, v7
const-wide/16 v9, 0x0
cmp-long v4, v0, v9
if-eqz v4, :cond_1
sget-object v0, Ly/a/s1/i;->g:Ly/a/s1/n;
return-object v0
:cond_1
const-wide/32 v11, 0x3fffffff
and-long v0, v2, v11
const/4 v13, 0x0
shr-long/2addr v0, v13
long-to-int v14, v0
const-wide v0, 0xfffffffc0000000L
and-long/2addr v0, v2
const/16 v4, 0x1e
shr-long/2addr v0, v4
long-to-int v1, v0
iget v0, v6, Ly/a/s1/i;->a:I
and-int/2addr v1, v0
and-int/2addr v0, v14
const/4 v15, 0x0
if-ne v1, v0, :cond_2
return-object v15
:cond_2
iget-object v1, v6, Ly/a/s1/i;->b:Ljava/util/concurrent/atomic/AtomicReferenceArray;
invoke-virtual {v1, v0}, Ljava/util/concurrent/atomic/AtomicReferenceArray;->get(I)Ljava/lang/Object;
move-result-object v4
if-nez v4, :cond_3
iget-boolean v0, v6, Ly/a/s1/i;->d:Z
if-eqz v0, :cond_0
return-object v15
:cond_3
instance-of v0, v4, Ly/a/s1/i$b;
if-eqz v0, :cond_4
return-object v15
:cond_4
add-int/lit8 v0, v14, 0x1
const v1, 0x3fffffff # 1.9999999f
and-int/2addr v0, v1
sget-object v1, Ly/a/s1/i;->f:Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;
const-wide/32 v16, -0x40000000
and-long v18, v2, v16
int-to-long v9, v0
shl-long/2addr v9, v13
or-long v18, v18, v9
move-object v0, v1
move-object/from16 v1, p0
move-object/from16 v22, v4
move-wide/from16 v4, v18
invoke-virtual/range {v0 .. v5}, Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;->compareAndSet(Ljava/lang/Object;JJ)Z
move-result v0
if-eqz v0, :cond_5
iget-object v0, v6, Ly/a/s1/i;->b:Ljava/util/concurrent/atomic/AtomicReferenceArray;
iget v1, v6, Ly/a/s1/i;->a:I
and-int/2addr v1, v14
invoke-virtual {v0, v1, v15}, Ljava/util/concurrent/atomic/AtomicReferenceArray;->set(ILjava/lang/Object;)V
return-object v22
:cond_5
iget-boolean v0, v6, Ly/a/s1/i;->d:Z
if-nez v0, :cond_6
goto :goto_0
:cond_6
move-object v0, v6
:cond_7
:goto_1
iget-wide v1, v0, Ly/a/s1/i;->_state:J
and-long v3, v1, v11
shr-long/2addr v3, v13
long-to-int v4, v3
and-long v18, v1, v7
const-wide/16 v20, 0x0
cmp-long v3, v18, v20
if-eqz v3, :cond_8
invoke-virtual {v0}, Ly/a/s1/i;->e()Ly/a/s1/i;
move-result-object v0
goto :goto_2
:cond_8
sget-object v23, Ly/a/s1/i;->f:Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;
and-long v18, v1, v16
or-long v27, v18, v9
move-object/from16 v24, v0
move-wide/from16 v25, v1
invoke-virtual/range {v23 .. v28}, Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;->compareAndSet(Ljava/lang/Object;JJ)Z
move-result v1
if-eqz v1, :cond_7
iget-object v1, v0, Ly/a/s1/i;->b:Ljava/util/concurrent/atomic/AtomicReferenceArray;
iget v0, v0, Ly/a/s1/i;->a:I
and-int/2addr v0, v4
invoke-virtual {v1, v0, v15}, Ljava/util/concurrent/atomic/AtomicReferenceArray;->set(ILjava/lang/Object;)V
move-object v0, v15
:goto_2
if-eqz v0, :cond_9
goto :goto_1
:cond_9
return-object v22
.end method

View file

@ -0,0 +1,159 @@
.class public final Ly/a/s1/j;
.super Ljava/lang/Object;
.source "MainDispatchers.kt"
# static fields
.field public static final a:Z
.field public static final b:Ly/a/e1;
# direct methods
.method public static constructor <clinit>()V
.locals 7
const-string v0, "kotlinx.coroutines.fast.service.loader"
invoke-static {v0}, Ly/a/g0;->L(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
if-eqz v0, :cond_0
invoke-static {v0}, Ljava/lang/Boolean;->parseBoolean(Ljava/lang/String;)Z
move-result v0
goto :goto_0
:cond_0
const/4 v0, 0x1
:goto_0
sput-boolean v0, Ly/a/s1/j;->a:Z
const-string v0, "Module with the Main dispatcher is missing. Add dependency providing the Main dispatcher, e.g. \'kotlinx-coroutines-android\' and ensure it has the same version as \'kotlinx-coroutines-core\'"
:try_start_0
invoke-static {}, La;->b()Ljava/util/Iterator;
move-result-object v1
invoke-static {v1}, Lf/h/a/f/f/n/g;->asSequence(Ljava/util/Iterator;)Lkotlin/sequences/Sequence;
move-result-object v1
invoke-static {v1}, Lx/r/q;->toList(Lkotlin/sequences/Sequence;)Ljava/util/List;
move-result-object v1
invoke-interface {v1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object v2
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
move-result v3
if-nez v3, :cond_1
const/4 v2, 0x0
goto :goto_2
:cond_1
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v3
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
move-result v4
if-nez v4, :cond_2
:goto_1
move-object v2, v3
goto :goto_2
:cond_2
move-object v4, v3
check-cast v4, Lkotlinx/coroutines/internal/MainDispatcherFactory;
invoke-interface {v4}, Lkotlinx/coroutines/internal/MainDispatcherFactory;->c()I
move-result v4
:cond_3
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v5
move-object v6, v5
check-cast v6, Lkotlinx/coroutines/internal/MainDispatcherFactory;
invoke-interface {v6}, Lkotlinx/coroutines/internal/MainDispatcherFactory;->c()I
move-result v6
if-ge v4, v6, :cond_4
move-object v3, v5
move v4, v6
:cond_4
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
move-result v5
if-nez v5, :cond_3
goto :goto_1
:goto_2
check-cast v2, Lkotlinx/coroutines/internal/MainDispatcherFactory;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_1
if-eqz v2, :cond_5
:try_start_1
invoke-interface {v2, v1}, Lkotlinx/coroutines/internal/MainDispatcherFactory;->b(Ljava/util/List;)Ly/a/e1;
move-result-object v1
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
if-eqz v1, :cond_5
sput-object v1, Ly/a/s1/j;->b:Ly/a/e1;
return-void
:catchall_0
move-exception v0
:try_start_2
invoke-interface {v2}, Lkotlinx/coroutines/internal/MainDispatcherFactory;->a()Ljava/lang/String;
throw v0
:cond_5
new-instance v1, Ljava/lang/IllegalStateException;
invoke-direct {v1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v1
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_1
:catchall_1
move-exception v0
throw v0
.end method

View file

@ -0,0 +1,52 @@
.class public abstract Ly/a/s1/k;
.super Ljava/lang/Object;
.source "Atomic.kt"
# direct methods
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public abstract a(Ljava/lang/Object;)Ljava/lang/Object;
.end method
.method public toString()Ljava/lang/String;
.locals 2
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const/16 v1, 0x40
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
invoke-static {p0}, Lf/h/a/f/f/n/g;->B(Ljava/lang/Object;)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method

View file

@ -0,0 +1,45 @@
.class public final Ly/a/s1/l;
.super Ljava/lang/Object;
.source "LockFreeLinkedList.kt"
# instance fields
.field public final a:Ly/a/s1/g;
# direct methods
.method public constructor <init>(Ly/a/s1/g;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Ly/a/s1/l;->a:Ly/a/s1/g;
return-void
.end method
# virtual methods
.method public toString()Ljava/lang/String;
.locals 2
const-string v0, "Removed["
invoke-static {v0}, Lf/e/c/a/a;->G(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget-object v1, p0, Ly/a/s1/l;->a:Ly/a/s1/g;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const/16 v1, 0x5d
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method

View file

@ -0,0 +1,96 @@
.class public Ly/a/s1/m;
.super Ly/a/a;
.source "Scopes.kt"
# interfaces
.implements Lkotlin/coroutines/jvm/internal/CoroutineStackFrame;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ly/a/a<",
"TT;>;",
"Lkotlin/coroutines/jvm/internal/CoroutineStackFrame;"
}
.end annotation
# instance fields
.field public final g:Lkotlin/coroutines/Continuation;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/coroutines/Continuation<",
"TT;>;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Lkotlin/coroutines/CoroutineContext;Lkotlin/coroutines/Continuation;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/coroutines/CoroutineContext;",
"Lkotlin/coroutines/Continuation<",
"-TT;>;)V"
}
.end annotation
const/4 v0, 0x1
invoke-direct {p0, p1, v0}, Ly/a/a;-><init>(Lkotlin/coroutines/CoroutineContext;Z)V
iput-object p2, p0, Ly/a/s1/m;->g:Lkotlin/coroutines/Continuation;
return-void
.end method
# virtual methods
.method public final C()Z
.locals 1
const/4 v0, 0x1
return v0
.end method
.method public P(Ljava/lang/Object;)V
.locals 1
iget-object v0, p0, Ly/a/s1/m;->g:Lkotlin/coroutines/Continuation;
invoke-static {p1, v0}, Lf/h/a/f/f/n/g;->Y(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object p1
invoke-interface {v0, p1}, Lkotlin/coroutines/Continuation;->resumeWith(Ljava/lang/Object;)V
return-void
.end method
.method public h(Ljava/lang/Object;)V
.locals 2
iget-object v0, p0, Ly/a/s1/m;->g:Lkotlin/coroutines/Continuation;
invoke-static {v0}, Lf/h/a/f/f/n/g;->intercepted(Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
move-result-object v0
iget-object v1, p0, Ly/a/s1/m;->g:Lkotlin/coroutines/Continuation;
invoke-static {p1, v1}, Lf/h/a/f/f/n/g;->Y(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object p1
invoke-static {v0, p1}, Ly/a/d0;->a(Lkotlin/coroutines/Continuation;Ljava/lang/Object;)V
return-void
.end method

View file

@ -0,0 +1,29 @@
.class public final Ly/a/s1/n;
.super Ljava/lang/Object;
.source "Symbol.kt"
# instance fields
.field public final a:Ljava/lang/String;
# direct methods
.method public constructor <init>(Ljava/lang/String;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Ly/a/s1/n;->a:Ljava/lang/String;
return-void
.end method
# virtual methods
.method public toString()Ljava/lang/String;
.locals 1
iget-object v0, p0, Ly/a/s1/n;->a:Ljava/lang/String;
return-object v0
.end method

View file

@ -0,0 +1,25 @@
.class public final synthetic Ly/a/s1/o;
.super Ljava/lang/Object;
.source "SystemProps.kt"
# static fields
.field public static final a:I
# direct methods
.method public static constructor <clinit>()V
.locals 1
invoke-static {}, Ljava/lang/Runtime;->getRuntime()Ljava/lang/Runtime;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/Runtime;->availableProcessors()I
move-result v0
sput v0, Ly/a/s1/o;->a:I
return-void
.end method

View file

@ -0,0 +1,108 @@
.class public final Ly/a/s1/p$a;
.super Lx/m/c/k;
.source "ThreadContext.kt"
# interfaces
.implements Lkotlin/jvm/functions/Function2;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Ly/a/s1/p;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lx/m/c/k;",
"Lkotlin/jvm/functions/Function2<",
"Ljava/lang/Object;",
"Lkotlin/coroutines/CoroutineContext$a;",
"Ljava/lang/Object;",
">;"
}
.end annotation
# static fields
.field public static final d:Ly/a/s1/p$a;
# direct methods
.method public static constructor <clinit>()V
.locals 1
new-instance v0, Ly/a/s1/p$a;
invoke-direct {v0}, Ly/a/s1/p$a;-><init>()V
sput-object v0, Ly/a/s1/p$a;->d:Ly/a/s1/p$a;
return-void
.end method
.method public constructor <init>()V
.locals 1
const/4 v0, 0x2
invoke-direct {p0, v0}, Lx/m/c/k;-><init>(I)V
return-void
.end method
# virtual methods
.method public invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.locals 1
check-cast p2, Lkotlin/coroutines/CoroutineContext$a;
instance-of v0, p2, Ly/a/l1;
if-eqz v0, :cond_3
instance-of v0, p1, Ljava/lang/Integer;
if-nez v0, :cond_0
const/4 p1, 0x0
:cond_0
check-cast p1, Ljava/lang/Integer;
const/4 v0, 0x1
if-eqz p1, :cond_1
invoke-virtual {p1}, Ljava/lang/Integer;->intValue()I
move-result p1
goto :goto_0
:cond_1
const/4 p1, 0x1
:goto_0
if-nez p1, :cond_2
move-object p1, p2
goto :goto_1
:cond_2
add-int/2addr p1, v0
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p1
:cond_3
:goto_1
return-object p1
.end method

View file

@ -0,0 +1,86 @@
.class public final Ly/a/s1/p$b;
.super Lx/m/c/k;
.source "ThreadContext.kt"
# interfaces
.implements Lkotlin/jvm/functions/Function2;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Ly/a/s1/p;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lx/m/c/k;",
"Lkotlin/jvm/functions/Function2<",
"Ly/a/l1<",
"*>;",
"Lkotlin/coroutines/CoroutineContext$a;",
"Ly/a/l1<",
"*>;>;"
}
.end annotation
# static fields
.field public static final d:Ly/a/s1/p$b;
# direct methods
.method public static constructor <clinit>()V
.locals 1
new-instance v0, Ly/a/s1/p$b;
invoke-direct {v0}, Ly/a/s1/p$b;-><init>()V
sput-object v0, Ly/a/s1/p$b;->d:Ly/a/s1/p$b;
return-void
.end method
.method public constructor <init>()V
.locals 1
const/4 v0, 0x2
invoke-direct {p0, v0}, Lx/m/c/k;-><init>(I)V
return-void
.end method
# virtual methods
.method public invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
check-cast p1, Ly/a/l1;
check-cast p2, Lkotlin/coroutines/CoroutineContext$a;
if-eqz p1, :cond_0
goto :goto_0
:cond_0
instance-of p1, p2, Ly/a/l1;
if-nez p1, :cond_1
const/4 p2, 0x0
:cond_1
move-object p1, p2
check-cast p1, Ly/a/l1;
:goto_0
return-object p1
.end method

View file

@ -0,0 +1,89 @@
.class public final Ly/a/s1/p$c;
.super Lx/m/c/k;
.source "ThreadContext.kt"
# interfaces
.implements Lkotlin/jvm/functions/Function2;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Ly/a/s1/p;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lx/m/c/k;",
"Lkotlin/jvm/functions/Function2<",
"Ly/a/s1/s;",
"Lkotlin/coroutines/CoroutineContext$a;",
"Ly/a/s1/s;",
">;"
}
.end annotation
# static fields
.field public static final d:Ly/a/s1/p$c;
# direct methods
.method public static constructor <clinit>()V
.locals 1
new-instance v0, Ly/a/s1/p$c;
invoke-direct {v0}, Ly/a/s1/p$c;-><init>()V
sput-object v0, Ly/a/s1/p$c;->d:Ly/a/s1/p$c;
return-void
.end method
.method public constructor <init>()V
.locals 1
const/4 v0, 0x2
invoke-direct {p0, v0}, Lx/m/c/k;-><init>(I)V
return-void
.end method
# virtual methods
.method public invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.locals 4
check-cast p1, Ly/a/s1/s;
check-cast p2, Lkotlin/coroutines/CoroutineContext$a;
instance-of v0, p2, Ly/a/l1;
if-eqz v0, :cond_0
check-cast p2, Ly/a/l1;
iget-object v0, p1, Ly/a/s1/s;->c:Lkotlin/coroutines/CoroutineContext;
iget-object v1, p1, Ly/a/s1/s;->a:[Ljava/lang/Object;
iget v2, p1, Ly/a/s1/s;->b:I
add-int/lit8 v3, v2, 0x1
iput v3, p1, Ly/a/s1/s;->b:I
aget-object v1, v1, v2
invoke-interface {p2, v0, v1}, Ly/a/l1;->i(Lkotlin/coroutines/CoroutineContext;Ljava/lang/Object;)V
:cond_0
return-object p1
.end method

View file

@ -0,0 +1,91 @@
.class public final Ly/a/s1/p$d;
.super Lx/m/c/k;
.source "ThreadContext.kt"
# interfaces
.implements Lkotlin/jvm/functions/Function2;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Ly/a/s1/p;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lx/m/c/k;",
"Lkotlin/jvm/functions/Function2<",
"Ly/a/s1/s;",
"Lkotlin/coroutines/CoroutineContext$a;",
"Ly/a/s1/s;",
">;"
}
.end annotation
# static fields
.field public static final d:Ly/a/s1/p$d;
# direct methods
.method public static constructor <clinit>()V
.locals 1
new-instance v0, Ly/a/s1/p$d;
invoke-direct {v0}, Ly/a/s1/p$d;-><init>()V
sput-object v0, Ly/a/s1/p$d;->d:Ly/a/s1/p$d;
return-void
.end method
.method public constructor <init>()V
.locals 1
const/4 v0, 0x2
invoke-direct {p0, v0}, Lx/m/c/k;-><init>(I)V
return-void
.end method
# virtual methods
.method public invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.locals 3
check-cast p1, Ly/a/s1/s;
check-cast p2, Lkotlin/coroutines/CoroutineContext$a;
instance-of v0, p2, Ly/a/l1;
if-eqz v0, :cond_0
check-cast p2, Ly/a/l1;
iget-object v0, p1, Ly/a/s1/s;->c:Lkotlin/coroutines/CoroutineContext;
invoke-interface {p2, v0}, Ly/a/l1;->o(Lkotlin/coroutines/CoroutineContext;)Ljava/lang/Object;
move-result-object p2
iget-object v0, p1, Ly/a/s1/s;->a:[Ljava/lang/Object;
iget v1, p1, Ly/a/s1/s;->b:I
add-int/lit8 v2, v1, 0x1
iput v2, p1, Ly/a/s1/s;->b:I
aput-object p2, v0, v1
:cond_0
return-object p1
.end method

View file

@ -0,0 +1,241 @@
.class public final Ly/a/s1/p;
.super Ljava/lang/Object;
.source "ThreadContext.kt"
# static fields
.field public static final a:Ly/a/s1/n;
.field public static final b:Lkotlin/jvm/functions/Function2;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/jvm/functions/Function2<",
"Ljava/lang/Object;",
"Lkotlin/coroutines/CoroutineContext$a;",
"Ljava/lang/Object;",
">;"
}
.end annotation
.end field
.field public static final c:Lkotlin/jvm/functions/Function2;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/jvm/functions/Function2<",
"Ly/a/l1<",
"*>;",
"Lkotlin/coroutines/CoroutineContext$a;",
"Ly/a/l1<",
"*>;>;"
}
.end annotation
.end field
.field public static final d:Lkotlin/jvm/functions/Function2;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/jvm/functions/Function2<",
"Ly/a/s1/s;",
"Lkotlin/coroutines/CoroutineContext$a;",
"Ly/a/s1/s;",
">;"
}
.end annotation
.end field
.field public static final e:Lkotlin/jvm/functions/Function2;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/jvm/functions/Function2<",
"Ly/a/s1/s;",
"Lkotlin/coroutines/CoroutineContext$a;",
"Ly/a/s1/s;",
">;"
}
.end annotation
.end field
# direct methods
.method public static constructor <clinit>()V
.locals 2
new-instance v0, Ly/a/s1/n;
const-string v1, "ZERO"
invoke-direct {v0, v1}, Ly/a/s1/n;-><init>(Ljava/lang/String;)V
sput-object v0, Ly/a/s1/p;->a:Ly/a/s1/n;
sget-object v0, Ly/a/s1/p$a;->d:Ly/a/s1/p$a;
sput-object v0, Ly/a/s1/p;->b:Lkotlin/jvm/functions/Function2;
sget-object v0, Ly/a/s1/p$b;->d:Ly/a/s1/p$b;
sput-object v0, Ly/a/s1/p;->c:Lkotlin/jvm/functions/Function2;
sget-object v0, Ly/a/s1/p$d;->d:Ly/a/s1/p$d;
sput-object v0, Ly/a/s1/p;->d:Lkotlin/jvm/functions/Function2;
sget-object v0, Ly/a/s1/p$c;->d:Ly/a/s1/p$c;
sput-object v0, Ly/a/s1/p;->e:Lkotlin/jvm/functions/Function2;
return-void
.end method
.method public static final a(Lkotlin/coroutines/CoroutineContext;Ljava/lang/Object;)V
.locals 2
sget-object v0, Ly/a/s1/p;->a:Ly/a/s1/n;
if-ne p1, v0, :cond_0
return-void
:cond_0
instance-of v0, p1, Ly/a/s1/s;
if-eqz v0, :cond_1
move-object v0, p1
check-cast v0, Ly/a/s1/s;
const/4 v1, 0x0
iput v1, v0, Ly/a/s1/s;->b:I
sget-object v0, Ly/a/s1/p;->e:Lkotlin/jvm/functions/Function2;
invoke-interface {p0, p1, v0}, Lkotlin/coroutines/CoroutineContext;->fold(Ljava/lang/Object;Lkotlin/jvm/functions/Function2;)Ljava/lang/Object;
goto :goto_0
:cond_1
const/4 v0, 0x0
sget-object v1, Ly/a/s1/p;->c:Lkotlin/jvm/functions/Function2;
invoke-interface {p0, v0, v1}, Lkotlin/coroutines/CoroutineContext;->fold(Ljava/lang/Object;Lkotlin/jvm/functions/Function2;)Ljava/lang/Object;
move-result-object v0
if-eqz v0, :cond_2
check-cast v0, Ly/a/l1;
invoke-interface {v0, p0, p1}, Ly/a/l1;->i(Lkotlin/coroutines/CoroutineContext;Ljava/lang/Object;)V
:goto_0
return-void
:cond_2
new-instance p0, Lkotlin/TypeCastException;
const-string p1, "null cannot be cast to non-null type kotlinx.coroutines.ThreadContextElement<kotlin.Any?>"
invoke-direct {p0, p1}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V
throw p0
.end method
.method public static final b(Lkotlin/coroutines/CoroutineContext;)Ljava/lang/Object;
.locals 2
const/4 v0, 0x0
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v0
sget-object v1, Ly/a/s1/p;->b:Lkotlin/jvm/functions/Function2;
invoke-interface {p0, v0, v1}, Lkotlin/coroutines/CoroutineContext;->fold(Ljava/lang/Object;Lkotlin/jvm/functions/Function2;)Ljava/lang/Object;
move-result-object p0
if-eqz p0, :cond_0
return-object p0
:cond_0
invoke-static {}, Lx/m/c/j;->throwNpe()V
const/4 p0, 0x0
throw p0
.end method
.method public static final c(Lkotlin/coroutines/CoroutineContext;Ljava/lang/Object;)Ljava/lang/Object;
.locals 1
if-eqz p1, :cond_0
goto :goto_0
:cond_0
invoke-static {p0}, Ly/a/s1/p;->b(Lkotlin/coroutines/CoroutineContext;)Ljava/lang/Object;
move-result-object p1
:goto_0
const/4 v0, 0x0
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v0
if-ne p1, v0, :cond_1
sget-object p0, Ly/a/s1/p;->a:Ly/a/s1/n;
goto :goto_1
:cond_1
instance-of v0, p1, Ljava/lang/Integer;
if-eqz v0, :cond_2
new-instance v0, Ly/a/s1/s;
check-cast p1, Ljava/lang/Number;
invoke-virtual {p1}, Ljava/lang/Number;->intValue()I
move-result p1
invoke-direct {v0, p0, p1}, Ly/a/s1/s;-><init>(Lkotlin/coroutines/CoroutineContext;I)V
sget-object p1, Ly/a/s1/p;->d:Lkotlin/jvm/functions/Function2;
invoke-interface {p0, v0, p1}, Lkotlin/coroutines/CoroutineContext;->fold(Ljava/lang/Object;Lkotlin/jvm/functions/Function2;)Ljava/lang/Object;
move-result-object p0
goto :goto_1
:cond_2
if-eqz p1, :cond_3
check-cast p1, Ly/a/l1;
invoke-interface {p1, p0}, Ly/a/l1;->o(Lkotlin/coroutines/CoroutineContext;)Ljava/lang/Object;
move-result-object p0
:goto_1
return-object p0
:cond_3
new-instance p0, Lkotlin/TypeCastException;
const-string p1, "null cannot be cast to non-null type kotlinx.coroutines.ThreadContextElement<kotlin.Any?>"
invoke-direct {p0, p1}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V
throw p0
.end method

View file

@ -0,0 +1,430 @@
.class public Ly/a/s1/q;
.super Ljava/lang/Object;
.source "ThreadSafeHeap.kt"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T::",
"Ly/a/s1/r;",
":",
"Ljava/lang/Comparable<",
"-TT;>;>",
"Ljava/lang/Object;"
}
.end annotation
# instance fields
.field public volatile _size:I
.field public a:[Ly/a/s1/r;
.annotation system Ldalvik/annotation/Signature;
value = {
"[TT;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>()V
.locals 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
iput v0, p0, Ly/a/s1/q;->_size:I
return-void
.end method
# virtual methods
.method public final a(Ly/a/s1/r;)V
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
move-object v0, p1
check-cast v0, Ly/a/m0$b;
invoke-virtual {v0, p0}, Ly/a/m0$b;->g(Ly/a/s1/q;)V
iget-object v1, p0, Ly/a/s1/q;->a:[Ly/a/s1/r;
if-nez v1, :cond_0
const/4 v1, 0x4
new-array v1, v1, [Ly/a/s1/r;
iput-object v1, p0, Ly/a/s1/q;->a:[Ly/a/s1/r;
goto :goto_0
:cond_0
iget v2, p0, Ly/a/s1/q;->_size:I
array-length v3, v1
if-lt v2, v3, :cond_1
iget v2, p0, Ly/a/s1/q;->_size:I
mul-int/lit8 v2, v2, 0x2
invoke-static {v1, v2}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
move-result-object v1
const-string v2, "java.util.Arrays.copyOf(this, newSize)"
invoke-static {v1, v2}, Lx/m/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
check-cast v1, [Ly/a/s1/r;
iput-object v1, p0, Ly/a/s1/q;->a:[Ly/a/s1/r;
:cond_1
:goto_0
iget v2, p0, Ly/a/s1/q;->_size:I
add-int/lit8 v3, v2, 0x1
iput v3, p0, Ly/a/s1/q;->_size:I
aput-object p1, v1, v2
iput v2, v0, Ly/a/m0$b;->e:I
invoke-virtual {p0, v2}, Ly/a/s1/q;->d(I)V
return-void
.end method
.method public final b()Ly/a/s1/r;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()TT;"
}
.end annotation
iget-object v0, p0, Ly/a/s1/q;->a:[Ly/a/s1/r;
if-eqz v0, :cond_0
const/4 v1, 0x0
aget-object v0, v0, v1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return-object v0
.end method
.method public final c(I)Ly/a/s1/r;
.locals 8
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)TT;"
}
.end annotation
iget-object v0, p0, Ly/a/s1/q;->a:[Ly/a/s1/r;
const/4 v1, 0x0
if-eqz v0, :cond_d
iget v2, p0, Ly/a/s1/q;->_size:I
const/4 v3, -0x1
add-int/2addr v2, v3
iput v2, p0, Ly/a/s1/q;->_size:I
iget v2, p0, Ly/a/s1/q;->_size:I
if-ge p1, v2, :cond_b
iget v2, p0, Ly/a/s1/q;->_size:I
invoke-virtual {p0, p1, v2}, Ly/a/s1/q;->e(II)V
add-int/lit8 v2, p1, -0x1
div-int/lit8 v2, v2, 0x2
if-lez p1, :cond_2
aget-object v4, v0, p1
if-eqz v4, :cond_1
check-cast v4, Ljava/lang/Comparable;
aget-object v5, v0, v2
if-eqz v5, :cond_0
invoke-interface {v4, v5}, Ljava/lang/Comparable;->compareTo(Ljava/lang/Object;)I
move-result v4
if-gez v4, :cond_2
invoke-virtual {p0, p1, v2}, Ly/a/s1/q;->e(II)V
invoke-virtual {p0, v2}, Ly/a/s1/q;->d(I)V
goto :goto_2
:cond_0
invoke-static {}, Lx/m/c/j;->throwNpe()V
throw v1
:cond_1
invoke-static {}, Lx/m/c/j;->throwNpe()V
throw v1
:cond_2
:goto_0
mul-int/lit8 v2, p1, 0x2
add-int/lit8 v2, v2, 0x1
iget v4, p0, Ly/a/s1/q;->_size:I
if-lt v2, v4, :cond_3
goto :goto_2
:cond_3
iget-object v4, p0, Ly/a/s1/q;->a:[Ly/a/s1/r;
if-eqz v4, :cond_a
add-int/lit8 v5, v2, 0x1
iget v6, p0, Ly/a/s1/q;->_size:I
if-ge v5, v6, :cond_6
aget-object v6, v4, v5
if-eqz v6, :cond_5
check-cast v6, Ljava/lang/Comparable;
aget-object v7, v4, v2
if-eqz v7, :cond_4
invoke-interface {v6, v7}, Ljava/lang/Comparable;->compareTo(Ljava/lang/Object;)I
move-result v6
if-gez v6, :cond_6
move v2, v5
goto :goto_1
:cond_4
invoke-static {}, Lx/m/c/j;->throwNpe()V
throw v1
:cond_5
invoke-static {}, Lx/m/c/j;->throwNpe()V
throw v1
:cond_6
:goto_1
aget-object v5, v4, p1
if-eqz v5, :cond_9
check-cast v5, Ljava/lang/Comparable;
aget-object v4, v4, v2
if-eqz v4, :cond_8
invoke-interface {v5, v4}, Ljava/lang/Comparable;->compareTo(Ljava/lang/Object;)I
move-result v4
if-gtz v4, :cond_7
goto :goto_2
:cond_7
invoke-virtual {p0, p1, v2}, Ly/a/s1/q;->e(II)V
move p1, v2
goto :goto_0
:cond_8
invoke-static {}, Lx/m/c/j;->throwNpe()V
throw v1
:cond_9
invoke-static {}, Lx/m/c/j;->throwNpe()V
throw v1
:cond_a
invoke-static {}, Lx/m/c/j;->throwNpe()V
throw v1
:cond_b
:goto_2
iget p1, p0, Ly/a/s1/q;->_size:I
aget-object p1, v0, p1
if-eqz p1, :cond_c
invoke-interface {p1, v1}, Ly/a/s1/r;->g(Ly/a/s1/q;)V
invoke-interface {p1, v3}, Ly/a/s1/r;->f(I)V
iget v2, p0, Ly/a/s1/q;->_size:I
aput-object v1, v0, v2
return-object p1
:cond_c
invoke-static {}, Lx/m/c/j;->throwNpe()V
throw v1
:cond_d
invoke-static {}, Lx/m/c/j;->throwNpe()V
throw v1
.end method
.method public final d(I)V
.locals 4
:goto_0
if-gtz p1, :cond_0
return-void
:cond_0
iget-object v0, p0, Ly/a/s1/q;->a:[Ly/a/s1/r;
const/4 v1, 0x0
if-eqz v0, :cond_4
add-int/lit8 v2, p1, -0x1
div-int/lit8 v2, v2, 0x2
aget-object v3, v0, v2
if-eqz v3, :cond_3
check-cast v3, Ljava/lang/Comparable;
aget-object v0, v0, p1
if-eqz v0, :cond_2
invoke-interface {v3, v0}, Ljava/lang/Comparable;->compareTo(Ljava/lang/Object;)I
move-result v0
if-gtz v0, :cond_1
return-void
:cond_1
invoke-virtual {p0, p1, v2}, Ly/a/s1/q;->e(II)V
move p1, v2
goto :goto_0
:cond_2
invoke-static {}, Lx/m/c/j;->throwNpe()V
throw v1
:cond_3
invoke-static {}, Lx/m/c/j;->throwNpe()V
throw v1
:cond_4
invoke-static {}, Lx/m/c/j;->throwNpe()V
throw v1
.end method
.method public final e(II)V
.locals 4
iget-object v0, p0, Ly/a/s1/q;->a:[Ly/a/s1/r;
const/4 v1, 0x0
if-eqz v0, :cond_2
aget-object v2, v0, p2
if-eqz v2, :cond_1
aget-object v3, v0, p1
if-eqz v3, :cond_0
aput-object v2, v0, p1
aput-object v3, v0, p2
invoke-interface {v2, p1}, Ly/a/s1/r;->f(I)V
invoke-interface {v3, p2}, Ly/a/s1/r;->f(I)V
return-void
:cond_0
invoke-static {}, Lx/m/c/j;->throwNpe()V
throw v1
:cond_1
invoke-static {}, Lx/m/c/j;->throwNpe()V
throw v1
:cond_2
invoke-static {}, Lx/m/c/j;->throwNpe()V
throw v1
.end method

View file

@ -0,0 +1,31 @@
.class public interface abstract Ly/a/s1/r;
.super Ljava/lang/Object;
.source "ThreadSafeHeap.kt"
# virtual methods
.method public abstract f(I)V
.end method
.method public abstract g(Ly/a/s1/q;)V
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ly/a/s1/q<",
"*>;)V"
}
.end annotation
.end method
.method public abstract i()Ly/a/s1/q;
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ly/a/s1/q<",
"*>;"
}
.end annotation
.end method
.method public abstract j()I
.end method

View file

@ -0,0 +1,27 @@
.class public final Ly/a/s1/s;
.super Ljava/lang/Object;
.source "ThreadContext.kt"
# instance fields
.field public a:[Ljava/lang/Object;
.field public b:I
.field public final c:Lkotlin/coroutines/CoroutineContext;
# direct methods
.method public constructor <init>(Lkotlin/coroutines/CoroutineContext;I)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Ly/a/s1/s;->c:Lkotlin/coroutines/CoroutineContext;
new-array p1, p2, [Ljava/lang/Object;
iput-object p1, p0, Ly/a/s1/s;->a:[Ljava/lang/Object;
return-void
.end method