319 lines
6.4 KiB
Smali
319 lines
6.4 KiB
Smali
.class public final Ll0/l/a/t2$a;
|
|
.super Ljava/util/concurrent/atomic/AtomicLong;
|
|
.source "OperatorZip.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Ll0/l/a/t2;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = "a"
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Ll0/l/a/t2$a$a;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<R:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Ljava/util/concurrent/atomic/AtomicLong;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final d:I
|
|
|
|
.field public static final serialVersionUID:J = 0x53337eae55d8937dL
|
|
|
|
|
|
# instance fields
|
|
.field public final child:Ll0/g;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ll0/g<",
|
|
"-TR;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final childSubscription:Lrx/subscriptions/CompositeSubscription;
|
|
|
|
.field public emitted:I
|
|
|
|
.field public requested:Ljava/util/concurrent/atomic/AtomicLong;
|
|
|
|
.field public volatile subscribers:[Ljava/lang/Object;
|
|
|
|
.field public final zipFunction:Lrx/functions/FuncN;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lrx/functions/FuncN<",
|
|
"+TR;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 4
|
|
|
|
sget v0, Ll0/l/e/h;->f:I
|
|
|
|
int-to-double v0, v0
|
|
|
|
const-wide v2, 0x3fe6666666666666L # 0.7
|
|
|
|
mul-double v0, v0, v2
|
|
|
|
double-to-int v0, v0
|
|
|
|
sput v0, Ll0/l/a/t2$a;->d:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Lrx/Subscriber;Lrx/functions/FuncN;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lrx/Subscriber<",
|
|
"-TR;>;",
|
|
"Lrx/functions/FuncN<",
|
|
"+TR;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-direct {p0}, Ljava/util/concurrent/atomic/AtomicLong;-><init>()V
|
|
|
|
new-instance v0, Lrx/subscriptions/CompositeSubscription;
|
|
|
|
invoke-direct {v0}, Lrx/subscriptions/CompositeSubscription;-><init>()V
|
|
|
|
iput-object v0, p0, Ll0/l/a/t2$a;->childSubscription:Lrx/subscriptions/CompositeSubscription;
|
|
|
|
iput-object p1, p0, Ll0/l/a/t2$a;->child:Ll0/g;
|
|
|
|
iput-object p2, p0, Ll0/l/a/t2$a;->zipFunction:Lrx/functions/FuncN;
|
|
|
|
invoke-virtual {p1, v0}, Lrx/Subscriber;->add(Lrx/Subscription;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a()V
|
|
.locals 13
|
|
|
|
iget-object v0, p0, Ll0/l/a/t2$a;->subscribers:[Ljava/lang/Object;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
invoke-virtual {p0}, Ljava/util/concurrent/atomic/AtomicLong;->getAndIncrement()J
|
|
|
|
move-result-wide v1
|
|
|
|
const-wide/16 v3, 0x0
|
|
|
|
cmp-long v5, v1, v3
|
|
|
|
if-nez v5, :cond_9
|
|
|
|
array-length v1, v0
|
|
|
|
iget-object v2, p0, Ll0/l/a/t2$a;->child:Ll0/g;
|
|
|
|
iget-object v5, p0, Ll0/l/a/t2$a;->requested:Ljava/util/concurrent/atomic/AtomicLong;
|
|
|
|
:cond_1
|
|
:goto_0
|
|
new-array v6, v1, [Ljava/lang/Object;
|
|
|
|
const/4 v7, 0x1
|
|
|
|
const/4 v8, 0x0
|
|
|
|
const/4 v9, 0x0
|
|
|
|
const/4 v10, 0x1
|
|
|
|
:goto_1
|
|
if-ge v9, v1, :cond_4
|
|
|
|
aget-object v11, v0, v9
|
|
|
|
check-cast v11, Ll0/l/a/t2$a$a;
|
|
|
|
iget-object v11, v11, Ll0/l/a/t2$a$a;->d:Ll0/l/e/h;
|
|
|
|
invoke-virtual {v11}, Ll0/l/e/h;->c()Ljava/lang/Object;
|
|
|
|
move-result-object v11
|
|
|
|
if-nez v11, :cond_2
|
|
|
|
const/4 v10, 0x0
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
invoke-static {v11}, Ll0/l/a/h;->c(Ljava/lang/Object;)Z
|
|
|
|
move-result v12
|
|
|
|
if-eqz v12, :cond_3
|
|
|
|
invoke-interface {v2}, Ll0/g;->onCompleted()V
|
|
|
|
iget-object v0, p0, Ll0/l/a/t2$a;->childSubscription:Lrx/subscriptions/CompositeSubscription;
|
|
|
|
invoke-virtual {v0}, Lrx/subscriptions/CompositeSubscription;->unsubscribe()V
|
|
|
|
return-void
|
|
|
|
:cond_3
|
|
invoke-static {v11}, Ll0/l/a/h;->b(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v11
|
|
|
|
aput-object v11, v6, v9
|
|
|
|
:goto_2
|
|
add-int/lit8 v9, v9, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_4
|
|
if-eqz v10, :cond_8
|
|
|
|
invoke-virtual {v5}, Ljava/util/concurrent/atomic/AtomicLong;->get()J
|
|
|
|
move-result-wide v9
|
|
|
|
cmp-long v11, v9, v3
|
|
|
|
if-lez v11, :cond_8
|
|
|
|
:try_start_0
|
|
iget-object v9, p0, Ll0/l/a/t2$a;->zipFunction:Lrx/functions/FuncN;
|
|
|
|
invoke-interface {v9, v6}, Lrx/functions/FuncN;->call([Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v9
|
|
|
|
invoke-interface {v2, v9}, Ll0/g;->onNext(Ljava/lang/Object;)V
|
|
|
|
invoke-virtual {v5}, Ljava/util/concurrent/atomic/AtomicLong;->decrementAndGet()J
|
|
|
|
iget v9, p0, Ll0/l/a/t2$a;->emitted:I
|
|
|
|
add-int/2addr v9, v7
|
|
|
|
iput v9, p0, Ll0/l/a/t2$a;->emitted:I
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
array-length v6, v0
|
|
|
|
const/4 v7, 0x0
|
|
|
|
:goto_3
|
|
if-ge v7, v6, :cond_6
|
|
|
|
aget-object v9, v0, v7
|
|
|
|
check-cast v9, Ll0/l/a/t2$a$a;
|
|
|
|
iget-object v9, v9, Ll0/l/a/t2$a$a;->d:Ll0/l/e/h;
|
|
|
|
invoke-virtual {v9}, Ll0/l/e/h;->d()Ljava/lang/Object;
|
|
|
|
invoke-virtual {v9}, Ll0/l/e/h;->c()Ljava/lang/Object;
|
|
|
|
move-result-object v9
|
|
|
|
invoke-static {v9}, Ll0/l/a/h;->c(Ljava/lang/Object;)Z
|
|
|
|
move-result v9
|
|
|
|
if-eqz v9, :cond_5
|
|
|
|
invoke-interface {v2}, Ll0/g;->onCompleted()V
|
|
|
|
iget-object v0, p0, Ll0/l/a/t2$a;->childSubscription:Lrx/subscriptions/CompositeSubscription;
|
|
|
|
invoke-virtual {v0}, Lrx/subscriptions/CompositeSubscription;->unsubscribe()V
|
|
|
|
return-void
|
|
|
|
:cond_5
|
|
add-int/lit8 v7, v7, 0x1
|
|
|
|
goto :goto_3
|
|
|
|
:cond_6
|
|
iget v6, p0, Ll0/l/a/t2$a;->emitted:I
|
|
|
|
sget v7, Ll0/l/a/t2$a;->d:I
|
|
|
|
if-le v6, v7, :cond_1
|
|
|
|
array-length v6, v0
|
|
|
|
const/4 v7, 0x0
|
|
|
|
:goto_4
|
|
if-ge v7, v6, :cond_7
|
|
|
|
aget-object v9, v0, v7
|
|
|
|
check-cast v9, Ll0/l/a/t2$a$a;
|
|
|
|
iget v10, p0, Ll0/l/a/t2$a;->emitted:I
|
|
|
|
int-to-long v10, v10
|
|
|
|
invoke-virtual {v9, v10, v11}, Lrx/Subscriber;->request(J)V
|
|
|
|
add-int/lit8 v7, v7, 0x1
|
|
|
|
goto :goto_4
|
|
|
|
:cond_7
|
|
iput v8, p0, Ll0/l/a/t2$a;->emitted:I
|
|
|
|
goto/16 :goto_0
|
|
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
invoke-static {v0, v2, v6}, Lc0/i/s;->Y(Ljava/lang/Throwable;Ll0/g;Ljava/lang/Object;)V
|
|
|
|
return-void
|
|
|
|
:cond_8
|
|
invoke-virtual {p0}, Ljava/util/concurrent/atomic/AtomicLong;->decrementAndGet()J
|
|
|
|
move-result-wide v6
|
|
|
|
cmp-long v8, v6, v3
|
|
|
|
if-gtz v8, :cond_1
|
|
|
|
:cond_9
|
|
return-void
|
|
.end method
|