granularity level: instruction

		.class public abstract Lh1/f;
.super Ljava/lang/Object;
.source "SourceFile"


.field public static final a:Ljava/util/concurrent/atomic/AtomicInteger;


.method public static constructor <clinit>()V
	.locals 3

	new-instance v0, Ljava/util/concurrent/atomic/AtomicInteger;
	invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J
	move-result-wide v1
	long-to-int v2, v1
	invoke-direct {v0, v2}, Ljava/util/concurrent/atomic/AtomicInteger;-><init>(I)V
	sput-object v0, Lh1/f;->a:Ljava/util/concurrent/atomic/AtomicInteger;
	return-void
.end method

.method public static a(Landroid/content/Context;Lp/e;)Lh1/e;
	.locals 14

	const-string v0, "Couldn\'t get own application info: "
	const-string v1, "FirebaseMessaging"
	invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
	move-result-object v2
	invoke-virtual {p0}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
	move-result-object v3
	const/16 v4, 0x80
	invoke-virtual {v2, v3, v4}, Landroid/content/pm/PackageManager;->getApplicationInfo(Ljava/lang/String;I)Landroid/content/pm/ApplicationInfo;
	move-result-object v2
	iget-object v2, v2, Landroid/content/pm/ApplicationInfo;->metaData:Landroid/os/Bundle;
	const-string v3, "gcm.n.android_channel_id"
	invoke-virtual {p1, v3}, Lp/e;->i(Ljava/lang/String;)Ljava/lang/String;
	move-result-object v3
	sget v4, Landroid/os/Build$VERSION;->SDK_INT:I
	const/16 v5, 0x1a
	const/4 v6, 0x3
	const/4 v7, 0x0
	invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
	move-result-object v4
	invoke-virtual {p0}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
	move-result-object v8
	invoke-virtual {v4, v8, v7}, Landroid/content/pm/PackageManager;->getApplicationInfo(Ljava/lang/String;I)Landroid/content/pm/ApplicationInfo;
	move-result-object v4
	iget v4, v4, Landroid/content/pm/ApplicationInfo;->targetSdkVersion:I
	const-class v4, Landroid/app/NotificationManager;
	invoke-virtual {p0, v4}, Landroid/content/Context;->getSystemService(Ljava/lang/Class;)Ljava/lang/Object;
	move-result-object v4
	check-cast v4, Landroid/app/NotificationManager;
	invoke-static {v3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
	move-result v5
	const-string v3, "com.google.firebase.messaging.default_notification_channel_id"
	invoke-virtual {v2, v3}, Landroid/os/BaseBundle;->getString(Ljava/lang/String;)Ljava/lang/String;
	move-result-object v3
	invoke-static {v3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
	move-result v5
	const-string v3, "Missing Default Notification Channel metadata in AndroidManifest. Default value will be used."
	:goto_1
	invoke-static {v1, v3}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
	const-string v3, "fcm_fallback_notification_channel"
	invoke-virtual {v4, v3}, Landroid/app/NotificationManager;->getNotificationChannel(Ljava/lang/String;)Landroid/app/NotificationChannel;
	move-result-object v5
	if-nez v5, :cond_8
	invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
	move-result-object v5
	invoke-virtual {p0}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
	move-result-object v8
	const-string v9, "fcm_fallback_notification_channel_label"
	const-string v10, "string"
	invoke-virtual {v5, v9, v10, v8}, Landroid/content/res/Resources;->getIdentifier(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I
	move-result v5
	invoke-virtual {p0, v5}, Landroid/content/Context;->getString(I)Ljava/lang/String;
	move-result-object v5
	:goto_2
	new-instance v8, Landroid/app/NotificationChannel;
	invoke-direct {v8, v3, v5, v6}, Landroid/app/NotificationChannel;-><init>(Ljava/lang/String;Ljava/lang/CharSequence;I)V
	invoke-virtual {v4, v8}, Landroid/app/NotificationManager;->createNotificationChannel(Landroid/app/NotificationChannel;)V
	:cond_8
	invoke-virtual {p0}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
	move-result-object v4
	invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
	move-result-object v5
	invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
	move-result-object v6
	new-instance v8, Lc/d;
	invoke-direct {v8, p0, v3}, Lc/d;-><init>(Landroid/content/Context;Ljava/lang/String;)V
	const-string v3, "gcm.n.title"
	invoke-virtual {p1, v5, v4, v3}, Lp/e;->h(Landroid/content/res/Resources;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
	move-result-object v3
	invoke-static {v3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
	move-result v9
	if-nez v9, :cond_9
	invoke-static {v3}, Lc/d;->b(Ljava/lang/String;)Ljava/lang/CharSequence;
	move-result-object v3
	iput-object v3, v8, Lc/d;->d:Ljava/lang/CharSequence;
	:cond_9
	const-string v3, "gcm.n.body"
	invoke-virtual {p1, v5, v4, v3}, Lp/e;->h(Landroid/content/res/Resources;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
	move-result-object v3
	invoke-static {v3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
	move-result v9
	if-nez v9, :cond_a
	invoke-static {v3}, Lc/d;->b(Ljava/lang/String;)Ljava/lang/CharSequence;
	move-result-object v9
	iput-object v9, v8, Lc/d;->e:Ljava/lang/CharSequence;
	new-instance v9, Lc/c;
	invoke-direct {v9}, Lc/c;-><init>()V
	invoke-static {v3}, Lc/d;->b(Ljava/lang/String;)Ljava/lang/CharSequence;
	move-result-object v3
	iput-object v3, v9, Lc/c;->b:Ljava/lang/CharSequence;
	invoke-virtual {v8, v9}, Lc/d;->d(Lc/e;)V
	:cond_a
	const-string v3, "gcm.n.icon"
	invoke-virtual {p1, v3}, Lp/e;->i(Ljava/lang/String;)Ljava/lang/String;
	move-result-object v3
	invoke-static {v3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
	move-result v9
	const-string v3, "com.google.firebase.messaging.default_notification_icon"
	invoke-virtual {v2, v3, v7}, Landroid/os/BaseBundle;->getInt(Ljava/lang/String;I)I
	move-result v3
	invoke-virtual {v6, v4, v7}, Landroid/content/pm/PackageManager;->getApplicationInfo(Ljava/lang/String;I)Landroid/content/pm/ApplicationInfo;
	move-result-object v9
	iget v0, v9, Landroid/content/pm/ApplicationInfo;->icon:I
	move v9, v0
	invoke-static {v5, v9}, Lh1/f;->b(Landroid/content/res/Resources;I)Z
	move-result v0
	:goto_6
	iget-object v0, v8, Lc/d;->r:Landroid/app/Notification;
	iput v9, v0, Landroid/app/Notification;->icon:I
	const-string v0, "gcm.n.sound2"
	invoke-virtual {p1, v0}, Lp/e;->i(Ljava/lang/String;)Ljava/lang/String;
	move-result-object v0
	invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
	move-result v3
	if-eqz v3, :cond_12
	const-string v0, "gcm.n.sound"
	invoke-virtual {p1, v0}, Lp/e;->i(Ljava/lang/String;)Ljava/lang/String;
	move-result-object v0
	:cond_12
	invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
	move-result v3
	const/4 v9, 0x2
	if-eqz v3, :cond_13
	const/4 v0, 0x0
	goto :goto_7
	:cond_13
	const-string v3, "default"
	invoke-virtual {v3, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
	move-result v3
	invoke-static {v9}, Landroid/media/RingtoneManager;->getDefaultUri(I)Landroid/net/Uri;
	move-result-object v0
	:goto_7
	const/4 v3, -0x1
	const/4 v5, 0x4
	if-eqz v0, :cond_15
	iget-object v10, v8, Lc/d;->r:Landroid/app/Notification;
	iput-object v0, v10, Landroid/app/Notification;->sound:Landroid/net/Uri;
	iput v3, v10, Landroid/app/Notification;->audioStreamType:I
	new-instance v0, Landroid/media/AudioAttributes$Builder;
	invoke-direct {v0}, Landroid/media/AudioAttributes$Builder;-><init>()V
	invoke-virtual {v0, v5}, Landroid/media/AudioAttributes$Builder;->setContentType(I)Landroid/media/AudioAttributes$Builder;
	move-result-object v0
	const/4 v5, 0x5
	invoke-virtual {v0, v5}, Landroid/media/AudioAttributes$Builder;->setUsage(I)Landroid/media/AudioAttributes$Builder;
	move-result-object v0
	invoke-virtual {v0}, Landroid/media/AudioAttributes$Builder;->build()Landroid/media/AudioAttributes;
	move-result-object v0
	iput-object v0, v10, Landroid/app/Notification;->audioAttributes:Landroid/media/AudioAttributes;
	:cond_15
	const-string v0, "gcm.n.click_action"
	invoke-virtual {p1, v0}, Lp/e;->i(Ljava/lang/String;)Ljava/lang/String;
	move-result-object v0
	invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
	move-result v5
	const-string v0, "gcm.n.link_android"
	invoke-virtual {p1, v0}, Lp/e;->i(Ljava/lang/String;)Ljava/lang/String;
	move-result-object v0
	invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
	move-result v5
	if-eqz v5, :cond_17
	const-string v0, "gcm.n.link"
	invoke-virtual {p1, v0}, Lp/e;->i(Ljava/lang/String;)Ljava/lang/String;
	move-result-object v0
	:cond_17
	invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
	move-result v5
	const/4 v0, 0x0
	:goto_8
	invoke-virtual {v6, v4}, Landroid/content/pm/PackageManager;->getLaunchIntentForPackage(Ljava/lang/String;)Landroid/content/Intent;
	move-result-object v5
	:goto_9
	const-string v0, "google.c.a.e"
	const/16 v4, 0x17
	const/4 v6, 0x1
	const/high16 v10, 0x4000000
	invoke-virtual {v5, v10}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;
	new-instance v10, Landroid/os/Bundle;
	iget-object v11, p1, Lp/e;->a:Ljava/lang/Object;
	check-cast v11, Landroid/os/Bundle;
	invoke-direct {v10, v11}, Landroid/os/Bundle;-><init>(Landroid/os/Bundle;)V
	iget-object v11, p1, Lp/e;->a:Ljava/lang/Object;
	check-cast v11, Landroid/os/Bundle;
	invoke-virtual {v11}, Landroid/os/BaseBundle;->keySet()Ljava/util/Set;
	move-result-object v11
	invoke-interface {v11}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
	move-result-object v11
	:cond_1c
	:goto_a
	invoke-interface {v11}, Ljava/util/Iterator;->hasNext()Z
	move-result v12
	if-eqz v12, :cond_1f
	invoke-interface {v11}, Ljava/util/Iterator;->next()Ljava/lang/Object;
	move-result-object v12
	check-cast v12, Ljava/lang/String;
	const-string v13, "google.c."
	invoke-virtual {v12, v13}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
	move-result v13
	if-nez v13, :cond_1e
	const-string v13, "gcm.n."
	invoke-virtual {v12, v13}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
	move-result v13
	if-nez v13, :cond_1e
	const-string v13, "gcm.notification."
	invoke-virtual {v12, v13}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
	move-result v13
	if-eqz v13, :cond_1d
	goto :goto_b
	:cond_1d
	const/4 v13, 0x0
	goto :goto_c
	:cond_1e
	:goto_b
	const/4 v13, 0x1
	:goto_c
	if-eqz v13, :cond_1c
	invoke-virtual {v10, v12}, Landroid/os/Bundle;->remove(Ljava/lang/String;)V
	goto :goto_a
	:cond_1f
	invoke-virtual {v5, v10}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;
	invoke-virtual {p1, v0}, Lp/e;->e(Ljava/lang/String;)Z
	move-result v10
	if-eqz v10, :cond_20
	invoke-virtual {p1}, Lp/e;->k()Landroid/os/Bundle;
	move-result-object v10
	const-string v11, "gcm.n.analytics_data"
	invoke-virtual {v5, v11, v10}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Bundle;)Landroid/content/Intent;
	:cond_20
	sget-object v10, Lh1/f;->a:Ljava/util/concurrent/atomic/AtomicInteger;
	invoke-virtual {v10}, Ljava/util/concurrent/atomic/AtomicInteger;->incrementAndGet()I
	move-result v10
	sget v11, Landroid/os/Build$VERSION;->SDK_INT:I
	const/high16 v11, 0x44000000    # 512.0f
	invoke-static {p0, v10, v5, v11}, Landroid/app/PendingIntent;->getActivity(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;
	move-result-object v5
	:goto_e
	iput-object v5, v8, Lc/d;->f:Landroid/app/PendingIntent;
	invoke-virtual {p1, v0}, Lp/e;->e(Ljava/lang/String;)Z
	move-result v0
	new-instance v0, Landroid/content/Intent;
	const-string v5, "com.google.firebase.messaging.NOTIFICATION_DISMISS"
	invoke-direct {v0, v5}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
	invoke-virtual {p1}, Lp/e;->k()Landroid/os/Bundle;
	move-result-object v5
	invoke-virtual {v0, v5}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;
	move-result-object v0
	sget-object v5, Lh1/f;->a:Ljava/util/concurrent/atomic/AtomicInteger;
	invoke-virtual {v5}, Ljava/util/concurrent/atomic/AtomicInteger;->incrementAndGet()I
	move-result v5
	new-instance v10, Landroid/content/Intent;
	const-string v11, "com.google.firebase.MESSAGING_EVENT"
	invoke-direct {v10, v11}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
	new-instance v11, Landroid/content/ComponentName;
	const-string v12, "com.google.firebase.iid.FirebaseInstanceIdReceiver"
	invoke-direct {v11, p0, v12}, Landroid/content/ComponentName;-><init>(Landroid/content/Context;Ljava/lang/String;)V
	invoke-virtual {v10, v11}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;
	move-result-object v10
	const-string v11, "wrapped_intent"
	invoke-virtual {v10, v11, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;
	move-result-object v0
	sget v10, Landroid/os/Build$VERSION;->SDK_INT:I
	const/high16 v10, 0x44000000    # 512.0f
	invoke-static {p0, v5, v0, v10}, Landroid/app/PendingIntent;->getBroadcast(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;
	move-result-object v0
	:goto_10
	if-eqz v0, :cond_24
	iget-object v5, v8, Lc/d;->r:Landroid/app/Notification;
	iput-object v0, v5, Landroid/app/Notification;->deleteIntent:Landroid/app/PendingIntent;
	:cond_24
	const-string v0, "gcm.n.color"
	invoke-virtual {p1, v0}, Lp/e;->i(Ljava/lang/String;)Ljava/lang/String;
	move-result-object v0
	invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
	move-result v5
	const-string v0, "com.google.firebase.messaging.default_notification_color"
	invoke-virtual {v2, v0, v7}, Landroid/os/BaseBundle;->getInt(Ljava/lang/String;I)I
	move-result v0
	const/4 p0, 0x0
	:goto_12
	const-string p0, "gcm.n.sticky"
	invoke-virtual {p1, p0}, Lp/e;->e(Ljava/lang/String;)Z
	move-result p0
	xor-int/2addr p0, v6
	iget-object p0, v8, Lc/d;->r:Landroid/app/Notification;
	iget v0, p0, Landroid/app/Notification;->flags:I
	or-int/lit8 v0, v0, 0x10
	iput v0, p0, Landroid/app/Notification;->flags:I
	const-string p0, "gcm.n.local_only"
	invoke-virtual {p1, p0}, Lp/e;->e(Ljava/lang/String;)Z
	move-result p0
	iput-boolean p0, v8, Lc/d;->l:Z
	const-string p0, "gcm.n.ticker"
	invoke-virtual {p1, p0}, Lp/e;->i(Ljava/lang/String;)Ljava/lang/String;
	move-result-object p0
	const-string p0, "gcm.n.notification_priority"
	invoke-virtual {p1, p0}, Lp/e;->f(Ljava/lang/String;)Ljava/lang/Integer;
	move-result-object p0
	const/4 v0, -0x2
	const/4 p0, 0x0
	:cond_2d
	const-string p0, "gcm.n.visibility"
	invoke-virtual {p1, p0}, Lp/e;->f(Ljava/lang/String;)Ljava/lang/Integer;
	move-result-object p0
	const-string v2, "NotificationParams"
	const/4 p0, 0x0
	:cond_31
	const-string p0, "gcm.n.notification_count"
	invoke-virtual {p1, p0}, Lp/e;->f(Ljava/lang/String;)Ljava/lang/Integer;
	move-result-object p0
	const/4 p0, 0x0
	:cond_34
	const-string p0, "gcm.n.event_time"
	invoke-virtual {p1, p0}, Lp/e;->i(Ljava/lang/String;)Ljava/lang/String;
	move-result-object v1
	invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
	move-result v3
	const/4 p0, 0x0
	:goto_17
	const-string p0, "gcm.n.vibrate_timings"
	invoke-virtual {p1, p0}, Lp/e;->g(Ljava/lang/String;)Lorg/json/JSONArray;
	move-result-object p0
	const/4 v3, 0x0
	:cond_3a
	const-string p0, ". Skipping setting LightSettings"
	const-string v1, "LightSettings is invalid: "
	const-string v3, "gcm.n.light_settings"
	invoke-virtual {p1, v3}, Lp/e;->g(Ljava/lang/String;)Lorg/json/JSONArray;
	move-result-object v3
	const/4 v5, 0x0
	:goto_1c
	const-string p0, "gcm.n.default_sound"
	invoke-virtual {p1, p0}, Lp/e;->e(Ljava/lang/String;)Z
	move-result p0
	const-string v0, "gcm.n.default_vibrate_timings"
	invoke-virtual {p1, v0}, Lp/e;->e(Ljava/lang/String;)Z
	move-result v0
	const-string v0, "gcm.n.default_light_settings"
	invoke-virtual {p1, v0}, Lp/e;->e(Ljava/lang/String;)Z
	move-result v0
	iget-object v0, v8, Lc/d;->r:Landroid/app/Notification;
	iput p0, v0, Landroid/app/Notification;->defaults:I
	and-int/lit8 p0, p0, 0x4
	new-instance p0, Lh1/e;
	const-string v0, "gcm.n.tag"
	invoke-virtual {p1, v0}, Lp/e;->i(Ljava/lang/String;)Ljava/lang/String;
	move-result-object p1
	invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
	move-result v0
	invoke-direct {p0, v8, p1}, Lh1/e;-><init>(Lc/d;Ljava/lang/String;)V
	return-object p0
.end method

.method public static b(Landroid/content/res/Resources;I)Z
	.locals 4

	const-string v0, "FirebaseMessaging"
	sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
	const/4 v2, 0x1
	const/16 v3, 0x1a
	return v2
.end method