.class public Lcom/google/android/gms/ads/query/QueryInfo;
.super Ljava/lang/Object;
.source ""


# instance fields
.field private final zza:Lz5/mn;


# direct methods
.method public constructor <init>(Lz5/mn;)V
    .registers 2

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

    iput-object p1, p0, Lcom/google/android/gms/ads/query/QueryInfo;->zza:Lz5/mn;

    return-void
.end method

.method public static generate(Landroid/content/Context;Lcom/google/android/gms/ads/AdFormat;Lcom/google/android/gms/ads/AdRequest;Lcom/google/android/gms/ads/query/QueryInfoGenerationCallback;)V
    .registers 36
    .param p0    # Landroid/content/Context;
        .annotation build Landroidx/annotation/RecentlyNonNull;
        .end annotation
    .end param
    .param p1    # Lcom/google/android/gms/ads/AdFormat;
        .annotation build Landroidx/annotation/RecentlyNonNull;
        .end annotation
    .end param
    .param p3    # Lcom/google/android/gms/ads/query/QueryInfoGenerationCallback;
        .annotation build Landroidx/annotation/RecentlyNonNull;
        .end annotation
    .end param

    move-object/from16 v0, p3

    new-instance v1, Lcom/google/android/gms/internal/ads/d1;

    const/4 v2, 0x0

    if-nez p2, :cond_d

    move-object/from16 v4, p0

    move-object/from16 v5, p1

    move-object v3, v2

    goto :goto_15

    :cond_d
    invoke-virtual/range {p2 .. p2}, Lcom/google/android/gms/ads/AdRequest;->zza()Lcom/google/android/gms/internal/ads/c0;

    move-result-object v3

    move-object/from16 v4, p0

    move-object/from16 v5, p1

    :goto_15
    invoke-direct {v1, v4, v5, v3}, Lcom/google/android/gms/internal/ads/d1;-><init>(Landroid/content/Context;Lcom/google/android/gms/ads/AdFormat;Lcom/google/android/gms/internal/ads/c0;)V

    .line 1
    iget-object v3, v1, Lcom/google/android/gms/internal/ads/d1;->s:Ljava/lang/Object;

    check-cast v3, Landroid/content/Context;

    invoke-static {v3}, Lcom/google/android/gms/internal/ads/d1;->e(Landroid/content/Context;)Lz5/k40;

    move-result-object v3

    if-nez v3, :cond_26

    const-string v1, "Internal Error, query info generator is null."

    goto/16 :goto_a8

    :cond_26
    iget-object v4, v1, Lcom/google/android/gms/internal/ads/d1;->s:Ljava/lang/Object;

    check-cast v4, Landroid/content/Context;

    .line 2
    new-instance v5, Lx5/b;

    invoke-direct {v5, v4}, Lx5/b;-><init>(Ljava/lang/Object;)V

    .line 3
    iget-object v4, v1, Lcom/google/android/gms/internal/ads/d1;->u:Ljava/lang/Object;

    check-cast v4, Lcom/google/android/gms/internal/ads/c0;

    if-nez v4, :cond_86

    .line 4
    new-instance v4, Landroid/os/Bundle;

    move-object v10, v4

    invoke-direct {v4}, Landroid/os/Bundle;-><init>()V

    new-instance v4, Ljava/util/ArrayList;

    move-object v12, v4

    invoke-direct {v4}, Ljava/util/ArrayList;-><init>()V

    const/4 v13, 0x0

    const/16 v27, -0x1

    move/from16 v14, v27

    new-instance v4, Landroid/os/Bundle;

    move-object/from16 v20, v4

    invoke-direct {v4}, Landroid/os/Bundle;-><init>()V

    new-instance v4, Landroid/os/Bundle;

    move-object/from16 v21, v4

    invoke-direct {v4}, Landroid/os/Bundle;-><init>()V

    new-instance v4, Ljava/util/ArrayList;

    move-object/from16 v22, v4

    invoke-direct {v4}, Ljava/util/ArrayList;-><init>()V

    const/16 v28, 0x0

    new-instance v4, Ljava/util/ArrayList;

    move-object/from16 v29, v4

    invoke-direct {v4}, Ljava/util/ArrayList;-><init>()V

    const v30, 0xea60

    .line 5
    new-instance v4, Lz5/zj;

    move-object v6, v4

    const/16 v7, 0x8

    const-wide/16 v8, -0x1

    const/4 v11, -0x1

    const/4 v15, 0x0

    const/16 v16, 0x0

    const/16 v17, 0x0

    const/16 v18, 0x0

    const/16 v19, 0x0

    const/16 v23, 0x0

    const/16 v24, 0x0

    const/16 v25, 0x0

    const/16 v26, 0x0

    const/16 v31, 0x0

    invoke-direct/range {v6 .. v31}, Lz5/zj;-><init>(IJLandroid/os/Bundle;ILjava/util/List;ZIZLjava/lang/String;Lz5/ao;Landroid/location/Location;Ljava/lang/String;Landroid/os/Bundle;Landroid/os/Bundle;Ljava/util/List;Ljava/lang/String;Ljava/lang/String;ZLz5/qj;ILjava/lang/String;Ljava/util/List;ILjava/lang/String;)V

    goto :goto_90

    .line 6
    :cond_86
    sget-object v6, Lz5/ck;->a:Lz5/ck;

    iget-object v7, v1, Lcom/google/android/gms/internal/ads/d1;->s:Ljava/lang/Object;

    check-cast v7, Landroid/content/Context;

    invoke-virtual {v6, v7, v4}, Lz5/ck;->a(Landroid/content/Context;Lcom/google/android/gms/internal/ads/c0;)Lz5/zj;

    move-result-object v4

    :goto_90
    new-instance v6, Lcom/google/android/gms/internal/ads/q1;

    iget-object v1, v1, Lcom/google/android/gms/internal/ads/d1;->t:Ljava/lang/Object;

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

    invoke-virtual {v1}, Ljava/lang/Enum;->name()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v6, v2, v1, v2, v4}, Lcom/google/android/gms/internal/ads/q1;-><init>(Ljava/lang/String;Ljava/lang/String;Lz5/dk;Lz5/zj;)V

    :try_start_9d
    new-instance v1, Lz5/a10;

    invoke-direct {v1, v0}, Lz5/a10;-><init>(Lcom/google/android/gms/ads/query/QueryInfoGenerationCallback;)V

    invoke-interface {v3, v5, v6, v1}, Lz5/k40;->zze(Lx5/a;Lcom/google/android/gms/internal/ads/q1;Lz5/h40;)V
    :try_end_a5
    .catch Landroid/os/RemoteException; {:try_start_9d .. :try_end_a5} :catch_a6

    goto :goto_ab

    :catch_a6
    const-string v1, "Internal Error."

    :goto_a8
    invoke-virtual {v0, v1}, Lcom/google/android/gms/ads/query/QueryInfoGenerationCallback;->onFailure(Ljava/lang/String;)V

    :goto_ab
    return-void
