granularity level: instruction

		.class public final Lcom/google/android/gms/cloudmessaging/zzs;
.super Ljava/lang/Object;
.source "com.google.android.gms:play-services-cloud-messaging@@17.0.0"


.field private static zza:Lcom/google/android/gms/cloudmessaging/zzs;
.field private final zzb:Landroid/content/Context;
.field private final zzc:Ljava/util/concurrent/ScheduledExecutorService;
.field private zzd:Lcom/google/android/gms/cloudmessaging/zzm;
.field private zze:I


.method constructor <init>(Landroid/content/Context;Ljava/util/concurrent/ScheduledExecutorService;)V
	.locals 2

	invoke-direct {p0}, Ljava/lang/Object;-><init>()V
	new-instance v0, Lcom/google/android/gms/cloudmessaging/zzm;
	const/4 v1, 0x0
	invoke-direct {v0, p0, v1}, Lcom/google/android/gms/cloudmessaging/zzm;-><init>(Lcom/google/android/gms/cloudmessaging/zzs;Lcom/google/android/gms/cloudmessaging/zzl;)V
	iput-object v0, p0, Lcom/google/android/gms/cloudmessaging/zzs;->zzd:Lcom/google/android/gms/cloudmessaging/zzm;
	const/4 v0, 0x1
	iput v0, p0, Lcom/google/android/gms/cloudmessaging/zzs;->zze:I
	iput-object p2, p0, Lcom/google/android/gms/cloudmessaging/zzs;->zzc:Ljava/util/concurrent/ScheduledExecutorService;
	invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
	move-result-object p1
	iput-object p1, p0, Lcom/google/android/gms/cloudmessaging/zzs;->zzb:Landroid/content/Context;
	return-void
.end method

.method static bridge synthetic zza(Lcom/google/android/gms/cloudmessaging/zzs;)Landroid/content/Context;
	.locals 0

	iget-object p0, p0, Lcom/google/android/gms/cloudmessaging/zzs;->zzb:Landroid/content/Context;
	return-object p0
.end method

