granularity level: instruction

		.class final Lcom/google/android/gms/common/images/zac;
.super Ljava/lang/Object;
.source "com.google.android.gms:play-services-base@@18.0.1"
.implements Ljava/lang/Runnable;


.field final synthetic zaa:Lcom/google/android/gms/common/images/ImageManager;
.field private final zab:Landroid/net/Uri;
.field private final zac:Landroid/graphics/Bitmap;
.field private final zad:Ljava/util/concurrent/CountDownLatch;


.method public constructor <init>(Lcom/google/android/gms/common/images/ImageManager;Landroid/net/Uri;Landroid/graphics/Bitmap;ZLjava/util/concurrent/CountDownLatch;)V
	.locals 0

	iput-object p1, p0, Lcom/google/android/gms/common/images/zac;->zaa:Lcom/google/android/gms/common/images/ImageManager;
	invoke-direct {p0}, Ljava/lang/Object;-><init>()V
	iput-object p2, p0, Lcom/google/android/gms/common/images/zac;->zab:Landroid/net/Uri;
	iput-object p3, p0, Lcom/google/android/gms/common/images/zac;->zac:Landroid/graphics/Bitmap;
	iput-object p5, p0, Lcom/google/android/gms/common/images/zac;->zad:Ljava/util/concurrent/CountDownLatch;
	return-void
.end method

.method public final run()V
	.locals 10

	const-string v0, "OnBitmapLoadedRunnable must be executed in the main thread"
	invoke-static {v0}, Lcom/google/android/gms/common/internal/Asserts;->checkMainThread(Ljava/lang/String;)V
	iget-object v0, p0, Lcom/google/android/gms/common/images/zac;->zac:Landroid/graphics/Bitmap;
	iget-object v1, p0, Lcom/google/android/gms/common/images/zac;->zaa:Lcom/google/android/gms/common/images/ImageManager;
	invoke-static {v1}, Lcom/google/android/gms/common/images/ImageManager;->zah(Lcom/google/android/gms/common/images/ImageManager;)Ljava/util/Map;
	move-result-object v1
	iget-object v2, p0, Lcom/google/android/gms/common/images/zac;->zab:Landroid/net/Uri;
	invoke-interface {v1, v2}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;
	move-result-object v1
	check-cast v1, Lcom/google/android/gms/common/images/ImageManager$ImageReceiver;
	if-eqz v1, :cond_2
	invoke-static {v1}, Lcom/google/android/gms/common/images/ImageManager$ImageReceiver;->zaa(Lcom/google/android/gms/common/images/ImageManager$ImageReceiver;)Ljava/util/ArrayList;
	move-result-object v1
	invoke-virtual {v1}, Ljava/util/ArrayList;->size()I
	move-result v2
	const/4 v3, 0x0
	const/4 v4, 0x0
	:goto_0
	if-ge v4, v2, :cond_2
	invoke-virtual {v1, v4}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
	move-result-object v5
	check-cast v5, Lcom/google/android/gms/common/images/zag;
	iget-object v6, p0, Lcom/google/android/gms/common/images/zac;->zac:Landroid/graphics/Bitmap;
	if-eqz v6, :cond_0
	if-eqz v0, :cond_0
	iget-object v7, p0, Lcom/google/android/gms/common/images/zac;->zaa:Lcom/google/android/gms/common/images/ImageManager;
	invoke-static {v7}, Lcom/google/android/gms/common/images/ImageManager;->zaa(Lcom/google/android/gms/common/images/ImageManager;)Landroid/content/Context;
	move-result-object v7
	invoke-virtual {v5, v7, v6, v3}, Lcom/google/android/gms/common/images/zag;->zac(Landroid/content/Context;Landroid/graphics/Bitmap;Z)V
	goto :goto_1
	:cond_0
	iget-object v6, p0, Lcom/google/android/gms/common/images/zac;->zaa:Lcom/google/android/gms/common/images/ImageManager;
	invoke-static {v6}, Lcom/google/android/gms/common/images/ImageManager;->zaf(Lcom/google/android/gms/common/images/ImageManager;)Ljava/util/Map;
	move-result-object v6
	iget-object v7, p0, Lcom/google/android/gms/common/images/zac;->zab:Landroid/net/Uri;
	invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J
	move-result-wide v8
	invoke-static {v8, v9}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
	move-result-object v8
	invoke-interface {v6, v7, v8}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
	iget-object v6, p0, Lcom/google/android/gms/common/images/zac;->zaa:Lcom/google/android/gms/common/images/ImageManager;
	invoke-static {v6}, Lcom/google/android/gms/common/images/ImageManager;->zaa(Lcom/google/android/gms/common/images/ImageManager;)Landroid/content/Context;
	move-result-object v7
	invoke-static {v6}, Lcom/google/android/gms/common/images/ImageManager;->zac(Lcom/google/android/gms/common/images/ImageManager;)Lcom/google/android/gms/internal/base/zak;
	move-result-object v6
	invoke-virtual {v5, v7, v6, v3}, Lcom/google/android/gms/common/images/zag;->zab(Landroid/content/Context;Lcom/google/android/gms/internal/base/zak;Z)V
	:goto_1
	instance-of v6, v5, Lcom/google/android/gms/common/images/zaf;
	if-nez v6, :cond_1
	iget-object v6, p0, Lcom/google/android/gms/common/images/zac;->zaa:Lcom/google/android/gms/common/images/ImageManager;
	invoke-static {v6}, Lcom/google/android/gms/common/images/ImageManager;->zag(Lcom/google/android/gms/common/images/ImageManager;)Ljava/util/Map;
	move-result-object v6
	invoke-interface {v6, v5}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;
	:cond_1
	add-int/lit8 v4, v4, 0x1
	goto :goto_0
	:cond_2
	iget-object v0, p0, Lcom/google/android/gms/common/images/zac;->zad:Ljava/util/concurrent/CountDownLatch;
	invoke-virtual {v0}, Ljava/util/concurrent/CountDownLatch;->countDown()V
	invoke-static {}, Lcom/google/android/gms/common/images/ImageManager;->zad()Ljava/lang/Object;
	move-result-object v0
	monitor-enter v0
	:try_start_0
	invoke-static {}, Lcom/google/android/gms/common/images/ImageManager;->zae()Ljava/util/HashSet;
	move-result-object v1
	iget-object v2, p0, Lcom/google/android/gms/common/images/zac;->zab:Landroid/net/Uri;
	invoke-virtual {v1, v2}, Ljava/util/HashSet;->remove(Ljava/lang/Object;)Z
	monitor-exit v0
	return-void
	:catchall_0
	move-exception v1
	monitor-exit v0
	:try_end_0
	.catchall {:try_start_0 .. :try_end_0} :catchall_0
	throw v1
.end method