DeferredScalarDisposable.smali
.class public Lio/reactivex/internal/observers/DeferredScalarDisposable;
.super Lio/reactivex/internal/observers/BasicIntQueueDisposable;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Lio/reactivex/internal/observers/BasicIntQueueDisposable<",
"TT;>;"
}
.end annotation
# instance fields
.field protected final f:Lio/reactivex/Observer;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lio/reactivex/Observer<",
"-TT;>;"
}
.end annotation
.end field
.field protected g:Ljava/lang/Object;
.annotation system Ldalvik/annotation/Signature;
value = {
"TT;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Lio/reactivex/Observer;)V
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lio/reactivex/Observer<",
"-TT;>;)V"
}
.end annotation
invoke-direct {p0}, Lio/reactivex/internal/observers/BasicIntQueueDisposable;-><init>()V
iput-object p1, p0, Lio/reactivex/internal/observers/DeferredScalarDisposable;->f:Lio/reactivex/Observer;
return-void
.end method
# virtual methods
.method public final c(Ljava/lang/Object;)V
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
invoke-virtual {p0}, Ljava/util/concurrent/atomic/AtomicInteger;->get()I
move-result v0
and-int/lit8 v1, v0, 0x36
if-eqz v1, :cond_9
return-void
:cond_9
iget-object v1, p0, Lio/reactivex/internal/observers/DeferredScalarDisposable;->f:Lio/reactivex/Observer;
const/16 v2, 0x8
if-ne v0, v2, :cond_1b
iput-object p1, p0, Lio/reactivex/internal/observers/DeferredScalarDisposable;->g:Ljava/lang/Object;
const/16 p1, 0x10
invoke-virtual {p0, p1}, Ljava/util/concurrent/atomic/AtomicInteger;->lazySet(I)V
const/4 p1, 0x0
invoke-interface {v1, p1}, Lio/reactivex/Observer;->c(Ljava/lang/Object;)V
goto :goto_22
:cond_1b
const/4 v0, 0x2
invoke-virtual {p0, v0}, Ljava/util/concurrent/atomic/AtomicInteger;->lazySet(I)V
invoke-interface {v1, p1}, Lio/reactivex/Observer;->c(Ljava/lang/Object;)V
:goto_22
invoke-virtual {p0}, Ljava/util/concurrent/atomic/AtomicInteger;->get()I
move-result p1
const/4 v0, 0x4
if-eq p1, v0, :cond_2c
invoke-interface {v1}, Lio/reactivex/Observer;->onComplete()V
:cond_2c
return-void
.end method
.method public final d(Ljava/lang/Throwable;)V
.registers 3
invoke-virtual {p0}, Ljava/util/concurrent/atomic/AtomicInteger;->get()I
move-result v0
and-int/lit8 v0, v0, 0x36
if-eqz v0, :cond_c
invoke-static {p1}, Lio/reactivex/plugins/RxJavaPlugins;->m(Ljava/lang/Throwable;)V
return-void
:cond_c
const/4 v0, 0x2
invoke-virtual {p0, v0}, Ljava/util/concurrent/atomic/AtomicInteger;->lazySet(I)V
iget-object v0, p0, Lio/reactivex/internal/observers/DeferredScalarDisposable;->f:Lio/reactivex/Observer;
invoke-interface {v0, p1}, Lio/reactivex/Observer;->b(Ljava/lang/Throwable;)V
return-void
.end method
.method public g()V
.registers 2
const/4 v0, 0x4
invoke-virtual {p0, v0}, Ljava/util/concurrent/atomic/AtomicInteger;->set(I)V
return-void
.end method
.method public final j()Z
.registers 3
invoke-virtual {p0}, Ljava/util/concurrent/atomic/AtomicInteger;->get()I
move-result v0
const/4 v1, 0x4
if-ne v0, v1, :cond_9
const/4 v0, 0x1
goto :goto_a
:cond_9
const/4 v0, 0x0
:goto_a
return v0
.end method