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

# interfaces
.implements Lz5/pz0;


# instance fields
.field public final a:Lz5/ay0;

.field public final b:Ljava/util/ArrayList;


# direct methods
.method public constructor <init>(Lz5/ay0;Ljava/util/ArrayList;)V
    .registers 3

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

    iput-object p1, p0, Lz5/oz0;->a:Lz5/ay0;

    iput-object p2, p0, Lz5/oz0;->b:Ljava/util/ArrayList;

    return-void
.end method


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

    iget-object v0, p0, Lz5/oz0;->a:Lz5/ay0;

    iget-object v1, p0, Lz5/oz0;->b:Ljava/util/ArrayList;

    check-cast p1, Landroid/os/Bundle;

    invoke-static {v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;

    const/4 v2, 0x3

    const-string v3, "native_version"

    .line 1
    invoke-virtual {p1, v3, v2}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    const-string v3, "native_templates"

    invoke-virtual {p1, v3, v1}, Landroid/os/Bundle;->putStringArrayList(Ljava/lang/String;Ljava/util/ArrayList;)V

    iget-object v1, v0, Lz5/ay0;->d:Ljava/lang/Object;

    check-cast v1, Lz5/m31;

    iget-object v1, v1, Lz5/m31;->h:Ljava/util/ArrayList;

    const-string v3, "native_custom_templates"

    invoke-virtual {p1, v3, v1}, Landroid/os/Bundle;->putStringArrayList(Ljava/lang/String;Ljava/util/ArrayList;)V

    iget-object v1, v0, Lz5/ay0;->d:Ljava/lang/Object;

    check-cast v1, Lz5/m31;

    iget-object v1, v1, Lz5/m31;->i:Lz5/pq;

    iget v1, v1, Lz5/pq;->r:I

    const-string v3, "landscape"

    const-string v4, "portrait"

    const-string v5, "any"

    const-string v6, "unknown"

    const/4 v7, 0x2

    const/4 v8, 0x1

    if-le v1, v2, :cond_5e

    const-string v1, "enable_native_media_orientation"

    invoke-virtual {p1, v1, v8}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V

    iget-object v1, v0, Lz5/ay0;->d:Ljava/lang/Object;

    check-cast v1, Lz5/m31;

    iget-object v1, v1, Lz5/m31;->i:Lz5/pq;

    iget v1, v1, Lz5/pq;->y:I

    if-eq v1, v8, :cond_52

    if-eq v1, v7, :cond_50

    if-eq v1, v2, :cond_4e

    const/4 v9, 0x4

    if-eq v1, v9, :cond_4b

    move-object v1, v6

    goto :goto_53

    :cond_4b
    const-string v1, "square"

    goto :goto_53

    :cond_4e
    move-object v1, v4

    goto :goto_53

    :cond_50
    move-object v1, v3

    goto :goto_53

    :cond_52
    move-object v1, v5

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

    move-result v9

    if-nez v9, :cond_5e

    const-string v9, "native_media_orientation"

    invoke-virtual {p1, v9, v1}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    :cond_5e
    iget-object v1, v0, Lz5/ay0;->d:Ljava/lang/Object;

    check-cast v1, Lz5/m31;

    iget-object v1, v1, Lz5/m31;->i:Lz5/pq;

    iget v1, v1, Lz5/pq;->t:I

    if-eqz v1, :cond_70

    if-eq v1, v8, :cond_6e

    if-eq v1, v7, :cond_71

    move-object v3, v6

    goto :goto_71

    :cond_6e
    move-object v3, v4

    goto :goto_71

    :cond_70
    move-object v3, v5

    :cond_71
    :goto_71
    invoke-virtual {v6, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_7c

    const-string v1, "native_image_orientation"

    invoke-virtual {p1, v1, v3}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    :cond_7c
    iget-object v1, v0, Lz5/ay0;->d:Ljava/lang/Object;

    check-cast v1, Lz5/m31;

    iget-object v1, v1, Lz5/m31;->i:Lz5/pq;

    iget-boolean v1, v1, Lz5/pq;->u:Z

    const-string v3, "native_multiple_images"

    invoke-virtual {p1, v3, v1}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V

    iget-object v1, v0, Lz5/ay0;->d:Ljava/lang/Object;

    check-cast v1, Lz5/m31;

    iget-object v1, v1, Lz5/m31;->i:Lz5/pq;

    iget-boolean v1, v1, Lz5/pq;->x:Z

    const-string v3, "use_custom_mute"

    invoke-virtual {p1, v3, v1}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V

    iget-object v1, v0, Lz5/ay0;->c:Ljava/lang/Object;

    check-cast v1, Landroid/content/pm/PackageInfo;

    if-nez v1, :cond_9e

    const/4 v1, 0x0

    goto :goto_a0

    :cond_9e
    iget v1, v1, Landroid/content/pm/PackageInfo;->versionCode:I

    :goto_a0
    iget-object v3, v0, Lz5/ay0;->e:Ljava/lang/Object;

    check-cast v3, Lcom/google/android/gms/ads/internal/util/zzg;

    invoke-interface {v3}, Lcom/google/android/gms/ads/internal/util/zzg;->zzl()I

    move-result v3

    if-le v1, v3, :cond_b8

    iget-object v3, v0, Lz5/ay0;->e:Ljava/lang/Object;

    check-cast v3, Lcom/google/android/gms/ads/internal/util/zzg;

    invoke-interface {v3}, Lcom/google/android/gms/ads/internal/util/zzg;->zzy()V

    iget-object v3, v0, Lz5/ay0;->e:Ljava/lang/Object;

    check-cast v3, Lcom/google/android/gms/ads/internal/util/zzg;

    invoke-interface {v3, v1}, Lcom/google/android/gms/ads/internal/util/zzg;->zzk(I)V

    :cond_b8
    iget-object v1, v0, Lz5/ay0;->e:Ljava/lang/Object;

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

    invoke-interface {v1}, Lcom/google/android/gms/ads/internal/util/zzg;->zzx()Lorg/json/JSONObject;

    move-result-object v1

    const/4 v3, 0x0

    if-eqz v1, :cond_d3

    iget-object v4, v0, Lz5/ay0;->d:Ljava/lang/Object;

    check-cast v4, Lz5/m31;

    iget-object v4, v4, Lz5/m31;->f:Ljava/lang/String;

    invoke-virtual {v1, v4}, Lorg/json/JSONObject;->optJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v1

    if-eqz v1, :cond_d3

    invoke-virtual {v1}, Lorg/json/JSONArray;->toString()Ljava/lang/String;

    move-result-object v3

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

    move-result v1

    if-nez v1, :cond_de

    const-string v1, "native_advanced_settings"

    invoke-virtual {p1, v1, v3}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    :cond_de
    iget-object v1, v0, Lz5/ay0;->d:Ljava/lang/Object;

    check-cast v1, Lz5/m31;

    iget v1, v1, Lz5/m31;->k:I

    if-le v1, v8, :cond_eb

    const-string v3, "max_num_ads"

    invoke-virtual {p1, v3, v1}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    :cond_eb
    iget-object v1, v0, Lz5/ay0;->d:Ljava/lang/Object;

    check-cast v1, Lz5/m31;

    iget-object v1, v1, Lz5/m31;->b:Lcom/google/android/gms/internal/ads/s0;

    if-eqz v1, :cond_13c

    iget-object v3, v1, Lcom/google/android/gms/internal/ads/s0;->t:Ljava/lang/String;

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

    move-result v3

    if-eqz v3, :cond_130

    iget v3, v1, Lcom/google/android/gms/internal/ads/s0;->r:I

    if-lt v3, v7, :cond_106

    iget v1, v1, Lcom/google/android/gms/internal/ads/s0;->u:I

    if-eq v1, v7, :cond_12b

    if-eq v1, v2, :cond_128

    goto :goto_12b

    :cond_106
    iget v1, v1, Lcom/google/android/gms/internal/ads/s0;->s:I

    if-eq v1, v8, :cond_12b

    if-eq v1, v7, :cond_128

    new-instance v2, Ljava/lang/StringBuilder;

    const/16 v3, 0x34

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

    const-string v3, "Instream ad video aspect ratio "

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

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

    const-string v1, " is wrong."

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

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

    move-result-object v1

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

    goto :goto_12b

    :cond_128
    const-string v1, "p"

    goto :goto_12d

    :cond_12b
    :goto_12b
    const-string v1, "l"

    :goto_12d
    const-string v2, "ia_var"

    goto :goto_134

    :cond_130
    iget-object v1, v1, Lcom/google/android/gms/internal/ads/s0;->t:Ljava/lang/String;

    const-string v2, "ad_tag"

    :goto_134
    invoke-virtual {p1, v2, v1}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    const-string v1, "instr"

    invoke-virtual {p1, v1, v8}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V

    :cond_13c
    iget-object v0, v0, Lz5/ay0;->d:Ljava/lang/Object;

    check-cast v0, Lz5/m31;

    invoke-virtual {v0}, Lz5/m31;->a()Lz5/qs;

    move-result-object v0

    if-eqz v0, :cond_14b

    const-string v0, "has_delayed_banner_listener"

    invoke-virtual {p1, v0, v8}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V

    :cond_14b
    return-void
.end method