.method public static declared-synchronized zzb(Landroid/content/Context;)Lcom/google/android/gms/cloudmessaging/zzs;
	.locals 4

	const-class v0, Lcom/google/android/gms/cloudmessaging/zzs;
	monitor-enter v0
	:try_start_0
	sget-object v1, Lcom/google/android/gms/cloudmessaging/zzs;->zza:Lcom/google/android/gms/cloudmessaging/zzs;
	if-nez v1, :cond_0
	new-instance v1, Lcom/google/android/gms/cloudmessaging/zzs;
	invoke-static {}, Lcom/google/android/gms/internal/cloudmessaging/zze;->zza()Lcom/google/android/gms/internal/cloudmessaging/zzb;
	new-instance v2, Lcom/google/android/gms/common/util/concurrent/NamedThreadFactory;
	const-string v3, "MessengerIpcClient"
	invoke-direct {v2, v3}, Lcom/google/android/gms/common/util/concurrent/NamedThreadFactory;-><init>(Ljava/lang/String;)V
	const/4 v3, 0x1
	invoke-static {v3, v2}, Ljava/util/concurrent/Executors;->newScheduledThreadPool(ILjava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ScheduledExecutorService;
	move-result-object v2
	invoke-static {v2}, Ljava/util/concurrent/Executors;->unconfigurableScheduledExecutorService(Ljava/util/concurrent/ScheduledExecutorService;)Ljava/util/concurrent/ScheduledExecutorService;
	move-result-object v2
	invoke-direct {v1, p0, v2}, Lcom/google/android/gms/cloudmessaging/zzs;-><init>(Landroid/content/Context;Ljava/util/concurrent/ScheduledExecutorService;)V
	sput-object v1, Lcom/google/android/gms/cloudmessaging/zzs;->zza:Lcom/google/android/gms/cloudmessaging/zzs;
	:cond_0
	sget-object p0, Lcom/google/android/gms/cloudmessaging/zzs;->zza:Lcom/google/android/gms/cloudmessaging/zzs;
	:try_end_0
	.catchall {:try_start_0 .. :try_end_0} :catchall_0
	monitor-exit v0
	return-object p0
	:catchall_0
	move-exception p0
	monitor-exit v0
	throw p0
.end method

.method static bridge synthetic zze(Lcom/google/android/gms/cloudmessaging/zzs;)Ljava/util/concurrent/ScheduledExecutorService;
	.locals 0

	iget-object p0, p0, Lcom/google/android/gms/cloudmessaging/zzs;->zzc:Ljava/util/concurrent/ScheduledExecutorService;
	return-object p0
.end method

.method private final declared-synchronized zzf()I
	.locals 2

	monitor-enter p0
	:try_start_0
	iget v0, p0, Lcom/google/android/gms/cloudmessaging/zzs;->zze:I
	add-int/lit8 v1, v0, 0x1
	iput v1, p0, Lcom/google/android/gms/cloudmessaging/zzs;->zze:I
	:try_end_0
	.catchall {:try_start_0 .. :try_end_0} :catchall_0
	monitor-exit p0
	return v0
	:catchall_0
	move-exception v0
	monitor-exit p0
	throw v0
.end method

.method private final declared-synchronized zzg(Lcom/google/android/gms/cloudmessaging/zzp;)Lcom/google/android/gms/tasks/Task;
	.locals 3
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"<T:",
	"Ljava/lang/Object;",
	">(",
	"Lcom/google/android/gms/cloudmessaging/zzp<",
	"TT;>;)",
	"Lcom/google/android/gms/tasks/Task<",
	"TT;>;"
	}
	.end annotation

	monitor-enter p0
	:try_start_0
	const-string v0, "MessengerIpcClient"
	const/4 v1, 0x3
	invoke-static {v0, v1}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
	move-result v0
	if-eqz v0, :cond_0
	invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
	move-result-object v0
	invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
	move-result-object v1
	invoke-virtual {v1}, Ljava/lang/String;->length()I
	move-result v1
	new-instance v2, Ljava/lang/StringBuilder;
	add-int/lit8 v1, v1, 0x9
	invoke-direct {v2, v1}, Ljava/lang/StringBuilder;-><init>(I)V
	const-string v1, "Queueing "
	invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	const-string v0, "MessengerIpcClient"
	invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
	move-result-object v1
	invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
	:cond_0
	iget-object v0, p0, Lcom/google/android/gms/cloudmessaging/zzs;->zzd:Lcom/google/android/gms/cloudmessaging/zzm;
	invoke-virtual {v0, p1}, Lcom/google/android/gms/cloudmessaging/zzm;->zzg(Lcom/google/android/gms/cloudmessaging/zzp;)Z
	move-result v0
	if-nez v0, :cond_1
	new-instance v0, Lcom/google/android/gms/cloudmessaging/zzm;
	const/4 v1, 0x0
	invoke-direct {v0, p0, v1}, Lcom/google/android/gms/cloudmessaging/zzm;-><init>(Lcom/google/android/gms/cloudmessaging/zzs;Lcom/google/android/gms/cloudmessaging/zzl;)V
	iput-object v0, p0, Lcom/google/android/gms/cloudmessaging/zzs;->zzd:Lcom/google/android/gms/cloudmessaging/zzm;
	invoke-virtual {v0, p1}, Lcom/google/android/gms/cloudmessaging/zzm;->zzg(Lcom/google/android/gms/cloudmessaging/zzp;)Z
	:cond_1
	iget-object p1, p1, Lcom/google/android/gms/cloudmessaging/zzp;->zzb:Lcom/google/android/gms/tasks/TaskCompletionSource;
	invoke-virtual {p1}, Lcom/google/android/gms/tasks/TaskCompletionSource;->getTask()Lcom/google/android/gms/tasks/Task;
	move-result-object p1
	:try_end_0
	.catchall {:try_start_0 .. :try_end_0} :catchall_0
	monitor-exit p0
	return-object p1
	:catchall_0
	move-exception p1
	monitor-exit p0
	throw p1
.end method

.method public final zzc(ILandroid/os/Bundle;)Lcom/google/android/gms/tasks/Task;
	.locals 2
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"(I",
	"Landroid/os/Bundle;",
	")",
	"Lcom/google/android/gms/tasks/Task<",
	"Ljava/lang/Void;",
	">;"
	}
	.end annotation

	new-instance p1, Lcom/google/android/gms/cloudmessaging/zzo;
	invoke-direct {p0}, Lcom/google/android/gms/cloudmessaging/zzs;->zzf()I
	move-result v0
	const/4 v1, 0x2
	invoke-direct {p1, v0, v1, p2}, Lcom/google/android/gms/cloudmessaging/zzo;-><init>(IILandroid/os/Bundle;)V
	invoke-direct {p0, p1}, Lcom/google/android/gms/cloudmessaging/zzs;->zzg(Lcom/google/android/gms/cloudmessaging/zzp;)Lcom/google/android/gms/tasks/Task;
	move-result-object p1
	return-object p1
.end method

.method public final zzd(ILandroid/os/Bundle;)Lcom/google/android/gms/tasks/Task;
	.locals 2
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"(I",
	"Landroid/os/Bundle;",
	")",
	"Lcom/google/android/gms/tasks/Task<",
	"Landroid/os/Bundle;",
	">;"
	}
	.end annotation

	new-instance p1, Lcom/google/android/gms/cloudmessaging/zzr;
	invoke-direct {p0}, Lcom/google/android/gms/cloudmessaging/zzs;->zzf()I
	move-result v0
	const/4 v1, 0x1
	invoke-direct {p1, v0, v1, p2}, Lcom/google/android/gms/cloudmessaging/zzr;-><init>(IILandroid/os/Bundle;)V
	invoke-direct {p0, p1}, Lcom/google/android/gms/cloudmessaging/zzs;->zzg(Lcom/google/android/gms/cloudmessaging/zzp;)Lcom/google/android/gms/tasks/Task;
	move-result-object p1
	return-object p1
.end method