apkfuckery/com.discord/smali_classes2/q0/q/a$d.smali

285 lines
5 KiB
Smali
Raw Normal View History

2020-07-22 00:04:40 +00:00
.class public final Lq0/q/a$d;
2020-05-17 12:40:10 +00:00
.super Ljava/lang/Object;
.source "ReplaySubject.java"
# interfaces
2020-07-22 00:04:40 +00:00
.implements Lq0/q/a$a;
2020-05-17 12:40:10 +00:00
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
2020-07-22 00:04:40 +00:00
value = Lq0/q/a;
2020-05-17 12:40:10 +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;",
2020-07-22 00:04:40 +00:00
"Lq0/q/a$a<",
2020-05-17 12:40:10 +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
2020-07-22 00:04:40 +00:00
iput p1, p0, Lq0/q/a$d;->a:I
2020-05-17 12:40:10 +00:00
add-int/lit8 p1, p1, 0x1
new-array p1, p1, [Ljava/lang/Object;
2020-07-22 00:04:40 +00:00
iput-object p1, p0, Lq0/q/a$d;->c:[Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
iput-object p1, p0, Lq0/q/a$d;->d:[Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
return-void
.end method
# virtual methods
2020-07-22 00:04:40 +00:00
.method public a(Lq0/q/a$b;)V
2020-05-17 12:40:10 +00:00
.locals 19
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
2020-07-22 00:04:40 +00:00
"Lq0/q/a$b<",
2020-05-17 12:40:10 +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
2020-07-22 00:04:40 +00:00
iget-object v2, v1, Lq0/q/a$b;->actual:Lrx/Subscriber;
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
iget v3, v0, Lq0/q/a$d;->a:I
2020-05-17 12:40:10 +00:00
const/4 v4, 0x1
const/4 v5, 0x1
:cond_1
2020-07-22 00:04:40 +00:00
iget-object v6, v1, Lq0/q/a$b;->requested:Ljava/util/concurrent/atomic/AtomicLong;
2020-05-17 12:40:10 +00:00
invoke-virtual {v6}, Ljava/util/concurrent/atomic/AtomicLong;->get()J
move-result-wide v6
2020-07-22 00:04:40 +00:00
iget-object v8, v1, Lq0/q/a$b;->node:Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
check-cast v8, [Ljava/lang/Object;
if-nez v8, :cond_2
2020-07-22 00:04:40 +00:00
iget-object v8, v0, Lq0/q/a$d;->c:[Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
:cond_2
2020-07-22 00:04:40 +00:00
iget v9, v1, Lq0/q/a$b;->tailIndex:I
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
iget v10, v1, Lq0/q/a$b;->index:I
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const-wide/16 v13, 0x0
2020-05-17 12:40:10 +00:00
:goto_0
const/4 v15, 0x0
2020-07-08 16:44:49 +00:00
cmp-long v17, v13, v6
2020-05-17 12:40:10 +00:00
if-eqz v17, :cond_9
invoke-virtual {v2}, Lrx/Subscriber;->isUnsubscribed()Z
move-result v18
if-eqz v18, :cond_3
2020-07-22 00:04:40 +00:00
iput-object v15, v1, Lq0/q/a$b;->node:Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
return-void
:cond_3
2020-07-22 00:04:40 +00:00
iget-boolean v11, v0, Lq0/q/a$d;->f:Z
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
iget v12, v0, Lq0/q/a$d;->b:I
2020-05-17 12:40:10 +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
2020-07-22 00:04:40 +00:00
iput-object v15, v1, Lq0/q/a$b;->node:Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
iget-object v1, v0, Lq0/q/a$d;->g:Ljava/lang/Throwable;
2020-05-17 12:40:10 +00:00
if-eqz v1, :cond_5
2020-07-22 00:04:40 +00:00
invoke-interface {v2, v1}, Lq0/g;->onError(Ljava/lang/Throwable;)V
2020-05-17 12:40:10 +00:00
goto :goto_2
:cond_5
2020-07-22 00:04:40 +00:00
invoke-interface {v2}, Lq0/g;->onCompleted()V
2020-05-17 12:40:10 +00:00
:goto_2
return-void
:cond_6
if-eqz v12, :cond_7
2020-07-08 16:44:49 +00:00
goto :goto_3
2020-05-17 12:40:10 +00:00
:cond_7
2020-07-08 16:44:49 +00:00
if-ne v9, v3, :cond_8
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
aget-object v8, v8, v9
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
check-cast v8, [Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const/4 v9, 0x0
2020-05-17 12:40:10 +00:00
:cond_8
2020-07-08 16:44:49 +00:00
aget-object v11, v8, v9
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
invoke-interface {v2, v11}, Lq0/g;->onNext(Ljava/lang/Object;)V
2020-05-17 12:40:10 +00:00
const-wide/16 v11, 0x1
2020-07-08 16:44:49 +00:00
add-long/2addr v13, v11
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
add-int/2addr v9, v4
2020-05-17 12:40:10 +00:00
add-int/lit8 v10, v10, 0x1
goto :goto_0
:cond_9
2020-07-08 16:44:49 +00:00
:goto_3
2020-05-17 12:40:10 +00:00
if-nez v17, :cond_d
invoke-virtual {v2}, Lrx/Subscriber;->isUnsubscribed()Z
move-result v11
if-eqz v11, :cond_a
2020-07-22 00:04:40 +00:00
iput-object v15, v1, Lq0/q/a$b;->node:Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
return-void
:cond_a
2020-07-22 00:04:40 +00:00
iget-boolean v11, v0, Lq0/q/a$d;->f:Z
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
iget v12, v0, Lq0/q/a$d;->b:I
2020-05-17 12:40:10 +00:00
if-ne v10, v12, :cond_b
const/16 v16, 0x1
2020-07-08 16:44:49 +00:00
goto :goto_4
2020-05-17 12:40:10 +00:00
:cond_b
const/16 v16, 0x0
2020-07-08 16:44:49 +00:00
:goto_4
2020-05-17 12:40:10 +00:00
if-eqz v11, :cond_d
if-eqz v16, :cond_d
2020-07-22 00:04:40 +00:00
iput-object v15, v1, Lq0/q/a$b;->node:Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
iget-object v1, v0, Lq0/q/a$d;->g:Ljava/lang/Throwable;
2020-05-17 12:40:10 +00:00
if-eqz v1, :cond_c
2020-07-22 00:04:40 +00:00
invoke-interface {v2, v1}, Lq0/g;->onError(Ljava/lang/Throwable;)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
goto :goto_5
2020-05-17 12:40:10 +00:00
:cond_c
2020-07-22 00:04:40 +00:00
invoke-interface {v2}, Lq0/g;->onCompleted()V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:goto_5
2020-05-17 12:40:10 +00:00
return-void
:cond_d
const-wide/16 v11, 0x0
2020-07-08 16:44:49 +00:00
cmp-long v15, v13, v11
2020-05-17 12:40:10 +00:00
if-eqz v15, :cond_e
const-wide v11, 0x7fffffffffffffffL
cmp-long v15, v6, v11
if-eqz v15, :cond_e
2020-07-22 00:04:40 +00:00
iget-object v6, v1, Lq0/q/a$b;->requested:Ljava/util/concurrent/atomic/AtomicLong;
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
invoke-static {v6, v13, v14}, Li0/i/t;->J(Ljava/util/concurrent/atomic/AtomicLong;J)J
2020-05-17 12:40:10 +00:00
:cond_e
2020-07-22 00:04:40 +00:00
iput v10, v1, Lq0/q/a$b;->index:I
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
iput v9, v1, Lq0/q/a$b;->tailIndex:I
2020-05-17 12:40:10 +00:00
2020-07-22 00:04:40 +00:00
iput-object v8, v1, Lq0/q/a$b;->node:Ljava/lang/Object;
2020-05-17 12:40:10 +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