apkfuckery/com.discord/smali_classes2/l0/q/a$c.smali

287 lines
5.2 KiB
Smali
Raw Normal View History

2020-11-09 00:01:03 +00:00
.class public final Ll0/q/a$c;
2020-10-27 04:20:34 +00:00
.super Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
.source "ReplaySubject.java"
# interfaces
2020-11-09 00:01:03 +00:00
.implements Ll0/q/a$a;
2020-05-17 12:40:10 +00:00
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
2020-11-09 00:01:03 +00:00
value = Ll0/q/a;
2020-05-17 12:40:10 +00:00
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "c"
.end annotation
2020-10-27 04:20:34 +00:00
.annotation system Ldalvik/annotation/MemberClasses;
value = {
2020-11-09 00:01:03 +00:00
Ll0/q/a$c$a;
2020-10-27 04:20:34 +00:00
}
.end annotation
2020-05-17 12:40:10 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
2020-10-27 04:20:34 +00:00
"Ljava/lang/Object;",
2020-11-09 00:01:03 +00:00
"Ll0/q/a$a<",
2020-05-17 12:40:10 +00:00
"TT;>;"
}
.end annotation
# instance fields
2020-10-27 04:20:34 +00:00
.field public final a:I
2020-11-09 00:01:03 +00:00
.field public volatile b:Ll0/q/a$c$a;
2020-05-17 12:40:10 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
2020-11-09 00:01:03 +00:00
"Ll0/q/a$c$a<",
2020-05-17 12:40:10 +00:00
"TT;>;"
}
.end annotation
.end field
2020-11-09 00:01:03 +00:00
.field public c:Ll0/q/a$c$a;
2020-10-27 04:20:34 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
2020-11-09 00:01:03 +00:00
"Ll0/q/a$c$a<",
2020-10-27 04:20:34 +00:00
"TT;>;"
}
.end annotation
.end field
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
.field public d:I
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
.field public volatile e:Z
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
.field public f:Ljava/lang/Throwable;
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
# direct methods
.method public constructor <init>(I)V
.locals 1
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2020-05-17 12:40:10 +00:00
2020-11-09 00:01:03 +00:00
iput p1, p0, Ll0/q/a$c;->a:I
2020-05-17 12:40:10 +00:00
2020-11-09 00:01:03 +00:00
new-instance p1, Ll0/q/a$c$a;
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
const/4 v0, 0x0
2020-05-17 12:40:10 +00:00
2020-11-09 00:01:03 +00:00
invoke-direct {p1, v0}, Ll0/q/a$c$a;-><init>(Ljava/lang/Object;)V
2020-05-17 12:40:10 +00:00
2020-11-09 00:01:03 +00:00
iput-object p1, p0, Ll0/q/a$c;->c:Ll0/q/a$c$a;
2020-05-17 12:40:10 +00:00
2020-11-09 00:01:03 +00:00
iput-object p1, p0, Ll0/q/a$c;->b:Ll0/q/a$c$a;
2020-05-17 12:40:10 +00:00
return-void
.end method
# virtual methods
2020-11-09 00:01:03 +00:00
.method public a(Ll0/q/a$b;)V
2020-10-27 04:20:34 +00:00
.locals 17
2020-05-17 12:40:10 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
2020-11-09 00:01:03 +00:00
"Ll0/q/a$b<",
2020-05-17 12:40:10 +00:00
"TT;>;)V"
}
.end annotation
2020-10-27 04:20:34 +00:00
move-object/from16 v0, p0
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
move-object/from16 v1, p1
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
invoke-virtual/range {p1 .. p1}, Ljava/util/concurrent/atomic/AtomicInteger;->getAndIncrement()I
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
move-result v2
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
if-eqz v2, :cond_0
2020-05-17 12:40:10 +00:00
return-void
2020-07-08 16:44:49 +00:00
:cond_0
2020-11-09 00:01:03 +00:00
iget-object v2, v1, Ll0/q/a$b;->actual:Lrx/Subscriber;
2020-07-08 16:44:49 +00:00
2020-10-27 04:20:34 +00:00
const/4 v4, 0x1
2020-07-08 16:44:49 +00:00
:cond_1
2020-11-09 00:01:03 +00:00
iget-object v5, v1, Ll0/q/a$b;->requested:Ljava/util/concurrent/atomic/AtomicLong;
2020-07-08 16:44:49 +00:00
2020-10-27 04:20:34 +00:00
invoke-virtual {v5}, Ljava/util/concurrent/atomic/AtomicLong;->get()J
2020-07-08 16:44:49 +00:00
2020-10-27 04:20:34 +00:00
move-result-wide v5
2020-07-08 16:44:49 +00:00
2020-11-09 00:01:03 +00:00
iget-object v7, v1, Ll0/q/a$b;->node:Ljava/lang/Object;
2020-07-08 16:44:49 +00:00
2020-11-09 00:01:03 +00:00
check-cast v7, Ll0/q/a$c$a;
2020-07-08 16:44:49 +00:00
2020-10-27 04:20:34 +00:00
const-wide/16 v8, 0x0
2020-07-08 16:44:49 +00:00
2020-10-27 04:20:34 +00:00
if-nez v7, :cond_2
2020-07-08 16:44:49 +00:00
2020-11-09 00:01:03 +00:00
iget-object v7, v0, Ll0/q/a$c;->b:Ll0/q/a$c$a;
2020-07-08 16:44:49 +00:00
2020-10-27 04:20:34 +00:00
:cond_2
move-wide v10, v8
2020-07-08 16:44:49 +00:00
:goto_0
2020-10-27 04:20:34 +00:00
const/4 v12, 0x0
2020-07-08 16:44:49 +00:00
2020-10-27 04:20:34 +00:00
const/4 v13, 0x0
2020-07-08 16:44:49 +00:00
2020-10-27 04:20:34 +00:00
cmp-long v14, v10, v5
2020-07-08 16:44:49 +00:00
2020-10-27 04:20:34 +00:00
if-eqz v14, :cond_8
2020-07-08 16:44:49 +00:00
2020-10-27 04:20:34 +00:00
invoke-virtual {v2}, Lrx/Subscriber;->isUnsubscribed()Z
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
move-result v15
2020-07-08 16:44:49 +00:00
2020-10-27 04:20:34 +00:00
if-eqz v15, :cond_3
2020-07-08 16:44:49 +00:00
2020-11-09 00:01:03 +00:00
iput-object v13, v1, Ll0/q/a$b;->node:Ljava/lang/Object;
2020-07-08 16:44:49 +00:00
2020-05-17 12:40:10 +00:00
return-void
2020-10-27 04:20:34 +00:00
:cond_3
2020-11-09 00:01:03 +00:00
iget-boolean v15, v0, Ll0/q/a$c;->e:Z
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
invoke-virtual {v7}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
move-result-object v16
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
move-object/from16 v3, v16
2020-05-17 12:40:10 +00:00
2020-11-09 00:01:03 +00:00
check-cast v3, Ll0/q/a$c$a;
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
if-nez v3, :cond_4
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
const/16 v16, 0x1
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
goto :goto_1
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
:cond_4
const/16 v16, 0x0
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
:goto_1
if-eqz v15, :cond_6
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
if-eqz v16, :cond_6
2020-05-17 12:40:10 +00:00
2020-11-09 00:01:03 +00:00
iput-object v13, v1, Ll0/q/a$b;->node:Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
2020-11-09 00:01:03 +00:00
iget-object v1, v0, Ll0/q/a$c;->f:Ljava/lang/Throwable;
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
if-eqz v1, :cond_5
2020-05-17 12:40:10 +00:00
2020-11-09 00:01:03 +00:00
invoke-interface {v2, v1}, Ll0/g;->onError(Ljava/lang/Throwable;)V
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
goto :goto_2
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
:cond_5
2020-11-09 00:01:03 +00:00
invoke-interface {v2}, Ll0/g;->onCompleted()V
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
:goto_2
2020-05-17 12:40:10 +00:00
return-void
2020-10-27 04:20:34 +00:00
:cond_6
if-eqz v16, :cond_7
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
goto :goto_3
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
:cond_7
2020-11-09 00:01:03 +00:00
iget-object v7, v3, Ll0/q/a$c$a;->value:Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
2020-11-09 00:01:03 +00:00
invoke-interface {v2, v7}, Ll0/g;->onNext(Ljava/lang/Object;)V
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
const-wide/16 v12, 0x1
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
add-long/2addr v10, v12
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
move-object v7, v3
2020-05-17 12:40:10 +00:00
goto :goto_0
2020-10-27 04:20:34 +00:00
:cond_8
:goto_3
if-nez v14, :cond_c
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
invoke-virtual {v2}, Lrx/Subscriber;->isUnsubscribed()Z
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
move-result v3
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
if-eqz v3, :cond_9
2020-05-17 12:40:10 +00:00
2020-11-09 00:01:03 +00:00
iput-object v13, v1, Ll0/q/a$b;->node:Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
return-void
2020-10-27 04:20:34 +00:00
:cond_9
2020-11-09 00:01:03 +00:00
iget-boolean v3, v0, Ll0/q/a$c;->e:Z
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
invoke-virtual {v7}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
move-result-object v14
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
if-nez v14, :cond_a
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
const/4 v12, 0x1
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
:cond_a
if-eqz v3, :cond_c
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
if-eqz v12, :cond_c
2020-05-17 12:40:10 +00:00
2020-11-09 00:01:03 +00:00
iput-object v13, v1, Ll0/q/a$b;->node:Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
2020-11-09 00:01:03 +00:00
iget-object v1, v0, Ll0/q/a$c;->f:Ljava/lang/Throwable;
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
if-eqz v1, :cond_b
2020-05-17 12:40:10 +00:00
2020-11-09 00:01:03 +00:00
invoke-interface {v2, v1}, Ll0/g;->onError(Ljava/lang/Throwable;)V
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
goto :goto_4
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
:cond_b
2020-11-09 00:01:03 +00:00
invoke-interface {v2}, Ll0/g;->onCompleted()V
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
:goto_4
return-void
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
:cond_c
cmp-long v3, v10, v8
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
if-eqz v3, :cond_d
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
const-wide v8, 0x7fffffffffffffffL
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
cmp-long v3, v5, v8
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
if-eqz v3, :cond_d
2020-05-17 12:40:10 +00:00
2020-11-09 00:01:03 +00:00
iget-object v3, v1, Ll0/q/a$b;->requested:Ljava/util/concurrent/atomic/AtomicLong;
2020-05-17 12:40:10 +00:00
2020-11-09 00:01:03 +00:00
invoke-static {v3, v10, v11}, Lc0/j/a;->F(Ljava/util/concurrent/atomic/AtomicLong;J)J
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
:cond_d
2020-11-09 00:01:03 +00:00
iput-object v7, v1, Ll0/q/a$b;->node:Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
neg-int v3, v4
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
invoke-virtual {v1, v3}, Ljava/util/concurrent/atomic/AtomicInteger;->addAndGet(I)I
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
move-result v4
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
if-nez v4, :cond_1
2020-05-17 12:40:10 +00:00
return-void
.end method