c.smali

.class public final Lio/reactivex/internal/operators/maybe/c;
.super Lio/reactivex/h;
.source "SourceFile"

# interfaces
.implements Ljava/util/concurrent/Callable;


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "<T:",
        "Ljava/lang/Object;",
        ">",
        "Lio/reactivex/h<",
        "TT;>;",
        "Ljava/util/concurrent/Callable<",
        "TT;>;"
    }
.end annotation


# instance fields
.field public final a:Ljava/util/concurrent/Callable;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/concurrent/Callable<",
            "+TT;>;"
        }
    .end annotation
.end field


# direct methods
.method public constructor <init>(Ljava/util/concurrent/Callable;)V
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/concurrent/Callable<",
            "+TT;>;)V"
        }
    .end annotation

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

    .line 2
    iput-object p1, p0, Lio/reactivex/internal/operators/maybe/c;->a:Ljava/util/concurrent/Callable;

    return-void
.end method


# virtual methods
.method public final c(Lio/reactivex/i;)V
    .registers 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lio/reactivex/i<",
            "-TT;>;)V"
        }
    .end annotation

    .line 1
    invoke-static {}, Lcom/google/android/material/shape/e;->g()Lio/reactivex/disposables/b;

    move-result-object v0

    .line 2
    invoke-interface {p1, v0}, Lio/reactivex/i;->onSubscribe(Lio/reactivex/disposables/b;)V

    .line 3
    check-cast v0, Lio/reactivex/disposables/c;

    invoke-virtual {v0}, Lio/reactivex/disposables/c;->isDisposed()Z

    move-result v1

    if-nez v1, :cond_36

    .line 4
    :try_start_f
    iget-object v1, p0, Lio/reactivex/internal/operators/maybe/c;->a:Ljava/util/concurrent/Callable;

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

    move-result-object v1
    :try_end_15
    .catchall {:try_start_f .. :try_end_15} :catchall_25

    .line 5
    invoke-virtual {v0}, Lio/reactivex/disposables/c;->isDisposed()Z

    move-result v0

    if-nez v0, :cond_36

    if-nez v1, :cond_21

    .line 6
    invoke-interface {p1}, Lio/reactivex/i;->onComplete()V

    goto :goto_36

    .line 7
    :cond_21
    invoke-interface {p1, v1}, Lio/reactivex/i;->onSuccess(Ljava/lang/Object;)V

    goto :goto_36

    :catchall_25
    move-exception v1

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

    .line 9
    invoke-virtual {v0}, Lio/reactivex/disposables/c;->isDisposed()Z

    move-result v0

    if-nez v0, :cond_33

    .line 10
    invoke-interface {p1, v1}, Lio/reactivex/i;->onError(Ljava/lang/Throwable;)V

    goto :goto_36

    .line 11
    :cond_33
    invoke-static {v1}, Lio/reactivex/plugins/a;->b(Ljava/lang/Throwable;)V

    :cond_36
    :goto_36
    return-void
.end method

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

    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    iget-object v0, p0, Lio/reactivex/internal/operators/maybe/c;->a:Ljava/util/concurrent/Callable;

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

    move-result-object v0

    return-object v0
.end method