granularity level: instruction

		.class public final Lj1/c;
.super Ljava/lang/Object;
.source "SourceFile"
.implements Ln/b;


.field public static volatile b:Lj1/c;
.field public a:Ljava/lang/Object;


.method public constructor <init>(I)V
	.locals 1

	const/4 v0, 0x1
	if-eq p1, v0, :cond_0
	invoke-direct {p0}, Ljava/lang/Object;-><init>()V
	new-instance p1, Ljava/util/HashSet;
	invoke-direct {p1}, Ljava/util/HashSet;-><init>()V
	iput-object p1, p0, Lj1/c;->a:Ljava/lang/Object;
	return-void
	:cond_0
	invoke-direct {p0}, Ljava/lang/Object;-><init>()V
	const/4 p1, 0x0
	iput-object p1, p0, Lj1/c;->a:Ljava/lang/Object;
	return-void
.end method

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

	invoke-direct {p0}, Ljava/lang/Object;-><init>()V
	const-string v0, "com.google.android.gms.appid"
	const/4 v1, 0x0
	invoke-virtual {p1, v0, v1}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;
	move-result-object v0
	iput-object v0, p0, Lj1/c;->a:Ljava/lang/Object;
	const-string v0, "com.google.android.gms.appid-no-backup"
	invoke-virtual {p1}, Landroid/content/Context;->getNoBackupFilesDir()Ljava/io/File;
	move-result-object p1
	new-instance v1, Ljava/io/File;
	invoke-direct {v1, p1, v0}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V
	invoke-virtual {v1}, Ljava/io/File;->exists()Z
	move-result p1
	if-eqz p1, :cond_0
	goto :goto_0
	:try_start_0
	:cond_0
	invoke-virtual {v1}, Ljava/io/File;->createNewFile()Z
	move-result p1
	if-eqz p1, :cond_1
	monitor-enter p0
	:try_end_0
	.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
	:try_start_1
	iget-object p1, p0, Lj1/c;->a:Ljava/lang/Object;
	check-cast p1, Landroid/content/SharedPreferences;
	invoke-interface {p1}, Landroid/content/SharedPreferences;->getAll()Ljava/util/Map;
	move-result-object p1
	invoke-interface {p1}, Ljava/util/Map;->isEmpty()Z
	move-result p1
	:try_end_1
	.catchall {:try_start_1 .. :try_end_1} :catchall_1
	:try_start_2
	monitor-exit p0
	if-nez p1, :cond_1
	const-string p1, "FirebaseMessaging"
	const-string v0, "App restored, clearing state"
	invoke-static {p1, v0}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
	monitor-enter p0
	:try_end_2
	.catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_0
	:try_start_3
	iget-object p1, p0, Lj1/c;->a:Ljava/lang/Object;
	check-cast p1, Landroid/content/SharedPreferences;
	invoke-interface {p1}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;
	move-result-object p1
	invoke-interface {p1}, Landroid/content/SharedPreferences$Editor;->clear()Landroid/content/SharedPreferences$Editor;
	move-result-object p1
	invoke-interface {p1}, Landroid/content/SharedPreferences$Editor;->commit()Z
	:try_end_3
	.catchall {:try_start_3 .. :try_end_3} :catchall_0
	:try_start_4
	monitor-exit p0
	goto :goto_0
	:catchall_0
	move-exception p1
	monitor-exit p0
	throw p1
	:catchall_1
	move-exception p1
	monitor-exit p0
	throw p1
	:try_end_4
	.catch Ljava/io/IOException; {:try_start_4 .. :try_end_4} :catch_0
	:catch_0
	move-exception p1
	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_1
	const-string v0, "FirebaseMessaging"
	const-string v1, "Error creating file in no backup dir: "
	invoke-static {v1}, Lc0/b;->b(Ljava/lang/String;)Ljava/lang/StringBuilder;
	move-result-object v1
	invoke-virtual {p1}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
	move-result-object p1
	invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
	move-result-object p1
	invoke-static {v0, p1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
	:goto_0
	:cond_1
	return-void
.end method

.method public synthetic constructor <init>(Ljava/lang/Object;)V
	.locals 0

	iput-object p1, p0, Lj1/c;->a:Ljava/lang/Object;
	invoke-direct {p0}, Ljava/lang/Object;-><init>()V
	return-void
.end method

.method public static a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
	.locals 1

	new-instance v0, Ljava/lang/StringBuilder;
	invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
	invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	const-string p0, "|T|"
	invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	const-string p0, "|"
	invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	const-string p0, "*"
	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
	return-object p0
.end method

.method public final b(Ljava/lang/String;)Ljava/lang/CharSequence;
	.locals 3

	iget-object v0, p0, Lj1/c;->a:Ljava/lang/Object;
	check-cast v0, Landroid/content/Context;
	invoke-virtual {v0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
	move-result-object v0
	iget-object v1, p0, Lj1/c;->a:Ljava/lang/Object;
	check-cast v1, Landroid/content/Context;
	invoke-virtual {v1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
	move-result-object v1
	const/4 v2, 0x0
	invoke-virtual {v1, p1, v2}, Landroid/content/pm/PackageManager;->getApplicationInfo(Ljava/lang/String;I)Landroid/content/pm/ApplicationInfo;
	move-result-object p1
	invoke-virtual {v0, p1}, Landroid/content/pm/PackageManager;->getApplicationLabel(Landroid/content/pm/ApplicationInfo;)Ljava/lang/CharSequence;
	move-result-object p1
	return-object p1
.end method

.method public final get()Ljava/lang/Object;
	.locals 2

	iget-object v0, p0, Lj1/c;->a:Ljava/lang/Object;
	check-cast v0, Lk1/a;
	invoke-interface {v0}, Lk1/a;->get()Ljava/lang/Object;
	move-result-object v0
	check-cast v0, Landroid/content/Context;
	invoke-virtual {v0}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
	move-result-object v0
	if-eqz v0, :cond_0
	return-object v0
	:cond_0
	new-instance v0, Ljava/lang/NullPointerException;
	const-string v1, "Cannot return null from a non-@Nullable @Provides method"
	invoke-direct {v0, v1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
	throw v0
.end method