by.smali

.class final Lio/reactivex/internal/operators/observable/by;
.super Lio/reactivex/internal/observers/a;
.source "ObservableFilter.java"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "<T:",
        "Ljava/lang/Object;",
        ">",
        "Lio/reactivex/internal/observers/a",
        "<TT;TT;>;"
    }
.end annotation


# instance fields
.field private bQe:Lio/reactivex/b/p;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lio/reactivex/b/p",
            "<-TT;>;"
        }
    .end annotation
.end field


# direct methods
.method constructor <init>(Lio/reactivex/r;Lio/reactivex/b/p;)V
    .registers 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lio/reactivex/r",
            "<-TT;>;",
            "Lio/reactivex/b/p",
            "<-TT;>;)V"
        }
    .end annotation

    .prologue
    .line 37
    invoke-direct {p0, p1}, Lio/reactivex/internal/observers/a;-><init>(Lio/reactivex/r;)V

    .line 38
    iput-object p2, p0, Lio/reactivex/internal/operators/observable/by;->bQe:Lio/reactivex/b/p;

    .line 39
    return-void
.end method


# virtual methods
.method public final onNext(Ljava/lang/Object;)V
    .registers 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(TT;)V"
        }
    .end annotation

    .prologue
    .line 43
    iget v0, p0, Lio/reactivex/internal/operators/observable/by;->sourceMode:I

    if-nez v0, :cond_17

    .line 46
    :try_start_4
    iget-object v0, p0, Lio/reactivex/internal/operators/observable/by;->bQe:Lio/reactivex/b/p;

    invoke-interface {v0, p1}, Lio/reactivex/b/p;->test(Ljava/lang/Object;)Z
    :try_end_9
    .catch Ljava/lang/Throwable; {:try_start_4 .. :try_end_9} :catch_12

    move-result v0

    .line 51
    if-eqz v0, :cond_11

    .line 52
    iget-object v0, p0, Lio/reactivex/internal/operators/observable/by;->actual:Lio/reactivex/r;

    invoke-interface {v0, p1}, Lio/reactivex/r;->onNext(Ljava/lang/Object;)V

    .line 57
    :cond_11
    :goto_11
    return-void

    .line 47
    :catch_12
    move-exception v0

    .line 48
    invoke-virtual {p0, v0}, Lio/reactivex/internal/operators/observable/by;->k(Ljava/lang/Throwable;)V

    goto :goto_11

    .line 55
    :cond_17
    iget-object v0, p0, Lio/reactivex/internal/operators/observable/by;->actual:Lio/reactivex/r;

    const/4 v1, 0x0

    invoke-interface {v0, v1}, Lio/reactivex/r;->onNext(Ljava/lang/Object;)V

    goto :goto_11
.end method

.method public final poll()Ljava/lang/Object;
    .registers 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()TT;"
        }
    .end annotation

    .prologue
    .line 68
    :cond_0
    iget-object v0, p0, Lio/reactivex/internal/operators/observable/by;->bOT:Lio/reactivex/internal/a/b;

    invoke-interface {v0}, Lio/reactivex/internal/a/b;->poll()Ljava/lang/Object;

    move-result-object v0

    .line 69
    if-eqz v0, :cond_10

    iget-object v1, p0, Lio/reactivex/internal/operators/observable/by;->bQe:Lio/reactivex/b/p;

    invoke-interface {v1, v0}, Lio/reactivex/b/p;->test(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 70
    :cond_10
    return-object v0
.end method

.method public final requestFusion(I)I
    .registers 3

    .prologue
    .line 61
    invoke-virtual {p0, p1}, Lio/reactivex/internal/operators/observable/by;->fe(I)I

    move-result v0

    return v0
.end method