2019-12-20 07:00:35 +00:00
|
|
|
.class public final Lr/e$a;
|
2019-12-06 03:29:40 +00:00
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "Buffer.kt"
|
|
|
|
|
|
|
|
# interfaces
|
|
|
|
.implements Ljava/io/Closeable;
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
2019-12-20 07:00:35 +00:00
|
|
|
value = Lr/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
|
|
accessFlags = 0x19
|
|
|
|
name = "a"
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2019-12-20 07:00:35 +00:00
|
|
|
.field public d:Lr/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
.field public e:Z
|
|
|
|
|
2019-12-20 07:00:35 +00:00
|
|
|
.field public f:Lr/r;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
.field public g:J
|
|
|
|
|
|
|
|
.field public h:[B
|
|
|
|
|
|
|
|
.field public i:I
|
|
|
|
|
|
|
|
.field public j:I
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>()V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
const-wide/16 v0, -0x1
|
|
|
|
|
2019-12-20 07:00:35 +00:00
|
|
|
iput-wide v0, p0, Lr/e$a;->g:J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const/4 v0, -0x1
|
|
|
|
|
2019-12-20 07:00:35 +00:00
|
|
|
iput v0, p0, Lr/e$a;->i:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-20 07:00:35 +00:00
|
|
|
iput v0, p0, Lr/e$a;->j:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public close()V
|
|
|
|
.locals 3
|
|
|
|
|
2019-12-20 07:00:35 +00:00
|
|
|
iget-object v0, p0, Lr/e$a;->d:Lr/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
2019-12-20 07:00:35 +00:00
|
|
|
iput-object v0, p0, Lr/e$a;->d:Lr/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-20 07:00:35 +00:00
|
|
|
iput-object v0, p0, Lr/e$a;->f:Lr/r;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const-wide/16 v1, -0x1
|
|
|
|
|
2019-12-20 07:00:35 +00:00
|
|
|
iput-wide v1, p0, Lr/e$a;->g:J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-20 07:00:35 +00:00
|
|
|
iput-object v0, p0, Lr/e$a;->h:[B
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const/4 v0, -0x1
|
|
|
|
|
2019-12-20 07:00:35 +00:00
|
|
|
iput v0, p0, Lr/e$a;->i:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-20 07:00:35 +00:00
|
|
|
iput v0, p0, Lr/e$a;->j:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
|
|
|
|
const-string v1, "not attached to a buffer"
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final h(J)I
|
|
|
|
.locals 18
|
|
|
|
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
|
|
|
|
move-wide/from16 v1, p1
|
|
|
|
|
2019-12-20 07:00:35 +00:00
|
|
|
iget-object v3, v0, Lr/e$a;->d:Lr/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
if-eqz v3, :cond_10
|
|
|
|
|
|
|
|
const/4 v4, -0x1
|
|
|
|
|
|
|
|
int-to-long v5, v4
|
|
|
|
|
|
|
|
cmp-long v7, v1, v5
|
|
|
|
|
|
|
|
if-ltz v7, :cond_f
|
|
|
|
|
2019-12-20 07:00:35 +00:00
|
|
|
iget-wide v5, v3, Lr/e;->e:J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
cmp-long v7, v1, v5
|
|
|
|
|
|
|
|
if-gtz v7, :cond_f
|
|
|
|
|
|
|
|
const-wide/16 v7, -0x1
|
|
|
|
|
|
|
|
const/4 v9, 0x0
|
|
|
|
|
|
|
|
cmp-long v10, v1, v7
|
|
|
|
|
|
|
|
if-eqz v10, :cond_e
|
|
|
|
|
|
|
|
cmp-long v7, v1, v5
|
|
|
|
|
|
|
|
if-nez v7, :cond_0
|
|
|
|
|
|
|
|
goto/16 :goto_4
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-wide/16 v7, 0x0
|
|
|
|
|
2019-12-20 07:00:35 +00:00
|
|
|
iget-object v4, v3, Lr/e;->d:Lr/r;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-20 07:00:35 +00:00
|
|
|
iget-object v10, v0, Lr/e$a;->f:Lr/r;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
if-eqz v10, :cond_3
|
|
|
|
|
2019-12-20 07:00:35 +00:00
|
|
|
iget-wide v11, v0, Lr/e$a;->g:J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-20 07:00:35 +00:00
|
|
|
iget v13, v0, Lr/e$a;->i:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
if-eqz v10, :cond_2
|
|
|
|
|
2019-12-20 07:00:35 +00:00
|
|
|
iget v14, v10, Lr/r;->b:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
sub-int/2addr v13, v14
|
|
|
|
|
|
|
|
int-to-long v13, v13
|
|
|
|
|
|
|
|
sub-long/2addr v11, v13
|
|
|
|
|
|
|
|
cmp-long v13, v11, v1
|
|
|
|
|
|
|
|
if-lez v13, :cond_1
|
|
|
|
|
|
|
|
move-wide v5, v11
|
|
|
|
|
|
|
|
move-object/from16 v17, v10
|
|
|
|
|
|
|
|
move-object v10, v4
|
|
|
|
|
|
|
|
move-object/from16 v4, v17
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
move-wide v7, v11
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_2
|
2019-12-20 07:00:35 +00:00
|
|
|
invoke-static {}, Lm/u/b/j;->throwNpe()V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
throw v9
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
move-object v10, v4
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
sub-long v11, v5, v1
|
|
|
|
|
|
|
|
sub-long v13, v1, v7
|
|
|
|
|
|
|
|
cmp-long v15, v11, v13
|
|
|
|
|
|
|
|
if-lez v15, :cond_5
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
if-eqz v10, :cond_4
|
|
|
|
|
2019-12-20 07:00:35 +00:00
|
|
|
iget v4, v10, Lr/r;->c:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-20 07:00:35 +00:00
|
|
|
iget v5, v10, Lr/r;->b:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
sub-int v6, v4, v5
|
|
|
|
|
|
|
|
int-to-long v11, v6
|
|
|
|
|
|
|
|
add-long/2addr v11, v7
|
|
|
|
|
|
|
|
cmp-long v6, v1, v11
|
|
|
|
|
|
|
|
if-ltz v6, :cond_8
|
|
|
|
|
|
|
|
sub-int/2addr v4, v5
|
|
|
|
|
|
|
|
int-to-long v4, v4
|
|
|
|
|
|
|
|
add-long/2addr v7, v4
|
|
|
|
|
2019-12-20 07:00:35 +00:00
|
|
|
iget-object v10, v10, Lr/r;->f:Lr/r;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_4
|
2019-12-20 07:00:35 +00:00
|
|
|
invoke-static {}, Lm/u/b/j;->throwNpe()V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
throw v9
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
move-object v10, v4
|
|
|
|
|
|
|
|
move-wide v7, v5
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
cmp-long v4, v7, v1
|
|
|
|
|
|
|
|
if-lez v4, :cond_8
|
|
|
|
|
|
|
|
if-eqz v10, :cond_7
|
|
|
|
|
2019-12-20 07:00:35 +00:00
|
|
|
iget-object v10, v10, Lr/r;->g:Lr/r;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
if-eqz v10, :cond_6
|
|
|
|
|
2019-12-20 07:00:35 +00:00
|
|
|
iget v4, v10, Lr/r;->c:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-20 07:00:35 +00:00
|
|
|
iget v5, v10, Lr/r;->b:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
sub-int/2addr v4, v5
|
|
|
|
|
|
|
|
int-to-long v4, v4
|
|
|
|
|
|
|
|
sub-long/2addr v7, v4
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_6
|
2019-12-20 07:00:35 +00:00
|
|
|
invoke-static {}, Lm/u/b/j;->throwNpe()V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
throw v9
|
|
|
|
|
|
|
|
:cond_7
|
2019-12-20 07:00:35 +00:00
|
|
|
invoke-static {}, Lm/u/b/j;->throwNpe()V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
throw v9
|
|
|
|
|
|
|
|
:cond_8
|
2019-12-20 07:00:35 +00:00
|
|
|
iget-boolean v4, v0, Lr/e$a;->e:Z
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
if-eqz v4, :cond_c
|
|
|
|
|
|
|
|
if-eqz v10, :cond_b
|
|
|
|
|
2019-12-20 07:00:35 +00:00
|
|
|
iget-boolean v4, v10, Lr/r;->d:Z
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
if-eqz v4, :cond_c
|
|
|
|
|
2019-12-20 07:00:35 +00:00
|
|
|
new-instance v4, Lr/r;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-20 07:00:35 +00:00
|
|
|
iget-object v5, v10, Lr/r;->a:[B
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
array-length v6, v5
|
|
|
|
|
|
|
|
invoke-static {v5, v6}, Ljava/util/Arrays;->copyOf([BI)[B
|
|
|
|
|
|
|
|
move-result-object v12
|
|
|
|
|
|
|
|
const-string v5, "java.util.Arrays.copyOf(this, size)"
|
|
|
|
|
2019-12-20 07:00:35 +00:00
|
|
|
invoke-static {v12, v5}, Lm/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-20 07:00:35 +00:00
|
|
|
iget v13, v10, Lr/r;->b:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-20 07:00:35 +00:00
|
|
|
iget v14, v10, Lr/r;->c:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const/4 v15, 0x0
|
|
|
|
|
|
|
|
const/16 v16, 0x1
|
|
|
|
|
|
|
|
move-object v11, v4
|
|
|
|
|
2019-12-20 07:00:35 +00:00
|
|
|
invoke-direct/range {v11 .. v16}, Lr/r;-><init>([BIIZZ)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-20 07:00:35 +00:00
|
|
|
iget-object v5, v3, Lr/e;->d:Lr/r;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
if-ne v5, v10, :cond_9
|
|
|
|
|
2019-12-20 07:00:35 +00:00
|
|
|
iput-object v4, v3, Lr/e;->d:Lr/r;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
:cond_9
|
2019-12-20 07:00:35 +00:00
|
|
|
invoke-virtual {v10, v4}, Lr/r;->a(Lr/r;)Lr/r;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-20 07:00:35 +00:00
|
|
|
iget-object v3, v4, Lr/r;->g:Lr/r;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
if-eqz v3, :cond_a
|
|
|
|
|
2019-12-20 07:00:35 +00:00
|
|
|
invoke-virtual {v3}, Lr/r;->a()Lr/r;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_a
|
2019-12-20 07:00:35 +00:00
|
|
|
invoke-static {}, Lm/u/b/j;->throwNpe()V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
throw v9
|
|
|
|
|
|
|
|
:cond_b
|
2019-12-20 07:00:35 +00:00
|
|
|
invoke-static {}, Lm/u/b/j;->throwNpe()V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
throw v9
|
|
|
|
|
|
|
|
:cond_c
|
|
|
|
move-object v4, v10
|
|
|
|
|
|
|
|
:goto_3
|
2019-12-20 07:00:35 +00:00
|
|
|
iput-object v4, v0, Lr/e$a;->f:Lr/r;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-20 07:00:35 +00:00
|
|
|
iput-wide v1, v0, Lr/e$a;->g:J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
if-eqz v4, :cond_d
|
|
|
|
|
2019-12-20 07:00:35 +00:00
|
|
|
iget-object v3, v4, Lr/r;->a:[B
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-20 07:00:35 +00:00
|
|
|
iput-object v3, v0, Lr/e$a;->h:[B
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-20 07:00:35 +00:00
|
|
|
iget v3, v4, Lr/r;->b:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
sub-long/2addr v1, v7
|
|
|
|
|
|
|
|
long-to-int v2, v1
|
|
|
|
|
|
|
|
add-int/2addr v3, v2
|
|
|
|
|
2019-12-20 07:00:35 +00:00
|
|
|
iput v3, v0, Lr/e$a;->i:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-20 07:00:35 +00:00
|
|
|
iget v1, v4, Lr/r;->c:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-20 07:00:35 +00:00
|
|
|
iput v1, v0, Lr/e$a;->j:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-20 07:00:35 +00:00
|
|
|
iget v1, v0, Lr/e$a;->j:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-20 07:00:35 +00:00
|
|
|
iget v2, v0, Lr/e$a;->i:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
sub-int/2addr v1, v2
|
|
|
|
|
|
|
|
return v1
|
|
|
|
|
|
|
|
:cond_d
|
2019-12-20 07:00:35 +00:00
|
|
|
invoke-static {}, Lm/u/b/j;->throwNpe()V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
throw v9
|
|
|
|
|
|
|
|
:cond_e
|
|
|
|
:goto_4
|
2019-12-20 07:00:35 +00:00
|
|
|
iput-object v9, v0, Lr/e$a;->f:Lr/r;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-20 07:00:35 +00:00
|
|
|
iput-wide v1, v0, Lr/e$a;->g:J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-20 07:00:35 +00:00
|
|
|
iput-object v9, v0, Lr/e$a;->h:[B
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-20 07:00:35 +00:00
|
|
|
iput v4, v0, Lr/e$a;->i:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-20 07:00:35 +00:00
|
|
|
iput v4, v0, Lr/e$a;->j:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
return v4
|
|
|
|
|
|
|
|
:cond_f
|
|
|
|
new-instance v4, Ljava/lang/ArrayIndexOutOfBoundsException;
|
|
|
|
|
|
|
|
const/4 v5, 0x2
|
|
|
|
|
|
|
|
new-array v5, v5, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
const/4 v6, 0x0
|
|
|
|
|
|
|
|
invoke-static/range {p1 .. p2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
aput-object v1, v5, v6
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
2019-12-20 07:00:35 +00:00
|
|
|
iget-wide v2, v3, Lr/e;->e:J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
aput-object v2, v5, v1
|
|
|
|
|
|
|
|
array-length v1, v5
|
|
|
|
|
|
|
|
invoke-static {v5, v1}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
const-string v2, "offset=%s > size=%s"
|
|
|
|
|
|
|
|
invoke-static {v2, v1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
const-string v2, "java.lang.String.format(format, *args)"
|
|
|
|
|
2019-12-20 07:00:35 +00:00
|
|
|
invoke-static {v1, v2}, Lm/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
invoke-direct {v4, v1}, Ljava/lang/ArrayIndexOutOfBoundsException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw v4
|
|
|
|
|
|
|
|
:cond_10
|
|
|
|
new-instance v1, Ljava/lang/IllegalStateException;
|
|
|
|
|
|
|
|
const-string v2, "not attached to a buffer"
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-direct {v1, v2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw v1
|
|
|
|
.end method
|