apkfuckery/com.discord/smali_classes2/g0/r/a$d.smali

296 lines
5.1 KiB
Smali
Raw Normal View History

2020-03-27 22:23:51 +00:00
.class public final Lg0/r/a$d;
2019-12-06 03:29:40 +00:00
.super Ljava/lang/Object;
.source "ReplaySubject.java"
# interfaces
2020-03-27 22:23:51 +00:00
.implements Lg0/r/a$a;
2019-12-06 03:29:40 +00:00
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
2020-03-27 22:23:51 +00:00
value = Lg0/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;",
2020-03-27 22:23:51 +00:00
"Lg0/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
2020-03-27 22:23:51 +00:00
iput p1, p0, Lg0/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;
2020-03-27 22:23:51 +00:00
iput-object p1, p0, Lg0/r/a$d;->c:[Ljava/lang/Object;
2019-12-06 03:29:40 +00:00
2020-03-27 22:23:51 +00:00
iput-object p1, p0, Lg0/r/a$d;->d:[Ljava/lang/Object;
2019-12-06 03:29:40 +00:00
return-void
.end method
# virtual methods
2020-03-27 22:23:51 +00:00
.method public a(Lg0/r/a$b;)V
2019-12-06 03:29:40 +00:00
.locals 19
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
2020-03-27 22:23:51 +00:00
"Lg0/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
2020-03-27 22:23:51 +00:00
iget-object v2, v1, Lg0/r/a$b;->actual:Lrx/Subscriber;
2019-12-06 03:29:40 +00:00
2020-03-27 22:23:51 +00:00
iget v3, v0, Lg0/r/a$d;->a:I
2019-12-06 03:29:40 +00:00
const/4 v4, 0x1
const/4 v5, 0x1
:cond_1
2020-03-27 22:23:51 +00:00
iget-object v6, v1, Lg0/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
2020-03-27 22:23:51 +00:00
iget-object v8, v1, Lg0/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
2020-03-27 22:23:51 +00:00
iget-object v8, v0, Lg0/r/a$d;->c:[Ljava/lang/Object;
2019-12-06 03:29:40 +00:00
:cond_2
2020-03-27 22:23:51 +00:00
iget v9, v1, Lg0/r/a$b;->tailIndex:I
2019-12-06 03:29:40 +00:00
2020-03-27 22:23:51 +00:00
iget v10, v1, Lg0/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
2020-03-27 22:23:51 +00:00
iput-object v15, v1, Lg0/r/a$b;->node:Ljava/lang/Object;
2019-12-06 03:29:40 +00:00
return-void
:cond_3
2020-03-27 22:23:51 +00:00
iget-boolean v11, v0, Lg0/r/a$d;->f:Z
2019-12-06 03:29:40 +00:00
2020-03-27 22:23:51 +00:00
iget v12, v0, Lg0/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
2020-03-27 22:23:51 +00:00
iput-object v15, v1, Lg0/r/a$b;->node:Ljava/lang/Object;
2019-12-06 03:29:40 +00:00
2020-03-27 22:23:51 +00:00
iget-object v1, v0, Lg0/r/a$d;->g:Ljava/lang/Throwable;
2019-12-06 03:29:40 +00:00
if-eqz v1, :cond_5
2020-03-27 22:23:51 +00:00
invoke-interface {v2, v1}, Lg0/g;->onError(Ljava/lang/Throwable;)V
2019-12-06 03:29:40 +00:00
goto :goto_2
:cond_5
2020-03-27 22:23:51 +00:00
invoke-interface {v2}, Lg0/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
2020-03-27 22:23:51 +00:00
invoke-interface {v2, v11}, Lg0/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
2020-03-27 22:23:51 +00:00
iput-object v15, v1, Lg0/r/a$b;->node:Ljava/lang/Object;
2019-12-06 03:29:40 +00:00
return-void
:cond_a
2020-03-27 22:23:51 +00:00
iget-boolean v11, v0, Lg0/r/a$d;->f:Z
2019-12-06 03:29:40 +00:00
2020-03-27 22:23:51 +00:00
iget v12, v0, Lg0/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
2020-03-27 22:23:51 +00:00
iput-object v15, v1, Lg0/r/a$b;->node:Ljava/lang/Object;
2019-12-06 03:29:40 +00:00
2020-03-27 22:23:51 +00:00
iget-object v1, v0, Lg0/r/a$d;->g:Ljava/lang/Throwable;
2019-12-06 03:29:40 +00:00
if-eqz v1, :cond_c
2020-03-27 22:23:51 +00:00
invoke-interface {v2, v1}, Lg0/g;->onError(Ljava/lang/Throwable;)V
2019-12-06 03:29:40 +00:00
goto :goto_6
:cond_c
2020-03-27 22:23:51 +00:00
invoke-interface {v2}, Lg0/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
2020-03-27 22:23:51 +00:00
iget-object v6, v1, Lg0/r/a$b;->requested:Ljava/util/concurrent/atomic/AtomicLong;
2019-12-06 03:29:40 +00:00
2020-04-07 08:23:55 +00:00
invoke-static {v6, v8, v9}, Ly/z/l;->b(Ljava/util/concurrent/atomic/AtomicLong;J)J
2019-12-06 03:29:40 +00:00
:cond_e
2020-03-27 22:23:51 +00:00
iput v10, v1, Lg0/r/a$b;->index:I
2019-12-06 03:29:40 +00:00
2020-03-27 22:23:51 +00:00
iput v13, v1, Lg0/r/a$b;->tailIndex:I
2019-12-06 03:29:40 +00:00
2020-03-27 22:23:51 +00:00
iput-object v14, v1, Lg0/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