granularity level: instruction

		.class public final Lcom/google/android/gms/dynamite/DynamiteModule;
.super Ljava/lang/Object;
.source "com.google.android.gms:play-services-basement@@18.1.0"

.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/android/gms/dynamite/DynamiteModule$VersionPolicy;,
Lcom/google/android/gms/dynamite/DynamiteModule$LoadingException;,
Lcom/google/android/gms/dynamite/DynamiteModule$DynamiteLoaderClassLoader;
}
.end annotation

.field public static final LOCAL:I = -0x1
.field public static final NONE:I = 0x0
.field public static final NO_SELECTION:I = 0x0
.field public static final PREFER_HIGHEST_OR_LOCAL_VERSION:Lcom/google/android/gms/dynamite/DynamiteModule$VersionPolicy;
.field public static final PREFER_HIGHEST_OR_LOCAL_VERSION_NO_FORCE_STAGING:Lcom/google/android/gms/dynamite/DynamiteModule$VersionPolicy;
.field public static final PREFER_HIGHEST_OR_REMOTE_VERSION:Lcom/google/android/gms/dynamite/DynamiteModule$VersionPolicy;
.field public static final PREFER_LOCAL:Lcom/google/android/gms/dynamite/DynamiteModule$VersionPolicy;
.field public static final PREFER_REMOTE:Lcom/google/android/gms/dynamite/DynamiteModule$VersionPolicy;
.field public static final PREFER_REMOTE_VERSION_NO_FORCE_STAGING:Lcom/google/android/gms/dynamite/DynamiteModule$VersionPolicy;
.field public static final REMOTE:I = 0x1
.field public static final zza:Lcom/google/android/gms/dynamite/DynamiteModule$VersionPolicy;
.field private static zzb:Ljava/lang/Boolean; = null
.field private static zzc:Ljava/lang/String; = null
.field private static zzd:Z = false
.field private static zze:I = -0x1
.field private static zzf:Ljava/lang/Boolean;
.field private static final zzg:Ljava/lang/ThreadLocal;
.field private static final zzh:Ljava/lang/ThreadLocal;
.field private static final zzi:Lcom/google/android/gms/dynamite/DynamiteModule$VersionPolicy$IVersions;
.field private static zzk:Lcom/google/android/gms/dynamite/zzq;
.field private static zzl:Lcom/google/android/gms/dynamite/zzr;
.field private final zzj:Landroid/content/Context;


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

	new-instance v0, Ljava/lang/ThreadLocal;
	invoke-direct {v0}, Ljava/lang/ThreadLocal;-><init>()V
	sput-object v0, Lcom/google/android/gms/dynamite/DynamiteModule;->zzg:Ljava/lang/ThreadLocal;
	new-instance v0, Lcom/google/android/gms/dynamite/zzd;
	invoke-direct {v0}, Lcom/google/android/gms/dynamite/zzd;-><init>()V
	sput-object v0, Lcom/google/android/gms/dynamite/DynamiteModule;->zzh:Ljava/lang/ThreadLocal;
	new-instance v0, Lcom/google/android/gms/dynamite/zze;
	invoke-direct {v0}, Lcom/google/android/gms/dynamite/zze;-><init>()V
	sput-object v0, Lcom/google/android/gms/dynamite/DynamiteModule;->zzi:Lcom/google/android/gms/dynamite/DynamiteModule$VersionPolicy$IVersions;
	new-instance v0, Lcom/google/android/gms/dynamite/zzf;
	invoke-direct {v0}, Lcom/google/android/gms/dynamite/zzf;-><init>()V
	sput-object v0, Lcom/google/android/gms/dynamite/DynamiteModule;->PREFER_REMOTE:Lcom/google/android/gms/dynamite/DynamiteModule$VersionPolicy;
	new-instance v0, Lcom/google/android/gms/dynamite/zzg;
	invoke-direct {v0}, Lcom/google/android/gms/dynamite/zzg;-><init>()V
	sput-object v0, Lcom/google/android/gms/dynamite/DynamiteModule;->PREFER_LOCAL:Lcom/google/android/gms/dynamite/DynamiteModule$VersionPolicy;
	new-instance v0, Lcom/google/android/gms/dynamite/zzh;
	invoke-direct {v0}, Lcom/google/android/gms/dynamite/zzh;-><init>()V
	sput-object v0, Lcom/google/android/gms/dynamite/DynamiteModule;->PREFER_REMOTE_VERSION_NO_FORCE_STAGING:Lcom/google/android/gms/dynamite/DynamiteModule$VersionPolicy;
	new-instance v0, Lcom/google/android/gms/dynamite/zzi;
	invoke-direct {v0}, Lcom/google/android/gms/dynamite/zzi;-><init>()V
	sput-object v0, Lcom/google/android/gms/dynamite/DynamiteModule;->PREFER_HIGHEST_OR_LOCAL_VERSION:Lcom/google/android/gms/dynamite/DynamiteModule$VersionPolicy;
	new-instance v0, Lcom/google/android/gms/dynamite/zzj;
	invoke-direct {v0}, Lcom/google/android/gms/dynamite/zzj;-><init>()V
	sput-object v0, Lcom/google/android/gms/dynamite/DynamiteModule;->PREFER_HIGHEST_OR_LOCAL_VERSION_NO_FORCE_STAGING:Lcom/google/android/gms/dynamite/DynamiteModule$VersionPolicy;
	new-instance v0, Lcom/google/android/gms/dynamite/zzk;
	invoke-direct {v0}, Lcom/google/android/gms/dynamite/zzk;-><init>()V
	sput-object v0, Lcom/google/android/gms/dynamite/DynamiteModule;->PREFER_HIGHEST_OR_REMOTE_VERSION:Lcom/google/android/gms/dynamite/DynamiteModule$VersionPolicy;
	new-instance v0, Lcom/google/android/gms/dynamite/zzl;
	invoke-direct {v0}, Lcom/google/android/gms/dynamite/zzl;-><init>()V
	sput-object v0, Lcom/google/android/gms/dynamite/DynamiteModule;->zza:Lcom/google/android/gms/dynamite/DynamiteModule$VersionPolicy;
	return-void
.end method

.method private constructor <init>(Landroid/content/Context;)V
	.locals 0

	invoke-direct {p0}, Ljava/lang/Object;-><init>()V
	invoke-static {p1}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
	iput-object p1, p0, Lcom/google/android/gms/dynamite/DynamiteModule;->zzj:Landroid/content/Context;
	return-void
