granularity level: instruction

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


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


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

	const-string v0, "^(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}$"
	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/HttpUtils;->zza:Ljava/util/regex/Pattern;
	const-string v0, "^(?:[0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,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/HttpUtils;->zzb:Ljava/util/regex/Pattern;
	const-string v0, "^((?:[0-9A-Fa-f]{1,4}(?::[0-9A-Fa-f]{1,4})*)?)::((?:[0-9A-Fa-f]{1,4}(?::[0-9A-Fa-f]{1,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/HttpUtils;->zzc:Ljava/util/regex/Pattern;
	return-void
.end method

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

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

.method public static parse(Ljava/net/URI;Ljava/lang/String;)Ljava/util/Map;
	.locals 6
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"(",
	"Ljava/net/URI;",
	"Ljava/lang/String;",
	")",
	"Ljava/util/Map<",
	"Ljava/lang/String;",
	"Ljava/lang/String;",
	">;"
	}
	.end annotation

	invoke-static {}, Ljava/util/Collections;->emptyMap()Ljava/util/Map;
	move-result-object v0
	invoke-virtual {p0}, Ljava/net/URI;->getRawQuery()Ljava/lang/String;
	move-result-object p0
	if-eqz p0, :cond_2
	invoke-virtual {p0}, Ljava/lang/String;->length()I
	move-result v1
	if-lez v1, :cond_2
	new-instance v0, Ljava/util/HashMap;
	invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
	const/16 v1, 0x3d
	invoke-static {v1}, Lcom/google/android/gms/internal/common/zzo;->zzb(C)Lcom/google/android/gms/internal/common/zzo;
	move-result-object v1
	invoke-static {v1}, Lcom/google/android/gms/internal/common/zzx;->zzc(Lcom/google/android/gms/internal/common/zzo;)Lcom/google/android/gms/internal/common/zzx;
	move-result-object v1
	const/16 v2, 0x26
	invoke-static {v2}, Lcom/google/android/gms/internal/common/zzo;->zzb(C)Lcom/google/android/gms/internal/common/zzo;
	move-result-object v2
	invoke-static {v2}, Lcom/google/android/gms/internal/common/zzx;->zzc(Lcom/google/android/gms/internal/common/zzo;)Lcom/google/android/gms/internal/common/zzx;
	move-result-object v2
	invoke-virtual {v2}, Lcom/google/android/gms/internal/common/zzx;->zzb()Lcom/google/android/gms/internal/common/zzx;
	move-result-object v2
	invoke-virtual {v2, p0}, Lcom/google/android/gms/internal/common/zzx;->zzd(Ljava/lang/CharSequence;)Ljava/lang/Iterable;
	move-result-object p0
	invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
	move-result-object p0
	:goto_0
	invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
	move-result v2
	if-eqz v2, :cond_2
	invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
	move-result-object v2
	check-cast v2, Ljava/lang/String;
	invoke-virtual {v1, v2}, Lcom/google/android/gms/internal/common/zzx;->zzf(Ljava/lang/CharSequence;)Ljava/util/List;
	move-result-object v2
	invoke-interface {v2}, Ljava/util/List;->isEmpty()Z
	move-result v3
	if-nez v3, :cond_1
	invoke-interface {v2}, Ljava/util/List;->size()I
	move-result v3
	const/4 v4, 0x2
	if-gt v3, v4, :cond_1
	const/4 v3, 0x0
	invoke-interface {v2, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;
	move-result-object v3
	check-cast v3, Ljava/lang/String;
	invoke-static {v3, p1}, Lcom/google/android/gms/common/util/HttpUtils;->zza(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
	move-result-object v3
	invoke-interface {v2}, Ljava/util/List;->size()I
	move-result v5
	if-ne v5, v4, :cond_0
	const/4 v4, 0x1
	invoke-interface {v2, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;
	move-result-object v2
	check-cast v2, Ljava/lang/String;
	invoke-static {v2, p1}, Lcom/google/android/gms/common/util/HttpUtils;->zza(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
	move-result-object v2
	goto :goto_1
	:cond_0
	const/4 v2, 0x0
	:goto_1
	invoke-interface {v0, v3, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
	goto :goto_0
	:cond_1
	new-instance p0, Ljava/lang/IllegalArgumentException;
	const-string p1, "bad parameter"
	invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
	throw p0
	:cond_2
	return-object v0
.end method

.method private static zza(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
	.locals 0

	if-nez p1, :cond_0
	const-string p1, "ISO-8859-1"
	:cond_0
	:try_start_0
	invoke-static {p0, p1}, Ljava/net/URLDecoder;->decode(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
	move-result-object p0
	:try_end_0
	.catch Ljava/io/UnsupportedEncodingException; {:try_start_0 .. :try_end_0} :catch_0
	return-object p0
	:catch_0
	move-exception p0
	new-instance p1, Ljava/lang/IllegalArgumentException;
	invoke-direct {p1, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/Throwable;)V
	throw p1
.end method