n$a.smali

.class public final Lio/reactivex/internal/operators/observable/n$a;
.super Lio/reactivex/observers/c;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lio/reactivex/internal/operators/observable/n;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x19
    name = "a"
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "<T:",
        "Ljava/lang/Object;",
        "U::",
        "Ljava/util/Collection<",
        "-TT;>;B:",
        "Ljava/lang/Object;",
        ">",
        "Lio/reactivex/observers/c<",
        "TB;>;"
    }
.end annotation


# instance fields
.field public final b:Lio/reactivex/internal/operators/observable/n$b;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lio/reactivex/internal/operators/observable/n$b<",
            "TT;TU;TB;>;"
        }
    .end annotation
.end field


# direct methods
.method public constructor <init>(Lio/reactivex/internal/operators/observable/n$b;)V
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lio/reactivex/internal/operators/observable/n$b<",
            "TT;TU;TB;>;)V"
        }
    .end annotation

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

    .line 2
    iput-object p1, p0, Lio/reactivex/internal/operators/observable/n$a;->b:Lio/reactivex/internal/operators/observable/n$b;

    return-void
.end method


# virtual methods
.method public final onComplete()V
    .registers 2

    iget-object v0, p0, Lio/reactivex/internal/operators/observable/n$a;->b:Lio/reactivex/internal/operators/observable/n$b;

    invoke-virtual {v0}, Lio/reactivex/internal/operators/observable/n$b;->onComplete()V

    return-void
.end method

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

    iget-object v0, p0, Lio/reactivex/internal/operators/observable/n$a;->b:Lio/reactivex/internal/operators/observable/n$b;

    invoke-virtual {v0, p1}, Lio/reactivex/internal/operators/observable/n$b;->onError(Ljava/lang/Throwable;)V

    return-void
.end method

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

    .line 1
    iget-object p1, p0, Lio/reactivex/internal/operators/observable/n$a;->b:Lio/reactivex/internal/operators/observable/n$b;

    invoke-static {p1}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;

    .line 2
    :try_start_5
    iget-object v0, p1, Lio/reactivex/internal/operators/observable/n$b;->g:Ljava/util/concurrent/Callable;

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

    move-result-object v0

    const-string v1, "The buffer supplied is null"

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

    .line 4
    check-cast v0, Ljava/util/Collection;
    :try_end_12
    .catchall {:try_start_5 .. :try_end_12} :catchall_23

    .line 5
    monitor-enter p1

    .line 6
    :try_start_13
    iget-object v1, p1, Lio/reactivex/internal/operators/observable/n$b;->k:Ljava/util/Collection;

    if-nez v1, :cond_19

    .line 7
    monitor-exit p1

    goto :goto_2f

    .line 8
    :cond_19
    iput-object v0, p1, Lio/reactivex/internal/operators/observable/n$b;->k:Ljava/util/Collection;

    .line 9
    monitor-exit p1
    :try_end_1c
    .catchall {:try_start_13 .. :try_end_1c} :catchall_20

    .line 10
    invoke-virtual {p1, v1, p1}, Lio/reactivex/internal/observers/s;->d(Ljava/lang/Object;Lio/reactivex/disposables/b;)V

    goto :goto_2f

    :catchall_20
    move-exception v0

    .line 11
    :try_start_21
    monitor-exit p1
    :try_end_22
    .catchall {:try_start_21 .. :try_end_22} :catchall_20

    throw v0

    :catchall_23
    move-exception v0

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

    .line 13
    invoke-virtual {p1}, Lio/reactivex/internal/operators/observable/n$b;->dispose()V

    .line 14
    iget-object p1, p1, Lio/reactivex/internal/observers/s;->b:Lio/reactivex/s;

    invoke-interface {p1, v0}, Lio/reactivex/s;->onError(Ljava/lang/Throwable;)V

    :goto_2f
    return-void
.end method