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

456 lines
8.6 KiB
Smali
Raw Normal View History

2020-11-05 20:51:11 +00:00
.class public final Lk0/q/a$d;
2020-10-27 04:20:34 +00:00
.super Ljava/util/concurrent/atomic/AtomicReference;
2020-05-17 12:40:10 +00:00
.source "ReplaySubject.java"
# interfaces
2020-10-27 04:20:34 +00:00
.implements Lrx/Observable$a;
2020-11-05 20:51:11 +00:00
.implements Lk0/g;
2020-05-17 12:40:10 +00:00
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
2020-11-05 20:51:11 +00:00
value = Lk0/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;",
">",
2020-10-27 04:20:34 +00:00
"Ljava/util/concurrent/atomic/AtomicReference<",
"[",
2020-11-05 20:51:11 +00:00
"Lk0/q/a$b<",
2020-10-27 04:20:34 +00:00
"TT;>;>;",
"Lrx/Observable$a<",
"TT;>;",
2020-11-05 20:51:11 +00:00
"Lk0/g<",
2020-05-17 12:40:10 +00:00
"TT;>;"
}
.end annotation
2020-10-27 04:20:34 +00:00
# static fields
2020-11-05 20:51:11 +00:00
.field public static final d:[Lk0/q/a$b;
2020-05-17 12:40:10 +00:00
2020-11-05 20:51:11 +00:00
.field public static final e:[Lk0/q/a$b;
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
.field public static final serialVersionUID:J = 0x529b0a217109d450L
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
# instance fields
2020-11-05 20:51:11 +00:00
.field public final buffer:Lk0/q/a$a;
2020-10-27 04:20:34 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
2020-11-05 20:51:11 +00:00
"Lk0/q/a$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
# direct methods
.method public static constructor <clinit>()V
.locals 2
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-05 20:51:11 +00:00
new-array v1, v0, [Lk0/q/a$b;
2020-05-17 12:40:10 +00:00
2020-11-05 20:51:11 +00:00
sput-object v1, Lk0/q/a$d;->d:[Lk0/q/a$b;
2020-05-17 12:40:10 +00:00
2020-11-05 20:51:11 +00:00
new-array v0, v0, [Lk0/q/a$b;
2020-05-17 12:40:10 +00:00
2020-11-05 20:51:11 +00:00
sput-object v0, Lk0/q/a$d;->e:[Lk0/q/a$b;
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
return-void
.end method
2020-05-17 12:40:10 +00:00
2020-11-05 20:51:11 +00:00
.method public constructor <init>(Lk0/q/a$a;)V
2020-10-27 04:20:34 +00:00
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
2020-11-05 20:51:11 +00:00
"Lk0/q/a$a<",
2020-10-27 04:20:34 +00:00
"TT;>;)V"
}
.end annotation
invoke-direct {p0}, Ljava/util/concurrent/atomic/AtomicReference;-><init>()V
2020-11-05 20:51:11 +00:00
iput-object p1, p0, Lk0/q/a$d;->buffer:Lk0/q/a$a;
2020-05-17 12:40:10 +00:00
2020-11-05 20:51:11 +00:00
sget-object p1, Lk0/q/a$d;->d:[Lk0/q/a$b;
2020-10-27 04:20:34 +00:00
invoke-virtual {p0, p1}, Ljava/util/concurrent/atomic/AtomicReference;->lazySet(Ljava/lang/Object;)V
2020-05-17 12:40:10 +00:00
return-void
.end method
# virtual methods
2020-11-05 20:51:11 +00:00
.method public a(Lk0/q/a$b;)V
2020-10-27 04:20:34 +00:00
.locals 6
2020-05-17 12:40:10 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
2020-11-05 20:51:11 +00:00
"Lk0/q/a$b<",
2020-05-17 12:40:10 +00:00
"TT;>;)V"
}
.end annotation
2020-10-27 04:20:34 +00:00
:cond_0
invoke-virtual {p0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
2020-11-05 20:51:11 +00:00
check-cast v0, [Lk0/q/a$b;
2020-10-27 04:20:34 +00:00
2020-11-05 20:51:11 +00:00
sget-object v1, Lk0/q/a$d;->e:[Lk0/q/a$b;
2020-10-27 04:20:34 +00:00
if-eq v0, v1, :cond_6
2020-05-17 12:40:10 +00:00
2020-11-05 20:51:11 +00:00
sget-object v1, Lk0/q/a$d;->d:[Lk0/q/a$b;
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
if-ne v0, v1, :cond_1
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
goto :goto_3
:cond_1
array-length v1, v0
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
const/4 v2, 0x0
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
const/4 v3, 0x0
:goto_0
if-ge v3, v1, :cond_3
aget-object v4, v0, v3
if-ne v4, p1, :cond_2
goto :goto_1
:cond_2
add-int/lit8 v3, v3, 0x1
goto :goto_0
:cond_3
const/4 v3, -0x1
:goto_1
if-gez v3, :cond_4
return-void
:cond_4
const/4 v4, 0x1
if-ne v1, v4, :cond_5
2020-11-05 20:51:11 +00:00
sget-object v1, Lk0/q/a$d;->d:[Lk0/q/a$b;
2020-10-27 04:20:34 +00:00
goto :goto_2
:cond_5
add-int/lit8 v5, v1, -0x1
2020-11-05 20:51:11 +00:00
new-array v5, v5, [Lk0/q/a$b;
2020-10-27 04:20:34 +00:00
invoke-static {v0, v2, v5, v2, v3}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
add-int/lit8 v2, v3, 0x1
sub-int/2addr v1, v3
sub-int/2addr v1, v4
invoke-static {v0, v2, v5, v3, v1}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
move-object v1, v5
:goto_2
invoke-virtual {p0, v0, v1}, Ljava/util/concurrent/atomic/AtomicReference;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
:cond_6
:goto_3
2020-05-17 12:40:10 +00:00
return-void
2020-10-27 04:20:34 +00:00
.end method
.method public call(Ljava/lang/Object;)V
.locals 4
check-cast p1, Lrx/Subscriber;
2020-11-05 20:51:11 +00:00
new-instance v0, Lk0/q/a$b;
2020-10-27 04:20:34 +00:00
2020-11-05 20:51:11 +00:00
invoke-direct {v0, p1, p0}, Lk0/q/a$b;-><init>(Lrx/Subscriber;Lk0/q/a$d;)V
2020-10-27 04:20:34 +00:00
invoke-virtual {p1, v0}, Lrx/Subscriber;->add(Lrx/Subscription;)V
invoke-virtual {p1, v0}, Lrx/Subscriber;->setProducer(Lrx/Producer;)V
2020-05-17 12:40:10 +00:00
:cond_0
2020-10-27 04:20:34 +00:00
invoke-virtual {p0}, 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 p1
2020-05-17 12:40:10 +00:00
2020-11-05 20:51:11 +00:00
check-cast p1, [Lk0/q/a$b;
2020-05-17 12:40:10 +00:00
2020-11-05 20:51:11 +00:00
sget-object v1, Lk0/q/a$d;->e:[Lk0/q/a$b;
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
const/4 v2, 0x0
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
if-ne p1, v1, :cond_1
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
goto :goto_0
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
:cond_1
array-length v1, p1
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
add-int/lit8 v3, v1, 0x1
2020-05-17 12:40:10 +00:00
2020-11-05 20:51:11 +00:00
new-array v3, v3, [Lk0/q/a$b;
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
invoke-static {p1, v2, v3, v2, v1}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
aput-object v0, v3, v1
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
invoke-virtual {p0, p1, v3}, Ljava/util/concurrent/atomic/AtomicReference;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;)Z
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
move-result p1
if-eqz p1, :cond_0
const/4 v2, 0x1
2020-05-17 12:40:10 +00:00
:goto_0
2020-10-27 04:20:34 +00:00
if-eqz v2, :cond_2
2020-05-17 12:40:10 +00:00
2020-11-05 20:51:11 +00:00
invoke-virtual {v0}, Lk0/q/a$b;->isUnsubscribed()Z
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
move-result p1
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
if-eqz p1, :cond_2
2020-05-17 12:40:10 +00:00
2020-11-05 20:51:11 +00:00
invoke-virtual {p0, v0}, Lk0/q/a$d;->a(Lk0/q/a$b;)V
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
goto :goto_1
:cond_2
2020-11-05 20:51:11 +00:00
iget-object p1, p0, Lk0/q/a$d;->buffer:Lk0/q/a$a;
2020-05-17 12:40:10 +00:00
2020-11-05 20:51:11 +00:00
check-cast p1, Lk0/q/a$c;
2020-05-17 12:40:10 +00:00
2020-11-05 20:51:11 +00:00
invoke-virtual {p1, v0}, Lk0/q/a$c;->a(Lk0/q/a$b;)V
2020-10-27 04:20:34 +00:00
:goto_1
2020-05-17 12:40:10 +00:00
return-void
2020-10-27 04:20:34 +00:00
.end method
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
.method public onCompleted()V
.locals 6
2020-05-17 12:40:10 +00:00
2020-11-05 20:51:11 +00:00
iget-object v0, p0, Lk0/q/a$d;->buffer:Lk0/q/a$a;
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
move-object v1, v0
2020-05-17 12:40:10 +00:00
2020-11-05 20:51:11 +00:00
check-cast v1, Lk0/q/a$c;
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
const/4 v2, 0x1
2020-05-17 12:40:10 +00:00
2020-11-05 20:51:11 +00:00
iput-boolean v2, v1, Lk0/q/a$c;->e:Z
2020-05-17 12:40:10 +00:00
2020-11-05 20:51:11 +00:00
sget-object v1, Lk0/q/a$d;->e:[Lk0/q/a$b;
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
invoke-virtual {p0, v1}, Ljava/util/concurrent/atomic/AtomicReference;->getAndSet(Ljava/lang/Object;)Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
move-result-object v1
2020-05-17 12:40:10 +00:00
2020-11-05 20:51:11 +00:00
check-cast v1, [Lk0/q/a$b;
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
array-length v2, v1
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
const/4 v3, 0x0
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
:goto_0
if-ge v3, v2, :cond_0
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
aget-object v4, v1, v3
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
move-object v5, v0
2020-11-05 20:51:11 +00:00
check-cast v5, Lk0/q/a$c;
2020-10-27 04:20:34 +00:00
2020-11-05 20:51:11 +00:00
invoke-virtual {v5, v4}, Lk0/q/a$c;->a(Lk0/q/a$b;)V
2020-10-27 04:20:34 +00:00
add-int/lit8 v3, v3, 0x1
goto :goto_0
:cond_0
2020-05-17 12:40:10 +00:00
return-void
2020-10-27 04:20:34 +00:00
.end method
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
.method public onError(Ljava/lang/Throwable;)V
.locals 6
2020-05-17 12:40:10 +00:00
2020-11-05 20:51:11 +00:00
iget-object v0, p0, Lk0/q/a$d;->buffer:Lk0/q/a$a;
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
move-object v1, v0
2020-05-17 12:40:10 +00:00
2020-11-05 20:51:11 +00:00
check-cast v1, Lk0/q/a$c;
2020-05-17 12:40:10 +00:00
2020-11-05 20:51:11 +00:00
iput-object p1, v1, Lk0/q/a$c;->f:Ljava/lang/Throwable;
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
const/4 p1, 0x1
2020-05-17 12:40:10 +00:00
2020-11-05 20:51:11 +00:00
iput-boolean p1, v1, Lk0/q/a$c;->e:Z
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
const/4 p1, 0x0
2020-05-17 12:40:10 +00:00
2020-11-05 20:51:11 +00:00
sget-object v1, Lk0/q/a$d;->e:[Lk0/q/a$b;
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
invoke-virtual {p0, v1}, Ljava/util/concurrent/atomic/AtomicReference;->getAndSet(Ljava/lang/Object;)Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
move-result-object v1
2020-05-17 12:40:10 +00:00
2020-11-05 20:51:11 +00:00
check-cast v1, [Lk0/q/a$b;
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
array-length v2, v1
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
const/4 v3, 0x0
:goto_0
if-ge v3, v2, :cond_1
aget-object v4, v1, v3
move-object v5, v0
2020-11-05 20:51:11 +00:00
check-cast v5, Lk0/q/a$c;
2020-10-27 04:20:34 +00:00
:try_start_0
2020-11-05 20:51:11 +00:00
invoke-virtual {v5, v4}, Lk0/q/a$c;->a(Lk0/q/a$b;)V
2020-10-27 04:20:34 +00:00
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
goto :goto_1
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
:catchall_0
move-exception v4
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
if-nez p1, :cond_0
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
new-instance p1, Ljava/util/ArrayList;
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V
:cond_0
invoke-interface {p1, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z
:goto_1
add-int/lit8 v3, v3, 0x1
goto :goto_0
:cond_1
2020-11-05 20:51:11 +00:00
invoke-static {p1}, Lb0/i/s;->W(Ljava/util/List;)V
2020-05-17 12:40:10 +00:00
return-void
2020-10-27 04:20:34 +00:00
.end method
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
.method public onNext(Ljava/lang/Object;)V
.locals 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
2020-05-17 12:40:10 +00:00
2020-11-05 20:51:11 +00:00
iget-object v0, p0, Lk0/q/a$d;->buffer:Lk0/q/a$a;
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
move-object v1, v0
2020-05-17 12:40:10 +00:00
2020-11-05 20:51:11 +00:00
check-cast v1, Lk0/q/a$c;
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
if-eqz v1, :cond_2
2020-05-17 12:40:10 +00:00
2020-11-05 20:51:11 +00:00
new-instance v2, Lk0/q/a$c$a;
2020-05-17 12:40:10 +00:00
2020-11-05 20:51:11 +00:00
invoke-direct {v2, p1}, Lk0/q/a$c$a;-><init>(Ljava/lang/Object;)V
2020-05-17 12:40:10 +00:00
2020-11-05 20:51:11 +00:00
iget-object p1, v1, Lk0/q/a$c;->c:Lk0/q/a$c$a;
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
invoke-virtual {p1, v2}, Ljava/util/concurrent/atomic/AtomicReference;->set(Ljava/lang/Object;)V
2020-05-17 12:40:10 +00:00
2020-11-05 20:51:11 +00:00
iput-object v2, v1, Lk0/q/a$c;->c:Lk0/q/a$c$a;
2020-05-17 12:40:10 +00:00
2020-11-05 20:51:11 +00:00
iget p1, v1, Lk0/q/a$c;->d:I
2020-05-17 12:40:10 +00:00
2020-11-05 20:51:11 +00:00
iget v2, v1, Lk0/q/a$c;->a:I
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
if-ne p1, v2, :cond_0
2020-05-17 12:40:10 +00:00
2020-11-05 20:51:11 +00:00
iget-object p1, v1, Lk0/q/a$c;->b:Lk0/q/a$c$a;
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
invoke-virtual {p1}, 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 p1
2020-11-05 20:51:11 +00:00
check-cast p1, Lk0/q/a$c$a;
2020-10-27 04:20:34 +00:00
2020-11-05 20:51:11 +00:00
iput-object p1, v1, Lk0/q/a$c;->b:Lk0/q/a$c$a;
2020-10-27 04:20:34 +00:00
goto :goto_0
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
:cond_0
add-int/lit8 p1, p1, 0x1
2020-05-17 12:40:10 +00:00
2020-11-05 20:51:11 +00:00
iput p1, v1, Lk0/q/a$c;->d:I
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
:goto_0
invoke-virtual {p0}, 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 p1
2020-05-17 12:40:10 +00:00
2020-11-05 20:51:11 +00:00
check-cast p1, [Lk0/q/a$b;
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
array-length v1, p1
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
const/4 v2, 0x0
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
:goto_1
if-ge v2, v1, :cond_1
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
aget-object v3, p1, v2
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
move-object v4, v0
2020-05-17 12:40:10 +00:00
2020-11-05 20:51:11 +00:00
check-cast v4, Lk0/q/a$c;
2020-05-17 12:40:10 +00:00
2020-11-05 20:51:11 +00:00
invoke-virtual {v4, v3}, Lk0/q/a$c;->a(Lk0/q/a$b;)V
2020-05-17 12:40:10 +00:00
2020-10-27 04:20:34 +00:00
add-int/lit8 v2, v2, 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_1
2020-05-17 12:40:10 +00:00
return-void
2020-10-27 04:20:34 +00:00
:cond_2
const/4 p1, 0x0
throw p1
2020-05-17 12:40:10 +00:00
.end method