apkfuckery/com.discord/smali_classes2/u/r/b.smali

447 lines
8.9 KiB
Smali
Raw Normal View History

2019-12-12 08:58:10 +00:00
.class public final Lu/r/b;
2019-12-06 03:29:40 +00:00
.super Ljava/util/concurrent/atomic/AtomicReference;
.source "SubjectSubscriptionManager.java"
# interfaces
.implements Lrx/Observable$a;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
2019-12-12 08:58:10 +00:00
Lu/r/b$c;,
Lu/r/b$b;
2019-12-06 03:29:40 +00:00
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/util/concurrent/atomic/AtomicReference<",
2019-12-12 08:58:10 +00:00
"Lu/r/b$b<",
2019-12-06 03:29:40 +00:00
"TT;>;>;",
"Lrx/Observable$a<",
"TT;>;"
}
.end annotation
# static fields
.field public static final serialVersionUID:J = 0x53c184d753c8b010L
# 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<",
2019-12-12 08:58:10 +00:00
"Lu/r/b$c<",
2019-12-06 03:29:40 +00:00
"TT;>;>;"
}
.end annotation
.end field
.field public onStart:Lrx/functions/Action1;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lrx/functions/Action1<",
2019-12-12 08:58:10 +00:00
"Lu/r/b$c<",
2019-12-06 03:29:40 +00:00
"TT;>;>;"
}
.end annotation
.end field
.field public onTerminated:Lrx/functions/Action1;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lrx/functions/Action1<",
2019-12-12 08:58:10 +00:00
"Lu/r/b$c<",
2019-12-06 03:29:40 +00:00
"TT;>;>;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>()V
.locals 1
2019-12-12 08:58:10 +00:00
sget-object v0, Lu/r/b$b;->e:Lu/r/b$b;
2019-12-06 03:29:40 +00:00
invoke-direct {p0, v0}, Ljava/util/concurrent/atomic/AtomicReference;-><init>(Ljava/lang/Object;)V
const/4 v0, 0x1
2019-12-12 08:58:10 +00:00
iput-boolean v0, p0, Lu/r/b;->active:Z
2019-12-06 03:29:40 +00:00
2019-12-12 08:58:10 +00:00
sget-object v0, Lu/l/h;->a:Lu/l/h$b;
2019-12-06 03:29:40 +00:00
2019-12-12 08:58:10 +00:00
iput-object v0, p0, Lu/r/b;->onStart:Lrx/functions/Action1;
2019-12-06 03:29:40 +00:00
2019-12-12 08:58:10 +00:00
iput-object v0, p0, Lu/r/b;->onAdded:Lrx/functions/Action1;
2019-12-06 03:29:40 +00:00
2019-12-12 08:58:10 +00:00
iput-object v0, p0, Lu/r/b;->onTerminated:Lrx/functions/Action1;
2019-12-06 03:29:40 +00:00
return-void
.end method
# virtual methods
.method public a()Ljava/lang/Object;
.locals 1
2019-12-12 08:58:10 +00:00
iget-object v0, p0, Lu/r/b;->latest:Ljava/lang/Object;
2019-12-06 03:29:40 +00:00
return-object v0
.end method
.method public a(Lrx/Subscriber;)V
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lrx/Subscriber<",
"-TT;>;)V"
}
.end annotation
2019-12-12 08:58:10 +00:00
new-instance v0, Lu/r/b$c;
2019-12-06 03:29:40 +00:00
2019-12-12 08:58:10 +00:00
invoke-direct {v0, p1}, Lu/r/b$c;-><init>(Lrx/Subscriber;)V
2019-12-06 03:29:40 +00:00
2019-12-12 08:58:10 +00:00
invoke-virtual {p0, p1, v0}, Lu/r/b;->a(Lrx/Subscriber;Lu/r/b$c;)V
2019-12-06 03:29:40 +00:00
2019-12-12 08:58:10 +00:00
iget-object v1, p0, Lu/r/b;->onStart:Lrx/functions/Action1;
2019-12-06 03:29:40 +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_0
2019-12-12 08:58:10 +00:00
invoke-virtual {p0, v0}, Lu/r/b;->a(Lu/r/b$c;)Z
2019-12-06 03:29:40 +00:00
move-result v1
if-eqz v1, :cond_0
invoke-virtual {p1}, Lrx/Subscriber;->isUnsubscribed()Z
move-result p1
if-eqz p1, :cond_0
2019-12-12 08:58:10 +00:00
invoke-virtual {p0, v0}, Lu/r/b;->b(Lu/r/b$c;)V
2019-12-06 03:29:40 +00:00
:cond_0
return-void
.end method
2019-12-12 08:58:10 +00:00
.method public a(Lrx/Subscriber;Lu/r/b$c;)V
2019-12-06 03:29:40 +00:00
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lrx/Subscriber<",
"-TT;>;",
2019-12-12 08:58:10 +00:00
"Lu/r/b$c<",
2019-12-06 03:29:40 +00:00
"TT;>;)V"
}
.end annotation
2019-12-12 08:58:10 +00:00
new-instance v0, Lu/r/b$a;
2019-12-06 03:29:40 +00:00
2019-12-12 08:58:10 +00:00
invoke-direct {v0, p0, p2}, Lu/r/b$a;-><init>(Lu/r/b;Lu/r/b$c;)V
2019-12-06 03:29:40 +00:00
2019-12-12 08:58:10 +00:00
invoke-static {v0}, Lu/s/c;->a(Lrx/functions/Action0;)Lrx/Subscription;
2019-12-06 03:29:40 +00:00
move-result-object p2
invoke-virtual {p1, p2}, Lrx/Subscriber;->add(Lrx/Subscription;)V
return-void
.end method
2019-12-12 08:58:10 +00:00
.method public a(Lu/r/b$c;)Z
2019-12-06 03:29:40 +00:00
.locals 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
2019-12-12 08:58:10 +00:00
"Lu/r/b$c<",
2019-12-06 03:29:40 +00:00
"TT;>;)Z"
}
.end annotation
:cond_0
invoke-virtual {p0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
2019-12-12 08:58:10 +00:00
check-cast v0, Lu/r/b$b;
2019-12-06 03:29:40 +00:00
2019-12-12 08:58:10 +00:00
iget-boolean v1, v0, Lu/r/b$b;->a:Z
2019-12-06 03:29:40 +00:00
const/4 v2, 0x0
if-eqz v1, :cond_1
2019-12-12 08:58:10 +00:00
iget-object v0, p0, Lu/r/b;->onTerminated:Lrx/functions/Action1;
2019-12-06 03:29:40 +00:00
invoke-interface {v0, p1}, Lrx/functions/Action1;->call(Ljava/lang/Object;)V
return v2
:cond_1
2019-12-12 08:58:10 +00:00
iget-object v1, v0, Lu/r/b$b;->b:[Lu/r/b$c;
2019-12-06 03:29:40 +00:00
array-length v3, v1
add-int/lit8 v4, v3, 0x1
2019-12-12 08:58:10 +00:00
new-array v4, v4, [Lu/r/b$c;
2019-12-06 03:29:40 +00:00
invoke-static {v1, v2, v4, v2, v3}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
aput-object p1, v4, v3
2019-12-12 08:58:10 +00:00
new-instance v1, Lu/r/b$b;
2019-12-06 03:29:40 +00:00
2019-12-12 08:58:10 +00:00
iget-boolean v2, v0, Lu/r/b$b;->a:Z
2019-12-06 03:29:40 +00:00
2019-12-12 08:58:10 +00:00
invoke-direct {v1, v2, v4}, Lu/r/b$b;-><init>(Z[Lu/r/b$c;)V
2019-12-06 03:29:40 +00:00
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
2019-12-12 08:58:10 +00:00
iget-object v0, p0, Lu/r/b;->onAdded:Lrx/functions/Action1;
2019-12-06 03:29:40 +00:00
invoke-interface {v0, p1}, Lrx/functions/Action1;->call(Ljava/lang/Object;)V
const/4 p1, 0x1
return p1
.end method
2019-12-12 08:58:10 +00:00
.method public a(Ljava/lang/Object;)[Lu/r/b$c;
2019-12-06 03:29:40 +00:00
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Object;",
")[",
2019-12-12 08:58:10 +00:00
"Lu/r/b$c<",
2019-12-06 03:29:40 +00:00
"TT;>;"
}
.end annotation
2019-12-12 08:58:10 +00:00
invoke-virtual {p0, p1}, Lu/r/b;->b(Ljava/lang/Object;)V
2019-12-06 03:29:40 +00:00
invoke-virtual {p0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object p1
2019-12-12 08:58:10 +00:00
check-cast p1, Lu/r/b$b;
2019-12-06 03:29:40 +00:00
2019-12-12 08:58:10 +00:00
iget-object p1, p1, Lu/r/b$b;->b:[Lu/r/b$c;
2019-12-06 03:29:40 +00:00
return-object p1
.end method
.method public b(Ljava/lang/Object;)V
.locals 0
2019-12-12 08:58:10 +00:00
iput-object p1, p0, Lu/r/b;->latest:Ljava/lang/Object;
2019-12-06 03:29:40 +00:00
return-void
.end method
2019-12-12 08:58:10 +00:00
.method public b(Lu/r/b$c;)V
2019-12-06 03:29:40 +00:00
.locals 10
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
2019-12-12 08:58:10 +00:00
"Lu/r/b$c<",
2019-12-06 03:29:40 +00:00
"TT;>;)V"
}
.end annotation
:cond_0
invoke-virtual {p0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
2019-12-12 08:58:10 +00:00
check-cast v0, Lu/r/b$b;
2019-12-06 03:29:40 +00:00
2019-12-12 08:58:10 +00:00
iget-boolean v1, v0, Lu/r/b$b;->a:Z
2019-12-06 03:29:40 +00:00
if-eqz v1, :cond_1
return-void
:cond_1
2019-12-12 08:58:10 +00:00
iget-object v1, v0, Lu/r/b$b;->b:[Lu/r/b$c;
2019-12-06 03:29:40 +00:00
array-length v2, v1
const/4 v3, 0x0
const/4 v4, 0x1
if-ne v2, v4, :cond_2
aget-object v4, v1, v3
if-ne v4, p1, :cond_2
2019-12-12 08:58:10 +00:00
sget-object v1, Lu/r/b$b;->e:Lu/r/b$b;
2019-12-06 03:29:40 +00:00
goto :goto_3
:cond_2
if-nez v2, :cond_3
:goto_0
move-object v1, v0
goto :goto_3
:cond_3
add-int/lit8 v4, v2, -0x1
2019-12-12 08:58:10 +00:00
new-array v5, v4, [Lu/r/b$c;
2019-12-06 03:29:40 +00:00
const/4 v6, 0x0
const/4 v7, 0x0
:goto_1
if-ge v6, v2, :cond_6
aget-object v8, v1, v6
if-eq v8, p1, :cond_5
if-ne v7, v4, :cond_4
goto :goto_0
:cond_4
add-int/lit8 v9, v7, 0x1
aput-object v8, v5, v7
move v7, v9
:cond_5
add-int/lit8 v6, v6, 0x1
goto :goto_1
:cond_6
if-nez v7, :cond_7
2019-12-12 08:58:10 +00:00
sget-object v1, Lu/r/b$b;->e:Lu/r/b$b;
2019-12-06 03:29:40 +00:00
goto :goto_3
:cond_7
if-ge v7, v4, :cond_8
2019-12-12 08:58:10 +00:00
new-array v1, v7, [Lu/r/b$c;
2019-12-06 03:29:40 +00:00
invoke-static {v5, v3, v1, v3, v7}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
goto :goto_2
:cond_8
move-object v1, v5
:goto_2
2019-12-12 08:58:10 +00:00
new-instance v2, Lu/r/b$b;
2019-12-06 03:29:40 +00:00
2019-12-12 08:58:10 +00:00
iget-boolean v3, v0, Lu/r/b$b;->a:Z
2019-12-06 03:29:40 +00:00
2019-12-12 08:58:10 +00:00
invoke-direct {v2, v3, v1}, Lu/r/b$b;-><init>(Z[Lu/r/b$c;)V
2019-12-06 03:29:40 +00:00
move-object v1, v2
:goto_3
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
2019-12-12 08:58:10 +00:00
.method public c(Ljava/lang/Object;)[Lu/r/b$c;
2019-12-06 03:29:40 +00:00
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Object;",
")[",
2019-12-12 08:58:10 +00:00
"Lu/r/b$c<",
2019-12-06 03:29:40 +00:00
"TT;>;"
}
.end annotation
2019-12-12 08:58:10 +00:00
invoke-virtual {p0, p1}, Lu/r/b;->b(Ljava/lang/Object;)V
2019-12-06 03:29:40 +00:00
const/4 p1, 0x0
2019-12-12 08:58:10 +00:00
iput-boolean p1, p0, Lu/r/b;->active:Z
2019-12-06 03:29:40 +00:00
invoke-virtual {p0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object p1
2019-12-12 08:58:10 +00:00
check-cast p1, Lu/r/b$b;
2019-12-06 03:29:40 +00:00
2019-12-12 08:58:10 +00:00
iget-boolean p1, p1, Lu/r/b$b;->a:Z
2019-12-06 03:29:40 +00:00
if-eqz p1, :cond_0
2019-12-12 08:58:10 +00:00
sget-object p1, Lu/r/b$b;->c:[Lu/r/b$c;
2019-12-06 03:29:40 +00:00
return-object p1
:cond_0
2019-12-12 08:58:10 +00:00
sget-object p1, Lu/r/b$b;->d:Lu/r/b$b;
2019-12-06 03:29:40 +00:00
invoke-virtual {p0, p1}, Ljava/util/concurrent/atomic/AtomicReference;->getAndSet(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
2019-12-12 08:58:10 +00:00
check-cast p1, Lu/r/b$b;
2019-12-06 03:29:40 +00:00
2019-12-12 08:58:10 +00:00
iget-object p1, p1, Lu/r/b$b;->b:[Lu/r/b$c;
2019-12-06 03:29:40 +00:00
return-object p1
.end method
.method public bridge synthetic call(Ljava/lang/Object;)V
.locals 0
check-cast p1, Lrx/Subscriber;
2019-12-12 08:58:10 +00:00
invoke-virtual {p0, p1}, Lu/r/b;->a(Lrx/Subscriber;)V
2019-12-06 03:29:40 +00:00
return-void
.end method