.class public final Lz5/m70;
.super Lcom/google/android/gms/internal/ads/e2;
.source ""

# interfaces
.implements Lz5/z50;


# annotations
.annotation build Landroid/annotation/TargetApi;
    value = 0x10
.end annotation


# instance fields
.field public A:J

.field public u:Lz5/a60;

.field public v:Ljava/lang/String;

.field public w:Z

.field public x:Z

.field public y:Lz5/a70;

.field public z:J


# direct methods
.method public constructor <init>(Lz5/h60;Lz5/g60;)V
    .registers 5

    invoke-direct {p0, p1}, Lcom/google/android/gms/internal/ads/e2;-><init>(Lz5/h60;)V

    invoke-interface {p1}, Lz5/h60;->getContext()Landroid/content/Context;

    move-result-object p1

    iget-boolean v0, p2, Lz5/g60;->l:Z

    if-eqz v0, :cond_19

    new-instance v0, Lcom/google/android/gms/internal/ads/f2;

    iget-object v1, p0, Lcom/google/android/gms/internal/ads/e2;->t:Ljava/lang/ref/WeakReference;

    invoke-virtual {v1}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lz5/h60;

    invoke-direct {v0, p1, p2, v1}, Lcom/google/android/gms/internal/ads/f2;-><init>(Landroid/content/Context;Lz5/g60;Lz5/h60;)V

    goto :goto_26

    :cond_19
    new-instance v0, Lcom/google/android/gms/internal/ads/d2;

    iget-object v1, p0, Lcom/google/android/gms/internal/ads/e2;->t:Ljava/lang/ref/WeakReference;

    invoke-virtual {v1}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lz5/h60;

    invoke-direct {v0, p1, p2, v1}, Lcom/google/android/gms/internal/ads/d2;-><init>(Landroid/content/Context;Lz5/g60;Lz5/h60;)V

    :goto_26
    iput-object v0, p0, Lz5/m70;->u:Lz5/a60;

    invoke-virtual {v0, p0}, Lz5/a60;->L(Lz5/z50;)V

    return-void
.end method

