granularity level: instruction

		.class public abstract La0/g;
.super Ljava/lang/Object;
.source "SourceFile"
.implements Ly/b;


.field public static final y:[Lx/c;
.field public volatile a:Ljava/lang/String;
.field public b:Lz/j;
.field public final c:Landroid/content/Context;
.field public final d:La0/g0;
.field public final e:La0/w;
.field public final f:Ljava/lang/Object;
.field public final g:Ljava/lang/Object;
.field public h:La0/u;
.field public i:La0/b;
.field public j:Landroid/os/IInterface;
.field public final k:Ljava/util/ArrayList;
.field public l:La0/y;
.field public m:I
.field public final n:La0/c;
.field public final o:La0/c;
.field public final p:I
.field public final q:Ljava/lang/String;
.field public volatile r:Ljava/lang/String;
.field public s:Lx/a;
.field public t:Z
.field public volatile u:La0/b0;
.field public v:Ljava/util/concurrent/atomic/AtomicInteger;
.field public final w:Ljava/util/Set;
.field public final x:Landroid/accounts/Account;


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

	const/4 v0, 0x0
	new-array v0, v0, [Lx/c;
	sput-object v0, La0/g;->y:[Lx/c;
	return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/os/Looper;ILa0/d;Lz/d;Lz/i;)V
	.locals 4

	sget-object v0, La0/g0;->g:Ljava/lang/Object;
	monitor-enter v0
	:try_start_0
	sget-object v1, La0/g0;->h:La0/g0;
	if-nez v1, :cond_0
	new-instance v1, La0/g0;
	invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
	move-result-object v2
	invoke-virtual {p1}, Landroid/content/Context;->getMainLooper()Landroid/os/Looper;
	move-result-object v3
	invoke-direct {v1, v2, v3}, La0/g0;-><init>(Landroid/content/Context;Landroid/os/Looper;)V
	sput-object v1, La0/g0;->h:La0/g0;
	:cond_0
	monitor-exit v0
	:try_end_0
	.catchall {:try_start_0 .. :try_end_0} :catchall_0
	sget-object v0, La0/g0;->h:La0/g0;
	sget-object v1, Lx/d;->b:Ljava/lang/Object;
	invoke-static {p5}, Lp0/a;->j(Ljava/lang/Object;)V
	invoke-static {p6}, Lp0/a;->j(Ljava/lang/Object;)V
	const/4 v1, 0x0
	new-instance v2, La0/c;
	invoke-direct {v2, p5}, La0/c;-><init>(Ljava/lang/Object;)V
	new-instance p5, La0/c;
	invoke-direct {p5, p6}, La0/c;-><init>(Ljava/lang/Object;)V
	iget-object p6, p4, La0/d;->e:Ljava/lang/String;
	invoke-direct {p0}, Ljava/lang/Object;-><init>()V
	iput-object v1, p0, La0/g;->a:Ljava/lang/String;
	new-instance v3, Ljava/lang/Object;
	invoke-direct {v3}, Ljava/lang/Object;-><init>()V
	iput-object v3, p0, La0/g;->f:Ljava/lang/Object;
	new-instance v3, Ljava/lang/Object;
	invoke-direct {v3}, Ljava/lang/Object;-><init>()V
	iput-object v3, p0, La0/g;->g:Ljava/lang/Object;
	new-instance v3, Ljava/util/ArrayList;
	invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V
	iput-object v3, p0, La0/g;->k:Ljava/util/ArrayList;
	const/4 v3, 0x1
	iput v3, p0, La0/g;->m:I
	iput-object v1, p0, La0/g;->s:Lx/a;
	const/4 v3, 0x0
	iput-boolean v3, p0, La0/g;->t:Z
	iput-object v1, p0, La0/g;->u:La0/b0;
	new-instance v1, Ljava/util/concurrent/atomic/AtomicInteger;
	invoke-direct {v1, v3}, Ljava/util/concurrent/atomic/AtomicInteger;-><init>(I)V
	iput-object v1, p0, La0/g;->v:Ljava/util/concurrent/atomic/AtomicInteger;
	const-string v1, "Context must not be null"
	if-eqz p1, :cond_4
	iput-object p1, p0, La0/g;->c:Landroid/content/Context;
	const-string p1, "Looper must not be null"
	if-eqz p2, :cond_3
	const-string p1, "Supervisor must not be null"
	invoke-static {v0, p1}, Lp0/a;->i(Ljava/lang/Object;Ljava/lang/String;)V
	iput-object v0, p0, La0/g;->d:La0/g0;
	new-instance p1, La0/w;
	invoke-direct {p1, p0, p2}, La0/w;-><init>(La0/g;Landroid/os/Looper;)V
	iput-object p1, p0, La0/g;->e:La0/w;
	iput p3, p0, La0/g;->p:I
	iput-object v2, p0, La0/g;->n:La0/c;
	iput-object p5, p0, La0/g;->o:La0/c;
	iput-object p6, p0, La0/g;->q:Ljava/lang/String;
	iget-object p1, p4, La0/d;->a:Landroid/accounts/Account;
	iput-object p1, p0, La0/g;->x:Landroid/accounts/Account;
	iget-object p1, p4, La0/d;->c:Ljava/util/Set;
	invoke-interface {p1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
	move-result-object p2
	:goto_0
	invoke-interface {p2}, Ljava/util/Iterator;->hasNext()Z
	move-result p3
	if-eqz p3, :cond_2
	invoke-interface {p2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
	move-result-object p3
	check-cast p3, Lcom/google/android/gms/common/api/Scope;
	invoke-interface {p1, p3}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z
	move-result p3
	if-eqz p3, :cond_1
	goto :goto_0
	:cond_1
	new-instance p1, Ljava/lang/IllegalStateException;
	const-string p2, "Expanding scopes is not permitted, use implied scopes instead"
	invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
	throw p1
	:cond_2
	iput-object p1, p0, La0/g;->w:Ljava/util/Set;
	return-void
	:cond_3
	new-instance p2, Ljava/lang/NullPointerException;
	invoke-direct {p2, p1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
	throw p2
	:cond_4
	new-instance p1, Ljava/lang/NullPointerException;
	invoke-direct {p1, v1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
	throw p1
	:catchall_0
	move-exception p1
	:try_start_1
	monitor-exit v0
	:try_end_1
	.catchall {:try_start_1 .. :try_end_1} :catchall_0
	throw p1
.end method

.method public static bridge synthetic o(La0/g;IILandroid/os/IInterface;)Z
	.locals 2

	iget-object v0, p0, La0/g;->f:Ljava/lang/Object;
	monitor-enter v0
	:try_start_0
	iget v1, p0, La0/g;->m:I
	if-eq v1, p1, :cond_0
	monitor-exit v0
	const/4 p0, 0x0
	goto :goto_0
	:cond_0
	invoke-virtual {p0, p2, p3}, La0/g;->p(ILandroid/os/IInterface;)V
	monitor-exit v0
	const/4 p0, 0x1
	:goto_0
	return 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

.method public bridge synthetic a()Z
	.locals 1

	const/4 v0, 0x0
	return v0
.end method

.method public abstract b()I
	

.end method

.method public abstract c(Landroid/os/IBinder;)Landroid/os/IInterface;
	

.end method

.method public final d()V
	.locals 5

	iget-object v0, p0, La0/g;->v:Ljava/util/concurrent/atomic/AtomicInteger;
	invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicInteger;->incrementAndGet()I
	iget-object v0, p0, La0/g;->k:Ljava/util/ArrayList;
	monitor-enter v0
	:try_start_0
	iget-object v1, p0, La0/g;->k:Ljava/util/ArrayList;
	invoke-virtual {v1}, Ljava/util/ArrayList;->size()I
	move-result v1
	const/4 v2, 0x0
	:goto_0
	const/4 v3, 0x0
	if-ge v2, v1, :cond_0
	iget-object v4, p0, La0/g;->k:Ljava/util/ArrayList;
	invoke-virtual {v4, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
	move-result-object v4
	check-cast v4, La0/t;
	monitor-enter v4
	:try_end_0
	.catchall {:try_start_0 .. :try_end_0} :catchall_1
	:try_start_1
	iput-object v3, v4, La0/t;->a:Ljava/lang/Object;
	monitor-exit v4
	add-int/lit8 v2, v2, 0x1
	goto :goto_0
	:catchall_0
	move-exception v1
	monitor-exit v4
	:try_end_1
	.catchall {:try_start_1 .. :try_end_1} :catchall_0
	:try_start_2
	throw v1
	:catchall_1
	move-exception v1
	goto :goto_1
	:cond_0
	iget-object v1, p0, La0/g;->k:Ljava/util/ArrayList;
	invoke-virtual {v1}, Ljava/util/ArrayList;->clear()V
	monitor-exit v0
	:try_end_2
	.catchall {:try_start_2 .. :try_end_2} :catchall_1
	iget-object v1, p0, La0/g;->g:Ljava/lang/Object;
	monitor-enter v1
	:try_start_3
	iput-object v3, p0, La0/g;->h:La0/u;
	monitor-exit v1
	:try_end_3
	.catchall {:try_start_3 .. :try_end_3} :catchall_2
	const/4 v0, 0x1
	invoke-virtual {p0, v0, v3}, La0/g;->p(ILandroid/os/IInterface;)V
	return-void
	:catchall_2
	move-exception v0
	:try_start_4
	monitor-exit v1
	:try_end_4
	.catchall {:try_start_4 .. :try_end_4} :catchall_2
	throw v0
	:try_start_5
	:goto_1
	monitor-exit v0
	:try_end_5
	.catchall {:try_start_5 .. :try_end_5} :catchall_1
	throw v1
.end method

.method public final e(Ljava/lang/String;)V
	.locals 0

	iput-object p1, p0, La0/g;->a:Ljava/lang/String;
	invoke-virtual {p0}, La0/g;->d()V
	return-void
.end method

.method public bridge synthetic f()[Lx/c;
	.locals 1

	sget-object v0, La0/g;->y:[Lx/c;
	return-object v0
.end method

.method public abstract g()Landroid/os/Bundle;
	

.end method

.method public final h(La0/h;Ljava/util/Set;)V
	.locals 21

	move-object/from16 v1, p0
	move-object/from16 v0, p2
	invoke-virtual/range {p0 .. p0}, La0/g;->g()Landroid/os/Bundle;
	move-result-object v2
	new-instance v15, La0/f;
	iget v5, v1, La0/g;->p:I
	iget-object v14, v1, La0/g;->r:Ljava/lang/String;
	sget v6, Lx/e;->a:I
	sget-object v9, La0/f;->o:[Lcom/google/android/gms/common/api/Scope;
	new-instance v10, Landroid/os/Bundle;
	invoke-direct {v10}, Landroid/os/Bundle;-><init>()V
	sget-object v13, La0/f;->p:[Lx/c;
	const/4 v4, 0x6
	const/4 v7, 0x0
	const/4 v8, 0x0
	const/4 v11, 0x0
	const/16 v16, 0x1
	const/16 v17, 0x0
	const/16 v18, 0x0
	move-object v3, v15
	move-object v12, v13
	move-object/from16 v19, v14
	move/from16 v14, v16
	move-object/from16 v20, v15
	move/from16 v15, v17
	move/from16 v16, v18
	move-object/from16 v17, v19
	invoke-direct/range {v3 .. v17}, La0/f;-><init>(IIILjava/lang/String;Landroid/os/IBinder;[Lcom/google/android/gms/common/api/Scope;Landroid/os/Bundle;Landroid/accounts/Account;[Lx/c;[Lx/c;ZIZLjava/lang/String;)V
	iget-object v3, v1, La0/g;->c:Landroid/content/Context;
	invoke-virtual {v3}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
	move-result-object v3
	move-object/from16 v4, v20
	iput-object v3, v4, La0/f;->d:Ljava/lang/String;
	iput-object v2, v4, La0/f;->g:Landroid/os/Bundle;
	if-eqz v0, :cond_0
	const/4 v2, 0x0
	new-array v2, v2, [Lcom/google/android/gms/common/api/Scope;
	invoke-interface {v0, v2}, Ljava/util/Collection;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
	move-result-object v0
	check-cast v0, [Lcom/google/android/gms/common/api/Scope;
	iput-object v0, v4, La0/f;->f:[Lcom/google/android/gms/common/api/Scope;
	:cond_0
	invoke-virtual/range {p0 .. p0}, La0/g;->a()Z
	move-result v0
	if-eqz v0, :cond_2
	iget-object v0, v1, La0/g;->x:Landroid/accounts/Account;
	if-nez v0, :cond_1
	new-instance v0, Landroid/accounts/Account;
	const-string v2, "<<default account>>"
	const-string v3, "com.google"
	invoke-direct {v0, v2, v3}, Landroid/accounts/Account;-><init>(Ljava/lang/String;Ljava/lang/String;)V
	:cond_1
	iput-object v0, v4, La0/f;->h:Landroid/accounts/Account;
	if-eqz p1, :cond_2
	move-object/from16 v0, p1
	check-cast v0, La0/i0;
	iget-object v0, v0, La0/i0;->a:Landroid/os/IBinder;
	iput-object v0, v4, La0/f;->e:Landroid/os/IBinder;
	:cond_2
	sget-object v0, La0/g;->y:[Lx/c;
	iput-object v0, v4, La0/f;->i:[Lx/c;
	invoke-virtual/range {p0 .. p0}, La0/g;->f()[Lx/c;
	move-result-object v0
	iput-object v0, v4, La0/f;->j:[Lx/c;
	:try_start_0
	iget-object v2, v1, La0/g;->g:Ljava/lang/Object;
	monitor-enter v2
	:try_end_0
	.catch Landroid/os/DeadObjectException; {:try_start_0 .. :try_end_0} :catch_3
	.catch Ljava/lang/SecurityException; {:try_start_0 .. :try_end_0} :catch_2
	.catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_1
	.catch Ljava/lang/RuntimeException; {:try_start_0 .. :try_end_0} :catch_0
	:try_start_1
	iget-object v0, v1, La0/g;->h:La0/u;
	if-eqz v0, :cond_3
	new-instance v3, La0/x;
	iget-object v5, v1, La0/g;->v:Ljava/util/concurrent/atomic/AtomicInteger;
	invoke-virtual {v5}, Ljava/util/concurrent/atomic/AtomicInteger;->get()I
	move-result v5
	invoke-direct {v3, v1, v5}, La0/x;-><init>(La0/g;I)V
	invoke-virtual {v0, v3, v4}, La0/u;->a(La0/x;La0/f;)V
	goto :goto_0
	:cond_3
	const-string v0, "GmsClient"
	const-string v3, "mServiceBroker is null, client disconnected"
	invoke-static {v0, v3}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
	:goto_0
	monitor-exit v2
	goto :goto_2
	:catchall_0
	move-exception v0
	monitor-exit v2
	:try_end_1
	.catchall {:try_start_1 .. :try_end_1} :catchall_0
	:try_start_2
	throw v0
	:try_end_2
	.catch Landroid/os/DeadObjectException; {:try_start_2 .. :try_end_2} :catch_3
	.catch Ljava/lang/SecurityException; {:try_start_2 .. :try_end_2} :catch_2
	.catch Landroid/os/RemoteException; {:try_start_2 .. :try_end_2} :catch_1
	.catch Ljava/lang/RuntimeException; {:try_start_2 .. :try_end_2} :catch_0
	:catch_0
	move-exception v0
	goto :goto_1
	:catch_1
	move-exception v0
	:goto_1
	const-string v2, "GmsClient"
	const-string v3, "IGmsServiceBroker.getService failed"
	invoke-static {v2, v3, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
	const/16 v0, 0x8
	iget-object v2, v1, La0/g;->v:Ljava/util/concurrent/atomic/AtomicInteger;
	invoke-virtual {v2}, Ljava/util/concurrent/atomic/AtomicInteger;->get()I
	move-result v2
	const/4 v3, 0x0
	iget-object v4, v1, La0/g;->e:La0/w;
	new-instance v5, La0/z;
	invoke-direct {v5, v1, v0, v3, v3}, La0/z;-><init>(La0/g;ILandroid/os/IBinder;Landroid/os/Bundle;)V
	const/4 v0, 0x1
	const/4 v3, -0x1
	invoke-virtual {v4, v0, v2, v3, v5}, Landroid/os/Handler;->obtainMessage(IIILjava/lang/Object;)Landroid/os/Message;
	move-result-object v0
	invoke-virtual {v4, v0}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
	goto :goto_2
	:catch_2
	move-exception v0
	throw v0
	:catch_3
	move-exception v0
	const-string v2, "GmsClient"
	const-string v3, "IGmsServiceBroker.getService failed"
	invoke-static {v2, v3, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
	const/4 v0, 0x3
	iget-object v2, v1, La0/g;->e:La0/w;
	iget-object v3, v1, La0/g;->v:Ljava/util/concurrent/atomic/AtomicInteger;
	invoke-virtual {v3}, Ljava/util/concurrent/atomic/AtomicInteger;->get()I
	move-result v3
	const/4 v4, 0x6
	invoke-virtual {v2, v4, v3, v0}, Landroid/os/Handler;->obtainMessage(III)Landroid/os/Message;
	move-result-object v0
	invoke-virtual {v2, v0}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
	:goto_2
	return-void
.end method

.method public final i()Landroid/os/IInterface;
	.locals 3

	iget-object v0, p0, La0/g;->f:Ljava/lang/Object;
	monitor-enter v0
	:try_start_0
	iget v1, p0, La0/g;->m:I
	const/4 v2, 0x5
	if-eq v1, v2, :cond_1
	invoke-virtual {p0}, La0/g;->m()Z
	move-result v1
	if-eqz v1, :cond_0
	iget-object v1, p0, La0/g;->j:Landroid/os/IInterface;
	const-string v2, "Client is connected but service is null"
	invoke-static {v1, v2}, Lp0/a;->i(Ljava/lang/Object;Ljava/lang/String;)V
	monitor-exit v0
	return-object v1
	:cond_0
	new-instance v1, Ljava/lang/IllegalStateException;
	const-string v2, "Not connected. Call connect() and wait for onConnected() to be called."
	invoke-direct {v1, v2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
	throw v1
	:cond_1
	new-instance v1, Landroid/os/DeadObjectException;
	invoke-direct {v1}, Landroid/os/DeadObjectException;-><init>()V
	throw v1
	:catchall_0
	move-exception v1
	monitor-exit v0
	:try_end_0
	.catchall {:try_start_0 .. :try_end_0} :catchall_0
	throw v1
.end method

.method public abstract j()Ljava/lang/String;
	

.end method

.method public abstract k()Ljava/lang/String;
	

.end method

.method public l()Z
	.locals 2

	invoke-virtual {p0}, La0/g;->b()I
	move-result v0
	const v1, 0xc9e4920
	if-lt v0, v1, :cond_0
	const/4 v0, 0x1
	goto :goto_0
	:cond_0
	const/4 v0, 0x0
	:goto_0
	return v0
.end method

.method public final m()Z
	.locals 3

	iget-object v0, p0, La0/g;->f:Ljava/lang/Object;
	monitor-enter v0
	:try_start_0
	iget v1, p0, La0/g;->m:I
	const/4 v2, 0x4
	if-ne v1, v2, :cond_0
	const/4 v1, 0x1
	goto :goto_0
	:cond_0
	const/4 v1, 0x0
	:goto_0
	monitor-exit v0
	return v1
	:catchall_0
	move-exception v1
	monitor-exit v0
	:try_end_0
	.catchall {:try_start_0 .. :try_end_0} :catchall_0
	throw v1
.end method

.method public final n()Z
	.locals 4

	iget-object v0, p0, La0/g;->f:Ljava/lang/Object;
	monitor-enter v0
	:try_start_0
	iget v1, p0, La0/g;->m:I
	const/4 v2, 0x2
	const/4 v3, 0x1
	if-eq v1, v2, :cond_1
	const/4 v2, 0x3
	if-ne v1, v2, :cond_0
	goto :goto_0
	:cond_0
	const/4 v3, 0x0
	:goto_0
	:cond_1
	monitor-exit v0
	return v3
	:catchall_0
	move-exception v1
	monitor-exit v0
	:try_end_0
	.catchall {:try_start_0 .. :try_end_0} :catchall_0
	throw v1
.end method

.method public final p(ILandroid/os/IInterface;)V
	.locals 10

	const/4 v0, 0x0
	const/4 v1, 0x1
	const/4 v2, 0x4
	if-eq p1, v2, :cond_0
	const/4 v3, 0x0
	goto :goto_0
	:cond_0
	const/4 v3, 0x1
	:goto_0
	if-nez p2, :cond_1
	const/4 v4, 0x0
	goto :goto_1
	:cond_1
	const/4 v4, 0x1
	:goto_1
	if-ne v3, v4, :cond_2
	const/4 v0, 0x1
	:cond_2
	if-eqz v0, :cond_d
	iget-object v0, p0, La0/g;->f:Ljava/lang/Object;
	monitor-enter v0
	:try_start_0
	iput p1, p0, La0/g;->m:I
	iput-object p2, p0, La0/g;->j:Landroid/os/IInterface;
	const/4 v3, 0x0
	if-eq p1, v1, :cond_a
	const/4 v1, 0x2
	const/4 v3, 0x3
	if-eq p1, v1, :cond_4
	if-eq p1, v3, :cond_4
	if-eq p1, v2, :cond_3
	goto/16 :goto_3
	:cond_3
	invoke-static {p2}, Lp0/a;->j(Ljava/lang/Object;)V
	invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
	goto/16 :goto_3
	:cond_4
	iget-object v5, p0, La0/g;->l:La0/y;
	if-eqz v5, :cond_6
	iget-object p1, p0, La0/g;->b:Lz/j;
	if-eqz p1, :cond_6
	const-string p2, "GmsClient"
	iget-object v1, p1, Lz/j;->d:Ljava/lang/Object;
	check-cast v1, Ljava/lang/String;
	iget-object p1, p1, Lz/j;->a:Ljava/io/Serializable;
	check-cast p1, Ljava/lang/String;
	new-instance v2, Ljava/lang/StringBuilder;
	invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
	const-string v3, "Calling connect() while still connected, missing disconnect() for "
	invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	const-string v1, " on "
	invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
	move-result-object p1
	invoke-static {p2, p1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
	iget-object v1, p0, La0/g;->d:La0/g0;
	iget-object p1, p0, La0/g;->b:Lz/j;
	iget-object p1, p1, Lz/j;->d:Ljava/lang/Object;
	move-object v2, p1
	check-cast v2, Ljava/lang/String;
	invoke-static {v2}, Lp0/a;->j(Ljava/lang/Object;)V
	iget-object p1, p0, La0/g;->b:Lz/j;
	iget-object p2, p1, Lz/j;->a:Ljava/io/Serializable;
	move-object v3, p2
	check-cast v3, Ljava/lang/String;
	iget v4, p1, Lz/j;->c:I
	iget-object p1, p0, La0/g;->q:Ljava/lang/String;
	if-nez p1, :cond_5
	iget-object p1, p0, La0/g;->c:Landroid/content/Context;
	invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
	:cond_5
	iget-object p1, p0, La0/g;->b:Lz/j;
	iget-boolean v6, p1, Lz/j;->b:Z
	invoke-virtual/range {v1 .. v6}, La0/g0;->a(Ljava/lang/String;Ljava/lang/String;ILa0/y;Z)V
	iget-object p1, p0, La0/g;->v:Ljava/util/concurrent/atomic/AtomicInteger;
	invoke-virtual {p1}, Ljava/util/concurrent/atomic/AtomicInteger;->incrementAndGet()I
	:cond_6
	new-instance p1, La0/y;
	iget-object p2, p0, La0/g;->v:Ljava/util/concurrent/atomic/AtomicInteger;
	invoke-virtual {p2}, Ljava/util/concurrent/atomic/AtomicInteger;->get()I
	move-result p2
	invoke-direct {p1, p0, p2}, La0/y;-><init>(La0/g;I)V
	iput-object p1, p0, La0/g;->l:La0/y;
	new-instance p2, Lz/j;
	invoke-virtual {p0}, La0/g;->k()Ljava/lang/String;
	move-result-object v1
	sget-object v2, La0/g0;->g:Ljava/lang/Object;
	invoke-virtual {p0}, La0/g;->l()Z
	move-result v2
	invoke-direct {p2, v1, v2}, Lz/j;-><init>(Ljava/lang/String;Z)V
	iput-object p2, p0, La0/g;->b:Lz/j;
	iget-boolean p2, p2, Lz/j;->b:Z
	if-eqz p2, :cond_8
	invoke-virtual {p0}, La0/g;->b()I
	move-result p2
	const v1, 0x1110e58
	if-lt p2, v1, :cond_7
	goto :goto_2
	:cond_7
	new-instance p1, Ljava/lang/IllegalStateException;
	const-string p2, "Internal Error, the minimum apk version of this BaseGmsClient is too low to support dynamic lookup. Start service action: "
	iget-object v1, p0, La0/g;->b:Lz/j;
	iget-object v1, v1, Lz/j;->d:Ljava/lang/Object;
	check-cast v1, Ljava/lang/String;
	invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
	move-result-object v1
	invoke-virtual {p2, v1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
	move-result-object p2
	invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
	throw p1
	:goto_2
	:cond_8
	iget-object p2, p0, La0/g;->d:La0/g0;
	iget-object v1, p0, La0/g;->b:Lz/j;
	iget-object v1, v1, Lz/j;->d:Ljava/lang/Object;
	check-cast v1, Ljava/lang/String;
	invoke-static {v1}, Lp0/a;->j(Ljava/lang/Object;)V
	iget-object v2, p0, La0/g;->b:Lz/j;
	iget-object v3, v2, Lz/j;->a:Ljava/io/Serializable;
	check-cast v3, Ljava/lang/String;
	iget v2, v2, Lz/j;->c:I
	iget-object v4, p0, La0/g;->q:Ljava/lang/String;
	if-nez v4, :cond_9
	iget-object v4, p0, La0/g;->c:Landroid/content/Context;
	invoke-virtual {v4}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
	move-result-object v4
	invoke-virtual {v4}, Ljava/lang/Class;->getName()Ljava/lang/String;
	move-result-object v4
	:cond_9
	iget-object v5, p0, La0/g;->b:Lz/j;
	iget-boolean v5, v5, Lz/j;->b:Z
	new-instance v6, La0/c0;
	invoke-direct {v6, v1, v3, v2, v5}, La0/c0;-><init>(Ljava/lang/String;Ljava/lang/String;IZ)V
	invoke-virtual {p2, v6, p1, v4}, La0/g0;->b(La0/c0;La0/y;Ljava/lang/String;)Z
	move-result p1
	if-nez p1, :cond_c
	iget-object p1, p0, La0/g;->b:Lz/j;
	iget-object p2, p1, Lz/j;->d:Ljava/lang/Object;
	check-cast p2, Ljava/lang/String;
	iget-object p1, p1, Lz/j;->a:Ljava/io/Serializable;
	check-cast p1, Ljava/lang/String;
	new-instance v1, Ljava/lang/StringBuilder;
	invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
	const-string v2, "unable to connect to service: "
	invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	const-string p2, " on "
	invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	const-string p1, "GmsClient"
	invoke-virtual {v1}, 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
	const/16 p1, 0x10
	iget-object p2, p0, La0/g;->v:Ljava/util/concurrent/atomic/AtomicInteger;
	invoke-virtual {p2}, Ljava/util/concurrent/atomic/AtomicInteger;->get()I
	move-result p2
	iget-object v1, p0, La0/g;->e:La0/w;
	new-instance v2, La0/a0;
	invoke-direct {v2, p0, p1}, La0/a0;-><init>(La0/g;I)V
	const/4 p1, 0x7
	const/4 v3, -0x1
	invoke-virtual {v1, p1, p2, v3, v2}, Landroid/os/Handler;->obtainMessage(IIILjava/lang/Object;)Landroid/os/Message;
	move-result-object p1
	invoke-virtual {v1, p1}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
	goto :goto_3
	:cond_a
	iget-object v8, p0, La0/g;->l:La0/y;
	if-eqz v8, :cond_c
	iget-object v4, p0, La0/g;->d:La0/g0;
	iget-object p1, p0, La0/g;->b:Lz/j;
	iget-object p1, p1, Lz/j;->d:Ljava/lang/Object;
	move-object v5, p1
	check-cast v5, Ljava/lang/String;
	invoke-static {v5}, Lp0/a;->j(Ljava/lang/Object;)V
	iget-object p1, p0, La0/g;->b:Lz/j;
	iget-object p2, p1, Lz/j;->a:Ljava/io/Serializable;
	move-object v6, p2
	check-cast v6, Ljava/lang/String;
	iget v7, p1, Lz/j;->c:I
	iget-object p1, p0, La0/g;->q:Ljava/lang/String;
	if-nez p1, :cond_b
	iget-object p1, p0, La0/g;->c:Landroid/content/Context;
	invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
	:cond_b
	iget-object p1, p0, La0/g;->b:Lz/j;
	iget-boolean v9, p1, Lz/j;->b:Z
	invoke-virtual/range {v4 .. v9}, La0/g0;->a(Ljava/lang/String;Ljava/lang/String;ILa0/y;Z)V
	iput-object v3, p0, La0/g;->l:La0/y;
	:goto_3
	:cond_c
	monitor-exit v0
	return-void
	:catchall_0
	move-exception p1
	monitor-exit v0
	:try_end_0
	.catchall {:try_start_0 .. :try_end_0} :catchall_0
	throw p1
	:cond_d
	new-instance p1, Ljava/lang/IllegalArgumentException;
	invoke-direct {p1}, Ljava/lang/IllegalArgumentException;-><init>()V
	throw p1
.end method