granularity level: instruction

		.class public final synthetic Lh1/o;
.super Ljava/lang/Object;
.source "SourceFile"
.implements Ljava/lang/Runnable;


.field public final synthetic a:I
.field public final synthetic b:Lcom/google/firebase/messaging/FirebaseMessaging;


.method public synthetic constructor <init>(Lcom/google/firebase/messaging/FirebaseMessaging;I)V
	.locals 0

	iput p2, p0, Lh1/o;->a:I
	iput-object p1, p0, Lh1/o;->b:Lcom/google/firebase/messaging/FirebaseMessaging;
	invoke-direct {p0}, Ljava/lang/Object;-><init>()V
	return-void
.end method

.method public final run()V
	.locals 6

	iget v0, p0, Lh1/o;->a:I
	packed-switch v0, :pswitch_data_0
	goto :goto_2
	:pswitch_0
	iget-object v0, p0, Lh1/o;->b:Lcom/google/firebase/messaging/FirebaseMessaging;
	sget-object v1, Lcom/google/firebase/messaging/FirebaseMessaging;->k:Lj1/c;
	iget-object v1, v0, Lcom/google/firebase/messaging/FirebaseMessaging;->e:Lh1/r;
	monitor-enter v1
	:try_start_0
	invoke-virtual {v1}, Lh1/r;->a()V
	iget-object v2, v1, Lh1/r;->c:Ljava/lang/Boolean;
	if-eqz v2, :cond_0
	invoke-virtual {v2}, Ljava/lang/Boolean;->booleanValue()Z
	move-result v2
	goto :goto_0
	:cond_0
	iget-object v2, v1, Lh1/r;->d:Lcom/google/firebase/messaging/FirebaseMessaging;
	iget-object v2, v2, Lcom/google/firebase/messaging/FirebaseMessaging;->a:Lp0/g;
	invoke-virtual {v2}, Lp0/g;->a()V
	iget-object v2, v2, Lp0/g;->g:Lr0/o;
	invoke-virtual {v2}, Lr0/o;->get()Ljava/lang/Object;
	move-result-object v2
	check-cast v2, Lg1/a;
	monitor-enter v2
	:try_end_0
	.catchall {:try_start_0 .. :try_end_0} :catchall_2
	:try_start_1
	iget-boolean v3, v2, Lg1/a;->a:Z
	:try_end_1
	.catchall {:try_start_1 .. :try_end_1} :catchall_1
	:try_start_2
	monitor-exit v2
	:try_end_2
	.catchall {:try_start_2 .. :try_end_2} :catchall_2
	move v2, v3
	:goto_0
	monitor-exit v1
	if-eqz v2, :cond_2
	invoke-virtual {v0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
	invoke-virtual {v0}, Lcom/google/firebase/messaging/FirebaseMessaging;->c()Lh1/a0;
	move-result-object v1
	invoke-virtual {v0, v1}, Lcom/google/firebase/messaging/FirebaseMessaging;->e(Lh1/a0;)Z
	move-result v1
	if-eqz v1, :cond_2
	monitor-enter v0
	:try_start_3
	iget-boolean v1, v0, Lcom/google/firebase/messaging/FirebaseMessaging;->i:Z
	if-nez v1, :cond_1
	const-wide/16 v1, 0x0
	invoke-virtual {v0, v1, v2}, Lcom/google/firebase/messaging/FirebaseMessaging;->d(J)V
	:try_end_3
	.catchall {:try_start_3 .. :try_end_3} :catchall_0
	:cond_1
	monitor-exit v0
	goto :goto_1
	:catchall_0
	move-exception v1
	monitor-exit v0
	throw v1
	:goto_1
	:cond_2
	return-void
	:catchall_1
	move-exception v0
	:try_start_4
	monitor-exit v2
	throw v0
	:try_end_4
	.catchall {:try_start_4 .. :try_end_4} :catchall_2
	:catchall_2
	move-exception v0
	monitor-exit v1
	throw v0
	:goto_2
	iget-object v0, p0, Lh1/o;->b:Lcom/google/firebase/messaging/FirebaseMessaging;
	iget-object v0, v0, Lcom/google/firebase/messaging/FirebaseMessaging;->b:Landroid/content/Context;
	invoke-virtual {v0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
	move-result-object v1
	if-nez v1, :cond_3
	move-object v1, v0
	:cond_3
	const-string v2, "com.google.firebase.messaging"
	const/4 v3, 0x0
	invoke-virtual {v1, v2, v3}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;
	move-result-object v1
	const-string v2, "proxy_notification_initialized"
	invoke-interface {v1, v2, v3}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z
	move-result v1
	if-eqz v1, :cond_4
	goto :goto_4
	:cond_4
	const-string v1, "firebase_messaging_notification_delegation_enabled"
	:try_start_5
	invoke-virtual {v0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
	move-result-object v2
	invoke-virtual {v2}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
	move-result-object v4
	if-eqz v4, :cond_5
	invoke-virtual {v2}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
	move-result-object v2
	const/16 v5, 0x80
	invoke-virtual {v4, v2, v5}, Landroid/content/pm/PackageManager;->getApplicationInfo(Ljava/lang/String;I)Landroid/content/pm/ApplicationInfo;
	move-result-object v2
	if-eqz v2, :cond_5
	iget-object v4, v2, Landroid/content/pm/ApplicationInfo;->metaData:Landroid/os/Bundle;
	if-eqz v4, :cond_5
	invoke-virtual {v4, v1}, Landroid/os/BaseBundle;->containsKey(Ljava/lang/String;)Z
	move-result v4
	if-eqz v4, :cond_5
	iget-object v2, v2, Landroid/content/pm/ApplicationInfo;->metaData:Landroid/os/Bundle;
	invoke-virtual {v2, v1}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;)Z
	move-result v1
	:try_end_5
	.catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_5 .. :try_end_5} :catch_0
	goto :goto_3
	:catch_0
	:cond_5
	const/4 v1, 0x1
	:goto_3
	sget v2, Landroid/os/Build$VERSION;->SDK_INT:I
	const/16 v4, 0x1d
	if-lt v2, v4, :cond_6
	const/4 v3, 0x1
	:cond_6
	if-nez v3, :cond_7
	const/4 v0, 0x0
	invoke-static {v0}, Lf0/a;->j(Ljava/lang/Object;)Lo0/o;
	goto :goto_4
	:cond_7
	new-instance v2, Lo0/i;
	invoke-direct {v2}, Lo0/i;-><init>()V
	new-instance v3, Lh1/v;
	invoke-direct {v3, v0, v1, v2}, Lh1/v;-><init>(Landroid/content/Context;ZLo0/i;)V
	invoke-virtual {v3}, Lh1/v;->run()V
	:goto_4
	return-void
	:pswitch_data_0
	.packed-switch 0x0
	:pswitch_0
	.end packed-switch
.end method