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

# interfaces
.implements Lz5/n91;


# instance fields
.field public final synthetic a:I

.field public final b:Ljava/lang/String;


# direct methods
.method public constructor <init>(Ljava/lang/String;I)V
    .registers 4

    iput p2, p0, Lz5/mt;->a:I

    const/4 v0, 0x1

    if-eq p2, v0, :cond_26

    const/4 v0, 0x2

    if-eq p2, v0, :cond_20

    const/4 v0, 0x3

    if-eq p2, v0, :cond_1a

    const/4 v0, 0x4

    if-eq p2, v0, :cond_14

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

    iput-object p1, p0, Lz5/mt;->b:Ljava/lang/String;

    return-void

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

    iput-object p1, p0, Lz5/mt;->b:Ljava/lang/String;

    return-void

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

    iput-object p1, p0, Lz5/mt;->b:Ljava/lang/String;

    return-void

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

    iput-object p1, p0, Lz5/mt;->b:Ljava/lang/String;

    return-void

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

    iput-object p1, p0, Lz5/mt;->b:Ljava/lang/String;

    return-void
.end method


# virtual methods
.method public final apply(Ljava/lang/Object;)Ljava/lang/Object;
    .registers 7

    iget v0, p0, Lz5/mt;->a:I

    const/4 v1, 0x0

    const-string v2, "Error calling adapter: "

    packed-switch v0, :pswitch_data_e0

    goto/16 :goto_c4

    .line 1
    :pswitch_a
    iget-object v0, p0, Lz5/mt;->b:Ljava/lang/String;

    check-cast p1, Ljava/lang/Throwable;

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

    move-result-object p1

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

    move-result v0

    if-eqz v0, :cond_1d

    invoke-virtual {v2, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    goto :goto_22

    :cond_1d
    new-instance p1, Ljava/lang/String;

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

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

    return-object v1

    .line 2
    :pswitch_26
    iget-object v0, p0, Lz5/mt;->b:Ljava/lang/String;

    check-cast p1, Lz5/lq;

    new-instance v1, Lz5/ao0;

    invoke-direct {v1, v0, p1}, Lz5/ao0;-><init>(Ljava/lang/String;Lz5/lq;)V

    return-object v1

    .line 3
    :pswitch_30
    iget-object v0, p0, Lz5/mt;->b:Ljava/lang/String;

    check-cast p1, Ljava/lang/Throwable;

    sget-object v1, Lz5/bu;->a:Lz5/cu;

    sget-object v1, Lz5/rp;->h:Lcom/google/android/gms/internal/ads/k;

    invoke-virtual {v1}, Lcom/google/android/gms/internal/ads/k;->l()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/Boolean;

    invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v1

    if-eqz v1, :cond_4d

    invoke-static {}, Lcom/google/android/gms/ads/internal/zzt;->zzg()Lcom/google/android/gms/internal/ads/u1;

    move-result-object v1

    const-string v2, "prepareClickUrl.attestation2"

    invoke-virtual {v1, p1, v2}, Lcom/google/android/gms/internal/ads/u1;->d(Ljava/lang/Throwable;Ljava/lang/String;)V

    :cond_4d
    return-object v0

    .line 4
    :pswitch_4e
    iget-object v0, p0, Lz5/mt;->b:Ljava/lang/String;

    check-cast p1, Ljava/lang/String;

    sget-object v1, Lz5/bu;->a:Lz5/cu;

    if-nez p1, :cond_57

    goto :goto_c2

    :cond_57
    sget-object v1, Lz5/rp;->f:Lcom/google/android/gms/internal/ads/k;

    invoke-virtual {v1}, Lcom/google/android/gms/internal/ads/k;->l()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/Boolean;

    invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v1

    if-nez v1, :cond_66

    goto :goto_87

    :cond_66
    const-string v1, ".doubleclick.nes"

    const-string v2, ".googleadservices.col"

    const-string v3, ".googlesyndication.col"

    filled-new-array {v1, v2, v3}, [Ljava/lang/String;

    move-result-object v1

    invoke-static {v0}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v2

    invoke-virtual {v2}, Landroid/net/Uri;->getHost()Ljava/lang/String;

    move-result-object v2

    const/4 v3, 0x0

    :goto_79
    const/4 v4, 0x3

    if-ge v3, v4, :cond_c2

    aget-object v4, v1, v3

    invoke-virtual {v2, v4}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v4

    if-nez v4, :cond_87

    add-int/lit8 v3, v3, 0x1

    goto :goto_79

    :cond_87
    :goto_87
    sget-object v1, Lz5/rp;->a:Lcom/google/android/gms/internal/ads/k;

    invoke-virtual {v1}, Lcom/google/android/gms/internal/ads/k;->l()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    sget-object v2, Lz5/rp;->b:Lcom/google/android/gms/internal/ads/k;

    invoke-virtual {v2}, Lcom/google/android/gms/internal/ads/k;->l()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/String;

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

    move-result v3

    if-nez v3, :cond_a1

    invoke-virtual {v0, v1, p1}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v0

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

    move-result v1

    if-nez v1, :cond_c2

    invoke-static {v0}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v1

    invoke-virtual {v1, v2}, Landroid/net/Uri;->getQueryParameter(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

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

    move-result v3

    if-eqz v3, :cond_c2

    invoke-virtual {v1}, Landroid/net/Uri;->buildUpon()Landroid/net/Uri$Builder;

    move-result-object v0

    invoke-virtual {v0, v2, p1}, Landroid/net/Uri$Builder;->appendQueryParameter(Ljava/lang/String;Ljava/lang/String;)Landroid/net/Uri$Builder;

    move-result-object p1

    invoke-virtual {p1}, Landroid/net/Uri$Builder;->toString()Ljava/lang/String;

    move-result-object p1

    goto :goto_c3

    :cond_c2
    :goto_c2
    move-object p1, v0

    :goto_c3
    return-object p1

    .line 5
    :goto_c4
    iget-object v0, p0, Lz5/mt;->b:Ljava/lang/String;

    check-cast p1, Ljava/lang/Throwable;

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

    move-result-object p1

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

    move-result v0

    if-eqz v0, :cond_d7

    invoke-virtual {v2, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    goto :goto_dc

    :cond_d7
    new-instance p1, Ljava/lang/String;

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

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

    return-object v1

    :pswitch_data_e0
    .packed-switch 0x0
        :pswitch_4e
        :pswitch_30
        :pswitch_26
        :pswitch_a
    .end packed-switch
.end method
