2019-12-21 01:41:59 +00:00
|
|
|
.class public final Ly/l;
|
2019-12-06 03:29:40 +00:00
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "InflaterSource.kt"
|
|
|
|
|
|
|
|
# interfaces
|
2019-12-21 01:41:59 +00:00
|
|
|
.implements Ly/w;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field public d:I
|
|
|
|
|
|
|
|
.field public e:Z
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
.field public final f:Ly/g;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
.field public final g:Ljava/util/zip/Inflater;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2019-12-21 01:41:59 +00:00
|
|
|
.method public constructor <init>(Ly/g;Ljava/util/zip/Inflater;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
iput-object p1, p0, Ly/l;->f:Ly/g;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
iput-object p2, p0, Ly/l;->g:Ljava/util/zip/Inflater;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string p1, "inflater"
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
invoke-static {p1}, Lt/u/b/j;->a(Ljava/lang/String;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const-string p1, "source"
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
invoke-static {p1}, Lt/u/b/j;->a(Ljava/lang/String;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
throw v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public final a()V
|
|
|
|
.locals 4
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
iget v0, p0, Ly/l;->d:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
2019-12-21 01:41:59 +00:00
|
|
|
iget-object v1, p0, Ly/l;->g:Ljava/util/zip/Inflater;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1}, Ljava/util/zip/Inflater;->getRemaining()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
sub-int/2addr v0, v1
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
iget v1, p0, Ly/l;->d:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
sub-int/2addr v1, v0
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
iput v1, p0, Ly/l;->d:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
iget-object v1, p0, Ly/l;->f:Ly/g;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
int-to-long v2, v0
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
invoke-interface {v1, v2, v3}, Ly/g;->skip(J)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
.method public b(Ly/e;J)J
|
2019-12-06 03:29:40 +00:00
|
|
|
.locals 8
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
|
|
value = {
|
|
|
|
Ljava/io/IOException;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
if-eqz p1, :cond_e
|
|
|
|
|
|
|
|
const-wide/16 v1, 0x0
|
|
|
|
|
|
|
|
const/4 v3, 0x1
|
|
|
|
|
|
|
|
cmp-long v4, p2, v1
|
|
|
|
|
|
|
|
if-ltz v4, :cond_0
|
|
|
|
|
|
|
|
const/4 v5, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v5, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-eqz v5, :cond_d
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
iget-boolean v5, p0, Ly/l;->e:Z
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
xor-int/2addr v5, v3
|
|
|
|
|
|
|
|
if-eqz v5, :cond_c
|
|
|
|
|
|
|
|
if-nez v4, :cond_1
|
|
|
|
|
|
|
|
return-wide v1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
:goto_1
|
2019-12-21 01:41:59 +00:00
|
|
|
iget-object v1, p0, Ly/l;->g:Ljava/util/zip/Inflater;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1}, Ljava/util/zip/Inflater;->needsInput()Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-nez v1, :cond_2
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_2
|
2019-12-21 01:41:59 +00:00
|
|
|
invoke-virtual {p0}, Ly/l;->a()V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
iget-object v1, p0, Ly/l;->g:Ljava/util/zip/Inflater;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1}, Ljava/util/zip/Inflater;->getRemaining()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-nez v1, :cond_3
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
if-eqz v1, :cond_b
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
iget-object v1, p0, Ly/l;->f:Ly/g;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
invoke-interface {v1}, Ly/g;->q()Z
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_4
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
goto :goto_4
|
|
|
|
|
|
|
|
:cond_4
|
2019-12-21 01:41:59 +00:00
|
|
|
iget-object v1, p0, Ly/l;->f:Ly/g;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
invoke-interface {v1}, Ly/g;->n()Ly/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
iget-object v1, v1, Ly/e;->d:Ly/r;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
if-eqz v1, :cond_a
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
iget v2, v1, Ly/r;->c:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
iget v4, v1, Ly/r;->b:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
sub-int/2addr v2, v4
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
iput v2, p0, Ly/l;->d:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
iget-object v2, p0, Ly/l;->g:Ljava/util/zip/Inflater;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
iget-object v1, v1, Ly/r;->a:[B
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
iget v5, p0, Ly/l;->d:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
invoke-virtual {v2, v1, v4, v5}, Ljava/util/zip/Inflater;->setInput([BII)V
|
|
|
|
|
|
|
|
:goto_3
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:goto_4
|
|
|
|
:try_start_0
|
2019-12-21 01:41:59 +00:00
|
|
|
invoke-virtual {p1, v3}, Ly/e;->a(I)Ly/r;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
iget v4, v2, Ly/r;->c:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
rsub-int v4, v4, 0x2000
|
|
|
|
|
|
|
|
int-to-long v4, v4
|
|
|
|
|
|
|
|
invoke-static {p2, p3, v4, v5}, Ljava/lang/Math;->min(JJ)J
|
|
|
|
|
|
|
|
move-result-wide v4
|
|
|
|
|
|
|
|
long-to-int v5, v4
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
iget-object v4, p0, Ly/l;->g:Ljava/util/zip/Inflater;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
iget-object v6, v2, Ly/r;->a:[B
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
iget v7, v2, Ly/r;->c:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
invoke-virtual {v4, v6, v7, v5}, Ljava/util/zip/Inflater;->inflate([BII)I
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
if-lez v4, :cond_5
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
iget p2, v2, Ly/r;->c:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
add-int/2addr p2, v4
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
iput p2, v2, Ly/r;->c:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
iget-wide p2, p1, Ly/e;->e:J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
int-to-long v0, v4
|
|
|
|
|
|
|
|
add-long/2addr p2, v0
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
iput-wide p2, p1, Ly/e;->e:J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
return-wide v0
|
|
|
|
|
|
|
|
:cond_5
|
2019-12-21 01:41:59 +00:00
|
|
|
iget-object v4, p0, Ly/l;->g:Ljava/util/zip/Inflater;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
invoke-virtual {v4}, Ljava/util/zip/Inflater;->finished()Z
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
if-nez v4, :cond_8
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
iget-object v4, p0, Ly/l;->g:Ljava/util/zip/Inflater;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
invoke-virtual {v4}, Ljava/util/zip/Inflater;->needsDictionary()Z
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
if-eqz v4, :cond_6
|
|
|
|
|
|
|
|
goto :goto_5
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
if-nez v1, :cond_7
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_7
|
|
|
|
new-instance p1, Ljava/io/EOFException;
|
|
|
|
|
|
|
|
const-string p2, "source exhausted prematurely"
|
|
|
|
|
|
|
|
invoke-direct {p1, p2}, Ljava/io/EOFException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
|
|
|
|
:cond_8
|
|
|
|
:goto_5
|
2019-12-21 01:41:59 +00:00
|
|
|
invoke-virtual {p0}, Ly/l;->a()V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
iget p2, v2, Ly/r;->b:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
iget p3, v2, Ly/r;->c:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
if-ne p2, p3, :cond_9
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
invoke-virtual {v2}, Ly/r;->a()Ly/r;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
iput-object p2, p1, Ly/e;->d:Ly/r;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
invoke-static {v2}, Ly/s;->a(Ly/r;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
:try_end_0
|
|
|
|
.catch Ljava/util/zip/DataFormatException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
|
|
|
|
:cond_9
|
|
|
|
const-wide/16 p1, -0x1
|
|
|
|
|
|
|
|
return-wide p1
|
|
|
|
|
|
|
|
:catch_0
|
|
|
|
move-exception p1
|
|
|
|
|
|
|
|
new-instance p2, Ljava/io/IOException;
|
|
|
|
|
|
|
|
invoke-direct {p2, p1}, Ljava/io/IOException;-><init>(Ljava/lang/Throwable;)V
|
|
|
|
|
|
|
|
throw p2
|
|
|
|
|
|
|
|
:cond_a
|
2019-12-21 01:41:59 +00:00
|
|
|
invoke-static {}, Lt/u/b/j;->throwNpe()V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:cond_b
|
|
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
|
|
|
|
const-string p2, "?"
|
|
|
|
|
|
|
|
invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
|
|
|
|
:cond_c
|
|
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
|
|
|
|
const-string p2, "closed"
|
|
|
|
|
|
|
|
invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
|
|
|
|
:cond_d
|
|
|
|
const-string p1, "byteCount < 0: "
|
|
|
|
|
|
|
|
invoke-static {p1, p2, p3}, Le/e/b/a/a;->a(Ljava/lang/String;J)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
new-instance p2, Ljava/lang/IllegalArgumentException;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p2
|
|
|
|
|
|
|
|
:cond_e
|
|
|
|
const-string p1, "sink"
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
invoke-static {p1}, Lt/u/b/j;->a(Ljava/lang/String;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
throw v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public close()V
|
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
|
|
value = {
|
|
|
|
Ljava/io/IOException;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
iget-boolean v0, p0, Ly/l;->e:Z
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
2019-12-21 01:41:59 +00:00
|
|
|
iget-object v0, p0, Ly/l;->g:Ljava/util/zip/Inflater;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/util/zip/Inflater;->end()V
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
iput-boolean v0, p0, Ly/l;->e:Z
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
iget-object v0, p0, Ly/l;->f:Ly/g;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
invoke-interface {v0}, Ly/w;->close()V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
.method public timeout()Ly/x;
|
2019-12-06 03:29:40 +00:00
|
|
|
.locals 1
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
iget-object v0, p0, Ly/l;->f:Ly/g;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
invoke-interface {v0}, Ly/w;->timeout()Ly/x;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|