a$c.smali

.class public final Lcom/jakewharton/disklrucache/a$c;
.super Ljava/lang/Object;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/jakewharton/disklrucache/a;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x11
    name = "c"
.end annotation

.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/jakewharton/disklrucache/a$c$a;
    }
.end annotation


# instance fields
.field public final a:Lcom/jakewharton/disklrucache/a$d;

.field public final b:[Z

.field public c:Z

.field public final synthetic d:Lcom/jakewharton/disklrucache/a;


# direct methods
.method public constructor <init>(Lcom/jakewharton/disklrucache/a;Lcom/jakewharton/disklrucache/a$d;)V
    .registers 3

    .line 1
    iput-object p1, p0, Lcom/jakewharton/disklrucache/a$c;->d:Lcom/jakewharton/disklrucache/a;

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

    .line 2
    iput-object p2, p0, Lcom/jakewharton/disklrucache/a$c;->a:Lcom/jakewharton/disklrucache/a$d;

    .line 3
    iget-boolean p2, p2, Lcom/jakewharton/disklrucache/a$d;->c:Z

    if-eqz p2, :cond_d

    const/4 p1, 0x0

    goto :goto_11

    .line 4
    :cond_d
    iget p1, p1, Lcom/jakewharton/disklrucache/a;->g:I

    .line 5
    new-array p1, p1, [Z

    :goto_11
    iput-object p1, p0, Lcom/jakewharton/disklrucache/a$c;->b:[Z

    return-void
.end method


# virtual methods
.method public final a()V
    .registers 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    iget-object v0, p0, Lcom/jakewharton/disklrucache/a$c;->d:Lcom/jakewharton/disklrucache/a;

    const/4 v1, 0x0

    invoke-static {v0, p0, v1}, Lcom/jakewharton/disklrucache/a;->h(Lcom/jakewharton/disklrucache/a;Lcom/jakewharton/disklrucache/a$c;Z)V

    return-void
.end method

.method public final b()V
    .registers 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 1
    iget-boolean v0, p0, Lcom/jakewharton/disklrucache/a$c;->c:Z

    if-eqz v0, :cond_14

    .line 2
    iget-object v0, p0, Lcom/jakewharton/disklrucache/a$c;->d:Lcom/jakewharton/disklrucache/a;

    const/4 v1, 0x0

    invoke-static {v0, p0, v1}, Lcom/jakewharton/disklrucache/a;->h(Lcom/jakewharton/disklrucache/a;Lcom/jakewharton/disklrucache/a$c;Z)V

    .line 3
    iget-object v0, p0, Lcom/jakewharton/disklrucache/a$c;->d:Lcom/jakewharton/disklrucache/a;

    iget-object v1, p0, Lcom/jakewharton/disklrucache/a$c;->a:Lcom/jakewharton/disklrucache/a$d;

    .line 4
    iget-object v1, v1, Lcom/jakewharton/disklrucache/a$d;->a:Ljava/lang/String;

    .line 5
    invoke-virtual {v0, v1}, Lcom/jakewharton/disklrucache/a;->K(Ljava/lang/String;)Z

    goto :goto_1a

    .line 6
    :cond_14
    iget-object v0, p0, Lcom/jakewharton/disklrucache/a$c;->d:Lcom/jakewharton/disklrucache/a;

    const/4 v1, 0x1

    invoke-static {v0, p0, v1}, Lcom/jakewharton/disklrucache/a;->h(Lcom/jakewharton/disklrucache/a;Lcom/jakewharton/disklrucache/a$c;Z)V

    :goto_1a
    return-void
.end method

.method public final c(I)Ljava/io/OutputStream;
    .registers 6
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 1
    iget-object v0, p0, Lcom/jakewharton/disklrucache/a$c;->d:Lcom/jakewharton/disklrucache/a;

    monitor-enter v0

    .line 2
    :try_start_3
    iget-object v1, p0, Lcom/jakewharton/disklrucache/a$c;->a:Lcom/jakewharton/disklrucache/a$d;

    .line 3
    iget-object v2, v1, Lcom/jakewharton/disklrucache/a$d;->d:Lcom/jakewharton/disklrucache/a$c;

    if-ne v2, p0, :cond_33

    .line 4
    iget-boolean v2, v1, Lcom/jakewharton/disklrucache/a$d;->c:Z

    if-nez v2, :cond_12

    .line 5
    iget-object v2, p0, Lcom/jakewharton/disklrucache/a$c;->b:[Z

    const/4 v3, 0x1

    aput-boolean v3, v2, p1

    .line 6
    :cond_12
    invoke-virtual {v1, p1}, Lcom/jakewharton/disklrucache/a$d;->b(I)Ljava/io/File;

    move-result-object p1
    :try_end_16
    .catchall {:try_start_3 .. :try_end_16} :catchall_39

    .line 7
    :try_start_16
    new-instance v1, Ljava/io/FileOutputStream;

    invoke-direct {v1, p1}, Ljava/io/FileOutputStream;-><init>(Ljava/io/File;)V
    :try_end_1b
    .catch Ljava/io/FileNotFoundException; {:try_start_16 .. :try_end_1b} :catch_1c
    .catchall {:try_start_16 .. :try_end_1b} :catchall_39

    goto :goto_28

    .line 8
    :catch_1c
    :try_start_1c
    iget-object v1, p0, Lcom/jakewharton/disklrucache/a$c;->d:Lcom/jakewharton/disklrucache/a;

    .line 9
    iget-object v1, v1, Lcom/jakewharton/disklrucache/a;->a:Ljava/io/File;

    .line 10
    invoke-virtual {v1}, Ljava/io/File;->mkdirs()Z
    :try_end_23
    .catchall {:try_start_1c .. :try_end_23} :catchall_39

    .line 11
    :try_start_23
    new-instance v1, Ljava/io/FileOutputStream;

    invoke-direct {v1, p1}, Ljava/io/FileOutputStream;-><init>(Ljava/io/File;)V
    :try_end_28
    .catch Ljava/io/FileNotFoundException; {:try_start_23 .. :try_end_28} :catch_2f
    .catchall {:try_start_23 .. :try_end_28} :catchall_39

    .line 12
    :goto_28
    :try_start_28
    new-instance p1, Lcom/jakewharton/disklrucache/a$c$a;

    invoke-direct {p1, p0, v1}, Lcom/jakewharton/disklrucache/a$c$a;-><init>(Lcom/jakewharton/disklrucache/a$c;Ljava/io/OutputStream;)V

    monitor-exit v0

    return-object p1

    .line 13
    :catch_2f
    sget-object p1, Lcom/jakewharton/disklrucache/a;->p:Lcom/jakewharton/disklrucache/a$b;

    .line 14
    monitor-exit v0

    return-object p1

    .line 15
    :cond_33
    new-instance p1, Ljava/lang/IllegalStateException;

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

    throw p1

    :catchall_39
    move-exception p1

    .line 16
    monitor-exit v0
    :try_end_3b
    .catchall {:try_start_28 .. :try_end_3b} :catchall_39

    throw p1
.end method