granularity level: instruction

		.class public Lcom/google/android/gms/common/stats/ConnectionTracker;
.super Ljava/lang/Object;
.source "com.google.android.gms:play-services-basement@@18.1.0"


.field private static final zzb:Ljava/lang/Object;
.field private static volatile zzc:Lcom/google/android/gms/common/stats/ConnectionTracker;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end field
.field public zza:Ljava/util/concurrent/ConcurrentHashMap;


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

	new-instance v0, Ljava/lang/Object;
	invoke-direct {v0}, Ljava/lang/Object;-><init>()V
	sput-object v0, Lcom/google/android/gms/common/stats/ConnectionTracker;->zzb:Ljava/lang/Object;
	return-void
.end method

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

	invoke-direct {p0}, Ljava/lang/Object;-><init>()V
	new-instance v0, Ljava/util/concurrent/ConcurrentHashMap;
	invoke-direct {v0}, Ljava/util/concurrent/ConcurrentHashMap;-><init>()V
	iput-object v0, p0, Lcom/google/android/gms/common/stats/ConnectionTracker;->zza:Ljava/util/concurrent/ConcurrentHashMap;
	return-void
.end method

.method public static getInstance()Lcom/google/android/gms/common/stats/ConnectionTracker;
	.locals 2

	sget-object v0, Lcom/google/android/gms/common/stats/ConnectionTracker;->zzc:Lcom/google/android/gms/common/stats/ConnectionTracker;
	if-nez v0, :cond_1
	sget-object v0, Lcom/google/android/gms/common/stats/ConnectionTracker;->zzb:Ljava/lang/Object;
	monitor-enter v0
	sget-object v1, Lcom/google/android/gms/common/stats/ConnectionTracker;->zzc:Lcom/google/android/gms/common/stats/ConnectionTracker;
	if-nez v1, :cond_0
	new-instance v1, Lcom/google/android/gms/common/stats/ConnectionTracker;
	invoke-direct {v1}, Lcom/google/android/gms/common/stats/ConnectionTracker;-><init>()V
	sput-object v1, Lcom/google/android/gms/common/stats/ConnectionTracker;->zzc:Lcom/google/android/gms/common/stats/ConnectionTracker;
	:cond_0
	monitor-exit v0
	goto :goto_0
	:catchall_0
	move-exception v1
	monitor-exit v0
	:throw0
	throw v1
	:goto_0
	:cond_1
	sget-object v0, Lcom/google/android/gms/common/stats/ConnectionTracker;->zzc:Lcom/google/android/gms/common/stats/ConnectionTracker;
	invoke-static {v0}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
	return-object v0
.end method

.method private static zzb(Landroid/content/Context;Landroid/content/ServiceConnection;)V
	.locals 0

	:try_start_0
	invoke-virtual {p0, p1}, Landroid/content/Context;->unbindService(Landroid/content/ServiceConnection;)V
	:try_end_0
	.catch Ljava/lang/IllegalArgumentException; {:try_start_0 .. :try_end_0} :catch_0
	.catch Ljava/lang/IllegalStateException; {:try_start_0 .. :try_end_0} :catch_0
	.catch Ljava/util/NoSuchElementException; {:try_start_0 .. :try_end_0} :catch_0
	:catch_0
	return-void
.end method

