granularity level: instruction

		.class public Lcom/google/android/gms/common/internal/ViewUtils;
.super Ljava/lang/Object;
.source "com.google.android.gms:play-services-basement@@18.1.0"




.method private constructor <init>()V
	.locals 0

	invoke-direct {p0}, Ljava/lang/Object;-><init>()V
	return-void
.end method

.method public static getXmlAttributeString(Ljava/lang/String;Ljava/lang/String;Landroid/content/Context;Landroid/util/AttributeSet;ZZLjava/lang/String;)Ljava/lang/String;
	.locals 2

	if-nez p3, :cond_0
	const/4 p0, 0x0
	goto :goto_0
	:cond_0
	invoke-interface {p3, p0, p1}, Landroid/util/AttributeSet;->getAttributeValue(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
	move-result-object p0
	:goto_0
	if-eqz p0, :cond_2
	const-string p3, "@string/"
	invoke-virtual {p0, p3}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
	move-result p3
	if-eqz p3, :cond_2
	if-eqz p4, :cond_2
	const/16 p3, 0x8
	invoke-virtual {p0, p3}, Ljava/lang/String;->substring(I)Ljava/lang/String;
	move-result-object p3
	invoke-virtual {p2}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
	move-result-object p4
	new-instance v0, Landroid/util/TypedValue;
	invoke-direct {v0}, Landroid/util/TypedValue;-><init>()V
	:try_start_0
	invoke-virtual {p2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
	move-result-object p2
	new-instance v1, Ljava/lang/StringBuilder;
	invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
	invoke-virtual {v1, p4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	const-string p4, ":string/"
	invoke-virtual {v1, p4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v1, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
	move-result-object p3
	const/4 p4, 0x1
	invoke-virtual {p2, p3, v0, p4}, Landroid/content/res/Resources;->getValue(Ljava/lang/String;Landroid/util/TypedValue;Z)V
	:try_end_0
	.catch Landroid/content/res/Resources$NotFoundException; {:try_start_0 .. :try_end_0} :catch_0
	goto :goto_1
	:catch_0
	new-instance p2, Ljava/lang/StringBuilder;
	invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V
	const-string p3, "Could not find resource for "
	invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	const-string p3, ": "
	invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {p2, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
	move-result-object p2
	invoke-static {p6, p2}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
	:goto_1
	iget-object p2, v0, Landroid/util/TypedValue;->string:Ljava/lang/CharSequence;
	if-eqz p2, :cond_1
	iget-object p0, v0, Landroid/util/TypedValue;->string:Ljava/lang/CharSequence;
	invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
	move-result-object p0
	goto :goto_2
	:cond_1
	invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
	move-result-object p2
	new-instance p3, Ljava/lang/StringBuilder;
	invoke-direct {p3}, Ljava/lang/StringBuilder;-><init>()V
	const-string p4, "Resource "
	invoke-virtual {p3, p4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {p3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	const-string p4, " was not a string: "
	invoke-virtual {p3, p4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {p3, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {p3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
	move-result-object p2
	invoke-static {p6, p2}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
	:goto_2
	:cond_2
	if-eqz p5, :cond_3
	if-nez p0, :cond_3
	new-instance p2, Ljava/lang/StringBuilder;
	invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V
	const-string p3, "Required XML attribute \""
	invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	const-string p1, "\" missing"
	invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
	move-result-object p1
	invoke-static {p6, p1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
	:cond_3
	return-object p0
.end method