f3.smali

.class public final Lio/reactivex/internal/operators/observable/f3;
.super Ljava/lang/Object;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lio/reactivex/internal/operators/observable/f3$a;,
        Lio/reactivex/internal/operators/observable/f3$b;
    }
.end annotation


# direct methods
.method public static a(Lio/reactivex/q;Lio/reactivex/s;Lio/reactivex/functions/n;)Z
    .registers 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "<T:",
            "Ljava/lang/Object;",
            "R:",
            "Ljava/lang/Object;",
            ">(",
            "Lio/reactivex/q<",
            "TT;>;",
            "Lio/reactivex/s<",
            "-TR;>;",
            "Lio/reactivex/functions/n<",
            "-TT;+",
            "Lio/reactivex/q<",
            "+TR;>;>;)Z"
        }
    .end annotation

    .line 1
    instance-of v0, p0, Ljava/util/concurrent/Callable;

    if-eqz v0, :cond_54

    const/4 v0, 0x1

    .line 2
    :try_start_5
    check-cast p0, Ljava/util/concurrent/Callable;

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

    move-result-object p0
    :try_end_b
    .catchall {:try_start_5 .. :try_end_b} :catchall_4c

    if-nez p0, :cond_11

    .line 3
    invoke-static {p1}, Lio/reactivex/internal/disposables/d;->complete(Lio/reactivex/s;)V

    return v0

    .line 4
    :cond_11
    :try_start_11
    invoke-interface {p2, p0}, Lio/reactivex/functions/n;->apply(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p0

    const-string p2, "The mapper returned a null ObservableSource"

    .line 5
    invoke-static {p0, p2}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;

    .line 6
    check-cast p0, Lio/reactivex/q;
    :try_end_1c
    .catchall {:try_start_11 .. :try_end_1c} :catchall_44

    .line 7
    instance-of p2, p0, Ljava/util/concurrent/Callable;

    if-eqz p2, :cond_40

    .line 8
    :try_start_20
    check-cast p0, Ljava/util/concurrent/Callable;

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

    move-result-object p0
    :try_end_26
    .catchall {:try_start_20 .. :try_end_26} :catchall_38

    if-nez p0, :cond_2c

    .line 9
    invoke-static {p1}, Lio/reactivex/internal/disposables/d;->complete(Lio/reactivex/s;)V

    return v0

    .line 10
    :cond_2c
    new-instance p2, Lio/reactivex/internal/operators/observable/f3$a;

    invoke-direct {p2, p1, p0}, Lio/reactivex/internal/operators/observable/f3$a;-><init>(Lio/reactivex/s;Ljava/lang/Object;)V

    .line 11
    invoke-interface {p1, p2}, Lio/reactivex/s;->onSubscribe(Lio/reactivex/disposables/b;)V

    .line 12
    invoke-virtual {p2}, Lio/reactivex/internal/operators/observable/f3$a;->run()V

    goto :goto_43

    :catchall_38
    move-exception p0

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

    .line 14
    invoke-static {p0, p1}, Lio/reactivex/internal/disposables/d;->error(Ljava/lang/Throwable;Lio/reactivex/s;)V

    return v0

    .line 15
    :cond_40
    invoke-interface {p0, p1}, Lio/reactivex/q;->subscribe(Lio/reactivex/s;)V

    :goto_43
    return v0

    :catchall_44
    move-exception p0

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

    .line 17
    invoke-static {p0, p1}, Lio/reactivex/internal/disposables/d;->error(Ljava/lang/Throwable;Lio/reactivex/s;)V

    return v0

    :catchall_4c
    move-exception p0

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

    .line 19
    invoke-static {p0, p1}, Lio/reactivex/internal/disposables/d;->error(Ljava/lang/Throwable;Lio/reactivex/s;)V

    return v0

    :cond_54
    const/4 p0, 0x0

    return p0
.end method