granularity level: instruction

		.class public final Lcom/google/android/gms/common/api/internal/zzb;
.super Landroid/app/Fragment;
.source "com.google.android.gms:play-services-basement@@18.1.0"
.implements Lcom/google/android/gms/common/api/internal/LifecycleFragment;


.field private static final zza:Ljava/util/WeakHashMap;
.field private final zzb:Ljava/util/Map;
.field private zzc:I
.field private zzd:Landroid/os/Bundle;


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

	new-instance v0, Ljava/util/WeakHashMap;
	invoke-direct {v0}, Ljava/util/WeakHashMap;-><init>()V
	sput-object v0, Lcom/google/android/gms/common/api/internal/zzb;->zza:Ljava/util/WeakHashMap;
	return-void
.end method

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

	invoke-direct {p0}, Landroid/app/Fragment;-><init>()V
	new-instance v0, Landroidx/collection/ArrayMap;
	invoke-direct {v0}, Landroidx/collection/ArrayMap;-><init>()V
	invoke-static {v0}, Ljava/util/Collections;->synchronizedMap(Ljava/util/Map;)Ljava/util/Map;
	move-result-object v0
	iput-object v0, p0, Lcom/google/android/gms/common/api/internal/zzb;->zzb:Ljava/util/Map;
	const/4 v0, 0x0
	iput v0, p0, Lcom/google/android/gms/common/api/internal/zzb;->zzc:I
	return-void
.end method

.method static bridge synthetic zza(Lcom/google/android/gms/common/api/internal/zzb;)I
	.locals 0

	iget p0, p0, Lcom/google/android/gms/common/api/internal/zzb;->zzc:I
	return p0
.end method

.method static bridge synthetic zzb(Lcom/google/android/gms/common/api/internal/zzb;)Landroid/os/Bundle;
	.locals 0

	iget-object p0, p0, Lcom/google/android/gms/common/api/internal/zzb;->zzd:Landroid/os/Bundle;
	return-object p0
.end method

