apkfuckery/com.discord/smali_classes2/h0/r/a$b.smali

158 lines
3.3 KiB
Smali
Raw Normal View History

2020-04-11 15:34:05 +00:00
.class public final Lh0/r/a$b;
2019-07-24 11:27:29 +00:00
.super Ljava/util/concurrent/atomic/AtomicInteger;
.source "ReplaySubject.java"
# interfaces
.implements Lrx/Producer;
.implements Lrx/Subscription;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
2020-04-11 15:34:05 +00:00
value = Lh0/r/a;
2019-07-24 11:27:29 +00:00
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
2019-12-06 03:29:40 +00:00
accessFlags = 0x19
2019-07-24 11:27:29 +00:00
name = "b"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/util/concurrent/atomic/AtomicInteger;",
"Lrx/Producer;",
"Lrx/Subscription;"
}
.end annotation
# static fields
2019-12-06 03:29:40 +00:00
.field public static final serialVersionUID:J = -0x4579a11aac8dacd7L
2019-07-24 11:27:29 +00:00
# instance fields
2019-12-06 03:29:40 +00:00
.field public final actual:Lrx/Subscriber;
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Lrx/Subscriber<",
"-TT;>;"
}
.end annotation
.end field
2019-12-06 03:29:40 +00:00
.field public index:I
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public node:Ljava/lang/Object;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public final requested:Ljava/util/concurrent/atomic/AtomicLong;
2019-07-24 11:27:29 +00:00
2020-04-11 15:34:05 +00:00
.field public final state:Lh0/r/a$c;
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
2020-04-11 15:34:05 +00:00
"Lh0/r/a$c<",
2019-07-24 11:27:29 +00:00
"TT;>;"
}
.end annotation
.end field
2019-12-06 03:29:40 +00:00
.field public tailIndex:I
2019-07-24 11:27:29 +00:00
# direct methods
2020-04-11 15:34:05 +00:00
.method public constructor <init>(Lrx/Subscriber;Lh0/r/a$c;)V
2019-07-24 11:27:29 +00:00
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lrx/Subscriber<",
"-TT;>;",
2020-04-11 15:34:05 +00:00
"Lh0/r/a$c<",
2019-07-24 11:27:29 +00:00
"TT;>;)V"
}
.end annotation
invoke-direct {p0}, Ljava/util/concurrent/atomic/AtomicInteger;-><init>()V
2020-04-11 15:34:05 +00:00
iput-object p1, p0, Lh0/r/a$b;->actual:Lrx/Subscriber;
2019-07-24 11:27:29 +00:00
new-instance p1, Ljava/util/concurrent/atomic/AtomicLong;
invoke-direct {p1}, Ljava/util/concurrent/atomic/AtomicLong;-><init>()V
2020-04-11 15:34:05 +00:00
iput-object p1, p0, Lh0/r/a$b;->requested:Ljava/util/concurrent/atomic/AtomicLong;
2019-07-24 11:27:29 +00:00
2020-04-11 15:34:05 +00:00
iput-object p2, p0, Lh0/r/a$b;->state:Lh0/r/a$c;
2019-07-24 11:27:29 +00:00
return-void
.end method
# virtual methods
2019-12-06 03:29:40 +00:00
.method public a(J)V
2019-07-24 11:27:29 +00:00
.locals 3
const-wide/16 v0, 0x0
cmp-long v2, p1, v0
if-lez v2, :cond_0
2020-04-11 15:34:05 +00:00
iget-object v0, p0, Lh0/r/a$b;->requested:Ljava/util/concurrent/atomic/AtomicLong;
2019-07-24 11:27:29 +00:00
2020-04-11 15:34:05 +00:00
invoke-static {v0, p1, p2}, Lf/n/a/j/a;->a(Ljava/util/concurrent/atomic/AtomicLong;J)J
2019-07-24 11:27:29 +00:00
2020-04-11 15:34:05 +00:00
iget-object p1, p0, Lh0/r/a$b;->state:Lh0/r/a$c;
2019-07-24 11:27:29 +00:00
2020-04-11 15:34:05 +00:00
iget-object p1, p1, Lh0/r/a$c;->buffer:Lh0/r/a$a;
2019-07-24 11:27:29 +00:00
2020-04-11 15:34:05 +00:00
check-cast p1, Lh0/r/a$d;
2019-07-24 11:27:29 +00:00
2020-04-11 15:34:05 +00:00
invoke-virtual {p1, p0}, Lh0/r/a$d;->a(Lh0/r/a$b;)V
2019-12-06 03:29:40 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
:cond_0
if-ltz v2, :cond_1
2019-12-06 03:29:40 +00:00
:goto_0
2019-07-24 11:27:29 +00:00
return-void
:cond_1
new-instance v0, Ljava/lang/IllegalArgumentException;
2019-12-06 03:29:40 +00:00
const-string v1, "n >= required but it was "
2019-07-24 11:27:29 +00:00
2020-04-11 15:34:05 +00:00
invoke-static {v1, p1, p2}, Lf/e/b/a/a;->a(Ljava/lang/String;J)Ljava/lang/String;
2019-07-24 11:27:29 +00:00
move-result-object p1
invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
.end method
2019-12-06 03:29:40 +00:00
.method public isUnsubscribed()Z
.locals 1
2020-04-11 15:34:05 +00:00
iget-object v0, p0, Lh0/r/a$b;->actual:Lrx/Subscriber;
2019-12-06 03:29:40 +00:00
invoke-virtual {v0}, Lrx/Subscriber;->isUnsubscribed()Z
move-result v0
return v0
.end method
.method public unsubscribe()V
2019-07-24 11:27:29 +00:00
.locals 1
2020-04-11 15:34:05 +00:00
iget-object v0, p0, Lh0/r/a$b;->state:Lh0/r/a$c;
2019-07-24 11:27:29 +00:00
2020-04-11 15:34:05 +00:00
invoke-virtual {v0, p0}, Lh0/r/a$c;->b(Lh0/r/a$b;)V
2019-07-24 11:27:29 +00:00
return-void
.end method