2019-12-13 02:35:12 +00:00
|
|
|
.class public final Lx/k;
|
2019-12-06 03:29:40 +00:00
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "GzipSource.kt"
|
|
|
|
|
|
|
|
# interfaces
|
2019-12-13 02:35:12 +00:00
|
|
|
.implements Lx/w;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field public d:B
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
.field public final e:Lx/q;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
.field public final f:Ljava/util/zip/Inflater;
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
.field public final g:Lx/l;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
.field public final h:Ljava/util/zip/CRC32;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2019-12-13 02:35:12 +00:00
|
|
|
.method public constructor <init>(Lx/w;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
.locals 2
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
new-instance v0, Lx/q;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-direct {v0, p1}, Lx/q;-><init>(Lx/w;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iput-object v0, p0, Lx/k;->e:Lx/q;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
new-instance p1, Ljava/util/zip/Inflater;
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
invoke-direct {p1, v0}, Ljava/util/zip/Inflater;-><init>(Z)V
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iput-object p1, p0, Lx/k;->f:Ljava/util/zip/Inflater;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
new-instance p1, Lx/l;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v0, p0, Lx/k;->e:Lx/q;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v1, p0, Lx/k;->f:Ljava/util/zip/Inflater;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-direct {p1, v0, v1}, Lx/l;-><init>(Lx/g;Ljava/util/zip/Inflater;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iput-object p1, p0, Lx/k;->g:Lx/l;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
new-instance p1, Ljava/util/zip/CRC32;
|
|
|
|
|
|
|
|
invoke-direct {p1}, Ljava/util/zip/CRC32;-><init>()V
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iput-object p1, p0, Lx/k;->h:Ljava/util/zip/CRC32;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string p1, "source"
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-static {p1}, Ls/u/b/j;->a(Ljava/lang/String;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public final a(Ljava/lang/String;II)V
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
if-ne p3, p2, :cond_0
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
new-instance v0, Ljava/io/IOException;
|
|
|
|
|
|
|
|
const/4 v1, 0x3
|
|
|
|
|
|
|
|
new-array v1, v1, [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
|
|
|
|
|
|
|
|
array-length p1, v1
|
|
|
|
|
|
|
|
invoke-static {v1, p1}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
const-string p2, "%s: actual 0x%08x != expected 0x%08x"
|
|
|
|
|
|
|
|
invoke-static {p2, p1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
const-string p2, "java.lang.String.format(this, *args)"
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-static {p1, p2}, Ls/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
invoke-direct {v0, p1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
.end method
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
.method public final a(Lx/e;JJ)V
|
2019-12-06 03:29:40 +00:00
|
|
|
.locals 6
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object p1, p1, Lx/e;->d:Lx/r;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
if-eqz p1, :cond_4
|
|
|
|
|
|
|
|
:goto_0
|
2019-12-13 02:35:12 +00:00
|
|
|
iget v1, p1, Lx/r;->c:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget v2, p1, Lx/r;->b:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object p1, p1, Lx/r;->f:Lx/r;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-static {}, Ls/u/b/j;->throwNpe()V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const-wide/16 v1, 0x0
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
cmp-long v3, p4, v1
|
|
|
|
|
|
|
|
if-lez v3, :cond_3
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget v3, p1, Lx/r;->b:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
int-to-long v3, v3
|
|
|
|
|
|
|
|
add-long/2addr v3, p2
|
|
|
|
|
|
|
|
long-to-int p2, v3
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget p3, p1, Lx/r;->c:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
sub-int/2addr p3, p2
|
|
|
|
|
|
|
|
int-to-long v3, p3
|
|
|
|
|
|
|
|
invoke-static {v3, v4, p4, p5}, Ljava/lang/Math;->min(JJ)J
|
|
|
|
|
|
|
|
move-result-wide v3
|
|
|
|
|
|
|
|
long-to-int p3, v3
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v3, p0, Lx/k;->h:Ljava/util/zip/CRC32;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v4, p1, Lx/r;->a:[B
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
invoke-virtual {v3, v4, p2, p3}, Ljava/util/zip/CRC32;->update([BII)V
|
|
|
|
|
|
|
|
int-to-long p2, p3
|
|
|
|
|
|
|
|
sub-long/2addr p4, p2
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object p1, p1, Lx/r;->f:Lx/r;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
|
|
|
|
move-wide p2, v1
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_2
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-static {}, Ls/u/b/j;->throwNpe()V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_4
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-static {}, Ls/u/b/j;->throwNpe()V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
throw v0
|
|
|
|
.end method
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
.method public b(Lx/e;J)J
|
2019-12-06 03:29:40 +00:00
|
|
|
.locals 20
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
|
|
value = {
|
|
|
|
Ljava/io/IOException;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
move-object/from16 v6, p0
|
|
|
|
|
|
|
|
move-object/from16 v7, p1
|
|
|
|
|
|
|
|
move-wide/from16 v8, p2
|
|
|
|
|
|
|
|
if-eqz v7, :cond_17
|
|
|
|
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
|
|
|
|
const/4 v10, 0x0
|
|
|
|
|
|
|
|
const/4 v11, 0x1
|
|
|
|
|
|
|
|
cmp-long v2, v8, v0
|
|
|
|
|
|
|
|
if-ltz v2, :cond_0
|
|
|
|
|
|
|
|
const/4 v3, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-eqz v3, :cond_16
|
|
|
|
|
|
|
|
if-nez v2, :cond_1
|
|
|
|
|
|
|
|
return-wide v0
|
|
|
|
|
|
|
|
:cond_1
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-byte v0, v6, Lx/k;->d:B
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const-wide/16 v12, -0x1
|
|
|
|
|
|
|
|
if-nez v0, :cond_11
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v0, v6, Lx/k;->e:Lx/q;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const-wide/16 v1, 0xa
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {v0, v1, v2}, Lx/q;->g(J)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v0, v6, Lx/k;->e:Lx/q;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v0, v0, Lx/q;->d:Lx/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const-wide/16 v1, 0x3
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {v0, v1, v2}, Lx/e;->h(J)B
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result v14
|
|
|
|
|
|
|
|
shr-int/lit8 v0, v14, 0x1
|
|
|
|
|
|
|
|
and-int/2addr v0, v11
|
|
|
|
|
|
|
|
if-ne v0, v11, :cond_2
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
const/4 v15, 0x1
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
const/4 v15, 0x0
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
if-eqz v15, :cond_3
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v0, v6, Lx/k;->e:Lx/q;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v1, v0, Lx/q;->d:Lx/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
|
|
|
|
const-wide/16 v4, 0xa
|
|
|
|
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual/range {v0 .. v5}, Lx/k;->a(Lx/e;JJ)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
:cond_3
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v0, v6, Lx/k;->e:Lx/q;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {v0}, Lx/q;->readShort()S
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
const/16 v1, 0x1f8b
|
|
|
|
|
|
|
|
const-string v2, "ID1ID2"
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {v6, v2, v1, v0}, Lx/k;->a(Ljava/lang/String;II)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v0, v6, Lx/k;->e:Lx/q;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const-wide/16 v1, 0x8
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {v0, v1, v2}, Lx/q;->skip(J)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
shr-int/lit8 v0, v14, 0x2
|
|
|
|
|
|
|
|
and-int/2addr v0, v11
|
|
|
|
|
|
|
|
if-ne v0, v11, :cond_4
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
const-wide/16 v1, 0x2
|
|
|
|
|
|
|
|
if-eqz v0, :cond_7
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v0, v6, Lx/k;->e:Lx/q;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {v0, v1, v2}, Lx/q;->g(J)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
if-eqz v15, :cond_5
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v0, v6, Lx/k;->e:Lx/q;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v1, v0, Lx/q;->d:Lx/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
|
|
|
|
const-wide/16 v4, 0x2
|
|
|
|
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual/range {v0 .. v5}, Lx/k;->a(Lx/e;JJ)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
:cond_5
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v0, v6, Lx/k;->e:Lx/q;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v0, v0, Lx/q;->d:Lx/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {v0}, Lx/e;->c()S
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
int-to-long v4, v0
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v0, v6, Lx/k;->e:Lx/q;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {v0, v4, v5}, Lx/q;->g(J)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
if-eqz v15, :cond_6
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v0, v6, Lx/k;->e:Lx/q;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v1, v0, Lx/q;->d:Lx/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
|
|
|
|
move-wide/from16 v16, v4
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual/range {v0 .. v5}, Lx/k;->a(Lx/e;JJ)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
move-wide/from16 v16, v4
|
|
|
|
|
|
|
|
:goto_3
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v0, v6, Lx/k;->e:Lx/q;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-wide/from16 v1, v16
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {v0, v1, v2}, Lx/q;->skip(J)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
:cond_7
|
|
|
|
shr-int/lit8 v0, v14, 0x3
|
|
|
|
|
|
|
|
and-int/2addr v0, v11
|
|
|
|
|
|
|
|
if-ne v0, v11, :cond_8
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
goto :goto_4
|
|
|
|
|
|
|
|
:cond_8
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
:goto_4
|
|
|
|
const-wide/16 v16, 0x1
|
|
|
|
|
|
|
|
if-eqz v0, :cond_b
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v0, v6, Lx/k;->e:Lx/q;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {v0, v10}, Lx/q;->a(B)J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result-wide v18
|
|
|
|
|
|
|
|
cmp-long v0, v18, v12
|
|
|
|
|
|
|
|
if-eqz v0, :cond_a
|
|
|
|
|
|
|
|
if-eqz v15, :cond_9
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v0, v6, Lx/k;->e:Lx/q;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v1, v0, Lx/q;->d:Lx/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
|
|
|
|
add-long v4, v18, v16
|
|
|
|
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual/range {v0 .. v5}, Lx/k;->a(Lx/e;JJ)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
:cond_9
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v0, v6, Lx/k;->e:Lx/q;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
add-long v1, v18, v16
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {v0, v1, v2}, Lx/q;->skip(J)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
goto :goto_5
|
|
|
|
|
|
|
|
:cond_a
|
|
|
|
new-instance v0, Ljava/io/EOFException;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Ljava/io/EOFException;-><init>()V
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:cond_b
|
|
|
|
:goto_5
|
|
|
|
shr-int/lit8 v0, v14, 0x4
|
|
|
|
|
|
|
|
and-int/2addr v0, v11
|
|
|
|
|
|
|
|
if-ne v0, v11, :cond_c
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
goto :goto_6
|
|
|
|
|
|
|
|
:cond_c
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
:goto_6
|
|
|
|
if-eqz v0, :cond_f
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v0, v6, Lx/k;->e:Lx/q;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {v0, v10}, Lx/q;->a(B)J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result-wide v18
|
|
|
|
|
|
|
|
cmp-long v0, v18, v12
|
|
|
|
|
|
|
|
if-eqz v0, :cond_e
|
|
|
|
|
|
|
|
if-eqz v15, :cond_d
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v0, v6, Lx/k;->e:Lx/q;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v1, v0, Lx/q;->d:Lx/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
|
|
|
|
add-long v4, v18, v16
|
|
|
|
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual/range {v0 .. v5}, Lx/k;->a(Lx/e;JJ)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
:cond_d
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v0, v6, Lx/k;->e:Lx/q;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
add-long v1, v18, v16
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {v0, v1, v2}, Lx/q;->skip(J)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
goto :goto_7
|
|
|
|
|
|
|
|
:cond_e
|
|
|
|
new-instance v0, Ljava/io/EOFException;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Ljava/io/EOFException;-><init>()V
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:cond_f
|
|
|
|
:goto_7
|
|
|
|
if-eqz v15, :cond_10
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v0, v6, Lx/k;->e:Lx/q;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const-wide/16 v1, 0x2
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {v0, v1, v2}, Lx/q;->g(J)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v0, v0, Lx/q;->d:Lx/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {v0}, Lx/e;->c()S
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v1, v6, Lx/k;->h:Ljava/util/zip/CRC32;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
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"
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {v6, v2, v0, v1}, Lx/k;->a(Ljava/lang/String;II)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v0, v6, Lx/k;->h:Ljava/util/zip/CRC32;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/util/zip/CRC32;->reset()V
|
|
|
|
|
|
|
|
:cond_10
|
2019-12-13 02:35:12 +00:00
|
|
|
iput-byte v11, v6, Lx/k;->d:B
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
:cond_11
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-byte v0, v6, Lx/k;->d:B
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const/4 v1, 0x2
|
|
|
|
|
|
|
|
if-ne v0, v11, :cond_13
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-wide v2, v7, Lx/e;->e:J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v0, v6, Lx/k;->g:Lx/l;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {v0, v7, v8, v9}, Lx/l;->b(Lx/e;J)J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result-wide v8
|
|
|
|
|
|
|
|
cmp-long v0, v8, v12
|
|
|
|
|
|
|
|
if-eqz v0, :cond_12
|
|
|
|
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
|
|
|
|
move-object/from16 v1, p1
|
|
|
|
|
|
|
|
move-wide v4, v8
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual/range {v0 .. v5}, Lx/k;->a(Lx/e;JJ)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
return-wide v8
|
|
|
|
|
|
|
|
:cond_12
|
2019-12-13 02:35:12 +00:00
|
|
|
iput-byte v1, v6, Lx/k;->d:B
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
:cond_13
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-byte v0, v6, Lx/k;->d:B
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
if-ne v0, v1, :cond_15
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v0, v6, Lx/k;->e:Lx/q;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {v0}, Lx/q;->a()I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v1, v6, Lx/k;->h:Ljava/util/zip/CRC32;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1}, Ljava/util/zip/CRC32;->getValue()J
|
|
|
|
|
|
|
|
move-result-wide v1
|
|
|
|
|
|
|
|
long-to-int v2, v1
|
|
|
|
|
|
|
|
const-string v1, "CRC"
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {v6, v1, v0, v2}, Lx/k;->a(Ljava/lang/String;II)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v0, v6, Lx/k;->e:Lx/q;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {v0}, Lx/q;->a()I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v1, v6, Lx/k;->f:Ljava/util/zip/Inflater;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1}, Ljava/util/zip/Inflater;->getBytesWritten()J
|
|
|
|
|
|
|
|
move-result-wide v1
|
|
|
|
|
|
|
|
long-to-int v2, v1
|
|
|
|
|
|
|
|
const-string v1, "ISIZE"
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {v6, v1, v0, v2}, Lx/k;->a(Ljava/lang/String;II)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const/4 v0, 0x3
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iput-byte v0, v6, Lx/k;->d:B
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v0, v6, Lx/k;->e:Lx/q;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {v0}, Lx/q;->q()Z
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_14
|
|
|
|
|
|
|
|
goto :goto_8
|
|
|
|
|
|
|
|
: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_8
|
|
|
|
return-wide v12
|
|
|
|
|
|
|
|
:cond_16
|
|
|
|
const-string v0, "byteCount < 0: "
|
|
|
|
|
|
|
|
invoke-static {v0, v8, v9}, Le/e/b/a/a;->a(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
|
|
|
|
|
|
|
|
:cond_17
|
|
|
|
const-string v0, "sink"
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-static {v0}, Ls/u/b/j;->a(Ljava/lang/String;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public close()V
|
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
|
|
value = {
|
|
|
|
Ljava/io/IOException;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v0, p0, Lx/k;->g:Lx/l;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {v0}, Lx/l;->close()V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
.method public timeout()Lx/x;
|
2019-12-06 03:29:40 +00:00
|
|
|
.locals 1
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v0, p0, Lx/k;->e:Lx/q;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {v0}, Lx/q;->timeout()Lx/x;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|