b1.smali

.class public final Lio/reactivex/internal/operators/observable/b1;
.super Lio/reactivex/l;
.source "SourceFile"


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

.annotation system Ldalvik/annotation/Signature;
    value = {
        "<T:",
        "Ljava/lang/Object;",
        ">",
        "Lio/reactivex/l<",
        "TT;>;"
    }
.end annotation


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


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

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

    .line 2
    iput-object p1, p0, Lio/reactivex/internal/operators/observable/b1;->a:Ljava/lang/Iterable;

    return-void
.end method


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

    .line 1
    :try_start_0
    iget-object v0, p0, Lio/reactivex/internal/operators/observable/b1;->a:Ljava/lang/Iterable;

    invoke-interface {v0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;

    move-result-object v0
    :try_end_6
    .catchall {:try_start_0 .. :try_end_6} :catchall_64

    .line 2
    :try_start_6
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1
    :try_end_a
    .catchall {:try_start_6 .. :try_end_a} :catchall_5c

    if-nez v1, :cond_10

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

    return-void

    .line 4
    :cond_10
    new-instance v1, Lio/reactivex/internal/operators/observable/b1$a;

    invoke-direct {v1, p1, v0}, Lio/reactivex/internal/operators/observable/b1$a;-><init>(Lio/reactivex/s;Ljava/util/Iterator;)V

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

    .line 6
    iget-boolean p1, v1, Lio/reactivex/internal/operators/observable/b1$a;->d:Z

    if-nez p1, :cond_5b

    .line 7
    :cond_1c
    iget-boolean p1, v1, Lio/reactivex/internal/operators/observable/b1$a;->c:Z

    if-eqz p1, :cond_21

    goto :goto_5b

    .line 8
    :cond_21
    :try_start_21
    iget-object p1, v1, Lio/reactivex/internal/operators/observable/b1$a;->b:Ljava/util/Iterator;

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object p1

    const-string v0, "The iterator returned a null value"

    .line 9
    invoke-static {p1, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
    :try_end_2c
    .catchall {:try_start_21 .. :try_end_2c} :catchall_52

    .line 10
    iget-object v0, v1, Lio/reactivex/internal/operators/observable/b1$a;->a:Lio/reactivex/s;

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

    .line 11
    iget-boolean p1, v1, Lio/reactivex/internal/operators/observable/b1$a;->c:Z

    if-eqz p1, :cond_36

    goto :goto_5b

    .line 12
    :cond_36
    :try_start_36
    iget-object p1, v1, Lio/reactivex/internal/operators/observable/b1$a;->b:Ljava/util/Iterator;

    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result p1
    :try_end_3c
    .catchall {:try_start_36 .. :try_end_3c} :catchall_48

    if-nez p1, :cond_1c

    .line 13
    iget-boolean p1, v1, Lio/reactivex/internal/operators/observable/b1$a;->c:Z

    if-nez p1, :cond_5b

    .line 14
    iget-object p1, v1, Lio/reactivex/internal/operators/observable/b1$a;->a:Lio/reactivex/s;

    invoke-interface {p1}, Lio/reactivex/s;->onComplete()V

    goto :goto_5b

    :catchall_48
    move-exception p1

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

    .line 16
    iget-object v0, v1, Lio/reactivex/internal/operators/observable/b1$a;->a:Lio/reactivex/s;

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

    goto :goto_5b

    :catchall_52
    move-exception p1

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

    .line 18
    iget-object v0, v1, Lio/reactivex/internal/operators/observable/b1$a;->a:Lio/reactivex/s;

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

    :cond_5b
    :goto_5b
    return-void

    :catchall_5c
    move-exception v0

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

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

    return-void

    :catchall_64
    move-exception v0

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

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

    return-void
.end method