.method private final zzc(Landroid/content/Context;Ljava/lang/String;Landroid/content/Intent;Landroid/content/ServiceConnection;IZLjava/util/concurrent/Executor;)Z
	.locals 3
	.param p7    # Ljava/util/concurrent/Executor;
	.annotation runtime Ljavax/annotation/Nullable;
	.end annotation
	.end param

	invoke-virtual {p3}, Landroid/content/Intent;->getComponent()Landroid/content/ComponentName;
	move-result-object p6
	const-string v0, "ConnectionTracker"
	const/4 v1, 0x0
	:cond_1
	invoke-static {p4}, Lcom/google/android/gms/common/stats/ConnectionTracker;->zzd(Landroid/content/ServiceConnection;)Z
	move-result p6
	iget-object p6, p0, Lcom/google/android/gms/common/stats/ConnectionTracker;->zza:Ljava/util/concurrent/ConcurrentHashMap;
	invoke-virtual {p6, p4, p4}, Ljava/util/concurrent/ConcurrentHashMap;->putIfAbsent(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
	move-result-object p6
	check-cast p6, Landroid/content/ServiceConnection;
	invoke-static {p1, p3, p4, p5, p7}, Lcom/google/android/gms/common/stats/ConnectionTracker;->zze(Landroid/content/Context;Landroid/content/Intent;Landroid/content/ServiceConnection;ILjava/util/concurrent/Executor;)Z
	move-result p1
	return p1
.end method

.method private static zzd(Landroid/content/ServiceConnection;)Z
	.locals 0

	instance-of p0, p0, Lcom/google/android/gms/common/internal/zzs;
	const/4 p0, 0x1
	return p0
.end method

.method private static final zze(Landroid/content/Context;Landroid/content/Intent;Landroid/content/ServiceConnection;ILjava/util/concurrent/Executor;)Z
	.locals 1
	.param p4    # Ljava/util/concurrent/Executor;
	.annotation runtime Ljavax/annotation/Nullable;
	.end annotation
	.end param

	invoke-static {}, Lcom/google/android/gms/common/util/PlatformVersion;->isAtLeastQ()Z
	move-result v0
	invoke-virtual {p0, p1, p2, p3}, Landroid/content/Context;->bindService(Landroid/content/Intent;Landroid/content/ServiceConnection;I)Z
	move-result p0
	return p0
.end method

.method public bindService(Landroid/content/Context;Landroid/content/Intent;Landroid/content/ServiceConnection;I)Z
	.locals 9

	invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
	move-result-object v0
	invoke-virtual {v0}, Ljava/lang/Class;->getName()Ljava/lang/String;
	move-result-object v3
	const/4 v7, 0x1
	const/4 v8, 0x0
	move-object v1, p0
	move-object v2, p1
	move-object v4, p2
	move-object v5, p3
	move v6, p4
	invoke-direct/range {v1 .. v8}, Lcom/google/android/gms/common/stats/ConnectionTracker;->zzc(Landroid/content/Context;Ljava/lang/String;Landroid/content/Intent;Landroid/content/ServiceConnection;IZLjava/util/concurrent/Executor;)Z
	move-result p1
	return p1
.end method

.method public unbindService(Landroid/content/Context;Landroid/content/ServiceConnection;)V
	.locals 1

	invoke-static {p2}, Lcom/google/android/gms/common/stats/ConnectionTracker;->zzd(Landroid/content/ServiceConnection;)Z
	move-result v0
	iget-object v0, p0, Lcom/google/android/gms/common/stats/ConnectionTracker;->zza:Ljava/util/concurrent/ConcurrentHashMap;
	invoke-virtual {v0, p2}, Ljava/util/concurrent/ConcurrentHashMap;->containsKey(Ljava/lang/Object;)Z
	move-result v0
	iget-object v0, p0, Lcom/google/android/gms/common/stats/ConnectionTracker;->zza:Ljava/util/concurrent/ConcurrentHashMap;
	invoke-virtual {v0, p2}, Ljava/util/concurrent/ConcurrentHashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
	move-result-object v0
	check-cast v0, Landroid/content/ServiceConnection;
	invoke-static {p1, v0}, Lcom/google/android/gms/common/stats/ConnectionTracker;->zzb(Landroid/content/Context;Landroid/content/ServiceConnection;)V
	iget-object p1, p0, Lcom/google/android/gms/common/stats/ConnectionTracker;->zza:Ljava/util/concurrent/ConcurrentHashMap;
	invoke-virtual {p1, p2}, Ljava/util/concurrent/ConcurrentHashMap;->remove(Ljava/lang/Object;)Ljava/lang/Object;
	return-void
.end method

.method public unbindServiceSafe(Landroid/content/Context;Landroid/content/ServiceConnection;)V
	.locals 0

	return-void
.end method

.method public final zza(Landroid/content/Context;Ljava/lang/String;Landroid/content/Intent;Landroid/content/ServiceConnection;ILjava/util/concurrent/Executor;)Z
	.locals 8
	.param p6    # Ljava/util/concurrent/Executor;
	.annotation runtime Ljavax/annotation/Nullable;
	.end annotation
	.end param

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