granularity level: instruction

		.class public final Lcom/google/android/gms/common/api/BatchResult;
.super Ljava/lang/Object;
.source "com.google.android.gms:play-services-base@@18.0.1"
.implements Lcom/google/android/gms/common/api/Result;


.field private final zaa:Lcom/google/android/gms/common/api/Status;
.field private final zab:[Lcom/google/android/gms/common/api/PendingResult;
.annotation system Ldalvik/annotation/Signature;
value = {
"[",
"Lcom/google/android/gms/common/api/PendingResult<",
"*>;"
}
.end annotation
.end field


.method constructor <init>(Lcom/google/android/gms/common/api/Status;[Lcom/google/android/gms/common/api/PendingResult;)V
	.locals 0
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"(",
	"Lcom/google/android/gms/common/api/Status;",
	"[",
	"Lcom/google/android/gms/common/api/PendingResult<",
	"*>;)V"
	}
	.end annotation

	invoke-direct {p0}, Ljava/lang/Object;-><init>()V
	iput-object p1, p0, Lcom/google/android/gms/common/api/BatchResult;->zaa:Lcom/google/android/gms/common/api/Status;
	iput-object p2, p0, Lcom/google/android/gms/common/api/BatchResult;->zab:[Lcom/google/android/gms/common/api/PendingResult;
	return-void
.end method

.method public getStatus()Lcom/google/android/gms/common/api/Status;
	.locals 1

	iget-object v0, p0, Lcom/google/android/gms/common/api/BatchResult;->zaa:Lcom/google/android/gms/common/api/Status;
	return-object v0
.end method

.method public take(Lcom/google/android/gms/common/api/BatchResultToken;)Lcom/google/android/gms/common/api/Result;
	.locals 3
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"<R::",
	"Lcom/google/android/gms/common/api/Result;",
	">(",
	"Lcom/google/android/gms/common/api/BatchResultToken<",
	"TR;>;)TR;"
	}
	.end annotation

	iget v0, p1, Lcom/google/android/gms/common/api/BatchResultToken;->mId:I
	iget-object v1, p0, Lcom/google/android/gms/common/api/BatchResult;->zab:[Lcom/google/android/gms/common/api/PendingResult;
	array-length v1, v1
	if-ge v0, v1, :cond_0
	const/4 v0, 0x1
	goto :goto_0
	:cond_0
	const/4 v0, 0x0
	:goto_0
	const-string v1, "The result token does not belong to this batch"
	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/BatchResult;->zab:[Lcom/google/android/gms/common/api/PendingResult;
	iget p1, p1, Lcom/google/android/gms/common/api/BatchResultToken;->mId:I
	aget-object p1, v0, p1
	const-wide/16 v0, 0x0
	sget-object v2, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
	invoke-virtual {p1, v0, v1, v2}, Lcom/google/android/gms/common/api/PendingResult;->await(JLjava/util/concurrent/TimeUnit;)Lcom/google/android/gms/common/api/Result;
	move-result-object p1
	return-object p1
.end method