granularity level: instruction

		.class final Lcom/google/android/gms/common/util/zzc;
.super Ljava/lang/Object;
.source "com.google.android.gms:play-services-basement@@18.1.0"


.field private static final zza:Ljava/util/regex/Pattern;


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

	const-string v0, "\\\\u[0-9a-fA-F]{4}"
	invoke-static {v0}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;
	move-result-object v0
	sput-object v0, Lcom/google/android/gms/common/util/zzc;->zza:Ljava/util/regex/Pattern;
	return-void
.end method

.method public static zza(Ljava/lang/String;)Ljava/lang/String;
	.locals 7

	invoke-static {p0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
	move-result v0
	if-nez v0, :cond_7
	sget-object v0, Lcom/google/android/gms/common/util/zzc;->zza:Ljava/util/regex/Pattern;
	invoke-virtual {v0, p0}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
	move-result-object v0
	const/4 v1, 0x0
	const/4 v2, 0x0
	:goto_0
	:cond_0
	invoke-virtual {v0}, Ljava/util/regex/Matcher;->find()Z
	move-result v3
	if-eqz v3, :cond_4
	if-nez v2, :cond_1
	new-instance v2, Ljava/lang/StringBuilder;
	invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
	:cond_1
	invoke-virtual {v0}, Ljava/util/regex/Matcher;->start()I
	move-result v3
	move v4, v3
	:goto_1
	const/16 v5, 0x5c
	if-ltz v4, :cond_2
	invoke-virtual {p0, v4}, Ljava/lang/String;->charAt(I)C
	move-result v6
	if-ne v6, v5, :cond_2
	add-int/lit8 v4, v4, -0x1
	goto :goto_1
	:cond_2
	sub-int/2addr v3, v4
	const/4 v4, 0x2
	rem-int/2addr v3, v4
	if-eqz v3, :cond_0
	invoke-virtual {v0}, Ljava/util/regex/Matcher;->group()Ljava/lang/String;
	move-result-object v3
	invoke-virtual {v3, v4}, Ljava/lang/String;->substring(I)Ljava/lang/String;
	move-result-object v3
	const/16 v4, 0x10
	invoke-static {v3, v4}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;I)I
	move-result v3
	invoke-virtual {v0}, Ljava/util/regex/Matcher;->start()I
	move-result v4
	invoke-virtual {v2, p0, v1, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/CharSequence;II)Ljava/lang/StringBuilder;
	if-ne v3, v5, :cond_3
	const-string v1, "\\\\"
	invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	goto :goto_2
	:cond_3
	invoke-static {v3}, Ljava/lang/Character;->toChars(I)[C
	move-result-object v1
	invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append([C)Ljava/lang/StringBuilder;
	:goto_2
	invoke-virtual {v0}, Ljava/util/regex/Matcher;->end()I
	move-result v1
	goto :goto_0
	:cond_4
	if-nez v2, :cond_5
	return-object p0
	:cond_5
	invoke-virtual {v0}, Ljava/util/regex/Matcher;->regionEnd()I
	move-result v3
	if-ge v1, v3, :cond_6
	invoke-virtual {v0}, Ljava/util/regex/Matcher;->regionEnd()I
	move-result v0
	invoke-virtual {v2, p0, v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/CharSequence;II)Ljava/lang/StringBuilder;
	:cond_6
	invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
	move-result-object p0
	:cond_7
	return-object p0
.end method