granularity level: instruction

		.class public abstract Lcom/google/android/gms/common/api/internal/BasePendingResult;
.super Lcom/google/android/gms/common/api/PendingResult;
.source "com.google.android.gms:play-services-base@@18.0.1"

.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/android/gms/common/api/internal/BasePendingResult$CallbackHandler;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<R::",
"Lcom/google/android/gms/common/api/Result;",
">",
"Lcom/google/android/gms/common/api/PendingResult<",
"TR;>;"
}
.end annotation

.field static final zaa:Ljava/lang/ThreadLocal;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/ThreadLocal<",
"Ljava/lang/Boolean;",
">;"
}
.end annotation
.end field
.field public static final synthetic zad:I
.field private mResultGuardian:Lcom/google/android/gms/common/api/internal/zas;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/android/gms/common/api/internal/zas;"
}
.end annotation
.end field
.field protected final zab:Lcom/google/android/gms/common/api/internal/BasePendingResult$CallbackHandler;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/android/gms/common/api/internal/BasePendingResult$CallbackHandler<",
"TR;>;"
}
.end annotation
.end field
.field protected final zac:Ljava/lang/ref/WeakReference;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/ref/WeakReference<",
"Lcom/google/android/gms/common/api/GoogleApiClient;",
">;"
}
.end annotation
.end field
.field private final zae:Ljava/lang/Object;
.field private final zaf:Ljava/util/concurrent/CountDownLatch;
.field private final zag:Ljava/util/ArrayList;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayList<",
"Lcom/google/android/gms/common/api/PendingResult$StatusListener;",
">;"
}
.end annotation
.end field
.field private zah:Lcom/google/android/gms/common/api/ResultCallback;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/android/gms/common/api/ResultCallback<",
"-TR;>;"
}
.end annotation
.end field
.field private final zai:Ljava/util/concurrent/atomic/AtomicReference;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/concurrent/atomic/AtomicReference<",
"Lcom/google/android/gms/common/api/internal/zadb;",
">;"
}
.end annotation
.end field
.field private zaj:Lcom/google/android/gms/common/api/Result;
.annotation system Ldalvik/annotation/Signature;
value = {
"TR;"
}
.end annotation
.end field
.field private zak:Lcom/google/android/gms/common/api/Status;
.field private volatile zal:Z
.field private zam:Z
.field private zan:Z
.field private zao:Lcom/google/android/gms/common/internal/ICancelToken;
.field private volatile zap:Lcom/google/android/gms/common/api/internal/zada;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/android/gms/common/api/internal/zada<",
"TR;>;"
}
.end annotation
.end field
.field private zaq:Z


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

	new-instance v0, Lcom/google/android/gms/common/api/internal/zaq;
	invoke-direct {v0}, Lcom/google/android/gms/common/api/internal/zaq;-><init>()V
	sput-object v0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zaa:Ljava/lang/ThreadLocal;
	return-void
.end method

