2019-02-04 20:08:30 +00:00
|
|
|
.class final Lrx/internal/a/av$1$1;
|
|
|
|
.super Ljava/lang/Object;
|
2019-02-04 20:29:01 +00:00
|
|
|
.source "OperatorTake.java"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
# interfaces
|
|
|
|
.implements Lrx/Producer;
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
|
|
value = Lrx/internal/a/av$1;->setProducer(Lrx/Producer;)V
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
|
|
accessFlags = 0x0
|
|
|
|
name = null
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2019-05-14 21:53:09 +00:00
|
|
|
.field final synthetic bIf:Lrx/Producer;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-14 21:53:09 +00:00
|
|
|
.field final synthetic bIg:Lrx/internal/a/av$1;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
.field final requested:Ljava/util/concurrent/atomic/AtomicLong;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method constructor <init>(Lrx/internal/a/av$1;Lrx/Producer;)V
|
|
|
|
.locals 2
|
|
|
|
|
2019-05-14 21:53:09 +00:00
|
|
|
iput-object p1, p0, Lrx/internal/a/av$1$1;->bIg:Lrx/internal/a/av$1;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-14 21:53:09 +00:00
|
|
|
iput-object p2, p0, Lrx/internal/a/av$1$1;->bIf:Lrx/Producer;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
new-instance p1, Ljava/util/concurrent/atomic/AtomicLong;
|
|
|
|
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
|
|
|
|
invoke-direct {p1, v0, v1}, Ljava/util/concurrent/atomic/AtomicLong;-><init>(J)V
|
|
|
|
|
|
|
|
iput-object p1, p0, Lrx/internal/a/av$1$1;->requested:Ljava/util/concurrent/atomic/AtomicLong;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public final request(J)V
|
|
|
|
.locals 9
|
|
|
|
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
|
|
|
|
cmp-long v2, p1, v0
|
|
|
|
|
|
|
|
if-lez v2, :cond_1
|
|
|
|
|
2019-05-14 21:53:09 +00:00
|
|
|
iget-object v2, p0, Lrx/internal/a/av$1$1;->bIg:Lrx/internal/a/av$1;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-14 21:53:09 +00:00
|
|
|
iget-boolean v2, v2, Lrx/internal/a/av$1;->btm:Z
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
if-nez v2, :cond_1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
iget-object v2, p0, Lrx/internal/a/av$1$1;->requested:Ljava/util/concurrent/atomic/AtomicLong;
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Ljava/util/concurrent/atomic/AtomicLong;->get()J
|
|
|
|
|
|
|
|
move-result-wide v2
|
|
|
|
|
2019-05-14 21:53:09 +00:00
|
|
|
iget-object v4, p0, Lrx/internal/a/av$1$1;->bIg:Lrx/internal/a/av$1;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-14 21:53:09 +00:00
|
|
|
iget-object v4, v4, Lrx/internal/a/av$1;->bIe:Lrx/internal/a/av;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
iget v4, v4, Lrx/internal/a/av;->limit:I
|
|
|
|
|
|
|
|
int-to-long v4, v4
|
|
|
|
|
|
|
|
sub-long/2addr v4, v2
|
|
|
|
|
|
|
|
invoke-static {p1, p2, v4, v5}, Ljava/lang/Math;->min(JJ)J
|
|
|
|
|
|
|
|
move-result-wide v4
|
|
|
|
|
|
|
|
cmp-long v6, v4, v0
|
|
|
|
|
|
|
|
if-eqz v6, :cond_1
|
|
|
|
|
|
|
|
iget-object v6, p0, Lrx/internal/a/av$1$1;->requested:Ljava/util/concurrent/atomic/AtomicLong;
|
|
|
|
|
|
|
|
add-long v7, v2, v4
|
|
|
|
|
|
|
|
invoke-virtual {v6, v2, v3, v7, v8}, Ljava/util/concurrent/atomic/AtomicLong;->compareAndSet(JJ)Z
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
|
2019-05-14 21:53:09 +00:00
|
|
|
iget-object p1, p0, Lrx/internal/a/av$1$1;->bIf:Lrx/Producer;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-interface {p1, v4, v5}, Lrx/Producer;->request(J)V
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
return-void
|
|
|
|
.end method
|