225 lines
4.3 KiB
Smali
225 lines
4.3 KiB
Smali
.class public abstract Lu/a/a2/c;
|
|
.super Lu/a/a2/s;
|
|
.source "Atomic.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Lu/a/a2/s;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final a:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
|
|
|
|
|
|
# instance fields
|
|
.field public volatile _consensus:Ljava/lang/Object;
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 3
|
|
|
|
const-class v0, Lu/a/a2/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, Lu/a/a2/c;->a:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
invoke-direct {p0}, Lu/a/a2/s;-><init>()V
|
|
|
|
sget-object v0, Lu/a/a2/b;->a:Ljava/lang/Object;
|
|
|
|
iput-object v0, p0, Lu/a/a2/c;->_consensus:Ljava/lang/Object;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a(Ljava/lang/Object;)Ljava/lang/Object;
|
|
.locals 7
|
|
|
|
iget-object v0, p0, Lu/a/a2/c;->_consensus:Ljava/lang/Object;
|
|
|
|
sget-object v1, Lu/a/a2/b;->a:Ljava/lang/Object;
|
|
|
|
const-string v2, "affected"
|
|
|
|
const/4 v3, 0x1
|
|
|
|
const/4 v4, 0x0
|
|
|
|
const/4 v5, 0x0
|
|
|
|
if-ne v0, v1, :cond_6
|
|
|
|
move-object v0, p0
|
|
|
|
check-cast v0, Lu/a/h1$c;
|
|
|
|
move-object v1, p1
|
|
|
|
check-cast v1, Lu/a/a2/n;
|
|
|
|
if-eqz v1, :cond_5
|
|
|
|
iget-object v1, v0, Lu/a/h1$c;->d:Lu/a/h1;
|
|
|
|
invoke-virtual {v1}, Lu/a/h1;->g()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
iget-object v0, v0, Lu/a/h1$c;->e:Ljava/lang/Object;
|
|
|
|
if-ne v1, v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
if-eqz v0, :cond_1
|
|
|
|
move-object v0, v5
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
sget-object v0, Lu/a/a2/m;->a:Ljava/lang/Object;
|
|
|
|
:goto_1
|
|
sget-object v1, Lu/a/a2/b;->a:Ljava/lang/Object;
|
|
|
|
if-eq v0, v1, :cond_2
|
|
|
|
const/4 v1, 0x1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
const/4 v1, 0x0
|
|
|
|
:goto_2
|
|
if-eqz v1, :cond_4
|
|
|
|
sget-object v1, Lu/a/a2/c;->a:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
|
|
|
|
sget-object v6, Lu/a/a2/b;->a:Ljava/lang/Object;
|
|
|
|
invoke-virtual {v1, p0, v6, v0}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
goto :goto_3
|
|
|
|
:cond_3
|
|
iget-object v0, p0, Lu/a/a2/c;->_consensus:Ljava/lang/Object;
|
|
|
|
goto :goto_3
|
|
|
|
:cond_4
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
const-string v0, "Check failed."
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
:cond_5
|
|
invoke-static {v2}, Lt/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v5
|
|
|
|
:cond_6
|
|
:goto_3
|
|
move-object v1, p0
|
|
|
|
check-cast v1, Lu/a/a2/n$a;
|
|
|
|
check-cast p1, Lu/a/a2/n;
|
|
|
|
if-eqz p1, :cond_b
|
|
|
|
if-nez v0, :cond_7
|
|
|
|
goto :goto_4
|
|
|
|
:cond_7
|
|
const/4 v3, 0x0
|
|
|
|
:goto_4
|
|
if-eqz v3, :cond_8
|
|
|
|
iget-object v2, v1, Lu/a/a2/n$a;->c:Lu/a/a2/n;
|
|
|
|
goto :goto_5
|
|
|
|
:cond_8
|
|
iget-object v2, v1, Lu/a/a2/n$a;->b:Lu/a/a2/n;
|
|
|
|
:goto_5
|
|
if-eqz v2, :cond_a
|
|
|
|
sget-object v4, Lu/a/a2/n;->d:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
|
|
|
|
invoke-virtual {v4, p1, v1, v2}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_a
|
|
|
|
if-eqz v3, :cond_a
|
|
|
|
iget-object p1, v1, Lu/a/a2/n$a;->c:Lu/a/a2/n;
|
|
|
|
iget-object v1, v1, Lu/a/a2/n$a;->b:Lu/a/a2/n;
|
|
|
|
if-eqz v1, :cond_9
|
|
|
|
invoke-virtual {p1, v1}, Lu/a/a2/n;->b(Lu/a/a2/n;)V
|
|
|
|
goto :goto_6
|
|
|
|
:cond_9
|
|
invoke-static {}, Lt/u/b/j;->throwNpe()V
|
|
|
|
throw v5
|
|
|
|
:cond_a
|
|
:goto_6
|
|
return-object v0
|
|
|
|
:cond_b
|
|
invoke-static {v2}, Lt/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v5
|
|
.end method
|