.method constructor <init>()V
	.locals 2
	.annotation runtime Ljava/lang/Deprecated;
	.end annotation

	invoke-direct {p0}, Lcom/google/android/gms/common/api/PendingResult;-><init>()V
	new-instance v0, Ljava/lang/Object;
	invoke-direct {v0}, Ljava/lang/Object;-><init>()V
	iput-object v0, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zae:Ljava/lang/Object;
	new-instance v0, Ljava/util/concurrent/CountDownLatch;
	const/4 v1, 0x1
	invoke-direct {v0, v1}, Ljava/util/concurrent/CountDownLatch;-><init>(I)V
	iput-object v0, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zaf:Ljava/util/concurrent/CountDownLatch;
	new-instance v0, Ljava/util/ArrayList;
	invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
	iput-object v0, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zag:Ljava/util/ArrayList;
	new-instance v0, Ljava/util/concurrent/atomic/AtomicReference;
	invoke-direct {v0}, Ljava/util/concurrent/atomic/AtomicReference;-><init>()V
	iput-object v0, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zai:Ljava/util/concurrent/atomic/AtomicReference;
	const/4 v0, 0x0
	iput-boolean v0, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zaq:Z
	new-instance v0, Lcom/google/android/gms/common/api/internal/BasePendingResult$CallbackHandler;
	invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
	move-result-object v1
	invoke-direct {v0, v1}, Lcom/google/android/gms/common/api/internal/BasePendingResult$CallbackHandler;-><init>(Landroid/os/Looper;)V
	iput-object v0, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zab:Lcom/google/android/gms/common/api/internal/BasePendingResult$CallbackHandler;
	new-instance v0, Ljava/lang/ref/WeakReference;
	const/4 v1, 0x0
	invoke-direct {v0, v1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
	iput-object v0, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zac:Ljava/lang/ref/WeakReference;
	return-void
.end method

.method protected constructor <init>(Landroid/os/Looper;)V
	.locals 2
	.annotation runtime Ljava/lang/Deprecated;
	.end annotation

	invoke-direct {p0}, Lcom/google/android/gms/common/api/PendingResult;-><init>()V
	new-instance v0, Ljava/lang/Object;
	invoke-direct {v0}, Ljava/lang/Object;-><init>()V
	iput-object v0, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zae:Ljava/lang/Object;
	new-instance v0, Ljava/util/concurrent/CountDownLatch;
	const/4 v1, 0x1
	invoke-direct {v0, v1}, Ljava/util/concurrent/CountDownLatch;-><init>(I)V
	iput-object v0, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zaf:Ljava/util/concurrent/CountDownLatch;
	new-instance v0, Ljava/util/ArrayList;
	invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
	iput-object v0, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zag:Ljava/util/ArrayList;
	new-instance v0, Ljava/util/concurrent/atomic/AtomicReference;
	invoke-direct {v0}, Ljava/util/concurrent/atomic/AtomicReference;-><init>()V
	iput-object v0, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zai:Ljava/util/concurrent/atomic/AtomicReference;
	const/4 v0, 0x0
	iput-boolean v0, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zaq:Z
	new-instance v0, Lcom/google/android/gms/common/api/internal/BasePendingResult$CallbackHandler;
	invoke-direct {v0, p1}, Lcom/google/android/gms/common/api/internal/BasePendingResult$CallbackHandler;-><init>(Landroid/os/Looper;)V
	iput-object v0, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zab:Lcom/google/android/gms/common/api/internal/BasePendingResult$CallbackHandler;
	new-instance p1, Ljava/lang/ref/WeakReference;
	const/4 v0, 0x0
	invoke-direct {p1, v0}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
	iput-object p1, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zac:Ljava/lang/ref/WeakReference;
	return-void
.end method

.method protected constructor <init>(Lcom/google/android/gms/common/api/GoogleApiClient;)V
	.locals 2

	invoke-direct {p0}, Lcom/google/android/gms/common/api/PendingResult;-><init>()V
	new-instance v0, Ljava/lang/Object;
	invoke-direct {v0}, Ljava/lang/Object;-><init>()V
	iput-object v0, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zae:Ljava/lang/Object;
	new-instance v0, Ljava/util/concurrent/CountDownLatch;
	const/4 v1, 0x1
	invoke-direct {v0, v1}, Ljava/util/concurrent/CountDownLatch;-><init>(I)V
	iput-object v0, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zaf:Ljava/util/concurrent/CountDownLatch;
	new-instance v0, Ljava/util/ArrayList;
	invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
	iput-object v0, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zag:Ljava/util/ArrayList;
	new-instance v0, Ljava/util/concurrent/atomic/AtomicReference;
	invoke-direct {v0}, Ljava/util/concurrent/atomic/AtomicReference;-><init>()V
	iput-object v0, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zai:Ljava/util/concurrent/atomic/AtomicReference;
	const/4 v0, 0x0
	iput-boolean v0, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zaq:Z
	if-eqz p1, :cond_0
	invoke-virtual {p1}, Lcom/google/android/gms/common/api/GoogleApiClient;->getLooper()Landroid/os/Looper;
	move-result-object v0
	goto :goto_0
	:cond_0
	invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
	move-result-object v0
	:goto_0
	new-instance v1, Lcom/google/android/gms/common/api/internal/BasePendingResult$CallbackHandler;
	invoke-direct {v1, v0}, Lcom/google/android/gms/common/api/internal/BasePendingResult$CallbackHandler;-><init>(Landroid/os/Looper;)V
	iput-object v1, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zab:Lcom/google/android/gms/common/api/internal/BasePendingResult$CallbackHandler;
	new-instance v0, Ljava/lang/ref/WeakReference;
	invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
	iput-object v0, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zac:Ljava/lang/ref/WeakReference;
	return-void
.end method

.method protected constructor <init>(Lcom/google/android/gms/common/api/internal/BasePendingResult$CallbackHandler;)V
	.locals 2
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"(",
	"Lcom/google/android/gms/common/api/internal/BasePendingResult$CallbackHandler<",
	"TR;>;)V"
	}
	.end annotation

	invoke-direct {p0}, Lcom/google/android/gms/common/api/PendingResult;-><init>()V
	new-instance v0, Ljava/lang/Object;
	invoke-direct {v0}, Ljava/lang/Object;-><init>()V
	iput-object v0, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zae:Ljava/lang/Object;
	new-instance v0, Ljava/util/concurrent/CountDownLatch;
	const/4 v1, 0x1
	invoke-direct {v0, v1}, Ljava/util/concurrent/CountDownLatch;-><init>(I)V
	iput-object v0, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zaf:Ljava/util/concurrent/CountDownLatch;
	new-instance v0, Ljava/util/ArrayList;
	invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
	iput-object v0, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zag:Ljava/util/ArrayList;
	new-instance v0, Ljava/util/concurrent/atomic/AtomicReference;
	invoke-direct {v0}, Ljava/util/concurrent/atomic/AtomicReference;-><init>()V
	iput-object v0, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zai:Ljava/util/concurrent/atomic/AtomicReference;
	const/4 v0, 0x0
	iput-boolean v0, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zaq:Z
	const-string v0, "CallbackHandler must not be null"
	invoke-static {p1, v0}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotNull(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
	move-result-object p1
	check-cast p1, Lcom/google/android/gms/common/api/internal/BasePendingResult$CallbackHandler;
	iput-object p1, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zab:Lcom/google/android/gms/common/api/internal/BasePendingResult$CallbackHandler;
	new-instance p1, Ljava/lang/ref/WeakReference;
	const/4 v0, 0x0
	invoke-direct {p1, v0}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
	iput-object p1, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zac:Ljava/lang/ref/WeakReference;
	return-void
.end method

.method private final zaa()Lcom/google/android/gms/common/api/Result;
	.locals 4
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"()TR;"
	}
	.end annotation

	iget-object v0, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zae:Ljava/lang/Object;
	monitor-enter v0
	:try_start_0
	iget-boolean v1, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zal:Z
	const/4 v2, 0x1
	xor-int/2addr v1, v2
	const-string v3, "Result has already been consumed."
	invoke-static {v1, v3}, Lcom/google/android/gms/common/internal/Preconditions;->checkState(ZLjava/lang/Object;)V
	invoke-virtual {p0}, Lcom/google/android/gms/common/api/internal/BasePendingResult;->isReady()Z
	move-result v1
	const-string v3, "Result is not ready."
	invoke-static {v1, v3}, Lcom/google/android/gms/common/internal/Preconditions;->checkState(ZLjava/lang/Object;)V
	iget-object v1, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zaj:Lcom/google/android/gms/common/api/Result;
	const/4 v3, 0x0
	iput-object v3, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zaj:Lcom/google/android/gms/common/api/Result;
	iput-object v3, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zah:Lcom/google/android/gms/common/api/ResultCallback;
	iput-boolean v2, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zal:Z
	monitor-exit v0
	:try_end_0
	.catchall {:try_start_0 .. :try_end_0} :catchall_0
	iget-object v0, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zai:Ljava/util/concurrent/atomic/AtomicReference;
	invoke-virtual {v0, v3}, Ljava/util/concurrent/atomic/AtomicReference;->getAndSet(Ljava/lang/Object;)Ljava/lang/Object;
	move-result-object v0
	check-cast v0, Lcom/google/android/gms/common/api/internal/zadb;
	if-eqz v0, :cond_0
	iget-object v0, v0, Lcom/google/android/gms/common/api/internal/zadb;->zaa:Lcom/google/android/gms/common/api/internal/zadc;
	iget-object v0, v0, Lcom/google/android/gms/common/api/internal/zadc;->zab:Ljava/util/Set;
	invoke-interface {v0, p0}, Ljava/util/Set;->remove(Ljava/lang/Object;)Z
	:cond_0
	invoke-static {v1}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
	move-result-object v0
	check-cast v0, Lcom/google/android/gms/common/api/Result;
	return-object v0
	:catchall_0
	move-exception v1
	:try_start_1
	monitor-exit v0
	:try_end_1
	.catchall {:try_start_1 .. :try_end_1} :catchall_0
	throw v1
