.class public final Lz5/ck1;
.super Lz5/dk1;
.source ""


# instance fields
.field public final c:Ljava/io/InputStream;

.field public final d:[B

.field public e:I

.field public f:I

.field public g:I

.field public h:I

.field public i:I

.field public j:I


# direct methods
.method public constructor <init>(Ljava/io/InputStream;)V
    .registers 3

    invoke-direct {p0}, Lz5/dk1;-><init>()V

    const v0, 0x7fffffff

    iput v0, p0, Lz5/ck1;->j:I

    sget-object v0, Lz5/gl1;->a:Ljava/nio/charset/Charset;

    .line 1
    iput-object p1, p0, Lz5/ck1;->c:Ljava/io/InputStream;

    const/16 p1, 0x1000

    new-array p1, p1, [B

    iput-object p1, p0, Lz5/ck1;->d:[B

    const/4 p1, 0x0

    iput p1, p0, Lz5/ck1;->e:I

    iput p1, p0, Lz5/ck1;->g:I

    iput p1, p0, Lz5/ck1;->i:I

    return-void
.end method


# virtual methods
.method public final A()B
    .registers 4

    iget v0, p0, Lz5/ck1;->g:I

    iget v1, p0, Lz5/ck1;->e:I

    if-ne v0, v1, :cond_a

    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lz5/ck1;->D(I)V

    :cond_a
    iget-object v0, p0, Lz5/ck1;->d:[B

    iget v1, p0, Lz5/ck1;->g:I

    add-int/lit8 v2, v1, 0x1

    iput v2, p0, Lz5/ck1;->g:I

    aget-byte v0, v0, v1

    return v0
.end method

.method public final B(I)V
    .registers 10

    iget v0, p0, Lz5/ck1;->e:I

    iget v1, p0, Lz5/ck1;->g:I

    sub-int/2addr v0, v1

    if-gt p1, v0, :cond_e

    if-gez p1, :cond_a

    goto :goto_e

    :cond_a
    add-int/2addr v1, p1

    iput v1, p0, Lz5/ck1;->g:I

    return-void

    :cond_e
    :goto_e
    if-ltz p1, :cond_a6

    iget v2, p0, Lz5/ck1;->i:I

    add-int v3, v2, v1

    iget v4, p0, Lz5/ck1;->j:I

    add-int v5, v3, p1

    if-gt v5, v4, :cond_9c

    iput v3, p0, Lz5/ck1;->i:I

    const/4 v1, 0x0

    iput v1, p0, Lz5/ck1;->e:I

    iput v1, p0, Lz5/ck1;->g:I

    :goto_21
    const/4 v1, 0x1

    if-ge v0, p1, :cond_7a

    sub-int v2, p1, v0

    :try_start_26
    iget-object v3, p0, Lz5/ck1;->c:Ljava/io/InputStream;
    :try_end_28
    .catchall {:try_start_26 .. :try_end_28} :catchall_70

    int-to-long v4, v2

    :try_start_29
    invoke-virtual {v3, v4, v5}, Ljava/io/InputStream;->skip(J)J

    move-result-wide v2
    :try_end_2d
    .catch Lz5/il1; {:try_start_29 .. :try_end_2d} :catch_6c
    .catchall {:try_start_29 .. :try_end_2d} :catchall_70

    const-wide/16 v6, 0x0

    cmp-long v6, v2, v6

    if-ltz v6, :cond_3d

    cmp-long v4, v2, v4

    if-gtz v4, :cond_3d

    if-nez v6, :cond_3a

    goto :goto_7a

    :cond_3a
    long-to-int v1, v2

    add-int/2addr v0, v1

    goto :goto_21

    :cond_3d
    :try_start_3d
    new-instance p1, Ljava/lang/IllegalStateException;

    iget-object v1, p0, Lz5/ck1;->c:Ljava/io/InputStream;

    invoke-virtual {v1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v1

    invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v4

    add-int/lit8 v4, v4, 0x5c

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5, v4}, Ljava/lang/StringBuilder;-><init>(I)V

    invoke-virtual {v5, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "#skip returned invalid result: "

    invoke-virtual {v5, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string v1, "\nThe InputStream implementation is buggy."

    invoke-virtual {v5, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-direct {p1, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw p1

    :catch_6c
    move-exception p1

    .line 1
    iput-boolean v1, p1, Lz5/il1;->r:Z

    .line 2
    throw p1
    :try_end_70
    .catchall {:try_start_3d .. :try_end_70} :catchall_70

    :catchall_70
    move-exception p1

    iget v1, p0, Lz5/ck1;->i:I

    add-int/2addr v1, v0

    iput v1, p0, Lz5/ck1;->i:I

    invoke-virtual {p0}, Lz5/ck1;->C()V

    throw p1

    :cond_7a
    :goto_7a
    iget v2, p0, Lz5/ck1;->i:I

    add-int/2addr v2, v0

    iput v2, p0, Lz5/ck1;->i:I

    invoke-virtual {p0}, Lz5/ck1;->C()V

    if-ge v0, p1, :cond_9b

    iget v0, p0, Lz5/ck1;->e:I

    iget v2, p0, Lz5/ck1;->g:I

    sub-int v2, v0, v2

    iput v0, p0, Lz5/ck1;->g:I

    :goto_8c
    invoke-virtual {p0, v1}, Lz5/ck1;->D(I)V

    sub-int v0, p1, v2

    iget v3, p0, Lz5/ck1;->e:I

    if-le v0, v3, :cond_99

    add-int/2addr v2, v3

    iput v3, p0, Lz5/ck1;->g:I

    goto :goto_8c

    :cond_99
    iput v0, p0, Lz5/ck1;->g:I

    :cond_9b
    return-void

    :cond_9c
    sub-int/2addr v4, v2

    sub-int/2addr v4, v1

    invoke-virtual {p0, v4}, Lz5/ck1;->B(I)V

    invoke-static {}, Lz5/il1;->b()Lz5/il1;

    move-result-object p1

    throw p1

    :cond_a6
    invoke-static {}, Lz5/il1;->d()Lz5/il1;

    move-result-object p1

    throw p1
.end method

.method public final C()V
    .registers 4

    iget v0, p0, Lz5/ck1;->e:I

    iget v1, p0, Lz5/ck1;->f:I

    add-int/2addr v0, v1

    iput v0, p0, Lz5/ck1;->e:I

    iget v1, p0, Lz5/ck1;->i:I

    add-int/2addr v1, v0

    iget v2, p0, Lz5/ck1;->j:I

    if-le v1, v2, :cond_15

    sub-int/2addr v1, v2

    iput v1, p0, Lz5/ck1;->f:I

    sub-int/2addr v0, v1

    iput v0, p0, Lz5/ck1;->e:I

    return-void

    :cond_15
    const/4 v0, 0x0

    iput v0, p0, Lz5/ck1;->f:I

    return-void
.end method

.method public final D(I)V
    .registers 4

    invoke-virtual {p0, p1}, Lz5/ck1;->E(I)Z

    move-result v0

    if-nez v0, :cond_1e

    const v0, 0x7fffffff

    iget v1, p0, Lz5/ck1;->i:I

    sub-int/2addr v0, v1

    iget v1, p0, Lz5/ck1;->g:I

    sub-int/2addr v0, v1

    if-le p1, v0, :cond_19

    .line 1
    new-instance p1, Lz5/il1;

    const-string v0, "Protocol message was too large.  May be malicious.  Use CodedInputStream.setSizeLimit() to increase the size limit."

    invoke-direct {p1, v0}, Lz5/il1;-><init>(Ljava/lang/String;)V

    .line 2
    throw p1

    :cond_19
    invoke-static {}, Lz5/il1;->b()Lz5/il1;

    move-result-object p1

    throw p1

    :cond_1e
    return-void
.end method

.method public final E(I)Z
    .registers 9

    iget v0, p0, Lz5/ck1;->g:I

    iget v1, p0, Lz5/ck1;->e:I

    add-int v2, v0, p1

    if-le v2, v1, :cond_95

    iget v2, p0, Lz5/ck1;->i:I

    const v3, 0x7fffffff

    sub-int v4, v3, v2

    sub-int/2addr v4, v0

    const/4 v5, 0x0

    if-le p1, v4, :cond_14

    return v5

    :cond_14
    add-int v4, v2, v0

    add-int/2addr v4, p1

    iget v6, p0, Lz5/ck1;->j:I

    if-le v4, v6, :cond_1c

    return v5

    :cond_1c
    if-lez v0, :cond_33

    if-le v1, v0, :cond_26

    iget-object v2, p0, Lz5/ck1;->d:[B

    sub-int/2addr v1, v0

    invoke-static {v2, v0, v2, v5, v1}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    :cond_26
    iget v1, p0, Lz5/ck1;->i:I

    add-int v2, v1, v0

    iput v2, p0, Lz5/ck1;->i:I

    iget v1, p0, Lz5/ck1;->e:I

    sub-int/2addr v1, v0

    iput v1, p0, Lz5/ck1;->e:I

    iput v5, p0, Lz5/ck1;->g:I

    :cond_33
    iget-object v0, p0, Lz5/ck1;->c:Ljava/io/InputStream;

    iget-object v4, p0, Lz5/ck1;->d:[B

    rsub-int v6, v1, 0x1000

    sub-int/2addr v3, v2

    sub-int/2addr v3, v1

    invoke-static {v6, v3}, Ljava/lang/Math;->min(II)I

    move-result v2

    const/4 v3, 0x1

    :try_start_40
    invoke-virtual {v0, v4, v1, v2}, Ljava/io/InputStream;->read([BII)I

    move-result v0
    :try_end_44
    .catch Lz5/il1; {:try_start_40 .. :try_end_44} :catch_91

    if-eqz v0, :cond_62

    const/4 v1, -0x1

    if-lt v0, v1, :cond_62

    const/16 v1, 0x1000

    if-gt v0, v1, :cond_62

    if-lez v0, :cond_61

    iget v1, p0, Lz5/ck1;->e:I

    add-int/2addr v1, v0

    iput v1, p0, Lz5/ck1;->e:I

    invoke-virtual {p0}, Lz5/ck1;->C()V

    iget v0, p0, Lz5/ck1;->e:I

    if-lt v0, p1, :cond_5c

    return v3

    :cond_5c
    invoke-virtual {p0, p1}, Lz5/ck1;->E(I)Z

    move-result p1

    return p1

    :cond_61
    return v5

    :cond_62
    new-instance p1, Ljava/lang/IllegalStateException;

    iget-object v1, p0, Lz5/ck1;->c:Ljava/io/InputStream;

    invoke-virtual {v1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v1

    invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v2

    new-instance v3, Ljava/lang/StringBuilder;

    add-int/lit8 v2, v2, 0x5b

    invoke-direct {v3, v2}, Ljava/lang/StringBuilder;-><init>(I)V

    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "#read(byte[]) returned invalid result: "

    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v0, "\nThe InputStream implementation is buggy."

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw p1

    :catch_91
    move-exception p1

    .line 1
    iput-boolean v3, p1, Lz5/il1;->r:Z

    .line 2
    throw p1

    :cond_95
    new-instance v0, Ljava/lang/IllegalStateException;

    new-instance v1, Ljava/lang/StringBuilder;

    const/16 v2, 0x4d

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(I)V

    const-string v2, "refillBuffer() called when "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string p1, " bytes were already available in buffer"

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-direct {v0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v0
.end method

.method public final F(IZ)[B
    .registers 7

    invoke-virtual {p0, p1}, Lz5/ck1;->G(I)[B

    move-result-object p2

    if-eqz p2, :cond_7

    return-object p2

    :cond_7
    iget p2, p0, Lz5/ck1;->g:I

    iget v0, p0, Lz5/ck1;->e:I

    sub-int v1, v0, p2

    iget v2, p0, Lz5/ck1;->i:I

    add-int/2addr v2, v0

    iput v2, p0, Lz5/ck1;->i:I

    const/4 v0, 0x0

    iput v0, p0, Lz5/ck1;->g:I

    iput v0, p0, Lz5/ck1;->e:I

    sub-int v2, p1, v1

    invoke-virtual {p0, v2}, Lz5/ck1;->H(I)Ljava/util/List;

    move-result-object v2

    new-array p1, p1, [B

    iget-object v3, p0, Lz5/ck1;->d:[B

    invoke-static {v3, p2, p1, v0, v1}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    check-cast v2, Ljava/util/ArrayList;

    invoke-virtual {v2}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object p2

    :goto_2a
    invoke-interface {p2}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_3c

    invoke-interface {p2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, [B

    array-length v3, v2

    invoke-static {v2, v0, p1, v1, v3}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    add-int/2addr v1, v3

    goto :goto_2a

    :cond_3c
    return-object p1
.end method

.method public final G(I)[B
    .registers 8

    if-nez p1, :cond_5

    sget-object p1, Lz5/gl1;->b:[B

    return-object p1

    :cond_5
    if-ltz p1, :cond_76

    iget v0, p0, Lz5/ck1;->i:I

    iget v1, p0, Lz5/ck1;->g:I

    add-int v2, v0, v1

    add-int/2addr v2, p1

    const v3, -0x7fffffff

    add-int/2addr v3, v2

    if-gtz v3, :cond_6e

    iget v3, p0, Lz5/ck1;->j:I

    if-gt v2, v3, :cond_64

    iget v0, p0, Lz5/ck1;->e:I

    sub-int/2addr v0, v1

    sub-int v1, p1, v0

    const/16 v2, 0x1000

    const/4 v3, 0x1

    if-lt v1, v2, :cond_31

    iget-object v2, p0, Lz5/ck1;->c:Ljava/io/InputStream;

    :try_start_24
    invoke-virtual {v2}, Ljava/io/InputStream;->available()I

    move-result v2
    :try_end_28
    .catch Lz5/il1; {:try_start_24 .. :try_end_28} :catch_2d

    if-gt v1, v2, :cond_2b

    goto :goto_31

    :cond_2b
    const/4 p1, 0x0

    return-object p1

    :catch_2d
    move-exception p1

    .line 1
    iput-boolean v3, p1, Lz5/il1;->r:Z

    .line 2
    throw p1

    :cond_31
    :goto_31
    new-array v1, p1, [B

    iget-object v2, p0, Lz5/ck1;->d:[B

    iget v4, p0, Lz5/ck1;->g:I

    const/4 v5, 0x0

    invoke-static {v2, v4, v1, v5, v0}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    iget v2, p0, Lz5/ck1;->i:I

    iget v4, p0, Lz5/ck1;->e:I

    add-int/2addr v2, v4

    iput v2, p0, Lz5/ck1;->i:I

    iput v5, p0, Lz5/ck1;->g:I

    iput v5, p0, Lz5/ck1;->e:I

    :goto_46
    if-ge v0, p1, :cond_63

    iget-object v2, p0, Lz5/ck1;->c:Ljava/io/InputStream;

    sub-int v4, p1, v0

    :try_start_4c
    invoke-virtual {v2, v1, v0, v4}, Ljava/io/InputStream;->read([BII)I

    move-result v2
    :try_end_50
    .catch Lz5/il1; {:try_start_4c .. :try_end_50} :catch_5f

    const/4 v4, -0x1

    if-eq v2, v4, :cond_5a

    iget v4, p0, Lz5/ck1;->i:I

    add-int/2addr v4, v2

    iput v4, p0, Lz5/ck1;->i:I

    add-int/2addr v0, v2

    goto :goto_46

    :cond_5a
    invoke-static {}, Lz5/il1;->b()Lz5/il1;

    move-result-object p1

    throw p1

    :catch_5f
    move-exception p1

    .line 3
    iput-boolean v3, p1, Lz5/il1;->r:Z

    .line 4
    throw p1

    :cond_63
    return-object v1

    :cond_64
    sub-int/2addr v3, v0

    sub-int/2addr v3, v1

    invoke-virtual {p0, v3}, Lz5/ck1;->B(I)V

    invoke-static {}, Lz5/il1;->b()Lz5/il1;

    move-result-object p1

    throw p1

    .line 5
    :cond_6e
    new-instance p1, Lz5/il1;

    const-string v0, "Protocol message was too large.  May be malicious.  Use CodedInputStream.setSizeLimit() to increase the size limit."

    invoke-direct {p1, v0}, Lz5/il1;-><init>(Ljava/lang/String;)V

    .line 6
    throw p1

    :cond_76
    invoke-static {}, Lz5/il1;->d()Lz5/il1;

    move-result-object p1

    throw p1
.end method

.method public final H(I)Ljava/util/List;
    .registers 8
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(I)",
            "Ljava/util/List<",
            "[B>;"
        }
    .end annotation

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    :goto_5
    if-lez p1, :cond_2e

    const/16 v1, 0x1000

    invoke-static {p1, v1}, Ljava/lang/Math;->min(II)I

    move-result v1

    new-array v2, v1, [B

    const/4 v3, 0x0

    :goto_10
    if-ge v3, v1, :cond_29

    iget-object v4, p0, Lz5/ck1;->c:Ljava/io/InputStream;

    sub-int v5, v1, v3

    invoke-virtual {v4, v2, v3, v5}, Ljava/io/InputStream;->read([BII)I

    move-result v4

    const/4 v5, -0x1

    if-eq v4, v5, :cond_24

    iget v5, p0, Lz5/ck1;->i:I

    add-int/2addr v5, v4

    iput v5, p0, Lz5/ck1;->i:I

    add-int/2addr v3, v4

    goto :goto_10

    :cond_24
    invoke-static {}, Lz5/il1;->b()Lz5/il1;

    move-result-object p1

    throw p1

    :cond_29
    sub-int/2addr p1, v1

    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_5

    :cond_2e
    return-object v0
.end method

.method public final I()I
    .registers 6

    iget v0, p0, Lz5/ck1;->g:I

    iget v1, p0, Lz5/ck1;->e:I

    if-ne v1, v0, :cond_7

    goto :goto_6c

    :cond_7
    iget-object v2, p0, Lz5/ck1;->d:[B

    add-int/lit8 v3, v0, 0x1

    aget-byte v0, v2, v0

    if-ltz v0, :cond_12

    iput v3, p0, Lz5/ck1;->g:I

    return v0

    :cond_12
    sub-int/2addr v1, v3

    const/16 v4, 0x9

    if-lt v1, v4, :cond_6c

    add-int/lit8 v1, v3, 0x1

    aget-byte v3, v2, v3

    shl-int/lit8 v3, v3, 0x7

    xor-int/2addr v0, v3

    if-gez v0, :cond_23

    xor-int/lit8 v0, v0, -0x80

    goto :goto_69

    :cond_23
    add-int/lit8 v3, v1, 0x1

    aget-byte v1, v2, v1

    shl-int/lit8 v1, v1, 0xe

    xor-int/2addr v0, v1

    if-ltz v0, :cond_30

    xor-int/lit16 v0, v0, 0x3f80

    :cond_2e
    move v1, v3

    goto :goto_69

    :cond_30
    add-int/lit8 v1, v3, 0x1

    aget-byte v3, v2, v3

    shl-int/lit8 v3, v3, 0x15

    xor-int/2addr v0, v3

    if-gez v0, :cond_3e

    const v2, -0x1fc080

    xor-int/2addr v0, v2

    goto :goto_69

    :cond_3e
    add-int/lit8 v3, v1, 0x1

    aget-byte v1, v2, v1

    shl-int/lit8 v4, v1, 0x1c

    xor-int/2addr v0, v4

    const v4, 0xfe03f80

    xor-int/2addr v0, v4

    if-gez v1, :cond_2e

    add-int/lit8 v1, v3, 0x1

    aget-byte v3, v2, v3

    if-gez v3, :cond_69

    add-int/lit8 v3, v1, 0x1

    aget-byte v1, v2, v1

    if-gez v1, :cond_2e

    add-int/lit8 v1, v3, 0x1

    aget-byte v3, v2, v3

    if-gez v3, :cond_69

    add-int/lit8 v3, v1, 0x1

    aget-byte v1, v2, v1

    if-gez v1, :cond_2e

    add-int/lit8 v1, v3, 0x1

    aget-byte v2, v2, v3

    if-ltz v2, :cond_6c

    :cond_69
    :goto_69
    iput v1, p0, Lz5/ck1;->g:I

    return v0

    :cond_6c
    :goto_6c
    invoke-virtual {p0}, Lz5/ck1;->K()J

    move-result-wide v0

    long-to-int v0, v0

    return v0
.end method

.method public final J()J
    .registers 12

    iget v0, p0, Lz5/ck1;->g:I

    iget v1, p0, Lz5/ck1;->e:I

    if-ne v1, v0, :cond_8

    goto/16 :goto_b7

    :cond_8
    iget-object v2, p0, Lz5/ck1;->d:[B

    add-int/lit8 v3, v0, 0x1

    aget-byte v0, v2, v0

    if-ltz v0, :cond_14

    iput v3, p0, Lz5/ck1;->g:I

    int-to-long v0, v0

    return-wide v0

    :cond_14
    sub-int/2addr v1, v3

    const/16 v4, 0x9

    if-lt v1, v4, :cond_b7

    add-int/lit8 v1, v3, 0x1

    aget-byte v3, v2, v3

    shl-int/lit8 v3, v3, 0x7

    xor-int/2addr v0, v3

    if-gez v0, :cond_27

    xor-int/lit8 v0, v0, -0x80

    :goto_24
    int-to-long v2, v0

    goto/16 :goto_b4

    :cond_27
    add-int/lit8 v3, v1, 0x1

    aget-byte v1, v2, v1

    shl-int/lit8 v1, v1, 0xe

    xor-int/2addr v0, v1

    if-ltz v0, :cond_38

    xor-int/lit16 v0, v0, 0x3f80

    int-to-long v0, v0

    :cond_33
    :goto_33
    move-wide v9, v0

    move v1, v3

    move-wide v2, v9

    goto/16 :goto_b4

    :cond_38
    add-int/lit8 v1, v3, 0x1

    aget-byte v3, v2, v3

    shl-int/lit8 v3, v3, 0x15

    xor-int/2addr v0, v3

    if-gez v0, :cond_46

    const v2, -0x1fc080

    xor-int/2addr v0, v2

    goto :goto_24

    :cond_46
    add-int/lit8 v3, v1, 0x1

    int-to-long v4, v0

    aget-byte v0, v2, v1

    int-to-long v0, v0

    const/16 v6, 0x1c

    shl-long/2addr v0, v6

    xor-long/2addr v0, v4

    const-wide/16 v4, 0x0

    cmp-long v6, v0, v4

    if-ltz v6, :cond_5b

    const-wide/32 v4, 0xfe03f80

    :goto_59
    xor-long/2addr v0, v4

    goto :goto_33

    :cond_5b
    add-int/lit8 v6, v3, 0x1

    aget-byte v3, v2, v3

    int-to-long v7, v3

    const/16 v3, 0x23

    shl-long/2addr v7, v3

    xor-long/2addr v0, v7

    cmp-long v3, v0, v4

    if-gez v3, :cond_70

    const-wide v2, -0x7f01fc080L

    :goto_6d
    xor-long/2addr v2, v0

    :goto_6e
    move v1, v6

    goto :goto_b4

    :cond_70
    add-int/lit8 v3, v6, 0x1

    aget-byte v6, v2, v6

    int-to-long v6, v6

    const/16 v8, 0x2a

    shl-long/2addr v6, v8

    xor-long/2addr v0, v6

    cmp-long v6, v0, v4

    if-ltz v6, :cond_83

    const-wide v4, 0x3f80fe03f80L

    goto :goto_59

    :cond_83
    add-int/lit8 v6, v3, 0x1

    aget-byte v3, v2, v3

    int-to-long v7, v3

    const/16 v3, 0x31

    shl-long/2addr v7, v3

    xor-long/2addr v0, v7

    cmp-long v3, v0, v4

    if-gez v3, :cond_96

    const-wide v2, -0x1fc07f01fc080L

    goto :goto_6d

    :cond_96
    add-int/lit8 v3, v6, 0x1

    aget-byte v6, v2, v6

    int-to-long v6, v6

    const/16 v8, 0x38

    shl-long/2addr v6, v8

    xor-long/2addr v0, v6

    const-wide v6, 0xfe03f80fe03f80L

    xor-long/2addr v0, v6

    cmp-long v6, v0, v4

    if-gez v6, :cond_33

    add-int/lit8 v6, v3, 0x1

    aget-byte v2, v2, v3

    int-to-long v2, v2

    cmp-long v2, v2, v4

    if-ltz v2, :cond_b7

    move-wide v2, v0

    goto :goto_6e

    :goto_b4
    iput v1, p0, Lz5/ck1;->g:I

    return-wide v2

    :cond_b7
    :goto_b7
    invoke-virtual {p0}, Lz5/ck1;->K()J

    move-result-wide v0

    return-wide v0
.end method

.method public final K()J
    .registers 7

    const-wide/16 v0, 0x0

    const/4 v2, 0x0

    :goto_3
    const/16 v3, 0x40

    if-ge v2, v3, :cond_18

    invoke-virtual {p0}, Lz5/ck1;->A()B

    move-result v3

    and-int/lit8 v4, v3, 0x7f

    int-to-long v4, v4

    shl-long/2addr v4, v2

    or-long/2addr v0, v4

    and-int/lit16 v3, v3, 0x80

    if-nez v3, :cond_15

    return-wide v0

    :cond_15
    add-int/lit8 v2, v2, 0x7

    goto :goto_3

    :cond_18
    invoke-static {}, Lz5/il1;->e()Lz5/il1;

    move-result-object v0

    throw v0
.end method

.method public final L()I
    .registers 5

    iget v0, p0, Lz5/ck1;->g:I

    iget v1, p0, Lz5/ck1;->e:I

    sub-int/2addr v1, v0

    const/4 v2, 0x4

    if-ge v1, v2, :cond_d

    invoke-virtual {p0, v2}, Lz5/ck1;->D(I)V

    iget v0, p0, Lz5/ck1;->g:I

    :cond_d
    iget-object v1, p0, Lz5/ck1;->d:[B

    add-int/lit8 v2, v0, 0x4

    iput v2, p0, Lz5/ck1;->g:I

    aget-byte v2, v1, v0

    and-int/lit16 v2, v2, 0xff

    add-int/lit8 v3, v0, 0x1

    aget-byte v3, v1, v3

    and-int/lit16 v3, v3, 0xff

    shl-int/lit8 v3, v3, 0x8

    or-int/2addr v2, v3

    add-int/lit8 v3, v0, 0x2

    aget-byte v3, v1, v3

    and-int/lit16 v3, v3, 0xff

    shl-int/lit8 v3, v3, 0x10

    or-int/2addr v2, v3

    add-int/lit8 v0, v0, 0x3

    aget-byte v0, v1, v0

    and-int/lit16 v0, v0, 0xff

    shl-int/lit8 v0, v0, 0x18

    or-int/2addr v0, v2

    return v0
.end method

.method public final M()J
    .registers 10

    iget v0, p0, Lz5/ck1;->g:I

    iget v1, p0, Lz5/ck1;->e:I

    sub-int/2addr v1, v0

    const/16 v2, 0x8

    if-ge v1, v2, :cond_e

    invoke-virtual {p0, v2}, Lz5/ck1;->D(I)V

    iget v0, p0, Lz5/ck1;->g:I

    :cond_e
    iget-object v1, p0, Lz5/ck1;->d:[B

    add-int/lit8 v3, v0, 0x8

    iput v3, p0, Lz5/ck1;->g:I

    aget-byte v3, v1, v0

    int-to-long v3, v3

    const-wide/16 v5, 0xff

    and-long/2addr v3, v5

    add-int/lit8 v7, v0, 0x1

    aget-byte v7, v1, v7

    int-to-long v7, v7

    and-long/2addr v7, v5

    shl-long/2addr v7, v2

    or-long v2, v3, v7

    add-int/lit8 v4, v0, 0x2

    aget-byte v4, v1, v4

    int-to-long v7, v4

    and-long/2addr v7, v5

    const/16 v4, 0x10

    shl-long/2addr v7, v4

    or-long/2addr v2, v7

    add-int/lit8 v4, v0, 0x3

    aget-byte v4, v1, v4

    int-to-long v7, v4

    and-long/2addr v7, v5

    const/16 v4, 0x18

    shl-long/2addr v7, v4

    or-long/2addr v2, v7

    add-int/lit8 v4, v0, 0x4

    aget-byte v4, v1, v4

    int-to-long v7, v4

    and-long/2addr v7, v5

    const/16 v4, 0x20

    shl-long/2addr v7, v4

    or-long/2addr v2, v7

    add-int/lit8 v4, v0, 0x5

    aget-byte v4, v1, v4

    int-to-long v7, v4

    and-long/2addr v7, v5

    const/16 v4, 0x28

    shl-long/2addr v7, v4

    or-long/2addr v2, v7

    add-int/lit8 v4, v0, 0x6

    aget-byte v4, v1, v4

    int-to-long v7, v4

    and-long/2addr v7, v5

    const/16 v4, 0x30

    shl-long/2addr v7, v4

    or-long/2addr v2, v7

    add-int/lit8 v0, v0, 0x7

    aget-byte v0, v1, v0

    int-to-long v0, v0

    and-long/2addr v0, v5

    const/16 v4, 0x38

    shl-long/2addr v0, v4

    or-long/2addr v0, v2

    return-wide v0
.end method

.method public final a(I)V
    .registers 2

    iput p1, p0, Lz5/ck1;->j:I

    invoke-virtual {p0}, Lz5/ck1;->C()V

    return-void
.end method

.method public final b()Z
    .registers 3

    iget v0, p0, Lz5/ck1;->g:I

    iget v1, p0, Lz5/ck1;->e:I

    if-ne v0, v1, :cond_e

    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lz5/ck1;->E(I)Z

    move-result v1

    if-nez v1, :cond_e

    return v0

    :cond_e
    const/4 v0, 0x0

    return v0
.end method

.method public final c()I
    .registers 3

    iget v0, p0, Lz5/ck1;->i:I

    iget v1, p0, Lz5/ck1;->g:I

    add-int/2addr v0, v1

    return v0
.end method

.method public final f()I
    .registers 3

    invoke-virtual {p0}, Lz5/ck1;->b()Z

    move-result v0

    if-eqz v0, :cond_a

    const/4 v0, 0x0

    iput v0, p0, Lz5/ck1;->h:I

    return v0

    :cond_a
    invoke-virtual {p0}, Lz5/ck1;->I()I

    move-result v0

    iput v0, p0, Lz5/ck1;->h:I

    ushr-int/lit8 v1, v0, 0x3

    if-eqz v1, :cond_15

    return v0

    :cond_15
    invoke-static {}, Lz5/il1;->f()Lz5/il1;

    move-result-object v0

    throw v0
.end method

.method public final g(I)V
    .registers 3

    iget v0, p0, Lz5/ck1;->h:I

    if-ne v0, p1, :cond_5

    return-void

    :cond_5
    invoke-static {}, Lz5/il1;->g()Lz5/il1;

    move-result-object p1

    throw p1
.end method

.method public final h(I)Z
    .registers 7

    and-int/lit8 v0, p1, 0x7

    const/4 v1, 0x0

    const/4 v2, 0x1

    if-eqz v0, :cond_42

    if-eq v0, v2, :cond_3c

    const/4 v3, 0x2

    if-eq v0, v3, :cond_34

    const/4 v3, 0x4

    const/4 v4, 0x3

    if-eq v0, v4, :cond_21

    if-eq v0, v3, :cond_20

    const/4 p1, 0x5

    if-ne v0, p1, :cond_18

    invoke-virtual {p0, v3}, Lz5/ck1;->B(I)V

    return v2

    :cond_18
    sget p1, Lz5/il1;->s:I

    .line 1
    new-instance p1, Lz5/hl1;

    invoke-direct {p1}, Lz5/hl1;-><init>()V

    .line 2
    throw p1

    :cond_20
    return v1

    :cond_21
    invoke-virtual {p0}, Lz5/ck1;->f()I

    move-result v0

    if-eqz v0, :cond_2d

    invoke-virtual {p0, v0}, Lz5/ck1;->h(I)Z

    move-result v0

    if-nez v0, :cond_21

    :cond_2d
    ushr-int/2addr p1, v4

    shl-int/2addr p1, v4

    or-int/2addr p1, v3

    invoke-virtual {p0, p1}, Lz5/ck1;->g(I)V

    return v2

    :cond_34
    invoke-virtual {p0}, Lz5/ck1;->I()I

    move-result p1

    invoke-virtual {p0, p1}, Lz5/ck1;->B(I)V

    return v2

    :cond_3c
    const/16 p1, 0x8

    invoke-virtual {p0, p1}, Lz5/ck1;->B(I)V

    return v2

    :cond_42
    iget p1, p0, Lz5/ck1;->e:I

    iget v0, p0, Lz5/ck1;->g:I

    sub-int/2addr p1, v0

    const/16 v0, 0xa

    if-lt p1, v0, :cond_62

    :goto_4b
    if-ge v1, v0, :cond_5d

    iget-object p1, p0, Lz5/ck1;->d:[B

    iget v3, p0, Lz5/ck1;->g:I

    add-int/lit8 v4, v3, 0x1

    iput v4, p0, Lz5/ck1;->g:I

    aget-byte p1, p1, v3

    if-ltz p1, :cond_5a

    goto :goto_6d

    :cond_5a
    add-int/lit8 v1, v1, 0x1

    goto :goto_4b

    :cond_5d
    invoke-static {}, Lz5/il1;->e()Lz5/il1;

    move-result-object p1

    throw p1

    :cond_62
    :goto_62
    if-ge v1, v0, :cond_6e

    invoke-virtual {p0}, Lz5/ck1;->A()B

    move-result p1

    if-gez p1, :cond_6d

    add-int/lit8 v1, v1, 0x1

    goto :goto_62

    :cond_6d
    :goto_6d
    return v2

    :cond_6e
    invoke-static {}, Lz5/il1;->e()Lz5/il1;

    move-result-object p1

    throw p1
.end method

.method public final i()D
    .registers 3

    invoke-virtual {p0}, Lz5/ck1;->M()J

    move-result-wide v0

    invoke-static {v0, v1}, Ljava/lang/Double;->longBitsToDouble(J)D

    move-result-wide v0

    return-wide v0
.end method

.method public final j()F
    .registers 2

    invoke-virtual {p0}, Lz5/ck1;->L()I

    move-result v0

    invoke-static {v0}, Ljava/lang/Float;->intBitsToFloat(I)F

    move-result v0

    return v0
.end method

.method public final k()J
    .registers 3

    invoke-virtual {p0}, Lz5/ck1;->J()J

    move-result-wide v0

    return-wide v0
.end method

.method public final l()J
    .registers 3

    invoke-virtual {p0}, Lz5/ck1;->J()J

    move-result-wide v0

    return-wide v0
.end method

.method public final m()I
    .registers 2

    invoke-virtual {p0}, Lz5/ck1;->I()I

    move-result v0

    return v0
.end method

.method public final n()J
    .registers 3

    invoke-virtual {p0}, Lz5/ck1;->M()J

    move-result-wide v0

    return-wide v0
.end method

.method public final o()I
    .registers 2

    invoke-virtual {p0}, Lz5/ck1;->L()I

    move-result v0

    return v0
.end method

.method public final p()Z
    .registers 5

    invoke-virtual {p0}, Lz5/ck1;->J()J

    move-result-wide v0

    const-wide/16 v2, 0x0

    cmp-long v0, v0, v2

    if-eqz v0, :cond_c

    const/4 v0, 0x1

    return v0

    :cond_c
    const/4 v0, 0x0

    return v0
.end method

.method public final q()Ljava/lang/String;
    .registers 6

    invoke-virtual {p0}, Lz5/ck1;->I()I

    move-result v0

    if-lez v0, :cond_1d

    iget v1, p0, Lz5/ck1;->e:I

    iget v2, p0, Lz5/ck1;->g:I

    sub-int/2addr v1, v2

    if-le v0, v1, :cond_e

    goto :goto_1d

    :cond_e
    new-instance v1, Ljava/lang/String;

    iget-object v3, p0, Lz5/ck1;->d:[B

    sget-object v4, Lz5/gl1;->a:Ljava/nio/charset/Charset;

    invoke-direct {v1, v3, v2, v0, v4}, Ljava/lang/String;-><init>([BIILjava/nio/charset/Charset;)V

    iget v2, p0, Lz5/ck1;->g:I

    add-int/2addr v2, v0

    iput v2, p0, Lz5/ck1;->g:I

    return-object v1

    :cond_1d
    :goto_1d
    if-nez v0, :cond_22

    const-string v0, ""

    return-object v0

    :cond_22
    iget v1, p0, Lz5/ck1;->e:I

    if-gt v0, v1, :cond_3a

    invoke-virtual {p0, v0}, Lz5/ck1;->D(I)V

    new-instance v1, Ljava/lang/String;

    iget-object v2, p0, Lz5/ck1;->d:[B

    iget v3, p0, Lz5/ck1;->g:I

    sget-object v4, Lz5/gl1;->a:Ljava/nio/charset/Charset;

    invoke-direct {v1, v2, v3, v0, v4}, Ljava/lang/String;-><init>([BIILjava/nio/charset/Charset;)V

    iget v2, p0, Lz5/ck1;->g:I

    add-int/2addr v2, v0

    iput v2, p0, Lz5/ck1;->g:I

    return-object v1

    :cond_3a
    new-instance v1, Ljava/lang/String;

    const/4 v2, 0x0

    invoke-virtual {p0, v0, v2}, Lz5/ck1;->F(IZ)[B

    move-result-object v0

    sget-object v2, Lz5/gl1;->a:Ljava/nio/charset/Charset;

    invoke-direct {v1, v0, v2}, Ljava/lang/String;-><init>([BLjava/nio/charset/Charset;)V

    return-object v1
.end method

.method public final r()Ljava/lang/String;
    .registers 6

    invoke-virtual {p0}, Lz5/ck1;->I()I

    move-result v0

    iget v1, p0, Lz5/ck1;->g:I

    iget v2, p0, Lz5/ck1;->e:I

    sub-int v3, v2, v1

    const/4 v4, 0x0

    if-gt v0, v3, :cond_16

    if-lez v0, :cond_16

    iget-object v2, p0, Lz5/ck1;->d:[B

    add-int v3, v1, v0

    iput v3, p0, Lz5/ck1;->g:I

    goto :goto_2a

    :cond_16
    if-nez v0, :cond_1b

    const-string v0, ""

    return-object v0

    :cond_1b
    if-gt v0, v2, :cond_25

    invoke-virtual {p0, v0}, Lz5/ck1;->D(I)V

    iget-object v2, p0, Lz5/ck1;->d:[B

    iput v0, p0, Lz5/ck1;->g:I

    goto :goto_29

    :cond_25
    invoke-virtual {p0, v0, v4}, Lz5/ck1;->F(IZ)[B

    move-result-object v2

    :goto_29
    move v1, v4

    :goto_2a
    invoke-static {v2, v1, v0}, Lz5/kn1;->e([BII)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public final s()Lz5/zj1;
    .registers 7

    invoke-virtual {p0}, Lz5/ck1;->I()I

    move-result v0

    iget v1, p0, Lz5/ck1;->e:I

    iget v2, p0, Lz5/ck1;->g:I

    sub-int/2addr v1, v2

    if-gt v0, v1, :cond_1a

    if-gtz v0, :cond_e

    goto :goto_1a

    :cond_e
    iget-object v1, p0, Lz5/ck1;->d:[B

    invoke-static {v1, v2, v0}, Lz5/zj1;->k0([BII)Lz5/zj1;

    move-result-object v1

    iget v2, p0, Lz5/ck1;->g:I

    add-int/2addr v2, v0

    iput v2, p0, Lz5/ck1;->g:I

    return-object v1

    :cond_1a
    :goto_1a
    if-eqz v0, :cond_64

    invoke-virtual {p0, v0}, Lz5/ck1;->G(I)[B

    move-result-object v1

    const/4 v2, 0x0

    if-eqz v1, :cond_29

    .line 1
    array-length v0, v1

    invoke-static {v1, v2, v0}, Lz5/zj1;->k0([BII)Lz5/zj1;

    move-result-object v0

    goto :goto_63

    .line 2
    :cond_29
    iget v1, p0, Lz5/ck1;->g:I

    iget v3, p0, Lz5/ck1;->e:I

    sub-int v4, v3, v1

    iget v5, p0, Lz5/ck1;->i:I

    add-int/2addr v5, v3

    iput v5, p0, Lz5/ck1;->i:I

    iput v2, p0, Lz5/ck1;->g:I

    iput v2, p0, Lz5/ck1;->e:I

    sub-int v3, v0, v4

    invoke-virtual {p0, v3}, Lz5/ck1;->H(I)Ljava/util/List;

    move-result-object v3

    new-array v0, v0, [B

    iget-object v5, p0, Lz5/ck1;->d:[B

    invoke-static {v5, v1, v0, v2, v4}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    check-cast v3, Ljava/util/ArrayList;

    invoke-virtual {v3}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_4b
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    if-eqz v3, :cond_5d

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, [B

    array-length v5, v3

    invoke-static {v3, v2, v0, v4, v5}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    add-int/2addr v4, v5

    goto :goto_4b

    .line 3
    :cond_5d
    new-instance v1, Lz5/xj1;

    invoke-direct {v1, v0}, Lz5/xj1;-><init>([B)V

    move-object v0, v1

    :goto_63
    return-object v0

    .line 4
    :cond_64
    sget-object v0, Lz5/zj1;->s:Lz5/zj1;

    return-object v0
.end method

.method public final t()I
    .registers 2

    invoke-virtual {p0}, Lz5/ck1;->I()I

    move-result v0

    return v0
.end method

.method public final u()I
    .registers 2

    invoke-virtual {p0}, Lz5/ck1;->I()I

    move-result v0

    return v0
.end method

.method public final v()I
    .registers 2

    invoke-virtual {p0}, Lz5/ck1;->L()I

    move-result v0

    return v0
.end method

.method public final w()J
    .registers 3

    invoke-virtual {p0}, Lz5/ck1;->M()J

    move-result-wide v0

    return-wide v0
.end method

.method public final x()I
    .registers 2

    invoke-virtual {p0}, Lz5/ck1;->I()I

    move-result v0

    invoke-static {v0}, Lz5/dk1;->d(I)I

    move-result v0

    return v0
.end method

.method public final y()J
    .registers 3

    invoke-virtual {p0}, Lz5/ck1;->J()J

    move-result-wide v0

    invoke-static {v0, v1}, Lz5/dk1;->e(J)J

    move-result-wide v0

    return-wide v0
.end method

.method public final z(I)I
    .registers 4

    if-ltz p1, :cond_17

    iget v0, p0, Lz5/ck1;->i:I

    iget v1, p0, Lz5/ck1;->g:I

    add-int/2addr v0, v1

    add-int/2addr v0, p1

    iget p1, p0, Lz5/ck1;->j:I

    if-gt v0, p1, :cond_12

    iput v0, p0, Lz5/ck1;->j:I

    invoke-virtual {p0}, Lz5/ck1;->C()V

    return p1

    :cond_12
    invoke-static {}, Lz5/il1;->b()Lz5/il1;

    move-result-object p1

    throw p1

    :cond_17
    invoke-static {}, Lz5/il1;->d()Lz5/il1;

    move-result-object p1

    throw p1
.end method
