b.smali

.class public abstract Lio/reactivex/internal/subscribers/b;
.super Ljava/lang/Object;
.source "BasicFuseableSubscriber.java"

# interfaces
.implements Lio/reactivex/h;
.implements Lio/reactivex/c/a/h;


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


# instance fields
.field protected final a:Lf/b/c;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lf/b/c<",
            "-TR;>;"
        }
    .end annotation
.end field

.field protected b:Lf/b/d;

.field protected c:Lio/reactivex/c/a/h;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lio/reactivex/c/a/h<",
            "TT;>;"
        }
    .end annotation
.end field

.field protected d:Z

.field protected e:I


# direct methods
.method public constructor <init>(Lf/b/c;)V
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lf/b/c<",
            "-TR;>;)V"
        }
    .end annotation

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    iput-object p1, p0, Lio/reactivex/internal/subscribers/b;->a:Lf/b/c;

    return-void
.end method


# virtual methods
.method protected final a(I)I
    .registers 4

    .line 4
    iget-object v0, p0, Lio/reactivex/internal/subscribers/b;->c:Lio/reactivex/c/a/h;

    if-eqz v0, :cond_11

    and-int/lit8 v1, p1, 0x4

    if-nez v1, :cond_11

    .line 5
    invoke-interface {v0, p1}, Lio/reactivex/c/a/g;->requestFusion(I)I

    move-result p1

    if-eqz p1, :cond_10

    .line 6
    iput p1, p0, Lio/reactivex/internal/subscribers/b;->e:I

    :cond_10
    return p1

    :cond_11
    const/4 p1, 0x0

    return p1
.end method

.method protected a()V
    .registers 1

    return-void
.end method

.method protected final a(Ljava/lang/Throwable;)V
    .registers 3

    .line 1
    invoke-static {p1}, Lio/reactivex/exceptions/a;->b(Ljava/lang/Throwable;)V

    .line 2
    iget-object v0, p0, Lio/reactivex/internal/subscribers/b;->b:Lf/b/d;

    invoke-interface {v0}, Lf/b/d;->cancel()V

    .line 3
    invoke-virtual {p0, p1}, Lio/reactivex/internal/subscribers/b;->onError(Ljava/lang/Throwable;)V

    return-void
.end method

.method protected b()Z
    .registers 2

    const/4 v0, 0x1

    return v0
.end method

.method public cancel()V
    .registers 2

    .line 1
    iget-object v0, p0, Lio/reactivex/internal/subscribers/b;->b:Lf/b/d;

    invoke-interface {v0}, Lf/b/d;->cancel()V

    return-void
.end method

.method public clear()V
    .registers 2

    .line 1
    iget-object v0, p0, Lio/reactivex/internal/subscribers/b;->c:Lio/reactivex/c/a/h;

    invoke-interface {v0}, Lio/reactivex/c/a/k;->clear()V

    return-void
.end method

.method public isEmpty()Z
    .registers 2

    .line 1
    iget-object v0, p0, Lio/reactivex/internal/subscribers/b;->c:Lio/reactivex/c/a/h;

    invoke-interface {v0}, Lio/reactivex/c/a/k;->isEmpty()Z

    move-result v0

    return v0
.end method

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

    .line 1
    new-instance p1, Ljava/lang/UnsupportedOperationException;

    const-string v0, "Should not be called!"

    invoke-direct {p1, v0}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V

    throw p1
.end method

.method public onComplete()V
    .registers 2

    .line 1
    iget-boolean v0, p0, Lio/reactivex/internal/subscribers/b;->d:Z

    if-eqz v0, :cond_5

    return-void

    :cond_5
    const/4 v0, 0x1

    .line 2
    iput-boolean v0, p0, Lio/reactivex/internal/subscribers/b;->d:Z

    .line 3
    iget-object v0, p0, Lio/reactivex/internal/subscribers/b;->a:Lf/b/c;

    invoke-interface {v0}, Lf/b/c;->onComplete()V

    return-void
.end method

.method public onError(Ljava/lang/Throwable;)V
    .registers 3

    .line 1
    iget-boolean v0, p0, Lio/reactivex/internal/subscribers/b;->d:Z

    if-eqz v0, :cond_8

    .line 2
    invoke-static {p1}, Lio/reactivex/e/a;->b(Ljava/lang/Throwable;)V

    return-void

    :cond_8
    const/4 v0, 0x1

    .line 3
    iput-boolean v0, p0, Lio/reactivex/internal/subscribers/b;->d:Z

    .line 4
    iget-object v0, p0, Lio/reactivex/internal/subscribers/b;->a:Lf/b/c;

    invoke-interface {v0, p1}, Lf/b/c;->onError(Ljava/lang/Throwable;)V

    return-void
.end method

.method public final onSubscribe(Lf/b/d;)V
    .registers 3

    .line 1
    iget-object v0, p0, Lio/reactivex/internal/subscribers/b;->b:Lf/b/d;

    invoke-static {v0, p1}, Lio/reactivex/internal/subscriptions/SubscriptionHelper;->validate(Lf/b/d;Lf/b/d;)Z

    move-result v0

    if-eqz v0, :cond_20

    .line 2
    iput-object p1, p0, Lio/reactivex/internal/subscribers/b;->b:Lf/b/d;

    .line 3
    instance-of v0, p1, Lio/reactivex/c/a/h;

    if-eqz v0, :cond_12

    .line 4
    check-cast p1, Lio/reactivex/c/a/h;

    iput-object p1, p0, Lio/reactivex/internal/subscribers/b;->c:Lio/reactivex/c/a/h;

    .line 5
    :cond_12
    invoke-virtual {p0}, Lio/reactivex/internal/subscribers/b;->b()Z

    move-result p1

    if-eqz p1, :cond_20

    .line 6
    iget-object p1, p0, Lio/reactivex/internal/subscribers/b;->a:Lf/b/c;

    invoke-interface {p1, p0}, Lf/b/c;->onSubscribe(Lf/b/d;)V

    .line 7
    invoke-virtual {p0}, Lio/reactivex/internal/subscribers/b;->a()V

    :cond_20
    return-void
.end method

.method public request(J)V
    .registers 4

    .line 1
    iget-object v0, p0, Lio/reactivex/internal/subscribers/b;->b:Lf/b/d;

    invoke-interface {v0, p1, p2}, Lf/b/d;->request(J)V

    return-void
.end method