.end method

.method private final zab(Lcom/google/android/gms/common/api/Result;)V
	.locals 4
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"(TR;)V"
	}
	.end annotation

	iput-object p1, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zaj:Lcom/google/android/gms/common/api/Result;
	invoke-interface {p1}, Lcom/google/android/gms/common/api/Result;->getStatus()Lcom/google/android/gms/common/api/Status;
	move-result-object p1
	iput-object p1, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zak:Lcom/google/android/gms/common/api/Status;
	const/4 p1, 0x0
	iput-object p1, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zao:Lcom/google/android/gms/common/internal/ICancelToken;
	iget-object v0, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zaf:Ljava/util/concurrent/CountDownLatch;
	invoke-virtual {v0}, Ljava/util/concurrent/CountDownLatch;->countDown()V
	iget-boolean v0, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zam:Z
	if-eqz v0, :cond_0
	iput-object p1, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zah:Lcom/google/android/gms/common/api/ResultCallback;
	goto :goto_0
	:cond_0
	iget-object v0, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zah:Lcom/google/android/gms/common/api/ResultCallback;
	if-nez v0, :cond_1
	iget-object v0, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zaj:Lcom/google/android/gms/common/api/Result;
	instance-of v0, v0, Lcom/google/android/gms/common/api/Releasable;
	if-eqz v0, :cond_2
	new-instance v0, Lcom/google/android/gms/common/api/internal/zas;
	invoke-direct {v0, p0, p1}, Lcom/google/android/gms/common/api/internal/zas;-><init>(Lcom/google/android/gms/common/api/internal/BasePendingResult;Lcom/google/android/gms/common/api/internal/zar;)V
	iput-object v0, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->mResultGuardian:Lcom/google/android/gms/common/api/internal/zas;
	goto :goto_0
	:cond_1
	iget-object p1, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zab:Lcom/google/android/gms/common/api/internal/BasePendingResult$CallbackHandler;
	const/4 v1, 0x2
	invoke-virtual {p1, v1}, Lcom/google/android/gms/common/api/internal/BasePendingResult$CallbackHandler;->removeMessages(I)V
	iget-object p1, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zab:Lcom/google/android/gms/common/api/internal/BasePendingResult$CallbackHandler;
	invoke-direct {p0}, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zaa()Lcom/google/android/gms/common/api/Result;
	move-result-object v1
	invoke-virtual {p1, v0, v1}, Lcom/google/android/gms/common/api/internal/BasePendingResult$CallbackHandler;->zaa(Lcom/google/android/gms/common/api/ResultCallback;Lcom/google/android/gms/common/api/Result;)V
	:goto_0
	:cond_2
	iget-object p1, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zag:Ljava/util/ArrayList;
	invoke-interface {p1}, Ljava/util/List;->size()I
	move-result v0
	const/4 v1, 0x0
	:goto_1
	if-ge v1, v0, :cond_3
	invoke-interface {p1, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
	move-result-object v2
	check-cast v2, Lcom/google/android/gms/common/api/PendingResult$StatusListener;
	iget-object v3, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zak:Lcom/google/android/gms/common/api/Status;
	invoke-interface {v2, v3}, Lcom/google/android/gms/common/api/PendingResult$StatusListener;->onComplete(Lcom/google/android/gms/common/api/Status;)V
	add-int/lit8 v1, v1, 0x1
	goto :goto_1
	:cond_3
	iget-object p1, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zag:Ljava/util/ArrayList;
	invoke-virtual {p1}, Ljava/util/ArrayList;->clear()V
	return-void
.end method

.method static bridge synthetic zaj(Lcom/google/android/gms/common/api/internal/BasePendingResult;)Lcom/google/android/gms/common/api/Result;
	.locals 0

	iget-object p0, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zaj:Lcom/google/android/gms/common/api/Result;
	return-object p0
.end method

.method public static zal(Lcom/google/android/gms/common/api/Result;)V
	.locals 2

	instance-of v0, p0, Lcom/google/android/gms/common/api/Releasable;
	if-eqz v0, :cond_0
	:try_start_0
	move-object v0, p0
	check-cast v0, Lcom/google/android/gms/common/api/Releasable;
	invoke-interface {v0}, Lcom/google/android/gms/common/api/Releasable;->release()V
	:try_end_0
	.catch Ljava/lang/RuntimeException; {:try_start_0 .. :try_end_0} :catch_0
	return-void
	:catch_0
	move-exception v0
	invoke-static {p0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
	move-result-object p0
	invoke-static {p0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
	move-result-object v1
	invoke-virtual {v1}, Ljava/lang/String;->length()I
	invoke-static {p0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
	move-result-object p0
	const-string v1, "Unable to release "
	invoke-virtual {v1, p0}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
	move-result-object p0
	const-string v1, "BasePendingResult"
	invoke-static {v1, p0, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
	:cond_0
	return-void
.end method

.method public final addStatusListener(Lcom/google/android/gms/common/api/PendingResult$StatusListener;)V
	.locals 2

	if-eqz p1, :cond_0
	const/4 v0, 0x1
	goto :goto_0
	:cond_0
	const/4 v0, 0x0
	:goto_0
	const-string v1, "Callback cannot be null."
	invoke-static {v0, v1}, Lcom/google/android/gms/common/internal/Preconditions;->checkArgument(ZLjava/lang/Object;)V
	iget-object v0, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zae:Ljava/lang/Object;
	monitor-enter v0
	:try_start_0
	invoke-virtual {p0}, Lcom/google/android/gms/common/api/internal/BasePendingResult;->isReady()Z
	move-result v1
	if-eqz v1, :cond_1
	iget-object v1, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zak:Lcom/google/android/gms/common/api/Status;
	invoke-interface {p1, v1}, Lcom/google/android/gms/common/api/PendingResult$StatusListener;->onComplete(Lcom/google/android/gms/common/api/Status;)V
	goto :goto_1
	:cond_1
	iget-object v1, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zag:Ljava/util/ArrayList;
	invoke-virtual {v1, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
	:goto_1
	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
.end method

.method public final await()Lcom/google/android/gms/common/api/Result;
	.locals 3
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"()TR;"
	}
	.end annotation

	const-string v0, "await must not be called on the UI thread"
	invoke-static {v0}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotMainThread(Ljava/lang/String;)V
	iget-boolean v0, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zal:Z
	const/4 v1, 0x1
	xor-int/2addr v0, v1
	const-string v2, "Result has already been consumed"
	invoke-static {v0, v2}, Lcom/google/android/gms/common/internal/Preconditions;->checkState(ZLjava/lang/Object;)V
	iget-object v0, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zap:Lcom/google/android/gms/common/api/internal/zada;
	if-nez v0, :cond_0
	goto :goto_0
	:cond_0
	const/4 v1, 0x0
	:goto_0
	const-string v0, "Cannot await if then() has been called."
	invoke-static {v1, v0}, Lcom/google/android/gms/common/internal/Preconditions;->checkState(ZLjava/lang/Object;)V
	:try_start_0
	iget-object v0, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zaf:Ljava/util/concurrent/CountDownLatch;
	invoke-virtual {v0}, Ljava/util/concurrent/CountDownLatch;->await()V
	:try_end_0
	.catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0
	goto :goto_1
	:catch_0
	sget-object v0, Lcom/google/android/gms/common/api/Status;->RESULT_INTERRUPTED:Lcom/google/android/gms/common/api/Status;
	invoke-virtual {p0, v0}, Lcom/google/android/gms/common/api/internal/BasePendingResult;->forceFailureUnlessReady(Lcom/google/android/gms/common/api/Status;)V
	:goto_1
	invoke-virtual {p0}, Lcom/google/android/gms/common/api/internal/BasePendingResult;->isReady()Z
	move-result v0
	const-string v1, "Result is not ready."
	invoke-static {v0, v1}, Lcom/google/android/gms/common/internal/Preconditions;->checkState(ZLjava/lang/Object;)V
	invoke-direct {p0}, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zaa()Lcom/google/android/gms/common/api/Result;
	move-result-object v0
	return-object v0
.end method

.method public final await(JLjava/util/concurrent/TimeUnit;)Lcom/google/android/gms/common/api/Result;
	.locals 3
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"(J",
	"Ljava/util/concurrent/TimeUnit;",
	")TR;"
	}
	.end annotation

	const-wide/16 v0, 0x0
	cmp-long v2, p1, v0
	if-lez v2, :cond_0
	const-string v0, "await must not be called on the UI thread when time is greater than zero."
	invoke-static {v0}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotMainThread(Ljava/lang/String;)V
	:cond_0
	iget-boolean v0, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zal:Z
	const/4 v1, 0x1
	xor-int/2addr v0, v1
	const-string v2, "Result has already been consumed."
	invoke-static {v0, v2}, Lcom/google/android/gms/common/internal/Preconditions;->checkState(ZLjava/lang/Object;)V
	iget-object v0, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zap:Lcom/google/android/gms/common/api/internal/zada;
	if-nez v0, :cond_1
	goto :goto_0
	:cond_1
	const/4 v1, 0x0
	:goto_0
	const-string v0, "Cannot await if then() has been called."
	invoke-static {v1, v0}, Lcom/google/android/gms/common/internal/Preconditions;->checkState(ZLjava/lang/Object;)V
	:try_start_0
	iget-object v0, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zaf:Ljava/util/concurrent/CountDownLatch;
	invoke-virtual {v0, p1, p2, p3}, Ljava/util/concurrent/CountDownLatch;->await(JLjava/util/concurrent/TimeUnit;)Z
	move-result p1
	if-nez p1, :cond_2
	sget-object p1, Lcom/google/android/gms/common/api/Status;->RESULT_TIMEOUT:Lcom/google/android/gms/common/api/Status;
	invoke-virtual {p0, p1}, Lcom/google/android/gms/common/api/internal/BasePendingResult;->forceFailureUnlessReady(Lcom/google/android/gms/common/api/Status;)V
	:try_end_0
	.catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0
	goto :goto_1
	:catch_0
	sget-object p1, Lcom/google/android/gms/common/api/Status;->RESULT_INTERRUPTED:Lcom/google/android/gms/common/api/Status;
	invoke-virtual {p0, p1}, Lcom/google/android/gms/common/api/internal/BasePendingResult;->forceFailureUnlessReady(Lcom/google/android/gms/common/api/Status;)V
	:goto_1
	:cond_2
	invoke-virtual {p0}, Lcom/google/android/gms/common/api/internal/BasePendingResult;->isReady()Z
	move-result p1
	const-string p2, "Result is not ready."
	invoke-static {p1, p2}, Lcom/google/android/gms/common/internal/Preconditions;->checkState(ZLjava/lang/Object;)V
	invoke-direct {p0}, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zaa()Lcom/google/android/gms/common/api/Result;
	move-result-object p1
	return-object p1
.end method

.method public cancel()V
	.locals 2

	iget-object v0, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zae:Ljava/lang/Object;
	monitor-enter v0
	:try_start_0
	iget-boolean v1, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zam:Z
	if-nez v1, :cond_2
	iget-boolean v1, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zal:Z
	if-eqz v1, :cond_0
	goto :goto_0
	:cond_0
	iget-object v1, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zao:Lcom/google/android/gms/common/internal/ICancelToken;
	:try_end_0
	.catchall {:try_start_0 .. :try_end_0} :catchall_0
	if-eqz v1, :cond_1
	:try_start_1
	invoke-interface {v1}, Lcom/google/android/gms/common/internal/ICancelToken;->cancel()V
	:try_end_1
	.catch Landroid/os/RemoteException; {:try_start_1 .. :try_end_1} :catch_0
	.catchall {:try_start_1 .. :try_end_1} :catchall_0
	:try_start_2
	:catch_0
	:cond_1
	iget-object v1, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zaj:Lcom/google/android/gms/common/api/Result;
	invoke-static {v1}, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zal(Lcom/google/android/gms/common/api/Result;)V
	const/4 v1, 0x1
	iput-boolean v1, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zam:Z
	sget-object v1, Lcom/google/android/gms/common/api/Status;->RESULT_CANCELED:Lcom/google/android/gms/common/api/Status;
	invoke-virtual {p0, v1}, Lcom/google/android/gms/common/api/internal/BasePendingResult;->createFailedResult(Lcom/google/android/gms/common/api/Status;)Lcom/google/android/gms/common/api/Result;
	move-result-object v1
	invoke-direct {p0, v1}, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zab(Lcom/google/android/gms/common/api/Result;)V
	monitor-exit v0
	return-void
	:goto_0
	:cond_2
	monitor-exit v0
	return-void
	:catchall_0
	move-exception v1
	monitor-exit v0
	:try_end_2
	.catchall {:try_start_2 .. :try_end_2} :catchall_0
	throw v1
.end method

.method protected abstract createFailedResult(Lcom/google/android/gms/common/api/Status;)Lcom/google/android/gms/common/api/Result;
	
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"(",
	"Lcom/google/android/gms/common/api/Status;",
	")TR;"
	}
	.end annotation

.end method

.method public final forceFailureUnlessReady(Lcom/google/android/gms/common/api/Status;)V
	.locals 2
	.annotation runtime Ljava/lang/Deprecated;
	.end annotation

	iget-object v0, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zae:Ljava/lang/Object;
	monitor-enter v0
	:try_start_0
	invoke-virtual {p0}, Lcom/google/android/gms/common/api/internal/BasePendingResult;->isReady()Z
	move-result v1
	if-nez v1, :cond_0
	invoke-virtual {p0, p1}, Lcom/google/android/gms/common/api/internal/BasePendingResult;->createFailedResult(Lcom/google/android/gms/common/api/Status;)Lcom/google/android/gms/common/api/Result;
	move-result-object p1
	invoke-virtual {p0, p1}, Lcom/google/android/gms/common/api/internal/BasePendingResult;->setResult(Lcom/google/android/gms/common/api/Result;)V
	const/4 p1, 0x1
	iput-boolean p1, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zan:Z
	:cond_0
	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
.end method

.method public final isCanceled()Z
	.locals 2

	iget-object v0, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zae:Ljava/lang/Object;
	monitor-enter v0
	:try_start_0
	iget-boolean v1, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zam:Z
	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 isReady()Z
	.locals 5

	iget-object v0, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zaf:Ljava/util/concurrent/CountDownLatch;
	invoke-virtual {v0}, Ljava/util/concurrent/CountDownLatch;->getCount()J
	move-result-wide v0
	const-wide/16 v2, 0x0
	cmp-long v4, v0, v2
	if-nez v4, :cond_0
	const/4 v0, 0x1
	return v0
	:cond_0
	const/4 v0, 0x0
	return v0
.end method

.method protected final setCancelToken(Lcom/google/android/gms/common/internal/ICancelToken;)V
	.locals 1

	iget-object v0, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zae:Ljava/lang/Object;
	monitor-enter v0
	:try_start_0
	iput-object p1, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zao:Lcom/google/android/gms/common/internal/ICancelToken;
	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
.end method

.method public final setResult(Lcom/google/android/gms/common/api/Result;)V
	.locals 3
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"(TR;)V"
	}
	.end annotation

	iget-object v0, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zae:Ljava/lang/Object;
	monitor-enter v0
	:try_start_0
	iget-boolean v1, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zan:Z
	if-nez v1, :cond_0
	iget-boolean v1, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zam:Z
	if-nez v1, :cond_0
	invoke-virtual {p0}, Lcom/google/android/gms/common/api/internal/BasePendingResult;->isReady()Z
	invoke-virtual {p0}, Lcom/google/android/gms/common/api/internal/BasePendingResult;->isReady()Z
	move-result v1
	xor-int/lit8 v1, v1, 0x1
	const-string v2, "Results have already been set"
	invoke-static {v1, v2}, Lcom/google/android/gms/common/internal/Preconditions;->checkState(ZLjava/lang/Object;)V
	iget-boolean v1, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zal:Z
	xor-int/lit8 v1, v1, 0x1
	const-string v2, "Result has already been consumed"
	invoke-static {v1, v2}, Lcom/google/android/gms/common/internal/Preconditions;->checkState(ZLjava/lang/Object;)V
	invoke-direct {p0, p1}, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zab(Lcom/google/android/gms/common/api/Result;)V
	monitor-exit v0
	return-void
	:cond_0
	invoke-static {p1}, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zal(Lcom/google/android/gms/common/api/Result;)V
	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
.end method

.method public final setResultCallback(Lcom/google/android/gms/common/api/ResultCallback;)V
	.locals 4
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"(",
	"Lcom/google/android/gms/common/api/ResultCallback<",
	"-TR;>;)V"
	}
	.end annotation

	iget-object v0, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zae:Ljava/lang/Object;
	monitor-enter v0
	if-nez p1, :cond_0
	const/4 p1, 0x0
	:try_start_0
	iput-object p1, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zah:Lcom/google/android/gms/common/api/ResultCallback;
	monitor-exit v0
	return-void
	:cond_0
	iget-boolean v1, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zal:Z
	const/4 v2, 0x1
	xor-int/2addr v1, v2
	const-string v3, "Result has already been consumed."
	invoke-static {v1, v3}, Lcom/google/android/gms/common/internal/Preconditions;->checkState(ZLjava/lang/Object;)V
	iget-object v1, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zap:Lcom/google/android/gms/common/api/internal/zada;
	if-nez v1, :cond_1
	goto :goto_0
	:cond_1
	const/4 v2, 0x0
	:goto_0
	const-string v1, "Cannot set callbacks if then() has been called."
	invoke-static {v2, v1}, Lcom/google/android/gms/common/internal/Preconditions;->checkState(ZLjava/lang/Object;)V
	invoke-virtual {p0}, Lcom/google/android/gms/common/api/internal/BasePendingResult;->isCanceled()Z
	move-result v1
	if-eqz v1, :cond_2
	monitor-exit v0
	return-void
	:cond_2
	invoke-virtual {p0}, Lcom/google/android/gms/common/api/internal/BasePendingResult;->isReady()Z
	move-result v1
	if-eqz v1, :cond_3
	iget-object v1, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zab:Lcom/google/android/gms/common/api/internal/BasePendingResult$CallbackHandler;
	invoke-direct {p0}, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zaa()Lcom/google/android/gms/common/api/Result;
	move-result-object v2
	invoke-virtual {v1, p1, v2}, Lcom/google/android/gms/common/api/internal/BasePendingResult$CallbackHandler;->zaa(Lcom/google/android/gms/common/api/ResultCallback;Lcom/google/android/gms/common/api/Result;)V
	goto :goto_1
	:cond_3
	iput-object p1, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zah:Lcom/google/android/gms/common/api/ResultCallback;
	:goto_1
	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
.end method

.method public final setResultCallback(Lcom/google/android/gms/common/api/ResultCallback;JLjava/util/concurrent/TimeUnit;)V
	.locals 4
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"(",
	"Lcom/google/android/gms/common/api/ResultCallback<",
	"-TR;>;J",
	"Ljava/util/concurrent/TimeUnit;",
	")V"
	}
	.end annotation

	iget-object v0, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zae:Ljava/lang/Object;
	monitor-enter v0
	if-nez p1, :cond_0
	const/4 p1, 0x0
	:try_start_0
	iput-object p1, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zah:Lcom/google/android/gms/common/api/ResultCallback;
	monitor-exit v0
	return-void
	:cond_0
	iget-boolean v1, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zal:Z
	const/4 v2, 0x1
	xor-int/2addr v1, v2
	const-string v3, "Result has already been consumed."
	invoke-static {v1, v3}, Lcom/google/android/gms/common/internal/Preconditions;->checkState(ZLjava/lang/Object;)V
	iget-object v1, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zap:Lcom/google/android/gms/common/api/internal/zada;
	if-nez v1, :cond_1
	goto :goto_0
	:cond_1
	const/4 v2, 0x0
	:goto_0
	const-string v1, "Cannot set callbacks if then() has been called."
	invoke-static {v2, v1}, Lcom/google/android/gms/common/internal/Preconditions;->checkState(ZLjava/lang/Object;)V
	invoke-virtual {p0}, Lcom/google/android/gms/common/api/internal/BasePendingResult;->isCanceled()Z
	move-result v1
	if-eqz v1, :cond_2
	monitor-exit v0
	return-void
	:cond_2
	invoke-virtual {p0}, Lcom/google/android/gms/common/api/internal/BasePendingResult;->isReady()Z
	move-result v1
	if-eqz v1, :cond_3
	iget-object p2, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zab:Lcom/google/android/gms/common/api/internal/BasePendingResult$CallbackHandler;
	invoke-direct {p0}, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zaa()Lcom/google/android/gms/common/api/Result;
	move-result-object p3
	invoke-virtual {p2, p1, p3}, Lcom/google/android/gms/common/api/internal/BasePendingResult$CallbackHandler;->zaa(Lcom/google/android/gms/common/api/ResultCallback;Lcom/google/android/gms/common/api/Result;)V
	goto :goto_1
	:cond_3
	iput-object p1, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zah:Lcom/google/android/gms/common/api/ResultCallback;
	iget-object p1, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zab:Lcom/google/android/gms/common/api/internal/BasePendingResult$CallbackHandler;
	invoke-virtual {p4, p2, p3}, Ljava/util/concurrent/TimeUnit;->toMillis(J)J
	move-result-wide p2
	const/4 p4, 0x2
	invoke-virtual {p1, p4, p0}, Lcom/google/android/gms/common/api/internal/BasePendingResult$CallbackHandler;->obtainMessage(ILjava/lang/Object;)Landroid/os/Message;
	move-result-object p4
	invoke-virtual {p1, p4, p2, p3}, Lcom/google/android/gms/common/api/internal/BasePendingResult$CallbackHandler;->sendMessageDelayed(Landroid/os/Message;J)Z
	:goto_1
	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
