granularity level: instruction

		.class public final Lcom/google/firebase/iid/FirebaseInstanceIdReceiver;
.super Landroid/content/BroadcastReceiver;
.source "SourceFile"


.field public final a:Ljava/util/concurrent/ExecutorService;


.method public constructor <init>()V
	.locals 9

	invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V
	new-instance v7, La/b;
	const-string v0, "firebase-iid-executor"
	invoke-direct {v7, v0}, La/b;-><init>(Ljava/lang/String;)V
	new-instance v8, Ljava/util/concurrent/ThreadPoolExecutor;
	sget-object v5, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;
	new-instance v6, Ljava/util/concurrent/LinkedBlockingQueue;
	invoke-direct {v6}, Ljava/util/concurrent/LinkedBlockingQueue;-><init>()V
	const/4 v1, 0x1
	const/4 v2, 0x1
	const-wide/16 v3, 0x3c
	move-object v0, v8
	invoke-direct/range {v0 .. v7}, Ljava/util/concurrent/ThreadPoolExecutor;-><init>(IIJLjava/util/concurrent/TimeUnit;Ljava/util/concurrent/BlockingQueue;Ljava/util/concurrent/ThreadFactory;)V
	const/4 v0, 0x1
	invoke-virtual {v8, v0}, Ljava/util/concurrent/ThreadPoolExecutor;->allowCoreThreadTimeOut(Z)V
	invoke-static {v8}, Ljava/util/concurrent/Executors;->unconfigurableExecutorService(Ljava/util/concurrent/ExecutorService;)Ljava/util/concurrent/ExecutorService;
	move-result-object v0
	iput-object v0, p0, Lcom/google/firebase/iid/FirebaseInstanceIdReceiver;->a:Ljava/util/concurrent/ExecutorService;
	return-void
.end method

