apkfuckery/com.discord/smali_classes2/h0/q/c.smali

351 lines
7 KiB
Smali
Raw Normal View History

2020-11-13 01:15:36 +00:00
.class public final Lh0/q/c;
2020-11-12 02:11:44 +00:00
.super Ljava/util/concurrent/atomic/AtomicReference;
.source "SubjectSubscriptionManager.java"
# interfaces
.implements Lrx/Observable$a;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
2020-11-13 01:15:36 +00:00
Lh0/q/c$b;,
Lh0/q/c$a;
2020-11-12 02:11:44 +00:00
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/util/concurrent/atomic/AtomicReference<",
2020-11-13 01:15:36 +00:00
"Lh0/q/c$a<",
2020-11-12 02:11:44 +00:00
"TT;>;>;",
"Lrx/Observable$a<",
"TT;>;"
}
.end annotation
# static fields
2020-11-13 19:18:44 +00:00
.field private static final serialVersionUID:J = 0x53c184d753c8b010L
2020-11-12 02:11:44 +00:00
# instance fields
.field public active:Z
.field public volatile latest:Ljava/lang/Object;
.field public onAdded:Lrx/functions/Action1;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lrx/functions/Action1<",
2020-11-13 01:15:36 +00:00
"Lh0/q/c$b<",
2020-11-12 02:11:44 +00:00
"TT;>;>;"
}
.end annotation
.end field
.field public onStart:Lrx/functions/Action1;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lrx/functions/Action1<",
2020-11-13 01:15:36 +00:00
"Lh0/q/c$b<",
2020-11-12 02:11:44 +00:00
"TT;>;>;"
}
.end annotation
.end field
.field public onTerminated:Lrx/functions/Action1;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lrx/functions/Action1<",
2020-11-13 01:15:36 +00:00
"Lh0/q/c$b<",
2020-11-12 02:11:44 +00:00
"TT;>;>;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>()V
.locals 1
2020-11-13 01:15:36 +00:00
sget-object v0, Lh0/q/c$a;->e:Lh0/q/c$a;
2020-11-12 02:11:44 +00:00
invoke-direct {p0, v0}, Ljava/util/concurrent/atomic/AtomicReference;-><init>(Ljava/lang/Object;)V
const/4 v0, 0x1
2020-11-13 01:15:36 +00:00
iput-boolean v0, p0, Lh0/q/c;->active:Z
2020-11-12 02:11:44 +00:00
2020-11-13 01:15:36 +00:00
sget-object v0, Lh0/k/a;->a:Lh0/k/a$b;
2020-11-12 02:11:44 +00:00
2020-11-13 01:15:36 +00:00
iput-object v0, p0, Lh0/q/c;->onStart:Lrx/functions/Action1;
2020-11-12 02:11:44 +00:00
2020-11-13 01:15:36 +00:00
iput-object v0, p0, Lh0/q/c;->onAdded:Lrx/functions/Action1;
2020-11-12 02:11:44 +00:00
2020-11-13 01:15:36 +00:00
iput-object v0, p0, Lh0/q/c;->onTerminated:Lrx/functions/Action1;
2020-11-12 02:11:44 +00:00
return-void
.end method
# virtual methods
2020-11-13 01:15:36 +00:00
.method public a(Lh0/q/c$b;)V
2020-11-13 19:18:44 +00:00
.locals 11
2020-11-12 02:11:44 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
2020-11-13 01:15:36 +00:00
"Lh0/q/c$b<",
2020-11-12 02:11:44 +00:00
"TT;>;)V"
}
.end annotation
:cond_0
invoke-virtual {p0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
2020-11-13 01:15:36 +00:00
check-cast v0, Lh0/q/c$a;
2020-11-12 02:11:44 +00:00
2020-11-13 01:15:36 +00:00
iget-boolean v1, v0, Lh0/q/c$a;->a:Z
2020-11-12 02:11:44 +00:00
if-eqz v1, :cond_1
return-void
:cond_1
2020-11-13 19:18:44 +00:00
sget-object v1, Lh0/q/c$a;->e:Lh0/q/c$a;
2020-11-12 02:11:44 +00:00
2020-11-13 19:18:44 +00:00
iget-object v2, v0, Lh0/q/c$a;->b:[Lh0/q/c$b;
2020-11-12 02:11:44 +00:00
2020-11-13 19:18:44 +00:00
array-length v3, v2
2020-11-12 02:11:44 +00:00
2020-11-13 19:18:44 +00:00
const/4 v4, 0x0
2020-11-12 02:11:44 +00:00
2020-11-13 19:18:44 +00:00
const/4 v5, 0x1
2020-11-12 02:11:44 +00:00
2020-11-13 19:18:44 +00:00
if-ne v3, v5, :cond_2
2020-11-12 02:11:44 +00:00
2020-11-13 19:18:44 +00:00
aget-object v5, v2, v4
2020-11-12 02:11:44 +00:00
2020-11-13 19:18:44 +00:00
if-ne v5, p1, :cond_2
2020-11-12 02:11:44 +00:00
goto :goto_2
:cond_2
2020-11-13 19:18:44 +00:00
if-nez v3, :cond_3
2020-11-12 02:11:44 +00:00
:goto_0
move-object v1, v0
goto :goto_2
:cond_3
2020-11-13 19:18:44 +00:00
add-int/lit8 v5, v3, -0x1
2020-11-12 02:11:44 +00:00
2020-11-13 19:18:44 +00:00
new-array v6, v5, [Lh0/q/c$b;
2020-11-12 02:11:44 +00:00
const/4 v7, 0x0
2020-11-13 19:18:44 +00:00
const/4 v8, 0x0
2020-11-12 02:11:44 +00:00
:goto_1
2020-11-13 19:18:44 +00:00
if-ge v7, v3, :cond_6
2020-11-12 02:11:44 +00:00
2020-11-13 19:18:44 +00:00
aget-object v9, v2, v7
2020-11-12 02:11:44 +00:00
2020-11-13 19:18:44 +00:00
if-eq v9, p1, :cond_5
2020-11-12 02:11:44 +00:00
2020-11-13 19:18:44 +00:00
if-ne v8, v5, :cond_4
2020-11-12 02:11:44 +00:00
goto :goto_0
:cond_4
2020-11-13 19:18:44 +00:00
add-int/lit8 v10, v8, 0x1
2020-11-12 02:11:44 +00:00
2020-11-13 19:18:44 +00:00
aput-object v9, v6, v8
2020-11-12 02:11:44 +00:00
2020-11-13 19:18:44 +00:00
move v8, v10
2020-11-12 02:11:44 +00:00
:cond_5
2020-11-13 19:18:44 +00:00
add-int/lit8 v7, v7, 0x1
2020-11-12 02:11:44 +00:00
goto :goto_1
:cond_6
2020-11-13 19:18:44 +00:00
if-nez v8, :cond_7
2020-11-12 02:11:44 +00:00
goto :goto_2
:cond_7
2020-11-13 19:18:44 +00:00
if-ge v8, v5, :cond_8
2020-11-12 02:11:44 +00:00
2020-11-13 19:18:44 +00:00
new-array v1, v8, [Lh0/q/c$b;
2020-11-12 02:11:44 +00:00
2020-11-13 19:18:44 +00:00
invoke-static {v6, v4, v1, v4, v8}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
2020-11-12 02:11:44 +00:00
2020-11-13 19:18:44 +00:00
move-object v6, v1
2020-11-12 02:11:44 +00:00
:cond_8
2020-11-13 01:15:36 +00:00
new-instance v1, Lh0/q/c$a;
2020-11-12 02:11:44 +00:00
2020-11-13 01:15:36 +00:00
iget-boolean v2, v0, Lh0/q/c$a;->a:Z
2020-11-12 02:11:44 +00:00
2020-11-13 19:18:44 +00:00
invoke-direct {v1, v2, v6}, Lh0/q/c$a;-><init>(Z[Lh0/q/c$b;)V
2020-11-12 02:11:44 +00:00
:goto_2
if-eq v1, v0, :cond_9
invoke-virtual {p0, v0, v1}, Ljava/util/concurrent/atomic/AtomicReference;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
:cond_9
return-void
.end method
2020-11-13 01:15:36 +00:00
.method public b(Ljava/lang/Object;)[Lh0/q/c$b;
2020-11-12 02:11:44 +00:00
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Object;",
")[",
2020-11-13 01:15:36 +00:00
"Lh0/q/c$b<",
2020-11-12 02:11:44 +00:00
"TT;>;"
}
.end annotation
2020-11-13 01:15:36 +00:00
iput-object p1, p0, Lh0/q/c;->latest:Ljava/lang/Object;
2020-11-12 02:11:44 +00:00
const/4 p1, 0x0
2020-11-13 01:15:36 +00:00
iput-boolean p1, p0, Lh0/q/c;->active:Z
2020-11-12 02:11:44 +00:00
invoke-virtual {p0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object p1
2020-11-13 01:15:36 +00:00
check-cast p1, Lh0/q/c$a;
2020-11-12 02:11:44 +00:00
2020-11-13 01:15:36 +00:00
iget-boolean p1, p1, Lh0/q/c$a;->a:Z
2020-11-12 02:11:44 +00:00
if-eqz p1, :cond_0
2020-11-13 01:15:36 +00:00
sget-object p1, Lh0/q/c$a;->c:[Lh0/q/c$b;
2020-11-12 02:11:44 +00:00
return-object p1
:cond_0
2020-11-13 01:15:36 +00:00
sget-object p1, Lh0/q/c$a;->d:Lh0/q/c$a;
2020-11-12 02:11:44 +00:00
invoke-virtual {p0, p1}, Ljava/util/concurrent/atomic/AtomicReference;->getAndSet(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
2020-11-13 01:15:36 +00:00
check-cast p1, Lh0/q/c$a;
2020-11-12 02:11:44 +00:00
2020-11-13 01:15:36 +00:00
iget-object p1, p1, Lh0/q/c$a;->b:[Lh0/q/c$b;
2020-11-12 02:11:44 +00:00
return-object p1
.end method
.method public call(Ljava/lang/Object;)V
.locals 6
check-cast p1, Lrx/Subscriber;
2020-11-13 01:15:36 +00:00
new-instance v0, Lh0/q/c$b;
2020-11-12 02:11:44 +00:00
2020-11-13 01:15:36 +00:00
invoke-direct {v0, p1}, Lh0/q/c$b;-><init>(Lrx/Subscriber;)V
2020-11-12 02:11:44 +00:00
2020-11-13 01:15:36 +00:00
new-instance v1, Lh0/q/b;
2020-11-12 02:11:44 +00:00
2020-11-13 01:15:36 +00:00
invoke-direct {v1, p0, v0}, Lh0/q/b;-><init>(Lh0/q/c;Lh0/q/c$b;)V
2020-11-12 02:11:44 +00:00
2020-11-13 01:15:36 +00:00
new-instance v2, Lh0/r/a;
2020-11-12 02:11:44 +00:00
2020-11-13 01:15:36 +00:00
invoke-direct {v2, v1}, Lh0/r/a;-><init>(Lrx/functions/Action0;)V
2020-11-12 02:11:44 +00:00
invoke-virtual {p1, v2}, Lrx/Subscriber;->add(Lrx/Subscription;)V
2020-11-13 01:15:36 +00:00
iget-object v1, p0, Lh0/q/c;->onStart:Lrx/functions/Action1;
2020-11-12 02:11:44 +00:00
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}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v1
2020-11-13 01:15:36 +00:00
check-cast v1, Lh0/q/c$a;
2020-11-12 02:11:44 +00:00
2020-11-13 01:15:36 +00:00
iget-boolean v2, v1, Lh0/q/c$a;->a:Z
2020-11-12 02:11:44 +00:00
const/4 v3, 0x0
if-eqz v2, :cond_1
2020-11-13 01:15:36 +00:00
iget-object v1, p0, Lh0/q/c;->onTerminated:Lrx/functions/Action1;
2020-11-12 02:11:44 +00:00
invoke-interface {v1, v0}, Lrx/functions/Action1;->call(Ljava/lang/Object;)V
goto :goto_0
:cond_1
2020-11-13 01:15:36 +00:00
iget-object v2, v1, Lh0/q/c$a;->b:[Lh0/q/c$b;
2020-11-12 02:11:44 +00:00
array-length v4, v2
add-int/lit8 v5, v4, 0x1
2020-11-13 01:15:36 +00:00
new-array v5, v5, [Lh0/q/c$b;
2020-11-12 02:11:44 +00:00
invoke-static {v2, v3, v5, v3, v4}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
aput-object v0, v5, v4
2020-11-13 01:15:36 +00:00
new-instance v2, Lh0/q/c$a;
2020-11-12 02:11:44 +00:00
2020-11-13 01:15:36 +00:00
iget-boolean v3, v1, Lh0/q/c$a;->a:Z
2020-11-12 02:11:44 +00:00
2020-11-13 01:15:36 +00:00
invoke-direct {v2, v3, v5}, Lh0/q/c$a;-><init>(Z[Lh0/q/c$b;)V
2020-11-12 02:11:44 +00:00
invoke-virtual {p0, v1, v2}, Ljava/util/concurrent/atomic/AtomicReference;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_0
2020-11-13 01:15:36 +00:00
iget-object v1, p0, Lh0/q/c;->onAdded:Lrx/functions/Action1;
2020-11-12 02:11:44 +00:00
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
2020-11-13 01:15:36 +00:00
invoke-virtual {p0, v0}, Lh0/q/c;->a(Lh0/q/c$b;)V
2020-11-12 02:11:44 +00:00
:cond_2
return-void
.end method