d.smali
.class public final Lrx/c/e/b/d;
.super Lrx/c/e/b/e;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<E:",
"Ljava/lang/Object;",
">",
"Lrx/c/e/b/e<",
"TE;>;"
}
.end annotation
# direct methods
.method public constructor <init>(I)V
.registers 3
const/4 v0, 0x2
.line 107
invoke-static {v0, p1}, Ljava/lang/Math;->max(II)I
move-result p1
invoke-direct {p0, p1}, Lrx/c/e/b/e;-><init>(I)V
return-void
.end method
# virtual methods
.method public final isEmpty()Z
.registers 6
.line 241
invoke-virtual {p0}, Lrx/c/e/b/d;->a()J
move-result-wide v0
invoke-virtual {p0}, Lrx/c/e/b/d;->b()J
move-result-wide v2
cmp-long v4, v0, v2
if-nez v4, :cond_e
const/4 v0, 0x1
return v0
:cond_e
const/4 v0, 0x0
return v0
.end method
.method public final offer(Ljava/lang/Object;)Z
.registers 20
.annotation system Ldalvik/annotation/Signature;
value = {
"(TE;)Z"
}
.end annotation
move-object/from16 v0, p0
move-object/from16 v1, p1
if-eqz v1, :cond_4c
.line 117
iget-wide v2, v0, Lrx/c/e/b/d;->b:J
const-wide/16 v4, 0x1
add-long/2addr v2, v4
.line 118
iget-object v6, v0, Lrx/c/e/b/d;->d:[J
const-wide v7, 0x7fffffffffffffffL
.line 123
:cond_12
invoke-virtual/range {p0 .. p0}, Lrx/c/e/b/d;->b()J
move-result-wide v9
.line 124
invoke-virtual {v0, v9, v10}, Lrx/c/e/b/d;->d(J)J
move-result-wide v11
.line 125
invoke-static {v6, v11, v12}, Lrx/c/e/b/d;->a([JJ)J
move-result-wide v13
sub-long/2addr v13, v9
const-wide/16 v15, 0x0
cmp-long v17, v13, v15
if-nez v17, :cond_39
add-long v13, v9, v4
.line 130
invoke-virtual {v0, v9, v10, v13, v14}, Lrx/c/e/b/d;->b(JJ)Z
move-result v15
if-eqz v15, :cond_12
.line 146
invoke-virtual {v0, v9, v10}, Lrx/c/e/b/d;->a(J)J
move-result-wide v2
.line 147
invoke-virtual {v0, v2, v3, v1}, Lrx/c/e/b/d;->a(JLjava/lang/Object;)V
.line 151
invoke-static {v6, v11, v12, v13, v14}, Lrx/c/e/b/d;->a([JJJ)V
const/4 v1, 0x1
return v1
:cond_39
cmp-long v11, v13, v15
if-gez v11, :cond_12
sub-long/2addr v9, v2
cmp-long v11, v9, v7
if-gtz v11, :cond_12
.line 135
invoke-virtual/range {p0 .. p0}, Lrx/c/e/b/d;->a()J
move-result-wide v7
cmp-long v11, v9, v7
if-gtz v11, :cond_12
const/4 v1, 0x0
return v1
.line 113
:cond_4c
new-instance v1, Ljava/lang/NullPointerException;
const-string v2, "Null is not a valid element"
invoke-direct {v1, v2}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
goto :goto_55
:goto_54
throw v1
:goto_55
goto :goto_54
.end method
.method public final peek()Ljava/lang/Object;
.registers 7
.annotation system Ldalvik/annotation/Signature;
value = {
"()TE;"
}
.end annotation
.line 208
:cond_0
invoke-virtual {p0}, Lrx/c/e/b/d;->a()J
move-result-wide v0
.line 210
invoke-virtual {p0, v0, v1}, Lrx/c/e/b/d;->a(J)J
move-result-wide v2
invoke-virtual {p0, v2, v3}, Lrx/c/e/b/d;->b(J)Ljava/lang/Object;
move-result-object v2
if-nez v2, :cond_16
.line 212
invoke-virtual {p0}, Lrx/c/e/b/d;->b()J
move-result-wide v3
cmp-long v5, v0, v3
if-nez v5, :cond_0
:cond_16
return-object v2
.end method
.method public final poll()Ljava/lang/Object;
.registers 19
.annotation system Ldalvik/annotation/Signature;
value = {
"()TE;"
}
.end annotation
move-object/from16 v0, p0
.line 165
iget-object v1, v0, Lrx/c/e/b/d;->d:[J
const-wide/16 v2, -0x1
.line 170
:cond_6
invoke-virtual/range {p0 .. p0}, Lrx/c/e/b/d;->a()J
move-result-wide v4
.line 171
invoke-virtual {v0, v4, v5}, Lrx/c/e/b/d;->d(J)J
move-result-wide v6
.line 172
invoke-static {v1, v6, v7}, Lrx/c/e/b/d;->a([JJ)J
move-result-wide v8
const-wide/16 v10, 0x1
add-long v12, v4, v10
sub-long/2addr v8, v12
const/4 v14, 0x0
const-wide/16 v15, 0x0
cmp-long v17, v8, v15
if-nez v17, :cond_37
.line 176
invoke-virtual {v0, v4, v5, v12, v13}, Lrx/c/e/b/d;->a(JJ)Z
move-result v8
if-eqz v8, :cond_6
.line 192
invoke-virtual {v0, v4, v5}, Lrx/c/e/b/d;->a(J)J
move-result-wide v2
.line 193
invoke-virtual {v0, v2, v3}, Lrx/c/e/b/d;->b(J)Ljava/lang/Object;
move-result-object v8
.line 194
invoke-virtual {v0, v2, v3, v14}, Lrx/c/e/b/d;->a(JLjava/lang/Object;)V
.line 198
iget-wide v2, v0, Lrx/c/e/b/d;->b:J
add-long/2addr v4, v2
add-long/2addr v4, v10
invoke-static {v1, v6, v7, v4, v5}, Lrx/c/e/b/d;->a([JJJ)V
return-object v8
:cond_37
cmp-long v6, v8, v15
if-gez v6, :cond_6
cmp-long v6, v4, v2
if-ltz v6, :cond_6
.line 181
invoke-virtual/range {p0 .. p0}, Lrx/c/e/b/d;->b()J
move-result-wide v2
cmp-long v6, v4, v2
if-nez v6, :cond_6
return-object v14
.end method
.method public final size()I
.registers 8
.line 224
invoke-virtual {p0}, Lrx/c/e/b/d;->a()J
move-result-wide v0
.line 227
:goto_4
invoke-virtual {p0}, Lrx/c/e/b/d;->b()J
move-result-wide v2
.line 228
invoke-virtual {p0}, Lrx/c/e/b/d;->a()J
move-result-wide v4
cmp-long v6, v0, v4
if-nez v6, :cond_13
sub-long/2addr v2, v4
long-to-int v0, v2
return v0
:cond_13
move-wide v0, v4
goto :goto_4
.end method