2022-06-10 21:38:30 +09:00

146 lines
3.4 KiB
Smali

.class public final Lio/reactivex/internal/operators/maybe/MaybeMergeArray;
.super Lkh/j;
.source "MaybeMergeArray.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lio/reactivex/internal/operators/maybe/MaybeMergeArray$ClqSimpleQueue;,
Lio/reactivex/internal/operators/maybe/MaybeMergeArray$MpscFillOnceSimpleQueue;,
Lio/reactivex/internal/operators/maybe/MaybeMergeArray$a;,
Lio/reactivex/internal/operators/maybe/MaybeMergeArray$MergeMaybeObserver;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Lkh/j<",
"TT;>;"
}
.end annotation
# instance fields
.field public final b:[Lkh/w;
.annotation system Ldalvik/annotation/Signature;
value = {
"[",
"Lkh/w<",
"+TT;>;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>([Lkh/w;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"([",
"Lkh/w<",
"+TT;>;)V"
}
.end annotation
.line 1
invoke-direct {p0}, Lkh/j;-><init>()V
.line 2
iput-object p1, p0, Lio/reactivex/internal/operators/maybe/MaybeMergeArray;->b:[Lkh/w;
return-void
.end method
# virtual methods
.method public g6(Lok/d;)V
.locals 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lok/d<",
"-TT;>;)V"
}
.end annotation
.line 1
iget-object v0, p0, Lio/reactivex/internal/operators/maybe/MaybeMergeArray;->b:[Lkh/w;
.line 2
array-length v1, v0
.line 3
invoke-static {}, Lkh/j;->U()I
move-result v2
if-gt v1, v2, :cond_0
.line 4
new-instance v2, Lio/reactivex/internal/operators/maybe/MaybeMergeArray$MpscFillOnceSimpleQueue;
invoke-direct {v2, v1}, Lio/reactivex/internal/operators/maybe/MaybeMergeArray$MpscFillOnceSimpleQueue;-><init>(I)V
goto :goto_0
.line 5
:cond_0
new-instance v2, Lio/reactivex/internal/operators/maybe/MaybeMergeArray$ClqSimpleQueue;
invoke-direct {v2}, Lio/reactivex/internal/operators/maybe/MaybeMergeArray$ClqSimpleQueue;-><init>()V
.line 6
:goto_0
new-instance v3, Lio/reactivex/internal/operators/maybe/MaybeMergeArray$MergeMaybeObserver;
invoke-direct {v3, p1, v1, v2}, Lio/reactivex/internal/operators/maybe/MaybeMergeArray$MergeMaybeObserver;-><init>(Lok/d;ILio/reactivex/internal/operators/maybe/MaybeMergeArray$a;)V
.line 7
invoke-interface {p1, v3}, Lok/d;->onSubscribe(Lok/e;)V
.line 8
iget-object p1, v3, Lio/reactivex/internal/operators/maybe/MaybeMergeArray$MergeMaybeObserver;->error:Lio/reactivex/internal/util/AtomicThrowable;
.line 9
array-length v1, v0
const/4 v2, 0x0
:goto_1
if-ge v2, v1, :cond_2
aget-object v4, v0, v2
.line 10
invoke-virtual {v3}, Lio/reactivex/internal/operators/maybe/MaybeMergeArray$MergeMaybeObserver;->isCancelled()Z
move-result v5
if-nez v5, :cond_2
invoke-virtual {p1}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v5
if-eqz v5, :cond_1
goto :goto_2
.line 11
:cond_1
invoke-interface {v4, v3}, Lkh/w;->b(Lkh/t;)V
add-int/lit8 v2, v2, 0x1
goto :goto_1
:cond_2
:goto_2
return-void
.end method