apkfuckery/com.discord/smali_classes2/rx/subjects/b.smali

370 lines
7.7 KiB
Smali
Raw Normal View History

2019-02-04 20:08:30 +00:00
.class final Lrx/subjects/b;
.super Ljava/util/concurrent/atomic/AtomicReference;
2019-02-04 20:29:01 +00:00
.source "SubjectSubscriptionManager.java"
2019-02-04 20:08:30 +00:00
# interfaces
.implements Lrx/Observable$a;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lrx/subjects/b$b;,
Lrx/subjects/b$a;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/util/concurrent/atomic/AtomicReference<",
"Lrx/subjects/b$a<",
"TT;>;>;",
"Lrx/Observable$a<",
"TT;>;"
}
.end annotation
# static fields
.field private static final serialVersionUID:J = 0x53c184d753c8b010L
# instance fields
.field active:Z
.field volatile latest:Ljava/lang/Object;
.field onAdded:Lrx/functions/Action1;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lrx/functions/Action1<",
"Lrx/subjects/b$b<",
"TT;>;>;"
}
.end annotation
.end field
.field onStart:Lrx/functions/Action1;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lrx/functions/Action1<",
"Lrx/subjects/b$b<",
"TT;>;>;"
}
.end annotation
.end field
.field onTerminated:Lrx/functions/Action1;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lrx/functions/Action1<",
"Lrx/subjects/b$b<",
"TT;>;>;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>()V
.locals 1
2019-06-01 02:00:00 +00:00
sget-object v0, Lrx/subjects/b$a;->bMF:Lrx/subjects/b$a;
2019-02-04 20:08:30 +00:00
invoke-direct {p0, v0}, Ljava/util/concurrent/atomic/AtomicReference;-><init>(Ljava/lang/Object;)V
const/4 v0, 0x1
iput-boolean v0, p0, Lrx/subjects/b;->active:Z
2019-05-28 22:16:26 +00:00
invoke-static {}, Lrx/functions/a;->FD()Lrx/functions/a$b;
2019-02-04 20:08:30 +00:00
move-result-object v0
iput-object v0, p0, Lrx/subjects/b;->onStart:Lrx/functions/Action1;
2019-05-28 22:16:26 +00:00
invoke-static {}, Lrx/functions/a;->FD()Lrx/functions/a$b;
2019-02-04 20:08:30 +00:00
move-result-object v0
iput-object v0, p0, Lrx/subjects/b;->onAdded:Lrx/functions/Action1;
2019-05-28 22:16:26 +00:00
invoke-static {}, Lrx/functions/a;->FD()Lrx/functions/a$b;
2019-02-04 20:08:30 +00:00
move-result-object v0
iput-object v0, p0, Lrx/subjects/b;->onTerminated:Lrx/functions/Action1;
return-void
.end method
# virtual methods
.method final a(Lrx/subjects/b$b;)V
.locals 10
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lrx/subjects/b$b<",
"TT;>;)V"
}
.end annotation
:cond_0
invoke-virtual {p0}, Lrx/subjects/b;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lrx/subjects/b$a;
iget-boolean v1, v0, Lrx/subjects/b$a;->terminated:Z
if-eqz v1, :cond_1
return-void
:cond_1
2019-06-01 02:00:00 +00:00
iget-object v1, v0, Lrx/subjects/b$a;->bMC:[Lrx/subjects/b$b;
2019-02-04 20:08:30 +00:00
array-length v2, v1
const/4 v3, 0x1
const/4 v4, 0x0
if-ne v2, v3, :cond_2
aget-object v3, v1, v4
if-ne v3, p1, :cond_2
2019-06-01 02:00:00 +00:00
sget-object v1, Lrx/subjects/b$a;->bMF:Lrx/subjects/b$a;
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
goto :goto_3
2019-02-04 20:08:30 +00:00
:cond_2
if-nez v2, :cond_3
2019-02-04 20:29:01 +00:00
goto :goto_1
2019-02-04 20:08:30 +00:00
:cond_3
add-int/lit8 v3, v2, -0x1
new-array v5, v3, [Lrx/subjects/b$b;
const/4 v6, 0x0
const/4 v7, 0x0
2019-02-04 20:29:01 +00:00
:goto_0
2019-02-04 20:08:30 +00:00
if-ge v6, v2, :cond_6
aget-object v8, v1, v6
if-eq v8, p1, :cond_5
if-ne v7, v3, :cond_4
2019-02-04 20:29:01 +00:00
:goto_1
2019-02-04 20:08:30 +00:00
move-object v1, v0
2019-02-04 20:29:01 +00:00
goto :goto_3
2019-02-04 20:08:30 +00:00
:cond_4
add-int/lit8 v9, v7, 0x1
aput-object v8, v5, v7
move v7, v9
:cond_5
add-int/lit8 v6, v6, 0x1
2019-02-04 20:29:01 +00:00
goto :goto_0
2019-02-04 20:08:30 +00:00
:cond_6
if-nez v7, :cond_7
2019-06-01 02:00:00 +00:00
sget-object v1, Lrx/subjects/b$a;->bMF:Lrx/subjects/b$a;
2019-02-04 20:29:01 +00:00
goto :goto_3
2019-02-04 20:08:30 +00:00
:cond_7
if-ge v7, v3, :cond_8
new-array v1, v7, [Lrx/subjects/b$b;
invoke-static {v5, v4, v1, v4, v7}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
2019-02-04 20:29:01 +00:00
goto :goto_2
2019-02-04 20:08:30 +00:00
:cond_8
move-object v1, v5
2019-02-04 20:29:01 +00:00
:goto_2
2019-02-04 20:08:30 +00:00
new-instance v2, Lrx/subjects/b$a;
iget-boolean v3, v0, Lrx/subjects/b$a;->terminated:Z
invoke-direct {v2, v3, v1}, Lrx/subjects/b$a;-><init>(Z[Lrx/subjects/b$b;)V
move-object v1, v2
2019-02-04 20:29:01 +00:00
:goto_3
2019-02-04 20:08:30 +00:00
if-eq v1, v0, :cond_9
invoke-virtual {p0, v0, v1}, Lrx/subjects/b;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
:cond_9
return-void
.end method
2019-05-04 02:59:52 +00:00
.method final bM(Ljava/lang/Object;)[Lrx/subjects/b$b;
2019-02-04 20:32:01 +00:00
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Object;",
")[",
"Lrx/subjects/b$b<",
"TT;>;"
}
.end annotation
iput-object p1, p0, Lrx/subjects/b;->latest:Ljava/lang/Object;
const/4 p1, 0x0
iput-boolean p1, p0, Lrx/subjects/b;->active:Z
invoke-virtual {p0}, Lrx/subjects/b;->get()Ljava/lang/Object;
move-result-object p1
check-cast p1, Lrx/subjects/b$a;
iget-boolean p1, p1, Lrx/subjects/b$a;->terminated:Z
if-eqz p1, :cond_0
2019-06-01 02:00:00 +00:00
sget-object p1, Lrx/subjects/b$a;->bMD:[Lrx/subjects/b$b;
2019-02-04 20:32:01 +00:00
return-object p1
:cond_0
2019-06-01 02:00:00 +00:00
sget-object p1, Lrx/subjects/b$a;->bME:Lrx/subjects/b$a;
2019-02-04 20:32:01 +00:00
invoke-virtual {p0, p1}, Lrx/subjects/b;->getAndSet(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Lrx/subjects/b$a;
2019-06-01 02:00:00 +00:00
iget-object p1, p1, Lrx/subjects/b$a;->bMC:[Lrx/subjects/b$b;
2019-02-04 20:32:01 +00:00
return-object p1
.end method
2019-02-04 20:08:30 +00:00
.method public final synthetic call(Ljava/lang/Object;)V
.locals 6
check-cast p1, Lrx/Subscriber;
new-instance v0, Lrx/subjects/b$b;
invoke-direct {v0, p1}, Lrx/subjects/b$b;-><init>(Lrx/Subscriber;)V
new-instance v1, Lrx/subjects/b$1;
invoke-direct {v1, p0, v0}, Lrx/subjects/b$1;-><init>(Lrx/subjects/b;Lrx/subjects/b$b;)V
invoke-static {v1}, Lrx/subscriptions/c;->g(Lrx/functions/Action0;)Lrx/Subscription;
move-result-object v1
invoke-virtual {p1, v1}, Lrx/Subscriber;->add(Lrx/Subscription;)V
iget-object v1, p0, Lrx/subjects/b;->onStart:Lrx/functions/Action1;
invoke-interface {v1, v0}, Lrx/functions/Action1;->call(Ljava/lang/Object;)V
invoke-virtual {p1}, Lrx/Subscriber;->isUnsubscribed()Z
move-result v1
if-nez v1, :cond_2
:cond_0
invoke-virtual {p0}, Lrx/subjects/b;->get()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lrx/subjects/b$a;
iget-boolean v2, v1, Lrx/subjects/b$a;->terminated:Z
const/4 v3, 0x0
if-eqz v2, :cond_1
iget-object v1, p0, Lrx/subjects/b;->onTerminated:Lrx/functions/Action1;
invoke-interface {v1, v0}, Lrx/functions/Action1;->call(Ljava/lang/Object;)V
goto :goto_0
:cond_1
2019-06-01 02:00:00 +00:00
iget-object v2, v1, Lrx/subjects/b$a;->bMC:[Lrx/subjects/b$b;
2019-02-04 20:08:30 +00:00
array-length v2, v2
add-int/lit8 v4, v2, 0x1
new-array v4, v4, [Lrx/subjects/b$b;
2019-06-01 02:00:00 +00:00
iget-object v5, v1, Lrx/subjects/b$a;->bMC:[Lrx/subjects/b$b;
2019-02-04 20:08:30 +00:00
invoke-static {v5, v3, v4, v3, v2}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
aput-object v0, v4, v2
new-instance v2, Lrx/subjects/b$a;
iget-boolean v3, v1, Lrx/subjects/b$a;->terminated:Z
invoke-direct {v2, v3, v4}, Lrx/subjects/b$a;-><init>(Z[Lrx/subjects/b$b;)V
invoke-virtual {p0, v1, v2}, Lrx/subjects/b;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_0
iget-object v1, p0, Lrx/subjects/b;->onAdded:Lrx/functions/Action1;
invoke-interface {v1, v0}, Lrx/functions/Action1;->call(Ljava/lang/Object;)V
const/4 v3, 0x1
:goto_0
if-eqz v3, :cond_2
invoke-virtual {p1}, Lrx/Subscriber;->isUnsubscribed()Z
move-result p1
if-eqz p1, :cond_2
invoke-virtual {p0, v0}, Lrx/subjects/b;->a(Lrx/subjects/b$b;)V
:cond_2
return-void
.end method