.method public static final t(Ljava/lang/String;)Ljava/lang/String;
    .registers 3

    invoke-static {p0}, Lz5/z40;->b(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p0

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

    move-result-object p0

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

    move-result v0

    const-string v1, "cache:"

    if-eqz v0, :cond_15

    invoke-virtual {v1, p0}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p0

    goto :goto_1a

    :cond_15
    new-instance p0, Ljava/lang/String;

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

    :goto_1a
    return-object p0
.end method

.method public static u(Ljava/lang/String;Ljava/lang/Exception;)Ljava/lang/String;
    .registers 7

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

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Class;->getCanonicalName()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object p1

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

    move-result-object v1

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

    move-result v1

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

    move-result-object v2

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

    move-result v2

    new-instance v3, Ljava/lang/StringBuilder;

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

    move-result v4

    add-int/lit8 v4, v4, 0x2

    add-int/2addr v4, v1

    add-int/2addr v4, v2

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

    const-string v1, "/"

    const-string v2, ":"

    invoke-static {v3, p0, v1, v0, v2}, Lb1/f;->a(Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

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

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

    move-result-object p0

    return-object p0
.end method


# virtual methods
.method public final a()V
    .registers 3

    iget-object v0, p0, Lz5/m70;->u:Lz5/a60;

    if-eqz v0, :cond_d

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lz5/a60;->L(Lz5/z50;)V

    iget-object v0, p0, Lz5/m70;->u:Lz5/a60;

    invoke-virtual {v0}, Lz5/a60;->M()V

    :cond_d
    return-void
.end method

.method public final b(Ljava/lang/String;Ljava/lang/Exception;)V
    .registers 4

    const-string p1, "Precache exception"

    invoke-static {p1, p2}, Lz5/d50;->zzj(Ljava/lang/String;Ljava/lang/Throwable;)V

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

    move-result-object p1

    const-string v0, "VideoStreamExoPlayerCache.onException"

    invoke-virtual {p1, p2, v0}, Lcom/google/android/gms/internal/ads/u1;->e(Ljava/lang/Throwable;Ljava/lang/String;)V

    return-void
.end method

.method public final c(II)V
    .registers 3

    return-void
.end method

.method public final d(Ljava/lang/String;Ljava/lang/Exception;)V
    .registers 4

    const-string p1, "Precache error"

    invoke-static {p1, p2}, Lz5/d50;->zzj(Ljava/lang/String;Ljava/lang/Throwable;)V

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

    move-result-object p1

    const-string v0, "VideoStreamExoPlayerCache.onError"

    invoke-virtual {p1, p2, v0}, Lcom/google/android/gms/internal/ads/u1;->e(Ljava/lang/Throwable;Ljava/lang/String;)V

    return-void
.end method

.method public final e(ZJ)V
    .registers 7

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/e2;->t:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lz5/h60;

    if-eqz v0, :cond_16

    sget-object v1, Lz5/k50;->e:Lz5/gc1;

    new-instance v2, Lz5/m60;

    invoke-direct {v2, v0, p1, p2, p3}, Lz5/m60;-><init>(Lz5/h60;ZJ)V

    check-cast v1, Lz5/j50;

    invoke-virtual {v1, v2}, Lz5/j50;->execute(Ljava/lang/Runnable;)V

    :cond_16
    return-void
.end method

.method public final f(Ljava/lang/String;)Z
    .registers 4

    const/4 v0, 0x1

    new-array v0, v0, [Ljava/lang/String;

    const/4 v1, 0x0

    aput-object p1, v0, v1

    invoke-virtual {p0, p1, v0}, Lz5/m70;->g(Ljava/lang/String;[Ljava/lang/String;)Z

    move-result p1

    return p1
.end method

.method public final g(Ljava/lang/String;[Ljava/lang/String;)Z
    .registers 48

    move-object/from16 v15, p0

    move-object/from16 v13, p1

    move-object/from16 v0, p2

    iput-object v13, v15, Lz5/m70;->v:Ljava/lang/String;

    invoke-static/range {p1 .. p1}, Lz5/m70;->t(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v14

    const-string v17, "error"

    const/16 v18, 0x0

    :try_start_10
    array-length v1, v0

    new-array v1, v1, [Landroid/net/Uri;

    move/from16 v2, v18

    :goto_15
    array-length v3, v0

    if-ge v2, v3, :cond_23

    aget-object v3, v0, v2

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

    move-result-object v3

    aput-object v3, v1, v2

    add-int/lit8 v2, v2, 0x1

    goto :goto_15

    :cond_23
    iget-object v0, v15, Lz5/m70;->u:Lz5/a60;

    iget-object v2, v15, Lcom/google/android/gms/internal/ads/e2;->s:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Lz5/a60;->J([Landroid/net/Uri;Ljava/lang/String;)V

    iget-object v0, v15, Lcom/google/android/gms/internal/ads/e2;->t:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lz5/h60;

    if-eqz v0, :cond_37

    invoke-interface {v0, v14, v15}, Lz5/h60;->E(Ljava/lang/String;Lcom/google/android/gms/internal/ads/e2;)V

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

    move-result-object v0

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

    move-result-wide v19

    sget-object v1, Lz5/so;->q: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, v1}, Lcom/google/android/gms/internal/ads/g0;->a(Lz5/no;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/Long;

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

    move-result-wide v11

    sget-object v1, Lz5/so;->p:Lz5/no;

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

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

    move-result-object v1

    check-cast v1, Ljava/lang/Long;

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

    move-result-wide v3

    const-wide/16 v5, 0x3e8

    mul-long v9, v3, v5

    sget-object v1, Lz5/so;->o:Lz5/no;

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

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

    move-result-object v1

    check-cast v1, Ljava/lang/Integer;

    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v1

    int-to-long v6, v1

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

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

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

    move-result-object v1

    check-cast v1, Ljava/lang/Boolean;

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

    move-result v21

    const-wide/16 v22, -0x1

    move-wide/from16 v1, v22

    :goto_82
    monitor-enter p0
    :try_end_83
    .catch Ljava/lang/Exception; {:try_start_10 .. :try_end_83} :catch_1c7

    :try_start_83
    invoke-interface {v0}, Lu5/c;->b()J

    move-result-wide v3

    sub-long v3, v3, v19

    cmp-long v3, v3, v9

    if-gtz v3, :cond_192

    iget-boolean v3, v15, Lz5/m70;->w:Z

    if-nez v3, :cond_185

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

    const/16 v24, 0x1

    if-eqz v3, :cond_9b

    monitor-exit p0

    move-object v5, v15

    goto/16 :goto_154

    :cond_9b
    iget-object v3, v15, Lz5/m70;->u:Lz5/a60;

    invoke-virtual {v3}, Lz5/a60;->t()Z

    move-result v3

    if-eqz v3, :cond_178

    iget-object v3, v15, Lz5/m70;->u:Lz5/a60;

    invoke-virtual {v3}, Lz5/a60;->z()J

    move-result-wide v4

    const-wide/16 v25, 0x0

    cmp-long v3, v4, v25

    if-lez v3, :cond_158

    iget-object v3, v15, Lz5/m70;->u:Lz5/a60;

    invoke-virtual {v3}, Lz5/a60;->F()J

    move-result-wide v27

    cmp-long v3, v27, v1

    if-eqz v3, :cond_127

    cmp-long v1, v27, v25

    if-lez v1, :cond_c0

    move/from16 v8, v24

    goto :goto_c2

    :cond_c0
    move/from16 v8, v18

    :goto_c2
    if-eqz v21, :cond_cd

    iget-object v1, v15, Lz5/m70;->u:Lz5/a60;

    invoke-virtual {v1}, Lz5/a60;->A()J

    move-result-wide v1

    move-wide/from16 v29, v1

    goto :goto_cf

    :cond_cd
    move-wide/from16 v29, v22

    :goto_cf
    if-eqz v21, :cond_da

    iget-object v1, v15, Lz5/m70;->u:Lz5/a60;

    invoke-virtual {v1}, Lz5/a60;->B()J

    move-result-wide v1

    move-wide/from16 v31, v1

    goto :goto_dc

    :cond_da
    move-wide/from16 v31, v22

    :goto_dc
    if-eqz v21, :cond_e7

    iget-object v1, v15, Lz5/m70;->u:Lz5/a60;

    invoke-virtual {v1}, Lz5/a60;->C()J

    move-result-wide v1
    :try_end_e4
    .catchall {:try_start_83 .. :try_end_e4} :catchall_1bf

    move-wide/from16 v33, v1

    goto :goto_e9

    :cond_e7
    move-wide/from16 v33, v22

    :goto_e9
    :try_start_e9
    invoke-static {}, Lz5/a60;->H()I

    move-result v16

    invoke-static {}, Lz5/a60;->I()I

    move-result v35
    :try_end_f1
    .catchall {:try_start_e9 .. :try_end_f1} :catchall_11f

    move-object/from16 v1, p0

    move-object/from16 v2, p1

    move-object v3, v14

    move-wide/from16 v36, v4

    move-wide/from16 v4, v27

    move-wide/from16 v38, v6

    move-wide/from16 v6, v36

    move-wide/from16 v40, v9

    move-wide/from16 v9, v29

    move-wide/from16 v42, v11

    move-wide/from16 v11, v31

    move-object/from16 v44, v14

    move-wide/from16 v13, v33

    move/from16 v15, v16

    move/from16 v16, v35

    :try_start_10e
    invoke-virtual/range {v1 .. v16}, Lcom/google/android/gms/internal/ads/e2;->n(Ljava/lang/String;Ljava/lang/String;JJZJJJII)V
    :try_end_111
    .catchall {:try_start_10e .. :try_end_111} :catchall_116

    move-wide/from16 v1, v27

    move-wide/from16 v3, v36

    goto :goto_130

    :catchall_116
    move-exception v0

    move-object/from16 v5, p0

    move-object/from16 v6, p1

    move-object/from16 v7, v44

    goto/16 :goto_1c3

    :catchall_11f
    move-exception v0

    move-object/from16 v5, p0

    move-object/from16 v6, p1

    move-object v7, v14

    goto/16 :goto_1c3

    :cond_127
    move-wide/from16 v38, v6

    move-wide/from16 v40, v9

    move-wide/from16 v42, v11

    move-object/from16 v44, v14

    move-wide v3, v4

    :goto_130
    cmp-long v5, v27, v3

    if-ltz v5, :cond_13f

    move-object/from16 v5, p0

    move-object/from16 v6, p1

    move-object/from16 v7, v44

    :try_start_13a
    invoke-virtual {v5, v6, v7, v3, v4}, Lcom/google/android/gms/internal/ads/e2;->p(Ljava/lang/String;Ljava/lang/String;J)V

    :goto_13d
    monitor-exit p0

    goto :goto_154

    :cond_13f
    move-object/from16 v5, p0

    move-object/from16 v6, p1

    move-object/from16 v7, v44

    iget-object v3, v5, Lz5/m70;->u:Lz5/a60;

    invoke-virtual {v3}, Lz5/a60;->G()J

    move-result-wide v3
    :try_end_14b
    .catchall {:try_start_13a .. :try_end_14b} :catchall_1bd

    cmp-long v3, v3, v38

    if-ltz v3, :cond_155

    cmp-long v3, v27, v25

    if-lez v3, :cond_155

    goto :goto_13d

    :goto_154
    return v24

    :cond_155
    move-wide/from16 v3, v42

    goto :goto_160

    :cond_158
    move-wide/from16 v38, v6

    move-wide/from16 v40, v9

    move-object v6, v13

    move-object v7, v14

    move-object v5, v15

    move-wide v3, v11

    :goto_160
    :try_start_160
    invoke-virtual {v5, v3, v4}, Ljava/lang/Object;->wait(J)V
    :try_end_163
    .catch Ljava/lang/InterruptedException; {:try_start_160 .. :try_end_163} :catch_16e
    .catchall {:try_start_160 .. :try_end_163} :catchall_1bd

    :try_start_163
    monitor-exit p0

    move-wide v11, v3

    move-object v15, v5

    move-object v13, v6

    move-object v14, v7

    move-wide/from16 v6, v38

    move-wide/from16 v9, v40

    goto/16 :goto_82

    :catch_16e
    const-string v1, "interrupted"
    :try_end_170
    .catchall {:try_start_163 .. :try_end_170} :catchall_1bd

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

    const-string v2, "Wait interrupted."

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

    throw v0
    :try_end_178
    .catchall {:try_start_170 .. :try_end_178} :catchall_1b9

    :cond_178
    move-object v6, v13

    move-object v7, v14

    move-object v5, v15

    :try_start_17b
    const-string v1, "exoPlayerReleased"
    :try_end_17d
    .catchall {:try_start_17b .. :try_end_17d} :catchall_1bd

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

    const-string v2, "ExoPlayer was released during preloading."

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

    throw v0
    :try_end_185
    .catchall {:try_start_17d .. :try_end_185} :catchall_1b9

    :cond_185
    move-object v6, v13

    move-object v7, v14

    move-object v5, v15

    :try_start_188
    const-string v1, "externalAbort"
    :try_end_18a
    .catchall {:try_start_188 .. :try_end_18a} :catchall_1bd

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

    const-string v2, "Abort requested before buffering finished. "

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

    throw v0
    :try_end_192
    .catchall {:try_start_18a .. :try_end_192} :catchall_1b9

    :cond_192
    move-wide/from16 v40, v9

    move-object v6, v13

    move-object v7, v14

    move-object v5, v15

    :try_start_197
    const-string v1, "downloadTimeout"
    :try_end_199
    .catchall {:try_start_197 .. :try_end_199} :catchall_1bd

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

    new-instance v2, Ljava/lang/StringBuilder;

    const/16 v3, 0x2f

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

    const-string v3, "Timeout reached. Limit: "

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

    move-wide/from16 v3, v40

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

    const-string v3, " ms"

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

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

    move-result-object v2

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

    throw v0
    :try_end_1b9
    .catchall {:try_start_199 .. :try_end_1b9} :catchall_1b9

    :catchall_1b9
    move-exception v0

    move-object/from16 v17, v1

    goto :goto_1c3

    :catchall_1bd
    move-exception v0

    goto :goto_1c3

    :catchall_1bf
    move-exception v0

    move-object v6, v13

    move-object v7, v14

    move-object v5, v15

    :goto_1c3
    :try_start_1c3
    monitor-exit p0
    :try_end_1c4
    .catchall {:try_start_1c3 .. :try_end_1c4} :catchall_1bd

    :try_start_1c4
    throw v0
    :try_end_1c5
    .catch Ljava/lang/Exception; {:try_start_1c4 .. :try_end_1c5} :catch_1c5

    :catch_1c5
    move-exception v0

    goto :goto_1cb

    :catch_1c7
    move-exception v0

    move-object v6, v13

    move-object v7, v14

    move-object v5, v15

    :goto_1cb
    move-object/from16 v1, v17

    invoke-virtual {v0}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object v2

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

    move-result-object v3

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

    move-result v3

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

    move-result-object v4

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

    move-result v4

    new-instance v8, Ljava/lang/StringBuilder;

    add-int/lit8 v3, v3, 0x22

    add-int/2addr v3, v4

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

    const-string v3, "Failed to preload url "

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

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

    const-string v3, " Exception: "

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

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

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

    move-result-object v2

    invoke-static {v2}, Lz5/d50;->zzi(Ljava/lang/String;)V

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

    move-result-object v2

    const-string v3, "VideoStreamExoPlayerCache.preload"

    invoke-virtual {v2, v0, v3}, Lcom/google/android/gms/internal/ads/u1;->e(Ljava/lang/Throwable;Ljava/lang/String;)V

    invoke-virtual/range {p0 .. p0}, Lz5/m70;->a()V

    invoke-static {v1, v0}, Lz5/m70;->u(Ljava/lang/String;Ljava/lang/Exception;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v5, v6, v7, v1, v0}, Lcom/google/android/gms/internal/ads/e2;->q(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    return v18
.end method

.method public final h(Ljava/lang/String;[Ljava/lang/String;Lz5/a70;)Z
    .registers 9

    iput-object p1, p0, Lz5/m70;->v:Ljava/lang/String;

    iput-object p3, p0, Lz5/m70;->y:Lz5/a70;

    invoke-static {p1}, Lz5/m70;->t(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p3

    const/4 v0, 0x0

    :try_start_9
    array-length v1, p2

    new-array v1, v1, [Landroid/net/Uri;

    move v2, v0

    :goto_d
    array-length v3, p2

    if-ge v2, v3, :cond_1b

    aget-object v3, p2, v2

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

    move-result-object v3

    aput-object v3, v1, v2

    add-int/lit8 v2, v2, 0x1

    goto :goto_d

    :cond_1b
    iget-object p2, p0, Lz5/m70;->u:Lz5/a60;

    iget-object v2, p0, Lcom/google/android/gms/internal/ads/e2;->s:Ljava/lang/String;

    invoke-virtual {p2, v1, v2}, Lz5/a60;->J([Landroid/net/Uri;Ljava/lang/String;)V

    iget-object p2, p0, Lcom/google/android/gms/internal/ads/e2;->t:Ljava/lang/ref/WeakReference;

    invoke-virtual {p2}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object p2

    check-cast p2, Lz5/h60;

    if-eqz p2, :cond_2f

    invoke-interface {p2, p3, p0}, Lz5/h60;->E(Ljava/lang/String;Lcom/google/android/gms/internal/ads/e2;)V

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

    move-result-object p2

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

    move-result-wide v1

    iput-wide v1, p0, Lz5/m70;->z:J

    const-wide/16 v1, -0x1

    iput-wide v1, p0, Lz5/m70;->A:J

    const-wide/16 v1, 0x0

    .line 1
    sget-object p2, Lcom/google/android/gms/ads/internal/util/zzs;->zza:Lz5/i91;

    new-instance v3, Ll5/x;

    invoke-direct {v3, p0}, Ll5/x;-><init>(Lz5/m70;)V

    invoke-virtual {p2, v3, v1, v2}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z
    :try_end_49
    .catch Ljava/lang/Exception; {:try_start_9 .. :try_end_49} :catch_4b

    const/4 p1, 0x1

    return p1

    :catch_4b
    move-exception p2

    .line 2
    invoke-virtual {p2}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object v1

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

    move-result-object v2

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

    move-result v2

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

    move-result-object v3

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

    move-result v3

    new-instance v4, Ljava/lang/StringBuilder;

    add-int/lit8 v2, v2, 0x22

    add-int/2addr v2, v3

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

    const-string v2, "Failed to preload url "

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

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

    const-string v2, " Exception: "

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

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

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

    move-result-object v1

    invoke-static {v1}, Lz5/d50;->zzi(Ljava/lang/String;)V

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

    move-result-object v1

    const-string v2, "VideoStreamExoPlayerCache.preload"

    invoke-virtual {v1, p2, v2}, Lcom/google/android/gms/internal/ads/u1;->e(Ljava/lang/Throwable;Ljava/lang/String;)V

    invoke-virtual {p0}, Lz5/m70;->a()V

    const-string v1, "error"

    invoke-static {v1, p2}, Lz5/m70;->u(Ljava/lang/String;Ljava/lang/Exception;)Ljava/lang/String;

    move-result-object p2

    invoke-virtual {p0, p1, p3, v1, p2}, Lcom/google/android/gms/internal/ads/e2;->q(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    return v0
.end method

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

    iget-object v0, p0, Lz5/m70;->u:Lz5/a60;

    invoke-virtual {v0, p1}, Lz5/a60;->y(I)V

    return-void
.end method

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

    iget-object v0, p0, Lz5/m70;->u:Lz5/a60;

    invoke-virtual {v0, p1}, Lz5/a60;->x(I)V

    return-void
.end method

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

    iget-object v0, p0, Lz5/m70;->u:Lz5/a60;

    invoke-virtual {v0, p1}, Lz5/a60;->R(I)V

    return-void
.end method

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

    iget-object v0, p0, Lz5/m70;->u:Lz5/a60;

    invoke-virtual {v0, p1}, Lz5/a60;->S(I)V

    return-void
.end method

.method public final m()V
    .registers 5

    monitor-enter p0

    const/4 v0, 0x1

    :try_start_2
    iput-boolean v0, p0, Lz5/m70;->w:Z

    invoke-virtual {p0}, Ljava/lang/Object;->notify()V

    invoke-virtual {p0}, Lz5/m70;->a()V

    monitor-exit p0
    :try_end_b
    .catchall {:try_start_2 .. :try_end_b} :catchall_1d

    iget-object v0, p0, Lz5/m70;->v:Ljava/lang/String;

    if-eqz v0, :cond_1c

    invoke-static {v0}, Lz5/m70;->t(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iget-object v1, p0, Lz5/m70;->v:Ljava/lang/String;

    const-string v2, "externalAbort"

    const-string v3, "Programmatic precache abort."

    invoke-virtual {p0, v1, v0, v2, v3}, Lcom/google/android/gms/internal/ads/e2;->q(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    :cond_1c
    return-void

    :catchall_1d
    move-exception v0

    :try_start_1e
    monitor-exit p0
    :try_end_1f
    .catchall {:try_start_1e .. :try_end_1f} :catchall_1d

    throw v0
.end method

.method public final zzC()V
    .registers 2

    const-string v0, "Precache onRenderedFirstFrame"

    invoke-static {v0}, Lz5/d50;->zzi(Ljava/lang/String;)V

    return-void
.end method

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

    return-void
.end method
