FlowableConcatMap$ConcatMapDelayed.smali
.class final Lio/reactivex/internal/operators/flowable/FlowableConcatMap$ConcatMapDelayed;
.super Lio/reactivex/internal/operators/flowable/FlowableConcatMap$BaseConcatMapSubscriber;
.source "FlowableConcatMap.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lio/reactivex/internal/operators/flowable/FlowableConcatMap;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = "ConcatMapDelayed"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
"R:",
"Ljava/lang/Object;",
">",
"Lio/reactivex/internal/operators/flowable/FlowableConcatMap$BaseConcatMapSubscriber<",
"TT;TR;>;"
}
.end annotation
# static fields
.field private static final serialVersionUID:J = -0x28e181349daae86aL
# instance fields
.field final downstream:Lf/b/c;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lf/b/c<",
"-TR;>;"
}
.end annotation
.end field
.field final veryEnd:Z
# direct methods
.method constructor <init>(Lf/b/c;Lio/reactivex/b/o;IZ)V
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lf/b/c<",
"-TR;>;",
"Lio/reactivex/b/o<",
"-TT;+",
"Lf/b/b<",
"+TR;>;>;IZ)V"
}
.end annotation
.line 1
invoke-direct {p0, p2, p3}, Lio/reactivex/internal/operators/flowable/FlowableConcatMap$BaseConcatMapSubscriber;-><init>(Lio/reactivex/b/o;I)V
.line 2
iput-object p1, p0, Lio/reactivex/internal/operators/flowable/FlowableConcatMap$ConcatMapDelayed;->downstream:Lf/b/c;
.line 3
iput-boolean p4, p0, Lio/reactivex/internal/operators/flowable/FlowableConcatMap$ConcatMapDelayed;->veryEnd:Z
return-void
.end method
# virtual methods
.method public cancel()V
.registers 2
.line 1
iget-boolean v0, p0, Lio/reactivex/internal/operators/flowable/FlowableConcatMap$BaseConcatMapSubscriber;->cancelled:Z
if-nez v0, :cond_11
const/4 v0, 0x1
.line 2
iput-boolean v0, p0, Lio/reactivex/internal/operators/flowable/FlowableConcatMap$BaseConcatMapSubscriber;->cancelled:Z
.line 3
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableConcatMap$BaseConcatMapSubscriber;->inner:Lio/reactivex/internal/operators/flowable/FlowableConcatMap$ConcatMapInner;
invoke-virtual {v0}, Lio/reactivex/internal/subscriptions/SubscriptionArbiter;->cancel()V
.line 4
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableConcatMap$BaseConcatMapSubscriber;->upstream:Lf/b/d;
invoke-interface {v0}, Lf/b/d;->cancel()V
:cond_11
return-void
.end method
.method drain()V
.registers 7
.line 1
invoke-virtual {p0}, Ljava/util/concurrent/atomic/AtomicInteger;->getAndIncrement()I
move-result v0
if-nez v0, :cond_103
.line 2
:cond_6
:goto_6
iget-boolean v0, p0, Lio/reactivex/internal/operators/flowable/FlowableConcatMap$BaseConcatMapSubscriber;->cancelled:Z
if-eqz v0, :cond_b
return-void
.line 3
:cond_b
iget-boolean v0, p0, Lio/reactivex/internal/operators/flowable/FlowableConcatMap$BaseConcatMapSubscriber;->active:Z
if-nez v0, :cond_fd
.line 4
iget-boolean v0, p0, Lio/reactivex/internal/operators/flowable/FlowableConcatMap$BaseConcatMapSubscriber;->done:Z
if-eqz v0, :cond_2d
.line 5
iget-boolean v1, p0, Lio/reactivex/internal/operators/flowable/FlowableConcatMap$ConcatMapDelayed;->veryEnd:Z
if-nez v1, :cond_2d
.line 6
iget-object v1, p0, Lio/reactivex/internal/operators/flowable/FlowableConcatMap$BaseConcatMapSubscriber;->errors:Lio/reactivex/internal/util/AtomicThrowable;
invoke-virtual {v1}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/Throwable;
if-eqz v1, :cond_2d
.line 7
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableConcatMap$ConcatMapDelayed;->downstream:Lf/b/c;
iget-object v1, p0, Lio/reactivex/internal/operators/flowable/FlowableConcatMap$BaseConcatMapSubscriber;->errors:Lio/reactivex/internal/util/AtomicThrowable;
invoke-virtual {v1}, Lio/reactivex/internal/util/AtomicThrowable;->terminate()Ljava/lang/Throwable;
move-result-object v1
invoke-interface {v0, v1}, Lf/b/c;->onError(Ljava/lang/Throwable;)V
return-void
.line 8
:cond_2d
:try_start_2d
iget-object v1, p0, Lio/reactivex/internal/operators/flowable/FlowableConcatMap$BaseConcatMapSubscriber;->queue:Lio/reactivex/c/a/k;
invoke-interface {v1}, Lio/reactivex/c/a/k;->poll()Ljava/lang/Object;
move-result-object v1
:try_end_33
.catch Ljava/lang/Throwable; {:try_start_2d .. :try_end_33} :catch_e3
const/4 v2, 0x0
const/4 v3, 0x1
if-nez v1, :cond_39
const/4 v4, 0x1
goto :goto_3a
:cond_39
const/4 v4, 0x0
:goto_3a
if-eqz v0, :cond_52
if-eqz v4, :cond_52
.line 9
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableConcatMap$BaseConcatMapSubscriber;->errors:Lio/reactivex/internal/util/AtomicThrowable;
invoke-virtual {v0}, Lio/reactivex/internal/util/AtomicThrowable;->terminate()Ljava/lang/Throwable;
move-result-object v0
if-eqz v0, :cond_4c
.line 10
iget-object v1, p0, Lio/reactivex/internal/operators/flowable/FlowableConcatMap$ConcatMapDelayed;->downstream:Lf/b/c;
invoke-interface {v1, v0}, Lf/b/c;->onError(Ljava/lang/Throwable;)V
goto :goto_51
.line 11
:cond_4c
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableConcatMap$ConcatMapDelayed;->downstream:Lf/b/c;
invoke-interface {v0}, Lf/b/c;->onComplete()V
:goto_51
return-void
:cond_52
if-nez v4, :cond_fd
.line 12
:try_start_54
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableConcatMap$BaseConcatMapSubscriber;->mapper:Lio/reactivex/b/o;
invoke-interface {v0, v1}, Lio/reactivex/b/o;->apply(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
const-string v1, "The mapper returned a null Publisher"
invoke-static {v0, v1}, Lio/reactivex/internal/functions/a;->a(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
check-cast v0, Lf/b/b;
:try_end_61
.catch Ljava/lang/Throwable; {:try_start_54 .. :try_end_61} :catch_c9
.line 13
iget v1, p0, Lio/reactivex/internal/operators/flowable/FlowableConcatMap$BaseConcatMapSubscriber;->sourceMode:I
if-eq v1, v3, :cond_77
.line 14
iget v1, p0, Lio/reactivex/internal/operators/flowable/FlowableConcatMap$BaseConcatMapSubscriber;->consumed:I
add-int/2addr v1, v3
.line 15
iget v4, p0, Lio/reactivex/internal/operators/flowable/FlowableConcatMap$BaseConcatMapSubscriber;->limit:I
if-ne v1, v4, :cond_75
.line 16
iput v2, p0, Lio/reactivex/internal/operators/flowable/FlowableConcatMap$BaseConcatMapSubscriber;->consumed:I
.line 17
iget-object v2, p0, Lio/reactivex/internal/operators/flowable/FlowableConcatMap$BaseConcatMapSubscriber;->upstream:Lf/b/d;
int-to-long v4, v1
invoke-interface {v2, v4, v5}, Lf/b/d;->request(J)V
goto :goto_77
.line 18
:cond_75
iput v1, p0, Lio/reactivex/internal/operators/flowable/FlowableConcatMap$BaseConcatMapSubscriber;->consumed:I
.line 19
:cond_77
:goto_77
instance-of v1, v0, Ljava/util/concurrent/Callable;
if-eqz v1, :cond_c1
.line 20
check-cast v0, Ljava/util/concurrent/Callable;
.line 21
:try_start_7d
invoke-interface {v0}, Ljava/util/concurrent/Callable;->call()Ljava/lang/Object;
move-result-object v0
:try_end_81
.catch Ljava/lang/Throwable; {:try_start_7d .. :try_end_81} :catch_82
goto :goto_a1
:catch_82
move-exception v0
.line 22
invoke-static {v0}, Lio/reactivex/exceptions/a;->b(Ljava/lang/Throwable;)V
.line 23
iget-object v1, p0, Lio/reactivex/internal/operators/flowable/FlowableConcatMap$BaseConcatMapSubscriber;->errors:Lio/reactivex/internal/util/AtomicThrowable;
invoke-virtual {v1, v0}, Lio/reactivex/internal/util/AtomicThrowable;->addThrowable(Ljava/lang/Throwable;)Z
.line 24
iget-boolean v0, p0, Lio/reactivex/internal/operators/flowable/FlowableConcatMap$ConcatMapDelayed;->veryEnd:Z
if-nez v0, :cond_a0
.line 25
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableConcatMap$BaseConcatMapSubscriber;->upstream:Lf/b/d;
invoke-interface {v0}, Lf/b/d;->cancel()V
.line 26
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableConcatMap$ConcatMapDelayed;->downstream:Lf/b/c;
iget-object v1, p0, Lio/reactivex/internal/operators/flowable/FlowableConcatMap$BaseConcatMapSubscriber;->errors:Lio/reactivex/internal/util/AtomicThrowable;
invoke-virtual {v1}, Lio/reactivex/internal/util/AtomicThrowable;->terminate()Ljava/lang/Throwable;
move-result-object v1
invoke-interface {v0, v1}, Lf/b/c;->onError(Ljava/lang/Throwable;)V
return-void
:cond_a0
const/4 v0, 0x0
:goto_a1
if-nez v0, :cond_a5
goto/16 :goto_6
.line 27
:cond_a5
iget-object v1, p0, Lio/reactivex/internal/operators/flowable/FlowableConcatMap$BaseConcatMapSubscriber;->inner:Lio/reactivex/internal/operators/flowable/FlowableConcatMap$ConcatMapInner;
invoke-virtual {v1}, Lio/reactivex/internal/subscriptions/SubscriptionArbiter;->isUnbounded()Z
move-result v1
if-eqz v1, :cond_b4
.line 28
iget-object v1, p0, Lio/reactivex/internal/operators/flowable/FlowableConcatMap$ConcatMapDelayed;->downstream:Lf/b/c;
invoke-interface {v1, v0}, Lf/b/c;->onNext(Ljava/lang/Object;)V
goto/16 :goto_6
.line 29
:cond_b4
iput-boolean v3, p0, Lio/reactivex/internal/operators/flowable/FlowableConcatMap$BaseConcatMapSubscriber;->active:Z
.line 30
iget-object v1, p0, Lio/reactivex/internal/operators/flowable/FlowableConcatMap$BaseConcatMapSubscriber;->inner:Lio/reactivex/internal/operators/flowable/FlowableConcatMap$ConcatMapInner;
new-instance v2, Lio/reactivex/internal/operators/flowable/FlowableConcatMap$b;
invoke-direct {v2, v0, v1}, Lio/reactivex/internal/operators/flowable/FlowableConcatMap$b;-><init>(Ljava/lang/Object;Lf/b/c;)V
invoke-virtual {v1, v2}, Lio/reactivex/internal/subscriptions/SubscriptionArbiter;->setSubscription(Lf/b/d;)V
goto :goto_fd
.line 31
:cond_c1
iput-boolean v3, p0, Lio/reactivex/internal/operators/flowable/FlowableConcatMap$BaseConcatMapSubscriber;->active:Z
.line 32
iget-object v1, p0, Lio/reactivex/internal/operators/flowable/FlowableConcatMap$BaseConcatMapSubscriber;->inner:Lio/reactivex/internal/operators/flowable/FlowableConcatMap$ConcatMapInner;
invoke-interface {v0, v1}, Lf/b/b;->a(Lf/b/c;)V
goto :goto_fd
:catch_c9
move-exception v0
.line 33
invoke-static {v0}, Lio/reactivex/exceptions/a;->b(Ljava/lang/Throwable;)V
.line 34
iget-object v1, p0, Lio/reactivex/internal/operators/flowable/FlowableConcatMap$BaseConcatMapSubscriber;->upstream:Lf/b/d;
invoke-interface {v1}, Lf/b/d;->cancel()V
.line 35
iget-object v1, p0, Lio/reactivex/internal/operators/flowable/FlowableConcatMap$BaseConcatMapSubscriber;->errors:Lio/reactivex/internal/util/AtomicThrowable;
invoke-virtual {v1, v0}, Lio/reactivex/internal/util/AtomicThrowable;->addThrowable(Ljava/lang/Throwable;)Z
.line 36
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableConcatMap$ConcatMapDelayed;->downstream:Lf/b/c;
iget-object v1, p0, Lio/reactivex/internal/operators/flowable/FlowableConcatMap$BaseConcatMapSubscriber;->errors:Lio/reactivex/internal/util/AtomicThrowable;
invoke-virtual {v1}, Lio/reactivex/internal/util/AtomicThrowable;->terminate()Ljava/lang/Throwable;
move-result-object v1
invoke-interface {v0, v1}, Lf/b/c;->onError(Ljava/lang/Throwable;)V
return-void
:catch_e3
move-exception v0
.line 37
invoke-static {v0}, Lio/reactivex/exceptions/a;->b(Ljava/lang/Throwable;)V
.line 38
iget-object v1, p0, Lio/reactivex/internal/operators/flowable/FlowableConcatMap$BaseConcatMapSubscriber;->upstream:Lf/b/d;
invoke-interface {v1}, Lf/b/d;->cancel()V
.line 39
iget-object v1, p0, Lio/reactivex/internal/operators/flowable/FlowableConcatMap$BaseConcatMapSubscriber;->errors:Lio/reactivex/internal/util/AtomicThrowable;
invoke-virtual {v1, v0}, Lio/reactivex/internal/util/AtomicThrowable;->addThrowable(Ljava/lang/Throwable;)Z
.line 40
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableConcatMap$ConcatMapDelayed;->downstream:Lf/b/c;
iget-object v1, p0, Lio/reactivex/internal/operators/flowable/FlowableConcatMap$BaseConcatMapSubscriber;->errors:Lio/reactivex/internal/util/AtomicThrowable;
invoke-virtual {v1}, Lio/reactivex/internal/util/AtomicThrowable;->terminate()Ljava/lang/Throwable;
move-result-object v1
invoke-interface {v0, v1}, Lf/b/c;->onError(Ljava/lang/Throwable;)V
return-void
.line 41
:cond_fd
:goto_fd
invoke-virtual {p0}, Ljava/util/concurrent/atomic/AtomicInteger;->decrementAndGet()I
move-result v0
if-nez v0, :cond_6
:cond_103
return-void
.end method
.method public innerError(Ljava/lang/Throwable;)V
.registers 3
.line 1
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableConcatMap$BaseConcatMapSubscriber;->errors:Lio/reactivex/internal/util/AtomicThrowable;
invoke-virtual {v0, p1}, Lio/reactivex/internal/util/AtomicThrowable;->addThrowable(Ljava/lang/Throwable;)Z
move-result v0
if-eqz v0, :cond_1b
.line 2
iget-boolean p1, p0, Lio/reactivex/internal/operators/flowable/FlowableConcatMap$ConcatMapDelayed;->veryEnd:Z
if-nez p1, :cond_14
.line 3
iget-object p1, p0, Lio/reactivex/internal/operators/flowable/FlowableConcatMap$BaseConcatMapSubscriber;->upstream:Lf/b/d;
invoke-interface {p1}, Lf/b/d;->cancel()V
const/4 p1, 0x1
.line 4
iput-boolean p1, p0, Lio/reactivex/internal/operators/flowable/FlowableConcatMap$BaseConcatMapSubscriber;->done:Z
:cond_14
const/4 p1, 0x0
.line 5
iput-boolean p1, p0, Lio/reactivex/internal/operators/flowable/FlowableConcatMap$BaseConcatMapSubscriber;->active:Z
.line 6
invoke-virtual {p0}, Lio/reactivex/internal/operators/flowable/FlowableConcatMap$ConcatMapDelayed;->drain()V
goto :goto_1e
.line 7
:cond_1b
invoke-static {p1}, Lio/reactivex/e/a;->b(Ljava/lang/Throwable;)V
:goto_1e
return-void
.end method
.method public innerNext(Ljava/lang/Object;)V
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(TR;)V"
}
.end annotation
.line 1
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableConcatMap$ConcatMapDelayed;->downstream:Lf/b/c;
invoke-interface {v0, p1}, Lf/b/c;->onNext(Ljava/lang/Object;)V
return-void
.end method
.method public onError(Ljava/lang/Throwable;)V
.registers 3
.line 1
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableConcatMap$BaseConcatMapSubscriber;->errors:Lio/reactivex/internal/util/AtomicThrowable;
invoke-virtual {v0, p1}, Lio/reactivex/internal/util/AtomicThrowable;->addThrowable(Ljava/lang/Throwable;)Z
move-result v0
if-eqz v0, :cond_f
const/4 p1, 0x1
.line 2
iput-boolean p1, p0, Lio/reactivex/internal/operators/flowable/FlowableConcatMap$BaseConcatMapSubscriber;->done:Z
.line 3
invoke-virtual {p0}, Lio/reactivex/internal/operators/flowable/FlowableConcatMap$ConcatMapDelayed;->drain()V
goto :goto_12
.line 4
:cond_f
invoke-static {p1}, Lio/reactivex/e/a;->b(Ljava/lang/Throwable;)V
:goto_12
return-void
.end method
.method public request(J)V
.registers 4
.line 1
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableConcatMap$BaseConcatMapSubscriber;->inner:Lio/reactivex/internal/operators/flowable/FlowableConcatMap$ConcatMapInner;
invoke-virtual {v0, p1, p2}, Lio/reactivex/internal/subscriptions/SubscriptionArbiter;->request(J)V
return-void
.end method
.method subscribeActual()V
.registers 2
.line 1
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableConcatMap$ConcatMapDelayed;->downstream:Lf/b/c;
invoke-interface {v0, p0}, Lf/b/c;->onSubscribe(Lf/b/d;)V
return-void
.end method