295 lines
5.1 KiB
Smali
295 lines
5.1 KiB
Smali
.class public final Lb0/r/a$d;
|
|
.super Ljava/lang/Object;
|
|
.source "ReplaySubject.java"
|
|
|
|
# interfaces
|
|
.implements Lb0/r/a$a;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lb0/r/a;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = "d"
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Ljava/lang/Object;",
|
|
"Lb0/r/a$a<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final a:I
|
|
|
|
.field public volatile b:I
|
|
|
|
.field public final c:[Ljava/lang/Object;
|
|
|
|
.field public d:[Ljava/lang/Object;
|
|
|
|
.field public e:I
|
|
|
|
.field public volatile f:Z
|
|
|
|
.field public g:Ljava/lang/Throwable;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(I)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput p1, p0, Lb0/r/a$d;->a:I
|
|
|
|
add-int/lit8 p1, p1, 0x1
|
|
|
|
new-array p1, p1, [Ljava/lang/Object;
|
|
|
|
iput-object p1, p0, Lb0/r/a$d;->c:[Ljava/lang/Object;
|
|
|
|
iput-object p1, p0, Lb0/r/a$d;->d:[Ljava/lang/Object;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(Lb0/r/a$b;)V
|
|
.locals 19
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lb0/r/a$b<",
|
|
"TT;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
move-object/from16 v1, p1
|
|
|
|
invoke-virtual/range {p1 .. p1}, Ljava/util/concurrent/atomic/AtomicInteger;->getAndIncrement()I
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
iget-object v2, v1, Lb0/r/a$b;->actual:Lrx/Subscriber;
|
|
|
|
iget v3, v0, Lb0/r/a$d;->a:I
|
|
|
|
const/4 v4, 0x1
|
|
|
|
const/4 v5, 0x1
|
|
|
|
:cond_1
|
|
iget-object v6, v1, Lb0/r/a$b;->requested:Ljava/util/concurrent/atomic/AtomicLong;
|
|
|
|
invoke-virtual {v6}, Ljava/util/concurrent/atomic/AtomicLong;->get()J
|
|
|
|
move-result-wide v6
|
|
|
|
iget-object v8, v1, Lb0/r/a$b;->node:Ljava/lang/Object;
|
|
|
|
check-cast v8, [Ljava/lang/Object;
|
|
|
|
if-nez v8, :cond_2
|
|
|
|
iget-object v8, v0, Lb0/r/a$d;->c:[Ljava/lang/Object;
|
|
|
|
:cond_2
|
|
iget v9, v1, Lb0/r/a$b;->tailIndex:I
|
|
|
|
iget v10, v1, Lb0/r/a$b;->index:I
|
|
|
|
move-object v14, v8
|
|
|
|
move v13, v9
|
|
|
|
const-wide/16 v8, 0x0
|
|
|
|
:goto_0
|
|
const/4 v15, 0x0
|
|
|
|
cmp-long v17, v8, v6
|
|
|
|
if-eqz v17, :cond_9
|
|
|
|
invoke-virtual {v2}, Lrx/Subscriber;->isUnsubscribed()Z
|
|
|
|
move-result v18
|
|
|
|
if-eqz v18, :cond_3
|
|
|
|
iput-object v15, v1, Lb0/r/a$b;->node:Ljava/lang/Object;
|
|
|
|
return-void
|
|
|
|
:cond_3
|
|
iget-boolean v11, v0, Lb0/r/a$d;->f:Z
|
|
|
|
iget v12, v0, Lb0/r/a$d;->b:I
|
|
|
|
if-ne v10, v12, :cond_4
|
|
|
|
const/4 v12, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_4
|
|
const/4 v12, 0x0
|
|
|
|
:goto_1
|
|
if-eqz v11, :cond_6
|
|
|
|
if-eqz v12, :cond_6
|
|
|
|
iput-object v15, v1, Lb0/r/a$b;->node:Ljava/lang/Object;
|
|
|
|
iget-object v1, v0, Lb0/r/a$d;->g:Ljava/lang/Throwable;
|
|
|
|
if-eqz v1, :cond_5
|
|
|
|
invoke-interface {v2, v1}, Lb0/g;->onError(Ljava/lang/Throwable;)V
|
|
|
|
goto :goto_2
|
|
|
|
:cond_5
|
|
invoke-interface {v2}, Lb0/g;->onCompleted()V
|
|
|
|
:goto_2
|
|
return-void
|
|
|
|
:cond_6
|
|
if-eqz v12, :cond_7
|
|
|
|
goto :goto_4
|
|
|
|
:cond_7
|
|
if-ne v13, v3, :cond_8
|
|
|
|
aget-object v11, v14, v13
|
|
|
|
check-cast v11, [Ljava/lang/Object;
|
|
|
|
move-object v14, v11
|
|
|
|
const/16 v16, 0x0
|
|
|
|
goto :goto_3
|
|
|
|
:cond_8
|
|
move/from16 v16, v13
|
|
|
|
:goto_3
|
|
aget-object v11, v14, v16
|
|
|
|
invoke-interface {v2, v11}, Lb0/g;->onNext(Ljava/lang/Object;)V
|
|
|
|
const-wide/16 v11, 0x1
|
|
|
|
add-long/2addr v8, v11
|
|
|
|
add-int/lit8 v13, v16, 0x1
|
|
|
|
add-int/lit8 v10, v10, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_9
|
|
:goto_4
|
|
if-nez v17, :cond_d
|
|
|
|
invoke-virtual {v2}, Lrx/Subscriber;->isUnsubscribed()Z
|
|
|
|
move-result v11
|
|
|
|
if-eqz v11, :cond_a
|
|
|
|
iput-object v15, v1, Lb0/r/a$b;->node:Ljava/lang/Object;
|
|
|
|
return-void
|
|
|
|
:cond_a
|
|
iget-boolean v11, v0, Lb0/r/a$d;->f:Z
|
|
|
|
iget v12, v0, Lb0/r/a$d;->b:I
|
|
|
|
if-ne v10, v12, :cond_b
|
|
|
|
const/16 v16, 0x1
|
|
|
|
goto :goto_5
|
|
|
|
:cond_b
|
|
const/16 v16, 0x0
|
|
|
|
:goto_5
|
|
if-eqz v11, :cond_d
|
|
|
|
if-eqz v16, :cond_d
|
|
|
|
iput-object v15, v1, Lb0/r/a$b;->node:Ljava/lang/Object;
|
|
|
|
iget-object v1, v0, Lb0/r/a$d;->g:Ljava/lang/Throwable;
|
|
|
|
if-eqz v1, :cond_c
|
|
|
|
invoke-interface {v2, v1}, Lb0/g;->onError(Ljava/lang/Throwable;)V
|
|
|
|
goto :goto_6
|
|
|
|
:cond_c
|
|
invoke-interface {v2}, Lb0/g;->onCompleted()V
|
|
|
|
:goto_6
|
|
return-void
|
|
|
|
:cond_d
|
|
const-wide/16 v11, 0x0
|
|
|
|
cmp-long v15, v8, v11
|
|
|
|
if-eqz v15, :cond_e
|
|
|
|
const-wide v11, 0x7fffffffffffffffL
|
|
|
|
cmp-long v15, v6, v11
|
|
|
|
if-eqz v15, :cond_e
|
|
|
|
iget-object v6, v1, Lb0/r/a$b;->requested:Ljava/util/concurrent/atomic/AtomicLong;
|
|
|
|
invoke-static {v6, v8, v9}, Lu/a/a2/w;->b(Ljava/util/concurrent/atomic/AtomicLong;J)J
|
|
|
|
:cond_e
|
|
iput v10, v1, Lb0/r/a$b;->index:I
|
|
|
|
iput v13, v1, Lb0/r/a$b;->tailIndex:I
|
|
|
|
iput-object v14, v1, Lb0/r/a$b;->node:Ljava/lang/Object;
|
|
|
|
neg-int v5, v5
|
|
|
|
invoke-virtual {v1, v5}, Ljava/util/concurrent/atomic/AtomicInteger;->addAndGet(I)I
|
|
|
|
move-result v5
|
|
|
|
if-nez v5, :cond_1
|
|
|
|
return-void
|
|
.end method
|