.class public final Lz5/gu;
.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


# static fields
.field public static final u:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map<",
            "Ljava/lang/String;",
            "Ljava/lang/Integer;",
            ">;"
        }
    .end annotation
.end field


# instance fields
.field public final r:Lcom/google/android/gms/ads/internal/zzb;

.field public final s:Lz5/nz;

.field public final t:Lz5/xa0;


# direct methods
.method public static constructor <clinit>()V
    .registers 7

    const-string v0, "resize"

    const-string v1, "playVideo"

    const-string v2, "storePicture"

    const-string v3, "createCalendarEvent"

    const-string v4, "setOrientationProperties"

    const-string v5, "closeResizedAd"

    const-string v6, "unload"

    filled-new-array/range {v0 .. v6}, [Ljava/lang/String;

    move-result-object v0

    const/4 v1, 0x7

    new-array v2, v1, [Ljava/lang/Integer;

    const/4 v3, 0x1

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    const/4 v5, 0x0

    aput-object v4, v2, v5

    const/4 v4, 0x2

    invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v6

    aput-object v6, v2, v3

    const/4 v3, 0x3

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v6

    aput-object v6, v2, v4

    const/4 v4, 0x4

    invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v6

    aput-object v6, v2, v3

    const/4 v3, 0x5

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v6

    aput-object v6, v2, v4

    const/4 v4, 0x6

    invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v6

    aput-object v6, v2, v3

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    aput-object v3, v2, v4

    .line 1
    new-instance v3, Lr/a;

    invoke-direct {v3, v1}, Lr/a;-><init>(I)V

    :goto_4b
    if-ge v5, v1, :cond_57

    .line 2
    aget-object v4, v0, v5

    aget-object v6, v2, v5

    invoke-interface {v3, v4, v6}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    add-int/lit8 v5, v5, 0x1

    goto :goto_4b

    :cond_57
    invoke-static {v3}, Ljava/util/Collections;->unmodifiableMap(Ljava/util/Map;)Ljava/util/Map;

    move-result-object v0

    .line 3
    sput-object v0, Lz5/gu;->u:Ljava/util/Map;

    return-void
.end method

.method public constructor <init>(Lcom/google/android/gms/ads/internal/zzb;Lz5/nz;Lz5/xa0;)V
    .registers 4

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

    iput-object p1, p0, Lz5/gu;->r:Lcom/google/android/gms/ads/internal/zzb;

    iput-object p2, p0, Lz5/gu;->s:Lz5/nz;

    iput-object p3, p0, Lz5/gu;->t:Lz5/xa0;

    return-void
.end method


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

    move-object/from16 v1, p0

    move-object/from16 v0, p2

    move-object/from16 v2, p1

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

    const-string v3, "a"

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

    move-result-object v3

    check-cast v3, Ljava/lang/String;

    sget-object v4, Lz5/gu;->u:Ljava/util/Map;

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

    move-result-object v3

    check-cast v3, Ljava/lang/Integer;

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

    move-result v3

    const/4 v4, 0x6

    const/4 v5, 0x7

    const/4 v6, 0x1

    const/4 v7, 0x5

    if-eq v3, v7, :cond_4ba

    if-eq v3, v5, :cond_4ac

    iget-object v8, v1, Lz5/gu;->r:Lcom/google/android/gms/ads/internal/zzb;

    invoke-virtual {v8}, Lcom/google/android/gms/ads/internal/zzb;->zzb()Z

    move-result v8

    if-eqz v8, :cond_4a5

    const/4 v8, 0x4

    const/4 v9, 0x3

    if-eq v3, v6, :cond_58

    if-eq v3, v9, :cond_4f

    if-eq v3, v8, :cond_46

    if-eq v3, v7, :cond_4ba

    if-eq v3, v4, :cond_40

    if-eq v3, v5, :cond_4ac

    const-string v0, "Unknown MRAID command called."

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

    return-void

    :cond_40
    iget-object v0, v1, Lz5/gu;->s:Lz5/nz;

    invoke-virtual {v0, v6}, Lz5/nz;->D(Z)V

    return-void

    :cond_46
    new-instance v3, Lz5/lz;

    invoke-direct {v3, v2, v0}, Lz5/lz;-><init>(Lcom/google/android/gms/internal/ads/g2;Ljava/util/Map;)V

    invoke-virtual {v3}, Lz5/lz;->zzb()V

    return-void

    :cond_4f
    new-instance v3, Lz5/qz;

    invoke-direct {v3, v2, v0}, Lz5/qz;-><init>(Lcom/google/android/gms/internal/ads/g2;Ljava/util/Map;)V

    invoke-virtual {v3}, Lz5/qz;->zzb()V

    return-void

    :cond_58
    iget-object v2, v1, Lz5/gu;->s:Lz5/nz;

    .line 1
    iget-object v3, v2, Lz5/nz;->C:Ljava/lang/Object;

    monitor-enter v3

    :try_start_5d
    iget-object v4, v2, Lz5/nz;->E:Landroid/app/Activity;

    if-nez v4, :cond_68

    const-string v0, "Not an activity context. Cannot resize."

    :goto_63
    invoke-virtual {v2, v0}, Landroidx/appcompat/widget/n;->v(Ljava/lang/String;)V

    goto/16 :goto_4a0

    :cond_68
    iget-object v4, v2, Lz5/nz;->D:Lcom/google/android/gms/internal/ads/g2;

    invoke-interface {v4}, Lcom/google/android/gms/internal/ads/g2;->f()Lz5/he;

    move-result-object v4

    if-nez v4, :cond_73

    const-string v0, "Webview is not yet available, size is not set."

    goto :goto_63

    :cond_73
    iget-object v4, v2, Lz5/nz;->D:Lcom/google/android/gms/internal/ads/g2;

    invoke-interface {v4}, Lcom/google/android/gms/internal/ads/g2;->f()Lz5/he;

    move-result-object v4

    invoke-virtual {v4}, Lz5/he;->d()Z

    move-result v4

    if-eqz v4, :cond_82

    const-string v0, "Is interstitial. Cannot resize an interstitial."

    goto :goto_63

    :cond_82
    iget-object v4, v2, Lz5/nz;->D:Lcom/google/android/gms/internal/ads/g2;

    invoke-interface {v4}, Lcom/google/android/gms/internal/ads/g2;->H()Z

    move-result v4

    if-nez v4, :cond_49c

    const-string v4, "width"

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

    move-result-object v4

    check-cast v4, Ljava/lang/CharSequence;

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

    move-result v4

    if-nez v4, :cond_a9

    invoke-static {}, Lcom/google/android/gms/ads/internal/zzt;->zzc()Lcom/google/android/gms/ads/internal/util/zzs;

    const-string v4, "width"

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

    move-result-object v4

    check-cast v4, Ljava/lang/String;

    invoke-static {v4}, Lcom/google/android/gms/ads/internal/util/zzs;->zzQ(Ljava/lang/String;)I

    move-result v4

    iput v4, v2, Lz5/nz;->B:I

    :cond_a9
    const-string v4, "height"

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

    move-result-object v4

    check-cast v4, Ljava/lang/CharSequence;

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

    move-result v4

    if-nez v4, :cond_c8

    invoke-static {}, Lcom/google/android/gms/ads/internal/zzt;->zzc()Lcom/google/android/gms/ads/internal/util/zzs;

    const-string v4, "height"

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

    move-result-object v4

    check-cast v4, Ljava/lang/String;

    invoke-static {v4}, Lcom/google/android/gms/ads/internal/util/zzs;->zzQ(Ljava/lang/String;)I

    move-result v4

    iput v4, v2, Lz5/nz;->y:I

    :cond_c8
    const-string v4, "offsetX"

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

    move-result-object v4

    check-cast v4, Ljava/lang/CharSequence;

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

    move-result v4

    if-nez v4, :cond_e7

    invoke-static {}, Lcom/google/android/gms/ads/internal/zzt;->zzc()Lcom/google/android/gms/ads/internal/util/zzs;

    const-string v4, "offsetX"

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

    move-result-object v4

    check-cast v4, Ljava/lang/String;

    invoke-static {v4}, Lcom/google/android/gms/ads/internal/util/zzs;->zzQ(Ljava/lang/String;)I

    move-result v4

    iput v4, v2, Lz5/nz;->z:I

    :cond_e7
    const-string v4, "offsetY"

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

    move-result-object v4

    check-cast v4, Ljava/lang/CharSequence;

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

    move-result v4

    if-nez v4, :cond_106

    invoke-static {}, Lcom/google/android/gms/ads/internal/zzt;->zzc()Lcom/google/android/gms/ads/internal/util/zzs;

    const-string v4, "offsetY"

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

    move-result-object v4

    check-cast v4, Ljava/lang/String;

    invoke-static {v4}, Lcom/google/android/gms/ads/internal/util/zzs;->zzQ(Ljava/lang/String;)I

    move-result v4

    iput v4, v2, Lz5/nz;->A:I

    :cond_106
    const-string v4, "allowOffscreen"

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

    move-result-object v4

    check-cast v4, Ljava/lang/CharSequence;

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

    move-result v4

    if-nez v4, :cond_122

    const-string v4, "allowOffscreen"

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

    move-result-object v4

    check-cast v4, Ljava/lang/String;

    invoke-static {v4}, Ljava/lang/Boolean;->parseBoolean(Ljava/lang/String;)Z

    move-result v4

    iput-boolean v4, v2, Lz5/nz;->v:Z

    :cond_122
    const-string v4, "customClosePosition"

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

    move-result-object v0

    check-cast v0, Ljava/lang/String;

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

    move-result v4

    if-nez v4, :cond_132

    iput-object v0, v2, Lz5/nz;->u:Ljava/lang/String;

    :cond_132
    iget v0, v2, Lz5/nz;->B:I

    if-ltz v0, :cond_498

    iget v0, v2, Lz5/nz;->y:I

    if-ltz v0, :cond_498

    iget-object v0, v2, Lz5/nz;->E:Landroid/app/Activity;

    invoke-virtual {v0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object v0

    if-eqz v0, :cond_494

    invoke-virtual {v0}, Landroid/view/Window;->getDecorView()Landroid/view/View;

    move-result-object v4

    if-nez v4, :cond_14a

    goto/16 :goto_494

    :cond_14a
    invoke-static {}, Lcom/google/android/gms/ads/internal/zzt;->zzc()Lcom/google/android/gms/ads/internal/util/zzs;

    iget-object v4, v2, Lz5/nz;->E:Landroid/app/Activity;

    invoke-static {v4}, Lcom/google/android/gms/ads/internal/util/zzs;->zzY(Landroid/app/Activity;)[I

    move-result-object v4

    invoke-static {}, Lcom/google/android/gms/ads/internal/zzt;->zzc()Lcom/google/android/gms/ads/internal/util/zzs;

    iget-object v5, v2, Lz5/nz;->E:Landroid/app/Activity;

    invoke-static {v5}, Lcom/google/android/gms/ads/internal/util/zzs;->zzV(Landroid/app/Activity;)[I

    move-result-object v5

    const/4 v10, 0x0

    aget v10, v4, v10

    aget v4, v4, v6

    iget v11, v2, Lz5/nz;->B:I

    const/4 v12, 0x2

    const/16 v13, 0x32

    if-lt v11, v13, :cond_29f

    if-le v11, v10, :cond_16c

    goto/16 :goto_29f

    :cond_16c
    iget v14, v2, Lz5/nz;->y:I

    if-lt v14, v13, :cond_29c

    if-le v14, v4, :cond_174

    goto/16 :goto_29c

    :cond_174
    if-ne v14, v4, :cond_17c

    if-ne v11, v10, :cond_17c

    const-string v4, "Cannot resize to a full-screen ad."

    goto/16 :goto_2a1

    :cond_17c
    iget-boolean v4, v2, Lz5/nz;->v:Z

    if-eqz v4, :cond_258

    iget-object v4, v2, Lz5/nz;->u:Ljava/lang/String;

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

    move-result v15
    :try_end_186
    .catchall {:try_start_5d .. :try_end_186} :catchall_4a2

    sparse-switch v15, :sswitch_data_502

    goto :goto_1c6

    :sswitch_18a
    const-string v15, "top-center"

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

    move-result v4

    if-eqz v4, :cond_1c6

    move v4, v6

    goto :goto_1c7

    :sswitch_194
    const-string v15, "bottom-center"

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

    move-result v4

    if-eqz v4, :cond_1c6

    move v4, v8

    goto :goto_1c7

    :sswitch_19e
    const-string v15, "bottom-right"

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

    move-result v4

    if-eqz v4, :cond_1c6

    move v4, v7

    goto :goto_1c7

    :sswitch_1a8
    const-string v15, "bottom-left"

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

    move-result v4

    if-eqz v4, :cond_1c6

    move v4, v9

    goto :goto_1c7

    :sswitch_1b2
    const-string v15, "top-left"

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

    move-result v4

    if-eqz v4, :cond_1c6

    const/4 v4, 0x0

    goto :goto_1c7

    :sswitch_1bc
    const-string v15, "center"

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

    move-result v4

    if-eqz v4, :cond_1c6

    move v4, v12

    goto :goto_1c7

    :cond_1c6
    :goto_1c6
    const/4 v4, -0x1

    :goto_1c7
    if-eqz v4, :cond_22c

    if-eq v4, v6, :cond_21f

    if-eq v4, v12, :cond_20a

    if-eq v4, v9, :cond_1fa

    if-eq v4, v8, :cond_1ed

    if-eq v4, v7, :cond_1e0

    :try_start_1d3
    iget v4, v2, Lz5/nz;->w:I

    iget v14, v2, Lz5/nz;->z:I

    const/16 v15, -0x32

    invoke-static {v4, v14, v11, v15}, Landroidx/appcompat/widget/d;->a(IIII)I

    move-result v4
    :try_end_1dd
    .catchall {:try_start_1d3 .. :try_end_1dd} :catchall_4a2

    iget v11, v2, Lz5/nz;->x:I

    goto :goto_233

    :cond_1e0
    :try_start_1e0
    iget v4, v2, Lz5/nz;->w:I

    iget v15, v2, Lz5/nz;->z:I

    const/16 v7, -0x32

    invoke-static {v4, v15, v11, v7}, Landroidx/appcompat/widget/d;->a(IIII)I

    move-result v4
    :try_end_1ea
    .catchall {:try_start_1e0 .. :try_end_1ea} :catchall_4a2

    iget v7, v2, Lz5/nz;->x:I

    goto :goto_201

    :cond_1ed
    :try_start_1ed
    iget v4, v2, Lz5/nz;->w:I

    iget v7, v2, Lz5/nz;->z:I

    add-int/2addr v4, v7

    shr-int/lit8 v7, v11, 0x1

    add-int/2addr v4, v7

    add-int/lit8 v4, v4, -0x19

    iget v7, v2, Lz5/nz;->x:I

    goto :goto_201

    :cond_1fa
    iget v4, v2, Lz5/nz;->w:I

    iget v7, v2, Lz5/nz;->z:I

    add-int/2addr v4, v7

    iget v7, v2, Lz5/nz;->x:I

    :goto_201
    iget v11, v2, Lz5/nz;->A:I
    :try_end_203
    .catchall {:try_start_1ed .. :try_end_203} :catchall_4a2

    const/16 v15, -0x32

    invoke-static {v7, v11, v14, v15}, Landroidx/appcompat/widget/d;->a(IIII)I

    move-result v7

    goto :goto_236

    :cond_20a
    :try_start_20a
    iget v4, v2, Lz5/nz;->w:I

    iget v7, v2, Lz5/nz;->z:I

    add-int/2addr v4, v7

    shr-int/lit8 v7, v11, 0x1

    add-int/2addr v4, v7

    add-int/lit8 v4, v4, -0x19

    iget v7, v2, Lz5/nz;->x:I

    iget v11, v2, Lz5/nz;->A:I

    add-int/2addr v7, v11

    shr-int/lit8 v11, v14, 0x1

    add-int/2addr v7, v11

    add-int/lit8 v7, v7, -0x19

    goto :goto_236

    :cond_21f
    iget v4, v2, Lz5/nz;->w:I

    iget v7, v2, Lz5/nz;->z:I

    add-int/2addr v4, v7

    shr-int/lit8 v7, v11, 0x1

    add-int/2addr v4, v7

    add-int/lit8 v4, v4, -0x19

    iget v11, v2, Lz5/nz;->x:I

    goto :goto_233

    :cond_22c
    iget v4, v2, Lz5/nz;->w:I

    iget v7, v2, Lz5/nz;->z:I

    add-int/2addr v4, v7

    iget v11, v2, Lz5/nz;->x:I

    :goto_233
    iget v7, v2, Lz5/nz;->A:I

    add-int/2addr v7, v11

    :goto_236
    if-ltz v4, :cond_2a4

    add-int/2addr v4, v13

    if-gt v4, v10, :cond_2a4

    const/4 v4, 0x0

    aget v4, v5, v4

    if-lt v7, v4, :cond_2a4

    add-int/2addr v7, v13

    aget v4, v5, v6

    if-le v7, v4, :cond_246

    goto :goto_2a4

    :cond_246
    new-array v4, v12, [I

    iget v5, v2, Lz5/nz;->w:I

    iget v7, v2, Lz5/nz;->z:I

    add-int/2addr v5, v7

    const/4 v7, 0x0

    aput v5, v4, v7

    iget v5, v2, Lz5/nz;->x:I

    iget v7, v2, Lz5/nz;->A:I

    add-int/2addr v5, v7

    aput v5, v4, v6

    goto :goto_2a5

    :cond_258
    invoke-static {}, Lcom/google/android/gms/ads/internal/zzt;->zzc()Lcom/google/android/gms/ads/internal/util/zzs;

    iget-object v4, v2, Lz5/nz;->E:Landroid/app/Activity;

    invoke-static {v4}, Lcom/google/android/gms/ads/internal/util/zzs;->zzY(Landroid/app/Activity;)[I

    move-result-object v4

    invoke-static {}, Lcom/google/android/gms/ads/internal/zzt;->zzc()Lcom/google/android/gms/ads/internal/util/zzs;

    iget-object v5, v2, Lz5/nz;->E:Landroid/app/Activity;

    invoke-static {v5}, Lcom/google/android/gms/ads/internal/util/zzs;->zzV(Landroid/app/Activity;)[I

    move-result-object v5

    const/4 v7, 0x0

    aget v4, v4, v7

    iget v7, v2, Lz5/nz;->w:I

    iget v10, v2, Lz5/nz;->z:I

    add-int/2addr v7, v10

    iget v10, v2, Lz5/nz;->x:I

    iget v11, v2, Lz5/nz;->A:I

    add-int/2addr v10, v11

    if-gez v7, :cond_27b

    const/4 v7, 0x0

    goto :goto_283

    :cond_27b
    iget v11, v2, Lz5/nz;->B:I

    add-int v14, v7, v11

    if-le v14, v4, :cond_283

    sub-int v7, v4, v11

    :cond_283
    :goto_283
    const/4 v4, 0x0

    aget v4, v5, v4

    if-ge v10, v4, :cond_28a

    move v10, v4

    goto :goto_294

    :cond_28a
    iget v4, v2, Lz5/nz;->y:I

    add-int v11, v10, v4

    aget v5, v5, v6

    if-le v11, v5, :cond_294

    sub-int v10, v5, v4

    :cond_294
    :goto_294
    new-array v4, v12, [I

    const/4 v5, 0x0

    aput v7, v4, v5

    aput v10, v4, v6

    goto :goto_2a5

    :cond_29c
    :goto_29c
    const-string v4, "Height is too small or too large."

    goto :goto_2a1

    :cond_29f
    :goto_29f
    const-string v4, "Width is too small or too large."

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

    :cond_2a4
    :goto_2a4
    const/4 v4, 0x0

    :goto_2a5
    if-nez v4, :cond_2ab

    const-string v0, "Resize location out of screen or close button is not visible."

    goto/16 :goto_63

    .line 2
    :cond_2ab
    sget-object v5, Lz5/wk;->f:Lz5/wk;

    iget-object v5, v5, Lz5/wk;->a:Lz5/z40;

    .line 3
    iget-object v5, v2, Lz5/nz;->E:Landroid/app/Activity;

    iget v7, v2, Lz5/nz;->B:I

    invoke-static {v5, v7}, Lz5/z40;->m(Landroid/content/Context;I)I

    move-result v5

    iget-object v7, v2, Lz5/nz;->E:Landroid/app/Activity;

    iget v10, v2, Lz5/nz;->y:I

    invoke-static {v7, v10}, Lz5/z40;->m(Landroid/content/Context;I)I

    move-result v7

    iget-object v10, v2, Lz5/nz;->D:Lcom/google/android/gms/internal/ads/g2;

    check-cast v10, Landroid/view/View;

    invoke-virtual {v10}, Landroid/view/View;->getParent()Landroid/view/ViewParent;

    move-result-object v10

    if-eqz v10, :cond_490

    instance-of v11, v10, Landroid/view/ViewGroup;

    if-eqz v11, :cond_490

    check-cast v10, Landroid/view/ViewGroup;

    iget-object v11, v2, Lz5/nz;->D:Lcom/google/android/gms/internal/ads/g2;

    check-cast v11, Landroid/view/View;

    invoke-virtual {v10, v11}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V

    iget-object v11, v2, Lz5/nz;->J:Landroid/widget/PopupWindow;

    if-nez v11, :cond_314

    iput-object v10, v2, Lz5/nz;->L:Landroid/view/ViewGroup;

    invoke-static {}, Lcom/google/android/gms/ads/internal/zzt;->zzc()Lcom/google/android/gms/ads/internal/util/zzs;

    iget-object v10, v2, Lz5/nz;->D:Lcom/google/android/gms/internal/ads/g2;

    move-object v11, v10

    check-cast v11, Landroid/view/View;

    invoke-virtual {v11, v6}, Landroid/view/View;->setDrawingCacheEnabled(Z)V

    move-object v11, v10

    check-cast v11, Landroid/view/View;

    invoke-virtual {v11}, Landroid/view/View;->getDrawingCache()Landroid/graphics/Bitmap;

    move-result-object v11

    invoke-static {v11}, Landroid/graphics/Bitmap;->createBitmap(Landroid/graphics/Bitmap;)Landroid/graphics/Bitmap;

    move-result-object v11

    check-cast v10, Landroid/view/View;

    const/4 v14, 0x0

    invoke-virtual {v10, v14}, Landroid/view/View;->setDrawingCacheEnabled(Z)V

    new-instance v10, Landroid/widget/ImageView;

    iget-object v14, v2, Lz5/nz;->E:Landroid/app/Activity;

    invoke-direct {v10, v14}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    iput-object v10, v2, Lz5/nz;->G:Landroid/widget/ImageView;

    invoke-virtual {v10, v11}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    iget-object v10, v2, Lz5/nz;->D:Lcom/google/android/gms/internal/ads/g2;

    invoke-interface {v10}, Lcom/google/android/gms/internal/ads/g2;->f()Lz5/he;

    move-result-object v10

    iput-object v10, v2, Lz5/nz;->F:Lz5/he;

    iget-object v10, v2, Lz5/nz;->L:Landroid/view/ViewGroup;

    iget-object v11, v2, Lz5/nz;->G:Landroid/widget/ImageView;

    invoke-virtual {v10, v11}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V

    goto :goto_317

    :cond_314
    invoke-virtual {v11}, Landroid/widget/PopupWindow;->dismiss()V

    :goto_317
    new-instance v10, Landroid/widget/RelativeLayout;

    iget-object v11, v2, Lz5/nz;->E:Landroid/app/Activity;

    invoke-direct {v10, v11}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;)V

    iput-object v10, v2, Lz5/nz;->K:Landroid/widget/RelativeLayout;

    const/4 v11, 0x0

    invoke-virtual {v10, v11}, Landroid/widget/RelativeLayout;->setBackgroundColor(I)V

    iget-object v10, v2, Lz5/nz;->K:Landroid/widget/RelativeLayout;

    new-instance v11, Landroid/view/ViewGroup$LayoutParams;

    invoke-direct {v11, v5, v7}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V

    invoke-virtual {v10, v11}, Landroid/widget/RelativeLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    invoke-static {}, Lcom/google/android/gms/ads/internal/zzt;->zzc()Lcom/google/android/gms/ads/internal/util/zzs;

    iget-object v10, v2, Lz5/nz;->K:Landroid/widget/RelativeLayout;

    new-instance v11, Landroid/widget/PopupWindow;

    const/4 v14, 0x0

    invoke-direct {v11, v10, v5, v7, v14}, Landroid/widget/PopupWindow;-><init>(Landroid/view/View;IIZ)V

    iput-object v11, v2, Lz5/nz;->J:Landroid/widget/PopupWindow;

    invoke-virtual {v11, v14}, Landroid/widget/PopupWindow;->setOutsideTouchable(Z)V

    iget-object v10, v2, Lz5/nz;->J:Landroid/widget/PopupWindow;

    invoke-virtual {v10, v6}, Landroid/widget/PopupWindow;->setTouchable(Z)V

    iget-object v10, v2, Lz5/nz;->J:Landroid/widget/PopupWindow;

    iget-boolean v11, v2, Lz5/nz;->v:Z

    xor-int/2addr v11, v6

    invoke-virtual {v10, v11}, Landroid/widget/PopupWindow;->setClippingEnabled(Z)V

    iget-object v10, v2, Lz5/nz;->K:Landroid/widget/RelativeLayout;

    iget-object v11, v2, Lz5/nz;->D:Lcom/google/android/gms/internal/ads/g2;

    check-cast v11, Landroid/view/View;

    const/4 v14, -0x1

    invoke-virtual {v10, v11, v14, v14}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;II)V

    new-instance v10, Landroid/widget/LinearLayout;

    iget-object v11, v2, Lz5/nz;->E:Landroid/app/Activity;

    invoke-direct {v10, v11}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    iput-object v10, v2, Lz5/nz;->H:Landroid/widget/LinearLayout;

    new-instance v10, Landroid/widget/RelativeLayout$LayoutParams;

    iget-object v11, v2, Lz5/nz;->E:Landroid/app/Activity;

    invoke-static {v11, v13}, Lz5/z40;->m(Landroid/content/Context;I)I

    move-result v11

    iget-object v14, v2, Lz5/nz;->E:Landroid/app/Activity;

    invoke-static {v14, v13}, Lz5/z40;->m(Landroid/content/Context;I)I

    move-result v13

    invoke-direct {v10, v11, v13}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    iget-object v11, v2, Lz5/nz;->u:Ljava/lang/String;

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

    move-result v13
    :try_end_375
    .catchall {:try_start_20a .. :try_end_375} :catchall_4a2

    sparse-switch v13, :sswitch_data_51c

    goto :goto_3b5

    :sswitch_379
    const-string v13, "top-center"

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

    move-result v11

    if-eqz v11, :cond_3b5

    move v11, v6

    goto :goto_3b6

    :sswitch_383
    const-string v13, "bottom-center"

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

    move-result v11

    if-eqz v11, :cond_3b5

    move v11, v8

    goto :goto_3b6

    :sswitch_38d
    const-string v13, "bottom-right"

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

    move-result v11

    if-eqz v11, :cond_3b5

    const/4 v11, 0x5

    goto :goto_3b6

    :sswitch_397
    const-string v13, "bottom-left"

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

    move-result v11

    if-eqz v11, :cond_3b5

    move v11, v9

    goto :goto_3b6

    :sswitch_3a1
    const-string v13, "top-left"

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

    move-result v11

    if-eqz v11, :cond_3b5

    const/4 v11, 0x0

    goto :goto_3b6

    :sswitch_3ab
    const-string v13, "center"

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

    move-result v11

    if-eqz v11, :cond_3b5

    move v11, v12

    goto :goto_3b6

    :cond_3b5
    :goto_3b5
    const/4 v11, -0x1

    :goto_3b6
    const/16 v13, 0x9

    const/16 v14, 0xa

    if-eqz v11, :cond_3e3

    const/16 v15, 0xe

    if-eq v11, v6, :cond_3dc

    if-eq v11, v12, :cond_3d6

    const/16 v12, 0xc

    if-eq v11, v9, :cond_3d2

    if-eq v11, v8, :cond_3ce

    const/16 v15, 0xb

    const/4 v8, 0x5

    if-eq v11, v8, :cond_3ce

    goto :goto_3dc

    :cond_3ce
    :try_start_3ce
    invoke-virtual {v10, v12}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    goto :goto_3df

    :cond_3d2
    invoke-virtual {v10, v12}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    goto :goto_3e6

    :cond_3d6
    const/16 v8, 0xd

    invoke-virtual {v10, v8}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    goto :goto_3e9

    :cond_3dc
    :goto_3dc
    invoke-virtual {v10, v14}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    :goto_3df
    invoke-virtual {v10, v15}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    goto :goto_3e9

    :cond_3e3
    invoke-virtual {v10, v14}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    :goto_3e6
    invoke-virtual {v10, v13}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    :goto_3e9
    iget-object v8, v2, Lz5/nz;->H:Landroid/widget/LinearLayout;

    new-instance v9, Lz5/mz;

    invoke-direct {v9, v2}, Lz5/mz;-><init>(Lz5/nz;)V

    invoke-virtual {v8, v9}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v8, v2, Lz5/nz;->H:Landroid/widget/LinearLayout;

    const-string v9, "Close button"

    invoke-virtual {v8, v9}, Landroid/widget/LinearLayout;->setContentDescription(Ljava/lang/CharSequence;)V

    iget-object v8, v2, Lz5/nz;->K:Landroid/widget/RelativeLayout;

    iget-object v9, v2, Lz5/nz;->H:Landroid/widget/LinearLayout;

    invoke-virtual {v8, v9, v10}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
    :try_end_401
    .catchall {:try_start_3ce .. :try_end_401} :catchall_4a2

    :try_start_401
    iget-object v8, v2, Lz5/nz;->J:Landroid/widget/PopupWindow;

    invoke-virtual {v0}, Landroid/view/Window;->getDecorView()Landroid/view/View;

    move-result-object v0

    iget-object v9, v2, Lz5/nz;->E:Landroid/app/Activity;

    const/4 v10, 0x0

    aget v10, v4, v10

    invoke-static {v9, v10}, Lz5/z40;->m(Landroid/content/Context;I)I

    move-result v9

    iget-object v10, v2, Lz5/nz;->E:Landroid/app/Activity;

    aget v11, v4, v6

    invoke-static {v10, v11}, Lz5/z40;->m(Landroid/content/Context;I)I

    move-result v10

    const/4 v11, 0x0

    invoke-virtual {v8, v0, v11, v9, v10}, Landroid/widget/PopupWindow;->showAtLocation(Landroid/view/View;III)V
    :try_end_41c
    .catch Ljava/lang/RuntimeException; {:try_start_401 .. :try_end_41c} :catch_44f
    .catchall {:try_start_401 .. :try_end_41c} :catchall_4a2

    :try_start_41c
    aget v0, v4, v11

    aget v0, v4, v6

    iget-object v0, v2, Lz5/nz;->I:Lz5/xa0;

    if-eqz v0, :cond_427

    invoke-virtual {v0}, Lz5/xa0;->zza()V

    :cond_427
    iget-object v0, v2, Lz5/nz;->D:Lcom/google/android/gms/internal/ads/g2;

    invoke-static {v5, v7}, Lz5/he;->c(II)Lz5/he;

    move-result-object v5

    invoke-interface {v0, v5}, Lcom/google/android/gms/internal/ads/g2;->I(Lz5/he;)V

    const/4 v0, 0x0

    aget v0, v4, v0

    aget v4, v4, v6

    invoke-static {}, Lcom/google/android/gms/ads/internal/zzt;->zzc()Lcom/google/android/gms/ads/internal/util/zzs;

    iget-object v5, v2, Lz5/nz;->E:Landroid/app/Activity;

    invoke-static {v5}, Lcom/google/android/gms/ads/internal/util/zzs;->zzV(Landroid/app/Activity;)[I

    move-result-object v5

    const/4 v6, 0x0

    aget v5, v5, v6

    sub-int/2addr v4, v5

    iget v5, v2, Lz5/nz;->B:I

    iget v6, v2, Lz5/nz;->y:I

    invoke-virtual {v2, v0, v4, v5, v6}, Landroidx/appcompat/widget/n;->A(IIII)V

    const-string v0, "resized"

    invoke-virtual {v2, v0}, Landroidx/appcompat/widget/n;->B(Ljava/lang/String;)V

    goto :goto_4a0

    :catch_44f
    move-exception v0

    const-string v4, "Cannot show popup window: "

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

    move-result-object v0

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

    move-result-object v0

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

    move-result v5

    if-eqz v5, :cond_465

    invoke-virtual {v4, v0}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    goto :goto_46a

    :cond_465
    new-instance v0, Ljava/lang/String;

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

    :goto_46a
    invoke-virtual {v2, v0}, Landroidx/appcompat/widget/n;->v(Ljava/lang/String;)V

    iget-object v0, v2, Lz5/nz;->K:Landroid/widget/RelativeLayout;

    iget-object v4, v2, Lz5/nz;->D:Lcom/google/android/gms/internal/ads/g2;

    check-cast v4, Landroid/view/View;

    invoke-virtual {v0, v4}, Landroid/widget/RelativeLayout;->removeView(Landroid/view/View;)V

    iget-object v0, v2, Lz5/nz;->L:Landroid/view/ViewGroup;

    if-eqz v0, :cond_4a0

    iget-object v4, v2, Lz5/nz;->G:Landroid/widget/ImageView;

    invoke-virtual {v0, v4}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V

    iget-object v0, v2, Lz5/nz;->L:Landroid/view/ViewGroup;

    iget-object v4, v2, Lz5/nz;->D:Lcom/google/android/gms/internal/ads/g2;

    check-cast v4, Landroid/view/View;

    invoke-virtual {v0, v4}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V

    iget-object v0, v2, Lz5/nz;->D:Lcom/google/android/gms/internal/ads/g2;

    iget-object v2, v2, Lz5/nz;->F:Lz5/he;

    invoke-interface {v0, v2}, Lcom/google/android/gms/internal/ads/g2;->I(Lz5/he;)V

    goto :goto_4a0

    :cond_490
    const-string v0, "Webview is detached, probably in the middle of a resize or expand."

    goto/16 :goto_63

    :cond_494
    :goto_494
    const-string v0, "Activity context is not ready, cannot get window or decor view."

    goto/16 :goto_63

    :cond_498
    const-string v0, "Invalid width and height options. Cannot resize."

    goto/16 :goto_63

    :cond_49c
    const-string v0, "Cannot resize an expanded banner."

    goto/16 :goto_63

    :cond_4a0
    :goto_4a0
    monitor-exit v3

    return-void

    :catchall_4a2
    move-exception v0

    monitor-exit v3
    :try_end_4a4
    .catchall {:try_start_41c .. :try_end_4a4} :catchall_4a2

    throw v0

    .line 4
    :cond_4a5
    iget-object v0, v1, Lz5/gu;->r:Lcom/google/android/gms/ads/internal/zzb;

    const/4 v2, 0x0

    invoke-virtual {v0, v2}, Lcom/google/android/gms/ads/internal/zzb;->zzc(Ljava/lang/String;)V

    return-void

    :cond_4ac
    iget-object v0, v1, Lz5/gu;->t:Lz5/xa0;

    .line 5
    iget-object v0, v0, Lz5/xa0;->s:Ljava/lang/Object;

    check-cast v0, Lz5/mp0;

    .line 6
    iget-object v0, v0, Lz5/mp0;->m:Lz5/ri0;

    .line 7
    sget-object v2, Lz5/qi0;->r:Lz5/fj0;

    invoke-virtual {v0, v2}, Lcom/google/android/gms/internal/ads/v2;->u0(Lz5/fj0;)V

    return-void

    :cond_4ba
    const-string v3, "forceOrientation"

    .line 8
    invoke-interface {v0, v3}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/lang/String;

    const-string v7, "allowOrientationChange"

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

    move-result v7

    if-eqz v7, :cond_4d6

    const-string v6, "allowOrientationChange"

    invoke-interface {v0, v6}, 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/Boolean;->parseBoolean(Ljava/lang/String;)Z

    move-result v6

    :cond_4d6
    if-nez v2, :cond_4de

    const-string v0, "AdWebView is null"

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

    return-void

    :cond_4de
    const-string v0, "portrait"

    invoke-virtual {v0, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_4e8

    move v4, v5

    goto :goto_4fd

    :cond_4e8
    const-string v0, "landscape"

    invoke-virtual {v0, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_4f1

    goto :goto_4fd

    :cond_4f1
    if-eqz v6, :cond_4f5

    const/4 v4, -0x1

    goto :goto_4fd

    :cond_4f5
    invoke-static {}, Lcom/google/android/gms/ads/internal/zzt;->zze()Lcom/google/android/gms/ads/internal/util/zzad;

    move-result-object v0

    invoke-virtual {v0}, Lcom/google/android/gms/ads/internal/util/zzad;->zzh()I

    move-result v4

    :goto_4fd
    invoke-interface {v2, v4}, Lcom/google/android/gms/internal/ads/g2;->L(I)V

    return-void

    nop

    :sswitch_data_502
    .sparse-switch
        -0x514d33ab -> :sswitch_1bc
        -0x3c587281 -> :sswitch_1b2
        -0x27103597 -> :sswitch_1a8
        0x455fe3fa -> :sswitch_19e
        0x4ccee637 -> :sswitch_194
        0x68a23bcd -> :sswitch_18a
    .end sparse-switch

    :sswitch_data_51c
    .sparse-switch
        -0x514d33ab -> :sswitch_3ab
        -0x3c587281 -> :sswitch_3a1
        -0x27103597 -> :sswitch_397
        0x455fe3fa -> :sswitch_38d
        0x4ccee637 -> :sswitch_383
        0x68a23bcd -> :sswitch_379
    .end sparse-switch
.end method
