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


# instance fields
.field public final a:Landroid/content/Context;

.field public final b:Lcom/google/android/gms/ads/h5/OnH5AdsEventListener;

.field public c:Lz5/uu;


# direct methods
.method public constructor <init>(Landroid/content/Context;Lcom/google/android/gms/ads/h5/OnH5AdsEventListener;)V
    .registers 5

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

    const/4 v0, 0x1

    const-string v1, "Android version must be Lollipop or higher"

    invoke-static {v0, v1}, Lcom/google/android/gms/common/internal/d;->k(ZLjava/lang/Object;)V

    const-string v0, "null reference"

    .line 1
    invoke-static {p1, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;

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

    .line 2
    iput-object p1, p0, Lz5/yu;->a:Landroid/content/Context;

    iput-object p2, p0, Lz5/yu;->b:Lcom/google/android/gms/ads/h5/OnH5AdsEventListener;

    invoke-static {p1}, Lz5/so;->a(Landroid/content/Context;)V

    return-void
.end method

.method public static final a(Ljava/lang/String;)Z
    .registers 5

    sget-object v0, Lz5/so;->f6:Lz5/no;

    .line 1
    sget-object v1, Lz5/xk;->d:Lz5/xk;

    iget-object v2, v1, Lz5/xk;->c:Lcom/google/android/gms/internal/ads/g0;

    .line 2
    invoke-virtual {v2, v0}, Lcom/google/android/gms/internal/ads/g0;->a(Lz5/no;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Boolean;

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

    move-result v0

    const/4 v2, 0x0

    if-nez v0, :cond_14

    return v2

    :cond_14
    const-string v0, "null reference"

    .line 3
    invoke-static {p0, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;

    .line 4
    invoke-virtual {p0}, Ljava/lang/String;->length()I

    move-result v0

    sget-object v3, Lz5/so;->h6:Lz5/no;

    .line 5
    iget-object v1, v1, Lz5/xk;->c:Lcom/google/android/gms/internal/ads/g0;

    .line 6
    invoke-virtual {v1, v3}, Lcom/google/android/gms/internal/ads/g0;->a(Lz5/no;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/Integer;

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

    move-result v1

    if-le v0, v1, :cond_33

    const-string p0, "H5 GMSG exceeds max length"

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

    return v2

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

    move-result-object p0

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

    move-result-object v0

    const-string v1, "gmsg"

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

    move-result v0

    if-eqz v0, :cond_5d

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

    move-result-object v0

    const-string v1, "mobileads.google.com"

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

    move-result v0

    if-eqz v0, :cond_5d

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

    move-result-object p0

    const-string v0, "/h5ads"

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

    move-result p0

    if-eqz p0, :cond_5d

    const/4 p0, 0x1

    return p0

    :cond_5d
    return v2
.end method


# virtual methods
.method public final b()V
    .registers 5

    iget-object v0, p0, Lz5/yu;->c:Lz5/uu;

    if-eqz v0, :cond_5

    return-void

    .line 1
    :cond_5
    sget-object v0, Lz5/wk;->f:Lz5/wk;

    iget-object v0, v0, Lz5/wk;->b:Lz5/uk;

    .line 2
    iget-object v1, p0, Lz5/yu;->a:Landroid/content/Context;

    new-instance v2, Lz5/lx;

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

    iget-object v3, p0, Lz5/yu;->b:Lcom/google/android/gms/ads/h5/OnH5AdsEventListener;

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

    .line 3
    new-instance v0, Lz5/pk;

    invoke-direct {v0, v1, v2, v3}, Lz5/pk;-><init>(Landroid/content/Context;Lz5/ox;Lcom/google/android/gms/ads/h5/OnH5AdsEventListener;)V

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Lz5/vk;->d(Landroid/content/Context;Z)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lz5/uu;

    .line 4
    iput-object v0, p0, Lz5/yu;->c:Lz5/uu;

    return-void
.end method