.end method

.method public final then(Lcom/google/android/gms/common/api/ResultTransform;)Lcom/google/android/gms/common/api/TransformedResult;
	.locals 5
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"<S::",
	"Lcom/google/android/gms/common/api/Result;",
	">(",
	"Lcom/google/android/gms/common/api/ResultTransform<",
	"-TR;+TS;>;)",
	"Lcom/google/android/gms/common/api/TransformedResult<",
	"TS;>;"
	}
	.end annotation

	iget-boolean v0, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zal:Z
	const/4 v1, 0x1
	xor-int/2addr v0, v1
	const-string v2, "Result has already been consumed."
	invoke-static {v0, v2}, Lcom/google/android/gms/common/internal/Preconditions;->checkState(ZLjava/lang/Object;)V
	iget-object v0, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zae:Ljava/lang/Object;
	monitor-enter v0
	:try_start_0
	iget-object v2, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zap:Lcom/google/android/gms/common/api/internal/zada;
	const/4 v3, 0x0
	if-nez v2, :cond_0
	const/4 v2, 0x1
	goto :goto_0
	:cond_0
	const/4 v2, 0x0
	:goto_0
	const-string v4, "Cannot call then() twice."
	invoke-static {v2, v4}, Lcom/google/android/gms/common/internal/Preconditions;->checkState(ZLjava/lang/Object;)V
	iget-object v2, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zah:Lcom/google/android/gms/common/api/ResultCallback;
	if-nez v2, :cond_1
	const/4 v3, 0x1
	:cond_1
	const-string v2, "Cannot call then() if callbacks are set."
	invoke-static {v3, v2}, Lcom/google/android/gms/common/internal/Preconditions;->checkState(ZLjava/lang/Object;)V
	iget-boolean v2, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zam:Z
	xor-int/2addr v2, v1
	const-string v3, "Cannot call then() if result was canceled."
	invoke-static {v2, v3}, Lcom/google/android/gms/common/internal/Preconditions;->checkState(ZLjava/lang/Object;)V
	iput-boolean v1, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zaq:Z
	new-instance v1, Lcom/google/android/gms/common/api/internal/zada;
	iget-object v2, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zac:Ljava/lang/ref/WeakReference;
	invoke-direct {v1, v2}, Lcom/google/android/gms/common/api/internal/zada;-><init>(Ljava/lang/ref/WeakReference;)V
	iput-object v1, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zap:Lcom/google/android/gms/common/api/internal/zada;
	iget-object v1, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zap:Lcom/google/android/gms/common/api/internal/zada;
	invoke-virtual {v1, p1}, Lcom/google/android/gms/common/api/internal/zada;->then(Lcom/google/android/gms/common/api/ResultTransform;)Lcom/google/android/gms/common/api/TransformedResult;
	move-result-object p1
	invoke-virtual {p0}, Lcom/google/android/gms/common/api/internal/BasePendingResult;->isReady()Z
	move-result v1
	if-eqz v1, :cond_2
	iget-object v1, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zab:Lcom/google/android/gms/common/api/internal/BasePendingResult$CallbackHandler;
	iget-object v2, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zap:Lcom/google/android/gms/common/api/internal/zada;
	invoke-direct {p0}, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zaa()Lcom/google/android/gms/common/api/Result;
	move-result-object v3
	invoke-virtual {v1, v2, v3}, Lcom/google/android/gms/common/api/internal/BasePendingResult$CallbackHandler;->zaa(Lcom/google/android/gms/common/api/ResultCallback;Lcom/google/android/gms/common/api/Result;)V
	goto :goto_1
	:cond_2
	iget-object v1, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zap:Lcom/google/android/gms/common/api/internal/zada;
	iput-object v1, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zah:Lcom/google/android/gms/common/api/ResultCallback;
	:goto_1
	monitor-exit v0
	return-object p1
	:catchall_0
	move-exception p1
	monitor-exit v0
	:try_end_0
	.catchall {:try_start_0 .. :try_end_0} :catchall_0
	throw p1
