granularity level: instruction

		.class public final Lh1/l;
.super Ljava/lang/Object;
.source "SourceFile"


.field public static final c:Ljava/lang/Object;
.field public static d:Lh1/m0;
.field public final a:Landroid/content/Context;
.field public final b:Lh1/h;


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

	new-instance v0, Ljava/lang/Object;
	invoke-direct {v0}, Ljava/lang/Object;-><init>()V
	sput-object v0, Lh1/l;->c:Ljava/lang/Object;
	return-void
.end method

.method public constructor <init>(Landroid/content/Context;)V
	.locals 1

	invoke-direct {p0}, Ljava/lang/Object;-><init>()V
	iput-object p1, p0, Lh1/l;->a:Landroid/content/Context;
	new-instance p1, Lh1/h;
	const/4 v0, 0x1
	invoke-direct {p1, v0}, Lh1/h;-><init>(I)V
	iput-object p1, p0, Lh1/l;->b:Lh1/h;
	return-void
.end method

.method public static a(Landroid/content/Context;Landroid/content/Intent;)Lo0/o;
	.locals 5

	const-string v0, "FirebaseMessaging"
	const/4 v1, 0x3
	invoke-static {v0, v1}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
	move-result v0
	if-eqz v0, :cond_0
	const-string v0, "FirebaseMessaging"
	const-string v1, "Binding to service"
	invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
	:cond_0
	invoke-static {}, Lh1/z;->a()Lh1/z;
	move-result-object v0
	invoke-virtual {v0, p0}, Lh1/z;->c(Landroid/content/Context;)Z
	move-result v0
	if-eqz v0, :cond_4
	sget-object v0, Lh1/l;->c:Ljava/lang/Object;
	monitor-enter v0
	:try_start_0
	sget-object v1, Lh1/l;->d:Lh1/m0;
	if-nez v1, :cond_1
	new-instance v1, Lh1/m0;
	invoke-direct {v1, p0}, Lh1/m0;-><init>(Landroid/content/Context;)V
	sput-object v1, Lh1/l;->d:Lh1/m0;
	:cond_1
	sget-object v1, Lh1/l;->d:Lh1/m0;
	monitor-exit v0
	:try_end_0
	.catchall {:try_start_0 .. :try_end_0} :catchall_2
	sget-object v2, Lh1/j0;->b:Ljava/lang/Object;
	monitor-enter v2
	:try_start_1
	sget-object v0, Lh1/j0;->c:Ln0/a;
	const/4 v3, 0x1
	if-nez v0, :cond_2
	new-instance v0, Ln0/a;
	invoke-direct {v0, p0}, Ln0/a;-><init>(Landroid/content/Context;)V
	sput-object v0, Lh1/j0;->c:Ln0/a;
	iget-object p0, v0, Ln0/a;->a:Ljava/lang/Object;
	monitor-enter p0
	:try_end_1
	.catchall {:try_start_1 .. :try_end_1} :catchall_1
	:try_start_2
	iput-boolean v3, v0, Ln0/a;->g:Z
	monitor-exit p0
	goto :goto_0
	:catchall_0
	move-exception p1
	monitor-exit p0
	:try_end_2
	.catchall {:try_start_2 .. :try_end_2} :catchall_0
	:try_start_3
	throw p1
	:goto_0
	:cond_2
	const-string p0, "com.google.firebase.iid.WakeLockHolder.wakefulintent"
	const/4 v0, 0x0
	invoke-virtual {p1, p0, v0}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z
	move-result p0
	const-string v0, "com.google.firebase.iid.WakeLockHolder.wakefulintent"
	invoke-virtual {p1, v0, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;
	if-nez p0, :cond_3
	sget-object p0, Lh1/j0;->c:Ln0/a;
	sget-wide v3, Lh1/j0;->a:J
	invoke-virtual {p0, v3, v4}, Ln0/a;->a(J)V
	:cond_3
	invoke-virtual {v1, p1}, Lh1/m0;->b(Landroid/content/Intent;)Lo0/o;
	move-result-object p0
	new-instance v0, Lh1/h;
	const/4 v1, 0x5
	invoke-direct {v0, v1}, Lh1/h;-><init>(I)V
	new-instance v1, Lj/b;
	const/16 v3, 0xa
	invoke-direct {v1, v3, p1}, Lj/b;-><init>(ILjava/lang/Object;)V
	invoke-virtual {p0, v0, v1}, Lo0/o;->a(Ljava/util/concurrent/Executor;Lo0/d;)V
	monitor-exit v2
	goto :goto_1
	:catchall_1
	move-exception p0
	monitor-exit v2
	:try_end_3
	.catchall {:try_start_3 .. :try_end_3} :catchall_1
	throw p0
	:catchall_2
	move-exception p0
	:try_start_4
	monitor-exit v0
	:try_end_4
	.catchall {:try_start_4 .. :try_end_4} :catchall_2
	throw p0
	:cond_4
	sget-object v0, Lh1/l;->c:Ljava/lang/Object;
	monitor-enter v0
	:try_start_5
	sget-object v1, Lh1/l;->d:Lh1/m0;
	if-nez v1, :cond_5
	new-instance v1, Lh1/m0;
	invoke-direct {v1, p0}, Lh1/m0;-><init>(Landroid/content/Context;)V
	sput-object v1, Lh1/l;->d:Lh1/m0;
	:cond_5
	sget-object p0, Lh1/l;->d:Lh1/m0;
	monitor-exit v0
	:try_end_5
	.catchall {:try_start_5 .. :try_end_5} :catchall_3
	invoke-virtual {p0, p1}, Lh1/m0;->b(Landroid/content/Intent;)Lo0/o;
	:goto_1
	const/4 p0, -0x1
	invoke-static {p0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
	move-result-object p0
	invoke-static {p0}, Lf0/a;->j(Ljava/lang/Object;)Lo0/o;
	move-result-object p0
	return-object p0
	:catchall_3
	move-exception p0
	:try_start_6
	monitor-exit v0
	:try_end_6
	.catchall {:try_start_6 .. :try_end_6} :catchall_3
	throw p0
.end method

.method public final b(Landroid/content/Intent;)Lo0/o;
	.locals 6

	const-string v0, "gcm.rawData64"
	invoke-virtual {p1, v0}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;
	move-result-object v1
	const/4 v2, 0x0
	if-eqz v1, :cond_0
	invoke-static {v1, v2}, Landroid/util/Base64;->decode(Ljava/lang/String;I)[B
	move-result-object v1
	const-string v3, "rawData"
	invoke-virtual {p1, v3, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;[B)Landroid/content/Intent;
	invoke-virtual {p1, v0}, Landroid/content/Intent;->removeExtra(Ljava/lang/String;)V
	:cond_0
	iget-object v0, p0, Lh1/l;->a:Landroid/content/Context;
	invoke-static {}, Lp0/a;->u()Z
	move-result v1
	const/4 v3, 0x1
	if-eqz v1, :cond_1
	invoke-virtual {v0}, Landroid/content/Context;->getApplicationInfo()Landroid/content/pm/ApplicationInfo;
	move-result-object v1
	iget v1, v1, Landroid/content/pm/ApplicationInfo;->targetSdkVersion:I
	const/16 v4, 0x1a
	if-lt v1, v4, :cond_1
	const/4 v1, 0x1
	goto :goto_0
	:cond_1
	const/4 v1, 0x0
	:goto_0
	invoke-virtual {p1}, Landroid/content/Intent;->getFlags()I
	move-result v4
	const/high16 v5, 0x10000000
	and-int/2addr v4, v5
	if-eqz v4, :cond_2
	const/4 v2, 0x1
	:cond_2
	if-eqz v1, :cond_3
	if-nez v2, :cond_3
	invoke-static {v0, p1}, Lh1/l;->a(Landroid/content/Context;Landroid/content/Intent;)Lo0/o;
	move-result-object p1
	goto :goto_1
	:cond_3
	iget-object v1, p0, Lh1/l;->b:Lh1/h;
	new-instance v2, Lh1/k;
	invoke-direct {v2, v0, p1}, Lh1/k;-><init>(Landroid/content/Context;Landroid/content/Intent;)V
	invoke-static {v1, v2}, Lf0/a;->d(Ljava/util/concurrent/Executor;Ljava/util/concurrent/Callable;)Lo0/o;
	move-result-object v1
	iget-object v2, p0, Lh1/l;->b:Lh1/h;
	new-instance v3, Lq/j;
	const/4 v4, 0x3
	invoke-direct {v3, v0, p1, v4}, Lq/j;-><init>(Ljava/lang/Object;Ljava/lang/Object;I)V
	invoke-virtual {v1, v2, v3}, Lo0/o;->d(Ljava/util/concurrent/Executor;Lo0/a;)Lo0/o;
	move-result-object p1
	:goto_1
	return-object p1
.end method