apkfuckery/com.discord/smali_classes2/d0/a/r1/i.smali

799 lines
15 KiB
Smali
Raw Normal View History

2020-09-22 07:09:10 +00:00
.class public final Ld0/a/r1/i;
2020-09-16 23:45:23 +00:00
.super Ljava/lang/Object;
.source "LockFreeTaskQueue.kt"
2020-05-17 12:40:10 +00:00
2020-09-09 19:21:20 +00:00
2020-09-16 21:45:36 +00:00
# annotations
2020-09-16 23:45:23 +00:00
.annotation system Ldalvik/annotation/MemberClasses;
value = {
2020-09-22 07:09:10 +00:00
Ld0/a/r1/i$b;,
Ld0/a/r1/i$a;
2020-09-16 23:45:23 +00:00
}
.end annotation
2020-05-17 12:40:10 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
2020-09-16 23:45:23 +00:00
"<E:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;"
2020-05-17 12:40:10 +00:00
}
.end annotation
2020-09-16 23:45:23 +00:00
# static fields
.field public static final e:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
.field public static final f:Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;
2020-09-22 07:09:10 +00:00
.field public static final g:Ld0/a/r1/n;
2020-09-16 23:45:23 +00:00
2020-09-22 07:09:10 +00:00
.field public static final h:Ld0/a/r1/i$a;
2020-09-16 23:45:23 +00:00
2020-05-17 12:40:10 +00:00
# instance fields
2020-09-16 23:45:23 +00:00
.field public volatile _next:Ljava/lang/Object;
.field public 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
2020-05-17 12:40:10 +00:00
# direct methods
2020-09-16 23:45:23 +00:00
.method public static constructor <clinit>()V
.locals 3
2020-09-22 07:09:10 +00:00
const-class v0, Ld0/a/r1/i;
2020-09-16 23:45:23 +00:00
2020-09-22 07:09:10 +00:00
new-instance v1, Ld0/a/r1/i$a;
2020-09-16 23:45:23 +00:00
const/4 v2, 0x0
2020-09-22 07:09:10 +00:00
invoke-direct {v1, v2}, Ld0/a/r1/i$a;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
2020-09-16 23:45:23 +00:00
2020-09-22 07:09:10 +00:00
sput-object v1, Ld0/a/r1/i;->h:Ld0/a/r1/i$a;
2020-09-16 23:45:23 +00:00
2020-09-22 07:09:10 +00:00
new-instance v1, Ld0/a/r1/n;
2020-09-16 23:45:23 +00:00
const-string v2, "REMOVE_FROZEN"
2020-09-22 07:09:10 +00:00
invoke-direct {v1, v2}, Ld0/a/r1/n;-><init>(Ljava/lang/String;)V
2020-09-16 23:45:23 +00:00
2020-09-22 07:09:10 +00:00
sput-object v1, Ld0/a/r1/i;->g:Ld0/a/r1/n;
2020-09-16 23:45:23 +00:00
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
2020-09-22 07:09:10 +00:00
sput-object v1, Ld0/a/r1/i;->e:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
2020-09-16 23:45:23 +00:00
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
2020-09-22 07:09:10 +00:00
sput-object v0, Ld0/a/r1/i;->f:Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;
2020-09-16 23:45:23 +00:00
return-void
.end method
.method public constructor <init>(IZ)V
.locals 3
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2020-09-22 07:09:10 +00:00
iput p1, p0, Ld0/a/r1/i;->c:I
2020-09-16 23:45:23 +00:00
2020-09-22 07:09:10 +00:00
iput-boolean p2, p0, Ld0/a/r1/i;->d:Z
2020-09-16 23:45:23 +00:00
const/4 p2, 0x1
sub-int/2addr p1, p2
2020-09-22 07:09:10 +00:00
iput p1, p0, Ld0/a/r1/i;->a:I
2020-05-17 12:40:10 +00:00
2020-09-16 23:45:23 +00:00
const/4 p1, 0x0
2020-09-22 07:09:10 +00:00
iput-object p1, p0, Ld0/a/r1/i;->_next:Ljava/lang/Object;
2020-09-16 23:45:23 +00:00
const-wide/16 v0, 0x0
2020-09-22 07:09:10 +00:00
iput-wide v0, p0, Ld0/a/r1/i;->_state:J
2020-09-16 23:45:23 +00:00
new-instance p1, Ljava/util/concurrent/atomic/AtomicReferenceArray;
2020-09-22 07:09:10 +00:00
iget v0, p0, Ld0/a/r1/i;->c:I
2020-09-16 23:45:23 +00:00
invoke-direct {p1, v0}, Ljava/util/concurrent/atomic/AtomicReferenceArray;-><init>(I)V
2020-09-22 07:09:10 +00:00
iput-object p1, p0, Ld0/a/r1/i;->b:Ljava/util/concurrent/atomic/AtomicReferenceArray;
2020-09-16 23:45:23 +00:00
2020-09-22 07:09:10 +00:00
iget p1, p0, Ld0/a/r1/i;->a:I
2020-09-16 23:45:23 +00:00
const/4 v0, 0x0
const v1, 0x3fffffff # 1.9999999f
if-gt p1, v1, :cond_0
2020-05-17 12:40:10 +00:00
const/4 p1, 0x1
2020-09-16 23:45:23 +00:00
goto :goto_0
:cond_0
const/4 p1, 0x0
:goto_0
const-string v1, "Check failed."
if-eqz p1, :cond_3
2020-09-22 07:09:10 +00:00
iget p1, p0, Ld0/a/r1/i;->c:I
2020-09-16 23:45:23 +00:00
2020-09-22 07:09:10 +00:00
iget v2, p0, Ld0/a/r1/i;->a:I
2020-09-16 23:45:23 +00:00
and-int/2addr p1, v2
if-nez p1, :cond_1
goto :goto_1
:cond_1
const/4 p2, 0x0
:goto_1
if-eqz p2, :cond_2
2020-05-17 12:40:10 +00:00
return-void
2020-09-16 23:45:23 +00:00
:cond_2
new-instance p1, Ljava/lang/IllegalStateException;
invoke-virtual {v1}, 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 {v1}, 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
2020-05-17 12:40:10 +00:00
.end method
# virtual methods
2020-09-16 23:45:23 +00:00
.method public final a(Ljava/lang/Object;)I
.locals 15
.annotation system Ldalvik/annotation/Signature;
value = {
"(TE;)I"
}
.end annotation
2020-09-09 19:21:20 +00:00
2020-09-16 23:45:23 +00:00
move-object v6, p0
2020-09-09 19:21:20 +00:00
2020-09-16 23:45:23 +00:00
move-object/from16 v7, p1
2020-09-09 19:21:20 +00:00
2020-09-16 23:45:23 +00:00
:cond_0
2020-09-22 07:09:10 +00:00
iget-wide v2, v6, Ld0/a/r1/i;->_state:J
2020-09-09 19:21:20 +00:00
2020-09-16 23:45:23 +00:00
const-wide/high16 v0, 0x3000000000000000L # 1.727233711018889E-77
2020-09-09 19:21:20 +00:00
2020-09-16 23:45:23 +00:00
and-long/2addr v0, v2
const-wide/16 v8, 0x0
2020-09-09 19:21:20 +00:00
2020-09-16 23:45:23 +00:00
const/4 v4, 0x1
2020-09-09 19:21:20 +00:00
2020-09-16 23:45:23 +00:00
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
2020-09-22 07:09:10 +00:00
iget v11, v6, Ld0/a/r1/i;->a:I
2020-09-16 23:45:23 +00:00
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
2020-09-22 07:09:10 +00:00
iget-boolean v5, v6, Ld0/a/r1/i;->d:Z
2020-09-16 23:45:23 +00:00
const v13, 0x3fffffff # 1.9999999f
if-nez v5, :cond_5
2020-09-22 07:09:10 +00:00
iget-object v5, v6, Ld0/a/r1/i;->b:Ljava/util/concurrent/atomic/AtomicReferenceArray;
2020-09-16 23:45:23 +00:00
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
2020-09-22 07:09:10 +00:00
iget v0, v6, Ld0/a/r1/i;->c:I
2020-09-16 23:45:23 +00:00
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
2020-09-22 07:09:10 +00:00
sget-object v4, Ld0/a/r1/i;->f:Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;
2020-09-16 23:45:23 +00:00
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
2020-09-22 07:09:10 +00:00
iget-object v0, v6, Ld0/a/r1/i;->b:Ljava/util/concurrent/atomic/AtomicReferenceArray;
2020-09-16 23:45:23 +00:00
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
2020-09-22 07:09:10 +00:00
iget-wide v1, v0, Ld0/a/r1/i;->_state:J
2020-09-16 23:45:23 +00:00
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
2020-09-22 07:09:10 +00:00
invoke-virtual {v0}, Ld0/a/r1/i;->d()Ld0/a/r1/i;
2020-09-16 23:45:23 +00:00
move-result-object v0
2020-09-22 07:09:10 +00:00
iget-object v1, v0, Ld0/a/r1/i;->b:Ljava/util/concurrent/atomic/AtomicReferenceArray;
2020-09-16 23:45:23 +00:00
2020-09-22 07:09:10 +00:00
iget v2, v0, Ld0/a/r1/i;->a:I
2020-09-16 23:45:23 +00:00
and-int/2addr v2, v12
invoke-virtual {v1, v2}, Ljava/util/concurrent/atomic/AtomicReferenceArray;->get(I)Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
2020-09-08 08:16:32 +00:00
move-result-object v1
2020-05-17 12:40:10 +00:00
2020-09-22 07:09:10 +00:00
instance-of v2, v1, Ld0/a/r1/i$b;
2020-09-16 23:45:23 +00:00
if-eqz v2, :cond_7
2020-09-22 07:09:10 +00:00
check-cast v1, Ld0/a/r1/i$b;
2020-09-16 23:45:23 +00:00
2020-09-22 07:09:10 +00:00
iget v1, v1, Ld0/a/r1/i$b;->a:I
2020-05-17 12:40:10 +00:00
2020-09-16 23:45:23 +00:00
if-ne v1, v12, :cond_7
2020-05-17 12:40:10 +00:00
2020-09-22 07:09:10 +00:00
iget-object v1, v0, Ld0/a/r1/i;->b:Ljava/util/concurrent/atomic/AtomicReferenceArray;
2020-09-16 23:45:23 +00:00
2020-09-22 07:09:10 +00:00
iget v2, v0, Ld0/a/r1/i;->a:I
2020-09-16 23:45:23 +00:00
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
2020-05-17 12:40:10 +00:00
goto :goto_0
2020-09-16 23:45:23 +00:00
:cond_8
:goto_2
return v10
.end method
.method public final b()Z
.locals 10
2020-09-09 19:21:20 +00:00
:cond_0
2020-09-22 07:09:10 +00:00
iget-wide v2, p0, Ld0/a/r1/i;->_state:J
2020-09-09 19:21:20 +00:00
2020-09-16 23:45:23 +00:00
const-wide/high16 v0, 0x2000000000000000L
2020-09-09 19:21:20 +00:00
2020-09-16 23:45:23 +00:00
and-long v4, v2, v0
2020-09-09 19:21:20 +00:00
2020-09-16 23:45:23 +00:00
const/4 v6, 0x1
2020-09-09 19:21:20 +00:00
2020-09-16 23:45:23 +00:00
const-wide/16 v7, 0x0
2020-09-09 19:21:20 +00:00
2020-09-16 23:45:23 +00:00
cmp-long v9, v4, v7
2020-09-09 19:21:20 +00:00
2020-09-16 23:45:23 +00:00
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
2020-09-22 07:09:10 +00:00
sget-object v0, Ld0/a/r1/i;->f:Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;
2020-09-16 23:45:23 +00:00
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()Z
.locals 7
2020-09-22 07:09:10 +00:00
iget-wide v0, p0, Ld0/a/r1/i;->_state:J
2020-09-16 23:45:23 +00:00
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
2020-09-22 07:09:10 +00:00
.method public final d()Ld0/a/r1/i;
2020-09-16 23:45:23 +00:00
.locals 10
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
2020-09-22 07:09:10 +00:00
"Ld0/a/r1/i<",
2020-09-16 23:45:23 +00:00
"TE;>;"
}
.end annotation
:cond_0
2020-09-22 07:09:10 +00:00
iget-wide v2, p0, Ld0/a/r1/i;->_state:J
2020-09-16 23:45:23 +00:00
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
2020-09-22 07:09:10 +00:00
sget-object v0, Ld0/a/r1/i;->f:Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;
2020-09-16 23:45:23 +00:00
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
2020-05-17 12:40:10 +00:00
:goto_0
2020-09-22 07:09:10 +00:00
iget-object v0, p0, Ld0/a/r1/i;->_next:Ljava/lang/Object;
2020-09-16 23:45:23 +00:00
2020-09-22 07:09:10 +00:00
check-cast v0, Ld0/a/r1/i;
2020-09-16 23:45:23 +00:00
if-eqz v0, :cond_2
return-object v0
:cond_2
2020-09-22 07:09:10 +00:00
sget-object v0, Ld0/a/r1/i;->e:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
2020-09-16 23:45:23 +00:00
const/4 v1, 0x0
2020-09-22 07:09:10 +00:00
new-instance v4, Ld0/a/r1/i;
2020-09-16 23:45:23 +00:00
2020-09-22 07:09:10 +00:00
iget v5, p0, Ld0/a/r1/i;->c:I
2020-09-16 23:45:23 +00:00
mul-int/lit8 v5, v5, 0x2
2020-09-22 07:09:10 +00:00
iget-boolean v6, p0, Ld0/a/r1/i;->d:Z
2020-09-16 23:45:23 +00:00
2020-09-22 07:09:10 +00:00
invoke-direct {v4, v5, v6}, Ld0/a/r1/i;-><init>(IZ)V
2020-09-16 23:45:23 +00:00
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
2020-05-17 12:40:10 +00:00
2020-09-16 23:45:23 +00:00
const/16 v5, 0x1e
shr-long/2addr v7, v5
long-to-int v5, v7
:goto_1
2020-09-22 07:09:10 +00:00
iget v7, p0, Ld0/a/r1/i;->a:I
2020-09-16 23:45:23 +00:00
and-int v8, v6, v7
and-int/2addr v7, v5
if-eq v8, v7, :cond_4
2020-09-22 07:09:10 +00:00
iget-object v7, p0, Ld0/a/r1/i;->b:Ljava/util/concurrent/atomic/AtomicReferenceArray;
2020-09-16 23:45:23 +00:00
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
2020-09-22 07:09:10 +00:00
new-instance v7, Ld0/a/r1/i$b;
2020-09-16 23:45:23 +00:00
2020-09-22 07:09:10 +00:00
invoke-direct {v7, v6}, Ld0/a/r1/i$b;-><init>(I)V
2020-09-16 23:45:23 +00:00
:goto_2
2020-09-22 07:09:10 +00:00
iget-object v8, v4, Ld0/a/r1/i;->b:Ljava/util/concurrent/atomic/AtomicReferenceArray;
2020-09-16 23:45:23 +00:00
2020-09-22 07:09:10 +00:00
iget v9, v4, Ld0/a/r1/i;->a:I
2020-09-16 23:45:23 +00:00
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
2020-05-17 12:40:10 +00:00
2020-09-08 08:16:32 +00:00
goto :goto_1
2020-05-17 12:40:10 +00:00
2020-09-16 23:45:23 +00:00
:cond_4
const-wide v5, -0x1000000000000001L # -3.1050361846014175E231
and-long/2addr v5, v2
2020-09-22 07:09:10 +00:00
iput-wide v5, v4, Ld0/a/r1/i;->_state:J
2020-09-16 23:45:23 +00:00
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 e()Ljava/lang/Object;
.locals 29
move-object/from16 v6, p0
:cond_0
:goto_0
2020-09-22 07:09:10 +00:00
iget-wide v2, v6, Ld0/a/r1/i;->_state:J
2020-09-16 23:45:23 +00:00
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
2020-09-22 07:09:10 +00:00
sget-object v0, Ld0/a/r1/i;->g:Ld0/a/r1/n;
2020-09-16 23:45:23 +00:00
return-object v0
2020-05-17 12:40:10 +00:00
:cond_1
2020-09-16 23:45:23 +00:00
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
2020-09-22 07:09:10 +00:00
iget v0, v6, Ld0/a/r1/i;->a:I
2020-09-16 23:45:23 +00:00
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
2020-09-22 07:09:10 +00:00
iget-object v1, v6, Ld0/a/r1/i;->b:Ljava/util/concurrent/atomic/AtomicReferenceArray;
2020-09-16 23:45:23 +00:00
invoke-virtual {v1, v0}, Ljava/util/concurrent/atomic/AtomicReferenceArray;->get(I)Ljava/lang/Object;
move-result-object v4
if-nez v4, :cond_3
2020-09-22 07:09:10 +00:00
iget-boolean v0, v6, Ld0/a/r1/i;->d:Z
2020-09-16 23:45:23 +00:00
if-eqz v0, :cond_0
return-object v15
:cond_3
2020-09-22 07:09:10 +00:00
instance-of v0, v4, Ld0/a/r1/i$b;
2020-09-16 23:45:23 +00:00
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
2020-09-22 07:09:10 +00:00
sget-object v1, Ld0/a/r1/i;->f:Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;
2020-09-16 23:45:23 +00:00
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
2020-09-08 08:16:32 +00:00
move-object v0, v1
2020-09-16 23:45:23 +00:00
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
2020-09-22 07:09:10 +00:00
iget-object v0, v6, Ld0/a/r1/i;->b:Ljava/util/concurrent/atomic/AtomicReferenceArray;
2020-09-16 23:45:23 +00:00
2020-09-22 07:09:10 +00:00
iget v1, v6, Ld0/a/r1/i;->a:I
2020-09-16 23:45:23 +00:00
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
2020-09-22 07:09:10 +00:00
iget-boolean v0, v6, Ld0/a/r1/i;->d:Z
2020-09-16 23:45:23 +00:00
if-nez v0, :cond_6
goto :goto_0
:cond_6
move-object v0, v6
:cond_7
2020-09-08 08:16:32 +00:00
:goto_1
2020-09-22 07:09:10 +00:00
iget-wide v1, v0, Ld0/a/r1/i;->_state:J
2020-09-08 08:16:32 +00:00
2020-09-16 23:45:23 +00:00
and-long v3, v1, v11
2020-09-09 19:21:20 +00:00
2020-09-16 23:45:23 +00:00
shr-long/2addr v3, v13
2020-09-09 19:21:20 +00:00
2020-09-16 23:45:23 +00:00
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
2020-09-22 07:09:10 +00:00
invoke-virtual {v0}, Ld0/a/r1/i;->d()Ld0/a/r1/i;
2020-09-16 23:45:23 +00:00
move-result-object v0
goto :goto_2
:cond_8
2020-09-22 07:09:10 +00:00
sget-object v23, Ld0/a/r1/i;->f:Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;
2020-09-16 23:45:23 +00:00
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
2020-09-22 07:09:10 +00:00
iget-object v1, v0, Ld0/a/r1/i;->b:Ljava/util/concurrent/atomic/AtomicReferenceArray;
2020-09-16 23:45:23 +00:00
2020-09-22 07:09:10 +00:00
iget v0, v0, Ld0/a/r1/i;->a:I
2020-09-16 23:45:23 +00:00
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
2020-09-08 08:16:32 +00:00
2020-09-16 23:45:23 +00:00
:cond_9
return-object v22
2020-05-17 12:40:10 +00:00
.end method