apkfuckery/com.discord/smali_classes2/rx/internal/a/ah$d.smali
2019-08-21 04:12:52 +02:00

1740 lines
32 KiB
Smali

.class final Lrx/internal/a/ah$d;
.super Lrx/Subscriber;
.source "OperatorMerge.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lrx/internal/a/ah;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = "d"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Lrx/Subscriber<",
"Lrx/Observable<",
"+TT;>;>;"
}
.end annotation
# static fields
.field static final bLC:[Lrx/internal/a/ah$b;
.annotation system Ldalvik/annotation/Signature;
value = {
"[",
"Lrx/internal/a/ah$b<",
"*>;"
}
.end annotation
.end field
# instance fields
.field bLA:J
.field bLB:J
.field final bLD:I
.field bLE:I
.field final bLp:Z
.field final bLq:I
.field bLw:Lrx/internal/a/ah$c;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lrx/internal/a/ah$c<",
"TT;>;"
}
.end annotation
.end field
.field volatile bLx:Ljava/util/concurrent/ConcurrentLinkedQueue;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/concurrent/ConcurrentLinkedQueue<",
"Ljava/lang/Throwable;",
">;"
}
.end annotation
.end field
.field final bLy:Ljava/lang/Object;
.field volatile bLz:[Lrx/internal/a/ah$b;
.annotation system Ldalvik/annotation/Signature;
value = {
"[",
"Lrx/internal/a/ah$b<",
"*>;"
}
.end annotation
.end field
.field final child:Lrx/Subscriber;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lrx/Subscriber<",
"-TT;>;"
}
.end annotation
.end field
.field volatile done:Z
.field emitting:Z
.field lastIndex:I
.field missed:Z
.field volatile queue:Ljava/util/Queue;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Queue<",
"Ljava/lang/Object;",
">;"
}
.end annotation
.end field
.field volatile subscriptions:Lrx/subscriptions/CompositeSubscription;
# direct methods
.method static constructor <clinit>()V
.locals 1
const/4 v0, 0x0
new-array v0, v0, [Lrx/internal/a/ah$b;
sput-object v0, Lrx/internal/a/ah$d;->bLC:[Lrx/internal/a/ah$b;
return-void
.end method
.method public constructor <init>(Lrx/Subscriber;ZI)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lrx/Subscriber<",
"-TT;>;ZI)V"
}
.end annotation
invoke-direct {p0}, Lrx/Subscriber;-><init>()V
iput-object p1, p0, Lrx/internal/a/ah$d;->child:Lrx/Subscriber;
iput-boolean p2, p0, Lrx/internal/a/ah$d;->bLp:Z
iput p3, p0, Lrx/internal/a/ah$d;->bLq:I
new-instance p1, Ljava/lang/Object;
invoke-direct {p1}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lrx/internal/a/ah$d;->bLy:Ljava/lang/Object;
sget-object p1, Lrx/internal/a/ah$d;->bLC:[Lrx/internal/a/ah$b;
iput-object p1, p0, Lrx/internal/a/ah$d;->bLz:[Lrx/internal/a/ah$b;
const p1, 0x7fffffff
if-ne p3, p1, :cond_0
iput p1, p0, Lrx/internal/a/ah$d;->bLD:I
const-wide p1, 0x7fffffffffffffffL
invoke-virtual {p0, p1, p2}, Lrx/internal/a/ah$d;->request(J)V
return-void
:cond_0
shr-int/lit8 p1, p3, 0x1
const/4 p2, 0x1
invoke-static {p2, p1}, Ljava/lang/Math;->max(II)I
move-result p1
iput p1, p0, Lrx/internal/a/ah$d;->bLD:I
int-to-long p1, p3
invoke-virtual {p0, p1, p2}, Lrx/internal/a/ah$d;->request(J)V
return-void
.end method
.method private KD()Lrx/subscriptions/CompositeSubscription;
.locals 2
iget-object v0, p0, Lrx/internal/a/ah$d;->subscriptions:Lrx/subscriptions/CompositeSubscription;
if-nez v0, :cond_2
const/4 v0, 0x0
monitor-enter p0
:try_start_0
iget-object v1, p0, Lrx/internal/a/ah$d;->subscriptions:Lrx/subscriptions/CompositeSubscription;
if-nez v1, :cond_0
new-instance v0, Lrx/subscriptions/CompositeSubscription;
invoke-direct {v0}, Lrx/subscriptions/CompositeSubscription;-><init>()V
iput-object v0, p0, Lrx/internal/a/ah$d;->subscriptions:Lrx/subscriptions/CompositeSubscription;
const/4 v1, 0x1
move-object v1, v0
const/4 v0, 0x1
:cond_0
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-eqz v0, :cond_1
invoke-virtual {p0, v1}, Lrx/internal/a/ah$d;->add(Lrx/Subscription;)V
:cond_1
move-object v0, v1
goto :goto_0
:catchall_0
move-exception v0
:try_start_1
monitor-exit p0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
throw v0
:cond_2
:goto_0
return-object v0
.end method
.method private KE()V
.locals 4
new-instance v0, Ljava/util/ArrayList;
iget-object v1, p0, Lrx/internal/a/ah$d;->bLx:Ljava/util/concurrent/ConcurrentLinkedQueue;
invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
invoke-interface {v0}, Ljava/util/List;->size()I
move-result v1
const/4 v2, 0x0
const/4 v3, 0x1
if-ne v1, v3, :cond_0
iget-object v1, p0, Lrx/internal/a/ah$d;->child:Lrx/Subscriber;
invoke-interface {v0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/Throwable;
invoke-virtual {v1, v0}, Lrx/Subscriber;->onError(Ljava/lang/Throwable;)V
return-void
:cond_0
iget-object v1, p0, Lrx/internal/a/ah$d;->child:Lrx/Subscriber;
new-instance v3, Lrx/a/a;
invoke-direct {v3, v0, v2}, Lrx/a/a;-><init>(Ljava/util/Collection;B)V
invoke-virtual {v1, v3}, Lrx/Subscriber;->onError(Ljava/lang/Throwable;)V
return-void
.end method
.method private KH()Z
.locals 3
iget-object v0, p0, Lrx/internal/a/ah$d;->child:Lrx/Subscriber;
invoke-virtual {v0}, Lrx/Subscriber;->isUnsubscribed()Z
move-result v0
const/4 v1, 0x1
if-eqz v0, :cond_0
return v1
:cond_0
iget-object v0, p0, Lrx/internal/a/ah$d;->bLx:Ljava/util/concurrent/ConcurrentLinkedQueue;
iget-boolean v2, p0, Lrx/internal/a/ah$d;->bLp:Z
if-nez v2, :cond_1
if-eqz v0, :cond_1
invoke-interface {v0}, Ljava/util/Queue;->isEmpty()Z
move-result v0
if-nez v0, :cond_1
:try_start_0
invoke-direct {p0}, Lrx/internal/a/ah$d;->KE()V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
invoke-virtual {p0}, Lrx/internal/a/ah$d;->unsubscribe()V
return v1
:catchall_0
move-exception v0
invoke-virtual {p0}, Lrx/internal/a/ah$d;->unsubscribe()V
throw v0
:cond_1
const/4 v0, 0x0
return v0
.end method
.method private a(Lrx/internal/a/ah$b;)V
.locals 7
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lrx/internal/a/ah$b<",
"TT;>;)V"
}
.end annotation
iget-object v0, p1, Lrx/internal/a/ah$b;->bLt:Lrx/internal/util/i;
iget-object v0, p0, Lrx/internal/a/ah$d;->subscriptions:Lrx/subscriptions/CompositeSubscription;
invoke-virtual {v0, p1}, Lrx/subscriptions/CompositeSubscription;->e(Lrx/Subscription;)V
iget-object v0, p0, Lrx/internal/a/ah$d;->bLy:Ljava/lang/Object;
monitor-enter v0
:try_start_0
iget-object v1, p0, Lrx/internal/a/ah$d;->bLz:[Lrx/internal/a/ah$b;
array-length v2, v1
const/4 v3, -0x1
const/4 v4, 0x0
const/4 v5, 0x0
:goto_0
if-ge v5, v2, :cond_1
aget-object v6, v1, v5
invoke-virtual {p1, v6}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
move-result v6
if-eqz v6, :cond_0
move v3, v5
goto :goto_1
:cond_0
add-int/lit8 v5, v5, 0x1
goto :goto_0
:cond_1
:goto_1
if-gez v3, :cond_2
monitor-exit v0
return-void
:cond_2
const/4 p1, 0x1
if-ne v2, p1, :cond_3
sget-object p1, Lrx/internal/a/ah$d;->bLC:[Lrx/internal/a/ah$b;
iput-object p1, p0, Lrx/internal/a/ah$d;->bLz:[Lrx/internal/a/ah$b;
monitor-exit v0
return-void
:cond_3
add-int/lit8 v5, v2, -0x1
new-array v5, v5, [Lrx/internal/a/ah$b;
invoke-static {v1, v4, v5, v4, v3}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
add-int/lit8 v4, v3, 0x1
sub-int/2addr v2, v3
sub-int/2addr v2, p1
invoke-static {v1, v4, v5, v3, v2}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
iput-object v5, p0, Lrx/internal/a/ah$d;->bLz:[Lrx/internal/a/ah$b;
monitor-exit v0
return-void
:catchall_0
move-exception p1
monitor-exit v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
goto :goto_3
:goto_2
throw p1
:goto_3
goto :goto_2
.end method
.method static a(Lrx/internal/a/ah$b;Ljava/lang/Object;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lrx/internal/a/ah$b<",
"TT;>;TT;)V"
}
.end annotation
iget-object v0, p0, Lrx/internal/a/ah$b;->bLt:Lrx/internal/util/i;
if-nez v0, :cond_0
invoke-static {}, Lrx/internal/util/i;->Lf()Lrx/internal/util/i;
move-result-object v0
invoke-virtual {p0, v0}, Lrx/internal/a/ah$b;->add(Lrx/Subscription;)V
iput-object v0, p0, Lrx/internal/a/ah$b;->bLt:Lrx/internal/util/i;
:cond_0
:try_start_0
invoke-static {p1}, Lrx/internal/a/g;->bJ(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
invoke-virtual {v0, p1}, Lrx/internal/util/i;->onNext(Ljava/lang/Object;)V
:try_end_0
.catch Lrx/a/c; {:try_start_0 .. :try_end_0} :catch_1
.catch Ljava/lang/IllegalStateException; {:try_start_0 .. :try_end_0} :catch_0
return-void
:catch_0
move-exception p1
invoke-virtual {p0}, Lrx/internal/a/ah$b;->isUnsubscribed()Z
move-result v0
if-nez v0, :cond_1
invoke-virtual {p0}, Lrx/internal/a/ah$b;->unsubscribe()V
invoke-virtual {p0, p1}, Lrx/internal/a/ah$b;->onError(Ljava/lang/Throwable;)V
:cond_1
return-void
:catch_1
move-exception p1
invoke-virtual {p0}, Lrx/internal/a/ah$b;->unsubscribe()V
invoke-virtual {p0, p1}, Lrx/internal/a/ah$b;->onError(Ljava/lang/Throwable;)V
return-void
.end method
.method private bQ(Ljava/lang/Object;)V
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
iget-object v0, p0, Lrx/internal/a/ah$d;->queue:Ljava/util/Queue;
if-nez v0, :cond_4
iget v0, p0, Lrx/internal/a/ah$d;->bLq:I
const v1, 0x7fffffff
if-ne v0, v1, :cond_0
new-instance v0, Lrx/internal/util/a/h;
sget v1, Lrx/internal/util/i;->SIZE:I
invoke-direct {v0, v1}, Lrx/internal/util/a/h;-><init>(I)V
goto :goto_2
:cond_0
add-int/lit8 v1, v0, -0x1
and-int/2addr v1, v0
if-nez v1, :cond_1
const/4 v1, 0x1
goto :goto_0
:cond_1
const/4 v1, 0x0
:goto_0
if-eqz v1, :cond_3
invoke-static {}, Lrx/internal/util/b/ae;->Ln()Z
move-result v1
if-eqz v1, :cond_2
new-instance v1, Lrx/internal/util/b/q;
invoke-direct {v1, v0}, Lrx/internal/util/b/q;-><init>(I)V
goto :goto_1
:cond_2
new-instance v1, Lrx/internal/util/a/d;
invoke-direct {v1, v0}, Lrx/internal/util/a/d;-><init>(I)V
goto :goto_1
:cond_3
new-instance v1, Lrx/internal/util/a/e;
invoke-direct {v1, v0}, Lrx/internal/util/a/e;-><init>(I)V
:goto_1
move-object v0, v1
:goto_2
iput-object v0, p0, Lrx/internal/a/ah$d;->queue:Ljava/util/Queue;
:cond_4
invoke-static {p1}, Lrx/internal/a/g;->bJ(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v1
invoke-interface {v0, v1}, Ljava/util/Queue;->offer(Ljava/lang/Object;)Z
move-result v0
if-nez v0, :cond_5
invoke-virtual {p0}, Lrx/internal/a/ah$d;->unsubscribe()V
new-instance v0, Lrx/a/c;
invoke-direct {v0}, Lrx/a/c;-><init>()V
invoke-static {v0, p1}, Lrx/a/g;->a(Ljava/lang/Throwable;Ljava/lang/Object;)Ljava/lang/Throwable;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/internal/a/ah$d;->onError(Ljava/lang/Throwable;)V
:cond_5
return-void
.end method
# virtual methods
.method final KC()Ljava/util/Queue;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Queue<",
"Ljava/lang/Throwable;",
">;"
}
.end annotation
iget-object v0, p0, Lrx/internal/a/ah$d;->bLx:Ljava/util/concurrent/ConcurrentLinkedQueue;
if-nez v0, :cond_1
monitor-enter p0
:try_start_0
iget-object v0, p0, Lrx/internal/a/ah$d;->bLx:Ljava/util/concurrent/ConcurrentLinkedQueue;
if-nez v0, :cond_0
new-instance v0, Ljava/util/concurrent/ConcurrentLinkedQueue;
invoke-direct {v0}, Ljava/util/concurrent/ConcurrentLinkedQueue;-><init>()V
iput-object v0, p0, Lrx/internal/a/ah$d;->bLx:Ljava/util/concurrent/ConcurrentLinkedQueue;
:cond_0
monitor-exit p0
goto :goto_0
:catchall_0
move-exception v0
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw v0
:cond_1
:goto_0
return-object v0
.end method
.method final KF()V
.locals 2
monitor-enter p0
:try_start_0
iget-boolean v0, p0, Lrx/internal/a/ah$d;->emitting:Z
const/4 v1, 0x1
if-eqz v0, :cond_0
iput-boolean v1, p0, Lrx/internal/a/ah$d;->missed:Z
monitor-exit p0
return-void
:cond_0
iput-boolean v1, p0, Lrx/internal/a/ah$d;->emitting:Z
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
invoke-virtual {p0}, Lrx/internal/a/ah$d;->KG()V
return-void
:catchall_0
move-exception v0
:try_start_1
monitor-exit p0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
throw v0
.end method
.method KG()V
.locals 22
move-object/from16 v1, p0
:try_start_0
iget-object v4, v1, Lrx/internal/a/ah$d;->child:Lrx/Subscriber;
:goto_0
invoke-direct/range {p0 .. p0}, Lrx/internal/a/ah$d;->KH()Z
move-result v0
if-eqz v0, :cond_0
return-void
:cond_0
iget-object v5, v1, Lrx/internal/a/ah$d;->queue:Ljava/util/Queue;
iget-object v0, v1, Lrx/internal/a/ah$d;->bLw:Lrx/internal/a/ah$c;
invoke-virtual {v0}, Lrx/internal/a/ah$c;->get()J
move-result-wide v6
const-wide v8, 0x7fffffffffffffffL
cmp-long v0, v6, v8
if-nez v0, :cond_1
const/4 v10, 0x1
goto :goto_1
:cond_1
const/4 v10, 0x0
:goto_1
const-wide/16 v11, 0x1
const-wide/16 v14, 0x0
if-eqz v5, :cond_9
const/4 v0, 0x0
:goto_2
move/from16 v16, v0
const/4 v0, 0x0
const/4 v2, 0x0
:goto_3
cmp-long v17, v6, v14
if-lez v17, :cond_5
invoke-interface {v5}, Ljava/util/Queue;->poll()Ljava/lang/Object;
move-result-object v17
invoke-direct/range {p0 .. p0}, Lrx/internal/a/ah$d;->KH()Z
move-result v0
if-eqz v0, :cond_2
return-void
:cond_2
if-eqz v17, :cond_4
invoke-static/range {v17 .. v17}, Lrx/internal/a/g;->bN(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_6
:try_start_1
invoke-virtual {v4, v0}, Lrx/Subscriber;->onNext(Ljava/lang/Object;)V
:try_end_1
.catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_1} :catch_0
.catchall {:try_start_1 .. :try_end_1} :catchall_6
goto :goto_4
:catch_0
move-exception v0
move-object/from16 v18, v0
:try_start_2
iget-boolean v0, v1, Lrx/internal/a/ah$d;->bLp:Z
if-nez v0, :cond_3
invoke-static/range {v18 .. v18}, Lrx/a/b;->I(Ljava/lang/Throwable;)V
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_6
:try_start_3
invoke-virtual/range {p0 .. p0}, Lrx/internal/a/ah$d;->unsubscribe()V
move-object/from16 v2, v18
invoke-virtual {v4, v2}, Lrx/Subscriber;->onError(Ljava/lang/Throwable;)V
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_0
return-void
:catchall_0
move-exception v0
const/16 v21, 0x1
goto/16 :goto_13
:cond_3
move-object/from16 v8, v18
:try_start_4
invoke-virtual/range {p0 .. p0}, Lrx/internal/a/ah$d;->KC()Ljava/util/Queue;
move-result-object v0
invoke-interface {v0, v8}, Ljava/util/Queue;->offer(Ljava/lang/Object;)Z
:goto_4
add-int/lit8 v16, v16, 0x1
add-int/lit8 v2, v2, 0x1
sub-long/2addr v6, v11
move-object/from16 v0, v17
const-wide v8, 0x7fffffffffffffffL
goto :goto_3
:cond_4
move-object/from16 v0, v17
:cond_5
if-lez v2, :cond_7
if-eqz v10, :cond_6
const-wide v6, 0x7fffffffffffffffL
goto :goto_5
:cond_6
iget-object v6, v1, Lrx/internal/a/ah$d;->bLw:Lrx/internal/a/ah$c;
neg-int v2, v2
int-to-long v7, v2
invoke-virtual {v6, v7, v8}, Lrx/internal/a/ah$c;->addAndGet(J)J
move-result-wide v6
:cond_7
:goto_5
cmp-long v2, v6, v14
if-eqz v2, :cond_a
if-nez v0, :cond_8
goto :goto_6
:cond_8
move/from16 v0, v16
const-wide v8, 0x7fffffffffffffffL
goto :goto_2
:cond_9
const/16 v16, 0x0
:cond_a
:goto_6
iget-boolean v0, v1, Lrx/internal/a/ah$d;->done:Z
iget-object v2, v1, Lrx/internal/a/ah$d;->queue:Ljava/util/Queue;
iget-object v5, v1, Lrx/internal/a/ah$d;->bLz:[Lrx/internal/a/ah$b;
array-length v8, v5
if-eqz v0, :cond_e
if-eqz v2, :cond_b
invoke-interface {v2}, Ljava/util/Queue;->isEmpty()Z
move-result v0
if-eqz v0, :cond_e
:cond_b
if-nez v8, :cond_e
iget-object v0, v1, Lrx/internal/a/ah$d;->bLx:Ljava/util/concurrent/ConcurrentLinkedQueue;
if-eqz v0, :cond_d
invoke-interface {v0}, Ljava/util/Queue;->isEmpty()Z
move-result v0
if-eqz v0, :cond_c
goto :goto_7
:cond_c
invoke-direct/range {p0 .. p0}, Lrx/internal/a/ah$d;->KE()V
return-void
:cond_d
:goto_7
invoke-virtual {v4}, Lrx/Subscriber;->onCompleted()V
return-void
:cond_e
if-lez v8, :cond_21
iget-wide v11, v1, Lrx/internal/a/ah$d;->bLB:J
iget v0, v1, Lrx/internal/a/ah$d;->lastIndex:I
if-le v8, v0, :cond_f
aget-object v2, v5, v0
move-object/from16 v17, v4
iget-wide v3, v2, Lrx/internal/a/ah$b;->id:J
cmp-long v2, v3, v11
if-eqz v2, :cond_13
goto :goto_8
:cond_f
move-object/from16 v17, v4
:goto_8
if-gt v8, v0, :cond_10
const/4 v0, 0x0
:cond_10
move v2, v0
const/4 v0, 0x0
:goto_9
if-ge v0, v8, :cond_12
aget-object v3, v5, v2
iget-wide v3, v3, Lrx/internal/a/ah$b;->id:J
cmp-long v21, v3, v11
if-eqz v21, :cond_12
add-int/lit8 v3, v2, 0x1
if-ne v3, v8, :cond_11
const/4 v2, 0x0
goto :goto_a
:cond_11
move v2, v3
:goto_a
add-int/lit8 v0, v0, 0x1
goto :goto_9
:cond_12
iput v2, v1, Lrx/internal/a/ah$d;->lastIndex:I
aget-object v0, v5, v2
iget-wide v3, v0, Lrx/internal/a/ah$b;->id:J
iput-wide v3, v1, Lrx/internal/a/ah$d;->bLB:J
move v0, v2
:cond_13
move v2, v0
const/4 v0, 0x0
const/4 v3, 0x0
:goto_b
if-ge v0, v8, :cond_1f
invoke-direct/range {p0 .. p0}, Lrx/internal/a/ah$d;->KH()Z
move-result v4
if-eqz v4, :cond_14
return-void
:cond_14
aget-object v4, v5, v2
move-wide v11, v6
const/4 v6, 0x0
:goto_c
move-object v7, v6
const/4 v6, 0x0
:goto_d
cmp-long v21, v11, v14
if-lez v21, :cond_16
invoke-direct/range {p0 .. p0}, Lrx/internal/a/ah$d;->KH()Z
move-result v21
if-eqz v21, :cond_15
return-void
:cond_15
iget-object v9, v4, Lrx/internal/a/ah$b;->bLt:Lrx/internal/util/i;
if-eqz v9, :cond_16
invoke-virtual {v9}, Lrx/internal/util/i;->poll()Ljava/lang/Object;
move-result-object v7
if-eqz v7, :cond_16
invoke-static {v7}, Lrx/internal/a/g;->bN(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v9
:try_end_4
.catchall {:try_start_4 .. :try_end_4} :catchall_6
move-object/from16 v13, v17
:try_start_5
invoke-virtual {v13, v9}, Lrx/Subscriber;->onNext(Ljava/lang/Object;)V
:try_end_5
.catch Ljava/lang/Throwable; {:try_start_5 .. :try_end_5} :catch_1
.catchall {:try_start_5 .. :try_end_5} :catchall_6
const-wide/16 v19, 0x1
sub-long v11, v11, v19
add-int/lit8 v6, v6, 0x1
move-object/from16 v17, v13
goto :goto_d
:catch_1
move-exception v0
move-object v2, v0
:try_start_6
invoke-static {v2}, Lrx/a/b;->I(Ljava/lang/Throwable;)V
:try_end_6
.catchall {:try_start_6 .. :try_end_6} :catchall_0
:try_start_7
invoke-virtual {v13, v2}, Lrx/Subscriber;->onError(Ljava/lang/Throwable;)V
:try_end_7
.catchall {:try_start_7 .. :try_end_7} :catchall_1
:try_start_8
invoke-virtual/range {p0 .. p0}, Lrx/internal/a/ah$d;->unsubscribe()V
return-void
:catchall_1
move-exception v0
move-object v2, v0
invoke-virtual/range {p0 .. p0}, Lrx/internal/a/ah$d;->unsubscribe()V
throw v2
:try_end_8
.catchall {:try_start_8 .. :try_end_8} :catchall_0
:cond_16
move-object/from16 v13, v17
const-wide/16 v19, 0x1
if-lez v6, :cond_18
if-nez v10, :cond_17
:try_start_9
iget-object v9, v1, Lrx/internal/a/ah$d;->bLw:Lrx/internal/a/ah$c;
neg-int v11, v6
int-to-long v11, v11
invoke-virtual {v9, v11, v12}, Lrx/internal/a/ah$c;->addAndGet(J)J
move-result-wide v11
goto :goto_e
:cond_17
const-wide v11, 0x7fffffffffffffffL
:goto_e
int-to-long v14, v6
invoke-virtual {v4, v14, v15}, Lrx/internal/a/ah$b;->aZ(J)V
const-wide/16 v14, 0x0
:cond_18
cmp-long v6, v11, v14
if-eqz v6, :cond_1a
if-nez v7, :cond_19
goto :goto_f
:cond_19
move-object v6, v7
move-object/from16 v17, v13
const-wide/16 v14, 0x0
goto :goto_c
:cond_1a
:goto_f
iget-boolean v6, v4, Lrx/internal/a/ah$b;->done:Z
iget-object v7, v4, Lrx/internal/a/ah$b;->bLt:Lrx/internal/util/i;
if-eqz v6, :cond_1d
if-eqz v7, :cond_1b
invoke-virtual {v7}, Lrx/internal/util/i;->isEmpty()Z
move-result v6
if-eqz v6, :cond_1d
:cond_1b
invoke-direct {v1, v4}, Lrx/internal/a/ah$d;->a(Lrx/internal/a/ah$b;)V
invoke-direct/range {p0 .. p0}, Lrx/internal/a/ah$d;->KH()Z
move-result v3
if-eqz v3, :cond_1c
return-void
:cond_1c
add-int/lit8 v16, v16, 0x1
const/4 v3, 0x1
:cond_1d
const-wide/16 v6, 0x0
cmp-long v4, v11, v6
if-eqz v4, :cond_20
add-int/lit8 v2, v2, 0x1
if-ne v2, v8, :cond_1e
const/4 v2, 0x0
:cond_1e
add-int/lit8 v0, v0, 0x1
move-wide v14, v6
move-wide v6, v11
move-object/from16 v17, v13
goto/16 :goto_b
:cond_1f
move-object/from16 v13, v17
:cond_20
iput v2, v1, Lrx/internal/a/ah$d;->lastIndex:I
aget-object v0, v5, v2
iget-wide v4, v0, Lrx/internal/a/ah$b;->id:J
iput-wide v4, v1, Lrx/internal/a/ah$d;->bLB:J
move/from16 v0, v16
goto :goto_10
:cond_21
move-object v13, v4
move/from16 v0, v16
const/4 v3, 0x0
:goto_10
if-lez v0, :cond_22
int-to-long v4, v0
invoke-virtual {v1, v4, v5}, Lrx/internal/a/ah$d;->request(J)V
:cond_22
if-nez v3, :cond_24
monitor-enter p0
:try_end_9
.catchall {:try_start_9 .. :try_end_9} :catchall_6
:try_start_a
iget-boolean v0, v1, Lrx/internal/a/ah$d;->missed:Z
:try_end_a
.catchall {:try_start_a .. :try_end_a} :catchall_3
if-nez v0, :cond_23
const/4 v2, 0x0
:try_start_b
iput-boolean v2, v1, Lrx/internal/a/ah$d;->emitting:Z
monitor-exit p0
:try_end_b
.catchall {:try_start_b .. :try_end_b} :catchall_2
return-void
:catchall_2
move-exception v0
const/4 v2, 0x1
goto :goto_11
:cond_23
const/4 v2, 0x0
:try_start_c
iput-boolean v2, v1, Lrx/internal/a/ah$d;->missed:Z
monitor-exit p0
:try_end_c
.catchall {:try_start_c .. :try_end_c} :catchall_3
goto :goto_12
:catchall_3
move-exception v0
const/4 v2, 0x0
:goto_11
:try_start_d
monitor-exit p0
:try_end_d
.catchall {:try_start_d .. :try_end_d} :catchall_5
:try_start_e
throw v0
:try_end_e
.catchall {:try_start_e .. :try_end_e} :catchall_4
:catchall_4
move-exception v0
move/from16 v21, v2
goto :goto_13
:catchall_5
move-exception v0
goto :goto_11
:cond_24
:goto_12
move-object v4, v13
goto/16 :goto_0
:catchall_6
move-exception v0
const/16 v21, 0x0
:goto_13
if-nez v21, :cond_25
monitor-enter p0
const/4 v2, 0x0
:try_start_f
iput-boolean v2, v1, Lrx/internal/a/ah$d;->emitting:Z
monitor-exit p0
goto :goto_14
:catchall_7
move-exception v0
monitor-exit p0
:try_end_f
.catchall {:try_start_f .. :try_end_f} :catchall_7
throw v0
:cond_25
:goto_14
goto :goto_16
:goto_15
throw v0
:goto_16
goto :goto_15
.end method
.method public final onCompleted()V
.locals 1
const/4 v0, 0x1
iput-boolean v0, p0, Lrx/internal/a/ah$d;->done:Z
invoke-virtual {p0}, Lrx/internal/a/ah$d;->KF()V
return-void
.end method
.method public final onError(Ljava/lang/Throwable;)V
.locals 1
invoke-virtual {p0}, Lrx/internal/a/ah$d;->KC()Ljava/util/Queue;
move-result-object v0
invoke-interface {v0, p1}, Ljava/util/Queue;->offer(Ljava/lang/Object;)Z
const/4 p1, 0x1
iput-boolean p1, p0, Lrx/internal/a/ah$d;->done:Z
invoke-virtual {p0}, Lrx/internal/a/ah$d;->KF()V
return-void
.end method
.method public final synthetic onNext(Ljava/lang/Object;)V
.locals 7
check-cast p1, Lrx/Observable;
if-eqz p1, :cond_d
invoke-static {}, Lrx/Observable;->Ka()Lrx/Observable;
move-result-object v0
const/4 v1, 0x1
const/4 v2, 0x0
if-ne p1, v0, :cond_1
iget p1, p0, Lrx/internal/a/ah$d;->bLE:I
add-int/2addr p1, v1
iget v0, p0, Lrx/internal/a/ah$d;->bLD:I
if-ne p1, v0, :cond_0
iput v2, p0, Lrx/internal/a/ah$d;->bLE:I
int-to-long v0, p1
invoke-virtual {p0, v0, v1}, Lrx/internal/a/ah$d;->request(J)V
return-void
:cond_0
iput p1, p0, Lrx/internal/a/ah$d;->bLE:I
return-void
:cond_1
instance-of v0, p1, Lrx/internal/util/k;
if-eqz v0, :cond_c
check-cast p1, Lrx/internal/util/k;
iget-object p1, p1, Lrx/internal/util/k;->bPy:Ljava/lang/Object;
iget-object v0, p0, Lrx/internal/a/ah$d;->bLw:Lrx/internal/a/ah$c;
invoke-virtual {v0}, Lrx/internal/a/ah$c;->get()J
move-result-wide v3
const-wide/16 v5, 0x0
cmp-long v0, v3, v5
if-eqz v0, :cond_3
monitor-enter p0
:try_start_0
iget-object v0, p0, Lrx/internal/a/ah$d;->bLw:Lrx/internal/a/ah$c;
invoke-virtual {v0}, Lrx/internal/a/ah$c;->get()J
move-result-wide v3
iget-boolean v0, p0, Lrx/internal/a/ah$d;->emitting:Z
if-nez v0, :cond_2
cmp-long v0, v3, v5
if-eqz v0, :cond_2
iput-boolean v1, p0, Lrx/internal/a/ah$d;->emitting:Z
const/4 v0, 0x1
goto :goto_0
:cond_2
const/4 v0, 0x0
:goto_0
monitor-exit p0
goto :goto_1
:catchall_0
move-exception p1
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw p1
:cond_3
move-wide v3, v5
const/4 v0, 0x0
:goto_1
if-eqz v0, :cond_b
iget-object v0, p0, Lrx/internal/a/ah$d;->queue:Ljava/util/Queue;
if-eqz v0, :cond_5
invoke-interface {v0}, Ljava/util/Queue;->isEmpty()Z
move-result v0
if-eqz v0, :cond_4
goto :goto_2
:cond_4
invoke-direct {p0, p1}, Lrx/internal/a/ah$d;->bQ(Ljava/lang/Object;)V
invoke-virtual {p0}, Lrx/internal/a/ah$d;->KG()V
return-void
:cond_5
:goto_2
:try_start_1
iget-object v0, p0, Lrx/internal/a/ah$d;->child:Lrx/Subscriber;
invoke-virtual {v0, p1}, Lrx/Subscriber;->onNext(Ljava/lang/Object;)V
:try_end_1
.catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_1} :catch_0
.catchall {:try_start_1 .. :try_end_1} :catchall_1
goto :goto_3
:catchall_1
move-exception p1
const/4 v1, 0x0
goto :goto_5
:catch_0
move-exception p1
:try_start_2
iget-boolean v0, p0, Lrx/internal/a/ah$d;->bLp:Z
if-nez v0, :cond_6
invoke-static {p1}, Lrx/a/b;->I(Ljava/lang/Throwable;)V
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_1
:try_start_3
invoke-virtual {p0}, Lrx/internal/a/ah$d;->unsubscribe()V
invoke-virtual {p0, p1}, Lrx/internal/a/ah$d;->onError(Ljava/lang/Throwable;)V
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_2
goto :goto_7
:catchall_2
move-exception p1
goto :goto_5
:cond_6
:try_start_4
invoke-virtual {p0}, Lrx/internal/a/ah$d;->KC()Ljava/util/Queue;
move-result-object v0
invoke-interface {v0, p1}, Ljava/util/Queue;->offer(Ljava/lang/Object;)Z
:goto_3
const-wide v5, 0x7fffffffffffffffL
cmp-long p1, v3, v5
if-eqz p1, :cond_7
iget-object p1, p0, Lrx/internal/a/ah$d;->bLw:Lrx/internal/a/ah$c;
const-wide/16 v3, -0x1
invoke-virtual {p1, v3, v4}, Lrx/internal/a/ah$c;->addAndGet(J)J
:cond_7
iget p1, p0, Lrx/internal/a/ah$d;->bLE:I
add-int/2addr p1, v1
iget v0, p0, Lrx/internal/a/ah$d;->bLD:I
if-ne p1, v0, :cond_8
iput v2, p0, Lrx/internal/a/ah$d;->bLE:I
int-to-long v3, p1
invoke-virtual {p0, v3, v4}, Lrx/internal/a/ah$d;->request(J)V
goto :goto_4
:cond_8
iput p1, p0, Lrx/internal/a/ah$d;->bLE:I
:goto_4
monitor-enter p0
:try_end_4
.catchall {:try_start_4 .. :try_end_4} :catchall_1
:try_start_5
iget-boolean p1, p0, Lrx/internal/a/ah$d;->missed:Z
if-nez p1, :cond_9
iput-boolean v2, p0, Lrx/internal/a/ah$d;->emitting:Z
monitor-exit p0
goto :goto_7
:cond_9
iput-boolean v2, p0, Lrx/internal/a/ah$d;->missed:Z
monitor-exit p0
:try_end_5
.catchall {:try_start_5 .. :try_end_5} :catchall_3
invoke-virtual {p0}, Lrx/internal/a/ah$d;->KG()V
return-void
:catchall_3
move-exception p1
:try_start_6
monitor-exit p0
:try_end_6
.catchall {:try_start_6 .. :try_end_6} :catchall_3
:try_start_7
throw p1
:try_end_7
.catchall {:try_start_7 .. :try_end_7} :catchall_2
:goto_5
if-nez v1, :cond_a
monitor-enter p0
:try_start_8
iput-boolean v2, p0, Lrx/internal/a/ah$d;->emitting:Z
monitor-exit p0
goto :goto_6
:catchall_4
move-exception p1
monitor-exit p0
:try_end_8
.catchall {:try_start_8 .. :try_end_8} :catchall_4
throw p1
:cond_a
:goto_6
throw p1
:cond_b
invoke-direct {p0, p1}, Lrx/internal/a/ah$d;->bQ(Ljava/lang/Object;)V
invoke-virtual {p0}, Lrx/internal/a/ah$d;->KF()V
:goto_7
return-void
:cond_c
new-instance v0, Lrx/internal/a/ah$b;
iget-wide v3, p0, Lrx/internal/a/ah$d;->bLA:J
const-wide/16 v5, 0x1
add-long/2addr v5, v3
iput-wide v5, p0, Lrx/internal/a/ah$d;->bLA:J
invoke-direct {v0, p0, v3, v4}, Lrx/internal/a/ah$b;-><init>(Lrx/internal/a/ah$d;J)V
invoke-direct {p0}, Lrx/internal/a/ah$d;->KD()Lrx/subscriptions/CompositeSubscription;
move-result-object v1
invoke-virtual {v1, v0}, Lrx/subscriptions/CompositeSubscription;->add(Lrx/Subscription;)V
iget-object v1, p0, Lrx/internal/a/ah$d;->bLy:Ljava/lang/Object;
monitor-enter v1
:try_start_9
iget-object v3, p0, Lrx/internal/a/ah$d;->bLz:[Lrx/internal/a/ah$b;
array-length v4, v3
add-int/lit8 v5, v4, 0x1
new-array v5, v5, [Lrx/internal/a/ah$b;
invoke-static {v3, v2, v5, v2, v4}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
aput-object v0, v5, v4
iput-object v5, p0, Lrx/internal/a/ah$d;->bLz:[Lrx/internal/a/ah$b;
monitor-exit v1
:try_end_9
.catchall {:try_start_9 .. :try_end_9} :catchall_5
invoke-virtual {p1, v0}, Lrx/Observable;->a(Lrx/Subscriber;)Lrx/Subscription;
invoke-virtual {p0}, Lrx/internal/a/ah$d;->KF()V
goto :goto_8
:catchall_5
move-exception p1
:try_start_a
monitor-exit v1
:try_end_a
.catchall {:try_start_a .. :try_end_a} :catchall_5
throw p1
:cond_d
:goto_8
return-void
.end method