a.smali
.class final Lio/reactivex/subjects/a;
.super Lio/reactivex/subjects/b;
.source "SerializedSubject.java"
# interfaces
.implements Lio/reactivex/internal/util/b;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Lio/reactivex/subjects/b",
"<TT;>;",
"Lio/reactivex/internal/util/b",
"<",
"Ljava/lang/Object;",
">;"
}
.end annotation
# instance fields
.field private bTN:Lio/reactivex/subjects/b;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lio/reactivex/subjects/b",
"<TT;>;"
}
.end annotation
.end field
.field private bTk:Z
.field private bTl:Lio/reactivex/internal/util/a;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lio/reactivex/internal/util/a",
"<",
"Ljava/lang/Object;",
">;"
}
.end annotation
.end field
.field private volatile done:Z
# direct methods
.method constructor <init>(Lio/reactivex/subjects/b;)V
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lio/reactivex/subjects/b",
"<TT;>;)V"
}
.end annotation
.prologue
.line 42
invoke-direct {p0}, Lio/reactivex/subjects/b;-><init>()V
.line 43
iput-object p1, p0, Lio/reactivex/subjects/a;->bTN:Lio/reactivex/subjects/b;
.line 44
return-void
.end method
.method private Qd()V
.registers 6
.prologue
const/4 v4, 0x4
const/4 v1, 0x0
.line 168
:cond_2
monitor-enter p0
.line 169
:try_start_3
iget-object v0, p0, Lio/reactivex/subjects/a;->bTl:Lio/reactivex/internal/util/a;
.line 170
if-nez v0, :cond_c
.line 171
const/4 v0, 0x0
iput-boolean v0, p0, Lio/reactivex/subjects/a;->bTk:Z
.line 172
monitor-exit p0
return-void
.line 174
:cond_c
const/4 v2, 0x0
iput-object v2, p0, Lio/reactivex/subjects/a;->bTl:Lio/reactivex/internal/util/a;
.line 175
monitor-exit p0
:try_end_10
.catchall {:try_start_3 .. :try_end_10} :catchall_25
.line 1085
iget-object v0, v0, Lio/reactivex/internal/util/a;->bSY:[Ljava/lang/Object;
move-object v2, v0
.line 1087
:goto_13
if-eqz v2, :cond_2
move v0, v1
.line 1088
:goto_16
if-ge v0, v4, :cond_28
.line 1089
aget-object v3, v2, v0
.line 1090
if-eqz v3, :cond_28
.line 1093
invoke-interface {p0, v3}, Lio/reactivex/internal/util/b;->test(Ljava/lang/Object;)Z
move-result v3
if-nez v3, :cond_28
.line 1088
add-int/lit8 v0, v0, 0x1
goto :goto_16
.line 175
:catchall_25
move-exception v0
:try_start_26
monitor-exit p0
:try_end_27
.catchall {:try_start_26 .. :try_end_27} :catchall_25
throw v0
.line 1097
:cond_28
aget-object v0, v2, v4
check-cast v0, [Ljava/lang/Object;
move-object v2, v0
goto :goto_13
.end method
# virtual methods
.method public final onComplete()V
.registers 3
.prologue
.line 142
iget-boolean v0, p0, Lio/reactivex/subjects/a;->done:Z
if-eqz v0, :cond_5
.line 162
:goto_4
return-void
.line 145
:cond_5
monitor-enter p0
.line 146
:try_start_6
iget-boolean v0, p0, Lio/reactivex/subjects/a;->done:Z
if-eqz v0, :cond_f
.line 147
monitor-exit p0
goto :goto_4
.line 160
:catchall_c
move-exception v0
monitor-exit p0
:try_end_e
.catchall {:try_start_6 .. :try_end_e} :catchall_c
throw v0
.line 149
:cond_f
const/4 v0, 0x1
:try_start_10
iput-boolean v0, p0, Lio/reactivex/subjects/a;->done:Z
.line 150
iget-boolean v0, p0, Lio/reactivex/subjects/a;->bTk:Z
if-eqz v0, :cond_2a
.line 151
iget-object v0, p0, Lio/reactivex/subjects/a;->bTl:Lio/reactivex/internal/util/a;
.line 152
if-nez v0, :cond_21
.line 153
new-instance v0, Lio/reactivex/internal/util/a;
invoke-direct {v0}, Lio/reactivex/internal/util/a;-><init>()V
.line 154
iput-object v0, p0, Lio/reactivex/subjects/a;->bTl:Lio/reactivex/internal/util/a;
.line 156
:cond_21
invoke-static {}, Lio/reactivex/internal/util/NotificationLite;->complete()Ljava/lang/Object;
move-result-object v1
invoke-virtual {v0, v1}, Lio/reactivex/internal/util/a;->add(Ljava/lang/Object;)V
.line 157
monitor-exit p0
goto :goto_4
.line 159
:cond_2a
const/4 v0, 0x1
iput-boolean v0, p0, Lio/reactivex/subjects/a;->bTk:Z
.line 160
monitor-exit p0
:try_end_2e
.catchall {:try_start_10 .. :try_end_2e} :catchall_c
.line 161
iget-object v0, p0, Lio/reactivex/subjects/a;->bTN:Lio/reactivex/subjects/b;
invoke-virtual {v0}, Lio/reactivex/subjects/b;->onComplete()V
goto :goto_4
.end method
.method public final onError(Ljava/lang/Throwable;)V
.registers 5
.prologue
const/4 v1, 0x0
const/4 v0, 0x1
.line 110
iget-boolean v2, p0, Lio/reactivex/subjects/a;->done:Z
if-eqz v2, :cond_a
.line 111
invoke-static {p1}, Lio/reactivex/d/a;->onError(Ljava/lang/Throwable;)V
.line 138
:goto_9
return-void
.line 115
:cond_a
monitor-enter p0
.line 116
:try_start_b
iget-boolean v2, p0, Lio/reactivex/subjects/a;->done:Z
if-eqz v2, :cond_16
.line 132
:goto_f
monitor-exit p0
:try_end_10
.catchall {:try_start_b .. :try_end_10} :catchall_33
.line 133
if-eqz v0, :cond_3b
.line 134
invoke-static {p1}, Lio/reactivex/d/a;->onError(Ljava/lang/Throwable;)V
goto :goto_9
.line 119
:cond_16
const/4 v0, 0x1
:try_start_17
iput-boolean v0, p0, Lio/reactivex/subjects/a;->done:Z
.line 120
iget-boolean v0, p0, Lio/reactivex/subjects/a;->bTk:Z
if-eqz v0, :cond_36
.line 121
iget-object v0, p0, Lio/reactivex/subjects/a;->bTl:Lio/reactivex/internal/util/a;
.line 122
if-nez v0, :cond_28
.line 123
new-instance v0, Lio/reactivex/internal/util/a;
invoke-direct {v0}, Lio/reactivex/internal/util/a;-><init>()V
.line 124
iput-object v0, p0, Lio/reactivex/subjects/a;->bTl:Lio/reactivex/internal/util/a;
.line 126
:cond_28
invoke-static {p1}, Lio/reactivex/internal/util/NotificationLite;->error(Ljava/lang/Throwable;)Ljava/lang/Object;
move-result-object v1
.line 1065
iget-object v0, v0, Lio/reactivex/internal/util/a;->bSY:[Ljava/lang/Object;
const/4 v2, 0x0
aput-object v1, v0, v2
.line 127
monitor-exit p0
goto :goto_9
.line 132
:catchall_33
move-exception v0
monitor-exit p0
:try_end_35
.catchall {:try_start_17 .. :try_end_35} :catchall_33
throw v0
.line 130
:cond_36
const/4 v0, 0x1
:try_start_37
iput-boolean v0, p0, Lio/reactivex/subjects/a;->bTk:Z
:try_end_39
.catchall {:try_start_37 .. :try_end_39} :catchall_33
move v0, v1
goto :goto_f
.line 137
:cond_3b
iget-object v0, p0, Lio/reactivex/subjects/a;->bTN:Lio/reactivex/subjects/b;
invoke-virtual {v0, p1}, Lio/reactivex/subjects/b;->onError(Ljava/lang/Throwable;)V
goto :goto_9
.end method
.method public final onNext(Ljava/lang/Object;)V
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
.prologue
.line 86
iget-boolean v0, p0, Lio/reactivex/subjects/a;->done:Z
if-eqz v0, :cond_5
.line 106
:goto_4
return-void
.line 89
:cond_5
monitor-enter p0
.line 90
:try_start_6
iget-boolean v0, p0, Lio/reactivex/subjects/a;->done:Z
if-eqz v0, :cond_f
.line 91
monitor-exit p0
goto :goto_4
.line 103
:catchall_c
move-exception v0
monitor-exit p0
:try_end_e
.catchall {:try_start_6 .. :try_end_e} :catchall_c
throw v0
.line 93
:cond_f
:try_start_f
iget-boolean v0, p0, Lio/reactivex/subjects/a;->bTk:Z
if-eqz v0, :cond_27
.line 94
iget-object v0, p0, Lio/reactivex/subjects/a;->bTl:Lio/reactivex/internal/util/a;
.line 95
if-nez v0, :cond_1e
.line 96
new-instance v0, Lio/reactivex/internal/util/a;
invoke-direct {v0}, Lio/reactivex/internal/util/a;-><init>()V
.line 97
iput-object v0, p0, Lio/reactivex/subjects/a;->bTl:Lio/reactivex/internal/util/a;
.line 99
:cond_1e
invoke-static {p1}, Lio/reactivex/internal/util/NotificationLite;->next(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v1
invoke-virtual {v0, v1}, Lio/reactivex/internal/util/a;->add(Ljava/lang/Object;)V
.line 100
monitor-exit p0
goto :goto_4
.line 102
:cond_27
const/4 v0, 0x1
iput-boolean v0, p0, Lio/reactivex/subjects/a;->bTk:Z
.line 103
monitor-exit p0
:try_end_2b
.catchall {:try_start_f .. :try_end_2b} :catchall_c
.line 104
iget-object v0, p0, Lio/reactivex/subjects/a;->bTN:Lio/reactivex/subjects/b;
invoke-virtual {v0, p1}, Lio/reactivex/subjects/b;->onNext(Ljava/lang/Object;)V
.line 105
invoke-direct {p0}, Lio/reactivex/subjects/a;->Qd()V
goto :goto_4
.end method
.method public final onSubscribe(Lio/reactivex/disposables/b;)V
.registers 4
.prologue
const/4 v0, 0x1
.line 55
iget-boolean v1, p0, Lio/reactivex/subjects/a;->done:Z
if-nez v1, :cond_b
.line 56
monitor-enter p0
.line 57
:try_start_6
iget-boolean v1, p0, Lio/reactivex/subjects/a;->done:Z
if-eqz v1, :cond_11
.line 72
:goto_a
monitor-exit p0
:try_end_b
.catchall {:try_start_6 .. :try_end_b} :catchall_29
.line 76
:cond_b
if-eqz v0, :cond_31
.line 77
invoke-interface {p1}, Lio/reactivex/disposables/b;->dispose()V
.line 82
:goto_10
return-void
.line 60
:cond_11
:try_start_11
iget-boolean v0, p0, Lio/reactivex/subjects/a;->bTk:Z
if-eqz v0, :cond_2c
.line 61
iget-object v0, p0, Lio/reactivex/subjects/a;->bTl:Lio/reactivex/internal/util/a;
.line 62
if-nez v0, :cond_20
.line 63
new-instance v0, Lio/reactivex/internal/util/a;
invoke-direct {v0}, Lio/reactivex/internal/util/a;-><init>()V
.line 64
iput-object v0, p0, Lio/reactivex/subjects/a;->bTl:Lio/reactivex/internal/util/a;
.line 66
:cond_20
invoke-static {p1}, Lio/reactivex/internal/util/NotificationLite;->disposable(Lio/reactivex/disposables/b;)Ljava/lang/Object;
move-result-object v1
invoke-virtual {v0, v1}, Lio/reactivex/internal/util/a;->add(Ljava/lang/Object;)V
.line 67
monitor-exit p0
goto :goto_10
.line 72
:catchall_29
move-exception v0
monitor-exit p0
:try_end_2b
.catchall {:try_start_11 .. :try_end_2b} :catchall_29
throw v0
.line 69
:cond_2c
const/4 v0, 0x1
:try_start_2d
iput-boolean v0, p0, Lio/reactivex/subjects/a;->bTk:Z
:try_end_2f
.catchall {:try_start_2d .. :try_end_2f} :catchall_29
.line 70
const/4 v0, 0x0
goto :goto_a
.line 79
:cond_31
iget-object v0, p0, Lio/reactivex/subjects/a;->bTN:Lio/reactivex/subjects/b;
invoke-virtual {v0, p1}, Lio/reactivex/subjects/b;->onSubscribe(Lio/reactivex/disposables/b;)V
.line 80
invoke-direct {p0}, Lio/reactivex/subjects/a;->Qd()V
goto :goto_10
.end method
.method protected final subscribeActual(Lio/reactivex/r;)V
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lio/reactivex/r",
"<-TT;>;)V"
}
.end annotation
.prologue
.line 48
iget-object v0, p0, Lio/reactivex/subjects/a;->bTN:Lio/reactivex/subjects/b;
invoke-virtual {v0, p1}, Lio/reactivex/subjects/b;->subscribe(Lio/reactivex/r;)V
.line 49
return-void
.end method
.method public final test(Ljava/lang/Object;)Z
.registers 3
.prologue
.line 182
iget-object v0, p0, Lio/reactivex/subjects/a;->bTN:Lio/reactivex/subjects/b;
invoke-static {p1, v0}, Lio/reactivex/internal/util/NotificationLite;->acceptFull(Ljava/lang/Object;Lio/reactivex/r;)Z
move-result v0
return v0
.end method