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

# interfaces
.implements Lz5/cu;


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Lz5/cu<",
        "Ljava/lang/Object;",
        ">;"
    }
.end annotation


# instance fields
.field public final synthetic r:I

.field public final s:Ljava/lang/Object;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .registers 3

    const/4 v0, 0x5

    iput v0, p0, Lz5/gt;->r:I

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

    iput-object p1, p0, Lz5/gt;->s:Ljava/lang/Object;

    return-void
.end method

.method public constructor <init>(Lcom/google/android/gms/internal/ads/j2;)V
    .registers 3

    const/4 v0, 0x7

    iput v0, p0, Lz5/gt;->r:I

    .line 4
    iput-object p1, p0, Lz5/gt;->s:Ljava/lang/Object;

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

    return-void
.end method

.method public constructor <init>(Lcom/google/android/gms/internal/ads/p0;)V
    .registers 3

    const/4 v0, 0x0

    iput v0, p0, Lz5/gt;->r:I

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

    iput-object p1, p0, Lz5/gt;->s:Ljava/lang/Object;

    return-void
.end method

.method public constructor <init>(Lcom/google/android/gms/internal/ads/q0;)V
    .registers 3

    const/4 v0, 0x1

    iput v0, p0, Lz5/gt;->r:I

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

    iput-object p1, p0, Lz5/gt;->s:Ljava/lang/Object;

    return-void
.end method

.method public constructor <init>(Lz5/dn0;)V
    .registers 3

    const/16 v0, 0x8

    iput v0, p0, Lz5/gt;->r:I

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

    iput-object p1, p0, Lz5/gt;->s:Ljava/lang/Object;

    return-void
.end method

.method public constructor <init>(Lz5/du;)V
    .registers 3

    const/4 v0, 0x4

    iput v0, p0, Lz5/gt;->r:I

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

    iput-object p1, p0, Lz5/gt;->s:Ljava/lang/Object;

    return-void
.end method

.method public constructor <init>(Lz5/hk0;)V
    .registers 3

    const/4 v0, 0x2

    iput v0, p0, Lz5/gt;->r:I

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

    iput-object p1, p0, Lz5/gt;->s:Ljava/lang/Object;

    return-void
.end method

.method public constructor <init>(Lz5/nu;)V
    .registers 3

    const/4 v0, 0x6

    iput v0, p0, Lz5/gt;->r:I

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

    iput-object p1, p0, Lz5/gt;->s:Ljava/lang/Object;

    return-void
.end method

.method public constructor <init>(Lz5/pr0;)V
    .registers 3

    const/4 v0, 0x3

    iput v0, p0, Lz5/gt;->r:I

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

    iput-object p1, p0, Lz5/gt;->s:Ljava/lang/Object;

    return-void
