Changes of com.discord v1349
This commit is contained in:
parent
ee3363e6d6
commit
3f4974bc38
11672 changed files with 479129 additions and 478996 deletions
35
com.discord/smali_classes2/g0/l/b/a$a.smali
Normal file
35
com.discord/smali_classes2/g0/l/b/a$a.smali
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
.class public final Lg0/l/b/a$a;
|
||||
.super Ljava/lang/Object;
|
||||
.source "ProducerArbiter.java"
|
||||
|
||||
# interfaces
|
||||
.implements Lrx/Producer;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Lg0/l/b/a;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x9
|
||||
name = null
|
||||
.end annotation
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public l(J)V
|
||||
.locals 0
|
||||
|
||||
return-void
|
||||
.end method
|
||||
495
com.discord/smali_classes2/g0/l/b/a.smali
Normal file
495
com.discord/smali_classes2/g0/l/b/a.smali
Normal file
|
|
@ -0,0 +1,495 @@
|
|||
.class public final Lg0/l/b/a;
|
||||
.super Ljava/lang/Object;
|
||||
.source "ProducerArbiter.java"
|
||||
|
||||
# interfaces
|
||||
.implements Lrx/Producer;
|
||||
|
||||
|
||||
# static fields
|
||||
.field public static final j:Lrx/Producer;
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public d:J
|
||||
|
||||
.field public e:Lrx/Producer;
|
||||
|
||||
.field public f:Z
|
||||
|
||||
.field public g:J
|
||||
|
||||
.field public h:J
|
||||
|
||||
.field public i:Lrx/Producer;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public static constructor <clinit>()V
|
||||
.locals 1
|
||||
|
||||
new-instance v0, Lg0/l/b/a$a;
|
||||
|
||||
invoke-direct {v0}, Lg0/l/b/a$a;-><init>()V
|
||||
|
||||
sput-object v0, Lg0/l/b/a;->j:Lrx/Producer;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public a()V
|
||||
.locals 14
|
||||
|
||||
:cond_0
|
||||
:goto_0
|
||||
monitor-enter p0
|
||||
|
||||
:try_start_0
|
||||
iget-wide v0, p0, Lg0/l/b/a;->g:J
|
||||
|
||||
iget-wide v2, p0, Lg0/l/b/a;->h:J
|
||||
|
||||
iget-object v4, p0, Lg0/l/b/a;->i:Lrx/Producer;
|
||||
|
||||
const-wide/16 v5, 0x0
|
||||
|
||||
cmp-long v7, v0, v5
|
||||
|
||||
if-nez v7, :cond_1
|
||||
|
||||
cmp-long v8, v2, v5
|
||||
|
||||
if-nez v8, :cond_1
|
||||
|
||||
if-nez v4, :cond_1
|
||||
|
||||
const/4 v0, 0x0
|
||||
|
||||
iput-boolean v0, p0, Lg0/l/b/a;->f:Z
|
||||
|
||||
monitor-exit p0
|
||||
|
||||
return-void
|
||||
|
||||
:cond_1
|
||||
iput-wide v5, p0, Lg0/l/b/a;->g:J
|
||||
|
||||
iput-wide v5, p0, Lg0/l/b/a;->h:J
|
||||
|
||||
const/4 v8, 0x0
|
||||
|
||||
iput-object v8, p0, Lg0/l/b/a;->i:Lrx/Producer;
|
||||
|
||||
monitor-exit p0
|
||||
:try_end_0
|
||||
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||||
|
||||
iget-wide v9, p0, Lg0/l/b/a;->d:J
|
||||
|
||||
const-wide v11, 0x7fffffffffffffffL
|
||||
|
||||
cmp-long v13, v9, v11
|
||||
|
||||
if-eqz v13, :cond_5
|
||||
|
||||
add-long/2addr v9, v0
|
||||
|
||||
cmp-long v13, v9, v5
|
||||
|
||||
if-ltz v13, :cond_4
|
||||
|
||||
cmp-long v13, v9, v11
|
||||
|
||||
if-nez v13, :cond_2
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:cond_2
|
||||
sub-long/2addr v9, v2
|
||||
|
||||
cmp-long v2, v9, v5
|
||||
|
||||
if-ltz v2, :cond_3
|
||||
|
||||
iput-wide v9, p0, Lg0/l/b/a;->d:J
|
||||
|
||||
goto :goto_2
|
||||
|
||||
:cond_3
|
||||
new-instance v0, Ljava/lang/IllegalStateException;
|
||||
|
||||
const-string v1, "more produced than requested"
|
||||
|
||||
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw v0
|
||||
|
||||
:cond_4
|
||||
:goto_1
|
||||
iput-wide v11, p0, Lg0/l/b/a;->d:J
|
||||
|
||||
move-wide v9, v11
|
||||
|
||||
:cond_5
|
||||
:goto_2
|
||||
if-eqz v4, :cond_7
|
||||
|
||||
sget-object v0, Lg0/l/b/a;->j:Lrx/Producer;
|
||||
|
||||
if-ne v4, v0, :cond_6
|
||||
|
||||
iput-object v8, p0, Lg0/l/b/a;->e:Lrx/Producer;
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_6
|
||||
iput-object v4, p0, Lg0/l/b/a;->e:Lrx/Producer;
|
||||
|
||||
invoke-interface {v4, v9, v10}, Lrx/Producer;->l(J)V
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_7
|
||||
iget-object v2, p0, Lg0/l/b/a;->e:Lrx/Producer;
|
||||
|
||||
if-eqz v2, :cond_0
|
||||
|
||||
if-eqz v7, :cond_0
|
||||
|
||||
invoke-interface {v2, v0, v1}, Lrx/Producer;->l(J)V
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:catchall_0
|
||||
move-exception v0
|
||||
|
||||
:try_start_1
|
||||
monitor-exit p0
|
||||
:try_end_1
|
||||
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||||
|
||||
throw v0
|
||||
.end method
|
||||
|
||||
.method public b(J)V
|
||||
.locals 7
|
||||
|
||||
const-wide/16 v0, 0x0
|
||||
|
||||
cmp-long v2, p1, v0
|
||||
|
||||
if-lez v2, :cond_3
|
||||
|
||||
monitor-enter p0
|
||||
|
||||
:try_start_0
|
||||
iget-boolean v2, p0, Lg0/l/b/a;->f:Z
|
||||
|
||||
if-eqz v2, :cond_0
|
||||
|
||||
iget-wide v0, p0, Lg0/l/b/a;->h:J
|
||||
|
||||
add-long/2addr v0, p1
|
||||
|
||||
iput-wide v0, p0, Lg0/l/b/a;->h:J
|
||||
|
||||
monitor-exit p0
|
||||
|
||||
return-void
|
||||
|
||||
:cond_0
|
||||
const/4 v2, 0x1
|
||||
|
||||
iput-boolean v2, p0, Lg0/l/b/a;->f:Z
|
||||
|
||||
monitor-exit p0
|
||||
:try_end_0
|
||||
.catchall {:try_start_0 .. :try_end_0} :catchall_2
|
||||
|
||||
:try_start_1
|
||||
iget-wide v2, p0, Lg0/l/b/a;->d:J
|
||||
|
||||
const-wide v4, 0x7fffffffffffffffL
|
||||
|
||||
cmp-long v6, v2, v4
|
||||
|
||||
if-eqz v6, :cond_2
|
||||
|
||||
sub-long/2addr v2, p1
|
||||
|
||||
cmp-long p1, v2, v0
|
||||
|
||||
if-ltz p1, :cond_1
|
||||
|
||||
iput-wide v2, p0, Lg0/l/b/a;->d:J
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_1
|
||||
new-instance p1, Ljava/lang/IllegalStateException;
|
||||
|
||||
const-string p2, "more items arrived than were requested"
|
||||
|
||||
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw p1
|
||||
|
||||
:cond_2
|
||||
:goto_0
|
||||
invoke-virtual {p0}, Lg0/l/b/a;->a()V
|
||||
:try_end_1
|
||||
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||||
|
||||
return-void
|
||||
|
||||
:catchall_0
|
||||
move-exception p1
|
||||
|
||||
monitor-enter p0
|
||||
|
||||
const/4 p2, 0x0
|
||||
|
||||
:try_start_2
|
||||
iput-boolean p2, p0, Lg0/l/b/a;->f:Z
|
||||
|
||||
monitor-exit p0
|
||||
:try_end_2
|
||||
.catchall {:try_start_2 .. :try_end_2} :catchall_1
|
||||
|
||||
throw p1
|
||||
|
||||
:catchall_1
|
||||
move-exception p1
|
||||
|
||||
:try_start_3
|
||||
monitor-exit p0
|
||||
:try_end_3
|
||||
.catchall {:try_start_3 .. :try_end_3} :catchall_1
|
||||
|
||||
throw p1
|
||||
|
||||
:catchall_2
|
||||
move-exception p1
|
||||
|
||||
:try_start_4
|
||||
monitor-exit p0
|
||||
:try_end_4
|
||||
.catchall {:try_start_4 .. :try_end_4} :catchall_2
|
||||
|
||||
throw p1
|
||||
|
||||
:cond_3
|
||||
new-instance p1, Ljava/lang/IllegalArgumentException;
|
||||
|
||||
const-string p2, "n > 0 required"
|
||||
|
||||
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw p1
|
||||
.end method
|
||||
|
||||
.method public c(Lrx/Producer;)V
|
||||
.locals 2
|
||||
|
||||
monitor-enter p0
|
||||
|
||||
:try_start_0
|
||||
iget-boolean v0, p0, Lg0/l/b/a;->f:Z
|
||||
|
||||
if-eqz v0, :cond_1
|
||||
|
||||
if-nez p1, :cond_0
|
||||
|
||||
sget-object p1, Lg0/l/b/a;->j:Lrx/Producer;
|
||||
|
||||
:cond_0
|
||||
iput-object p1, p0, Lg0/l/b/a;->i:Lrx/Producer;
|
||||
|
||||
monitor-exit p0
|
||||
|
||||
return-void
|
||||
|
||||
:cond_1
|
||||
const/4 v0, 0x1
|
||||
|
||||
iput-boolean v0, p0, Lg0/l/b/a;->f:Z
|
||||
|
||||
monitor-exit p0
|
||||
:try_end_0
|
||||
.catchall {:try_start_0 .. :try_end_0} :catchall_2
|
||||
|
||||
:try_start_1
|
||||
iput-object p1, p0, Lg0/l/b/a;->e:Lrx/Producer;
|
||||
|
||||
if-eqz p1, :cond_2
|
||||
|
||||
iget-wide v0, p0, Lg0/l/b/a;->d:J
|
||||
|
||||
invoke-interface {p1, v0, v1}, Lrx/Producer;->l(J)V
|
||||
|
||||
:cond_2
|
||||
invoke-virtual {p0}, Lg0/l/b/a;->a()V
|
||||
:try_end_1
|
||||
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||||
|
||||
return-void
|
||||
|
||||
:catchall_0
|
||||
move-exception p1
|
||||
|
||||
monitor-enter p0
|
||||
|
||||
const/4 v0, 0x0
|
||||
|
||||
:try_start_2
|
||||
iput-boolean v0, p0, Lg0/l/b/a;->f:Z
|
||||
|
||||
monitor-exit p0
|
||||
:try_end_2
|
||||
.catchall {:try_start_2 .. :try_end_2} :catchall_1
|
||||
|
||||
throw p1
|
||||
|
||||
:catchall_1
|
||||
move-exception p1
|
||||
|
||||
:try_start_3
|
||||
monitor-exit p0
|
||||
:try_end_3
|
||||
.catchall {:try_start_3 .. :try_end_3} :catchall_1
|
||||
|
||||
throw p1
|
||||
|
||||
:catchall_2
|
||||
move-exception p1
|
||||
|
||||
:try_start_4
|
||||
monitor-exit p0
|
||||
:try_end_4
|
||||
.catchall {:try_start_4 .. :try_end_4} :catchall_2
|
||||
|
||||
throw p1
|
||||
.end method
|
||||
|
||||
.method public l(J)V
|
||||
.locals 5
|
||||
|
||||
const-wide/16 v0, 0x0
|
||||
|
||||
cmp-long v2, p1, v0
|
||||
|
||||
if-ltz v2, :cond_4
|
||||
|
||||
if-nez v2, :cond_0
|
||||
|
||||
return-void
|
||||
|
||||
:cond_0
|
||||
monitor-enter p0
|
||||
|
||||
:try_start_0
|
||||
iget-boolean v2, p0, Lg0/l/b/a;->f:Z
|
||||
|
||||
if-eqz v2, :cond_1
|
||||
|
||||
iget-wide v0, p0, Lg0/l/b/a;->g:J
|
||||
|
||||
add-long/2addr v0, p1
|
||||
|
||||
iput-wide v0, p0, Lg0/l/b/a;->g:J
|
||||
|
||||
monitor-exit p0
|
||||
|
||||
return-void
|
||||
|
||||
:cond_1
|
||||
const/4 v2, 0x1
|
||||
|
||||
iput-boolean v2, p0, Lg0/l/b/a;->f:Z
|
||||
|
||||
monitor-exit p0
|
||||
:try_end_0
|
||||
.catchall {:try_start_0 .. :try_end_0} :catchall_2
|
||||
|
||||
:try_start_1
|
||||
iget-wide v2, p0, Lg0/l/b/a;->d:J
|
||||
|
||||
add-long/2addr v2, p1
|
||||
|
||||
cmp-long v4, v2, v0
|
||||
|
||||
if-gez v4, :cond_2
|
||||
|
||||
const-wide v2, 0x7fffffffffffffffL
|
||||
|
||||
:cond_2
|
||||
iput-wide v2, p0, Lg0/l/b/a;->d:J
|
||||
|
||||
iget-object v0, p0, Lg0/l/b/a;->e:Lrx/Producer;
|
||||
|
||||
if-eqz v0, :cond_3
|
||||
|
||||
invoke-interface {v0, p1, p2}, Lrx/Producer;->l(J)V
|
||||
|
||||
:cond_3
|
||||
invoke-virtual {p0}, Lg0/l/b/a;->a()V
|
||||
:try_end_1
|
||||
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||||
|
||||
return-void
|
||||
|
||||
:catchall_0
|
||||
move-exception p1
|
||||
|
||||
monitor-enter p0
|
||||
|
||||
const/4 p2, 0x0
|
||||
|
||||
:try_start_2
|
||||
iput-boolean p2, p0, Lg0/l/b/a;->f:Z
|
||||
|
||||
monitor-exit p0
|
||||
:try_end_2
|
||||
.catchall {:try_start_2 .. :try_end_2} :catchall_1
|
||||
|
||||
throw p1
|
||||
|
||||
:catchall_1
|
||||
move-exception p1
|
||||
|
||||
:try_start_3
|
||||
monitor-exit p0
|
||||
:try_end_3
|
||||
.catchall {:try_start_3 .. :try_end_3} :catchall_1
|
||||
|
||||
throw p1
|
||||
|
||||
:catchall_2
|
||||
move-exception p1
|
||||
|
||||
:try_start_4
|
||||
monitor-exit p0
|
||||
:try_end_4
|
||||
.catchall {:try_start_4 .. :try_end_4} :catchall_2
|
||||
|
||||
throw p1
|
||||
|
||||
:cond_4
|
||||
new-instance p1, Ljava/lang/IllegalArgumentException;
|
||||
|
||||
const-string p2, "n >= 0 required"
|
||||
|
||||
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw p1
|
||||
.end method
|
||||
224
com.discord/smali_classes2/g0/l/b/b.smali
Normal file
224
com.discord/smali_classes2/g0/l/b/b.smali
Normal file
|
|
@ -0,0 +1,224 @@
|
|||
.class public final Lg0/l/b/b;
|
||||
.super Ljava/util/concurrent/atomic/AtomicInteger;
|
||||
.source "SingleDelayedProducer.java"
|
||||
|
||||
# interfaces
|
||||
.implements Lrx/Producer;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"<T:",
|
||||
"Ljava/lang/Object;",
|
||||
">",
|
||||
"Ljava/util/concurrent/atomic/AtomicInteger;",
|
||||
"Lrx/Producer;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
|
||||
# static fields
|
||||
.field private static final serialVersionUID:J = -0x27e09bdfa51658b2L
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public final child:Lrx/Subscriber;
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"Lrx/Subscriber<",
|
||||
"-TT;>;"
|
||||
}
|
||||
.end annotation
|
||||
.end field
|
||||
|
||||
.field public value:Ljava/lang/Object;
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"TT;"
|
||||
}
|
||||
.end annotation
|
||||
.end field
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(Lrx/Subscriber;)V
|
||||
.locals 0
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(",
|
||||
"Lrx/Subscriber<",
|
||||
"-TT;>;)V"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
invoke-direct {p0}, Ljava/util/concurrent/atomic/AtomicInteger;-><init>()V
|
||||
|
||||
iput-object p1, p0, Lg0/l/b/b;->child:Lrx/Subscriber;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public static a(Lrx/Subscriber;Ljava/lang/Object;)V
|
||||
.locals 1
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"<T:",
|
||||
"Ljava/lang/Object;",
|
||||
">(",
|
||||
"Lrx/Subscriber<",
|
||||
"-TT;>;TT;)V"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
invoke-virtual {p0}, Lrx/Subscriber;->isUnsubscribed()Z
|
||||
|
||||
move-result v0
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
return-void
|
||||
|
||||
:cond_0
|
||||
:try_start_0
|
||||
invoke-interface {p0, p1}, Lg0/g;->onNext(Ljava/lang/Object;)V
|
||||
:try_end_0
|
||||
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||||
|
||||
invoke-virtual {p0}, Lrx/Subscriber;->isUnsubscribed()Z
|
||||
|
||||
move-result p1
|
||||
|
||||
if-eqz p1, :cond_1
|
||||
|
||||
return-void
|
||||
|
||||
:cond_1
|
||||
invoke-interface {p0}, Lg0/g;->onCompleted()V
|
||||
|
||||
return-void
|
||||
|
||||
:catchall_0
|
||||
move-exception v0
|
||||
|
||||
invoke-static {v0, p0, p1}, Ly/a/g0;->Q(Ljava/lang/Throwable;Lg0/g;Ljava/lang/Object;)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public b(Ljava/lang/Object;)V
|
||||
.locals 2
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(TT;)V"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
:goto_0
|
||||
invoke-virtual {p0}, Ljava/util/concurrent/atomic/AtomicInteger;->get()I
|
||||
|
||||
move-result v0
|
||||
|
||||
if-nez v0, :cond_0
|
||||
|
||||
iput-object p1, p0, Lg0/l/b/b;->value:Ljava/lang/Object;
|
||||
|
||||
const/4 v0, 0x0
|
||||
|
||||
const/4 v1, 0x1
|
||||
|
||||
invoke-virtual {p0, v0, v1}, Ljava/util/concurrent/atomic/AtomicInteger;->compareAndSet(II)Z
|
||||
|
||||
move-result v0
|
||||
|
||||
if-nez v0, :cond_1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
const/4 v1, 0x2
|
||||
|
||||
if-ne v0, v1, :cond_1
|
||||
|
||||
const/4 v0, 0x3
|
||||
|
||||
invoke-virtual {p0, v1, v0}, Ljava/util/concurrent/atomic/AtomicInteger;->compareAndSet(II)Z
|
||||
|
||||
move-result v0
|
||||
|
||||
if-eqz v0, :cond_1
|
||||
|
||||
iget-object v0, p0, Lg0/l/b/b;->child:Lrx/Subscriber;
|
||||
|
||||
invoke-static {v0, p1}, Lg0/l/b/b;->a(Lrx/Subscriber;Ljava/lang/Object;)V
|
||||
|
||||
:cond_1
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public l(J)V
|
||||
.locals 3
|
||||
|
||||
const-wide/16 v0, 0x0
|
||||
|
||||
cmp-long v2, p1, v0
|
||||
|
||||
if-ltz v2, :cond_3
|
||||
|
||||
if-nez v2, :cond_0
|
||||
|
||||
return-void
|
||||
|
||||
:cond_0
|
||||
:goto_0
|
||||
invoke-virtual {p0}, Ljava/util/concurrent/atomic/AtomicInteger;->get()I
|
||||
|
||||
move-result p1
|
||||
|
||||
if-nez p1, :cond_1
|
||||
|
||||
const/4 p1, 0x0
|
||||
|
||||
const/4 p2, 0x2
|
||||
|
||||
invoke-virtual {p0, p1, p2}, Ljava/util/concurrent/atomic/AtomicInteger;->compareAndSet(II)Z
|
||||
|
||||
move-result p1
|
||||
|
||||
if-nez p1, :cond_2
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_1
|
||||
const/4 p2, 0x1
|
||||
|
||||
if-ne p1, p2, :cond_2
|
||||
|
||||
const/4 p1, 0x3
|
||||
|
||||
invoke-virtual {p0, p2, p1}, Ljava/util/concurrent/atomic/AtomicInteger;->compareAndSet(II)Z
|
||||
|
||||
move-result p1
|
||||
|
||||
if-eqz p1, :cond_2
|
||||
|
||||
iget-object p1, p0, Lg0/l/b/b;->child:Lrx/Subscriber;
|
||||
|
||||
iget-object p2, p0, Lg0/l/b/b;->value:Ljava/lang/Object;
|
||||
|
||||
invoke-static {p1, p2}, Lg0/l/b/b;->a(Lrx/Subscriber;Ljava/lang/Object;)V
|
||||
|
||||
:cond_2
|
||||
return-void
|
||||
|
||||
:cond_3
|
||||
new-instance p1, Ljava/lang/IllegalArgumentException;
|
||||
|
||||
const-string p2, "n >= 0 required"
|
||||
|
||||
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw p1
|
||||
.end method
|
||||
138
com.discord/smali_classes2/g0/l/b/c.smali
Normal file
138
com.discord/smali_classes2/g0/l/b/c.smali
Normal file
|
|
@ -0,0 +1,138 @@
|
|||
.class public final Lg0/l/b/c;
|
||||
.super Ljava/util/concurrent/atomic/AtomicBoolean;
|
||||
.source "SingleProducer.java"
|
||||
|
||||
# interfaces
|
||||
.implements Lrx/Producer;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"<T:",
|
||||
"Ljava/lang/Object;",
|
||||
">",
|
||||
"Ljava/util/concurrent/atomic/AtomicBoolean;",
|
||||
"Lrx/Producer;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
|
||||
# static fields
|
||||
.field private static final serialVersionUID:J = -0x2e8a53b866dafe2cL
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public final child:Lrx/Subscriber;
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"Lrx/Subscriber<",
|
||||
"-TT;>;"
|
||||
}
|
||||
.end annotation
|
||||
.end field
|
||||
|
||||
.field public final value:Ljava/lang/Object;
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"TT;"
|
||||
}
|
||||
.end annotation
|
||||
.end field
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(Lrx/Subscriber;Ljava/lang/Object;)V
|
||||
.locals 0
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(",
|
||||
"Lrx/Subscriber<",
|
||||
"-TT;>;TT;)V"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
invoke-direct {p0}, Ljava/util/concurrent/atomic/AtomicBoolean;-><init>()V
|
||||
|
||||
iput-object p1, p0, Lg0/l/b/c;->child:Lrx/Subscriber;
|
||||
|
||||
iput-object p2, p0, Lg0/l/b/c;->value:Ljava/lang/Object;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public l(J)V
|
||||
.locals 3
|
||||
|
||||
const-wide/16 v0, 0x0
|
||||
|
||||
cmp-long v2, p1, v0
|
||||
|
||||
if-ltz v2, :cond_4
|
||||
|
||||
if-nez v2, :cond_0
|
||||
|
||||
return-void
|
||||
|
||||
:cond_0
|
||||
const/4 p1, 0x0
|
||||
|
||||
const/4 p2, 0x1
|
||||
|
||||
invoke-virtual {p0, p1, p2}, Ljava/util/concurrent/atomic/AtomicBoolean;->compareAndSet(ZZ)Z
|
||||
|
||||
move-result p1
|
||||
|
||||
if-eqz p1, :cond_3
|
||||
|
||||
iget-object p1, p0, Lg0/l/b/c;->child:Lrx/Subscriber;
|
||||
|
||||
invoke-virtual {p1}, Lrx/Subscriber;->isUnsubscribed()Z
|
||||
|
||||
move-result p2
|
||||
|
||||
if-eqz p2, :cond_1
|
||||
|
||||
return-void
|
||||
|
||||
:cond_1
|
||||
iget-object p2, p0, Lg0/l/b/c;->value:Ljava/lang/Object;
|
||||
|
||||
:try_start_0
|
||||
invoke-interface {p1, p2}, Lg0/g;->onNext(Ljava/lang/Object;)V
|
||||
:try_end_0
|
||||
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||||
|
||||
invoke-virtual {p1}, Lrx/Subscriber;->isUnsubscribed()Z
|
||||
|
||||
move-result p2
|
||||
|
||||
if-eqz p2, :cond_2
|
||||
|
||||
return-void
|
||||
|
||||
:cond_2
|
||||
invoke-interface {p1}, Lg0/g;->onCompleted()V
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:catchall_0
|
||||
move-exception v0
|
||||
|
||||
invoke-static {v0, p1, p2}, Ly/a/g0;->Q(Ljava/lang/Throwable;Lg0/g;Ljava/lang/Object;)V
|
||||
|
||||
:cond_3
|
||||
:goto_0
|
||||
return-void
|
||||
|
||||
:cond_4
|
||||
new-instance p1, Ljava/lang/IllegalArgumentException;
|
||||
|
||||
const-string p2, "n >= 0 required"
|
||||
|
||||
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw p1
|
||||
.end method
|
||||
Loading…
Add table
Add a link
Reference in a new issue