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


# static fields
.field public static final a:Lz5/ck;


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

    new-instance v0, Lz5/ck;

    invoke-direct {v0}, Lz5/ck;-><init>()V

    sput-object v0, Lz5/ck;->a:Lz5/ck;

    return-void
.end method

.method public constructor <init>()V
    .registers 1

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

    return-void
.end method


# virtual methods
.method public final a(Landroid/content/Context;Lcom/google/android/gms/internal/ads/c0;)Lz5/zj;
    .registers 32

    move-object/from16 v0, p2

    .line 1
    iget-object v1, v0, Lcom/google/android/gms/internal/ads/c0;->a:Ljava/util/Date;

    if-eqz v1, :cond_b

    .line 2
    invoke-virtual {v1}, Ljava/util/Date;->getTime()J

    move-result-wide v1

    goto :goto_d

    :cond_b
    const-wide/16 v1, -0x1

    :goto_d
    move-wide v5, v1

    .line 3
    iget-object v1, v0, Lcom/google/android/gms/internal/ads/c0;->b:Ljava/lang/String;

    .line 4
    iget v8, v0, Lcom/google/android/gms/internal/ads/c0;->d:I

    .line 5
    iget-object v2, v0, Lcom/google/android/gms/internal/ads/c0;->e:Ljava/util/Set;

    .line 6
    invoke-interface {v2}, Ljava/util/Set;->isEmpty()Z

    move-result v3

    if-nez v3, :cond_27

    new-instance v3, Ljava/util/ArrayList;

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

    invoke-static {v3}, Ljava/util/Collections;->unmodifiableList(Ljava/util/List;)Ljava/util/List;

    move-result-object v2

    move-object v9, v2

    move-object/from16 v2, p1

    goto :goto_2a

    :cond_27
    move-object/from16 v2, p1

    const/4 v9, 0x0

    :goto_2a
    invoke-virtual {v0, v2}, Lcom/google/android/gms/internal/ads/c0;->b(Landroid/content/Context;)Z

    move-result v10

    .line 7
    iget-object v15, v0, Lcom/google/android/gms/internal/ads/c0;->f:Landroid/location/Location;

    .line 8
    const-class v3, Lcom/google/ads/mediation/admob/AdMobAdapter;

    .line 9
    iget-object v7, v0, Lcom/google/android/gms/internal/ads/c0;->g:Landroid/os/Bundle;

    invoke-virtual {v3}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v7, v3}, Landroid/os/Bundle;->getBundle(Ljava/lang/String;)Landroid/os/Bundle;

    move-result-object v7

    .line 10
    iget-object v3, v0, Lcom/google/android/gms/internal/ads/c0;->q:Lcom/google/android/gms/ads/query/AdInfo;

    if-eqz v3, :cond_5d

    .line 11
    invoke-virtual {v3}, Lcom/google/android/gms/ads/query/AdInfo;->getQueryInfo()Lcom/google/android/gms/ads/query/QueryInfo;

    move-result-object v3

    if-eqz v3, :cond_4d

    invoke-virtual {v3}, Lcom/google/android/gms/ads/query/QueryInfo;->zza()Lz5/mn;

    move-result-object v3

    .line 12
    iget-object v3, v3, Lz5/mn;->c:Ljava/lang/String;

    goto :goto_4f

    :cond_4d
    const-string v3, ""

    .line 13
    :goto_4f
    new-instance v11, Lz5/qj;

    .line 14
    iget-object v12, v0, Lcom/google/android/gms/internal/ads/c0;->q:Lcom/google/android/gms/ads/query/AdInfo;

    .line 15
    invoke-virtual {v12}, Lcom/google/android/gms/ads/query/AdInfo;->getAdString()Ljava/lang/String;

    move-result-object v12

    invoke-direct {v11, v12, v3}, Lz5/qj;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    move-object/from16 v23, v11

    goto :goto_5f

    :cond_5d
    const/16 v23, 0x0

    .line 16
    :goto_5f
    iget-object v13, v0, Lcom/google/android/gms/internal/ads/c0;->i:Ljava/lang/String;

    .line 17
    iget-object v3, v0, Lcom/google/android/gms/internal/ads/c0;->k:Lcom/google/android/gms/ads/search/SearchAdRequest;

    if-eqz v3, :cond_6c

    .line 18
    new-instance v11, Lz5/ao;

    invoke-direct {v11, v3}, Lz5/ao;-><init>(Lcom/google/android/gms/ads/search/SearchAdRequest;)V

    move-object v14, v11

    goto :goto_6d

    :cond_6c
    const/4 v14, 0x0

    :goto_6d
    invoke-virtual/range {p1 .. p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object v2

    if-eqz v2, :cond_11c

    invoke-virtual {v2}, Landroid/content/Context;->getPackageName()Ljava/lang/String;

    move-result-object v2

    .line 19
    sget-object v11, Lz5/wk;->f:Lz5/wk;

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

    .line 20
    invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;

    move-result-object v11

    invoke-virtual {v11}, Ljava/lang/Thread;->getStackTrace()[Ljava/lang/StackTraceElement;

    move-result-object v11

    const/16 v16, 0x0

    :goto_85
    add-int/lit8 v4, v16, 0x1

    .line 21
    array-length v12, v11

    if-ge v4, v12, :cond_da

    aget-object v12, v11, v16

    invoke-virtual {v12}, Ljava/lang/StackTraceElement;->getClassName()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v12}, Ljava/lang/StackTraceElement;->getMethodName()Ljava/lang/String;

    move-result-object v12

    move-object/from16 v21, v1

    const-string v1, "loadAd"

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

    move-result v1

    if-eqz v1, :cond_d5

    sget-object v1, Lz5/z40;->c:Ljava/lang/String;

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

    move-result v1

    if-nez v1, :cond_ce

    sget-object v1, Lz5/z40;->d:Ljava/lang/String;

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

    move-result v1

    if-nez v1, :cond_ce

    sget-object v1, Lz5/z40;->e:Ljava/lang/String;

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

    move-result v1

    if-nez v1, :cond_ce

    sget-object v1, Lz5/z40;->f:Ljava/lang/String;

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

    move-result v1

    if-nez v1, :cond_ce

    sget-object v1, Lz5/z40;->g:Ljava/lang/String;

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

    move-result v1

    if-nez v1, :cond_ce

    sget-object v1, Lz5/z40;->h:Ljava/lang/String;

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

    move-result v1

    if-eqz v1, :cond_d5

    :cond_ce
    aget-object v1, v11, v4

    invoke-virtual {v1}, Ljava/lang/StackTraceElement;->getClassName()Ljava/lang/String;

    move-result-object v1

    goto :goto_dd

    :cond_d5
    move/from16 v16, v4

    move-object/from16 v1, v21

    goto :goto_85

    :cond_da
    move-object/from16 v21, v1

    const/4 v1, 0x0

    :goto_dd
    if-eqz v2, :cond_11e

    new-instance v3, Ljava/util/StringTokenizer;

    const-string v4, "."

    invoke-direct {v3, v2, v4}, Ljava/util/StringTokenizer;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    new-instance v11, Ljava/lang/StringBuilder;

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

    invoke-virtual {v3}, Ljava/util/StringTokenizer;->hasMoreElements()Z

    move-result v12

    if-eqz v12, :cond_113

    invoke-virtual {v3}, Ljava/util/StringTokenizer;->nextToken()Ljava/lang/String;

    move-result-object v2

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

    const/4 v2, 0x2

    :goto_f9
    add-int/lit8 v12, v2, -0x1

    if-lez v2, :cond_10f

    invoke-virtual {v3}, Ljava/util/StringTokenizer;->hasMoreElements()Z

    move-result v2

    if-eqz v2, :cond_10f

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

    invoke-virtual {v3}, Ljava/util/StringTokenizer;->nextToken()Ljava/lang/String;

    move-result-object v2

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

    move v2, v12

    goto :goto_f9

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

    move-result-object v2

    :cond_113
    if-eqz v1, :cond_11e

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

    move-result v2

    if-nez v2, :cond_11e

    goto :goto_11f

    :cond_11c
    move-object/from16 v21, v1

    :cond_11e
    const/4 v1, 0x0

    .line 22
    :goto_11f
    iget-boolean v2, v0, Lcom/google/android/gms/internal/ads/c0;->p:Z

    move/from16 v22, v2

    .line 23
    invoke-static {}, Lcom/google/android/gms/internal/ads/f0;->a()Lcom/google/android/gms/internal/ads/f0;

    move-result-object v2

    .line 24
    iget-object v2, v2, Lcom/google/android/gms/internal/ads/f0;->g:Lcom/google/android/gms/ads/RequestConfiguration;

    .line 25
    iget v3, v0, Lcom/google/android/gms/internal/ads/c0;->l:I

    .line 26
    invoke-virtual {v2}, Lcom/google/android/gms/ads/RequestConfiguration;->getTagForChildDirectedTreatment()I

    move-result v4

    invoke-static {v3, v4}, Ljava/lang/Math;->max(II)I

    move-result v11

    invoke-virtual {v2}, Lcom/google/android/gms/ads/RequestConfiguration;->getTagForUnderAgeOfConsent()I

    move-result v3

    const/4 v4, -0x1

    invoke-static {v4, v3}, Ljava/lang/Math;->max(II)I

    move-result v24

    const/4 v3, 0x2

    new-array v3, v3, [Ljava/lang/String;

    const/4 v4, 0x0

    const/4 v12, 0x0

    aput-object v12, v3, v4

    invoke-virtual {v2}, Lcom/google/android/gms/ads/RequestConfiguration;->getMaxAdContentRating()Ljava/lang/String;

    move-result-object v2

    const/4 v4, 0x1

    aput-object v2, v3, v4

    invoke-static {v3}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;

    move-result-object v2

    sget-object v3, Lz5/bk;->r:Ljava/util/Comparator;

    invoke-static {v2, v3}, Ljava/util/Collections;->max(Ljava/util/Collection;Ljava/util/Comparator;)Ljava/lang/Object;

    move-result-object v2

    move-object/from16 v25, v2

    check-cast v25, Ljava/lang/String;

    .line 27
    new-instance v2, Ljava/util/ArrayList;

    move-object/from16 v26, v2

    iget-object v3, v0, Lcom/google/android/gms/internal/ads/c0;->c:Ljava/util/List;

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

    .line 28
    new-instance v2, Lz5/zj;

    move-object v3, v2

    .line 29
    iget-object v4, v0, Lcom/google/android/gms/internal/ads/c0;->g:Landroid/os/Bundle;

    move-object/from16 v17, v4

    .line 30
    iget-object v4, v0, Lcom/google/android/gms/internal/ads/c0;->n:Landroid/os/Bundle;

    move-object/from16 v18, v4

    .line 31
    new-instance v12, Ljava/util/ArrayList;

    .line 32
    iget-object v4, v0, Lcom/google/android/gms/internal/ads/c0;->o:Ljava/util/Set;

    .line 33
    invoke-direct {v12, v4}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V

    const/16 v4, 0x8

    const/16 v16, 0x0

    move-object/from16 v19, v12

    move/from16 v12, v16

    invoke-static/range {v19 .. v19}, Ljava/util/Collections;->unmodifiableList(Ljava/util/List;)Ljava/util/List;

    move-result-object v19

    .line 34
    iget-object v4, v0, Lcom/google/android/gms/internal/ads/c0;->j:Ljava/lang/String;

    move-object/from16 v20, v4

    .line 35
    iget v4, v0, Lcom/google/android/gms/internal/ads/c0;->s:I

    move/from16 v27, v4

    .line 36
    iget-object v0, v0, Lcom/google/android/gms/internal/ads/c0;->r:Ljava/lang/String;

    move-object/from16 v28, v0

    move-object/from16 v16, v21

    move-object/from16 v21, v1

    const/16 v4, 0x8

    .line 37
    invoke-direct/range {v3 .. v28}, 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

    return-object v2
.end method
