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

214 lines
5.1 KiB
Smali

.class public final Lio/reactivex/internal/operators/parallel/ParallelRunOn;
.super Lvh/a;
.source "ParallelRunOn.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lio/reactivex/internal/operators/parallel/ParallelRunOn$RunOnConditionalSubscriber;,
Lio/reactivex/internal/operators/parallel/ParallelRunOn$RunOnSubscriber;,
Lio/reactivex/internal/operators/parallel/ParallelRunOn$BaseRunOnSubscriber;,
Lio/reactivex/internal/operators/parallel/ParallelRunOn$a;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Lvh/a<",
"TT;>;"
}
.end annotation
# instance fields
.field public final a:Lvh/a;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lvh/a<",
"+TT;>;"
}
.end annotation
.end field
.field public final b:Lkh/h0;
.field public final c:I
# direct methods
.method public constructor <init>(Lvh/a;Lkh/h0;I)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lvh/a<",
"+TT;>;",
"Lkh/h0;",
"I)V"
}
.end annotation
.line 1
invoke-direct {p0}, Lvh/a;-><init>()V
.line 2
iput-object p1, p0, Lio/reactivex/internal/operators/parallel/ParallelRunOn;->a:Lvh/a;
.line 3
iput-object p2, p0, Lio/reactivex/internal/operators/parallel/ParallelRunOn;->b:Lkh/h0;
.line 4
iput p3, p0, Lio/reactivex/internal/operators/parallel/ParallelRunOn;->c:I
return-void
.end method
# virtual methods
.method public F()I
.locals 1
.line 1
iget-object v0, p0, Lio/reactivex/internal/operators/parallel/ParallelRunOn;->a:Lvh/a;
invoke-virtual {v0}, Lvh/a;->F()I
move-result v0
return v0
.end method
.method public Q([Lok/d;)V
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"([",
"Lok/d<",
"-TT;>;)V"
}
.end annotation
.line 1
invoke-virtual {p0, p1}, Lvh/a;->U([Lok/d;)Z
move-result v0
if-nez v0, :cond_0
return-void
.line 2
:cond_0
array-length v0, p1
.line 3
new-array v1, v0, [Lok/d;
.line 4
iget-object v2, p0, Lio/reactivex/internal/operators/parallel/ParallelRunOn;->b:Lkh/h0;
instance-of v3, v2, Lio/reactivex/internal/schedulers/i;
if-eqz v3, :cond_1
.line 5
check-cast v2, Lio/reactivex/internal/schedulers/i;
.line 6
new-instance v3, Lio/reactivex/internal/operators/parallel/ParallelRunOn$a;
invoke-direct {v3, p0, p1, v1}, Lio/reactivex/internal/operators/parallel/ParallelRunOn$a;-><init>(Lio/reactivex/internal/operators/parallel/ParallelRunOn;[Lok/d;[Lok/d;)V
invoke-interface {v2, v0, v3}, Lio/reactivex/internal/schedulers/i;->a(ILio/reactivex/internal/schedulers/i$a;)V
goto :goto_1
:cond_1
const/4 v2, 0x0
:goto_0
if-ge v2, v0, :cond_2
.line 7
iget-object v3, p0, Lio/reactivex/internal/operators/parallel/ParallelRunOn;->b:Lkh/h0;
invoke-virtual {v3}, Lkh/h0;->c()Lkh/h0$c;
move-result-object v3
invoke-virtual {p0, v2, p1, v1, v3}, Lio/reactivex/internal/operators/parallel/ParallelRunOn;->V(I[Lok/d;[Lok/d;Lkh/h0$c;)V
add-int/lit8 v2, v2, 0x1
goto :goto_0
.line 8
:cond_2
:goto_1
iget-object p1, p0, Lio/reactivex/internal/operators/parallel/ParallelRunOn;->a:Lvh/a;
invoke-virtual {p1, v1}, Lvh/a;->Q([Lok/d;)V
return-void
.end method
.method public V(I[Lok/d;[Lok/d;Lkh/h0$c;)V
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(I[",
"Lok/d<",
"-TT;>;[",
"Lok/d<",
"TT;>;",
"Lkh/h0$c;",
")V"
}
.end annotation
.line 1
aget-object p2, p2, p1
.line 2
new-instance v0, Lio/reactivex/internal/queue/SpscArrayQueue;
iget v1, p0, Lio/reactivex/internal/operators/parallel/ParallelRunOn;->c:I
invoke-direct {v0, v1}, Lio/reactivex/internal/queue/SpscArrayQueue;-><init>(I)V
.line 3
instance-of v1, p2, Lrh/a;
if-eqz v1, :cond_0
.line 4
new-instance v1, Lio/reactivex/internal/operators/parallel/ParallelRunOn$RunOnConditionalSubscriber;
check-cast p2, Lrh/a;
iget v2, p0, Lio/reactivex/internal/operators/parallel/ParallelRunOn;->c:I
invoke-direct {v1, p2, v2, v0, p4}, Lio/reactivex/internal/operators/parallel/ParallelRunOn$RunOnConditionalSubscriber;-><init>(Lrh/a;ILio/reactivex/internal/queue/SpscArrayQueue;Lkh/h0$c;)V
aput-object v1, p3, p1
goto :goto_0
.line 5
:cond_0
new-instance v1, Lio/reactivex/internal/operators/parallel/ParallelRunOn$RunOnSubscriber;
iget v2, p0, Lio/reactivex/internal/operators/parallel/ParallelRunOn;->c:I
invoke-direct {v1, p2, v2, v0, p4}, Lio/reactivex/internal/operators/parallel/ParallelRunOn$RunOnSubscriber;-><init>(Lok/d;ILio/reactivex/internal/queue/SpscArrayQueue;Lkh/h0$c;)V
aput-object v1, p3, p1
:goto_0
return-void
.end method