.method public static b(Landroid/content/Context;Landroid/content/Intent;)I
	.locals 6

	invoke-virtual {p1}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;
	move-result-object v0
	const/16 v1, 0x1f4
	if-nez v0, :cond_0
	goto/16 :goto_4
	:cond_0
	const-string v0, "google.message_id"
	invoke-virtual {p1, v0}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;
	move-result-object v2
	invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
	move-result v3
	if-eqz v3, :cond_1
	const/4 v0, 0x0
	invoke-static {v0}, Lf0/a;->j(Ljava/lang/Object;)Lo0/o;
	move-result-object v0
	goto :goto_0
	:cond_1
	new-instance v3, Landroid/os/Bundle;
	invoke-direct {v3}, Landroid/os/Bundle;-><init>()V
	invoke-virtual {v3, v0, v2}, Landroid/os/BaseBundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
	invoke-static {p0}, Lw/m;->a(Landroid/content/Context;)Lw/m;
	move-result-object v0
	new-instance v2, Lw/k;
	monitor-enter v0
	:try_start_0
	iget v4, v0, Lw/m;->d:I
	add-int/lit8 v5, v4, 0x1
	iput v5, v0, Lw/m;->d:I
	:try_end_0
	.catchall {:try_start_0 .. :try_end_0} :catchall_0
	monitor-exit v0
	const/4 v5, 0x0
	invoke-direct {v2, v4, v3, v5}, Lw/k;-><init>(ILandroid/os/Bundle;I)V
	invoke-virtual {v0, v2}, Lw/m;->b(Lw/k;)Lo0/o;
	move-result-object v0
	:goto_0
	:try_start_1
	new-instance v2, Lh1/l;
	invoke-direct {v2, p0}, Lh1/l;-><init>(Landroid/content/Context;)V
	invoke-virtual {v2, p1}, Lh1/l;->b(Landroid/content/Intent;)Lo0/o;
	move-result-object p0
	invoke-static {p0}, Lf0/a;->a(Lo0/o;)Ljava/lang/Object;
	move-result-object p0
	check-cast p0, Ljava/lang/Integer;
	invoke-virtual {p0}, Ljava/lang/Integer;->intValue()I
	move-result v1
	:try_end_1
	.catch Ljava/util/concurrent/ExecutionException; {:try_start_1 .. :try_end_1} :catch_1
	.catch Ljava/lang/InterruptedException; {:try_start_1 .. :try_end_1} :catch_0
	goto :goto_2
	:catch_0
	move-exception p0
	goto :goto_1
	:catch_1
	move-exception p0
	:goto_1
	const-string p1, "FirebaseMessaging"
	const-string v2, "Failed to send message to service."
	invoke-static {p1, v2, p0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
	:goto_2
	:try_start_2
	sget-object p0, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;
	const-wide/16 v2, 0x1
	invoke-virtual {p0, v2, v3}, Ljava/util/concurrent/TimeUnit;->toMillis(J)J
	move-result-wide p0
	sget-object v2, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
	invoke-static {v0, p0, p1, v2}, Lf0/a;->b(Lo0/o;JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;
	:try_end_2
	.catch Ljava/util/concurrent/ExecutionException; {:try_start_2 .. :try_end_2} :catch_4
	.catch Ljava/lang/InterruptedException; {:try_start_2 .. :try_end_2} :catch_3
	.catch Ljava/util/concurrent/TimeoutException; {:try_start_2 .. :try_end_2} :catch_2
	goto :goto_4
	:catch_2
	move-exception p0
	goto :goto_3
	:catch_3
	move-exception p0
	goto :goto_3
	:catch_4
	move-exception p0
	:goto_3
	invoke-static {p0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
	move-result-object p0
	invoke-virtual {p0}, Ljava/lang/String;->length()I
	move-result p1
	new-instance v0, Ljava/lang/StringBuilder;
	add-int/lit8 p1, p1, 0x14
	invoke-direct {v0, p1}, Ljava/lang/StringBuilder;-><init>(I)V
	const-string p1, "Message ack failed: "
	invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
	move-result-object p0
	const-string p1, "CloudMessagingReceiver"
	invoke-static {p1, p0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
	:goto_4
	return v1
	:catchall_0
	move-exception p0
	monitor-exit v0
	throw p0
.end method

.method public static c(Landroid/content/Intent;)I
	.locals 3

	const-string v0, "pending_intent"
	invoke-virtual {p0, v0}, Landroid/content/Intent;->getParcelableExtra(Ljava/lang/String;)Landroid/os/Parcelable;
	move-result-object v1
	check-cast v1, Landroid/app/PendingIntent;
	const-string v2, "CloudMessagingReceiver"
	if-eqz v1, :cond_0
	:try_start_0
	invoke-virtual {v1}, Landroid/app/PendingIntent;->send()V
	:try_end_0
	.catch Landroid/app/PendingIntent$CanceledException; {:try_start_0 .. :try_end_0} :catch_0
	goto :goto_0
	:catch_0
	const-string v1, "Notification pending intent canceled"
	invoke-static {v2, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
	:goto_0
	:cond_0
	invoke-virtual {p0}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;
	move-result-object v1
	if-eqz v1, :cond_1
	invoke-virtual {v1, v0}, Landroid/os/Bundle;->remove(Ljava/lang/String;)V
	goto :goto_1
	:cond_1
	new-instance v1, Landroid/os/Bundle;
	invoke-direct {v1}, Landroid/os/Bundle;-><init>()V
	:goto_1
	invoke-virtual {p0}, Landroid/content/Intent;->getAction()Ljava/lang/String;
	move-result-object p0
	const-string v0, "com.google.firebase.messaging.NOTIFICATION_DISMISS"
	invoke-virtual {v0, p0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
	move-result p0
	if-eqz p0, :cond_3
	new-instance p0, Landroid/content/Intent;
	invoke-direct {p0, v0}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
	invoke-virtual {p0, v1}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;
	move-result-object p0
	invoke-static {p0}, Lp0/a;->C(Landroid/content/Intent;)Z
	move-result v0
	if-eqz v0, :cond_2
	invoke-virtual {p0}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;
	move-result-object p0
	const-string v0, "_nd"
	invoke-static {v0, p0}, Lp0/a;->x(Ljava/lang/String;Landroid/os/Bundle;)V
	:cond_2
	const/4 p0, -0x1
	goto :goto_2
	:cond_3
	const-string p0, "Unknown notification action"
	invoke-static {v2, p0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
	const/16 p0, 0x1f4
	:goto_2
	return p0
.end method

.method public final a(Landroid/content/Context;Landroid/content/Intent;)V
	.locals 8

	if-nez p2, :cond_0
	return-void
	:cond_0
	invoke-virtual {p0}, Landroid/content/BroadcastReceiver;->isOrderedBroadcast()Z
	move-result v4
	invoke-virtual {p0}, Landroid/content/BroadcastReceiver;->goAsync()Landroid/content/BroadcastReceiver$PendingResult;
	move-result-object v5
	iget-object v6, p0, Lcom/google/firebase/iid/FirebaseInstanceIdReceiver;->a:Ljava/util/concurrent/ExecutorService;
	new-instance v7, Lw/f;
	move-object v0, v7
	move-object v1, p0
	move-object v2, p2
	move-object v3, p1
	invoke-direct/range {v0 .. v5}, Lw/f;-><init>(Lcom/google/firebase/iid/FirebaseInstanceIdReceiver;Landroid/content/Intent;Landroid/content/Context;ZLandroid/content/BroadcastReceiver$PendingResult;)V
	invoke-interface {v6, v7}, Ljava/util/concurrent/Executor;->execute(Ljava/lang/Runnable;)V
	return-void
.end method

.method public final bridge synthetic onReceive(Landroid/content/Context;Landroid/content/Intent;)V
	.locals 0

	invoke-virtual {p0, p1, p2}, Lcom/google/firebase/iid/FirebaseInstanceIdReceiver;->a(Landroid/content/Context;Landroid/content/Intent;)V
	return-void
.end method