MaybeSubject.smali
.class public final Lio/reactivex/subjects/MaybeSubject;
.super Lio/reactivex/Maybe;
.source "MaybeSubject.java"
# interfaces
.implements Lio/reactivex/MaybeObserver;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lio/reactivex/subjects/MaybeSubject$MaybeDisposable;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Lio/reactivex/Maybe<",
"TT;>;",
"Lio/reactivex/MaybeObserver<",
"TT;>;"
}
.end annotation
# static fields
.field static final EMPTY:[Lio/reactivex/subjects/MaybeSubject$MaybeDisposable;
.field static final TERMINATED:[Lio/reactivex/subjects/MaybeSubject$MaybeDisposable;
# instance fields
.field error:Ljava/lang/Throwable;
.field final observers:Ljava/util/concurrent/atomic/AtomicReference;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/concurrent/atomic/AtomicReference<",
"[",
"Lio/reactivex/subjects/MaybeSubject$MaybeDisposable<",
"TT;>;>;"
}
.end annotation
.end field
.field final once:Ljava/util/concurrent/atomic/AtomicBoolean;
.field value:Ljava/lang/Object;
.annotation system Ldalvik/annotation/Signature;
value = {
"TT;"
}
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.registers 2
.line 41
const/4 v0, 0x0
new-array v1, v0, [Lio/reactivex/subjects/MaybeSubject$MaybeDisposable;
sput-object v1, Lio/reactivex/subjects/MaybeSubject;->EMPTY:[Lio/reactivex/subjects/MaybeSubject$MaybeDisposable;
.line 44
new-array v0, v0, [Lio/reactivex/subjects/MaybeSubject$MaybeDisposable;
sput-object v0, Lio/reactivex/subjects/MaybeSubject;->TERMINATED:[Lio/reactivex/subjects/MaybeSubject$MaybeDisposable;
return-void
.end method
.method constructor <init>()V
.registers 3
.line 61
.local p0, "this":Lio/reactivex/subjects/MaybeSubject;, "Lio/reactivex/subjects/MaybeSubject<TT;>;"
invoke-direct {p0}, Lio/reactivex/Maybe;-><init>()V
.line 62
new-instance v0, Ljava/util/concurrent/atomic/AtomicBoolean;
invoke-direct {v0}, Ljava/util/concurrent/atomic/AtomicBoolean;-><init>()V
iput-object v0, p0, Lio/reactivex/subjects/MaybeSubject;->once:Ljava/util/concurrent/atomic/AtomicBoolean;
.line 63
new-instance v0, Ljava/util/concurrent/atomic/AtomicReference;
sget-object v1, Lio/reactivex/subjects/MaybeSubject;->EMPTY:[Lio/reactivex/subjects/MaybeSubject$MaybeDisposable;
invoke-direct {v0, v1}, Ljava/util/concurrent/atomic/AtomicReference;-><init>(Ljava/lang/Object;)V
iput-object v0, p0, Lio/reactivex/subjects/MaybeSubject;->observers:Ljava/util/concurrent/atomic/AtomicReference;
.line 64
return-void
.end method
.method public static create()Lio/reactivex/subjects/MaybeSubject;
.registers 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">()",
"Lio/reactivex/subjects/MaybeSubject<",
"TT;>;"
}
.end annotation
.annotation runtime Lio/reactivex/annotations/CheckReturnValue;
.end annotation
.line 57
new-instance v0, Lio/reactivex/subjects/MaybeSubject;
invoke-direct {v0}, Lio/reactivex/subjects/MaybeSubject;-><init>()V
return-object v0
.end method
# virtual methods
.method add(Lio/reactivex/subjects/MaybeSubject$MaybeDisposable;)Z
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lio/reactivex/subjects/MaybeSubject$MaybeDisposable<",
"TT;>;)Z"
}
.end annotation
.line 139
.local p0, "this":Lio/reactivex/subjects/MaybeSubject;, "Lio/reactivex/subjects/MaybeSubject<TT;>;"
.local p1, "inner":Lio/reactivex/subjects/MaybeSubject$MaybeDisposable;, "Lio/reactivex/subjects/MaybeSubject$MaybeDisposable<TT;>;"
:goto_0
iget-object v0, p0, Lio/reactivex/subjects/MaybeSubject;->observers:Ljava/util/concurrent/atomic/AtomicReference;
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lio/reactivex/subjects/MaybeSubject$MaybeDisposable;
.line 140
.local v0, "a":[Lio/reactivex/subjects/MaybeSubject$MaybeDisposable;, "[Lio/reactivex/subjects/MaybeSubject$MaybeDisposable<TT;>;"
sget-object v1, Lio/reactivex/subjects/MaybeSubject;->TERMINATED:[Lio/reactivex/subjects/MaybeSubject$MaybeDisposable;
const/4 v2, 0x0
if-ne v0, v1, :cond_e
.line 141
return v2
.line 144
:cond_e
array-length v1, v0
.line 146
.local v1, "n":I
add-int/lit8 v3, v1, 0x1
new-array v3, v3, [Lio/reactivex/subjects/MaybeSubject$MaybeDisposable;
.line 147
.local v3, "b":[Lio/reactivex/subjects/MaybeSubject$MaybeDisposable;, "[Lio/reactivex/subjects/MaybeSubject$MaybeDisposable<TT;>;"
invoke-static {v0, v2, v3, v2, v1}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
.line 148
aput-object p1, v3, v1
.line 149
iget-object v2, p0, Lio/reactivex/subjects/MaybeSubject;->observers:Ljava/util/concurrent/atomic/AtomicReference;
invoke-virtual {v2, v0, v3}, Ljava/util/concurrent/atomic/AtomicReference;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v2
if-eqz v2, :cond_22
.line 150
const/4 v2, 0x1
return v2
.line 152
.end local v0 # "a":[Lio/reactivex/subjects/MaybeSubject$MaybeDisposable;, "[Lio/reactivex/subjects/MaybeSubject$MaybeDisposable<TT;>;"
.end local v1 # "n":I
.end local v3 # "b":[Lio/reactivex/subjects/MaybeSubject$MaybeDisposable;, "[Lio/reactivex/subjects/MaybeSubject$MaybeDisposable<TT;>;"
:cond_22
goto :goto_0
.end method
.method public getThrowable()Ljava/lang/Throwable;
.registers 3
.line 215
.local p0, "this":Lio/reactivex/subjects/MaybeSubject;, "Lio/reactivex/subjects/MaybeSubject<TT;>;"
iget-object v0, p0, Lio/reactivex/subjects/MaybeSubject;->observers:Ljava/util/concurrent/atomic/AtomicReference;
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
sget-object v1, Lio/reactivex/subjects/MaybeSubject;->TERMINATED:[Lio/reactivex/subjects/MaybeSubject$MaybeDisposable;
if-ne v0, v1, :cond_d
.line 216
iget-object v0, p0, Lio/reactivex/subjects/MaybeSubject;->error:Ljava/lang/Throwable;
return-object v0
.line 218
:cond_d
const/4 v0, 0x0
return-object v0
.end method
.method public getValue()Ljava/lang/Object;
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"()TT;"
}
.end annotation
.line 196
.local p0, "this":Lio/reactivex/subjects/MaybeSubject;, "Lio/reactivex/subjects/MaybeSubject<TT;>;"
iget-object v0, p0, Lio/reactivex/subjects/MaybeSubject;->observers:Ljava/util/concurrent/atomic/AtomicReference;
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
sget-object v1, Lio/reactivex/subjects/MaybeSubject;->TERMINATED:[Lio/reactivex/subjects/MaybeSubject$MaybeDisposable;
if-ne v0, v1, :cond_d
.line 197
iget-object v0, p0, Lio/reactivex/subjects/MaybeSubject;->value:Ljava/lang/Object;
return-object v0
.line 199
:cond_d
const/4 v0, 0x0
return-object v0
.end method
.method public hasComplete()Z
.registers 3
.line 234
.local p0, "this":Lio/reactivex/subjects/MaybeSubject;, "Lio/reactivex/subjects/MaybeSubject<TT;>;"
iget-object v0, p0, Lio/reactivex/subjects/MaybeSubject;->observers:Ljava/util/concurrent/atomic/AtomicReference;
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
sget-object v1, Lio/reactivex/subjects/MaybeSubject;->TERMINATED:[Lio/reactivex/subjects/MaybeSubject$MaybeDisposable;
if-ne v0, v1, :cond_14
iget-object v0, p0, Lio/reactivex/subjects/MaybeSubject;->value:Ljava/lang/Object;
if-nez v0, :cond_14
iget-object v0, p0, Lio/reactivex/subjects/MaybeSubject;->error:Ljava/lang/Throwable;
if-nez v0, :cond_14
const/4 v0, 0x1
goto :goto_15
:cond_14
const/4 v0, 0x0
:goto_15
return v0
.end method
.method public hasObservers()Z
.registers 2
.line 242
.local p0, "this":Lio/reactivex/subjects/MaybeSubject;, "Lio/reactivex/subjects/MaybeSubject<TT;>;"
iget-object v0, p0, Lio/reactivex/subjects/MaybeSubject;->observers:Ljava/util/concurrent/atomic/AtomicReference;
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lio/reactivex/subjects/MaybeSubject$MaybeDisposable;
array-length v0, v0
if-eqz v0, :cond_d
const/4 v0, 0x1
goto :goto_e
:cond_d
const/4 v0, 0x0
:goto_e
return v0
.end method
.method public hasThrowable()Z
.registers 3
.line 226
.local p0, "this":Lio/reactivex/subjects/MaybeSubject;, "Lio/reactivex/subjects/MaybeSubject<TT;>;"
iget-object v0, p0, Lio/reactivex/subjects/MaybeSubject;->observers:Ljava/util/concurrent/atomic/AtomicReference;
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
sget-object v1, Lio/reactivex/subjects/MaybeSubject;->TERMINATED:[Lio/reactivex/subjects/MaybeSubject$MaybeDisposable;
if-ne v0, v1, :cond_10
iget-object v0, p0, Lio/reactivex/subjects/MaybeSubject;->error:Ljava/lang/Throwable;
if-eqz v0, :cond_10
const/4 v0, 0x1
goto :goto_11
:cond_10
const/4 v0, 0x0
:goto_11
return v0
.end method
.method public hasValue()Z
.registers 3
.line 207
.local p0, "this":Lio/reactivex/subjects/MaybeSubject;, "Lio/reactivex/subjects/MaybeSubject<TT;>;"
iget-object v0, p0, Lio/reactivex/subjects/MaybeSubject;->observers:Ljava/util/concurrent/atomic/AtomicReference;
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
sget-object v1, Lio/reactivex/subjects/MaybeSubject;->TERMINATED:[Lio/reactivex/subjects/MaybeSubject$MaybeDisposable;
if-ne v0, v1, :cond_10
iget-object v0, p0, Lio/reactivex/subjects/MaybeSubject;->value:Ljava/lang/Object;
if-eqz v0, :cond_10
const/4 v0, 0x1
goto :goto_11
:cond_10
const/4 v0, 0x0
:goto_11
return v0
.end method
.method observerCount()I
.registers 2
.line 250
.local p0, "this":Lio/reactivex/subjects/MaybeSubject;, "Lio/reactivex/subjects/MaybeSubject<TT;>;"
iget-object v0, p0, Lio/reactivex/subjects/MaybeSubject;->observers:Ljava/util/concurrent/atomic/AtomicReference;
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lio/reactivex/subjects/MaybeSubject$MaybeDisposable;
array-length v0, v0
return v0
.end method
.method public onComplete()V
.registers 6
.line 107
.local p0, "this":Lio/reactivex/subjects/MaybeSubject;, "Lio/reactivex/subjects/MaybeSubject<TT;>;"
iget-object v0, p0, Lio/reactivex/subjects/MaybeSubject;->once:Ljava/util/concurrent/atomic/AtomicBoolean;
const/4 v1, 0x1
const/4 v2, 0x0
invoke-virtual {v0, v2, v1}, Ljava/util/concurrent/atomic/AtomicBoolean;->compareAndSet(ZZ)Z
move-result v0
if-eqz v0, :cond_21
.line 108
iget-object v0, p0, Lio/reactivex/subjects/MaybeSubject;->observers:Ljava/util/concurrent/atomic/AtomicReference;
sget-object v1, Lio/reactivex/subjects/MaybeSubject;->TERMINATED:[Lio/reactivex/subjects/MaybeSubject$MaybeDisposable;
invoke-virtual {v0, v1}, Ljava/util/concurrent/atomic/AtomicReference;->getAndSet(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lio/reactivex/subjects/MaybeSubject$MaybeDisposable;
array-length v1, v0
:goto_15
if-ge v2, v1, :cond_21
aget-object v3, v0, v2
.line 109
.local v3, "md":Lio/reactivex/subjects/MaybeSubject$MaybeDisposable;, "Lio/reactivex/subjects/MaybeSubject$MaybeDisposable<TT;>;"
iget-object v4, v3, Lio/reactivex/subjects/MaybeSubject$MaybeDisposable;->actual:Lio/reactivex/MaybeObserver;
invoke-interface {v4}, Lio/reactivex/MaybeObserver;->onComplete()V
.line 108
.end local v3 # "md":Lio/reactivex/subjects/MaybeSubject$MaybeDisposable;, "Lio/reactivex/subjects/MaybeSubject$MaybeDisposable<TT;>;"
add-int/lit8 v2, v2, 0x1
goto :goto_15
.line 112
:cond_21
return-void
.end method
.method public onError(Ljava/lang/Throwable;)V
.registers 7
.param p1, "e" # Ljava/lang/Throwable;
.line 91
.local p0, "this":Lio/reactivex/subjects/MaybeSubject;, "Lio/reactivex/subjects/MaybeSubject<TT;>;"
if-nez p1, :cond_a
.line 92
new-instance v0, Ljava/lang/NullPointerException;
const-string v1, "Null errors are not allowed in 2.x"
invoke-direct {v0, v1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
move-object p1, v0
.line 94
:cond_a
iget-object v0, p0, Lio/reactivex/subjects/MaybeSubject;->once:Ljava/util/concurrent/atomic/AtomicBoolean;
const/4 v1, 0x1
const/4 v2, 0x0
invoke-virtual {v0, v2, v1}, Ljava/util/concurrent/atomic/AtomicBoolean;->compareAndSet(ZZ)Z
move-result v0
if-eqz v0, :cond_2d
.line 95
iput-object p1, p0, Lio/reactivex/subjects/MaybeSubject;->error:Ljava/lang/Throwable;
.line 96
iget-object v0, p0, Lio/reactivex/subjects/MaybeSubject;->observers:Ljava/util/concurrent/atomic/AtomicReference;
sget-object v1, Lio/reactivex/subjects/MaybeSubject;->TERMINATED:[Lio/reactivex/subjects/MaybeSubject$MaybeDisposable;
invoke-virtual {v0, v1}, Ljava/util/concurrent/atomic/AtomicReference;->getAndSet(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lio/reactivex/subjects/MaybeSubject$MaybeDisposable;
array-length v1, v0
:goto_21
if-ge v2, v1, :cond_30
aget-object v3, v0, v2
.line 97
.local v3, "md":Lio/reactivex/subjects/MaybeSubject$MaybeDisposable;, "Lio/reactivex/subjects/MaybeSubject$MaybeDisposable<TT;>;"
iget-object v4, v3, Lio/reactivex/subjects/MaybeSubject$MaybeDisposable;->actual:Lio/reactivex/MaybeObserver;
invoke-interface {v4, p1}, Lio/reactivex/MaybeObserver;->onError(Ljava/lang/Throwable;)V
.line 96
.end local v3 # "md":Lio/reactivex/subjects/MaybeSubject$MaybeDisposable;, "Lio/reactivex/subjects/MaybeSubject$MaybeDisposable<TT;>;"
add-int/lit8 v2, v2, 0x1
goto :goto_21
.line 100
:cond_2d
invoke-static {p1}, Lio/reactivex/plugins/RxJavaPlugins;->onError(Ljava/lang/Throwable;)V
.line 102
:cond_30
return-void
.end method
.method public onSubscribe(Lio/reactivex/disposables/Disposable;)V
.registers 4
.param p1, "d" # Lio/reactivex/disposables/Disposable;
.line 68
.local p0, "this":Lio/reactivex/subjects/MaybeSubject;, "Lio/reactivex/subjects/MaybeSubject<TT;>;"
iget-object v0, p0, Lio/reactivex/subjects/MaybeSubject;->observers:Ljava/util/concurrent/atomic/AtomicReference;
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
sget-object v1, Lio/reactivex/subjects/MaybeSubject;->TERMINATED:[Lio/reactivex/subjects/MaybeSubject$MaybeDisposable;
if-ne v0, v1, :cond_d
.line 69
invoke-interface {p1}, Lio/reactivex/disposables/Disposable;->dispose()V
.line 71
:cond_d
return-void
.end method
.method public onSuccess(Ljava/lang/Object;)V
.registers 7
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
.line 76
.local p0, "this":Lio/reactivex/subjects/MaybeSubject;, "Lio/reactivex/subjects/MaybeSubject<TT;>;"
.local p1, "value":Ljava/lang/Object;, "TT;"
if-nez p1, :cond_d
.line 77
new-instance v0, Ljava/lang/NullPointerException;
const-string v1, "Null values are not allowed in 2.x"
invoke-direct {v0, v1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
invoke-virtual {p0, v0}, Lio/reactivex/subjects/MaybeSubject;->onError(Ljava/lang/Throwable;)V
.line 78
return-void
.line 80
:cond_d
iget-object v0, p0, Lio/reactivex/subjects/MaybeSubject;->once:Ljava/util/concurrent/atomic/AtomicBoolean;
const/4 v1, 0x1
const/4 v2, 0x0
invoke-virtual {v0, v2, v1}, Ljava/util/concurrent/atomic/AtomicBoolean;->compareAndSet(ZZ)Z
move-result v0
if-eqz v0, :cond_30
.line 81
iput-object p1, p0, Lio/reactivex/subjects/MaybeSubject;->value:Ljava/lang/Object;
.line 82
iget-object v0, p0, Lio/reactivex/subjects/MaybeSubject;->observers:Ljava/util/concurrent/atomic/AtomicReference;
sget-object v1, Lio/reactivex/subjects/MaybeSubject;->TERMINATED:[Lio/reactivex/subjects/MaybeSubject$MaybeDisposable;
invoke-virtual {v0, v1}, Ljava/util/concurrent/atomic/AtomicReference;->getAndSet(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lio/reactivex/subjects/MaybeSubject$MaybeDisposable;
array-length v1, v0
:goto_24
if-ge v2, v1, :cond_30
aget-object v3, v0, v2
.line 83
.local v3, "md":Lio/reactivex/subjects/MaybeSubject$MaybeDisposable;, "Lio/reactivex/subjects/MaybeSubject$MaybeDisposable<TT;>;"
iget-object v4, v3, Lio/reactivex/subjects/MaybeSubject$MaybeDisposable;->actual:Lio/reactivex/MaybeObserver;
invoke-interface {v4, p1}, Lio/reactivex/MaybeObserver;->onSuccess(Ljava/lang/Object;)V
.line 82
.end local v3 # "md":Lio/reactivex/subjects/MaybeSubject$MaybeDisposable;, "Lio/reactivex/subjects/MaybeSubject$MaybeDisposable<TT;>;"
add-int/lit8 v2, v2, 0x1
goto :goto_24
.line 86
:cond_30
return-void
.end method
.method remove(Lio/reactivex/subjects/MaybeSubject$MaybeDisposable;)V
.registers 9
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lio/reactivex/subjects/MaybeSubject$MaybeDisposable<",
"TT;>;)V"
}
.end annotation
.line 158
.local p0, "this":Lio/reactivex/subjects/MaybeSubject;, "Lio/reactivex/subjects/MaybeSubject<TT;>;"
.local p1, "inner":Lio/reactivex/subjects/MaybeSubject$MaybeDisposable;, "Lio/reactivex/subjects/MaybeSubject$MaybeDisposable<TT;>;"
:goto_0
iget-object v0, p0, Lio/reactivex/subjects/MaybeSubject;->observers:Ljava/util/concurrent/atomic/AtomicReference;
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lio/reactivex/subjects/MaybeSubject$MaybeDisposable;
.line 159
.local v0, "a":[Lio/reactivex/subjects/MaybeSubject$MaybeDisposable;, "[Lio/reactivex/subjects/MaybeSubject$MaybeDisposable<TT;>;"
array-length v1, v0
.line 160
.local v1, "n":I
if-nez v1, :cond_c
.line 161
return-void
.line 164
:cond_c
const/4 v2, -0x1
.line 166
.local v2, "j":I
const/4 v3, 0x0
.local v3, "i":I
:goto_e
if-ge v3, v1, :cond_19
.line 167
aget-object v4, v0, v3
if-ne v4, p1, :cond_16
.line 168
move v2, v3
.line 169
goto :goto_19
.line 166
:cond_16
add-int/lit8 v3, v3, 0x1
goto :goto_e
.line 173
.end local v3 # "i":I
:cond_19
:goto_19
if-gez v2, :cond_1c
.line 174
return-void
.line 177
:cond_1c
const/4 v3, 0x1
if-ne v1, v3, :cond_22
.line 178
sget-object v3, Lio/reactivex/subjects/MaybeSubject;->EMPTY:[Lio/reactivex/subjects/MaybeSubject$MaybeDisposable;
.local v3, "b":[Lio/reactivex/subjects/MaybeSubject$MaybeDisposable;, "[Lio/reactivex/subjects/MaybeSubject$MaybeDisposable<TT;>;"
goto :goto_33
.line 180
.end local v3 # "b":[Lio/reactivex/subjects/MaybeSubject$MaybeDisposable;, "[Lio/reactivex/subjects/MaybeSubject$MaybeDisposable<TT;>;"
:cond_22
add-int/lit8 v4, v1, -0x1
new-array v4, v4, [Lio/reactivex/subjects/MaybeSubject$MaybeDisposable;
.line 181
.local v4, "b":[Lio/reactivex/subjects/MaybeSubject$MaybeDisposable;, "[Lio/reactivex/subjects/MaybeSubject$MaybeDisposable<TT;>;"
const/4 v5, 0x0
invoke-static {v0, v5, v4, v5, v2}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
.line 182
add-int/lit8 v5, v2, 0x1
sub-int v6, v1, v2
sub-int/2addr v6, v3
invoke-static {v0, v5, v4, v2, v6}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
move-object v3, v4
.line 185
.end local v4 # "b":[Lio/reactivex/subjects/MaybeSubject$MaybeDisposable;, "[Lio/reactivex/subjects/MaybeSubject$MaybeDisposable<TT;>;"
.restart local v3 # "b":[Lio/reactivex/subjects/MaybeSubject$MaybeDisposable;, "[Lio/reactivex/subjects/MaybeSubject$MaybeDisposable<TT;>;"
:goto_33
iget-object v4, p0, Lio/reactivex/subjects/MaybeSubject;->observers:Ljava/util/concurrent/atomic/AtomicReference;
invoke-virtual {v4, v0, v3}, Ljava/util/concurrent/atomic/AtomicReference;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v4
if-eqz v4, :cond_3c
.line 186
return-void
.line 188
.end local v0 # "a":[Lio/reactivex/subjects/MaybeSubject$MaybeDisposable;, "[Lio/reactivex/subjects/MaybeSubject$MaybeDisposable<TT;>;"
.end local v1 # "n":I
.end local v2 # "j":I
.end local v3 # "b":[Lio/reactivex/subjects/MaybeSubject$MaybeDisposable;, "[Lio/reactivex/subjects/MaybeSubject$MaybeDisposable<TT;>;"
:cond_3c
goto :goto_0
.end method
.method protected subscribeActual(Lio/reactivex/MaybeObserver;)V
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lio/reactivex/MaybeObserver<",
"-TT;>;)V"
}
.end annotation
.line 116
.local p0, "this":Lio/reactivex/subjects/MaybeSubject;, "Lio/reactivex/subjects/MaybeSubject<TT;>;"
.local p1, "observer":Lio/reactivex/MaybeObserver;, "Lio/reactivex/MaybeObserver<-TT;>;"
new-instance v0, Lio/reactivex/subjects/MaybeSubject$MaybeDisposable;
invoke-direct {v0, p1, p0}, Lio/reactivex/subjects/MaybeSubject$MaybeDisposable;-><init>(Lio/reactivex/MaybeObserver;Lio/reactivex/subjects/MaybeSubject;)V
.line 117
.local v0, "md":Lio/reactivex/subjects/MaybeSubject$MaybeDisposable;, "Lio/reactivex/subjects/MaybeSubject$MaybeDisposable<TT;>;"
invoke-interface {p1, v0}, Lio/reactivex/MaybeObserver;->onSubscribe(Lio/reactivex/disposables/Disposable;)V
.line 118
invoke-virtual {p0, v0}, Lio/reactivex/subjects/MaybeSubject;->add(Lio/reactivex/subjects/MaybeSubject$MaybeDisposable;)Z
move-result v1
if-eqz v1, :cond_18
.line 119
invoke-virtual {v0}, Lio/reactivex/subjects/MaybeSubject$MaybeDisposable;->isDisposed()Z
move-result v1
if-eqz v1, :cond_2b
.line 120
invoke-virtual {p0, v0}, Lio/reactivex/subjects/MaybeSubject;->remove(Lio/reactivex/subjects/MaybeSubject$MaybeDisposable;)V
goto :goto_2b
.line 123
:cond_18
iget-object v1, p0, Lio/reactivex/subjects/MaybeSubject;->error:Ljava/lang/Throwable;
.line 124
.local v1, "ex":Ljava/lang/Throwable;
if-eqz v1, :cond_20
.line 125
invoke-interface {p1, v1}, Lio/reactivex/MaybeObserver;->onError(Ljava/lang/Throwable;)V
goto :goto_2b
.line 127
:cond_20
iget-object v2, p0, Lio/reactivex/subjects/MaybeSubject;->value:Ljava/lang/Object;
.line 128
.local v2, "v":Ljava/lang/Object;, "TT;"
if-nez v2, :cond_28
.line 129
invoke-interface {p1}, Lio/reactivex/MaybeObserver;->onComplete()V
goto :goto_2b
.line 131
:cond_28
invoke-interface {p1, v2}, Lio/reactivex/MaybeObserver;->onSuccess(Ljava/lang/Object;)V
.line 135
.end local v1 # "ex":Ljava/lang/Throwable;
.end local v2 # "v":Ljava/lang/Object;, "TT;"
:cond_2b
:goto_2b
return-void
.end method