.class public final Lz5/p70;
.super Lz5/a3;
.source ""


# instance fields
.field public final A:Z

.field public B:Ljava/io/InputStream;

.field public C:Z

.field public D:Landroid/net/Uri;

.field public volatile E:Lz5/bg;

.field public F:Z

.field public G:Z

.field public H:Z

.field public I:Z

.field public J:J

.field public K:Lz5/fc1;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lz5/fc1<",
            "Ljava/lang/Long;",
            ">;"
        }
    .end annotation
.end field

.field public final L:Ljava/util/concurrent/atomic/AtomicLong;

.field public final v:Landroid/content/Context;

.field public final w:Lz5/y4;

.field public final x:Lz5/ge0;

.field public final y:Ljava/lang/String;

.field public final z:I


# direct methods
.method public constructor <init>(Landroid/content/Context;Lz5/y4;Ljava/lang/String;ILz5/rf;Lz5/ge0;)V
    .registers 8

    const/4 v0, 0x0

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

    iput-object p1, p0, Lz5/p70;->v:Landroid/content/Context;

    iput-object p2, p0, Lz5/p70;->w:Lz5/y4;

    iput-object p6, p0, Lz5/p70;->x:Lz5/ge0;

    iput-object p3, p0, Lz5/p70;->y:Ljava/lang/String;

    iput p4, p0, Lz5/p70;->z:I

    iput-boolean v0, p0, Lz5/p70;->F:Z

    iput-boolean v0, p0, Lz5/p70;->G:Z

    iput-boolean v0, p0, Lz5/p70;->H:Z

    iput-boolean v0, p0, Lz5/p70;->I:Z

    const-wide/16 p1, 0x0

    iput-wide p1, p0, Lz5/p70;->J:J

    new-instance p1, Ljava/util/concurrent/atomic/AtomicLong;

    const-wide/16 p2, -0x1

    invoke-direct {p1, p2, p3}, Ljava/util/concurrent/atomic/AtomicLong;-><init>(J)V

    iput-object p1, p0, Lz5/p70;->L:Ljava/util/concurrent/atomic/AtomicLong;

    const/4 p1, 0x0

    iput-object p1, p0, Lz5/p70;->K:Lz5/fc1;

    sget-object p1, Lz5/so;->f1:Lz5/no;

    .line 1
    sget-object p2, Lz5/xk;->d:Lz5/xk;

    iget-object p2, p2, Lz5/xk;->c:Lcom/google/android/gms/internal/ads/g0;

    .line 2
    invoke-virtual {p2, p1}, Lcom/google/android/gms/internal/ads/g0;->a(Lz5/no;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Ljava/lang/Boolean;

    invoke-virtual {p1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result p1

    iput-boolean p1, p0, Lz5/p70;->A:Z

    invoke-virtual {p0, p5}, Lz5/a3;->g(Lz5/rf;)V

    return-void
.end method


# virtual methods
.method public final a([BII)I
    .registers 5

    iget-boolean v0, p0, Lz5/p70;->C:Z

    if-eqz v0, :cond_1f

    iget-object v0, p0, Lz5/p70;->B:Ljava/io/InputStream;

    if-eqz v0, :cond_d

    invoke-virtual {v0, p1, p2, p3}, Ljava/io/InputStream;->read([BII)I

    move-result p1

    goto :goto_13

    :cond_d
    iget-object v0, p0, Lz5/p70;->w:Lz5/y4;

    invoke-interface {v0, p1, p2, p3}, Lz5/q3;->a([BII)I

    move-result p1

    :goto_13
    iget-boolean p2, p0, Lz5/p70;->A:Z

    if-eqz p2, :cond_1b

    iget-object p2, p0, Lz5/p70;->B:Ljava/io/InputStream;

    if-eqz p2, :cond_1e

    :cond_1b
    invoke-virtual {p0, p1}, Lz5/a3;->m(I)V

    :cond_1e
    return p1

    :cond_1f
    new-instance p1, Ljava/io/IOException;

    const-string p2, "Attempt to read closed GcacheDataSource."

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

    throw p1
.end method

.method public final h(Lz5/a8;)J
    .registers 16

    const-string v0, "ms"

    const-string v1, "Cache connection took "

    iget-boolean v2, p0, Lz5/p70;->C:Z

    if-nez v2, :cond_1e5

    const/4 v2, 0x1

    iput-boolean v2, p0, Lz5/p70;->C:Z

    iget-object v3, p1, Lz5/a8;->a:Landroid/net/Uri;

    iput-object v3, p0, Lz5/p70;->D:Landroid/net/Uri;

    iget-boolean v3, p0, Lz5/p70;->A:Z

    if-nez v3, :cond_16

    invoke-virtual {p0, p1}, Lz5/a3;->i(Lz5/a8;)V

    :cond_16
    iget-object v3, p1, Lz5/a8;->a:Landroid/net/Uri;

    invoke-static {v3}, Lz5/bg;->c(Landroid/net/Uri;)Lz5/bg;

    move-result-object v3

    iput-object v3, p0, Lz5/p70;->E:Lz5/bg;

    sget-object v3, Lz5/so;->s2:Lz5/no;

    .line 1
    sget-object v4, Lz5/xk;->d:Lz5/xk;

    iget-object v5, v4, Lz5/xk;->c:Lcom/google/android/gms/internal/ads/g0;

    .line 2
    invoke-virtual {v5, v3}, Lcom/google/android/gms/internal/ads/g0;->a(Lz5/no;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/lang/Boolean;

    invoke-virtual {v3}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v3

    const-wide/16 v5, -0x1

    const/4 v7, 0x0

    if-eqz v3, :cond_165

    iget-object v3, p0, Lz5/p70;->E:Lz5/bg;

    if-eqz v3, :cond_1c1

    iget-object v3, p0, Lz5/p70;->E:Lz5/bg;

    iget-wide v8, p1, Lz5/a8;->d:J

    iput-wide v8, v3, Lz5/bg;->y:J

    iget-object v3, p0, Lz5/p70;->E:Lz5/bg;

    iget-object v8, p0, Lz5/p70;->y:Ljava/lang/String;

    invoke-static {v8}, Lcom/google/android/gms/internal/ads/d;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    iput-object v8, v3, Lz5/bg;->z:Ljava/lang/String;

    iget-object v3, p0, Lz5/p70;->E:Lz5/bg;

    iget v8, p0, Lz5/p70;->z:I

    iput v8, v3, Lz5/bg;->A:I

    iget-object v3, p0, Lz5/p70;->E:Lz5/bg;

    iget-boolean v3, v3, Lz5/bg;->x:Z

    if-eqz v3, :cond_56

    sget-object v3, Lz5/so;->u2:Lz5/no;

    goto :goto_58

    :cond_56
    sget-object v3, Lz5/so;->t2:Lz5/no;

    .line 3
    :goto_58
    iget-object v4, v4, Lz5/xk;->c:Lcom/google/android/gms/internal/ads/g0;

    .line 4
    invoke-virtual {v4, v3}, Lcom/google/android/gms/internal/ads/g0;->a(Lz5/no;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/lang/Long;

    invoke-virtual {v3}, Ljava/lang/Long;->longValue()J

    move-result-wide v3

    invoke-static {}, Lcom/google/android/gms/ads/internal/zzt;->zzj()Lu5/c;

    move-result-object v8

    invoke-interface {v8}, Lu5/c;->c()J

    move-result-wide v8

    invoke-static {}, Lcom/google/android/gms/ads/internal/zzt;->zzw()Lz5/jg;

    iget-object v10, p0, Lz5/p70;->v:Landroid/content/Context;

    iget-object v11, p0, Lz5/p70;->E:Lz5/bg;

    invoke-static {v10, v11}, Lz5/jg;->a(Landroid/content/Context;Lz5/bg;)Ljava/util/concurrent/Future;

    move-result-object v10

    const/16 v11, 0x2c

    :try_start_79
    sget-object v12, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;

    invoke-interface {v10, v3, v4, v12}, Ljava/util/concurrent/Future;->get(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lz5/kg;
    :try_end_81
    .catch Ljava/util/concurrent/ExecutionException; {:try_start_79 .. :try_end_81} :catch_110
    .catch Ljava/util/concurrent/TimeoutException; {:try_start_79 .. :try_end_81} :catch_110
    .catch Ljava/lang/InterruptedException; {:try_start_79 .. :try_end_81} :catch_ed
    .catchall {:try_start_79 .. :try_end_81} :catchall_ea

    .line 5
    :try_start_81
    iget-boolean v4, v3, Lz5/kg;->b:Z

    .line 6
    iput-boolean v4, p0, Lz5/p70;->F:Z

    .line 7
    iget-boolean v4, v3, Lz5/kg;->c:Z

    .line 8
    iput-boolean v4, p0, Lz5/p70;->H:Z

    .line 9
    iget-boolean v4, v3, Lz5/kg;->e:Z

    .line 10
    iput-boolean v4, p0, Lz5/p70;->I:Z

    .line 11
    iget-wide v12, v3, Lz5/kg;->d:J

    .line 12
    iput-wide v12, p0, Lz5/p70;->J:J

    invoke-virtual {p0}, Lz5/p70;->o()Z

    move-result v4

    if-nez v4, :cond_c8

    .line 13
    iget-object v3, v3, Lz5/kg;->a:Ljava/io/InputStream;

    .line 14
    iput-object v3, p0, Lz5/p70;->B:Ljava/io/InputStream;

    iget-boolean v3, p0, Lz5/p70;->A:Z

    if-eqz v3, :cond_a2

    invoke-virtual {p0, p1}, Lz5/a3;->i(Lz5/a8;)V
    :try_end_a2
    .catch Ljava/util/concurrent/ExecutionException; {:try_start_81 .. :try_end_a2} :catch_e8
    .catch Ljava/util/concurrent/TimeoutException; {:try_start_81 .. :try_end_a2} :catch_e8
    .catch Ljava/lang/InterruptedException; {:try_start_81 .. :try_end_a2} :catch_e6
    .catchall {:try_start_81 .. :try_end_a2} :catchall_e4

    :cond_a2
    invoke-static {}, Lcom/google/android/gms/ads/internal/zzt;->zzj()Lu5/c;

    move-result-object p1

    invoke-interface {p1}, Lu5/c;->c()J

    move-result-wide v3

    sub-long/2addr v3, v8

    iget-object p1, p0, Lz5/p70;->x:Lz5/ge0;

    invoke-virtual {p1, v2, v3, v4}, Lz5/ge0;->k(ZJ)V

    iput-boolean v2, p0, Lz5/p70;->G:Z

    new-instance p1, Ljava/lang/StringBuilder;

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

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

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

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

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

    move-result-object p1

    invoke-static {p1}, Lcom/google/android/gms/ads/internal/util/zze;->zza(Ljava/lang/String;)V

    return-wide v5

    :cond_c8
    invoke-static {}, Lcom/google/android/gms/ads/internal/zzt;->zzj()Lu5/c;

    move-result-object v3

    invoke-interface {v3}, Lu5/c;->c()J

    move-result-wide v3

    sub-long/2addr v3, v8

    iget-object v5, p0, Lz5/p70;->x:Lz5/ge0;

    invoke-virtual {v5, v2, v3, v4}, Lz5/ge0;->k(ZJ)V

    iput-boolean v2, p0, Lz5/p70;->G:Z

    new-instance v2, Ljava/lang/StringBuilder;

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

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

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

    goto :goto_131

    :catchall_e4
    move-exception p1

    goto :goto_13f

    :catch_e6
    move v3, v2

    goto :goto_ee

    :catch_e8
    move v3, v2

    goto :goto_111

    :catchall_ea
    move-exception p1

    move v2, v7

    goto :goto_13f

    :catch_ed
    move v3, v7

    :goto_ee
    :try_start_ee
    check-cast v10, Lz5/eg;

    invoke-virtual {v10, v2}, Lz5/eg;->cancel(Z)Z

    invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/Thread;->interrupt()V
    :try_end_fa
    .catchall {:try_start_ee .. :try_end_fa} :catchall_13d

    invoke-static {}, Lcom/google/android/gms/ads/internal/zzt;->zzj()Lu5/c;

    move-result-object v2

    invoke-interface {v2}, Lu5/c;->c()J

    move-result-wide v4

    sub-long/2addr v4, v8

    iget-object v2, p0, Lz5/p70;->x:Lz5/ge0;

    invoke-virtual {v2, v3, v4, v5}, Lz5/ge0;->k(ZJ)V

    iput-boolean v3, p0, Lz5/p70;->G:Z

    new-instance v2, Ljava/lang/StringBuilder;

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

    goto :goto_12b

    :catch_110
    move v3, v7

    :goto_111
    :try_start_111
    check-cast v10, Lz5/eg;

    invoke-virtual {v10, v2}, Lz5/eg;->cancel(Z)Z
    :try_end_116
    .catchall {:try_start_111 .. :try_end_116} :catchall_13d

    invoke-static {}, Lcom/google/android/gms/ads/internal/zzt;->zzj()Lu5/c;

    move-result-object v2

    invoke-interface {v2}, Lu5/c;->c()J

    move-result-wide v4

    sub-long/2addr v4, v8

    iget-object v2, p0, Lz5/p70;->x:Lz5/ge0;

    invoke-virtual {v2, v3, v4, v5}, Lz5/ge0;->k(ZJ)V

    iput-boolean v3, p0, Lz5/p70;->G:Z

    new-instance v2, Ljava/lang/StringBuilder;

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

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

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

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

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

    move-result-object v0

    invoke-static {v0}, Lcom/google/android/gms/ads/internal/util/zze;->zza(Ljava/lang/String;)V

    goto/16 :goto_1c1

    :catchall_13d
    move-exception p1

    move v2, v3

    :goto_13f
    invoke-static {}, Lcom/google/android/gms/ads/internal/zzt;->zzj()Lu5/c;

    move-result-object v3

    invoke-interface {v3}, Lu5/c;->c()J

    move-result-wide v3

    sub-long/2addr v3, v8

    iget-object v5, p0, Lz5/p70;->x:Lz5/ge0;

    invoke-virtual {v5, v2, v3, v4}, Lz5/ge0;->k(ZJ)V

    iput-boolean v2, p0, Lz5/p70;->G:Z

    new-instance v2, Ljava/lang/StringBuilder;

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

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

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

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

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

    move-result-object v0

    invoke-static {v0}, Lcom/google/android/gms/ads/internal/util/zze;->zza(Ljava/lang/String;)V

    throw p1

    :cond_165
    iget-object v0, p0, Lz5/p70;->E:Lz5/bg;

    if-eqz v0, :cond_18a

    iget-object v0, p0, Lz5/p70;->E:Lz5/bg;

    iget-wide v3, p1, Lz5/a8;->d:J

    iput-wide v3, v0, Lz5/bg;->y:J

    iget-object v0, p0, Lz5/p70;->E:Lz5/bg;

    iget-object v1, p0, Lz5/p70;->y:Ljava/lang/String;

    invoke-static {v1}, Lcom/google/android/gms/internal/ads/d;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lz5/bg;->z:Ljava/lang/String;

    iget-object v0, p0, Lz5/p70;->E:Lz5/bg;

    iget v1, p0, Lz5/p70;->z:I

    iput v1, v0, Lz5/bg;->A:I

    invoke-static {}, Lcom/google/android/gms/ads/internal/zzt;->zzi()Lcom/google/android/gms/internal/ads/t;

    move-result-object v0

    iget-object v1, p0, Lz5/p70;->E:Lz5/bg;

    invoke-virtual {v0, v1}, Lcom/google/android/gms/internal/ads/t;->b(Lz5/bg;)Lcom/google/android/gms/internal/ads/u;

    move-result-object v0

    goto :goto_18b

    :cond_18a
    const/4 v0, 0x0

    :goto_18b
    if-eqz v0, :cond_1c1

    invoke-virtual {v0}, Lcom/google/android/gms/internal/ads/u;->zza()Z

    move-result v1

    if-eqz v1, :cond_1c1

    invoke-virtual {v0}, Lcom/google/android/gms/internal/ads/u;->h()Z

    move-result v1

    iput-boolean v1, p0, Lz5/p70;->F:Z

    invoke-virtual {v0}, Lcom/google/android/gms/internal/ads/u;->l()Z

    move-result v1

    iput-boolean v1, p0, Lz5/p70;->H:Z

    invoke-virtual {v0}, Lcom/google/android/gms/internal/ads/u;->i()Z

    move-result v1

    iput-boolean v1, p0, Lz5/p70;->I:Z

    invoke-virtual {v0}, Lcom/google/android/gms/internal/ads/u;->j()J

    move-result-wide v3

    iput-wide v3, p0, Lz5/p70;->J:J

    iput-boolean v2, p0, Lz5/p70;->G:Z

    invoke-virtual {p0}, Lz5/p70;->o()Z

    move-result v1

    if-nez v1, :cond_1c1

    invoke-virtual {v0}, Lcom/google/android/gms/internal/ads/u;->c()Ljava/io/InputStream;

    move-result-object v0

    iput-object v0, p0, Lz5/p70;->B:Ljava/io/InputStream;

    iget-boolean v0, p0, Lz5/p70;->A:Z

    if-eqz v0, :cond_1c0

    invoke-virtual {p0, p1}, Lz5/a3;->i(Lz5/a8;)V

    :cond_1c0
    return-wide v5

    :cond_1c1
    :goto_1c1
    iput-boolean v7, p0, Lz5/p70;->G:Z

    iget-object v0, p0, Lz5/p70;->E:Lz5/bg;

    if-eqz v0, :cond_1de

    new-instance v0, Lz5/a8;

    iget-object v1, p0, Lz5/p70;->E:Lz5/bg;

    iget-object v1, v1, Lz5/bg;->r:Ljava/lang/String;

    invoke-static {v1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v2

    iget-wide v3, p1, Lz5/a8;->c:J

    iget-wide v5, p1, Lz5/a8;->d:J

    iget-wide v7, p1, Lz5/a8;->e:J

    iget v9, p1, Lz5/a8;->f:I

    move-object v1, v0

    invoke-direct/range {v1 .. v9}, Lz5/a8;-><init>(Landroid/net/Uri;JJJI)V

    move-object p1, v0

    :cond_1de
    iget-object v0, p0, Lz5/p70;->w:Lz5/y4;

    invoke-interface {v0, p1}, Lz5/y4;->h(Lz5/a8;)J

    move-result-wide v0

    return-wide v0

    :cond_1e5
    new-instance p1, Ljava/io/IOException;

    const-string v0, "Attempt to open an already open GcacheDataSource."

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

    throw p1
.end method

.method public final o()Z
    .registers 5

    iget-boolean v0, p0, Lz5/p70;->A:Z

    const/4 v1, 0x0

    if-nez v0, :cond_6

    return v1

    :cond_6
    sget-object v0, Lz5/so;->v2:Lz5/no;

    .line 1
    sget-object v2, Lz5/xk;->d:Lz5/xk;

    iget-object v3, v2, Lz5/xk;->c:Lcom/google/android/gms/internal/ads/g0;

    .line 2
    invoke-virtual {v3, v0}, Lcom/google/android/gms/internal/ads/g0;->a(Lz5/no;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    const/4 v3, 0x1

    if-eqz v0, :cond_1f

    iget-boolean v0, p0, Lz5/p70;->H:Z

    if-eqz v0, :cond_1e

    goto :goto_1f

    :cond_1e
    return v3

    :cond_1f
    :goto_1f
    sget-object v0, Lz5/so;->w2:Lz5/no;

    .line 3
    iget-object v2, v2, Lz5/xk;->c:Lcom/google/android/gms/internal/ads/g0;

    .line 4
    invoke-virtual {v2, v0}, Lcom/google/android/gms/internal/ads/g0;->a(Lz5/no;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_34

    iget-boolean v0, p0, Lz5/p70;->I:Z

    if-nez v0, :cond_34

    return v3

    :cond_34
    return v1
.end method

.method public final zzi()Landroid/net/Uri;
    .registers 2

    iget-object v0, p0, Lz5/p70;->D:Landroid/net/Uri;

    return-object v0
.end method

.method public final zzj()V
    .registers 5

    iget-boolean v0, p0, Lz5/p70;->C:Z

    if-eqz v0, :cond_29

    const/4 v0, 0x0

    iput-boolean v0, p0, Lz5/p70;->C:Z

    const/4 v1, 0x0

    iput-object v1, p0, Lz5/p70;->D:Landroid/net/Uri;

    iget-boolean v2, p0, Lz5/p70;->A:Z

    const/4 v3, 0x1

    if-eqz v2, :cond_13

    iget-object v2, p0, Lz5/p70;->B:Ljava/io/InputStream;

    if-eqz v2, :cond_14

    :cond_13
    move v0, v3

    :cond_14
    iget-object v2, p0, Lz5/p70;->B:Ljava/io/InputStream;

    if-eqz v2, :cond_1e

    .line 1
    :try_start_18
    invoke-interface {v2}, Ljava/io/Closeable;->close()V
    :try_end_1b
    .catch Ljava/io/IOException; {:try_start_18 .. :try_end_1b} :catch_1b

    .line 2
    :catch_1b
    iput-object v1, p0, Lz5/p70;->B:Ljava/io/InputStream;

    goto :goto_23

    :cond_1e
    iget-object v1, p0, Lz5/p70;->w:Lz5/y4;

    invoke-interface {v1}, Lz5/y4;->zzj()V

    :goto_23
    if-eqz v0, :cond_28

    invoke-virtual {p0}, Lz5/a3;->n()V

    :cond_28
    return-void

    :cond_29
    new-instance v0, Ljava/io/IOException;

    const-string v1, "Attempt to close an already closed GcacheDataSource."

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

    throw v0
.end method