.end method


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

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

    const/4 v1, 0x1

    const/4 v2, 0x0

    const/4 v3, 0x0

    packed-switch v0, :pswitch_data_25c

    goto/16 :goto_24e

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

    if-eqz p2, :cond_43

    const-string p1, "height"

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

    move-result-object p1

    check-cast p1, Ljava/lang/String;

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

    move-result p2

    if-nez p2, :cond_43

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

    move-result p1

    iget-object p2, p0, Lz5/gt;->s:Ljava/lang/Object;

    check-cast p2, Lcom/google/android/gms/internal/ads/j2;

    monitor-enter p2
    :try_end_25
    .catch Ljava/lang/Exception; {:try_start_1c .. :try_end_25} :catch_3d

    :try_start_25
    iget-object v0, p0, Lz5/gt;->s:Ljava/lang/Object;

    move-object v1, v0

    check-cast v1, Lcom/google/android/gms/internal/ads/j2;

    .line 2
    iget v1, v1, Lcom/google/android/gms/internal/ads/j2;->W:I

    if-eq v1, p1, :cond_38

    .line 3
    move-object v1, v0

    check-cast v1, Lcom/google/android/gms/internal/ads/j2;

    .line 4
    iput p1, v1, Lcom/google/android/gms/internal/ads/j2;->W:I

    .line 5
    check-cast v0, Lcom/google/android/gms/internal/ads/j2;

    invoke-virtual {v0}, Landroid/webkit/WebView;->requestLayout()V

    :cond_38
    monitor-exit p2

    goto :goto_43

    :catchall_3a
    move-exception p1

    monitor-exit p2
    :try_end_3c
    .catchall {:try_start_25 .. :try_end_3c} :catchall_3a

    :try_start_3c
    throw p1
    :try_end_3d
    .catch Ljava/lang/Exception; {:try_start_3c .. :try_end_3d} :catch_3d

    :catch_3d
    move-exception p1

    const-string p2, "Exception occurred while getting webview content height"

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

    :cond_43
    :goto_43
    return-void

    :pswitch_44
    const-string p1, "action"

    .line 6
    invoke-interface {p2, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Ljava/lang/String;

    const-string v0, "grant"

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

    move-result v0

    if-eqz v0, :cond_83

    :try_start_54
    const-string p1, "amount"

    invoke-interface {p2, p1}, 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/Integer;->parseInt(Ljava/lang/String;)I

    move-result p1

    const-string v0, "type"

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

    if-nez v0, :cond_7b

    new-instance v0, Lz5/o20;

    invoke-direct {v0, p2, p1}, Lz5/o20;-><init>(Ljava/lang/String;I)V
    :try_end_73
    .catch Ljava/lang/NumberFormatException; {:try_start_54 .. :try_end_73} :catch_75

    move-object v3, v0

    goto :goto_7b

    :catch_75
    move-exception p1

    const-string p2, "Unable to parse reward amount."

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

    :cond_7b
    :goto_7b
    iget-object p1, p0, Lz5/gt;->s:Ljava/lang/Object;

    check-cast p1, Lz5/nu;

    invoke-interface {p1, v3}, Lz5/nu;->v(Lz5/o20;)V

    goto :goto_a2

    :cond_83
    const-string p2, "video_start"

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

    move-result p2

    if-eqz p2, :cond_93

    iget-object p1, p0, Lz5/gt;->s:Ljava/lang/Object;

    check-cast p1, Lz5/nu;

    invoke-interface {p1}, Lz5/nu;->zza()V

    goto :goto_a2

    :cond_93
    const-string p2, "video_complete"

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

    move-result p1

    if-eqz p1, :cond_a2

    iget-object p1, p0, Lz5/gt;->s:Ljava/lang/Object;

    check-cast p1, Lz5/nu;

    invoke-interface {p1}, Lz5/nu;->zzc()V

    :cond_a2
    :goto_a2
    return-void

    .line 7
    :pswitch_a3
    invoke-static {}, Lcom/google/android/gms/ads/internal/zzt;->zzA()Lcom/google/android/gms/internal/ads/p1;

    move-result-object p1

    iget-object v0, p0, Lz5/gt;->s:Ljava/lang/Object;

    check-cast v0, Landroid/content/Context;

    invoke-virtual {p1, v0}, Lcom/google/android/gms/internal/ads/p1;->e(Landroid/content/Context;)Z

    move-result p1

    if-nez p1, :cond_b3

    goto/16 :goto_125

    :cond_b3
    const-string p1, "eventName"

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

    move-result-object p1

    check-cast p1, Ljava/lang/String;

    const-string v0, "eventId"

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

    move-result-object p2

    check-cast p2, Ljava/lang/String;

    invoke-virtual {p1}, Ljava/lang/String;->hashCode()I

    move-result v0

    const v4, 0x170bf

    const/4 v5, 0x2

    const-string v6, "_aa"

    if-eq v0, v4, :cond_ed

    const v4, 0x170c1

    if-eq v0, v4, :cond_e4

    const v2, 0x170c7

    if-eq v0, v2, :cond_da

    goto :goto_f5

    :cond_da
    const-string v0, "_ai"

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

    move-result p1

    if-eqz p1, :cond_f5

    move v2, v1

    goto :goto_f6

    :cond_e4
    const-string v0, "_ac"

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

    move-result p1

    if-eqz p1, :cond_f5

    goto :goto_f6

    :cond_ed
    invoke-virtual {p1, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_f5

    move v2, v5

    goto :goto_f6

    :cond_f5
    :goto_f5
    const/4 v2, -0x1

    :goto_f6
    if-eqz v2, :cond_11a

    if-eq v2, v1, :cond_10e

    if-eq v2, v5, :cond_102

    const-string p1, "logScionEvent gmsg contained unsupported eventName"

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

    goto :goto_125

    :cond_102
    invoke-static {}, Lcom/google/android/gms/ads/internal/zzt;->zzA()Lcom/google/android/gms/internal/ads/p1;

    move-result-object p1

    iget-object v0, p0, Lz5/gt;->s:Ljava/lang/Object;

    check-cast v0, Landroid/content/Context;

    .line 8
    invoke-virtual {p1, v0, v6, p2, v3}, Lcom/google/android/gms/internal/ads/p1;->m(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Landroid/os/Bundle;)V

    goto :goto_125

    .line 9
    :cond_10e
    invoke-static {}, Lcom/google/android/gms/ads/internal/zzt;->zzA()Lcom/google/android/gms/internal/ads/p1;

    move-result-object p1

    iget-object v0, p0, Lz5/gt;->s:Ljava/lang/Object;

    check-cast v0, Landroid/content/Context;

    invoke-virtual {p1, v0, p2}, Lcom/google/android/gms/internal/ads/p1;->j(Landroid/content/Context;Ljava/lang/String;)V

    goto :goto_125

    :cond_11a
    invoke-static {}, Lcom/google/android/gms/ads/internal/zzt;->zzA()Lcom/google/android/gms/internal/ads/p1;

    move-result-object p1

    iget-object v0, p0, Lz5/gt;->s:Ljava/lang/Object;

    check-cast v0, Landroid/content/Context;

    invoke-virtual {p1, v0, p2}, Lcom/google/android/gms/internal/ads/p1;->i(Landroid/content/Context;Ljava/lang/String;)V

    :goto_125
    return-void

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

    const-string v0, "1"

    const-string v2, "transparentBackground"

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

    move-result-object v2

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

    move-result v0

    const-string v2, "1"

    const-string v3, "blur"

    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 v2

    const/4 v3, 0x0

    :try_start_141
    const-string v4, "blurRadius"

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

    move-result-object v4

    if-eqz v4, :cond_15c

    const-string v4, "blurRadius"

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

    move-result-object p2

    check-cast p2, Ljava/lang/String;

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

    move-result v3
    :try_end_155
    .catch Ljava/lang/NumberFormatException; {:try_start_141 .. :try_end_155} :catch_156

    goto :goto_15c

    :catch_156
    move-exception p2

    const-string v4, "Fail to parse float"

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

    :cond_15c
    :goto_15c
    iget-object p2, p0, Lz5/gt;->s:Ljava/lang/Object;

    check-cast p2, Lz5/du;

    .line 11
    monitor-enter p2

    :try_start_161
    iput-boolean v0, p2, Lz5/du;->a:Z

    iget-object v4, p2, Lz5/du;->d:Ljava/util/concurrent/atomic/AtomicBoolean;

    invoke-virtual {v4, v1}, Ljava/util/concurrent/atomic/AtomicBoolean;->set(Z)V
    :try_end_168
    .catchall {:try_start_161 .. :try_end_168} :catchall_17a

    monitor-exit p2

    .line 12
    iget-object p2, p0, Lz5/gt;->s:Ljava/lang/Object;

    check-cast p2, Lz5/du;

    .line 13
    monitor-enter p2

    :try_start_16e
    iput-boolean v2, p2, Lz5/du;->b:Z

    iput v3, p2, Lz5/du;->c:F
    :try_end_172
    .catchall {:try_start_16e .. :try_end_172} :catchall_177

    monitor-exit p2

    .line 14
    invoke-interface {p1, v0}, Lcom/google/android/gms/internal/ads/g2;->R(Z)V

    return-void

    :catchall_177
    move-exception p1

    .line 15
    monitor-exit p2

    throw p1

    :catchall_17a
    move-exception p1

    .line 16
    monitor-exit p2

    throw p1

    :pswitch_17d
    if-eqz p2, :cond_1ba

    const-string p1, "extras"

    .line 17
    invoke-interface {p2, p1}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z

    move-result p1

    if-nez p1, :cond_188

    goto :goto_1ba

    :cond_188
    const-string p1, "expires"

    invoke-interface {p2, p1}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z

    move-result p1

    const-wide v0, 0x7fffffffffffffffL

    if-eqz p1, :cond_1a1

    :try_start_195
    const-string p1, "expires"

    invoke-interface {p2, p1}, 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/Long;->parseLong(Ljava/lang/String;)J

    move-result-wide v0
    :try_end_1a1
    .catch Ljava/lang/NumberFormatException; {:try_start_195 .. :try_end_1a1} :catch_1a1

    :catch_1a1
    :cond_1a1
    iget-object p1, p0, Lz5/gt;->s:Ljava/lang/Object;

    check-cast p1, Lz5/pr0;

    const-string v2, "extras"

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

    move-result-object p2

    check-cast p2, Ljava/lang/String;

    .line 18
    monitor-enter p1

    :try_start_1ae
    iput-object p2, p1, Lz5/pr0;->h:Ljava/lang/String;

    iput-wide v0, p1, Lz5/pr0;->j:J

    invoke-virtual {p1}, Lz5/pr0;->k()V
    :try_end_1b5
    .catchall {:try_start_1ae .. :try_end_1b5} :catchall_1b7

    monitor-exit p1

    goto :goto_1ba

    :catchall_1b7
    move-exception p2

    monitor-exit p1

    throw p2

    :cond_1ba
    :goto_1ba
    return-void

    .line 19
    :pswitch_1bb
    iget-object v0, p0, Lz5/gt;->s:Ljava/lang/Object;

    check-cast v0, Lz5/hk0;

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

    invoke-static {p2, v0}, Lz5/bu;->b(Ljava/util/Map;Lz5/hk0;)V

    const-string v0, "u"

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

    move-result-object p2

    check-cast p2, Ljava/lang/String;

    if-nez p2, :cond_1d4

    const-string p1, "URL missing from click GMSG."

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

    goto :goto_1e7

    :cond_1d4
    invoke-static {p1, p2}, Lz5/bu;->a(Lcom/google/android/gms/internal/ads/g2;Ljava/lang/String;)Lz5/fc1;

    move-result-object p2

    new-instance v0, Lz5/st;

    invoke-direct {v0, p1, v2}, Lz5/st;-><init>(Lcom/google/android/gms/internal/ads/g2;I)V

    sget-object p1, Lz5/k50;->a:Lz5/gc1;

    .line 20
    new-instance v1, Ll5/m;

    invoke-direct {v1, p2, v0}, Ll5/m;-><init>(Ljava/util/concurrent/Future;Lz5/zb1;)V

    invoke-interface {p2, v1, p1}, Lz5/fc1;->zze(Ljava/lang/Runnable;Ljava/util/concurrent/Executor;)V

    :goto_1e7
    return-void

    :pswitch_1e8
    const-string p1, "name"

    .line 21
    invoke-interface {p2, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Ljava/lang/String;

    if-nez p1, :cond_1f8

    const-string p1, "App event with no name parameter."

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

    goto :goto_207

    :cond_1f8
    iget-object v0, p0, Lz5/gt;->s:Ljava/lang/Object;

    check-cast v0, Lcom/google/android/gms/internal/ads/q0;

    const-string v1, "info"

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

    move-result-object p2

    check-cast p2, Ljava/lang/String;

    invoke-interface {v0, p1, p2}, Lcom/google/android/gms/internal/ads/q0;->f0(Ljava/lang/String;Ljava/lang/String;)V

    :goto_207
    return-void

    .line 22
    :pswitch_208
    iget-object p1, p0, Lz5/gt;->s:Ljava/lang/Object;

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

    if-nez p1, :cond_20f

    goto :goto_24d

    :cond_20f
    const-string p1, "name"

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

    move-result-object p1

    check-cast p1, Ljava/lang/String;

    if-nez p1, :cond_220

    const-string p1, "Ad metadata with no name parameter."

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

    const-string p1, ""

    :cond_220
    const-string v0, "info"

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

    move-result v1

    if-eqz v1, :cond_23e

    :try_start_228
    new-instance v1, Lorg/json/JSONObject;

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

    move-result-object p2

    check-cast p2, Ljava/lang/String;

    invoke-direct {v1, p2}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    invoke-static {v1}, Lcom/google/android/gms/ads/internal/util/zzbx;->zzk(Lorg/json/JSONObject;)Landroid/os/Bundle;

    move-result-object v3
    :try_end_237
    .catch Lorg/json/JSONException; {:try_start_228 .. :try_end_237} :catch_238

    goto :goto_23e

    :catch_238
    move-exception p2

    const-string v0, "Failed to convert ad metadata to JSON."

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

    :cond_23e
    :goto_23e
    if-nez v3, :cond_246

    const-string p1, "Failed to convert ad metadata to Bundle."

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

    goto :goto_24d

    :cond_246
    iget-object p2, p0, Lz5/gt;->s:Ljava/lang/Object;

    check-cast p2, Lcom/google/android/gms/internal/ads/p0;

    invoke-interface {p2, p1, v3}, Lcom/google/android/gms/internal/ads/p0;->b(Ljava/lang/String;Landroid/os/Bundle;)V

    :goto_24d
    return-void

    .line 23
    :goto_24e
    iget-object v0, p0, Lz5/gt;->s:Ljava/lang/Object;

    check-cast v0, Lz5/dn0;

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

    .line 24
    iget-object p1, v0, Lz5/dn0;->b:Lz5/to0;

    const-string v0, "sendMessageToNativeJs"

    invoke-virtual {p1, v0, p2}, Lz5/to0;->d(Ljava/lang/String;Ljava/util/Map;)V

    return-void

    :pswitch_data_25c
    .packed-switch 0x0
        :pswitch_208
        :pswitch_1e8
        :pswitch_1bb
        :pswitch_17d
        :pswitch_126
        :pswitch_a3
        :pswitch_44
        :pswitch_a
    .end packed-switch
.end method
