apkfuckery/com.discord/smali_classes2/b0/r/a$c.smali

505 lines
9.2 KiB
Smali
Raw Normal View History

2019-12-21 01:41:59 +00:00
.class public final Lb0/r/a$c;
2019-12-06 03:29:40 +00:00
.super Ljava/util/concurrent/atomic/AtomicReference;
.source "ReplaySubject.java"
# interfaces
.implements Lrx/Observable$a;
2019-12-21 01:41:59 +00:00
.implements Lb0/g;
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 = "c"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/util/concurrent/atomic/AtomicReference<",
"[",
2019-12-21 01:41:59 +00:00
"Lb0/r/a$b<",
2019-12-06 03:29:40 +00:00
"TT;>;>;",
"Lrx/Observable$a<",
"TT;>;",
2019-12-21 01:41:59 +00:00
"Lb0/g<",
2019-12-06 03:29:40 +00:00
"TT;>;"
}
.end annotation
# static fields
2019-12-21 01:41:59 +00:00
.field public static final d:[Lb0/r/a$b;
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
.field public static final e:[Lb0/r/a$b;
2019-12-06 03:29:40 +00:00
.field public static final serialVersionUID:J = 0x529b0a217109d450L
# instance fields
2019-12-21 01:41:59 +00:00
.field public final buffer:Lb0/r/a$a;
2019-12-06 03:29:40 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
2019-12-21 01:41:59 +00:00
"Lb0/r/a$a<",
2019-12-06 03:29:40 +00:00
"TT;>;"
}
.end annotation
.end field
# direct methods
.method public static constructor <clinit>()V
.locals 2
const/4 v0, 0x0
2019-12-21 01:41:59 +00:00
new-array v1, v0, [Lb0/r/a$b;
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
sput-object v1, Lb0/r/a$c;->d:[Lb0/r/a$b;
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
new-array v0, v0, [Lb0/r/a$b;
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
sput-object v0, Lb0/r/a$c;->e:[Lb0/r/a$b;
2019-12-06 03:29:40 +00:00
return-void
.end method
2019-12-21 01:41:59 +00:00
.method public constructor <init>(Lb0/r/a$a;)V
2019-12-06 03:29:40 +00:00
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
2019-12-21 01:41:59 +00:00
"Lb0/r/a$a<",
2019-12-06 03:29:40 +00:00
"TT;>;)V"
}
.end annotation
invoke-direct {p0}, Ljava/util/concurrent/atomic/AtomicReference;-><init>()V
2019-12-21 01:41:59 +00:00
iput-object p1, p0, Lb0/r/a$c;->buffer:Lb0/r/a$a;
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
sget-object p1, Lb0/r/a$c;->d:[Lb0/r/a$b;
2019-12-06 03:29:40 +00:00
invoke-virtual {p0, p1}, Ljava/util/concurrent/atomic/AtomicReference;->lazySet(Ljava/lang/Object;)V
return-void
.end method
# virtual methods
.method public a(Lrx/Subscriber;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lrx/Subscriber<",
"-TT;>;)V"
}
.end annotation
2019-12-21 01:41:59 +00:00
new-instance v0, Lb0/r/a$b;
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
invoke-direct {v0, p1, p0}, Lb0/r/a$b;-><init>(Lrx/Subscriber;Lb0/r/a$c;)V
2019-12-06 03:29:40 +00:00
invoke-virtual {p1, v0}, Lrx/Subscriber;->add(Lrx/Subscription;)V
invoke-virtual {p1, v0}, Lrx/Subscriber;->setProducer(Lrx/Producer;)V
2019-12-21 01:41:59 +00:00
invoke-virtual {p0, v0}, Lb0/r/a$c;->a(Lb0/r/a$b;)Z
2019-12-06 03:29:40 +00:00
move-result p1
if-eqz p1, :cond_0
2019-12-21 01:41:59 +00:00
invoke-virtual {v0}, Lb0/r/a$b;->isUnsubscribed()Z
2019-12-06 03:29:40 +00:00
move-result p1
if-eqz p1, :cond_0
2019-12-21 01:41:59 +00:00
invoke-virtual {p0, v0}, Lb0/r/a$c;->b(Lb0/r/a$b;)V
2019-12-06 03:29:40 +00:00
return-void
:cond_0
2019-12-21 01:41:59 +00:00
iget-object p1, p0, Lb0/r/a$c;->buffer:Lb0/r/a$a;
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
check-cast p1, Lb0/r/a$d;
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
invoke-virtual {p1, v0}, Lb0/r/a$d;->a(Lb0/r/a$b;)V
2019-12-06 03:29:40 +00:00
return-void
.end method
2019-12-21 01:41:59 +00:00
.method public a(Lb0/r/a$b;)Z
2019-12-06 03:29:40 +00:00
.locals 4
.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;>;)Z"
}
.end annotation
:cond_0
invoke-virtual {p0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
2019-12-21 01:41:59 +00:00
check-cast v0, [Lb0/r/a$b;
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
sget-object v1, Lb0/r/a$c;->e:[Lb0/r/a$b;
2019-12-06 03:29:40 +00:00
const/4 v2, 0x0
if-ne v0, v1, :cond_1
return v2
:cond_1
array-length v1, v0
add-int/lit8 v3, v1, 0x1
2019-12-21 01:41:59 +00:00
new-array v3, v3, [Lb0/r/a$b;
2019-12-06 03:29:40 +00:00
invoke-static {v0, v2, v3, v2, v1}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
aput-object p1, v3, v1
invoke-virtual {p0, v0, v3}, Ljava/util/concurrent/atomic/AtomicReference;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
const/4 p1, 0x1
return p1
.end method
2019-12-21 01:41:59 +00:00
.method public b(Lb0/r/a$b;)V
2019-12-06 03:29:40 +00:00
.locals 6
.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
:cond_0
invoke-virtual {p0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
2019-12-21 01:41:59 +00:00
check-cast v0, [Lb0/r/a$b;
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
sget-object v1, Lb0/r/a$c;->e:[Lb0/r/a$b;
2019-12-06 03:29:40 +00:00
if-eq v0, v1, :cond_6
2019-12-21 01:41:59 +00:00
sget-object v1, Lb0/r/a$c;->d:[Lb0/r/a$b;
2019-12-06 03:29:40 +00:00
if-ne v0, v1, :cond_1
goto :goto_3
:cond_1
array-length v1, v0
const/4 v2, -0x1
const/4 v3, 0x0
const/4 v4, 0x0
:goto_0
if-ge v4, v1, :cond_3
aget-object v5, v0, v4
if-ne v5, p1, :cond_2
move v2, v4
goto :goto_1
:cond_2
add-int/lit8 v4, v4, 0x1
goto :goto_0
:cond_3
:goto_1
if-gez v2, :cond_4
return-void
:cond_4
const/4 v4, 0x1
if-ne v1, v4, :cond_5
2019-12-21 01:41:59 +00:00
sget-object v1, Lb0/r/a$c;->d:[Lb0/r/a$b;
2019-12-06 03:29:40 +00:00
goto :goto_2
:cond_5
add-int/lit8 v5, v1, -0x1
2019-12-21 01:41:59 +00:00
new-array v5, v5, [Lb0/r/a$b;
2019-12-06 03:29:40 +00:00
invoke-static {v0, v3, v5, v3, v2}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
add-int/lit8 v3, v2, 0x1
sub-int/2addr v1, v2
sub-int/2addr v1, v4
invoke-static {v0, v3, v5, v2, 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
return-void
.end method
.method public bridge synthetic call(Ljava/lang/Object;)V
.locals 0
check-cast p1, Lrx/Subscriber;
2019-12-21 01:41:59 +00:00
invoke-virtual {p0, p1}, Lb0/r/a$c;->a(Lrx/Subscriber;)V
2019-12-06 03:29:40 +00:00
return-void
.end method
.method public onCompleted()V
.locals 6
2019-12-21 01:41:59 +00:00
iget-object v0, p0, Lb0/r/a$c;->buffer:Lb0/r/a$a;
2019-12-06 03:29:40 +00:00
move-object v1, v0
2019-12-21 01:41:59 +00:00
check-cast v1, Lb0/r/a$d;
2019-12-06 03:29:40 +00:00
const/4 v2, 0x1
2019-12-21 01:41:59 +00:00
iput-boolean v2, v1, Lb0/r/a$d;->f:Z
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
sget-object v1, Lb0/r/a$c;->e:[Lb0/r/a$b;
2019-12-06 03:29:40 +00:00
invoke-virtual {p0, v1}, Ljava/util/concurrent/atomic/AtomicReference;->getAndSet(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v1
2019-12-21 01:41:59 +00:00
check-cast v1, [Lb0/r/a$b;
2019-12-06 03:29:40 +00:00
array-length v2, v1
const/4 v3, 0x0
:goto_0
if-ge v3, v2, :cond_0
aget-object v4, v1, v3
move-object v5, v0
2019-12-21 01:41:59 +00:00
check-cast v5, Lb0/r/a$d;
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
invoke-virtual {v5, v4}, Lb0/r/a$d;->a(Lb0/r/a$b;)V
2019-12-06 03:29:40 +00:00
add-int/lit8 v3, v3, 0x1
goto :goto_0
:cond_0
return-void
.end method
.method public onError(Ljava/lang/Throwable;)V
.locals 6
2019-12-21 01:41:59 +00:00
iget-object v0, p0, Lb0/r/a$c;->buffer:Lb0/r/a$a;
2019-12-06 03:29:40 +00:00
move-object v1, v0
2019-12-21 01:41:59 +00:00
check-cast v1, Lb0/r/a$d;
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
iget-boolean v2, v1, Lb0/r/a$d;->f:Z
2019-12-06 03:29:40 +00:00
if-eqz v2, :cond_0
2019-12-21 01:41:59 +00:00
invoke-static {p1}, Lb0/p/l;->a(Ljava/lang/Throwable;)V
2019-12-06 03:29:40 +00:00
goto :goto_0
:cond_0
2019-12-21 01:41:59 +00:00
iput-object p1, v1, Lb0/r/a$d;->g:Ljava/lang/Throwable;
2019-12-06 03:29:40 +00:00
const/4 p1, 0x1
2019-12-21 01:41:59 +00:00
iput-boolean p1, v1, Lb0/r/a$d;->f:Z
2019-12-06 03:29:40 +00:00
:goto_0
const/4 p1, 0x0
2019-12-21 01:41:59 +00:00
sget-object v1, Lb0/r/a$c;->e:[Lb0/r/a$b;
2019-12-06 03:29:40 +00:00
invoke-virtual {p0, v1}, Ljava/util/concurrent/atomic/AtomicReference;->getAndSet(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v1
2019-12-21 01:41:59 +00:00
check-cast v1, [Lb0/r/a$b;
2019-12-06 03:29:40 +00:00
array-length v2, v1
const/4 v3, 0x0
:goto_1
if-ge v3, v2, :cond_2
aget-object v4, v1, v3
move-object v5, v0
2019-12-21 01:41:59 +00:00
check-cast v5, Lb0/r/a$d;
2019-12-06 03:29:40 +00:00
:try_start_0
2019-12-21 01:41:59 +00:00
invoke-virtual {v5, v4}, Lb0/r/a$d;->a(Lb0/r/a$b;)V
2019-12-06 03:29:40 +00:00
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
goto :goto_2
:catchall_0
move-exception v4
if-nez p1, :cond_1
new-instance p1, Ljava/util/ArrayList;
invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V
:cond_1
invoke-interface {p1, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z
:goto_2
add-int/lit8 v3, v3, 0x1
goto :goto_1
:cond_2
2020-01-07 02:40:43 +00:00
invoke-static {p1}, Lu/a/a2/w;->a(Ljava/util/List;)V
2019-12-06 03:29:40 +00:00
return-void
.end method
.method public onNext(Ljava/lang/Object;)V
.locals 7
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
2019-12-21 01:41:59 +00:00
iget-object v0, p0, Lb0/r/a$c;->buffer:Lb0/r/a$a;
2019-12-06 03:29:40 +00:00
move-object v1, v0
2019-12-21 01:41:59 +00:00
check-cast v1, Lb0/r/a$d;
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
iget-boolean v2, v1, Lb0/r/a$d;->f:Z
2019-12-06 03:29:40 +00:00
const/4 v3, 0x0
if-eqz v2, :cond_0
goto :goto_1
:cond_0
2019-12-21 01:41:59 +00:00
iget v2, v1, Lb0/r/a$d;->e:I
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
iget-object v4, v1, Lb0/r/a$d;->d:[Ljava/lang/Object;
2019-12-06 03:29:40 +00:00
array-length v5, v4
const/4 v6, 0x1
sub-int/2addr v5, v6
if-ne v2, v5, :cond_1
array-length v5, v4
new-array v5, v5, [Ljava/lang/Object;
aput-object p1, v5, v3
2019-12-21 01:41:59 +00:00
iput v6, v1, Lb0/r/a$d;->e:I
2019-12-06 03:29:40 +00:00
aput-object v5, v4, v2
2019-12-21 01:41:59 +00:00
iput-object v5, v1, Lb0/r/a$d;->d:[Ljava/lang/Object;
2019-12-06 03:29:40 +00:00
goto :goto_0
:cond_1
aput-object p1, v4, v2
add-int/2addr v2, v6
2019-12-21 01:41:59 +00:00
iput v2, v1, Lb0/r/a$d;->e:I
2019-12-06 03:29:40 +00:00
:goto_0
2019-12-21 01:41:59 +00:00
iget p1, v1, Lb0/r/a$d;->b:I
2019-12-06 03:29:40 +00:00
add-int/2addr p1, v6
2019-12-21 01:41:59 +00:00
iput p1, v1, Lb0/r/a$d;->b:I
2019-12-06 03:29:40 +00:00
:goto_1
invoke-virtual {p0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object p1
2019-12-21 01:41:59 +00:00
check-cast p1, [Lb0/r/a$b;
2019-12-06 03:29:40 +00:00
array-length v1, p1
:goto_2
if-ge v3, v1, :cond_2
aget-object v2, p1, v3
move-object v4, v0
2019-12-21 01:41:59 +00:00
check-cast v4, Lb0/r/a$d;
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
invoke-virtual {v4, v2}, Lb0/r/a$d;->a(Lb0/r/a$b;)V
2019-12-06 03:29:40 +00:00
add-int/lit8 v3, v3, 0x1
goto :goto_2
:cond_2
return-void
.end method