s.smali

.class public final Lio/reactivex/internal/operators/flowable/s;
.super Lio/reactivex/f;
.source "SourceFile"


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


# instance fields
.field public final b:Ljava/lang/Object;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "TT;"
        }
    .end annotation
.end field

.field public final c:Lio/reactivex/functions/n;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lio/reactivex/functions/n<",
            "-TT;+",
            "Lorg/reactivestreams/a<",
            "+TR;>;>;"
        }
    .end annotation
.end field


# direct methods
.method public constructor <init>(Ljava/lang/Object;Lio/reactivex/functions/n;)V
    .registers 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(TT;",
            "Lio/reactivex/functions/n<",
            "-TT;+",
            "Lorg/reactivestreams/a<",
            "+TR;>;>;)V"
        }
    .end annotation

    .line 1
    invoke-direct {p0}, Lio/reactivex/f;-><init>()V

    .line 2
    iput-object p1, p0, Lio/reactivex/internal/operators/flowable/s;->b:Ljava/lang/Object;

    .line 3
    iput-object p2, p0, Lio/reactivex/internal/operators/flowable/s;->c:Lio/reactivex/functions/n;

    return-void
.end method


# virtual methods
.method public final k(Lorg/reactivestreams/b;)V
    .registers 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lorg/reactivestreams/b<",
            "-TR;>;)V"
        }
    .end annotation

    .line 1
    :try_start_0
    iget-object v0, p0, Lio/reactivex/internal/operators/flowable/s;->c:Lio/reactivex/functions/n;

    iget-object v1, p0, Lio/reactivex/internal/operators/flowable/s;->b:Ljava/lang/Object;

    invoke-interface {v0, v1}, Lio/reactivex/functions/n;->apply(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    const-string v1, "The mapper returned a null Publisher"

    .line 2
    invoke-static {v0, v1}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;

    .line 3
    check-cast v0, Lorg/reactivestreams/a;
    :try_end_f
    .catchall {:try_start_0 .. :try_end_f} :catchall_34

    .line 4
    instance-of v1, v0, Ljava/util/concurrent/Callable;

    if-eqz v1, :cond_30

    .line 5
    :try_start_13
    check-cast v0, Ljava/util/concurrent/Callable;

    invoke-interface {v0}, Ljava/util/concurrent/Callable;->call()Ljava/lang/Object;

    move-result-object v0
    :try_end_19
    .catchall {:try_start_13 .. :try_end_19} :catchall_28

    if-nez v0, :cond_1f

    .line 6
    invoke-static {p1}, Lio/reactivex/internal/subscriptions/c;->complete(Lorg/reactivestreams/b;)V

    return-void

    .line 7
    :cond_1f
    new-instance v1, Lio/reactivex/internal/subscriptions/d;

    invoke-direct {v1, p1, v0}, Lio/reactivex/internal/subscriptions/d;-><init>(Lorg/reactivestreams/b;Ljava/lang/Object;)V

    invoke-interface {p1, v1}, Lorg/reactivestreams/b;->onSubscribe(Lorg/reactivestreams/c;)V

    goto :goto_33

    :catchall_28
    move-exception v0

    .line 8
    invoke-static {v0}, Lcom/shopee/app/dre/codepush/task/a;->m(Ljava/lang/Throwable;)V

    .line 9
    invoke-static {v0, p1}, Lio/reactivex/internal/subscriptions/c;->error(Ljava/lang/Throwable;Lorg/reactivestreams/b;)V

    return-void

    .line 10
    :cond_30
    invoke-interface {v0, p1}, Lorg/reactivestreams/a;->a(Lorg/reactivestreams/b;)V

    :goto_33
    return-void

    :catchall_34
    move-exception v0

    .line 11
    invoke-static {v0, p1}, Lio/reactivex/internal/subscriptions/c;->error(Ljava/lang/Throwable;Lorg/reactivestreams/b;)V

    return-void
.end method