apkfuckery/com.discord/smali_classes2/d0/e$a.smali

672 lines
11 KiB
Smali
Raw Normal View History

2020-11-12 02:11:44 +00:00
.class public final Ld0/e$a;
.super Ljava/lang/Object;
2020-11-14 03:19:56 +00:00
.source "Buffer.kt"
# interfaces
.implements Ljava/io/Closeable;
2020-11-12 02:11:44 +00:00
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Ld0/e;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "a"
.end annotation
2020-11-14 03:19:56 +00:00
# instance fields
.field public d:Ld0/e;
.field public e:Z
.field public f:Ld0/s;
.field public g:J
.field public h:[B
.field public i:I
.field public j:I
2020-11-12 02:11:44 +00:00
# direct methods
2020-11-14 03:19:56 +00:00
.method public constructor <init>()V
.locals 2
2020-11-12 02:11:44 +00:00
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2020-11-14 03:19:56 +00:00
const-wide/16 v0, -0x1
iput-wide v0, p0, Ld0/e$a;->g:J
const/4 v0, -0x1
iput v0, p0, Ld0/e$a;->i:I
iput v0, p0, Ld0/e$a;->j:I
2020-11-12 02:11:44 +00:00
return-void
.end method
# virtual methods
2020-11-14 03:19:56 +00:00
.method public final a(J)J
.locals 13
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iget-object v0, p0, Ld0/e$a;->d:Ld0/e;
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
if-eqz v0, :cond_a
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iget-boolean v1, p0, Ld0/e$a;->e:Z
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
if-eqz v1, :cond_9
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iget-wide v1, v0, Ld0/e;->e:J
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
const/4 v3, 0x1
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
const-wide/16 v4, 0x0
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
cmp-long v6, p1, v1
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
if-gtz v6, :cond_6
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
cmp-long v3, p1, v4
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
if-ltz v3, :cond_0
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
const/4 v3, 0x1
2020-11-12 02:11:44 +00:00
2020-11-14 02:19:59 +00:00
goto :goto_0
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
:cond_0
const/4 v3, 0x0
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
:goto_0
if-eqz v3, :cond_5
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
sub-long v6, v1, p1
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
:goto_1
const/4 v3, 0x0
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
cmp-long v8, v6, v4
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
if-lez v8, :cond_4
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iget-object v8, v0, Ld0/e;->d:Ld0/s;
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
if-eqz v8, :cond_3
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iget-object v8, v8, Ld0/s;->g:Ld0/s;
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
if-eqz v8, :cond_2
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iget v9, v8, Ld0/s;->c:I
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iget v10, v8, Ld0/s;->b:I
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
sub-int v10, v9, v10
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
int-to-long v10, v10
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
cmp-long v12, v10, v6
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
if-gtz v12, :cond_1
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
invoke-virtual {v8}, Ld0/s;->a()Ld0/s;
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
move-result-object v3
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iput-object v3, v0, Ld0/e;->d:Ld0/s;
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
invoke-static {v8}, Ld0/t;->a(Ld0/s;)V
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
sub-long/2addr v6, v10
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
goto :goto_1
2020-11-13 01:15:36 +00:00
2020-11-14 03:19:56 +00:00
:cond_1
long-to-int v4, v6
2020-11-13 01:15:36 +00:00
2020-11-14 03:19:56 +00:00
sub-int/2addr v9, v4
2020-11-13 01:15:36 +00:00
2020-11-14 03:19:56 +00:00
iput v9, v8, Ld0/s;->c:I
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
goto :goto_2
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
:cond_2
invoke-static {}, Ly/m/c/j;->throwNpe()V
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
throw v3
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
:cond_3
invoke-static {}, Ly/m/c/j;->throwNpe()V
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
throw v3
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
:cond_4
:goto_2
iput-object v3, p0, Ld0/e$a;->f:Ld0/s;
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iput-wide p1, p0, Ld0/e$a;->g:J
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iput-object v3, p0, Ld0/e$a;->h:[B
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
const/4 v3, -0x1
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iput v3, p0, Ld0/e$a;->i:I
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iput v3, p0, Ld0/e$a;->j:I
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
goto :goto_4
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
:cond_5
const-string v0, "newSize < 0: "
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
invoke-static {v0, p1, p2}, Lf/e/c/a/a;->o(Ljava/lang/String;J)Ljava/lang/String;
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
move-result-object p1
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
new-instance p2, Ljava/lang/IllegalArgumentException;
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
move-result-object p1
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
throw p2
:cond_6
if-lez v6, :cond_8
sub-long v6, p1, v1
const/4 v8, 0x1
2020-11-12 02:11:44 +00:00
2020-11-14 02:19:59 +00:00
:goto_3
2020-11-14 03:19:56 +00:00
cmp-long v9, v6, v4
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
if-lez v9, :cond_8
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
invoke-virtual {v0, v3}, Ld0/e;->F(I)Ld0/s;
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
move-result-object v3
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iget v9, v3, Ld0/s;->c:I
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
rsub-int v9, v9, 0x2000
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
int-to-long v9, v9
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
invoke-static {v6, v7, v9, v10}, Ljava/lang/Math;->min(JJ)J
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
move-result-wide v9
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
long-to-int v10, v9
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iget v9, v3, Ld0/s;->c:I
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
add-int/2addr v9, v10
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iput v9, v3, Ld0/s;->c:I
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
int-to-long v11, v10
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
sub-long/2addr v6, v11
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
if-eqz v8, :cond_7
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iput-object v3, p0, Ld0/e$a;->f:Ld0/s;
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iput-wide v1, p0, Ld0/e$a;->g:J
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iget-object v3, v3, Ld0/s;->a:[B
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iput-object v3, p0, Ld0/e$a;->h:[B
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
sub-int v3, v9, v10
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iput v3, p0, Ld0/e$a;->i:I
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iput v9, p0, Ld0/e$a;->j:I
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
const/4 v3, 0x0
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
const/4 v8, 0x0
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
:cond_7
const/4 v3, 0x1
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
goto :goto_3
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
:cond_8
:goto_4
iput-wide p1, v0, Ld0/e;->e:J
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
return-wide v1
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
:cond_9
new-instance p1, Ljava/lang/IllegalStateException;
2020-11-13 01:15:36 +00:00
2020-11-14 03:19:56 +00:00
const-string p2, "resizeBuffer() only permitted for read/write buffers"
2020-11-13 01:15:36 +00:00
2020-11-14 03:19:56 +00:00
invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
2020-11-13 01:15:36 +00:00
2020-11-14 03:19:56 +00:00
move-result-object p2
2020-11-13 01:15:36 +00:00
2020-11-14 03:19:56 +00:00
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
throw p1
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
:cond_a
new-instance p1, Ljava/lang/IllegalStateException;
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
const-string p2, "not attached to a buffer"
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
move-result-object p2
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
throw p1
.end method
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
.method public final b(J)I
.locals 18
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
move-object/from16 v0, p0
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
move-wide/from16 v1, p1
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iget-object v3, v0, Ld0/e$a;->d:Ld0/e;
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
if-eqz v3, :cond_11
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
const/4 v4, -0x1
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
int-to-long v5, v4
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
cmp-long v7, v1, v5
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
if-ltz v7, :cond_10
iget-wide v5, v3, Ld0/e;->e:J
cmp-long v7, v1, v5
if-gtz v7, :cond_10
const-wide/16 v7, -0x1
2020-11-12 02:11:44 +00:00
2020-11-14 02:19:59 +00:00
const/4 v9, 0x0
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
cmp-long v10, v1, v7
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
if-eqz v10, :cond_f
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
cmp-long v7, v1, v5
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
if-nez v7, :cond_0
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
goto/16 :goto_4
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
:cond_0
const-wide/16 v7, 0x0
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iget-object v4, v3, Ld0/e;->d:Ld0/s;
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iget-object v10, v0, Ld0/e$a;->f:Ld0/s;
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
if-eqz v10, :cond_3
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iget-wide v11, v0, Ld0/e$a;->g:J
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iget v13, v0, Ld0/e$a;->i:I
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
if-eqz v10, :cond_2
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iget v14, v10, Ld0/s;->b:I
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
sub-int/2addr v13, v14
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
int-to-long v13, v13
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
sub-long/2addr v11, v13
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
cmp-long v13, v11, v1
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
if-lez v13, :cond_1
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
move-wide v5, v11
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
move-object/from16 v17, v10
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
move-object v10, v4
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
move-object/from16 v4, v17
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
goto :goto_0
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
:cond_1
move-wide v7, v11
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
goto :goto_0
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
:cond_2
invoke-static {}, Ly/m/c/j;->throwNpe()V
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
throw v9
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
:cond_3
move-object v10, v4
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
:goto_0
sub-long v11, v5, v1
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
sub-long v13, v1, v7
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
cmp-long v15, v11, v13
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
if-lez v15, :cond_5
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
:goto_1
if-eqz v10, :cond_4
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iget v4, v10, Ld0/s;->c:I
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iget v5, v10, Ld0/s;->b:I
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
sub-int v6, v4, v5
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
int-to-long v11, v6
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
add-long/2addr v11, v7
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
cmp-long v6, v1, v11
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
if-ltz v6, :cond_9
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
sub-int/2addr v4, v5
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
int-to-long v4, v4
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
add-long/2addr v7, v4
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iget-object v10, v10, Ld0/s;->f:Ld0/s;
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
goto :goto_1
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
:cond_4
invoke-static {}, Ly/m/c/j;->throwNpe()V
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
throw v9
2020-11-13 01:15:36 +00:00
2020-11-14 03:19:56 +00:00
:cond_5
:goto_2
cmp-long v7, v5, v1
2020-11-13 01:15:36 +00:00
2020-11-14 03:19:56 +00:00
if-lez v7, :cond_8
2020-11-13 01:15:36 +00:00
2020-11-14 03:19:56 +00:00
if-eqz v4, :cond_7
2020-11-13 01:15:36 +00:00
2020-11-14 03:19:56 +00:00
iget-object v4, v4, Ld0/s;->g:Ld0/s;
2020-11-13 01:15:36 +00:00
2020-11-14 03:19:56 +00:00
if-eqz v4, :cond_6
2020-11-13 01:15:36 +00:00
2020-11-14 03:19:56 +00:00
iget v7, v4, Ld0/s;->c:I
2020-11-13 01:15:36 +00:00
2020-11-14 03:19:56 +00:00
iget v8, v4, Ld0/s;->b:I
2020-11-13 01:15:36 +00:00
2020-11-14 03:19:56 +00:00
sub-int/2addr v7, v8
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
int-to-long v7, v7
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
sub-long/2addr v5, v7
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
goto :goto_2
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
:cond_6
invoke-static {}, Ly/m/c/j;->throwNpe()V
2020-11-13 01:15:36 +00:00
2020-11-14 03:19:56 +00:00
throw v9
2020-11-13 01:15:36 +00:00
2020-11-14 03:19:56 +00:00
:cond_7
invoke-static {}, Ly/m/c/j;->throwNpe()V
2020-11-13 01:15:36 +00:00
2020-11-14 03:19:56 +00:00
throw v9
2020-11-13 01:15:36 +00:00
2020-11-14 03:19:56 +00:00
:cond_8
move-object v10, v4
move-wide v7, v5
:cond_9
iget-boolean v4, v0, Ld0/e$a;->e:Z
if-eqz v4, :cond_d
if-eqz v10, :cond_c
iget-boolean v4, v10, Ld0/s;->d:Z
if-eqz v4, :cond_d
iget-object v4, v10, Ld0/s;->a:[B
array-length v5, v4
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
invoke-static {v4, v5}, Ljava/util/Arrays;->copyOf([BI)[B
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
move-result-object v12
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
const-string v4, "java.util.Arrays.copyOf(this, size)"
2020-11-13 01:15:36 +00:00
2020-11-14 03:19:56 +00:00
invoke-static {v12, v4}, Ly/m/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
iget v13, v10, Ld0/s;->b:I
iget v14, v10, Ld0/s;->c:I
new-instance v4, Ld0/s;
const/4 v15, 0x0
2020-11-12 02:11:44 +00:00
2020-11-14 02:19:59 +00:00
const/16 v16, 0x1
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
move-object v11, v4
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
invoke-direct/range {v11 .. v16}, Ld0/s;-><init>([BIIZZ)V
iget-object v5, v3, Ld0/e;->d:Ld0/s;
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
if-ne v5, v10, :cond_a
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iput-object v4, v3, Ld0/e;->d:Ld0/s;
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
:cond_a
invoke-virtual {v10, v4}, Ld0/s;->b(Ld0/s;)Ld0/s;
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iget-object v3, v4, Ld0/s;->g:Ld0/s;
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
if-eqz v3, :cond_b
2020-11-13 01:15:36 +00:00
2020-11-14 03:19:56 +00:00
invoke-virtual {v3}, Ld0/s;->a()Ld0/s;
2020-11-13 01:15:36 +00:00
2020-11-14 03:19:56 +00:00
move-object v10, v4
2020-11-13 01:15:36 +00:00
2020-11-14 03:19:56 +00:00
goto :goto_3
:cond_b
invoke-static {}, Ly/m/c/j;->throwNpe()V
throw v9
:cond_c
invoke-static {}, Ly/m/c/j;->throwNpe()V
throw v9
2020-11-12 02:11:44 +00:00
:cond_d
2020-11-14 03:19:56 +00:00
:goto_3
iput-object v10, v0, Ld0/e$a;->f:Ld0/s;
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iput-wide v1, v0, Ld0/e$a;->g:J
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
if-eqz v10, :cond_e
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iget-object v3, v10, Ld0/s;->a:[B
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iput-object v3, v0, Ld0/e$a;->h:[B
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iget v3, v10, Ld0/s;->b:I
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
sub-long/2addr v1, v7
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
long-to-int v2, v1
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
add-int/2addr v3, v2
iput v3, v0, Ld0/e$a;->i:I
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iget v1, v10, Ld0/s;->c:I
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iput v1, v0, Ld0/e$a;->j:I
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
sub-int/2addr v1, v3
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
return v1
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
:cond_e
invoke-static {}, Ly/m/c/j;->throwNpe()V
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
throw v9
2020-11-12 02:11:44 +00:00
:cond_f
2020-11-14 03:19:56 +00:00
:goto_4
iput-object v9, v0, Ld0/e$a;->f:Ld0/s;
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iput-wide v1, v0, Ld0/e$a;->g:J
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iput-object v9, v0, Ld0/e$a;->h:[B
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iput v4, v0, Ld0/e$a;->i:I
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iput v4, v0, Ld0/e$a;->j:I
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
return v4
2020-11-12 02:11:44 +00:00
:cond_10
2020-11-14 03:19:56 +00:00
const/4 v4, 0x2
new-array v5, v4, [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
iget-wide v2, v3, Ld0/e;->e:J
invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v2
aput-object v2, v5, v1
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
invoke-static {v5, v4}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
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
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
const-string v2, "java.lang.String.format(format, *args)"
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
invoke-static {v1, v2}, Ly/m/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
new-instance v2, Ljava/lang/ArrayIndexOutOfBoundsException;
invoke-direct {v2, v1}, Ljava/lang/ArrayIndexOutOfBoundsException;-><init>(Ljava/lang/String;)V
throw v2
2020-11-12 02:11:44 +00:00
:cond_11
2020-11-14 03:19:56 +00:00
new-instance v1, Ljava/lang/IllegalStateException;
const-string v2, "not attached to a buffer"
invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
move-result-object v2
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
invoke-direct {v1, v2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
throw v1
.end method
.method public close()V
.locals 3
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iget-object v0, p0, Ld0/e$a;->d:Ld0/e;
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
if-eqz v0, :cond_0
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
const/4 v0, 0x1
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
goto :goto_0
:cond_0
const/4 v0, 0x0
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
:goto_0
if-eqz v0, :cond_1
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
const/4 v0, 0x0
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iput-object v0, p0, Ld0/e$a;->d:Ld0/e;
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iput-object v0, p0, Ld0/e$a;->f:Ld0/s;
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
const-wide/16 v1, -0x1
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iput-wide v1, p0, Ld0/e$a;->g:J
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iput-object v0, p0, Ld0/e$a;->h:[B
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
const/4 v0, -0x1
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iput v0, p0, Ld0/e$a;->i:I
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iput v0, p0, Ld0/e$a;->j:I
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
return-void
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
:cond_1
new-instance v0, Ljava/lang/IllegalStateException;
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
const-string v1, "not attached to a buffer"
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
move-result-object v1
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
throw v0
2020-11-12 02:11:44 +00:00
.end method