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


# static fields
.field public static final a:Landroid/content/ClipData;


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

    new-instance v0, Landroid/content/Intent;

    invoke-direct {v0}, Landroid/content/Intent;-><init>()V

    const-string v1, ""

    invoke-static {v1, v0}, Landroid/content/ClipData;->newIntent(Ljava/lang/CharSequence;Landroid/content/Intent;)Landroid/content/ClipData;

    move-result-object v0

    sput-object v0, Lcom/google/android/gms/internal/ads/m5;->a:Landroid/content/ClipData;

    return-void
.end method

.method public static a(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;
    .registers 7
    .annotation runtime Ljavax/annotation/Nullable;
    .end annotation

    and-int/lit8 p1, p3, 0x5f

    const/4 v0, 0x1

    const/4 v1, 0x0

    if-nez p1, :cond_8

    move p1, v0

    goto :goto_9

    :cond_8
    move p1, v1

    :goto_9
    const-string v2, "Cannot set any dangerous parts of intent to be mutable."

    invoke-static {p1, v2}, Lcom/google/android/gms/internal/ads/o5;->c(ZLjava/lang/Object;)V

    invoke-virtual {p2}, Landroid/content/Intent;->getComponent()Landroid/content/ComponentName;

    move-result-object p1

    if-eqz p1, :cond_16

    move p1, v0

    goto :goto_17

    :cond_16
    move p1, v1

    :goto_17
    const-string v2, "Must set component on Intent."

    invoke-static {p1, v2}, Lcom/google/android/gms/internal/ads/o5;->c(ZLjava/lang/Object;)V

    invoke-static {v1, v0}, Lcom/google/android/gms/internal/ads/m5;->b(II)Z

    move-result p1

    const/high16 v2, 0x4000000

    if-eqz p1, :cond_2c

    invoke-static {p3, v2}, Lcom/google/android/gms/internal/ads/m5;->b(II)Z

    move-result p1

    xor-int/2addr p1, v0

    const-string v0, "Cannot set mutability flags if PendingIntent.FLAG_IMMUTABLE is set."

    goto :goto_32

    :cond_2c
    invoke-static {p3, v2}, Lcom/google/android/gms/internal/ads/m5;->b(II)Z

    move-result p1

    const-string v0, "Must set PendingIntent.FLAG_IMMUTABLE for SDK >= 23 if no parts of intent are mutable."

    :goto_32
    invoke-static {p1, v0}, Lcom/google/android/gms/internal/ads/o5;->c(ZLjava/lang/Object;)V

    new-instance p1, Landroid/content/Intent;

    invoke-direct {p1, p2}, Landroid/content/Intent;-><init>(Landroid/content/Intent;)V

    invoke-static {p3, v2}, Lcom/google/android/gms/internal/ads/m5;->b(II)Z

    move-result p2

    if-nez p2, :cond_9b

    invoke-virtual {p1}, Landroid/content/Intent;->getPackage()Ljava/lang/String;

    move-result-object p2

    if-nez p2, :cond_51

    invoke-virtual {p1}, Landroid/content/Intent;->getComponent()Landroid/content/ComponentName;

    move-result-object p2

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

    move-result-object p2

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

    :cond_51
    const/4 p2, 0x3

    invoke-static {v1, p2}, Lcom/google/android/gms/internal/ads/m5;->b(II)Z

    move-result p2

    const-string v0, ""

    if-nez p2, :cond_63

    invoke-virtual {p1}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object p2

    if-nez p2, :cond_63

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

    :cond_63
    const/16 p2, 0x9

    invoke-static {v1, p2}, Lcom/google/android/gms/internal/ads/m5;->b(II)Z

    move-result p2

    if-nez p2, :cond_74

    invoke-virtual {p1}, Landroid/content/Intent;->getCategories()Ljava/util/Set;

    move-result-object p2

    if-nez p2, :cond_74

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

    :cond_74
    const/4 p2, 0x5

    invoke-static {v1, p2}, Lcom/google/android/gms/internal/ads/m5;->b(II)Z

    move-result p2

    if-nez p2, :cond_88

    invoke-virtual {p1}, Landroid/content/Intent;->getData()Landroid/net/Uri;

    move-result-object p2

    if-nez p2, :cond_88

    sget-object p2, Landroid/net/Uri;->EMPTY:Landroid/net/Uri;

    const-string v0, "*/*"

    invoke-virtual {p1, p2, v0}, Landroid/content/Intent;->setDataAndType(Landroid/net/Uri;Ljava/lang/String;)Landroid/content/Intent;

    :cond_88
    const/16 p2, 0x11

    invoke-static {v1, p2}, Lcom/google/android/gms/internal/ads/m5;->b(II)Z

    move-result p2

    if-nez p2, :cond_9b

    invoke-virtual {p1}, Landroid/content/Intent;->getClipData()Landroid/content/ClipData;

    move-result-object p2

    if-nez p2, :cond_9b

    sget-object p2, Lcom/google/android/gms/internal/ads/m5;->a:Landroid/content/ClipData;

    invoke-virtual {p1, p2}, Landroid/content/Intent;->setClipData(Landroid/content/ClipData;)V

    :cond_9b
    invoke-static {p0, v1, p1, p3}, Landroid/app/PendingIntent;->getService(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;

    move-result-object p0

    return-object p0
.end method

.method public static b(II)Z
    .registers 2

    and-int/2addr p0, p1

    if-ne p0, p1, :cond_5

    const/4 p0, 0x1

    return p0

    :cond_5
    const/4 p0, 0x0

    return p0
.end method
