.class public final Lz5/zt;
.super Ljava/lang/Object;
.source ""

# interfaces
.implements Lz5/cu;


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Lz5/cu<",
        "Lcom/google/android/gms/internal/ads/g2;",
        ">;"
    }
.end annotation


# instance fields
.field public final synthetic r:I


# direct methods
.method public constructor <init>(I)V
    .registers 2

    iput p1, p0, Lz5/zt;->r:I

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

    return-void
.end method


# virtual methods
.method public final a(Ljava/lang/Object;Ljava/util/Map;)V
    .registers 10

    iget v0, p0, Lz5/zt;->r:I

    packed-switch v0, :pswitch_data_150

    goto :goto_6d

    .line 1
    :pswitch_6
    check-cast p1, Lcom/google/android/gms/internal/ads/g2;

    invoke-interface {p2}, Ljava/util/Map;->keySet()Ljava/util/Set;

    move-result-object v0

    const-string v1, "start"

    invoke-interface {v0, v1}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z

    move-result v0

    const/4 v1, 0x1

    if-eqz v0, :cond_2b

    invoke-interface {p1}, Lcom/google/android/gms/internal/ads/g2;->l()Lz5/z80;

    move-result-object p1

    check-cast p1, Lcom/google/android/gms/internal/ads/h2;

    .line 2
    iget-object v0, p1, Lcom/google/android/gms/internal/ads/h2;->u:Ljava/lang/Object;

    monitor-enter v0

    :try_start_1e
    monitor-exit v0
    :try_end_1f
    .catchall {:try_start_1e .. :try_end_1f} :catchall_28

    iget p2, p1, Lcom/google/android/gms/internal/ads/h2;->P:I

    add-int/2addr p2, v1

    iput p2, p1, Lcom/google/android/gms/internal/ads/h2;->P:I

    invoke-virtual {p1}, Lcom/google/android/gms/internal/ads/h2;->A()V

    goto :goto_6c

    :catchall_28
    move-exception p1

    :try_start_29
    monitor-exit v0
    :try_end_2a
    .catchall {:try_start_29 .. :try_end_2a} :catchall_28

    throw p1

    .line 3
    :cond_2b
    invoke-interface {p2}, Ljava/util/Map;->keySet()Ljava/util/Set;

    move-result-object v0

    const-string v2, "stop"

    invoke-interface {v0, v2}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_47

    invoke-interface {p1}, Lcom/google/android/gms/internal/ads/g2;->l()Lz5/z80;

    move-result-object p1

    check-cast p1, Lcom/google/android/gms/internal/ads/h2;

    .line 4
    iget p2, p1, Lcom/google/android/gms/internal/ads/h2;->P:I

    add-int/lit8 p2, p2, -0x1

    iput p2, p1, Lcom/google/android/gms/internal/ads/h2;->P:I

    invoke-virtual {p1}, Lcom/google/android/gms/internal/ads/h2;->A()V

    goto :goto_6c

    .line 5
    :cond_47
    invoke-interface {p2}, Ljava/util/Map;->keySet()Ljava/util/Set;

    move-result-object p2

    const-string v0, "cancel"

    invoke-interface {p2, v0}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z

    move-result p2

    if-eqz p2, :cond_6c

    invoke-interface {p1}, Lcom/google/android/gms/internal/ads/g2;->l()Lz5/z80;

    move-result-object p1

    check-cast p1, Lcom/google/android/gms/internal/ads/h2;

    .line 6
    iget-object p2, p1, Lcom/google/android/gms/internal/ads/h2;->s:Lcom/google/android/gms/internal/ads/w;

    if-eqz p2, :cond_62

    const/16 v0, 0x2715

    invoke-virtual {p2, v0}, Lcom/google/android/gms/internal/ads/w;->b(I)V

    :cond_62
    iput-boolean v1, p1, Lcom/google/android/gms/internal/ads/h2;->O:Z

    invoke-virtual {p1}, Lcom/google/android/gms/internal/ads/h2;->A()V

    iget-object p1, p1, Lcom/google/android/gms/internal/ads/h2;->r:Lcom/google/android/gms/internal/ads/g2;

    invoke-interface {p1}, Lcom/google/android/gms/internal/ads/g2;->destroy()V

    :cond_6c
    :goto_6c
    return-void

    .line 7
    :goto_6d
    check-cast p1, Lz5/h60;

    invoke-interface {p1}, Lz5/h60;->zzh()Lcom/google/android/gms/internal/ads/k2;

    move-result-object v0

    const-string v1, "duration"

    const-string v2, "1"

    if-nez v0, :cond_a0

    :try_start_79
    invoke-interface {p2, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

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

    move-result v0

    const-string v3, "customControlsAllowed"

    invoke-interface {p2, v3}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    const-string v4, "clickToExpandAllowed"

    invoke-interface {p2, v4}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v4

    invoke-virtual {v2, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    new-instance v5, Lcom/google/android/gms/internal/ads/k2;

    invoke-direct {v5, p1, v0, v3, v4}, Lcom/google/android/gms/internal/ads/k2;-><init>(Lz5/h60;FZZ)V

    invoke-interface {p1, v5}, Lz5/h60;->n(Lcom/google/android/gms/internal/ads/k2;)V

    move-object v0, v5

    :cond_a0
    invoke-interface {p2, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Ljava/lang/String;

    invoke-static {p1}, Ljava/lang/Float;->parseFloat(Ljava/lang/String;)F

    move-result p1

    const-string v1, "muted"

    invoke-interface {p2, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    const-string v1, "currentTime"

    invoke-interface {p2, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    invoke-static {v1}, Ljava/lang/Float;->parseFloat(Ljava/lang/String;)F

    move-result v1

    const-string v2, "playbackState"

    invoke-interface {p2, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/String;

    invoke-static {v2}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v2

    const/4 v3, 0x3

    const/4 v5, 0x0

    if-ltz v2, :cond_d4

    if-le v2, v3, :cond_d3

    goto :goto_d4

    :cond_d3
    move v5, v2

    :cond_d4
    :goto_d4
    const-string v2, "aspectRatio"

    invoke-interface {p2, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p2

    check-cast p2, Ljava/lang/String;

    invoke-static {p2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-eqz v2, :cond_e5

    const/4 v2, 0x0

    :goto_e3
    move v6, v2

    goto :goto_ea

    :cond_e5
    invoke-static {p2}, Ljava/lang/Float;->parseFloat(Ljava/lang/String;)F

    move-result v2

    goto :goto_e3

    :goto_ea
    invoke-static {v3}, Lz5/d50;->zzm(I)Z

    move-result v2

    if-eqz v2, :cond_12e

    invoke-static {p2}, 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

    add-int/lit16 v2, v2, 0x8c

    new-instance v3, Ljava/lang/StringBuilder;

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

    const-string v2, "Video Meta GMSG: currentTime : "

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

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

    const-string v2, " , duration : "

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

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

    const-string v2, " , isMuted : "

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

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

    const-string v2, " , playbackState : "

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

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

    const-string v2, " , aspectRatio : "

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

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

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

    move-result-object p2

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

    :cond_12e
    move v2, p1

    move v3, v5

    move v5, v6

    invoke-virtual/range {v0 .. v5}, Lcom/google/android/gms/internal/ads/k2;->I2(FFIZF)V
    :try_end_134
    .catch Ljava/lang/NullPointerException; {:try_start_79 .. :try_end_134} :catch_137
    .catch Ljava/lang/NumberFormatException; {:try_start_79 .. :try_end_134} :catch_135

    goto :goto_14e

    :catch_135
    move-exception p1

    goto :goto_138

    :catch_137
    move-exception p1

    :goto_138
    const-string p2, "Unable to parse videoMeta message."

    invoke-static {p2, p1}, Lz5/d50;->zzg(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 p2

    .line 8
    iget-object v0, p2, Lcom/google/android/gms/internal/ads/u1;->e:Landroid/content/Context;

    iget-object p2, p2, Lcom/google/android/gms/internal/ads/u1;->f:Lz5/g50;

    invoke-static {v0, p2}, Lcom/google/android/gms/internal/ads/h1;->d(Landroid/content/Context;Lz5/g50;)Lz5/f10;

    move-result-object p2

    const-string v0, "VideoMetaGmsgHandler.onGmsg"

    invoke-interface {p2, p1, v0}, Lz5/f10;->a(Ljava/lang/Throwable;Ljava/lang/String;)V

    :goto_14e
    return-void

    nop

    :pswitch_data_150
    .packed-switch 0x0
        :pswitch_6
    .end packed-switch
.end method