.end method

.method public final zak()V
	.locals 2

	iget-boolean v0, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zaq:Z
	const/4 v1, 0x1
	if-nez v0, :cond_1
	sget-object v0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zaa:Ljava/lang/ThreadLocal;
	invoke-virtual {v0}, Ljava/lang/ThreadLocal;->get()Ljava/lang/Object;
	move-result-object v0
	check-cast v0, Ljava/lang/Boolean;
	invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z
	move-result v0
	if-eqz v0, :cond_0
	goto :goto_0
	:cond_0
	const/4 v1, 0x0
	:cond_1
	:goto_0
	iput-boolean v1, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zaq:Z
	return-void
.end method

.method public final zam()Z
	.locals 2

	iget-object v0, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zae:Ljava/lang/Object;
	monitor-enter v0
	:try_start_0
	iget-object v1, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zac:Ljava/lang/ref/WeakReference;
	invoke-virtual {v1}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
	move-result-object v1
	check-cast v1, Lcom/google/android/gms/common/api/GoogleApiClient;
	if-eqz v1, :cond_0
	iget-boolean v1, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zaq:Z
	if-nez v1, :cond_1
	:cond_0
	invoke-virtual {p0}, Lcom/google/android/gms/common/api/internal/BasePendingResult;->cancel()V
	:cond_1
	invoke-virtual {p0}, Lcom/google/android/gms/common/api/internal/BasePendingResult;->isCanceled()Z
	move-result v1
	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 zan(Lcom/google/android/gms/common/api/internal/zadb;)V
	.locals 1

	iget-object v0, p0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zai:Ljava/util/concurrent/atomic/AtomicReference;
	invoke-virtual {v0, p1}, Ljava/util/concurrent/atomic/AtomicReference;->set(Ljava/lang/Object;)V
	return-void
.end method