apkfuckery/com.discord/smali_classes2/p0/l.smali

716 lines
12 KiB
Smali
Raw Normal View History

2020-09-02 04:07:20 +00:00
.class public final Lp0/l;
.super Ljava/lang/Object;
2020-09-09 19:21:20 +00:00
.source "GzipSource.kt"
2020-09-02 04:07:20 +00:00
# interfaces
2020-09-09 19:21:20 +00:00
.implements Lp0/x;
2020-09-02 04:07:20 +00:00
# instance fields
2020-09-09 19:21:20 +00:00
.field public d:B
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
.field public final e:Lp0/r;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
.field public final f:Ljava/util/zip/Inflater;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
.field public final g:Lp0/m;
.field public final h:Ljava/util/zip/CRC32;
2020-09-02 04:07:20 +00:00
# direct methods
2020-09-09 19:21:20 +00:00
.method public constructor <init>(Lp0/x;)V
.locals 2
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
const-string v0, "source"
invoke-static {p1, v0}, Lk0/n/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-09-02 04:07:20 +00:00
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2020-09-09 19:21:20 +00:00
new-instance v0, Lp0/r;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-direct {v0, p1}, Lp0/r;-><init>(Lp0/x;)V
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
iput-object v0, p0, Lp0/l;->e:Lp0/r;
2020-09-08 08:16:32 +00:00
2020-09-09 19:21:20 +00:00
new-instance p1, Ljava/util/zip/Inflater;
const/4 v0, 0x1
invoke-direct {p1, v0}, Ljava/util/zip/Inflater;-><init>(Z)V
2020-09-08 08:16:32 +00:00
2020-09-09 19:21:20 +00:00
iput-object p1, p0, Lp0/l;->f:Ljava/util/zip/Inflater;
2020-09-08 08:16:32 +00:00
2020-09-09 19:21:20 +00:00
new-instance v0, Lp0/m;
2020-09-08 08:16:32 +00:00
2020-09-09 19:21:20 +00:00
iget-object v1, p0, Lp0/l;->e:Lp0/r;
invoke-direct {v0, v1, p1}, Lp0/m;-><init>(Lp0/g;Ljava/util/zip/Inflater;)V
iput-object v0, p0, Lp0/l;->g:Lp0/m;
new-instance p1, Ljava/util/zip/CRC32;
invoke-direct {p1}, Ljava/util/zip/CRC32;-><init>()V
iput-object p1, p0, Lp0/l;->h:Ljava/util/zip/CRC32;
return-void
2020-09-02 04:07:20 +00:00
.end method
# virtual methods
2020-09-09 19:21:20 +00:00
.method public G0(Lp0/e;J)J
.locals 24
2020-09-02 04:07:20 +00:00
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2020-09-09 19:21:20 +00:00
move-object/from16 v6, p0
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
move-object/from16 v7, p1
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
move-wide/from16 v8, p2
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
const-string v0, "sink"
invoke-static {v7, v0}, Lk0/n/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-wide/16 v0, 0x0
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
const/4 v10, 0x0
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
const/4 v11, 0x1
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
cmp-long v2, v8, v0
if-ltz v2, :cond_0
const/4 v3, 0x1
2020-09-02 04:07:20 +00:00
goto :goto_0
:cond_0
2020-09-09 19:21:20 +00:00
const/4 v3, 0x0
2020-09-02 04:07:20 +00:00
:goto_0
2020-09-09 19:21:20 +00:00
if-eqz v3, :cond_16
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
if-nez v2, :cond_1
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
return-wide v0
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
:cond_1
iget-byte v0, v6, Lp0/l;->d:B
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
const-wide/16 v12, -0x1
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
if-nez v0, :cond_11
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
iget-object v0, v6, Lp0/l;->e:Lp0/r;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
const-wide/16 v1, 0xa
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {v0, v1, v2}, Lp0/r;->S0(J)V
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
iget-object v0, v6, Lp0/l;->e:Lp0/r;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
iget-object v0, v0, Lp0/r;->d:Lp0/e;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
const-wide/16 v1, 0x3
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {v0, v1, v2}, Lp0/e;->e(J)B
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
move-result v14
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
shr-int/lit8 v0, v14, 0x1
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
and-int/2addr v0, v11
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
if-ne v0, v11, :cond_2
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
const/4 v0, 0x1
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
const/4 v15, 0x1
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
goto :goto_1
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
:cond_2
const/4 v0, 0x0
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
const/4 v15, 0x0
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
:goto_1
if-eqz v15, :cond_3
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
iget-object v0, v6, Lp0/l;->e:Lp0/r;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
iget-object v1, v0, Lp0/r;->d:Lp0/e;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
const-wide/16 v2, 0x0
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
const-wide/16 v4, 0xa
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
move-object/from16 v0, p0
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual/range {v0 .. v5}, Lp0/l;->b(Lp0/e;JJ)V
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
:cond_3
iget-object v0, v6, Lp0/l;->e:Lp0/r;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {v0}, Lp0/r;->readShort()S
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
move-result v0
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
const/16 v1, 0x1f8b
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
const-string v2, "ID1ID2"
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {v6, v2, v1, v0}, Lp0/l;->a(Ljava/lang/String;II)V
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
iget-object v0, v6, Lp0/l;->e:Lp0/r;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
const-wide/16 v1, 0x8
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {v0, v1, v2}, Lp0/r;->skip(J)V
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
shr-int/lit8 v0, v14, 0x2
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
and-int/2addr v0, v11
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
if-ne v0, v11, :cond_4
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
const/4 v0, 0x1
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
goto :goto_2
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
:cond_4
const/4 v0, 0x0
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
:goto_2
const-wide/16 v1, 0x2
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
if-eqz v0, :cond_7
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
iget-object v0, v6, Lp0/l;->e:Lp0/r;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {v0, v1, v2}, Lp0/r;->S0(J)V
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
if-eqz v15, :cond_5
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
iget-object v0, v6, Lp0/l;->e:Lp0/r;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
iget-object v1, v0, Lp0/r;->d:Lp0/e;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
const-wide/16 v2, 0x0
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
const-wide/16 v4, 0x2
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
move-object/from16 v0, p0
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual/range {v0 .. v5}, Lp0/l;->b(Lp0/e;JJ)V
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
:cond_5
iget-object v0, v6, Lp0/l;->e:Lp0/r;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
iget-object v0, v0, Lp0/r;->d:Lp0/e;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {v0}, Lp0/e;->p()S
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
move-result v0
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
int-to-long v4, v0
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
iget-object v0, v6, Lp0/l;->e:Lp0/r;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {v0, v4, v5}, Lp0/r;->S0(J)V
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
if-eqz v15, :cond_6
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
iget-object v0, v6, Lp0/l;->e:Lp0/r;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
iget-object v1, v0, Lp0/r;->d:Lp0/e;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
const-wide/16 v2, 0x0
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
move-object/from16 v0, p0
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
move-wide/from16 v16, v4
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual/range {v0 .. v5}, Lp0/l;->b(Lp0/e;JJ)V
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
goto :goto_3
2020-09-02 04:07:20 +00:00
:cond_6
2020-09-09 19:21:20 +00:00
move-wide/from16 v16, v4
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
:goto_3
iget-object v0, v6, Lp0/l;->e:Lp0/r;
move-wide/from16 v1, v16
invoke-virtual {v0, v1, v2}, Lp0/r;->skip(J)V
2020-09-02 04:07:20 +00:00
:cond_7
2020-09-09 19:21:20 +00:00
shr-int/lit8 v0, v14, 0x3
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
and-int/2addr v0, v11
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
if-ne v0, v11, :cond_8
const/4 v0, 0x1
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
goto :goto_4
2020-09-02 04:07:20 +00:00
:cond_8
2020-09-09 19:21:20 +00:00
const/4 v0, 0x0
:goto_4
const-wide/16 v16, 0x1
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
if-eqz v0, :cond_b
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
iget-object v0, v6, Lp0/l;->e:Lp0/r;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
const/16 v19, 0x0
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
const-wide/16 v20, 0x0
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
const-wide v22, 0x7fffffffffffffffL
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
move-object/from16 v18, v0
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual/range {v18 .. v23}, Lp0/r;->a(BJJ)J
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
move-result-wide v18
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
cmp-long v0, v18, v12
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
if-eqz v0, :cond_a
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
if-eqz v15, :cond_9
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
iget-object v0, v6, Lp0/l;->e:Lp0/r;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
iget-object v1, v0, Lp0/r;->d:Lp0/e;
const-wide/16 v2, 0x0
add-long v4, v18, v16
move-object/from16 v0, p0
invoke-virtual/range {v0 .. v5}, Lp0/l;->b(Lp0/e;JJ)V
:cond_9
iget-object v0, v6, Lp0/l;->e:Lp0/r;
add-long v1, v18, v16
invoke-virtual {v0, v1, v2}, Lp0/r;->skip(J)V
goto :goto_5
2020-09-02 04:07:20 +00:00
:cond_a
2020-09-09 19:21:20 +00:00
new-instance v0, Ljava/io/EOFException;
invoke-direct {v0}, Ljava/io/EOFException;-><init>()V
2020-09-02 04:07:20 +00:00
2020-09-08 08:16:32 +00:00
throw v0
2020-09-02 04:07:20 +00:00
:cond_b
2020-09-09 19:21:20 +00:00
:goto_5
shr-int/lit8 v0, v14, 0x4
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
and-int/2addr v0, v11
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
if-ne v0, v11, :cond_c
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
const/4 v10, 0x1
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
:cond_c
if-eqz v10, :cond_f
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
iget-object v0, v6, Lp0/l;->e:Lp0/r;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
const/4 v1, 0x0
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
const-wide/16 v2, 0x0
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
const-wide v4, 0x7fffffffffffffffL
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual/range {v0 .. v5}, Lp0/r;->a(BJJ)J
move-result-wide v18
cmp-long v0, v18, v12
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
if-eqz v0, :cond_e
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
if-eqz v15, :cond_d
iget-object v0, v6, Lp0/l;->e:Lp0/r;
iget-object v1, v0, Lp0/r;->d:Lp0/e;
const-wide/16 v2, 0x0
add-long v4, v18, v16
move-object/from16 v0, p0
invoke-virtual/range {v0 .. v5}, Lp0/l;->b(Lp0/e;JJ)V
2020-09-02 04:07:20 +00:00
:cond_d
2020-09-09 19:21:20 +00:00
iget-object v0, v6, Lp0/l;->e:Lp0/r;
add-long v1, v18, v16
invoke-virtual {v0, v1, v2}, Lp0/r;->skip(J)V
goto :goto_6
:cond_e
new-instance v0, Ljava/io/EOFException;
invoke-direct {v0}, Ljava/io/EOFException;-><init>()V
throw v0
:cond_f
:goto_6
if-eqz v15, :cond_10
iget-object v0, v6, Lp0/l;->e:Lp0/r;
const-wide/16 v1, 0x2
invoke-virtual {v0, v1, v2}, Lp0/r;->S0(J)V
iget-object v0, v0, Lp0/r;->d:Lp0/e;
invoke-virtual {v0}, Lp0/e;->p()S
move-result v0
iget-object v1, v6, Lp0/l;->h:Ljava/util/zip/CRC32;
invoke-virtual {v1}, Ljava/util/zip/CRC32;->getValue()J
move-result-wide v1
long-to-int v2, v1
int-to-short v1, v2
const-string v2, "FHCRC"
invoke-virtual {v6, v2, v0, v1}, Lp0/l;->a(Ljava/lang/String;II)V
iget-object v0, v6, Lp0/l;->h:Ljava/util/zip/CRC32;
invoke-virtual {v0}, Ljava/util/zip/CRC32;->reset()V
:cond_10
iput-byte v11, v6, Lp0/l;->d:B
:cond_11
iget-byte v0, v6, Lp0/l;->d:B
const/4 v1, 0x2
if-ne v0, v11, :cond_13
iget-wide v2, v7, Lp0/e;->e:J
iget-object v0, v6, Lp0/l;->g:Lp0/m;
invoke-virtual {v0, v7, v8, v9}, Lp0/m;->G0(Lp0/e;J)J
move-result-wide v8
cmp-long v0, v8, v12
if-eqz v0, :cond_12
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
move-object/from16 v0, p0
move-object/from16 v1, p1
move-wide v4, v8
invoke-virtual/range {v0 .. v5}, Lp0/l;->b(Lp0/e;JJ)V
return-wide v8
:cond_12
iput-byte v1, v6, Lp0/l;->d:B
:cond_13
iget-byte v0, v6, Lp0/l;->d:B
if-ne v0, v1, :cond_15
iget-object v0, v6, Lp0/l;->e:Lp0/r;
invoke-virtual {v0}, Lp0/r;->b()I
move-result v0
iget-object v1, v6, Lp0/l;->h:Ljava/util/zip/CRC32;
invoke-virtual {v1}, Ljava/util/zip/CRC32;->getValue()J
move-result-wide v1
long-to-int v2, v1
const-string v1, "CRC"
invoke-virtual {v6, v1, v0, v2}, Lp0/l;->a(Ljava/lang/String;II)V
iget-object v0, v6, Lp0/l;->e:Lp0/r;
invoke-virtual {v0}, Lp0/r;->b()I
move-result v0
iget-object v1, v6, Lp0/l;->f:Ljava/util/zip/Inflater;
invoke-virtual {v1}, Ljava/util/zip/Inflater;->getBytesWritten()J
move-result-wide v1
long-to-int v2, v1
const-string v1, "ISIZE"
invoke-virtual {v6, v1, v0, v2}, Lp0/l;->a(Ljava/lang/String;II)V
const/4 v0, 0x3
iput-byte v0, v6, Lp0/l;->d:B
iget-object v0, v6, Lp0/l;->e:Lp0/r;
invoke-virtual {v0}, Lp0/r;->L()Z
move-result v0
if-eqz v0, :cond_14
goto :goto_7
:cond_14
new-instance v0, Ljava/io/IOException;
const-string v1, "gzip finished without exhausting source"
invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw v0
:cond_15
:goto_7
return-wide v12
:cond_16
const-string v0, "byteCount < 0: "
invoke-static {v0, v8, v9}, Lf/e/b/a/a;->n(Ljava/lang/String;J)Ljava/lang/String;
move-result-object v0
new-instance v1, Ljava/lang/IllegalArgumentException;
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {v1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v1
.end method
.method public final a(Ljava/lang/String;II)V
.locals 3
if-ne p3, p2, :cond_0
return-void
:cond_0
const/4 v0, 0x3
new-array v1, v0, [Ljava/lang/Object;
const/4 v2, 0x0
aput-object p1, v1, v2
const/4 p1, 0x1
invoke-static {p3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p3
aput-object p3, v1, p1
const/4 p1, 0x2
invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p2
aput-object p2, v1, p1
invoke-static {v1, v0}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
2020-09-02 04:07:20 +00:00
move-result-object p1
2020-09-09 19:21:20 +00:00
const-string p2, "%s: actual 0x%08x != expected 0x%08x"
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-static {p2, p1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
2020-09-02 04:07:20 +00:00
move-result-object p1
2020-09-09 19:21:20 +00:00
const-string p2, "java.lang.String.format(this, *args)"
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-static {p1, p2}, Lk0/n/c/i;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-09-08 08:16:32 +00:00
2020-09-09 19:21:20 +00:00
new-instance p2, Ljava/io/IOException;
2020-09-08 08:16:32 +00:00
2020-09-09 19:21:20 +00:00
invoke-direct {p2, p1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
2020-09-08 08:16:32 +00:00
2020-09-09 19:21:20 +00:00
throw p2
2020-09-02 04:07:20 +00:00
.end method
2020-09-09 19:21:20 +00:00
.method public final b(Lp0/e;JJ)V
.locals 6
iget-object p1, p1, Lp0/e;->d:Lp0/s;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
const/4 v0, 0x0
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
if-eqz p1, :cond_4
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
:goto_0
iget v1, p1, Lp0/s;->c:I
iget v2, p1, Lp0/s;->b:I
sub-int v3, v1, v2
int-to-long v3, v3
cmp-long v5, p2, v3
if-ltz v5, :cond_1
sub-int/2addr v1, v2
int-to-long v1, v1
sub-long/2addr p2, v1
iget-object p1, p1, Lp0/s;->f:Lp0/s;
if-eqz p1, :cond_0
goto :goto_0
2020-09-02 04:07:20 +00:00
:cond_0
2020-09-09 19:21:20 +00:00
invoke-static {}, Lk0/n/c/i;->throwNpe()V
throw v0
:cond_1
const-wide/16 v1, 0x0
:goto_1
cmp-long v3, p4, v1
if-lez v3, :cond_3
iget v3, p1, Lp0/s;->b:I
int-to-long v3, v3
add-long/2addr v3, p2
long-to-int p2, v3
iget p3, p1, Lp0/s;->c:I
sub-int/2addr p3, p2
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
int-to-long v3, p3
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-static {v3, v4, p4, p5}, Ljava/lang/Math;->min(JJ)J
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
move-result-wide v3
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
long-to-int p3, v3
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
iget-object v3, p0, Lp0/l;->h:Ljava/util/zip/CRC32;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
iget-object v4, p1, Lp0/s;->a:[B
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {v3, v4, p2, p3}, Ljava/util/zip/CRC32;->update([BII)V
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
int-to-long p2, p3
sub-long/2addr p4, p2
iget-object p1, p1, Lp0/s;->f:Lp0/s;
if-eqz p1, :cond_2
move-wide p2, v1
goto :goto_1
:cond_2
invoke-static {}, Lk0/n/c/i;->throwNpe()V
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
throw v0
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
:cond_3
2020-09-02 04:07:20 +00:00
return-void
2020-09-09 19:21:20 +00:00
:cond_4
invoke-static {}, Lk0/n/c/i;->throwNpe()V
throw v0
2020-09-02 04:07:20 +00:00
.end method
.method public close()V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2020-09-09 19:21:20 +00:00
iget-object v0, p0, Lp0/l;->g:Lp0/m;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {v0}, Lp0/m;->close()V
2020-09-02 04:07:20 +00:00
return-void
.end method
2020-09-09 19:21:20 +00:00
.method public timeout()Lp0/y;
2020-09-02 04:07:20 +00:00
.locals 1
2020-09-09 19:21:20 +00:00
iget-object v0, p0, Lp0/l;->e:Lp0/r;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {v0}, Lp0/r;->timeout()Lp0/y;
2020-09-02 04:07:20 +00:00
move-result-object v0
return-object v0
.end method