apkfuckery/com.discord/smali_classes2/rx/observers/c.smali

391 lines
7.5 KiB
Smali
Raw Normal View History

2019-02-04 20:08:30 +00:00
.class public final Lrx/observers/c;
.super Ljava/lang/Object;
2019-02-04 20:29:01 +00:00
.source "SerializedObserver.java"
2019-02-04 20:08:30 +00:00
# interfaces
.implements Lrx/e;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lrx/observers/c$a;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Lrx/e<",
"TT;>;"
}
.end annotation
# instance fields
2019-05-08 22:54:48 +00:00
.field private final bLt:Lrx/e;
2019-02-04 20:08:30 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Lrx/e<",
"-TT;>;"
}
.end annotation
.end field
2019-05-08 22:54:48 +00:00
.field private bLu:Lrx/observers/c$a;
2019-02-04 20:08:30 +00:00
.field private emitting:Z
.field private volatile terminated:Z
# direct methods
.method public constructor <init>(Lrx/e;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lrx/e<",
"-TT;>;)V"
}
.end annotation
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2019-05-08 22:54:48 +00:00
iput-object p1, p0, Lrx/observers/c;->bLt:Lrx/e;
2019-02-04 20:08:30 +00:00
return-void
.end method
# virtual methods
.method public final onCompleted()V
.locals 2
iget-boolean v0, p0, Lrx/observers/c;->terminated:Z
if-eqz v0, :cond_0
return-void
:cond_0
monitor-enter p0
:try_start_0
iget-boolean v0, p0, Lrx/observers/c;->terminated:Z
if-eqz v0, :cond_1
monitor-exit p0
return-void
:cond_1
const/4 v0, 0x1
iput-boolean v0, p0, Lrx/observers/c;->terminated:Z
iget-boolean v1, p0, Lrx/observers/c;->emitting:Z
if-eqz v1, :cond_3
2019-05-08 22:54:48 +00:00
iget-object v0, p0, Lrx/observers/c;->bLu:Lrx/observers/c$a;
2019-02-04 20:08:30 +00:00
if-nez v0, :cond_2
new-instance v0, Lrx/observers/c$a;
invoke-direct {v0}, Lrx/observers/c$a;-><init>()V
2019-05-08 22:54:48 +00:00
iput-object v0, p0, Lrx/observers/c;->bLu:Lrx/observers/c$a;
2019-02-04 20:08:30 +00:00
:cond_2
2019-05-04 02:59:52 +00:00
invoke-static {}, Lrx/internal/a/g;->FF()Ljava/lang/Object;
2019-02-04 20:08:30 +00:00
move-result-object v1
invoke-virtual {v0, v1}, Lrx/observers/c$a;->add(Ljava/lang/Object;)V
monitor-exit p0
return-void
:cond_3
iput-boolean v0, p0, Lrx/observers/c;->emitting:Z
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
2019-05-08 22:54:48 +00:00
iget-object v0, p0, Lrx/observers/c;->bLt:Lrx/e;
2019-02-04 20:08:30 +00:00
invoke-interface {v0}, Lrx/e;->onCompleted()V
return-void
:catchall_0
move-exception v0
:try_start_1
monitor-exit p0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
throw v0
.end method
.method public final onError(Ljava/lang/Throwable;)V
.locals 2
2019-05-04 02:59:52 +00:00
invoke-static {p1}, Lrx/a/b;->H(Ljava/lang/Throwable;)V
2019-02-04 20:08:30 +00:00
iget-boolean v0, p0, Lrx/observers/c;->terminated:Z
if-eqz v0, :cond_0
return-void
:cond_0
monitor-enter p0
:try_start_0
iget-boolean v0, p0, Lrx/observers/c;->terminated:Z
if-eqz v0, :cond_1
monitor-exit p0
return-void
:cond_1
const/4 v0, 0x1
iput-boolean v0, p0, Lrx/observers/c;->terminated:Z
iget-boolean v1, p0, Lrx/observers/c;->emitting:Z
if-eqz v1, :cond_3
2019-05-08 22:54:48 +00:00
iget-object v0, p0, Lrx/observers/c;->bLu:Lrx/observers/c$a;
2019-02-04 20:08:30 +00:00
if-nez v0, :cond_2
new-instance v0, Lrx/observers/c$a;
invoke-direct {v0}, Lrx/observers/c$a;-><init>()V
2019-05-08 22:54:48 +00:00
iput-object v0, p0, Lrx/observers/c;->bLu:Lrx/observers/c$a;
2019-02-04 20:08:30 +00:00
:cond_2
2019-05-04 02:59:52 +00:00
invoke-static {p1}, Lrx/internal/a/g;->J(Ljava/lang/Throwable;)Ljava/lang/Object;
2019-02-04 20:08:30 +00:00
move-result-object p1
invoke-virtual {v0, p1}, Lrx/observers/c$a;->add(Ljava/lang/Object;)V
monitor-exit p0
return-void
:cond_3
iput-boolean v0, p0, Lrx/observers/c;->emitting:Z
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
2019-05-08 22:54:48 +00:00
iget-object v0, p0, Lrx/observers/c;->bLt:Lrx/e;
2019-02-04 20:08:30 +00:00
invoke-interface {v0, p1}, Lrx/e;->onError(Ljava/lang/Throwable;)V
return-void
:catchall_0
move-exception p1
:try_start_1
monitor-exit p0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
throw p1
.end method
.method public final onNext(Ljava/lang/Object;)V
.locals 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
iget-boolean v0, p0, Lrx/observers/c;->terminated:Z
if-eqz v0, :cond_0
return-void
:cond_0
monitor-enter p0
:try_start_0
iget-boolean v0, p0, Lrx/observers/c;->terminated:Z
if-eqz v0, :cond_1
monitor-exit p0
return-void
:cond_1
iget-boolean v0, p0, Lrx/observers/c;->emitting:Z
if-eqz v0, :cond_3
2019-05-08 22:54:48 +00:00
iget-object v0, p0, Lrx/observers/c;->bLu:Lrx/observers/c$a;
2019-02-04 20:08:30 +00:00
if-nez v0, :cond_2
new-instance v0, Lrx/observers/c$a;
invoke-direct {v0}, Lrx/observers/c$a;-><init>()V
2019-05-08 22:54:48 +00:00
iput-object v0, p0, Lrx/observers/c;->bLu:Lrx/observers/c$a;
2019-02-04 20:08:30 +00:00
:cond_2
2019-05-04 02:59:52 +00:00
invoke-static {p1}, Lrx/internal/a/g;->bB(Ljava/lang/Object;)Ljava/lang/Object;
2019-02-04 20:08:30 +00:00
move-result-object p1
invoke-virtual {v0, p1}, Lrx/observers/c$a;->add(Ljava/lang/Object;)V
monitor-exit p0
return-void
:cond_3
const/4 v0, 0x1
iput-boolean v0, p0, Lrx/observers/c;->emitting:Z
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_1
:try_start_1
2019-05-08 22:54:48 +00:00
iget-object v1, p0, Lrx/observers/c;->bLt:Lrx/e;
2019-02-04 20:08:30 +00:00
invoke-interface {v1, p1}, Lrx/e;->onNext(Ljava/lang/Object;)V
:try_end_1
.catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_1} :catch_1
:cond_4
monitor-enter p0
:try_start_2
2019-05-08 22:54:48 +00:00
iget-object v1, p0, Lrx/observers/c;->bLu:Lrx/observers/c$a;
2019-02-04 20:08:30 +00:00
const/4 v2, 0x0
if-nez v1, :cond_5
iput-boolean v2, p0, Lrx/observers/c;->emitting:Z
monitor-exit p0
return-void
:cond_5
const/4 v3, 0x0
2019-05-08 22:54:48 +00:00
iput-object v3, p0, Lrx/observers/c;->bLu:Lrx/observers/c$a;
2019-02-04 20:08:30 +00:00
monitor-exit p0
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_0
iget-object v1, v1, Lrx/observers/c$a;->array:[Ljava/lang/Object;
array-length v3, v1
:goto_0
if-ge v2, v3, :cond_4
aget-object v4, v1, v2
if-eqz v4, :cond_4
:try_start_3
2019-05-08 22:54:48 +00:00
iget-object v5, p0, Lrx/observers/c;->bLt:Lrx/e;
2019-02-04 20:08:30 +00:00
invoke-static {v5, v4}, Lrx/internal/a/g;->a(Lrx/e;Ljava/lang/Object;)Z
move-result v4
if-eqz v4, :cond_6
iput-boolean v0, p0, Lrx/observers/c;->terminated:Z
:try_end_3
.catch Ljava/lang/Throwable; {:try_start_3 .. :try_end_3} :catch_0
return-void
:cond_6
add-int/lit8 v2, v2, 0x1
goto :goto_0
:catch_0
move-exception v1
iput-boolean v0, p0, Lrx/observers/c;->terminated:Z
2019-05-04 02:59:52 +00:00
invoke-static {v1}, Lrx/a/b;->H(Ljava/lang/Throwable;)V
2019-02-04 20:08:30 +00:00
2019-05-08 22:54:48 +00:00
iget-object v0, p0, Lrx/observers/c;->bLt:Lrx/e;
2019-02-04 20:08:30 +00:00
invoke-static {v1, p1}, Lrx/a/g;->a(Ljava/lang/Throwable;Ljava/lang/Object;)Ljava/lang/Throwable;
move-result-object p1
invoke-interface {v0, p1}, Lrx/e;->onError(Ljava/lang/Throwable;)V
return-void
:catchall_0
move-exception p1
:try_start_4
monitor-exit p0
:try_end_4
.catchall {:try_start_4 .. :try_end_4} :catchall_0
throw p1
:catch_1
move-exception v1
iput-boolean v0, p0, Lrx/observers/c;->terminated:Z
2019-05-08 22:54:48 +00:00
iget-object v0, p0, Lrx/observers/c;->bLt:Lrx/e;
2019-02-04 20:08:30 +00:00
invoke-static {v1, v0, p1}, Lrx/a/b;->a(Ljava/lang/Throwable;Lrx/e;Ljava/lang/Object;)V
return-void
:catchall_1
move-exception p1
:try_start_5
monitor-exit p0
:try_end_5
.catchall {:try_start_5 .. :try_end_5} :catchall_1
throw p1
2019-02-04 20:29:01 +00:00
return-void
2019-02-04 20:08:30 +00:00
.end method