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

402 lines
8.5 KiB
Smali
Raw Normal View History

2019-12-06 03:29:40 +00:00
.class public final Lrx/subjects/PublishSubject$b;
2019-07-24 11:27:29 +00:00
.super Ljava/util/concurrent/atomic/AtomicReference;
.source "PublishSubject.java"
# interfaces
.implements Lrx/Observable$a;
2020-05-11 18:18:42 +00:00
.implements Lf0/g;
2019-07-24 11:27:29 +00:00
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lrx/subjects/PublishSubject;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
2019-12-06 03:29:40 +00:00
accessFlags = 0x19
2019-07-24 11:27:29 +00:00
name = "b"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/util/concurrent/atomic/AtomicReference<",
"[",
"Lrx/subjects/PublishSubject$a<",
"TT;>;>;",
"Lrx/Observable$a<",
"TT;>;",
2020-05-11 18:18:42 +00:00
"Lf0/g<",
2019-07-24 11:27:29 +00:00
"TT;>;"
}
.end annotation
# static fields
2019-12-06 03:29:40 +00:00
.field public static final d:[Lrx/subjects/PublishSubject$a;
2019-10-25 01:57:51 +00:00
2019-12-06 03:29:40 +00:00
.field public static final e:[Lrx/subjects/PublishSubject$a;
2019-10-31 00:47:18 +00:00
2019-12-06 03:29:40 +00:00
.field public static final serialVersionUID:J = -0x690a478d773d9c84L
2019-07-24 11:27:29 +00:00
# instance fields
2019-12-06 03:29:40 +00:00
.field public error:Ljava/lang/Throwable;
2019-07-24 11:27:29 +00:00
# direct methods
2019-12-06 03:29:40 +00:00
.method public static constructor <clinit>()V
2019-07-24 11:27:29 +00:00
.locals 2
const/4 v0, 0x0
new-array v1, v0, [Lrx/subjects/PublishSubject$a;
2019-12-06 03:29:40 +00:00
sput-object v1, Lrx/subjects/PublishSubject$b;->d:[Lrx/subjects/PublishSubject$a;
2019-07-24 11:27:29 +00:00
new-array v0, v0, [Lrx/subjects/PublishSubject$a;
2019-12-06 03:29:40 +00:00
sput-object v0, Lrx/subjects/PublishSubject$b;->e:[Lrx/subjects/PublishSubject$a;
2019-07-24 11:27:29 +00:00
return-void
.end method
.method public constructor <init>()V
.locals 1
invoke-direct {p0}, Ljava/util/concurrent/atomic/AtomicReference;-><init>()V
2019-12-06 03:29:40 +00:00
sget-object v0, Lrx/subjects/PublishSubject$b;->d:[Lrx/subjects/PublishSubject$a;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {p0, v0}, Ljava/util/concurrent/atomic/AtomicReference;->lazySet(Ljava/lang/Object;)V
2019-07-24 11:27:29 +00:00
return-void
.end method
# virtual methods
2019-12-06 03:29:40 +00:00
.method public a(Lrx/Subscriber;)V
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lrx/Subscriber<",
"-TT;>;)V"
}
.end annotation
new-instance v0, Lrx/subjects/PublishSubject$a;
invoke-direct {v0, p0, p1}, Lrx/subjects/PublishSubject$a;-><init>(Lrx/subjects/PublishSubject$b;Lrx/Subscriber;)V
invoke-virtual {p1, v0}, Lrx/Subscriber;->add(Lrx/Subscription;)V
invoke-virtual {p1, v0}, Lrx/Subscriber;->setProducer(Lrx/Producer;)V
invoke-virtual {p0, v0}, Lrx/subjects/PublishSubject$b;->a(Lrx/subjects/PublishSubject$a;)Z
move-result v1
if-eqz v1, :cond_0
invoke-virtual {v0}, Lrx/subjects/PublishSubject$a;->isUnsubscribed()Z
move-result p1
if-eqz p1, :cond_2
invoke-virtual {p0, v0}, Lrx/subjects/PublishSubject$b;->b(Lrx/subjects/PublishSubject$a;)V
goto :goto_0
:cond_0
iget-object v0, p0, Lrx/subjects/PublishSubject$b;->error:Ljava/lang/Throwable;
if-eqz v0, :cond_1
2020-05-11 18:18:42 +00:00
invoke-interface {p1, v0}, Lf0/g;->onError(Ljava/lang/Throwable;)V
2019-12-06 03:29:40 +00:00
goto :goto_0
:cond_1
2020-05-11 18:18:42 +00:00
invoke-interface {p1}, Lf0/g;->onCompleted()V
2019-12-06 03:29:40 +00:00
:cond_2
:goto_0
return-void
.end method
.method public a(Lrx/subjects/PublishSubject$a;)Z
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lrx/subjects/PublishSubject$a<",
"TT;>;)Z"
}
.end annotation
:cond_0
invoke-virtual {p0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lrx/subjects/PublishSubject$a;
sget-object v1, Lrx/subjects/PublishSubject$b;->e:[Lrx/subjects/PublishSubject$a;
const/4 v2, 0x0
if-ne v0, v1, :cond_1
return v2
:cond_1
array-length v1, v0
add-int/lit8 v3, v1, 0x1
new-array v3, v3, [Lrx/subjects/PublishSubject$a;
invoke-static {v0, v2, v3, v2, v1}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
aput-object p1, v3, v1
invoke-virtual {p0, v0, v3}, Ljava/util/concurrent/atomic/AtomicReference;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
const/4 p1, 0x1
return p1
.end method
.method public b(Lrx/subjects/PublishSubject$a;)V
2019-07-24 11:27:29 +00:00
.locals 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lrx/subjects/PublishSubject$a<",
"TT;>;)V"
}
.end annotation
:cond_0
2019-12-06 03:29:40 +00:00
invoke-virtual {p0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
2019-07-24 11:27:29 +00:00
move-result-object v0
check-cast v0, [Lrx/subjects/PublishSubject$a;
2019-12-06 03:29:40 +00:00
sget-object v1, Lrx/subjects/PublishSubject$b;->e:[Lrx/subjects/PublishSubject$a;
2019-07-24 11:27:29 +00:00
if-eq v0, v1, :cond_6
2019-12-06 03:29:40 +00:00
sget-object v1, Lrx/subjects/PublishSubject$b;->d:[Lrx/subjects/PublishSubject$a;
2019-07-24 11:27:29 +00:00
if-ne v0, v1, :cond_1
goto :goto_3
:cond_1
array-length v1, v0
const/4 v2, -0x1
const/4 v3, 0x0
const/4 v4, 0x0
:goto_0
if-ge v4, v1, :cond_3
aget-object v5, v0, v4
if-ne v5, p1, :cond_2
move v2, v4
goto :goto_1
:cond_2
add-int/lit8 v4, v4, 0x1
goto :goto_0
:cond_3
:goto_1
if-gez v2, :cond_4
return-void
:cond_4
const/4 v4, 0x1
if-ne v1, v4, :cond_5
2019-12-06 03:29:40 +00:00
sget-object v1, Lrx/subjects/PublishSubject$b;->d:[Lrx/subjects/PublishSubject$a;
2019-07-24 11:27:29 +00:00
goto :goto_2
:cond_5
add-int/lit8 v5, v1, -0x1
new-array v5, v5, [Lrx/subjects/PublishSubject$a;
invoke-static {v0, v3, v5, v3, v2}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
add-int/lit8 v3, v2, 0x1
sub-int/2addr v1, v2
sub-int/2addr v1, v4
invoke-static {v0, v3, v5, v2, v1}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
move-object v1, v5
:goto_2
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
2019-07-24 11:27:29 +00:00
move-result v0
if-eqz v0, :cond_0
:cond_6
:goto_3
return-void
.end method
2019-12-06 03:29:40 +00:00
.method public bridge synthetic call(Ljava/lang/Object;)V
.locals 0
2019-07-24 11:27:29 +00:00
check-cast p1, Lrx/Subscriber;
2019-12-06 03:29:40 +00:00
invoke-virtual {p0, p1}, Lrx/subjects/PublishSubject$b;->a(Lrx/Subscriber;)V
2019-07-24 11:27:29 +00:00
return-void
.end method
2019-12-06 03:29:40 +00:00
.method public onCompleted()V
2019-07-24 11:27:29 +00:00
.locals 4
2019-12-06 03:29:40 +00:00
sget-object v0, Lrx/subjects/PublishSubject$b;->e:[Lrx/subjects/PublishSubject$a;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {p0, v0}, Ljava/util/concurrent/atomic/AtomicReference;->getAndSet(Ljava/lang/Object;)Ljava/lang/Object;
2019-07-24 11:27:29 +00:00
move-result-object v0
check-cast v0, [Lrx/subjects/PublishSubject$a;
array-length v1, v0
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_0
aget-object v3, v0, v2
invoke-virtual {v3}, Lrx/subjects/PublishSubject$a;->onCompleted()V
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_0
return-void
.end method
2019-12-06 03:29:40 +00:00
.method public onError(Ljava/lang/Throwable;)V
2019-07-24 11:27:29 +00:00
.locals 6
iput-object p1, p0, Lrx/subjects/PublishSubject$b;->error:Ljava/lang/Throwable;
2019-12-06 03:29:40 +00:00
sget-object v0, Lrx/subjects/PublishSubject$b;->e:[Lrx/subjects/PublishSubject$a;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {p0, v0}, Ljava/util/concurrent/atomic/AtomicReference;->getAndSet(Ljava/lang/Object;)Ljava/lang/Object;
2019-07-24 11:27:29 +00:00
move-result-object v0
check-cast v0, [Lrx/subjects/PublishSubject$a;
array-length v1, v0
const/4 v2, 0x0
const/4 v3, 0x0
:goto_0
if-ge v3, v1, :cond_1
aget-object v4, v0, v3
:try_start_0
invoke-virtual {v4, p1}, Lrx/subjects/PublishSubject$a;->onError(Ljava/lang/Throwable;)V
:try_end_0
2019-08-30 20:04:20 +00:00
.catchall {:try_start_0 .. :try_end_0} :catchall_0
2019-07-24 11:27:29 +00:00
goto :goto_1
2019-08-30 20:04:20 +00:00
:catchall_0
2019-07-24 11:27:29 +00:00
move-exception v4
if-nez v2, :cond_0
new-instance v2, Ljava/util/ArrayList;
const/4 v5, 0x1
invoke-direct {v2, v5}, Ljava/util/ArrayList;-><init>(I)V
:cond_0
invoke-interface {v2, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z
:goto_1
add-int/lit8 v3, v3, 0x1
goto :goto_0
:cond_1
2020-05-11 18:18:42 +00:00
invoke-static {v2}, Le/o/a/j/a;->a(Ljava/util/List;)V
2019-07-24 11:27:29 +00:00
return-void
.end method
2019-12-06 03:29:40 +00:00
.method public onNext(Ljava/lang/Object;)V
2019-07-24 11:27:29 +00:00
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
2019-12-06 03:29:40 +00:00
invoke-virtual {p0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
2019-07-24 11:27:29 +00:00
move-result-object v0
check-cast v0, [Lrx/subjects/PublishSubject$a;
array-length v1, v0
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_0
aget-object v3, v0, v2
invoke-virtual {v3, p1}, Lrx/subjects/PublishSubject$a;->onNext(Ljava/lang/Object;)V
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_0
return-void
.end method