2019-12-21 01:41:59 +00:00
|
|
|
.class public final Lb0/r/a$d;
|
2019-12-06 03:29:40 +00:00
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "ReplaySubject.java"
|
|
|
|
|
|
|
|
# interfaces
|
2019-12-21 01:41:59 +00:00
|
|
|
.implements Lb0/r/a$a;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
2019-12-21 01:41:59 +00:00
|
|
|
value = Lb0/r/a;
|
2019-12-06 03:29:40 +00:00
|
|
|
.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;",
|
2019-12-21 01:41:59 +00:00
|
|
|
"Lb0/r/a$a<",
|
2019-12-06 03:29:40 +00:00
|
|
|
"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
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
iput p1, p0, Lb0/r/a$d;->a:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
add-int/lit8 p1, p1, 0x1
|
|
|
|
|
|
|
|
new-array p1, p1, [Ljava/lang/Object;
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
iput-object p1, p0, Lb0/r/a$d;->c:[Ljava/lang/Object;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
iput-object p1, p0, Lb0/r/a$d;->d:[Ljava/lang/Object;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
2019-12-21 01:41:59 +00:00
|
|
|
.method public a(Lb0/r/a$b;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
.locals 19
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
2019-12-21 01:41:59 +00:00
|
|
|
"Lb0/r/a$b<",
|
2019-12-06 03:29:40 +00:00
|
|
|
"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
|
2019-12-21 01:41:59 +00:00
|
|
|
iget-object v2, v1, Lb0/r/a$b;->actual:Lrx/Subscriber;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
iget v3, v0, Lb0/r/a$d;->a:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const/4 v4, 0x1
|
|
|
|
|
|
|
|
const/4 v5, 0x1
|
|
|
|
|
|
|
|
:cond_1
|
2019-12-21 01:41:59 +00:00
|
|
|
iget-object v6, v1, Lb0/r/a$b;->requested:Ljava/util/concurrent/atomic/AtomicLong;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
invoke-virtual {v6}, Ljava/util/concurrent/atomic/AtomicLong;->get()J
|
|
|
|
|
|
|
|
move-result-wide v6
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
iget-object v8, v1, Lb0/r/a$b;->node:Ljava/lang/Object;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
check-cast v8, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
if-nez v8, :cond_2
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
iget-object v8, v0, Lb0/r/a$d;->c:[Ljava/lang/Object;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
:cond_2
|
2019-12-21 01:41:59 +00:00
|
|
|
iget v9, v1, Lb0/r/a$b;->tailIndex:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
iget v10, v1, Lb0/r/a$b;->index:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
iput-object v15, v1, Lb0/r/a$b;->node:Ljava/lang/Object;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_3
|
2019-12-21 01:41:59 +00:00
|
|
|
iget-boolean v11, v0, Lb0/r/a$d;->f:Z
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
iget v12, v0, Lb0/r/a$d;->b:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
iput-object v15, v1, Lb0/r/a$b;->node:Ljava/lang/Object;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
iget-object v1, v0, Lb0/r/a$d;->g:Ljava/lang/Throwable;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
if-eqz v1, :cond_5
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
invoke-interface {v2, v1}, Lb0/g;->onError(Ljava/lang/Throwable;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_5
|
2019-12-21 01:41:59 +00:00
|
|
|
invoke-interface {v2}, Lb0/g;->onCompleted()V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
: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
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
invoke-interface {v2, v11}, Lb0/g;->onNext(Ljava/lang/Object;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
iput-object v15, v1, Lb0/r/a$b;->node:Ljava/lang/Object;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_a
|
2019-12-21 01:41:59 +00:00
|
|
|
iget-boolean v11, v0, Lb0/r/a$d;->f:Z
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
iget v12, v0, Lb0/r/a$d;->b:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
iput-object v15, v1, Lb0/r/a$b;->node:Ljava/lang/Object;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
iget-object v1, v0, Lb0/r/a$d;->g:Ljava/lang/Throwable;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
if-eqz v1, :cond_c
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
invoke-interface {v2, v1}, Lb0/g;->onError(Ljava/lang/Throwable;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
goto :goto_6
|
|
|
|
|
|
|
|
:cond_c
|
2019-12-21 01:41:59 +00:00
|
|
|
invoke-interface {v2}, Lb0/g;->onCompleted()V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
: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
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
iget-object v6, v1, Lb0/r/a$b;->requested:Ljava/util/concurrent/atomic/AtomicLong;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-01-07 02:40:43 +00:00
|
|
|
invoke-static {v6, v8, v9}, Lu/a/a2/w;->b(Ljava/util/concurrent/atomic/AtomicLong;J)J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
:cond_e
|
2019-12-21 01:41:59 +00:00
|
|
|
iput v10, v1, Lb0/r/a$b;->index:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
iput v13, v1, Lb0/r/a$b;->tailIndex:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
iput-object v14, v1, Lb0/r/a$b;->node:Ljava/lang/Object;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
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
|