.class final Lb/a/c/ar;
.super Ljava/lang/Object;


# instance fields
.field private final a:Lc/k;

.field private b:I

.field private final c:Lc/e;


# direct methods
.method public constructor <init>(Lc/e;)V
    .locals 3

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    new-instance v0, Lc/k;

    new-instance v1, Lb/a/c/as;

    invoke-direct {v1, p0, p1}, Lb/a/c/as;-><init>(Lb/a/c/ar;Lc/n;)V

    new-instance v2, Lb/a/c/at;

    invoke-direct {v2, p0}, Lb/a/c/at;-><init>(Lb/a/c/ar;)V

    invoke-direct {v0, v1, v2}, Lc/k;-><init>(Lc/n;Ljava/util/zip/Inflater;)V

    iput-object v0, p0, Lb/a/c/ar;->a:Lc/k;

    iget-object v0, p0, Lb/a/c/ar;->a:Lc/k;

    invoke-static {v0}, Lc/l;->a(Lc/n;)Lc/e;

    move-result-object v0

    iput-object v0, p0, Lb/a/c/ar;->c:Lc/e;

    return-void
.end method

.method static synthetic a(Lb/a/c/ar;)I
    .locals 1

    iget v0, p0, Lb/a/c/ar;->b:I

    return v0
.end method

.method static synthetic a(Lb/a/c/ar;I)I
    .locals 0

    iput p1, p0, Lb/a/c/ar;->b:I

    return p1
.end method

.method private b()Lc/f;
    .locals 4

    iget-object v0, p0, Lb/a/c/ar;->c:Lc/e;

    invoke-interface {v0}, Lc/e;->m()I

    move-result v0

    iget-object v1, p0, Lb/a/c/ar;->c:Lc/e;

    int-to-long v2, v0

    invoke-interface {v1, v2, v3}, Lc/e;->d(J)Lc/f;

    move-result-object v0

    return-object v0
.end method


# virtual methods
.method public final a(I)Ljava/util/List;
    .locals 6

    iget v0, p0, Lb/a/c/ar;->b:I

    add-int/2addr v0, p1

    iput v0, p0, Lb/a/c/ar;->b:I

    iget-object v0, p0, Lb/a/c/ar;->c:Lc/e;

    invoke-interface {v0}, Lc/e;->m()I

    move-result v1

    if-gez v1, :cond_0

    new-instance v0, Ljava/io/IOException;

    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "numberOfPairs < 0: "

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

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

    move-result-object v1

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

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_0
    const/16 v0, 0x400

    if-le v1, v0, :cond_1

    new-instance v0, Ljava/io/IOException;

    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "numberOfPairs > 1024: "

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

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

    move-result-object v1

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

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_1
    new-instance v2, Ljava/util/ArrayList;

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

    const/4 v0, 0x0

    :goto_0
    if-ge v0, v1, :cond_3

    invoke-direct {p0}, Lb/a/c/ar;->b()Lc/f;

    move-result-object v3

    invoke-virtual {v3}, Lc/f;->d()Lc/f;

    move-result-object v3

    invoke-direct {p0}, Lb/a/c/ar;->b()Lc/f;

    move-result-object v4

    invoke-virtual {v3}, Lc/f;->c()I

    move-result v5

    if-nez v5, :cond_2

    new-instance v0, Ljava/io/IOException;

    const-string v1, "name.size == 0"

    invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_2
    new-instance v5, Lb/a/c/m;

    invoke-direct {v5, v3, v4}, Lb/a/c/m;-><init>(Lc/f;Lc/f;)V

    invoke-interface {v2, v5}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_3
    iget v0, p0, Lb/a/c/ar;->b:I

    if-lez v0, :cond_4

    iget-object v0, p0, Lb/a/c/ar;->a:Lc/k;

    invoke-virtual {v0}, Lc/k;->b()Z

    iget v0, p0, Lb/a/c/ar;->b:I

    if-eqz v0, :cond_4

    new-instance v0, Ljava/io/IOException;

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "compressedLimit > 0: "

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

    iget v2, p0, Lb/a/c/ar;->b:I

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

    move-result-object v1

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

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_4
    return-object v2
.end method

.method public final a()V
    .locals 1

    iget-object v0, p0, Lb/a/c/ar;->c:Lc/e;

    invoke-interface {v0}, Lc/e;->close()V

    return-void
.end method
