granularity level: instruction

		.class public final Lcom/google/android/gms/common/internal/zac;
.super Ljava/lang/Object;
.source "com.google.android.gms:play-services-base@@18.0.1"


.field private static final zaa:Landroidx/collection/SimpleArrayMap;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/collection/SimpleArrayMap<",
"Ljava/lang/String;",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
.field private static zab:Ljava/util/Locale;


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

	new-instance v0, Landroidx/collection/SimpleArrayMap;
	invoke-direct {v0}, Landroidx/collection/SimpleArrayMap;-><init>()V
	sput-object v0, Lcom/google/android/gms/common/internal/zac;->zaa:Landroidx/collection/SimpleArrayMap;
	return-void
.end method

.method public static zaa(Landroid/content/Context;)Ljava/lang/String;
	.locals 2

	invoke-virtual {p0}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
	move-result-object v0
	:try_start_0
	invoke-static {p0}, Lcom/google/android/gms/common/wrappers/Wrappers;->packageManager(Landroid/content/Context;)Lcom/google/android/gms/common/wrappers/PackageManagerWrapper;
	move-result-object v1
	invoke-virtual {v1, v0}, Lcom/google/android/gms/common/wrappers/PackageManagerWrapper;->getApplicationLabel(Ljava/lang/String;)Ljava/lang/CharSequence;
	move-result-object v1
	invoke-interface {v1}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;
	move-result-object p0
	:try_end_0
	.catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
	.catch Ljava/lang/NullPointerException; {:try_start_0 .. :try_end_0} :catch_0
	return-object p0
	:catch_0
	nop
	invoke-virtual {p0}, Landroid/content/Context;->getApplicationInfo()Landroid/content/pm/ApplicationInfo;
	move-result-object p0
	iget-object p0, p0, Landroid/content/pm/ApplicationInfo;->name:Ljava/lang/String;
	invoke-static {p0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
	move-result v1
	if-eqz v1, :cond_0
	return-object v0
	:cond_0
	return-object p0
.end method

.method public static zab(Landroid/content/Context;)Ljava/lang/String;
	.locals 1

	invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
	move-result-object p0
	sget v0, Lcom/google/android/gms/base/R$string;->common_google_play_services_notification_channel_name:I
	invoke-virtual {p0, v0}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
	move-result-object p0
	return-object p0
.end method

.method public static zac(Landroid/content/Context;I)Ljava/lang/String;
	.locals 1

	invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
	move-result-object p0
	const/4 v0, 0x1
	if-eq p1, v0, :cond_2
	const/4 v0, 0x2
	if-eq p1, v0, :cond_1
	const/4 v0, 0x3
	if-eq p1, v0, :cond_0
	const p1, 0x104000a
	invoke-virtual {p0, p1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
	move-result-object p0
	return-object p0
	:cond_0
	sget p1, Lcom/google/android/gms/base/R$string;->common_google_play_services_enable_button:I
	invoke-virtual {p0, p1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
	move-result-object p0
	return-object p0
	:cond_1
	sget p1, Lcom/google/android/gms/base/R$string;->common_google_play_services_update_button:I
	invoke-virtual {p0, p1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
	move-result-object p0
	return-object p0
	:cond_2
	sget p1, Lcom/google/android/gms/base/R$string;->common_google_play_services_install_button:I
	invoke-virtual {p0, p1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
	move-result-object p0
	return-object p0
.end method

.method public static zad(Landroid/content/Context;I)Ljava/lang/String;
	.locals 5

	invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
	move-result-object v0
	invoke-static {p0}, Lcom/google/android/gms/common/internal/zac;->zaa(Landroid/content/Context;)Ljava/lang/String;
	move-result-object v1
	const/4 v2, 0x0
	const/4 v3, 0x1
	if-eq p1, v3, :cond_7
	const/4 v4, 0x2
	if-eq p1, v4, :cond_5
	const/4 v4, 0x3
	if-eq p1, v4, :cond_4
	const/4 v4, 0x5
	if-eq p1, v4, :cond_3
	const/4 v4, 0x7
	if-eq p1, v4, :cond_2
	const/16 v4, 0x9
	if-eq p1, v4, :cond_1
	const/16 v4, 0x14
	if-eq p1, v4, :cond_0
	packed-switch p1, :pswitch_data_0
	sget p0, Lcom/google/android/gms/common/R$string;->common_google_play_services_unknown_issue:I
	new-array p1, v3, [Ljava/lang/Object;
	aput-object v1, p1, v2
	invoke-virtual {v0, p0, p1}, Landroid/content/res/Resources;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
	move-result-object p0
	return-object p0
	:pswitch_0
	sget p0, Lcom/google/android/gms/base/R$string;->common_google_play_services_updating_text:I
	new-array p1, v3, [Ljava/lang/Object;
	aput-object v1, p1, v2
	invoke-virtual {v0, p0, p1}, Landroid/content/res/Resources;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
	move-result-object p0
	return-object p0
	:pswitch_1
	const-string p1, "common_google_play_services_sign_in_failed_text"
	invoke-static {p0, p1, v1}, Lcom/google/android/gms/common/internal/zac;->zah(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
	move-result-object p0
	return-object p0
	:pswitch_2
	const-string p1, "common_google_play_services_api_unavailable_text"
	invoke-static {p0, p1, v1}, Lcom/google/android/gms/common/internal/zac;->zah(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
	move-result-object p0
	return-object p0
	:cond_0
	const-string p1, "common_google_play_services_restricted_profile_text"
	invoke-static {p0, p1, v1}, Lcom/google/android/gms/common/internal/zac;->zah(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
	move-result-object p0
	return-object p0
	:cond_1
	sget p0, Lcom/google/android/gms/base/R$string;->common_google_play_services_unsupported_text:I
	new-array p1, v3, [Ljava/lang/Object;
	aput-object v1, p1, v2
	invoke-virtual {v0, p0, p1}, Landroid/content/res/Resources;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
	move-result-object p0
	return-object p0
	:cond_2
	const-string p1, "common_google_play_services_network_error_text"
	invoke-static {p0, p1, v1}, Lcom/google/android/gms/common/internal/zac;->zah(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
	move-result-object p0
	return-object p0
	:cond_3
	const-string p1, "common_google_play_services_invalid_account_text"
	invoke-static {p0, p1, v1}, Lcom/google/android/gms/common/internal/zac;->zah(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
	move-result-object p0
	return-object p0
	:cond_4
	sget p0, Lcom/google/android/gms/base/R$string;->common_google_play_services_enable_text:I
	new-array p1, v3, [Ljava/lang/Object;
	aput-object v1, p1, v2
	invoke-virtual {v0, p0, p1}, Landroid/content/res/Resources;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
	move-result-object p0
	return-object p0
	:cond_5
	invoke-static {p0}, Lcom/google/android/gms/common/util/DeviceProperties;->isWearableWithoutPlayStore(Landroid/content/Context;)Z
	move-result p0
	if-eqz p0, :cond_6
	sget p0, Lcom/google/android/gms/base/R$string;->common_google_play_services_wear_update_text:I
	invoke-virtual {v0, p0}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
	move-result-object p0
	return-object p0
	:cond_6
	sget p0, Lcom/google/android/gms/base/R$string;->common_google_play_services_update_text:I
	new-array p1, v3, [Ljava/lang/Object;
	aput-object v1, p1, v2
	invoke-virtual {v0, p0, p1}, Landroid/content/res/Resources;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
	move-result-object p0
	return-object p0
	:cond_7
	sget p0, Lcom/google/android/gms/base/R$string;->common_google_play_services_install_text:I
	new-array p1, v3, [Ljava/lang/Object;
	aput-object v1, p1, v2
	invoke-virtual {v0, p0, p1}, Landroid/content/res/Resources;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
	move-result-object p0
	return-object p0
	nop
	:pswitch_data_0
	.packed-switch 0x10
	:pswitch_2
	:pswitch_1
	:pswitch_0
	.end packed-switch
.end method

.method public static zae(Landroid/content/Context;I)Ljava/lang/String;
	.locals 1

	const/4 v0, 0x6
	if-eq p1, v0, :cond_1
	const/16 v0, 0x13
	if-ne p1, v0, :cond_0
	goto :goto_0
	:cond_0
	invoke-static {p0, p1}, Lcom/google/android/gms/common/internal/zac;->zad(Landroid/content/Context;I)Ljava/lang/String;
	move-result-object p0
	return-object p0
	:cond_1
	:goto_0
	invoke-static {p0}, Lcom/google/android/gms/common/internal/zac;->zaa(Landroid/content/Context;)Ljava/lang/String;
	move-result-object p1
	const-string v0, "common_google_play_services_resolution_required_text"
	invoke-static {p0, v0, p1}, Lcom/google/android/gms/common/internal/zac;->zah(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
	move-result-object p0
	return-object p0
.end method

.method public static zaf(Landroid/content/Context;I)Ljava/lang/String;
	.locals 1

	const/4 v0, 0x6
	if-ne p1, v0, :cond_0
	const-string p1, "common_google_play_services_resolution_required_title"
	invoke-static {p0, p1}, Lcom/google/android/gms/common/internal/zac;->zai(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;
	move-result-object p1
	goto :goto_0
	:cond_0
	invoke-static {p0, p1}, Lcom/google/android/gms/common/internal/zac;->zag(Landroid/content/Context;I)Ljava/lang/String;
	move-result-object p1
	:goto_0
	if-nez p1, :cond_1
	invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
	move-result-object p0
	sget p1, Lcom/google/android/gms/base/R$string;->common_google_play_services_notification_ticker:I
	invoke-virtual {p0, p1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
	move-result-object p0
	return-object p0
	:cond_1
	return-object p1
.end method

.method public static zag(Landroid/content/Context;I)Ljava/lang/String;
	.locals 3

	invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
	move-result-object v0
	const/4 v1, 0x0
	const-string v2, "GoogleApiAvailability"
	packed-switch p1, :pswitch_data_0
	:pswitch_0
	new-instance p0, Ljava/lang/StringBuilder;
	const/16 v0, 0x21
	invoke-direct {p0, v0}, Ljava/lang/StringBuilder;-><init>(I)V
	const-string v0, "Unexpected error code "
	invoke-virtual {p0, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
	invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
	move-result-object p0
	invoke-static {v2, p0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
	return-object v1
	:pswitch_1
	const-string p1, "The current user profile is restricted and could not use authenticated features."
	invoke-static {v2, p1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
	const-string p1, "common_google_play_services_restricted_profile_title"
	invoke-static {p0, p1}, Lcom/google/android/gms/common/internal/zac;->zai(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;
	move-result-object p0
	return-object p0
	:pswitch_2
	const-string p1, "The specified account could not be signed in."
	invoke-static {v2, p1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
	const-string p1, "common_google_play_services_sign_in_failed_title"
	invoke-static {p0, p1}, Lcom/google/android/gms/common/internal/zac;->zai(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;
	move-result-object p0
	return-object p0
	:pswitch_3
	const-string p0, "One of the API components you attempted to connect to is not available."
	invoke-static {v2, p0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
	return-object v1
	:pswitch_4
	const-string p0, "The application is not licensed to the user."
	invoke-static {v2, p0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
	return-object v1
	:pswitch_5
	const-string p0, "Developer error occurred. Please see logs for detailed information"
	invoke-static {v2, p0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
	return-object v1
	:pswitch_6
	const-string p0, "Google Play services is invalid. Cannot recover."
	invoke-static {v2, p0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
	return-object v1
	:pswitch_7
	const-string p0, "Internal error occurred. Please see logs for detailed information"
	invoke-static {v2, p0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
	return-object v1
	:pswitch_8
	const-string p1, "Network error occurred. Please retry request later."
	invoke-static {v2, p1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
	const-string p1, "common_google_play_services_network_error_title"
	invoke-static {p0, p1}, Lcom/google/android/gms/common/internal/zac;->zai(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;
	move-result-object p0
	return-object p0
	:pswitch_9
	const-string p1, "An invalid account was specified when connecting. Please provide a valid account."
	invoke-static {v2, p1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
	const-string p1, "common_google_play_services_invalid_account_title"
	invoke-static {p0, p1}, Lcom/google/android/gms/common/internal/zac;->zai(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;
	move-result-object p0
	return-object p0
	:pswitch_a
	return-object v1
	:pswitch_b
	sget p0, Lcom/google/android/gms/base/R$string;->common_google_play_services_enable_title:I
	invoke-virtual {v0, p0}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
	move-result-object p0
	return-object p0
	:pswitch_c
	sget p0, Lcom/google/android/gms/base/R$string;->common_google_play_services_update_title:I
	invoke-virtual {v0, p0}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
	move-result-object p0
	return-object p0
	:pswitch_d
	sget p0, Lcom/google/android/gms/base/R$string;->common_google_play_services_install_title:I
	invoke-virtual {v0, p0}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
	move-result-object p0
	return-object p0
	nop
	:pswitch_data_0
	.packed-switch 0x1
	:pswitch_d
	:pswitch_c
	:pswitch_b
	:pswitch_a
	:pswitch_9
	:pswitch_a
	:pswitch_8
	:pswitch_7
	:pswitch_6
	:pswitch_5
	:pswitch_4
	:pswitch_0
	:pswitch_0
	:pswitch_0
	:pswitch_0
	:pswitch_3
	:pswitch_2
	:pswitch_a
	:pswitch_0
	:pswitch_1
	.end packed-switch
.end method

.method private static zah(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
	.locals 2

	invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
	move-result-object v0
	invoke-static {p0, p1}, Lcom/google/android/gms/common/internal/zac;->zai(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;
	move-result-object p0
	if-nez p0, :cond_0
	sget p0, Lcom/google/android/gms/common/R$string;->common_google_play_services_unknown_issue:I
	invoke-virtual {v0, p0}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
	move-result-object p0
	:cond_0
	invoke-virtual {v0}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;
	move-result-object p1
	iget-object p1, p1, Landroid/content/res/Configuration;->locale:Ljava/util/Locale;
	const/4 v0, 0x1
	new-array v0, v0, [Ljava/lang/Object;
	const/4 v1, 0x0
	aput-object p2, v0, v1
	invoke-static {p1, p0, v0}, Ljava/lang/String;->format(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
	move-result-object p0
	return-object p0
.end method

.method private static zai(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;
	.locals 4

	sget-object v0, Lcom/google/android/gms/common/internal/zac;->zaa:Landroidx/collection/SimpleArrayMap;
	monitor-enter v0
	:try_start_0
	invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
	move-result-object v1
	invoke-virtual {v1}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;
	move-result-object v1
	invoke-static {v1}, Landroidx/core/os/ConfigurationCompat;->getLocales(Landroid/content/res/Configuration;)Landroidx/core/os/LocaleListCompat;
	move-result-object v1
	const/4 v2, 0x0
	invoke-virtual {v1, v2}, Landroidx/core/os/LocaleListCompat;->get(I)Ljava/util/Locale;
	move-result-object v1
	sget-object v2, Lcom/google/android/gms/common/internal/zac;->zab:Ljava/util/Locale;
	invoke-virtual {v1, v2}, Ljava/util/Locale;->equals(Ljava/lang/Object;)Z
	move-result v2
	if-nez v2, :cond_0
	invoke-virtual {v0}, Landroidx/collection/SimpleArrayMap;->clear()V
	sput-object v1, Lcom/google/android/gms/common/internal/zac;->zab:Ljava/util/Locale;
	:cond_0
	invoke-virtual {v0, p1}, Landroidx/collection/SimpleArrayMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
	move-result-object v1
	check-cast v1, Ljava/lang/String;
	if-eqz v1, :cond_1
	monitor-exit v0
	return-object v1
	:cond_1
	invoke-static {p0}, Lcom/google/android/gms/common/GooglePlayServicesUtil;->getRemoteResource(Landroid/content/Context;)Landroid/content/res/Resources;
	move-result-object p0
	const/4 v1, 0x0
	if-nez p0, :cond_2
	monitor-exit v0
	return-object v1
	:cond_2
	const-string v2, "string"
	const-string v3, "com.google.android.gms"
	invoke-virtual {p0, p1, v2, v3}, Landroid/content/res/Resources;->getIdentifier(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I
	move-result v2
	if-nez v2, :cond_4
	const-string p0, "GoogleApiAvailability"
	const-string v2, "Missing resource: "
	invoke-virtual {p1}, Ljava/lang/String;->length()I
	move-result v3
	if-eqz v3, :cond_3
	invoke-virtual {v2, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
	move-result-object p1
	goto :goto_0
	:cond_3
	new-instance p1, Ljava/lang/String;
	invoke-direct {p1, v2}, Ljava/lang/String;-><init>(Ljava/lang/String;)V
	:goto_0
	invoke-static {p0, p1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
	monitor-exit v0
	return-object v1
	:cond_4
	invoke-virtual {p0, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
	move-result-object p0
	invoke-static {p0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
	move-result v2
	if-eqz v2, :cond_6
	const-string p0, "GoogleApiAvailability"
	const-string v2, "Got empty resource: "
	invoke-virtual {p1}, Ljava/lang/String;->length()I
	move-result v3
	if-eqz v3, :cond_5
	invoke-virtual {v2, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
	move-result-object p1
	goto :goto_1
	:cond_5
	new-instance p1, Ljava/lang/String;
	invoke-direct {p1, v2}, Ljava/lang/String;-><init>(Ljava/lang/String;)V
	:goto_1
	invoke-static {p0, p1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
	monitor-exit v0
	return-object v1
	:cond_6
	invoke-virtual {v0, p1, p0}, Landroidx/collection/SimpleArrayMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
	monitor-exit v0
	return-object p0
	:catchall_0
	move-exception p0
	monitor-exit v0
	:try_end_0
	.catchall {:try_start_0 .. :try_end_0} :catchall_0
	throw p0
.end method