.end method


# virtual methods
.method public getQuery()Ljava/lang/String;
    .registers 2
    .annotation build Landroidx/annotation/RecentlyNonNull;
    .end annotation

    iget-object v0, p0, Lcom/google/android/gms/ads/query/QueryInfo;->zza:Lz5/mn;

    .line 1
    iget-object v0, v0, Lz5/mn;->a:Ljava/lang/String;

    return-object v0
.end method

.method public getQueryBundle()Landroid/os/Bundle;
    .registers 2
    .annotation build Landroidx/annotation/RecentlyNonNull;
    .end annotation

    iget-object v0, p0, Lcom/google/android/gms/ads/query/QueryInfo;->zza:Lz5/mn;

    .line 1
    iget-object v0, v0, Lz5/mn;->b:Landroid/os/Bundle;

    return-object v0
.end method

.method public getRequestId()Ljava/lang/String;
    .registers 4
    .annotation build Landroidx/annotation/RecentlyNonNull;
    .end annotation

    iget-object v0, p0, Lcom/google/android/gms/ads/query/QueryInfo;->zza:Lz5/mn;

    .line 1
    iget-object v1, v0, Lz5/mn;->c:Ljava/lang/String;

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

    move-result v1

    const-string v2, ""

    if-eqz v1, :cond_d

    goto :goto_1a

    :cond_d
    :try_start_d
    new-instance v1, Lorg/json/JSONObject;

    iget-object v0, v0, Lz5/mn;->c:Ljava/lang/String;

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

    const-string v0, "request_id"

    invoke-virtual {v1, v0, v2}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2
    :try_end_1a
    .catch Lorg/json/JSONException; {:try_start_d .. :try_end_1a} :catch_1a

    :catch_1a
    :goto_1a
    return-object v2
.end method

.method public final zza()Lz5/mn;
    .registers 2

    iget-object v0, p0, Lcom/google/android/gms/ads/query/QueryInfo;->zza:Lz5/mn;

    return-object v0
.end method
