.class final Lcom/google/android/gms/ads/internal/util/zzl;
.super Ljava/lang/Object;
.source ""

# interfaces
.implements Lz5/ep;


# instance fields
.field public final synthetic zza:Lcom/google/android/gms/internal/ads/n0;

.field public final synthetic zzb:Landroid/content/Context;

.field public final synthetic zzc:Landroid/net/Uri;


# direct methods
.method public constructor <init>(Lcom/google/android/gms/ads/internal/util/zzs;Lcom/google/android/gms/internal/ads/n0;Landroid/content/Context;Landroid/net/Uri;)V
    .registers 5

    iput-object p2, p0, Lcom/google/android/gms/ads/internal/util/zzl;->zza:Lcom/google/android/gms/internal/ads/n0;

    iput-object p3, p0, Lcom/google/android/gms/ads/internal/util/zzl;->zzb:Landroid/content/Context;

    iput-object p4, p0, Lcom/google/android/gms/ads/internal/util/zzl;->zzc:Landroid/net/Uri;

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

    return-void
.end method


# virtual methods
.method public final zza()V
    .registers 7

    iget-object v0, p0, Lcom/google/android/gms/ads/internal/util/zzl;->zza:Lcom/google/android/gms/internal/ads/n0;

    .line 1
    iget-object v1, v0, Lcom/google/android/gms/internal/ads/n0;->b:Lo/d;

    const/4 v2, 0x0

    if-nez v1, :cond_8

    goto :goto_24

    :cond_8
    iget-object v3, v0, Lcom/google/android/gms/internal/ads/n0;->a:Ls1/g;

    if-nez v3, :cond_27

    .line 2
    new-instance v3, Lo/c;

    invoke-direct {v3, v1}, Lo/c;-><init>(Lo/d;)V

    :try_start_11
    iget-object v4, v1, Lo/d;->a:La/b;

    invoke-interface {v4, v3}, La/b;->F1(La/a;)Z

    move-result v4
    :try_end_17
    .catch Landroid/os/RemoteException; {:try_start_11 .. :try_end_17} :catch_24

    if-nez v4, :cond_1a

    goto :goto_24

    :cond_1a
    new-instance v4, Ls1/g;

    iget-object v5, v1, Lo/d;->a:La/b;

    iget-object v1, v1, Lo/d;->b:Landroid/content/ComponentName;

    invoke-direct {v4, v5, v3, v1}, Ls1/g;-><init>(La/b;La/a;Landroid/content/ComponentName;)V

    goto :goto_25

    :catch_24
    :goto_24
    move-object v4, v2

    .line 3
    :goto_25
    iput-object v4, v0, Lcom/google/android/gms/internal/ads/n0;->a:Ls1/g;

    :cond_27
    iget-object v0, v0, Lcom/google/android/gms/internal/ads/n0;->a:Ls1/g;

    .line 4
    new-instance v1, Landroid/content/Intent;

    const-string v3, "android.intent.action.VIEW"

    invoke-direct {v1, v3}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    const/4 v3, 0x1

    if-eqz v0, :cond_3e

    .line 5
    iget-object v4, v0, Ls1/g;->d:Ljava/lang/Object;

    check-cast v4, Landroid/content/ComponentName;

    .line 6
    invoke-virtual {v4}, Landroid/content/ComponentName;->getPackageName()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v1, v4}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;

    :cond_3e
    new-instance v4, Landroid/os/Bundle;

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

    if-nez v0, :cond_47

    move-object v0, v2

    goto :goto_50

    .line 7
    :cond_47
    iget-object v0, v0, Ls1/g;->c:Ljava/lang/Object;

    check-cast v0, La/a;

    check-cast v0, La/a$a;

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

    :goto_50
    const-string v5, "android.support.customtabs.extra.SESSION"

    .line 8
    invoke-virtual {v4, v5, v0}, Landroid/os/Bundle;->putBinder(Ljava/lang/String;Landroid/os/IBinder;)V

    .line 9
    invoke-virtual {v1, v4}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;

    const-string v0, "android.support.customtabs.extra.EXTRA_ENABLE_INSTANT_APPS"

    .line 10
    invoke-virtual {v1, v0, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    .line 11
    iget-object v0, p0, Lcom/google/android/gms/ads/internal/util/zzl;->zzb:Landroid/content/Context;

    invoke-static {v0}, Lcom/google/android/gms/internal/ads/m6;->b(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;

    iget-object v0, p0, Lcom/google/android/gms/ads/internal/util/zzl;->zzb:Landroid/content/Context;

    iget-object v3, p0, Lcom/google/android/gms/ads/internal/util/zzl;->zzc:Landroid/net/Uri;

    .line 12
    invoke-virtual {v1, v3}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    sget-object v3, Lc0/a;->a:Ljava/lang/Object;

    .line 13
    invoke-static {v0, v1, v2}, Lc0/a$a;->b(Landroid/content/Context;Landroid/content/Intent;Landroid/os/Bundle;)V

    .line 14
    iget-object v0, p0, Lcom/google/android/gms/ads/internal/util/zzl;->zza:Lcom/google/android/gms/internal/ads/n0;

    iget-object v1, p0, Lcom/google/android/gms/ads/internal/util/zzl;->zzb:Landroid/content/Context;

    check-cast v1, Landroid/app/Activity;

    .line 15
    iget-object v3, v0, Lcom/google/android/gms/internal/ads/n0;->c:Lo/f;

    if-nez v3, :cond_7d

    goto :goto_86

    :cond_7d
    invoke-virtual {v1, v3}, Landroid/app/Activity;->unbindService(Landroid/content/ServiceConnection;)V

    iput-object v2, v0, Lcom/google/android/gms/internal/ads/n0;->b:Lo/d;

    iput-object v2, v0, Lcom/google/android/gms/internal/ads/n0;->a:Ls1/g;

    iput-object v2, v0, Lcom/google/android/gms/internal/ads/n0;->c:Lo/f;

    :goto_86
    return-void
.end method