.method public static zzc(Landroid/app/Activity;)Lcom/google/android/gms/common/api/internal/zzb;
	.locals 4

	const-string v0, "LifecycleFragmentImpl"
	sget-object v1, Lcom/google/android/gms/common/api/internal/zzb;->zza:Ljava/util/WeakHashMap;
	invoke-virtual {v1, p0}, Ljava/util/WeakHashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
	move-result-object v2
	check-cast v2, Ljava/lang/ref/WeakReference;
	if-eqz v2, :cond_1
	invoke-virtual {v2}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
	move-result-object v2
	check-cast v2, Lcom/google/android/gms/common/api/internal/zzb;
	if-nez v2, :cond_0
	goto :goto_0
	:cond_0
	return-object v2
	:goto_0
	:try_start_0
	:cond_1
	invoke-virtual {p0}, Landroid/app/Activity;->getFragmentManager()Landroid/app/FragmentManager;
	move-result-object v2
	invoke-virtual {v2, v0}, Landroid/app/FragmentManager;->findFragmentByTag(Ljava/lang/String;)Landroid/app/Fragment;
	move-result-object v2
	check-cast v2, Lcom/google/android/gms/common/api/internal/zzb;
	:try_end_0
	.catch Ljava/lang/ClassCastException; {:try_start_0 .. :try_end_0} :catch_0
	if-eqz v2, :cond_2
	invoke-virtual {v2}, Lcom/google/android/gms/common/api/internal/zzb;->isRemoving()Z
	move-result v3
	if-eqz v3, :cond_3
	:cond_2
	new-instance v2, Lcom/google/android/gms/common/api/internal/zzb;
	invoke-direct {v2}, Lcom/google/android/gms/common/api/internal/zzb;-><init>()V
	invoke-virtual {p0}, Landroid/app/Activity;->getFragmentManager()Landroid/app/FragmentManager;
	move-result-object v3
	invoke-virtual {v3}, Landroid/app/FragmentManager;->beginTransaction()Landroid/app/FragmentTransaction;
	move-result-object v3
	invoke-virtual {v3, v2, v0}, Landroid/app/FragmentTransaction;->add(Landroid/app/Fragment;Ljava/lang/String;)Landroid/app/FragmentTransaction;
	move-result-object v0
	invoke-virtual {v0}, Landroid/app/FragmentTransaction;->commitAllowingStateLoss()I
	:cond_3
	new-instance v0, Ljava/lang/ref/WeakReference;
	invoke-direct {v0, v2}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
	invoke-virtual {v1, p0, v0}, Ljava/util/WeakHashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
	return-object v2
	:catch_0
	move-exception p0
	new-instance v0, Ljava/lang/IllegalStateException;
	const-string v1, "Fragment with tag LifecycleFragmentImpl is not a LifecycleFragmentImpl"
	invoke-direct {v0, v1, p0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
	throw v0
.end method

.method public final addCallback(Ljava/lang/String;Lcom/google/android/gms/common/api/internal/LifecycleCallback;)V
	.locals 2

	iget-object v0, p0, Lcom/google/android/gms/common/api/internal/zzb;->zzb:Ljava/util/Map;
	invoke-interface {v0, p1}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
	move-result v0
	if-nez v0, :cond_1
	iget-object v0, p0, Lcom/google/android/gms/common/api/internal/zzb;->zzb:Ljava/util/Map;
	invoke-interface {v0, p1, p2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
	iget v0, p0, Lcom/google/android/gms/common/api/internal/zzb;->zzc:I
	if-lez v0, :cond_0
	new-instance v0, Lcom/google/android/gms/internal/common/zzi;
	invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
	move-result-object v1
	invoke-direct {v0, v1}, Lcom/google/android/gms/internal/common/zzi;-><init>(Landroid/os/Looper;)V
	new-instance v1, Lcom/google/android/gms/common/api/internal/zza;
	invoke-direct {v1, p0, p2, p1}, Lcom/google/android/gms/common/api/internal/zza;-><init>(Lcom/google/android/gms/common/api/internal/zzb;Lcom/google/android/gms/common/api/internal/LifecycleCallback;Ljava/lang/String;)V
	invoke-virtual {v0, v1}, Lcom/google/android/gms/internal/common/zzi;->post(Ljava/lang/Runnable;)Z
	:cond_0
	return-void
	:cond_1
	new-instance p2, Ljava/lang/IllegalArgumentException;
	new-instance v0, Ljava/lang/StringBuilder;
	invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
	const-string v1, "LifecycleCallback with tag "
	invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	const-string p1, " already added to this fragment."
	invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
	move-result-object p1
	invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
	throw p2
.end method

.method public final dump(Ljava/lang/String;Ljava/io/FileDescriptor;Ljava/io/PrintWriter;[Ljava/lang/String;)V
	.locals 2

	invoke-super {p0, p1, p2, p3, p4}, Landroid/app/Fragment;->dump(Ljava/lang/String;Ljava/io/FileDescriptor;Ljava/io/PrintWriter;[Ljava/lang/String;)V
	iget-object v0, p0, Lcom/google/android/gms/common/api/internal/zzb;->zzb:Ljava/util/Map;
	invoke-interface {v0}, Ljava/util/Map;->values()Ljava/util/Collection;
	move-result-object v0
	invoke-interface {v0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
	move-result-object v0
	:goto_0
	invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
	move-result v1
	if-eqz v1, :cond_0
	invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
	move-result-object v1
	check-cast v1, Lcom/google/android/gms/common/api/internal/LifecycleCallback;
	invoke-virtual {v1, p1, p2, p3, p4}, Lcom/google/android/gms/common/api/internal/LifecycleCallback;->dump(Ljava/lang/String;Ljava/io/FileDescriptor;Ljava/io/PrintWriter;[Ljava/lang/String;)V
	goto :goto_0
	:cond_0
	return-void
.end method

.method public final getCallbackOrNull(Ljava/lang/String;Ljava/lang/Class;)Lcom/google/android/gms/common/api/internal/LifecycleCallback;
	.locals 1
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"<T:",
	"Lcom/google/android/gms/common/api/internal/LifecycleCallback;",
	">(",
	"Ljava/lang/String;",
	"Ljava/lang/Class<",
	"TT;>;)TT;"
	}
	.end annotation

	iget-object v0, p0, Lcom/google/android/gms/common/api/internal/zzb;->zzb:Ljava/util/Map;
	invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
	move-result-object p1
	invoke-virtual {p2, p1}, Ljava/lang/Class;->cast(Ljava/lang/Object;)Ljava/lang/Object;
	move-result-object p1
	check-cast p1, Lcom/google/android/gms/common/api/internal/LifecycleCallback;
	return-object p1
.end method

.method public final getLifecycleActivity()Landroid/app/Activity;
	.locals 1

	invoke-virtual {p0}, Lcom/google/android/gms/common/api/internal/zzb;->getActivity()Landroid/app/Activity;
	move-result-object v0
	return-object v0
.end method

.method public final isCreated()Z
	.locals 1

	iget v0, p0, Lcom/google/android/gms/common/api/internal/zzb;->zzc:I
	if-lez v0, :cond_0
	const/4 v0, 0x1
	return v0
	:cond_0
	const/4 v0, 0x0
	return v0
.end method

.method public final isStarted()Z
	.locals 2

	iget v0, p0, Lcom/google/android/gms/common/api/internal/zzb;->zzc:I
	const/4 v1, 0x2
	if-lt v0, v1, :cond_0
	const/4 v0, 0x1
	return v0
	:cond_0
	const/4 v0, 0x0
	return v0
.end method

.method public final onActivityResult(IILandroid/content/Intent;)V
	.locals 2

	invoke-super {p0, p1, p2, p3}, Landroid/app/Fragment;->onActivityResult(IILandroid/content/Intent;)V
	iget-object v0, p0, Lcom/google/android/gms/common/api/internal/zzb;->zzb:Ljava/util/Map;
	invoke-interface {v0}, Ljava/util/Map;->values()Ljava/util/Collection;
	move-result-object v0
	invoke-interface {v0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
	move-result-object v0
	:goto_0
	invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
	move-result v1
	if-eqz v1, :cond_0
	invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
	move-result-object v1
	check-cast v1, Lcom/google/android/gms/common/api/internal/LifecycleCallback;
	invoke-virtual {v1, p1, p2, p3}, Lcom/google/android/gms/common/api/internal/LifecycleCallback;->onActivityResult(IILandroid/content/Intent;)V
	goto :goto_0
	:cond_0
	return-void
.end method

.method public final onCreate(Landroid/os/Bundle;)V
	.locals 3

	invoke-super {p0, p1}, Landroid/app/Fragment;->onCreate(Landroid/os/Bundle;)V
	const/4 v0, 0x1
	iput v0, p0, Lcom/google/android/gms/common/api/internal/zzb;->zzc:I
	iput-object p1, p0, Lcom/google/android/gms/common/api/internal/zzb;->zzd:Landroid/os/Bundle;
	iget-object v0, p0, Lcom/google/android/gms/common/api/internal/zzb;->zzb:Ljava/util/Map;
	invoke-interface {v0}, Ljava/util/Map;->entrySet()Ljava/util/Set;
	move-result-object v0
	invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
	move-result-object v0
	:goto_0
	invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
	move-result v1
	if-eqz v1, :cond_1
	invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
	move-result-object v1
	check-cast v1, Ljava/util/Map$Entry;
	invoke-interface {v1}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
	move-result-object v2
	check-cast v2, Lcom/google/android/gms/common/api/internal/LifecycleCallback;
	if-eqz p1, :cond_0
	invoke-interface {v1}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
	move-result-object v1
	check-cast v1, Ljava/lang/String;
	invoke-virtual {p1, v1}, Landroid/os/Bundle;->getBundle(Ljava/lang/String;)Landroid/os/Bundle;
	move-result-object v1
	goto :goto_1
	:cond_0
	const/4 v1, 0x0
	:goto_1
	invoke-virtual {v2, v1}, Lcom/google/android/gms/common/api/internal/LifecycleCallback;->onCreate(Landroid/os/Bundle;)V
	goto :goto_0
	:cond_1
	return-void
.end method

.method public final onDestroy()V
	.locals 2

	invoke-super {p0}, Landroid/app/Fragment;->onDestroy()V
	const/4 v0, 0x5
	iput v0, p0, Lcom/google/android/gms/common/api/internal/zzb;->zzc:I
	iget-object v0, p0, Lcom/google/android/gms/common/api/internal/zzb;->zzb:Ljava/util/Map;
	invoke-interface {v0}, Ljava/util/Map;->values()Ljava/util/Collection;
	move-result-object v0
	invoke-interface {v0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
	move-result-object v0
	:goto_0
	invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
	move-result v1
	if-eqz v1, :cond_0
	invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
	move-result-object v1
	check-cast v1, Lcom/google/android/gms/common/api/internal/LifecycleCallback;
	invoke-virtual {v1}, Lcom/google/android/gms/common/api/internal/LifecycleCallback;->onDestroy()V
	goto :goto_0
	:cond_0
	return-void
.end method

.method public final onResume()V
	.locals 2

	invoke-super {p0}, Landroid/app/Fragment;->onResume()V
	const/4 v0, 0x3
	iput v0, p0, Lcom/google/android/gms/common/api/internal/zzb;->zzc:I
	iget-object v0, p0, Lcom/google/android/gms/common/api/internal/zzb;->zzb:Ljava/util/Map;
	invoke-interface {v0}, Ljava/util/Map;->values()Ljava/util/Collection;
	move-result-object v0
	invoke-interface {v0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
	move-result-object v0
	:goto_0
	invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
	move-result v1
	if-eqz v1, :cond_0
	invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
	move-result-object v1
	check-cast v1, Lcom/google/android/gms/common/api/internal/LifecycleCallback;
	invoke-virtual {v1}, Lcom/google/android/gms/common/api/internal/LifecycleCallback;->onResume()V
	goto :goto_0
	:cond_0
	return-void
.end method

.method public final onSaveInstanceState(Landroid/os/Bundle;)V
	.locals 4

	invoke-super {p0, p1}, Landroid/app/Fragment;->onSaveInstanceState(Landroid/os/Bundle;)V
	if-nez p1, :cond_0
	return-void
	:cond_0
	iget-object v0, p0, Lcom/google/android/gms/common/api/internal/zzb;->zzb:Ljava/util/Map;
	invoke-interface {v0}, Ljava/util/Map;->entrySet()Ljava/util/Set;
	move-result-object v0
	invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
	move-result-object v0
	:goto_0
	invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
	move-result v1
	if-eqz v1, :cond_1
	invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
	move-result-object v1
	check-cast v1, Ljava/util/Map$Entry;
	new-instance v2, Landroid/os/Bundle;
	invoke-direct {v2}, Landroid/os/Bundle;-><init>()V
	invoke-interface {v1}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
	move-result-object v3
	check-cast v3, Lcom/google/android/gms/common/api/internal/LifecycleCallback;
	invoke-virtual {v3, v2}, Lcom/google/android/gms/common/api/internal/LifecycleCallback;->onSaveInstanceState(Landroid/os/Bundle;)V
	invoke-interface {v1}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
	move-result-object v1
	check-cast v1, Ljava/lang/String;
	invoke-virtual {p1, v1, v2}, Landroid/os/Bundle;->putBundle(Ljava/lang/String;Landroid/os/Bundle;)V
	goto :goto_0
	:cond_1
	return-void
.end method

.method public final onStart()V
	.locals 2

	invoke-super {p0}, Landroid/app/Fragment;->onStart()V
	const/4 v0, 0x2
	iput v0, p0, Lcom/google/android/gms/common/api/internal/zzb;->zzc:I
	iget-object v0, p0, Lcom/google/android/gms/common/api/internal/zzb;->zzb:Ljava/util/Map;
	invoke-interface {v0}, Ljava/util/Map;->values()Ljava/util/Collection;
	move-result-object v0
	invoke-interface {v0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
	move-result-object v0
	:goto_0
	invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
	move-result v1
	if-eqz v1, :cond_0
	invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
	move-result-object v1
	check-cast v1, Lcom/google/android/gms/common/api/internal/LifecycleCallback;
	invoke-virtual {v1}, Lcom/google/android/gms/common/api/internal/LifecycleCallback;->onStart()V
	goto :goto_0
	:cond_0
	return-void
.end method

.method public final onStop()V
	.locals 2

	invoke-super {p0}, Landroid/app/Fragment;->onStop()V
	const/4 v0, 0x4
	iput v0, p0, Lcom/google/android/gms/common/api/internal/zzb;->zzc:I
	iget-object v0, p0, Lcom/google/android/gms/common/api/internal/zzb;->zzb:Ljava/util/Map;
	invoke-interface {v0}, Ljava/util/Map;->values()Ljava/util/Collection;
	move-result-object v0
	invoke-interface {v0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
	move-result-object v0
	:goto_0
	invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
	move-result v1
	if-eqz v1, :cond_0
	invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
	move-result-object v1
	check-cast v1, Lcom/google/android/gms/common/api/internal/LifecycleCallback;
	invoke-virtual {v1}, Lcom/google/android/gms/common/api/internal/LifecycleCallback;->onStop()V
	goto :goto_0
	:cond_0
	return-void
.end method