.end method

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

	const-string v0, "DynamiteModule"
	const/4 v1, 0x0
	:try_start_0
	invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
	move-result-object p0
	invoke-virtual {p0}, Landroid/content/Context;->getClassLoader()Ljava/lang/ClassLoader;
	move-result-object p0
	new-instance v2, Ljava/lang/StringBuilder;
	invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
	const-string v3, "com.google.android.gms.dynamite.descriptors."
	invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	const-string v3, ".ModuleDescriptor"
	invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
	move-result-object v2
	invoke-virtual {p0, v2}, Ljava/lang/ClassLoader;->loadClass(Ljava/lang/String;)Ljava/lang/Class;
	move-result-object p0
	const-string v2, "MODULE_ID"
	invoke-virtual {p0, v2}, Ljava/lang/Class;->getDeclaredField(Ljava/lang/String;)Ljava/lang/reflect/Field;
	move-result-object v2
	const-string v3, "MODULE_VERSION"
	invoke-virtual {p0, v3}, Ljava/lang/Class;->getDeclaredField(Ljava/lang/String;)Ljava/lang/reflect/Field;
	move-result-object p0
	const/4 v3, 0x0
	invoke-virtual {v2, v3}, Ljava/lang/reflect/Field;->get(Ljava/lang/Object;)Ljava/lang/Object;
	move-result-object v4
	invoke-static {v4, p1}, Lcom/google/android/gms/common/internal/Objects;->equal(Ljava/lang/Object;Ljava/lang/Object;)Z
	move-result v4
	if-nez v4, :cond_0
	invoke-virtual {v2, v3}, Ljava/lang/reflect/Field;->get(Ljava/lang/Object;)Ljava/lang/Object;
	move-result-object p0
	invoke-static {p0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
	move-result-object p0
	new-instance v2, Ljava/lang/StringBuilder;
	invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
	const-string v3, "Module descriptor id \'"
	invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v2, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	const-string p0, "\' didn\'t match expected id \'"
	invoke-virtual {v2, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	const-string p0, "\'"
	invoke-virtual {v2, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
	move-result-object p0
	invoke-static {v0, p0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
	return v1
	:cond_0
	invoke-virtual {p0, v3}, Ljava/lang/reflect/Field;->getInt(Ljava/lang/Object;)I
	move-result p0
	:try_end_0
	.catch Ljava/lang/ClassNotFoundException; {:try_start_0 .. :try_end_0} :catch_1
	.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
	return p0
	:catch_0
	move-exception p0
	invoke-virtual {p0}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;
	move-result-object p0
	invoke-static {p0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
	move-result-object p0
	const-string p1, "Failed to load module descriptor class: "
	invoke-virtual {p1, p0}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
	move-result-object p0
	invoke-static {v0, p0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
	goto :goto_0
	:catch_1
	new-instance p0, Ljava/lang/StringBuilder;
	invoke-direct {p0}, Ljava/lang/StringBuilder;-><init>()V
	const-string v2, "Local module descriptor class for "
	invoke-virtual {p0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	const-string p1, " not found."
	invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
	move-result-object p0
	invoke-static {v0, p0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
	:goto_0
	return v1
.end method

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

	const/4 v0, 0x0
	invoke-static {p0, p1, v0}, Lcom/google/android/gms/dynamite/DynamiteModule;->zza(Landroid/content/Context;Ljava/lang/String;Z)I
	move-result p0
	return p0
.end method

.method public static load(Landroid/content/Context;Lcom/google/android/gms/dynamite/DynamiteModule$VersionPolicy;Ljava/lang/String;)Lcom/google/android/gms/dynamite/DynamiteModule;
	.locals 17
	.annotation system Ldalvik/annotation/Throws;
	value = {
	Lcom/google/android/gms/dynamite/DynamiteModule$LoadingException;
	}
	.end annotation

	move-object/from16 v1, p0
	move-object/from16 v2, p1
	move-object/from16 v3, p2
	const-class v4, Lcom/google/android/gms/dynamite/DynamiteModule;
	sget-object v0, Lcom/google/android/gms/dynamite/DynamiteModule;->zzg:Ljava/lang/ThreadLocal;
	invoke-virtual {v0}, Ljava/lang/ThreadLocal;->get()Ljava/lang/Object;
	move-result-object v5
	check-cast v5, Lcom/google/android/gms/dynamite/zzn;
	new-instance v6, Lcom/google/android/gms/dynamite/zzn;
	const/4 v7, 0x0
	invoke-direct {v6, v7}, Lcom/google/android/gms/dynamite/zzn;-><init>(Lcom/google/android/gms/dynamite/zzm;)V
	invoke-virtual {v0, v6}, Ljava/lang/ThreadLocal;->set(Ljava/lang/Object;)V
	sget-object v8, Lcom/google/android/gms/dynamite/DynamiteModule;->zzh:Ljava/lang/ThreadLocal;
	invoke-virtual {v8}, Ljava/lang/ThreadLocal;->get()Ljava/lang/Object;
	move-result-object v9
	check-cast v9, Ljava/lang/Long;
	invoke-virtual {v9}, Ljava/lang/Long;->longValue()J
	move-result-wide v9
	:try_start_0
	invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J
	move-result-wide v13
	invoke-static {v13, v14}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
	move-result-object v13
	invoke-virtual {v8, v13}, Ljava/lang/ThreadLocal;->set(Ljava/lang/Object;)V
	sget-object v13, Lcom/google/android/gms/dynamite/DynamiteModule;->zzi:Lcom/google/android/gms/dynamite/DynamiteModule$VersionPolicy$IVersions;
	invoke-interface {v2, v1, v3, v13}, Lcom/google/android/gms/dynamite/DynamiteModule$VersionPolicy;->selectModule(Landroid/content/Context;Ljava/lang/String;Lcom/google/android/gms/dynamite/DynamiteModule$VersionPolicy$IVersions;)Lcom/google/android/gms/dynamite/DynamiteModule$VersionPolicy$SelectionResult;
	move-result-object v13
	iget v14, v13, Lcom/google/android/gms/dynamite/DynamiteModule$VersionPolicy$SelectionResult;->localVersion:I
	iget v15, v13, Lcom/google/android/gms/dynamite/DynamiteModule$VersionPolicy$SelectionResult;->remoteVersion:I
	new-instance v7, Ljava/lang/StringBuilder;
	invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V
	const-string v11, "Considering local module "
	invoke-virtual {v7, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v7, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	const-string v11, ":"
	invoke-virtual {v7, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v7, v14}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
	const-string v11, " and remote module "
	invoke-virtual {v7, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v7, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	const-string v11, ":"
	invoke-virtual {v7, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v7, v15}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
	const-string v11, "DynamiteModule"
	invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
	move-result-object v7
	invoke-static {v11, v7}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
	iget v7, v13, Lcom/google/android/gms/dynamite/DynamiteModule$VersionPolicy$SelectionResult;->selection:I
	if-eqz v7, :cond_18
	const/4 v11, -0x1
	if-ne v7, v11, :cond_0
	iget v7, v13, Lcom/google/android/gms/dynamite/DynamiteModule$VersionPolicy$SelectionResult;->localVersion:I
	if-eqz v7, :cond_18
	const/4 v7, -0x1
	:cond_0
	const/4 v12, 0x1
	if-ne v7, v12, :cond_1
	iget v14, v13, Lcom/google/android/gms/dynamite/DynamiteModule$VersionPolicy$SelectionResult;->remoteVersion:I
	if-eqz v14, :cond_18
	:cond_1
	if-ne v7, v11, :cond_4
	invoke-static {v1, v3}, Lcom/google/android/gms/dynamite/DynamiteModule;->zzc(Landroid/content/Context;Ljava/lang/String;)Lcom/google/android/gms/dynamite/DynamiteModule;
	move-result-object v1
	:try_end_0
	.catchall {:try_start_0 .. :try_end_0} :catchall_4
	const-wide/16 v2, 0x0
	cmp-long v4, v9, v2
	if-nez v4, :cond_2
	invoke-virtual {v8}, Ljava/lang/ThreadLocal;->remove()V
	goto :goto_0
	:cond_2
	invoke-static {v9, v10}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
	move-result-object v2
	invoke-virtual {v8, v2}, Ljava/lang/ThreadLocal;->set(Ljava/lang/Object;)V
	:goto_0
	iget-object v2, v6, Lcom/google/android/gms/dynamite/zzn;->zza:Landroid/database/Cursor;
	if-eqz v2, :cond_3
	invoke-interface {v2}, Landroid/database/Cursor;->close()V
	:cond_3
	invoke-virtual {v0, v5}, Ljava/lang/ThreadLocal;->set(Ljava/lang/Object;)V
	return-object v1
	:cond_4
	if-ne v7, v12, :cond_17
	:try_start_1
	iget v14, v13, Lcom/google/android/gms/dynamite/DynamiteModule$VersionPolicy$SelectionResult;->remoteVersion:I
	:try_end_1
	.catch Lcom/google/android/gms/dynamite/DynamiteModule$LoadingException; {:try_start_1 .. :try_end_1} :catch_2
	.catchall {:try_start_1 .. :try_end_1} :catchall_4
	:try_start_2
	monitor-enter v4
	:try_end_2
	.catch Landroid/os/RemoteException; {:try_start_2 .. :try_end_2} :catch_1
	.catch Lcom/google/android/gms/dynamite/DynamiteModule$LoadingException; {:try_start_2 .. :try_end_2} :catch_0
	.catchall {:try_start_2 .. :try_end_2} :catchall_3
	:try_start_3
	invoke-static/range {p0 .. p0}, Lcom/google/android/gms/dynamite/DynamiteModule;->zzf(Landroid/content/Context;)Z
	move-result v15
	if-eqz v15, :cond_13
	sget-object v15, Lcom/google/android/gms/dynamite/DynamiteModule;->zzb:Ljava/lang/Boolean;
	monitor-exit v4
	:try_end_3
	.catchall {:try_start_3 .. :try_end_3} :catchall_2
	if-eqz v15, :cond_12
	:try_start_4
	invoke-virtual {v15}, Ljava/lang/Boolean;->booleanValue()Z
	move-result v15
	const/4 v12, 0x2
	if-eqz v15, :cond_a
	new-instance v15, Ljava/lang/StringBuilder;
	invoke-direct {v15}, Ljava/lang/StringBuilder;-><init>()V
	const-string v11, "Selected remote version of "
	invoke-virtual {v15, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v15, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	const-string v11, ", version >= "
	invoke-virtual {v15, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v15, v14}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
	const-string v11, "DynamiteModule"
	invoke-virtual {v15}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
	move-result-object v15
	invoke-static {v11, v15}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
	monitor-enter v4
	:try_end_4
	.catch Landroid/os/RemoteException; {:try_start_4 .. :try_end_4} :catch_1
	.catch Lcom/google/android/gms/dynamite/DynamiteModule$LoadingException; {:try_start_4 .. :try_end_4} :catch_0
	.catchall {:try_start_4 .. :try_end_4} :catchall_3
	:try_start_5
	sget-object v11, Lcom/google/android/gms/dynamite/DynamiteModule;->zzl:Lcom/google/android/gms/dynamite/zzr;
	monitor-exit v4
	:try_end_5
	.catchall {:try_start_5 .. :try_end_5} :catchall_1
	if-eqz v11, :cond_9
	:try_start_6
	invoke-virtual {v0}, Ljava/lang/ThreadLocal;->get()Ljava/lang/Object;
	move-result-object v15
	check-cast v15, Lcom/google/android/gms/dynamite/zzn;
	if-eqz v15, :cond_8
	iget-object v7, v15, Lcom/google/android/gms/dynamite/zzn;->zza:Landroid/database/Cursor;
	if-eqz v7, :cond_8
	invoke-virtual/range {p0 .. p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
	move-result-object v7
	iget-object v15, v15, Lcom/google/android/gms/dynamite/zzn;->zza:Landroid/database/Cursor;
	const/16 v16, 0x0
	invoke-static/range {v16 .. v16}, Lcom/google/android/gms/dynamic/ObjectWrapper;->wrap(Ljava/lang/Object;)Lcom/google/android/gms/dynamic/IObjectWrapper;
	monitor-enter v4
	:try_end_6
	.catch Landroid/os/RemoteException; {:try_start_6 .. :try_end_6} :catch_1
	.catch Lcom/google/android/gms/dynamite/DynamiteModule$LoadingException; {:try_start_6 .. :try_end_6} :catch_0
	.catchall {:try_start_6 .. :try_end_6} :catchall_3
	:try_start_7
	sget v2, Lcom/google/android/gms/dynamite/DynamiteModule;->zze:I
	if-lt v2, v12, :cond_5
	const/4 v12, 0x1
	goto :goto_1
	:cond_5
	const/4 v12, 0x0
	:goto_1
	invoke-static {v12}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
	move-result-object v2
	monitor-exit v4
	:try_end_7
	.catchall {:try_start_7 .. :try_end_7} :catchall_0
	:try_start_8
	invoke-virtual {v2}, Ljava/lang/Boolean;->booleanValue()Z
	move-result v2
	if-eqz v2, :cond_6
	const-string v2, "DynamiteModule"
	const-string v4, "Dynamite loader version >= 2, using loadModule2NoCrashUtils"
	invoke-static {v2, v4}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
	invoke-static {v7}, Lcom/google/android/gms/dynamic/ObjectWrapper;->wrap(Ljava/lang/Object;)Lcom/google/android/gms/dynamic/IObjectWrapper;
	move-result-object v2
	invoke-static {v15}, Lcom/google/android/gms/dynamic/ObjectWrapper;->wrap(Ljava/lang/Object;)Lcom/google/android/gms/dynamic/IObjectWrapper;
	move-result-object v4
	invoke-virtual {v11, v2, v3, v14, v4}, Lcom/google/android/gms/dynamite/zzr;->zzf(Lcom/google/android/gms/dynamic/IObjectWrapper;Ljava/lang/String;ILcom/google/android/gms/dynamic/IObjectWrapper;)Lcom/google/android/gms/dynamic/IObjectWrapper;
	move-result-object v2
	goto :goto_2
	:cond_6
	const-string v2, "DynamiteModule"
	const-string v4, "Dynamite loader version < 2, falling back to loadModule2"
	invoke-static {v2, v4}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
	invoke-static {v7}, Lcom/google/android/gms/dynamic/ObjectWrapper;->wrap(Ljava/lang/Object;)Lcom/google/android/gms/dynamic/IObjectWrapper;
	move-result-object v2
	invoke-static {v15}, Lcom/google/android/gms/dynamic/ObjectWrapper;->wrap(Ljava/lang/Object;)Lcom/google/android/gms/dynamic/IObjectWrapper;
	move-result-object v4
	invoke-virtual {v11, v2, v3, v14, v4}, Lcom/google/android/gms/dynamite/zzr;->zze(Lcom/google/android/gms/dynamic/IObjectWrapper;Ljava/lang/String;ILcom/google/android/gms/dynamic/IObjectWrapper;)Lcom/google/android/gms/dynamic/IObjectWrapper;
	move-result-object v2
	:goto_2
	invoke-static {v2}, Lcom/google/android/gms/dynamic/ObjectWrapper;->unwrap(Lcom/google/android/gms/dynamic/IObjectWrapper;)Ljava/lang/Object;
	move-result-object v2
	check-cast v2, Landroid/content/Context;
	if-eqz v2, :cond_7
	new-instance v4, Lcom/google/android/gms/dynamite/DynamiteModule;
	invoke-direct {v4, v2}, Lcom/google/android/gms/dynamite/DynamiteModule;-><init>(Landroid/content/Context;)V
	goto/16 :goto_4
	:cond_7
	new-instance v0, Lcom/google/android/gms/dynamite/DynamiteModule$LoadingException;
	const-string v2, "Failed to get module context"
	const/4 v4, 0x0
	invoke-direct {v0, v2, v4}, Lcom/google/android/gms/dynamite/DynamiteModule$LoadingException;-><init>(Ljava/lang/String;Lcom/google/android/gms/dynamite/zzp;)V
	throw v0
	:try_end_8
	.catch Landroid/os/RemoteException; {:try_start_8 .. :try_end_8} :catch_1
	.catch Lcom/google/android/gms/dynamite/DynamiteModule$LoadingException; {:try_start_8 .. :try_end_8} :catch_0
	.catchall {:try_start_8 .. :try_end_8} :catchall_3
	:catchall_0
	move-exception v0
	:try_start_9
	monitor-exit v4
	:try_end_9
	.catchall {:try_start_9 .. :try_end_9} :catchall_0
	:try_start_a
	throw v0
	:cond_8
	new-instance v0, Lcom/google/android/gms/dynamite/DynamiteModule$LoadingException;
	const-string v2, "No result cursor"
	const/4 v4, 0x0
	invoke-direct {v0, v2, v4}, Lcom/google/android/gms/dynamite/DynamiteModule$LoadingException;-><init>(Ljava/lang/String;Lcom/google/android/gms/dynamite/zzp;)V
	throw v0
	:cond_9
	new-instance v0, Lcom/google/android/gms/dynamite/DynamiteModule$LoadingException;
	const-string v2, "DynamiteLoaderV2 was not cached."
	const/4 v4, 0x0
	invoke-direct {v0, v2, v4}, Lcom/google/android/gms/dynamite/DynamiteModule$LoadingException;-><init>(Ljava/lang/String;Lcom/google/android/gms/dynamite/zzp;)V
	throw v0
	:try_end_a
	.catch Landroid/os/RemoteException; {:try_start_a .. :try_end_a} :catch_1
	.catch Lcom/google/android/gms/dynamite/DynamiteModule$LoadingException; {:try_start_a .. :try_end_a} :catch_0
	.catchall {:try_start_a .. :try_end_a} :catchall_3
	:catchall_1
	move-exception v0
	:try_start_b
	monitor-exit v4
	:try_end_b
	.catchall {:try_start_b .. :try_end_b} :catchall_1
	:try_start_c
	throw v0
	:cond_a
	new-instance v2, Ljava/lang/StringBuilder;
	invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
	const-string v4, "Selected remote version of "
	invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	const-string v4, ", version >= "
	invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v2, v14}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
	const-string v4, "DynamiteModule"
	invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
	move-result-object v2
	invoke-static {v4, v2}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
	invoke-static/range {p0 .. p0}, Lcom/google/android/gms/dynamite/DynamiteModule;->zzg(Landroid/content/Context;)Lcom/google/android/gms/dynamite/zzq;
	move-result-object v2
	if-eqz v2, :cond_11
	invoke-virtual {v2}, Lcom/google/android/gms/dynamite/zzq;->zze()I
	move-result v4
	const/4 v7, 0x3
	if-lt v4, v7, :cond_c
	invoke-virtual {v0}, Ljava/lang/ThreadLocal;->get()Ljava/lang/Object;
	move-result-object v4
	check-cast v4, Lcom/google/android/gms/dynamite/zzn;
	if-eqz v4, :cond_b
	invoke-static/range {p0 .. p0}, Lcom/google/android/gms/dynamic/ObjectWrapper;->wrap(Ljava/lang/Object;)Lcom/google/android/gms/dynamic/IObjectWrapper;
	move-result-object v7
	iget-object v4, v4, Lcom/google/android/gms/dynamite/zzn;->zza:Landroid/database/Cursor;
	invoke-static {v4}, Lcom/google/android/gms/dynamic/ObjectWrapper;->wrap(Ljava/lang/Object;)Lcom/google/android/gms/dynamic/IObjectWrapper;
	move-result-object v4
	invoke-virtual {v2, v7, v3, v14, v4}, Lcom/google/android/gms/dynamite/zzq;->zzi(Lcom/google/android/gms/dynamic/IObjectWrapper;Ljava/lang/String;ILcom/google/android/gms/dynamic/IObjectWrapper;)Lcom/google/android/gms/dynamic/IObjectWrapper;
	move-result-object v2
	goto :goto_3
	:cond_b
	new-instance v0, Lcom/google/android/gms/dynamite/DynamiteModule$LoadingException;
	const-string v2, "No cached result cursor holder"
	const/4 v4, 0x0
	invoke-direct {v0, v2, v4}, Lcom/google/android/gms/dynamite/DynamiteModule$LoadingException;-><init>(Ljava/lang/String;Lcom/google/android/gms/dynamite/zzp;)V
	throw v0
	:cond_c
	if-ne v4, v12, :cond_d
	const-string v4, "DynamiteModule"
	const-string v7, "IDynamite loader version = 2"
	invoke-static {v4, v7}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
	invoke-static/range {p0 .. p0}, Lcom/google/android/gms/dynamic/ObjectWrapper;->wrap(Ljava/lang/Object;)Lcom/google/android/gms/dynamic/IObjectWrapper;
	move-result-object v4
	invoke-virtual {v2, v4, v3, v14}, Lcom/google/android/gms/dynamite/zzq;->zzj(Lcom/google/android/gms/dynamic/IObjectWrapper;Ljava/lang/String;I)Lcom/google/android/gms/dynamic/IObjectWrapper;
	move-result-object v2
	goto :goto_3
	:cond_d
	const-string v4, "DynamiteModule"
	const-string v7, "Dynamite loader version < 2, falling back to createModuleContext"
	invoke-static {v4, v7}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
	invoke-static/range {p0 .. p0}, Lcom/google/android/gms/dynamic/ObjectWrapper;->wrap(Ljava/lang/Object;)Lcom/google/android/gms/dynamic/IObjectWrapper;
	move-result-object v4
	invoke-virtual {v2, v4, v3, v14}, Lcom/google/android/gms/dynamite/zzq;->zzh(Lcom/google/android/gms/dynamic/IObjectWrapper;Ljava/lang/String;I)Lcom/google/android/gms/dynamic/IObjectWrapper;
	move-result-object v2
	:goto_3
	invoke-static {v2}, Lcom/google/android/gms/dynamic/ObjectWrapper;->unwrap(Lcom/google/android/gms/dynamic/IObjectWrapper;)Ljava/lang/Object;
	move-result-object v2
	if-eqz v2, :cond_10
	new-instance v4, Lcom/google/android/gms/dynamite/DynamiteModule;
	check-cast v2, Landroid/content/Context;
	invoke-direct {v4, v2}, Lcom/google/android/gms/dynamite/DynamiteModule;-><init>(Landroid/content/Context;)V
	:try_end_c
	.catch Landroid/os/RemoteException; {:try_start_c .. :try_end_c} :catch_1
	.catch Lcom/google/android/gms/dynamite/DynamiteModule$LoadingException; {:try_start_c .. :try_end_c} :catch_0
	.catchall {:try_start_c .. :try_end_c} :catchall_3
	:goto_4
	const-wide/16 v1, 0x0
	cmp-long v3, v9, v1
	if-nez v3, :cond_e
	invoke-virtual {v8}, Ljava/lang/ThreadLocal;->remove()V
	goto :goto_5
	:cond_e
	invoke-static {v9, v10}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
	move-result-object v1
	invoke-virtual {v8, v1}, Ljava/lang/ThreadLocal;->set(Ljava/lang/Object;)V
	:goto_5
	iget-object v1, v6, Lcom/google/android/gms/dynamite/zzn;->zza:Landroid/database/Cursor;
	if-eqz v1, :cond_f
	invoke-interface {v1}, Landroid/database/Cursor;->close()V
	:cond_f
	invoke-virtual {v0, v5}, Ljava/lang/ThreadLocal;->set(Ljava/lang/Object;)V
	return-object v4
	:cond_10
	:try_start_d
	new-instance v0, Lcom/google/android/gms/dynamite/DynamiteModule$LoadingException;
	const-string v2, "Failed to load remote module."
	const/4 v4, 0x0
	invoke-direct {v0, v2, v4}, Lcom/google/android/gms/dynamite/DynamiteModule$LoadingException;-><init>(Ljava/lang/String;Lcom/google/android/gms/dynamite/zzp;)V
	throw v0
	:cond_11
	new-instance v0, Lcom/google/android/gms/dynamite/DynamiteModule$LoadingException;
	const-string v2, "Failed to create IDynamiteLoader."
	const/4 v4, 0x0
	invoke-direct {v0, v2, v4}, Lcom/google/android/gms/dynamite/DynamiteModule$LoadingException;-><init>(Ljava/lang/String;Lcom/google/android/gms/dynamite/zzp;)V
	throw v0
	:cond_12
	new-instance v0, Lcom/google/android/gms/dynamite/DynamiteModule$LoadingException;
	const-string v2, "Failed to determine which loading route to use."
	const/4 v4, 0x0
	invoke-direct {v0, v2, v4}, Lcom/google/android/gms/dynamite/DynamiteModule$LoadingException;-><init>(Ljava/lang/String;Lcom/google/android/gms/dynamite/zzp;)V
	throw v0
	:try_end_d
	.catch Landroid/os/RemoteException; {:try_start_d .. :try_end_d} :catch_1
	.catch Lcom/google/android/gms/dynamite/DynamiteModule$LoadingException; {:try_start_d .. :try_end_d} :catch_0
	.catchall {:try_start_d .. :try_end_d} :catchall_3
	:try_start_e
	:cond_13
	new-instance v0, Lcom/google/android/gms/dynamite/DynamiteModule$LoadingException;
	const-string v2, "Remote loading disabled"
	const/4 v7, 0x0
	invoke-direct {v0, v2, v7}, Lcom/google/android/gms/dynamite/DynamiteModule$LoadingException;-><init>(Ljava/lang/String;Lcom/google/android/gms/dynamite/zzp;)V
	throw v0
	:catchall_2
	move-exception v0
	monitor-exit v4
	:try_end_e
	.catchall {:try_start_e .. :try_end_e} :catchall_2
	:try_start_f
	throw v0
	:try_end_f
	.catch Landroid/os/RemoteException; {:try_start_f .. :try_end_f} :catch_1
	.catch Lcom/google/android/gms/dynamite/DynamiteModule$LoadingException; {:try_start_f .. :try_end_f} :catch_0
	.catchall {:try_start_f .. :try_end_f} :catchall_3
	:catchall_3
	move-exception v0
	:try_start_10
	invoke-static {v1, v0}, Lcom/google/android/gms/common/util/CrashUtils;->addDynamiteErrorToDropBox(Landroid/content/Context;Ljava/lang/Throwable;)Z
	new-instance v2, Lcom/google/android/gms/dynamite/DynamiteModule$LoadingException;
	const-string v4, "Failed to load remote module."
	const/4 v7, 0x0
	invoke-direct {v2, v4, v0, v7}, Lcom/google/android/gms/dynamite/DynamiteModule$LoadingException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;Lcom/google/android/gms/dynamite/zzp;)V
	throw v2
	:catch_0
	move-exception v0
	throw v0
	:catch_1
	move-exception v0
	new-instance v2, Lcom/google/android/gms/dynamite/DynamiteModule$LoadingException;
	const-string v4, "Failed to load remote module."
	const/4 v7, 0x0
	invoke-direct {v2, v4, v0, v7}, Lcom/google/android/gms/dynamite/DynamiteModule$LoadingException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;Lcom/google/android/gms/dynamite/zzp;)V
	throw v2
	:try_end_10
	.catch Lcom/google/android/gms/dynamite/DynamiteModule$LoadingException; {:try_start_10 .. :try_end_10} :catch_2
	.catchall {:try_start_10 .. :try_end_10} :catchall_4
	:catch_2
	move-exception v0
	:try_start_11
	invoke-virtual {v0}, Lcom/google/android/gms/dynamite/DynamiteModule$LoadingException;->getMessage()Ljava/lang/String;
	move-result-object v2
	new-instance v4, Ljava/lang/StringBuilder;
	invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V
	const-string v7, "Failed to load remote module: "
	invoke-virtual {v4, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	const-string v2, "DynamiteModule"
	invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
	move-result-object v4
	invoke-static {v2, v4}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
	iget v2, v13, Lcom/google/android/gms/dynamite/DynamiteModule$VersionPolicy$SelectionResult;->localVersion:I
	if-eqz v2, :cond_16
	new-instance v4, Lcom/google/android/gms/dynamite/zzo;
	const/4 v7, 0x0
	invoke-direct {v4, v2, v7}, Lcom/google/android/gms/dynamite/zzo;-><init>(II)V
	move-object/from16 v2, p1
	invoke-interface {v2, v1, v3, v4}, Lcom/google/android/gms/dynamite/DynamiteModule$VersionPolicy;->selectModule(Landroid/content/Context;Ljava/lang/String;Lcom/google/android/gms/dynamite/DynamiteModule$VersionPolicy$IVersions;)Lcom/google/android/gms/dynamite/DynamiteModule$VersionPolicy$SelectionResult;
	move-result-object v2
	iget v2, v2, Lcom/google/android/gms/dynamite/DynamiteModule$VersionPolicy$SelectionResult;->selection:I
	const/4 v4, -0x1
	if-ne v2, v4, :cond_16
	invoke-static {v1, v3}, Lcom/google/android/gms/dynamite/DynamiteModule;->zzc(Landroid/content/Context;Ljava/lang/String;)Lcom/google/android/gms/dynamite/DynamiteModule;
	move-result-object v0
	:try_end_11
	.catchall {:try_start_11 .. :try_end_11} :catchall_4
	const-wide/16 v1, 0x0
	cmp-long v3, v9, v1
	if-nez v3, :cond_14
	sget-object v1, Lcom/google/android/gms/dynamite/DynamiteModule;->zzh:Ljava/lang/ThreadLocal;
	invoke-virtual {v1}, Ljava/lang/ThreadLocal;->remove()V
	goto :goto_6
	:cond_14
	sget-object v1, Lcom/google/android/gms/dynamite/DynamiteModule;->zzh:Ljava/lang/ThreadLocal;
	invoke-static {v9, v10}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
	move-result-object v2
	invoke-virtual {v1, v2}, Ljava/lang/ThreadLocal;->set(Ljava/lang/Object;)V
	:goto_6
	iget-object v1, v6, Lcom/google/android/gms/dynamite/zzn;->zza:Landroid/database/Cursor;
	if-eqz v1, :cond_15
	invoke-interface {v1}, Landroid/database/Cursor;->close()V
	:cond_15
	sget-object v1, Lcom/google/android/gms/dynamite/DynamiteModule;->zzg:Ljava/lang/ThreadLocal;
	invoke-virtual {v1, v5}, Ljava/lang/ThreadLocal;->set(Ljava/lang/Object;)V
	return-object v0
	:try_start_12
	:cond_16
	new-instance v1, Lcom/google/android/gms/dynamite/DynamiteModule$LoadingException;
	const-string v2, "Remote load failed. No local fallback found."
	const/4 v3, 0x0
	invoke-direct {v1, v2, v0, v3}, Lcom/google/android/gms/dynamite/DynamiteModule$LoadingException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;Lcom/google/android/gms/dynamite/zzp;)V
	throw v1
	:cond_17
	new-instance v0, Lcom/google/android/gms/dynamite/DynamiteModule$LoadingException;
	new-instance v1, Ljava/lang/StringBuilder;
	invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
	const-string v2, "VersionPolicy returned invalid code:"
	invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v1, v7}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
	invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
	move-result-object v1
	const/4 v2, 0x0
	invoke-direct {v0, v1, v2}, Lcom/google/android/gms/dynamite/DynamiteModule$LoadingException;-><init>(Ljava/lang/String;Lcom/google/android/gms/dynamite/zzp;)V
	throw v0
	:cond_18
	new-instance v0, Lcom/google/android/gms/dynamite/DynamiteModule$LoadingException;
	iget v1, v13, Lcom/google/android/gms/dynamite/DynamiteModule$VersionPolicy$SelectionResult;->localVersion:I
	iget v2, v13, Lcom/google/android/gms/dynamite/DynamiteModule$VersionPolicy$SelectionResult;->remoteVersion:I
	new-instance v4, Ljava/lang/StringBuilder;
	invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V
	const-string v7, "No acceptable module "
	invoke-virtual {v4, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v4, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	const-string v3, " found. Local version is "
	invoke-virtual {v4, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
	const-string v1, " and remote version is "
	invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
	const-string v1, "."
	invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
	move-result-object v1
	const/4 v2, 0x0
	invoke-direct {v0, v1, v2}, Lcom/google/android/gms/dynamite/DynamiteModule$LoadingException;-><init>(Ljava/lang/String;Lcom/google/android/gms/dynamite/zzp;)V
	throw v0
	:try_end_12
	.catchall {:try_start_12 .. :try_end_12} :catchall_4
	:catchall_4
	move-exception v0
	const-wide/16 v1, 0x0
	cmp-long v3, v9, v1
	if-nez v3, :cond_19
	sget-object v1, Lcom/google/android/gms/dynamite/DynamiteModule;->zzh:Ljava/lang/ThreadLocal;
	invoke-virtual {v1}, Ljava/lang/ThreadLocal;->remove()V
	goto :goto_7
	:cond_19
	sget-object v1, Lcom/google/android/gms/dynamite/DynamiteModule;->zzh:Ljava/lang/ThreadLocal;
	invoke-static {v9, v10}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
	move-result-object v2
	invoke-virtual {v1, v2}, Ljava/lang/ThreadLocal;->set(Ljava/lang/Object;)V
	:goto_7
	iget-object v1, v6, Lcom/google/android/gms/dynamite/zzn;->zza:Landroid/database/Cursor;
	if-eqz v1, :cond_1a
	invoke-interface {v1}, Landroid/database/Cursor;->close()V
	:cond_1a
	sget-object v1, Lcom/google/android/gms/dynamite/DynamiteModule;->zzg:Ljava/lang/ThreadLocal;
	invoke-virtual {v1, v5}, Ljava/lang/ThreadLocal;->set(Ljava/lang/Object;)V
	throw v0
.end method

.method public static zza(Landroid/content/Context;Ljava/lang/String;Z)I
	.locals 10

	:try_start_0
	const-class v0, Lcom/google/android/gms/dynamite/DynamiteModule;
	monitor-enter v0
	:try_end_0
	.catchall {:try_start_0 .. :try_end_0} :catchall_4
	:try_start_1
	sget-object v1, Lcom/google/android/gms/dynamite/DynamiteModule;->zzb:Ljava/lang/Boolean;
	:try_end_1
	.catchall {:try_start_1 .. :try_end_1} :catchall_3
	const/4 v2, 0x0
	const/4 v3, 0x0
	if-nez v1, :cond_9
	:try_start_2
	invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
	move-result-object v1
	invoke-virtual {v1}, Landroid/content/Context;->getClassLoader()Ljava/lang/ClassLoader;
	move-result-object v1
	const-class v4, Lcom/google/android/gms/dynamite/DynamiteModule$DynamiteLoaderClassLoader;
	invoke-virtual {v4}, Ljava/lang/Class;->getName()Ljava/lang/String;
	move-result-object v4
	invoke-virtual {v1, v4}, Ljava/lang/ClassLoader;->loadClass(Ljava/lang/String;)Ljava/lang/Class;
	move-result-object v1
	const-string v4, "sClassLoader"
	invoke-virtual {v1, v4}, Ljava/lang/Class;->getDeclaredField(Ljava/lang/String;)Ljava/lang/reflect/Field;
	move-result-object v1
	invoke-virtual {v1}, Ljava/lang/reflect/Field;->getDeclaringClass()Ljava/lang/Class;
	move-result-object v4
	monitor-enter v4
	:try_end_2
	.catch Ljava/lang/ClassNotFoundException; {:try_start_2 .. :try_end_2} :catch_4
	.catch Ljava/lang/IllegalAccessException; {:try_start_2 .. :try_end_2} :catch_3
	.catch Ljava/lang/NoSuchFieldException; {:try_start_2 .. :try_end_2} :catch_2
	.catchall {:try_start_2 .. :try_end_2} :catchall_3
	:try_start_3
	invoke-virtual {v1, v2}, Ljava/lang/reflect/Field;->get(Ljava/lang/Object;)Ljava/lang/Object;
	move-result-object v5
	check-cast v5, Ljava/lang/ClassLoader;
	invoke-static {}, Ljava/lang/ClassLoader;->getSystemClassLoader()Ljava/lang/ClassLoader;
	move-result-object v6
	if-ne v5, v6, :cond_0
	sget-object v1, Ljava/lang/Boolean;->FALSE:Ljava/lang/Boolean;
	:try_end_3
	.catchall {:try_start_3 .. :try_end_3} :catchall_0
	goto/16 :goto_3
	:cond_0
	if-eqz v5, :cond_1
	:try_start_4
	invoke-static {v5}, Lcom/google/android/gms/dynamite/DynamiteModule;->zzd(Ljava/lang/ClassLoader;)V
	:try_end_4
	.catch Lcom/google/android/gms/dynamite/DynamiteModule$LoadingException; {:try_start_4 .. :try_end_4} :catch_0
	.catchall {:try_start_4 .. :try_end_4} :catchall_0
	:try_start_5
	:catch_0
	sget-object v1, Ljava/lang/Boolean;->TRUE:Ljava/lang/Boolean;
	goto/16 :goto_3
	:cond_1
	invoke-static {p0}, Lcom/google/android/gms/dynamite/DynamiteModule;->zzf(Landroid/content/Context;)Z
	move-result v5
	if-nez v5, :cond_2
	monitor-exit v4
	:try_end_5
	.catchall {:try_start_5 .. :try_end_5} :catchall_0
	:try_start_6
	monitor-exit v0
	:try_end_6
	.catchall {:try_start_6 .. :try_end_6} :catchall_3
	return v3
	:try_start_7
	:cond_2
	sget-boolean v5, Lcom/google/android/gms/dynamite/DynamiteModule;->zzd:Z
	if-nez v5, :cond_8
	sget-object v5, Ljava/lang/Boolean;->TRUE:Ljava/lang/Boolean;
	invoke-virtual {v5, v2}, Ljava/lang/Boolean;->equals(Ljava/lang/Object;)Z
	move-result v5
	:try_end_7
	.catchall {:try_start_7 .. :try_end_7} :catchall_0
	if-eqz v5, :cond_3
	goto :goto_2
	:cond_3
	const/4 v5, 0x1
	:try_start_8
	invoke-static {p0, p1, p2, v5}, Lcom/google/android/gms/dynamite/DynamiteModule;->zzb(Landroid/content/Context;Ljava/lang/String;ZZ)I
	move-result v5
	sget-object v6, Lcom/google/android/gms/dynamite/DynamiteModule;->zzc:Ljava/lang/String;
	if-eqz v6, :cond_7
	invoke-virtual {v6}, Ljava/lang/String;->isEmpty()Z
	move-result v6
	if-eqz v6, :cond_4
	goto :goto_1
	:cond_4
	invoke-static {}, Lcom/google/android/gms/dynamite/zzb;->zza()Ljava/lang/ClassLoader;
	move-result-object v6
	if-eqz v6, :cond_5
	goto :goto_0
	:cond_5
	sget v6, Landroid/os/Build$VERSION;->SDK_INT:I
	const/16 v7, 0x1d
	if-lt v6, v7, :cond_6
	new-instance v6, Ldalvik/system/DelegateLastClassLoader;
	sget-object v7, Lcom/google/android/gms/dynamite/DynamiteModule;->zzc:Ljava/lang/String;
	invoke-static {v7}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
	invoke-static {}, Ljava/lang/ClassLoader;->getSystemClassLoader()Ljava/lang/ClassLoader;
	move-result-object v8
	invoke-direct {v6, v7, v8}, Ldalvik/system/DelegateLastClassLoader;-><init>(Ljava/lang/String;Ljava/lang/ClassLoader;)V
	goto :goto_0
	:cond_6
	new-instance v6, Lcom/google/android/gms/dynamite/zzc;
	sget-object v7, Lcom/google/android/gms/dynamite/DynamiteModule;->zzc:Ljava/lang/String;
	invoke-static {v7}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
	invoke-static {}, Ljava/lang/ClassLoader;->getSystemClassLoader()Ljava/lang/ClassLoader;
	move-result-object v8
	invoke-direct {v6, v7, v8}, Lcom/google/android/gms/dynamite/zzc;-><init>(Ljava/lang/String;Ljava/lang/ClassLoader;)V
	:goto_0
	invoke-static {v6}, Lcom/google/android/gms/dynamite/DynamiteModule;->zzd(Ljava/lang/ClassLoader;)V
	invoke-virtual {v1, v2, v6}, Ljava/lang/reflect/Field;->set(Ljava/lang/Object;Ljava/lang/Object;)V
	sget-object v6, Ljava/lang/Boolean;->TRUE:Ljava/lang/Boolean;
	sput-object v6, Lcom/google/android/gms/dynamite/DynamiteModule;->zzb:Ljava/lang/Boolean;
	:try_end_8
	.catch Lcom/google/android/gms/dynamite/DynamiteModule$LoadingException; {:try_start_8 .. :try_end_8} :catch_1
	.catchall {:try_start_8 .. :try_end_8} :catchall_0
	:try_start_9
	monitor-exit v4
	:try_end_9
	.catchall {:try_start_9 .. :try_end_9} :catchall_0
	:try_start_a
	monitor-exit v0
	:try_end_a
	.catchall {:try_start_a .. :try_end_a} :catchall_3
	return v5
	:cond_7
	:try_start_b
	:goto_1
	monitor-exit v4
	:try_end_b
	.catchall {:try_start_b .. :try_end_b} :catchall_0
	:try_start_c
	monitor-exit v0
	:try_end_c
	.catchall {:try_start_c .. :try_end_c} :catchall_3
	return v5
	:try_start_d
	:catch_1
	invoke-static {}, Ljava/lang/ClassLoader;->getSystemClassLoader()Ljava/lang/ClassLoader;
	move-result-object v5
	invoke-virtual {v1, v2, v5}, Ljava/lang/reflect/Field;->set(Ljava/lang/Object;Ljava/lang/Object;)V
	sget-object v1, Ljava/lang/Boolean;->FALSE:Ljava/lang/Boolean;
	goto :goto_3
	:cond_8
	:goto_2
	invoke-static {}, Ljava/lang/ClassLoader;->getSystemClassLoader()Ljava/lang/ClassLoader;
	move-result-object v5
	invoke-virtual {v1, v2, v5}, Ljava/lang/reflect/Field;->set(Ljava/lang/Object;Ljava/lang/Object;)V
	sget-object v1, Ljava/lang/Boolean;->FALSE:Ljava/lang/Boolean;
	:goto_3
	monitor-exit v4
	goto :goto_5
	:catchall_0
	move-exception v1
	monitor-exit v4
	:try_end_d
	.catchall {:try_start_d .. :try_end_d} :catchall_0
	:try_start_e
	throw v1
	:try_end_e
	.catch Ljava/lang/ClassNotFoundException; {:try_start_e .. :try_end_e} :catch_4
	.catch Ljava/lang/IllegalAccessException; {:try_start_e .. :try_end_e} :catch_3
	.catch Ljava/lang/NoSuchFieldException; {:try_start_e .. :try_end_e} :catch_2
	.catchall {:try_start_e .. :try_end_e} :catchall_3
	:catch_2
	move-exception v1
	goto :goto_4
	:catch_3
	move-exception v1
	goto :goto_4
	:catch_4
	move-exception v1
	:try_start_f
	:goto_4
	invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
	move-result-object v1
	new-instance v4, Ljava/lang/StringBuilder;
	invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V
	const-string v5, "Failed to load module via V2: "
	invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	const-string v1, "DynamiteModule"
	invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
	move-result-object v4
	invoke-static {v1, v4}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
	sget-object v1, Ljava/lang/Boolean;->FALSE:Ljava/lang/Boolean;
	:goto_5
	sput-object v1, Lcom/google/android/gms/dynamite/DynamiteModule;->zzb:Ljava/lang/Boolean;
	:cond_9
	monitor-exit v0
	:try_end_f
	.catchall {:try_start_f .. :try_end_f} :catchall_3
	:try_start_10
	invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z
	move-result v0
	:try_end_10
	.catchall {:try_start_10 .. :try_end_10} :catchall_4
	if-eqz v0, :cond_a
	:try_start_11
	invoke-static {p0, p1, p2, v3}, Lcom/google/android/gms/dynamite/DynamiteModule;->zzb(Landroid/content/Context;Ljava/lang/String;ZZ)I
	move-result p0
	:try_end_11
	.catch Lcom/google/android/gms/dynamite/DynamiteModule$LoadingException; {:try_start_11 .. :try_end_11} :catch_5
	.catchall {:try_start_11 .. :try_end_11} :catchall_4
	return p0
	:catch_5
	move-exception p1
	:try_start_12
	invoke-virtual {p1}, Lcom/google/android/gms/dynamite/DynamiteModule$LoadingException;->getMessage()Ljava/lang/String;
	move-result-object p1
	new-instance p2, Ljava/lang/StringBuilder;
	invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V
	const-string v0, "Failed to retrieve remote module version: "
	invoke-virtual {p2, v0}, 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, "DynamiteModule"
	invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
	move-result-object p2
	invoke-static {p1, p2}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
	return v3
	:cond_a
	invoke-static {p0}, Lcom/google/android/gms/dynamite/DynamiteModule;->zzg(Landroid/content/Context;)Lcom/google/android/gms/dynamite/zzq;
	move-result-object v4
	:try_end_12
	.catchall {:try_start_12 .. :try_end_12} :catchall_4
	if-nez v4, :cond_b
	goto/16 :goto_a
	:cond_b
	:try_start_13
	invoke-virtual {v4}, Lcom/google/android/gms/dynamite/zzq;->zze()I
	move-result v0
	const/4 v1, 0x3
	if-lt v0, v1, :cond_11
	sget-object v0, Lcom/google/android/gms/dynamite/DynamiteModule;->zzg:Ljava/lang/ThreadLocal;
	invoke-virtual {v0}, Ljava/lang/ThreadLocal;->get()Ljava/lang/Object;
	move-result-object v0
	check-cast v0, Lcom/google/android/gms/dynamite/zzn;
	if-eqz v0, :cond_c
	iget-object v0, v0, Lcom/google/android/gms/dynamite/zzn;->zza:Landroid/database/Cursor;
	if-eqz v0, :cond_c
	invoke-interface {v0, v3}, Landroid/database/Cursor;->getInt(I)I
	move-result v3
	goto/16 :goto_a
	:cond_c
	invoke-static {p0}, Lcom/google/android/gms/dynamic/ObjectWrapper;->wrap(Ljava/lang/Object;)Lcom/google/android/gms/dynamic/IObjectWrapper;
	move-result-object v5
	sget-object v0, Lcom/google/android/gms/dynamite/DynamiteModule;->zzh:Ljava/lang/ThreadLocal;
	invoke-virtual {v0}, Ljava/lang/ThreadLocal;->get()Ljava/lang/Object;
	move-result-object v0
	check-cast v0, Ljava/lang/Long;
	invoke-virtual {v0}, Ljava/lang/Long;->longValue()J
	move-result-wide v8
	move-object v6, p1
	move v7, p2
	invoke-virtual/range {v4 .. v9}, Lcom/google/android/gms/dynamite/zzq;->zzk(Lcom/google/android/gms/dynamic/IObjectWrapper;Ljava/lang/String;ZJ)Lcom/google/android/gms/dynamic/IObjectWrapper;
	move-result-object p1
	invoke-static {p1}, Lcom/google/android/gms/dynamic/ObjectWrapper;->unwrap(Lcom/google/android/gms/dynamic/IObjectWrapper;)Ljava/lang/Object;
	move-result-object p1
	check-cast p1, Landroid/database/Cursor;
	:try_end_13
	.catch Landroid/os/RemoteException; {:try_start_13 .. :try_end_13} :catch_7
	.catchall {:try_start_13 .. :try_end_13} :catchall_2
	if-eqz p1, :cond_10
	:try_start_14
	invoke-interface {p1}, Landroid/database/Cursor;->moveToFirst()Z
	move-result p2
	if-nez p2, :cond_d
	goto :goto_7
	:cond_d
	invoke-interface {p1, v3}, Landroid/database/Cursor;->getInt(I)I
	move-result p2
	if-lez p2, :cond_e
	invoke-static {p1}, Lcom/google/android/gms/dynamite/DynamiteModule;->zze(Landroid/database/Cursor;)Z
	move-result v0
	:try_end_14
	.catch Landroid/os/RemoteException; {:try_start_14 .. :try_end_14} :catch_6
	.catchall {:try_start_14 .. :try_end_14} :catchall_1
	if-eqz v0, :cond_e
	goto :goto_6
	:cond_e
	move-object v2, p1
	:goto_6
	if-eqz v2, :cond_f
	:try_start_15
	invoke-interface {v2}, Landroid/database/Cursor;->close()V
	:try_end_15
	.catchall {:try_start_15 .. :try_end_15} :catchall_4
	:cond_f
	move v3, p2
	goto :goto_a
	:cond_10
	:try_start_16
	:goto_7
	const-string p2, "DynamiteModule"
	const-string v0, "Failed to retrieve remote module version."
	invoke-static {p2, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
	:try_end_16
	.catch Landroid/os/RemoteException; {:try_start_16 .. :try_end_16} :catch_6
	.catchall {:try_start_16 .. :try_end_16} :catchall_1
	if-eqz p1, :cond_13
	:try_start_17
	invoke-interface {p1}, Landroid/database/Cursor;->close()V
	:try_end_17
	.catchall {:try_start_17 .. :try_end_17} :catchall_4
	goto :goto_a
	:catchall_1
	move-exception p2
	move-object v2, p1
	goto :goto_b
	:catch_6
	move-exception p2
	move-object v2, p1
	goto :goto_9
	:cond_11
	const/4 v1, 0x2
	if-ne v0, v1, :cond_12
	:try_start_18
	const-string v0, "DynamiteModule"
	const-string v1, "IDynamite loader version = 2, no high precision latency measurement."
	invoke-static {v0, v1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
	invoke-static {p0}, Lcom/google/android/gms/dynamic/ObjectWrapper;->wrap(Ljava/lang/Object;)Lcom/google/android/gms/dynamic/IObjectWrapper;
	move-result-object v0
	invoke-virtual {v4, v0, p1, p2}, Lcom/google/android/gms/dynamite/zzq;->zzg(Lcom/google/android/gms/dynamic/IObjectWrapper;Ljava/lang/String;Z)I
	move-result v3
	goto :goto_a
	:cond_12
	const-string v0, "DynamiteModule"
	const-string v1, "IDynamite loader version < 2, falling back to getModuleVersion2"
	invoke-static {v0, v1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
	invoke-static {p0}, Lcom/google/android/gms/dynamic/ObjectWrapper;->wrap(Ljava/lang/Object;)Lcom/google/android/gms/dynamic/IObjectWrapper;
	move-result-object v0
	invoke-virtual {v4, v0, p1, p2}, Lcom/google/android/gms/dynamite/zzq;->zzf(Lcom/google/android/gms/dynamic/IObjectWrapper;Ljava/lang/String;Z)I
	move-result v3
	:try_end_18
	.catch Landroid/os/RemoteException; {:try_start_18 .. :try_end_18} :catch_7
	.catchall {:try_start_18 .. :try_end_18} :catchall_2
	goto :goto_a
	:goto_8
	move-object p2, p1
	goto :goto_b
	:catch_7
	move-exception p1
	move-object p2, p1
	:try_start_19
	:goto_9
	invoke-virtual {p2}, Landroid/os/RemoteException;->getMessage()Ljava/lang/String;
	move-result-object p1
	new-instance p2, Ljava/lang/StringBuilder;
	invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V
	const-string v0, "Failed to retrieve remote module version: "
	invoke-virtual {p2, v0}, 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, "DynamiteModule"
	invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
	move-result-object p2
	invoke-static {p1, p2}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
	:try_end_19
	.catchall {:try_start_19 .. :try_end_19} :catchall_2
	if-eqz v2, :cond_13
	:try_start_1a
	invoke-interface {v2}, Landroid/database/Cursor;->close()V
	:cond_13
	:goto_a
	return v3
	:catchall_2
	move-exception p1
	goto :goto_8
	:goto_b
	if-eqz v2, :cond_14
	invoke-interface {v2}, Landroid/database/Cursor;->close()V
	:cond_14
	throw p2
	:try_end_1a
	.catchall {:try_start_1a .. :try_end_1a} :catchall_4
	:catchall_3
	move-exception p1
	:try_start_1b
	monitor-exit v0
	:try_end_1b
	.catchall {:try_start_1b .. :try_end_1b} :catchall_3
	:try_start_1c
	throw p1
	:try_end_1c
	.catchall {:try_start_1c .. :try_end_1c} :catchall_4
	:catchall_4
	move-exception p1
	invoke-static {p0, p1}, Lcom/google/android/gms/common/util/CrashUtils;->addDynamiteErrorToDropBox(Landroid/content/Context;Ljava/lang/Throwable;)Z
	throw p1
.end method

.method private static zzb(Landroid/content/Context;Ljava/lang/String;ZZ)I
	.locals 10
	.annotation system Ldalvik/annotation/Throws;
	value = {
	Lcom/google/android/gms/dynamite/DynamiteModule$LoadingException;
	}
	.end annotation

	const/4 v0, 0x0
	:try_start_0
	sget-object v1, Lcom/google/android/gms/dynamite/DynamiteModule;->zzh:Ljava/lang/ThreadLocal;
	invoke-virtual {v1}, Ljava/lang/ThreadLocal;->get()Ljava/lang/Object;
	move-result-object v1
	check-cast v1, Ljava/lang/Long;
	invoke-virtual {v1}, Ljava/lang/Long;->longValue()J
	move-result-wide v1
	invoke-virtual {p0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
	move-result-object v3
	const-string p0, "api_force_staging"
	const-string v4, "api"
	const/4 v9, 0x1
	if-eq v9, p2, :cond_0
	move-object p0, v4
	:cond_0
	new-instance p2, Landroid/net/Uri$Builder;
	invoke-direct {p2}, Landroid/net/Uri$Builder;-><init>()V
	const-string v4, "content"
	invoke-virtual {p2, v4}, Landroid/net/Uri$Builder;->scheme(Ljava/lang/String;)Landroid/net/Uri$Builder;
	move-result-object p2
	const-string v4, "com.google.android.gms.chimera"
	invoke-virtual {p2, v4}, Landroid/net/Uri$Builder;->authority(Ljava/lang/String;)Landroid/net/Uri$Builder;
	move-result-object p2
	invoke-virtual {p2, p0}, Landroid/net/Uri$Builder;->path(Ljava/lang/String;)Landroid/net/Uri$Builder;
	move-result-object p0
	invoke-virtual {p0, p1}, Landroid/net/Uri$Builder;->appendPath(Ljava/lang/String;)Landroid/net/Uri$Builder;
	move-result-object p0
	const-string p1, "requestStartTime"
	invoke-static {v1, v2}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;
	move-result-object p2
	invoke-virtual {p0, p1, p2}, Landroid/net/Uri$Builder;->appendQueryParameter(Ljava/lang/String;Ljava/lang/String;)Landroid/net/Uri$Builder;
	move-result-object p0
	invoke-virtual {p0}, Landroid/net/Uri$Builder;->build()Landroid/net/Uri;
	move-result-object v4
	const/4 v5, 0x0
	const/4 v6, 0x0
	const/4 v7, 0x0
	const/4 v8, 0x0
	invoke-virtual/range {v3 .. v8}, Landroid/content/ContentResolver;->query(Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;
	move-result-object p0
	:try_end_0
	.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1
	.catchall {:try_start_0 .. :try_end_0} :catchall_1
	if-eqz p0, :cond_8
	:try_start_1
	invoke-interface {p0}, Landroid/database/Cursor;->moveToFirst()Z
	move-result p1
	if-eqz p1, :cond_8
	const/4 p1, 0x0
	invoke-interface {p0, p1}, Landroid/database/Cursor;->getInt(I)I
	move-result p2
	if-lez p2, :cond_4
	const-class v1, Lcom/google/android/gms/dynamite/DynamiteModule;
	monitor-enter v1
	:try_end_1
	.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
	.catchall {:try_start_1 .. :try_end_1} :catchall_2
	const/4 v2, 0x2
	:try_start_2
	invoke-interface {p0, v2}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;
	move-result-object v2
	sput-object v2, Lcom/google/android/gms/dynamite/DynamiteModule;->zzc:Ljava/lang/String;
	const-string v2, "loaderVersion"
	invoke-interface {p0, v2}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I
	move-result v2
	if-ltz v2, :cond_1
	invoke-interface {p0, v2}, Landroid/database/Cursor;->getInt(I)I
	move-result v2
	sput v2, Lcom/google/android/gms/dynamite/DynamiteModule;->zze:I
	:cond_1
	const-string v2, "disableStandaloneDynamiteLoader2"
	invoke-interface {p0, v2}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I
	move-result v2
	if-ltz v2, :cond_3
	invoke-interface {p0, v2}, Landroid/database/Cursor;->getInt(I)I
	move-result v2
	if-eqz v2, :cond_2
	goto :goto_0
	:cond_2
	const/4 v9, 0x0
	:goto_0
	sput-boolean v9, Lcom/google/android/gms/dynamite/DynamiteModule;->zzd:Z
	move p1, v9
	:cond_3
	monitor-exit v1
	:try_end_2
	.catchall {:try_start_2 .. :try_end_2} :catchall_0
	:try_start_3
	invoke-static {p0}, Lcom/google/android/gms/dynamite/DynamiteModule;->zze(Landroid/database/Cursor;)Z
	move-result v1
	:try_end_3
	.catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_0
	.catchall {:try_start_3 .. :try_end_3} :catchall_2
	if-eqz v1, :cond_4
	move-object p0, v0
	goto :goto_1
	:catchall_0
	move-exception p1
	:try_start_4
	monitor-exit v1
	:try_end_4
	.catchall {:try_start_4 .. :try_end_4} :catchall_0
	:try_start_5
	throw p1
	:goto_1
	:cond_4
	if-eqz p3, :cond_6
	if-nez p1, :cond_5
	goto :goto_2
	:cond_5
	new-instance p1, Lcom/google/android/gms/dynamite/DynamiteModule$LoadingException;
	const-string p2, "forcing fallback to container DynamiteLoader impl"
	invoke-direct {p1, p2, v0}, Lcom/google/android/gms/dynamite/DynamiteModule$LoadingException;-><init>(Ljava/lang/String;Lcom/google/android/gms/dynamite/zzp;)V
	throw p1
	:try_end_5
	.catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_0
	.catchall {:try_start_5 .. :try_end_5} :catchall_2
	:catch_0
	move-exception p1
	goto :goto_3
	:goto_2
	:cond_6
	if-eqz p0, :cond_7
	invoke-interface {p0}, Landroid/database/Cursor;->close()V
	:cond_7
	return p2
	:try_start_6
	:cond_8
	const-string p1, "DynamiteModule"
	const-string p2, "Failed to retrieve remote module version."
	invoke-static {p1, p2}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
	new-instance p1, Lcom/google/android/gms/dynamite/DynamiteModule$LoadingException;
	const-string p2, "Failed to connect to dynamite module ContentResolver."
	invoke-direct {p1, p2, v0}, Lcom/google/android/gms/dynamite/DynamiteModule$LoadingException;-><init>(Ljava/lang/String;Lcom/google/android/gms/dynamite/zzp;)V
	throw p1
	:try_end_6
	.catch Ljava/lang/Exception; {:try_start_6 .. :try_end_6} :catch_0
	.catchall {:try_start_6 .. :try_end_6} :catchall_2
	:catchall_1
	move-exception p0
	move-object p1, p0
	goto :goto_4
	:catch_1
	move-exception p0
	move-object p1, p0
	move-object p0, v0
	:try_start_7
	:goto_3
	instance-of p2, p1, Lcom/google/android/gms/dynamite/DynamiteModule$LoadingException;
	if-eqz p2, :cond_9
	throw p1
	:cond_9
	new-instance p2, Lcom/google/android/gms/dynamite/DynamiteModule$LoadingException;
	const-string p3, "V2 version check failed"
	invoke-direct {p2, p3, p1, v0}, Lcom/google/android/gms/dynamite/DynamiteModule$LoadingException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;Lcom/google/android/gms/dynamite/zzp;)V
	throw p2
	:try_end_7
	.catchall {:try_start_7 .. :try_end_7} :catchall_2
	:catchall_2
	move-exception p1
	move-object v0, p0
	:goto_4
	if-eqz v0, :cond_a
	invoke-interface {v0}, Landroid/database/Cursor;->close()V
	:cond_a
	throw p1
.end method

.method private static zzc(Landroid/content/Context;Ljava/lang/String;)Lcom/google/android/gms/dynamite/DynamiteModule;
	.locals 1

	invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
	move-result-object p1
	const-string v0, "Selected local version of "
	invoke-virtual {v0, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
	move-result-object p1
	const-string v0, "DynamiteModule"
	invoke-static {v0, p1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
	new-instance p1, Lcom/google/android/gms/dynamite/DynamiteModule;
	invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
	move-result-object p0
	invoke-direct {p1, p0}, Lcom/google/android/gms/dynamite/DynamiteModule;-><init>(Landroid/content/Context;)V
	return-object p1
.end method

.method private static zzd(Ljava/lang/ClassLoader;)V
	.locals 3
	.annotation system Ldalvik/annotation/Throws;
	value = {
	Lcom/google/android/gms/dynamite/DynamiteModule$LoadingException;
	}
	.end annotation

	const/4 v0, 0x0
	:try_start_0
	const-string v1, "com.google.android.gms.dynamiteloader.DynamiteLoaderV2"
	invoke-virtual {p0, v1}, Ljava/lang/ClassLoader;->loadClass(Ljava/lang/String;)Ljava/lang/Class;
	move-result-object p0
	const/4 v1, 0x0
	new-array v2, v1, [Ljava/lang/Class;
	invoke-virtual {p0, v2}, Ljava/lang/Class;->getConstructor([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;
	move-result-object p0
	new-array v1, v1, [Ljava/lang/Object;
	invoke-virtual {p0, v1}, Ljava/lang/reflect/Constructor;->newInstance([Ljava/lang/Object;)Ljava/lang/Object;
	move-result-object p0
	check-cast p0, Landroid/os/IBinder;
	if-nez p0, :cond_0
	move-object v1, v0
	goto :goto_0
	:cond_0
	const-string v1, "com.google.android.gms.dynamite.IDynamiteLoaderV2"
	invoke-interface {p0, v1}, Landroid/os/IBinder;->queryLocalInterface(Ljava/lang/String;)Landroid/os/IInterface;
	move-result-object v1
	instance-of v2, v1, Lcom/google/android/gms/dynamite/zzr;
	if-eqz v2, :cond_1
	check-cast v1, Lcom/google/android/gms/dynamite/zzr;
	goto :goto_0
	:cond_1
	new-instance v1, Lcom/google/android/gms/dynamite/zzr;
	invoke-direct {v1, p0}, Lcom/google/android/gms/dynamite/zzr;-><init>(Landroid/os/IBinder;)V
	:goto_0
	sput-object v1, Lcom/google/android/gms/dynamite/DynamiteModule;->zzl:Lcom/google/android/gms/dynamite/zzr;
	:try_end_0
	.catch Ljava/lang/ClassNotFoundException; {:try_start_0 .. :try_end_0} :catch_4
	.catch Ljava/lang/IllegalAccessException; {:try_start_0 .. :try_end_0} :catch_3
	.catch Ljava/lang/InstantiationException; {:try_start_0 .. :try_end_0} :catch_2
	.catch Ljava/lang/reflect/InvocationTargetException; {:try_start_0 .. :try_end_0} :catch_1
	.catch Ljava/lang/NoSuchMethodException; {:try_start_0 .. :try_end_0} :catch_0
	return-void
	:catch_0
	move-exception p0
	goto :goto_1
	:catch_1
	move-exception p0
	goto :goto_1
	:catch_2
	move-exception p0
	goto :goto_1
	:catch_3
	move-exception p0
	goto :goto_1
	:catch_4
	move-exception p0
	:goto_1
	new-instance v1, Lcom/google/android/gms/dynamite/DynamiteModule$LoadingException;
	const-string v2, "Failed to instantiate dynamite loader"
	invoke-direct {v1, v2, p0, v0}, Lcom/google/android/gms/dynamite/DynamiteModule$LoadingException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;Lcom/google/android/gms/dynamite/zzp;)V
	throw v1
.end method

.method private static zze(Landroid/database/Cursor;)Z
	.locals 2

	sget-object v0, Lcom/google/android/gms/dynamite/DynamiteModule;->zzg:Ljava/lang/ThreadLocal;
	invoke-virtual {v0}, Ljava/lang/ThreadLocal;->get()Ljava/lang/Object;
	move-result-object v0
	check-cast v0, Lcom/google/android/gms/dynamite/zzn;
	if-eqz v0, :cond_0
	iget-object v1, v0, Lcom/google/android/gms/dynamite/zzn;->zza:Landroid/database/Cursor;
	if-nez v1, :cond_0
	iput-object p0, v0, Lcom/google/android/gms/dynamite/zzn;->zza:Landroid/database/Cursor;
	const/4 p0, 0x1
	return p0
	:cond_0
	const/4 p0, 0x0
	return p0
.end method

.method private static zzf(Landroid/content/Context;)Z
	.locals 6

	sget-object v0, Ljava/lang/Boolean;->TRUE:Ljava/lang/Boolean;
	const/4 v1, 0x0
	invoke-virtual {v0, v1}, Ljava/lang/Boolean;->equals(Ljava/lang/Object;)Z
	move-result v0
	const/4 v1, 0x1
	if-eqz v0, :cond_0
	return v1
	:cond_0
	sget-object v0, Ljava/lang/Boolean;->TRUE:Ljava/lang/Boolean;
	sget-object v2, Lcom/google/android/gms/dynamite/DynamiteModule;->zzf:Ljava/lang/Boolean;
	invoke-virtual {v0, v2}, Ljava/lang/Boolean;->equals(Ljava/lang/Object;)Z
	move-result v0
	if-eqz v0, :cond_1
	return v1
	:cond_1
	sget-object v0, Lcom/google/android/gms/dynamite/DynamiteModule;->zzf:Ljava/lang/Boolean;
	const-string v2, "DynamiteModule"
	const/4 v3, 0x0
	if-nez v0, :cond_3
	invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
	move-result-object v0
	const-string v4, "com.google.android.gms.chimera"
	invoke-virtual {v0, v4, v3}, Landroid/content/pm/PackageManager;->resolveContentProvider(Ljava/lang/String;I)Landroid/content/pm/ProviderInfo;
	move-result-object v0
	invoke-static {}, Lcom/google/android/gms/common/GoogleApiAvailabilityLight;->getInstance()Lcom/google/android/gms/common/GoogleApiAvailabilityLight;
	move-result-object v4
	const v5, 0x989680
	invoke-virtual {v4, p0, v5}, Lcom/google/android/gms/common/GoogleApiAvailabilityLight;->isGooglePlayServicesAvailable(Landroid/content/Context;I)I
	move-result p0
	if-nez p0, :cond_2
	if-eqz v0, :cond_2
	iget-object p0, v0, Landroid/content/pm/ProviderInfo;->packageName:Ljava/lang/String;
	const-string v4, "com.google.android.gms"
	invoke-virtual {v4, p0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
	move-result p0
	if-eqz p0, :cond_2
	const/4 v3, 0x1
	:cond_2
	invoke-static {v3}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
	move-result-object p0
	sput-object p0, Lcom/google/android/gms/dynamite/DynamiteModule;->zzf:Ljava/lang/Boolean;
	invoke-virtual {p0}, Ljava/lang/Boolean;->booleanValue()Z
	move-result v3
	if-eqz v3, :cond_3
	if-eqz v0, :cond_3
	iget-object p0, v0, Landroid/content/pm/ProviderInfo;->applicationInfo:Landroid/content/pm/ApplicationInfo;
	if-eqz p0, :cond_3
	iget-object p0, v0, Landroid/content/pm/ProviderInfo;->applicationInfo:Landroid/content/pm/ApplicationInfo;
	iget p0, p0, Landroid/content/pm/ApplicationInfo;->flags:I
	and-int/lit16 p0, p0, 0x81
	if-nez p0, :cond_3
	const-string p0, "Non-system-image GmsCore APK, forcing V1"
	invoke-static {v2, p0}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
	sput-boolean v1, Lcom/google/android/gms/dynamite/DynamiteModule;->zzd:Z
	:cond_3
	if-nez v3, :cond_4
	const-string p0, "Invalid GmsCore APK, remote loading disabled."
	invoke-static {v2, p0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
	:cond_4
	return v3
.end method

.method private static zzg(Landroid/content/Context;)Lcom/google/android/gms/dynamite/zzq;
	.locals 4

	const-class v0, Lcom/google/android/gms/dynamite/DynamiteModule;
	monitor-enter v0
	:try_start_0
	sget-object v1, Lcom/google/android/gms/dynamite/DynamiteModule;->zzk:Lcom/google/android/gms/dynamite/zzq;
	if-eqz v1, :cond_0
	monitor-exit v0
	:try_end_0
	.catchall {:try_start_0 .. :try_end_0} :catchall_0
	return-object v1
	:cond_0
	const/4 v1, 0x0
	:try_start_1
	const-string v2, "com.google.android.gms"
	const/4 v3, 0x3
	invoke-virtual {p0, v2, v3}, Landroid/content/Context;->createPackageContext(Ljava/lang/String;I)Landroid/content/Context;
	move-result-object p0
	invoke-virtual {p0}, Landroid/content/Context;->getClassLoader()Ljava/lang/ClassLoader;
	move-result-object p0
	const-string v2, "com.google.android.gms.chimera.container.DynamiteLoaderImpl"
	invoke-virtual {p0, v2}, Ljava/lang/ClassLoader;->loadClass(Ljava/lang/String;)Ljava/lang/Class;
	move-result-object p0
	invoke-virtual {p0}, Ljava/lang/Class;->newInstance()Ljava/lang/Object;
	move-result-object p0
	check-cast p0, Landroid/os/IBinder;
	if-nez p0, :cond_1
	move-object v2, v1
	goto :goto_0
	:cond_1
	const-string v2, "com.google.android.gms.dynamite.IDynamiteLoader"
	invoke-interface {p0, v2}, Landroid/os/IBinder;->queryLocalInterface(Ljava/lang/String;)Landroid/os/IInterface;
	move-result-object v2
	instance-of v3, v2, Lcom/google/android/gms/dynamite/zzq;
	if-eqz v3, :cond_2
	check-cast v2, Lcom/google/android/gms/dynamite/zzq;
	goto :goto_0
	:cond_2
	new-instance v2, Lcom/google/android/gms/dynamite/zzq;
	invoke-direct {v2, p0}, Lcom/google/android/gms/dynamite/zzq;-><init>(Landroid/os/IBinder;)V
	:goto_0
	if-eqz v2, :cond_3
	sput-object v2, Lcom/google/android/gms/dynamite/DynamiteModule;->zzk:Lcom/google/android/gms/dynamite/zzq;
	:try_end_1
	.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
	.catchall {:try_start_1 .. :try_end_1} :catchall_0
	:try_start_2
	monitor-exit v0
	return-object v2
	:catch_0
	move-exception p0
	invoke-virtual {p0}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;
	move-result-object p0
	new-instance v2, Ljava/lang/StringBuilder;
	invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
	const-string v3, "Failed to load IDynamiteLoader from GmsCore: "
	invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v2, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	const-string p0, "DynamiteModule"
	invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
	move-result-object v2
	invoke-static {p0, v2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
	:cond_3
	monitor-exit v0
	return-object v1
	:catchall_0
	move-exception p0
	monitor-exit v0
	:try_end_2
	.catchall {:try_start_2 .. :try_end_2} :catchall_0
	throw p0
.end method

.method public getModuleContext()Landroid/content/Context;
	.locals 1

	iget-object v0, p0, Lcom/google/android/gms/dynamite/DynamiteModule;->zzj:Landroid/content/Context;
	return-object v0
.end method

.method public instantiate(Ljava/lang/String;)Landroid/os/IBinder;
	.locals 3
	.annotation system Ldalvik/annotation/Throws;
	value = {
	Lcom/google/android/gms/dynamite/DynamiteModule$LoadingException;
	}
	.end annotation

	:try_start_0
	iget-object v0, p0, Lcom/google/android/gms/dynamite/DynamiteModule;->zzj:Landroid/content/Context;
	invoke-virtual {v0}, Landroid/content/Context;->getClassLoader()Ljava/lang/ClassLoader;
	move-result-object v0
	invoke-virtual {v0, p1}, Ljava/lang/ClassLoader;->loadClass(Ljava/lang/String;)Ljava/lang/Class;
	move-result-object v0
	invoke-virtual {v0}, Ljava/lang/Class;->newInstance()Ljava/lang/Object;
	move-result-object v0
	check-cast v0, Landroid/os/IBinder;
	:try_end_0
	.catch Ljava/lang/ClassNotFoundException; {:try_start_0 .. :try_end_0} :catch_2
	.catch Ljava/lang/InstantiationException; {:try_start_0 .. :try_end_0} :catch_1
	.catch Ljava/lang/IllegalAccessException; {:try_start_0 .. :try_end_0} :catch_0
	return-object v0
	:catch_0
	move-exception v0
	goto :goto_0
	:catch_1
	move-exception v0
	goto :goto_0
	:catch_2
	move-exception v0
	:goto_0
	new-instance v1, Lcom/google/android/gms/dynamite/DynamiteModule$LoadingException;
	invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
	move-result-object p1
	const-string v2, "Failed to instantiate module class: "
	invoke-virtual {v2, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
	move-result-object p1
	const/4 v2, 0x0
	invoke-direct {v1, p1, v0, v2}, Lcom/google/android/gms/dynamite/DynamiteModule$LoadingException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;Lcom/google/android/gms/dynamite/zzp;)V
	throw v1
.end method