granularity level: instruction

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

.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/android/gms/common/api/internal/BasePendingResult;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "CallbackHandler"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<R::",
"Lcom/google/android/gms/common/api/Result;",
">",
"Lcom/google/android/gms/internal/base/zaq;"
}
.end annotation



.method public constructor <init>()V
	.locals 1

	invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
	move-result-object v0
	invoke-direct {p0, v0}, Lcom/google/android/gms/internal/base/zaq;-><init>(Landroid/os/Looper;)V
	return-void
.end method

.method public constructor <init>(Landroid/os/Looper;)V
	.locals 0

	invoke-direct {p0, p1}, Lcom/google/android/gms/internal/base/zaq;-><init>(Landroid/os/Looper;)V
	return-void
.end method

.method public final handleMessage(Landroid/os/Message;)V
	.locals 2

	iget v0, p1, Landroid/os/Message;->what:I
	const/4 v1, 0x1
	if-eq v0, v1, :cond_1
	const/4 v1, 0x2
	if-eq v0, v1, :cond_0
	iget p1, p1, Landroid/os/Message;->what:I
	new-instance v0, Ljava/lang/StringBuilder;
	const/16 v1, 0x2d
	invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(I)V
	const-string v1, "Don\'t know how to handle message: "
	invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
	new-instance p1, Ljava/lang/Exception;
	invoke-direct {p1}, Ljava/lang/Exception;-><init>()V
	invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
	move-result-object v0
	const-string v1, "BasePendingResult"
	invoke-static {v1, v0, p1}, Landroid/util/Log;->wtf(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
	return-void
	:cond_0
	iget-object p1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;
	check-cast p1, Lcom/google/android/gms/common/api/internal/BasePendingResult;
	sget-object v0, Lcom/google/android/gms/common/api/Status;->RESULT_TIMEOUT:Lcom/google/android/gms/common/api/Status;
	invoke-virtual {p1, v0}, Lcom/google/android/gms/common/api/internal/BasePendingResult;->forceFailureUnlessReady(Lcom/google/android/gms/common/api/Status;)V
	return-void
	:cond_1
	iget-object p1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;
	check-cast p1, Landroid/util/Pair;
	iget-object v0, p1, Landroid/util/Pair;->first:Ljava/lang/Object;
	check-cast v0, Lcom/google/android/gms/common/api/ResultCallback;
	iget-object p1, p1, Landroid/util/Pair;->second:Ljava/lang/Object;
	check-cast p1, Lcom/google/android/gms/common/api/Result;
	:try_start_0
	invoke-interface {v0, p1}, Lcom/google/android/gms/common/api/ResultCallback;->onResult(Lcom/google/android/gms/common/api/Result;)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 {p1}, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zal(Lcom/google/android/gms/common/api/Result;)V
	throw v0
.end method

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

	sget v0, Lcom/google/android/gms/common/api/internal/BasePendingResult;->zad:I
	invoke-static {p1}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
	move-result-object p1
	check-cast p1, Lcom/google/android/gms/common/api/ResultCallback;
	new-instance v0, Landroid/util/Pair;
	invoke-direct {v0, p1, p2}, Landroid/util/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
	const/4 p1, 0x1
	invoke-virtual {p0, p1, v0}, Lcom/google/android/gms/common/api/internal/BasePendingResult$CallbackHandler;->obtainMessage(ILjava/lang/Object;)Landroid/os/Message;
	move-result-object p1
	invoke-virtual {p0, p1}, Lcom/google/android/gms/common/api/internal/BasePendingResult$CallbackHandler;->sendMessage(Landroid/os/Message;)Z
	return-void
.end method