granularity level: instruction

		.class public Lcom/google/firebase/components/ComponentRuntime;
.super Lcom/google/firebase/components/AbstractComponentContainer;
.source "ComponentRuntime.java"
.implements Lcom/google/firebase/dynamicloading/ComponentLoader;

.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/firebase/components/ComponentRuntime$Builder;
}
.end annotation

.field private static final EMPTY_PROVIDER:Lcom/google/firebase/inject/Provider;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/firebase/inject/Provider<",
"Ljava/util/Set<",
"Ljava/lang/Object;",
">;>;"
}
.end annotation
.end field
.field private final componentRegistrarProcessor:Lcom/google/firebase/components/ComponentRegistrarProcessor;
.field private final components:Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Lcom/google/firebase/components/Component<",
"*>;",
"Lcom/google/firebase/inject/Provider<",
"*>;>;"
}
.end annotation
.end field
.field private final eagerComponentsInitializedWith:Ljava/util/concurrent/atomic/AtomicReference;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/concurrent/atomic/AtomicReference<",
"Ljava/lang/Boolean;",
">;"
}
.end annotation
.end field
.field private final eventBus:Lcom/google/firebase/components/EventBus;
.field private final lazyInstanceMap:Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Ljava/lang/Class<",
"*>;",
"Lcom/google/firebase/inject/Provider<",
"*>;>;"
}
.end annotation
.end field
.field private final lazySetMap:Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Ljava/lang/Class<",
"*>;",
"Lcom/google/firebase/components/LazySet<",
"*>;>;"
}
.end annotation
.end field
.field private final unprocessedRegistrarProviders:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lcom/google/firebase/inject/Provider<",
"Lcom/google/firebase/components/ComponentRegistrar;",
">;>;"
}
.end annotation
.end field


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

	new-instance v0, Lcom/google/firebase/components/ComponentRuntime$$ExternalSyntheticLambda4;
	invoke-direct {v0}, Lcom/google/firebase/components/ComponentRuntime$$ExternalSyntheticLambda4;-><init>()V
	sput-object v0, Lcom/google/firebase/components/ComponentRuntime;->EMPTY_PROVIDER:Lcom/google/firebase/inject/Provider;
	return-void
.end method

.method private constructor <init>(Ljava/util/concurrent/Executor;Ljava/lang/Iterable;Ljava/util/Collection;Lcom/google/firebase/components/ComponentRegistrarProcessor;)V
	.locals 5
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"(",
	"Ljava/util/concurrent/Executor;",
	"Ljava/lang/Iterable<",
	"Lcom/google/firebase/inject/Provider<",
	"Lcom/google/firebase/components/ComponentRegistrar;",
	">;>;",
	"Ljava/util/Collection<",
	"Lcom/google/firebase/components/Component<",
	"*>;>;",
	"Lcom/google/firebase/components/ComponentRegistrarProcessor;",
	")V"
	}
	.end annotation

	invoke-direct {p0}, Lcom/google/firebase/components/AbstractComponentContainer;-><init>()V
	new-instance v0, Ljava/util/HashMap;
	invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
	iput-object v0, p0, Lcom/google/firebase/components/ComponentRuntime;->components:Ljava/util/Map;
	new-instance v0, Ljava/util/HashMap;
	invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
	iput-object v0, p0, Lcom/google/firebase/components/ComponentRuntime;->lazyInstanceMap:Ljava/util/Map;
	new-instance v0, Ljava/util/HashMap;
	invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
	iput-object v0, p0, Lcom/google/firebase/components/ComponentRuntime;->lazySetMap:Ljava/util/Map;
	new-instance v0, Ljava/util/concurrent/atomic/AtomicReference;
	invoke-direct {v0}, Ljava/util/concurrent/atomic/AtomicReference;-><init>()V
	iput-object v0, p0, Lcom/google/firebase/components/ComponentRuntime;->eagerComponentsInitializedWith:Ljava/util/concurrent/atomic/AtomicReference;
	new-instance v0, Lcom/google/firebase/components/EventBus;
	invoke-direct {v0, p1}, Lcom/google/firebase/components/EventBus;-><init>(Ljava/util/concurrent/Executor;)V
	iput-object v0, p0, Lcom/google/firebase/components/ComponentRuntime;->eventBus:Lcom/google/firebase/components/EventBus;
	iput-object p4, p0, Lcom/google/firebase/components/ComponentRuntime;->componentRegistrarProcessor:Lcom/google/firebase/components/ComponentRegistrarProcessor;
	new-instance p1, Ljava/util/ArrayList;
	invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V
	const-class p4, Lcom/google/firebase/components/EventBus;
	const/4 v1, 0x2
	new-array v1, v1, [Ljava/lang/Class;
	const-class v2, Lcom/google/firebase/events/Subscriber;
	const/4 v3, 0x0
	aput-object v2, v1, v3
	const/4 v2, 0x1
	const-class v4, Lcom/google/firebase/events/Publisher;
	aput-object v4, v1, v2
	invoke-static {v0, p4, v1}, Lcom/google/firebase/components/Component;->of(Ljava/lang/Object;Ljava/lang/Class;[Ljava/lang/Class;)Lcom/google/firebase/components/Component;
	move-result-object p4
	invoke-interface {p1, p4}, Ljava/util/List;->add(Ljava/lang/Object;)Z
	const-class p4, Lcom/google/firebase/dynamicloading/ComponentLoader;
	new-array v0, v3, [Ljava/lang/Class;
	invoke-static {p0, p4, v0}, Lcom/google/firebase/components/Component;->of(Ljava/lang/Object;Ljava/lang/Class;[Ljava/lang/Class;)Lcom/google/firebase/components/Component;
	move-result-object p4
	invoke-interface {p1, p4}, Ljava/util/List;->add(Ljava/lang/Object;)Z
	invoke-interface {p3}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
	move-result-object p3
	:goto_0
	:cond_0
	invoke-interface {p3}, Ljava/util/Iterator;->hasNext()Z
	move-result p4
	if-eqz p4, :cond_1
	invoke-interface {p3}, Ljava/util/Iterator;->next()Ljava/lang/Object;
	move-result-object p4
	check-cast p4, Lcom/google/firebase/components/Component;
	if-eqz p4, :cond_0
	invoke-interface {p1, p4}, Ljava/util/List;->add(Ljava/lang/Object;)Z
	goto :goto_0
	:cond_1
	invoke-static {p2}, Lcom/google/firebase/components/ComponentRuntime;->iterableToList(Ljava/lang/Iterable;)Ljava/util/List;
	move-result-object p2
	iput-object p2, p0, Lcom/google/firebase/components/ComponentRuntime;->unprocessedRegistrarProviders:Ljava/util/List;
	invoke-direct {p0, p1}, Lcom/google/firebase/components/ComponentRuntime;->discoverComponents(Ljava/util/List;)V
	return-void
.end method

.method synthetic constructor <init>(Ljava/util/concurrent/Executor;Ljava/lang/Iterable;Ljava/util/Collection;Lcom/google/firebase/components/ComponentRegistrarProcessor;Lcom/google/firebase/components/ComponentRuntime$1;)V
	.locals 0

	invoke-direct {p0, p1, p2, p3, p4}, Lcom/google/firebase/components/ComponentRuntime;-><init>(Ljava/util/concurrent/Executor;Ljava/lang/Iterable;Ljava/util/Collection;Lcom/google/firebase/components/ComponentRegistrarProcessor;)V
	return-void
.end method

.method public varargs constructor <init>(Ljava/util/concurrent/Executor;Ljava/lang/Iterable;[Lcom/google/firebase/components/Component;)V
	.locals 1
	.annotation runtime Ljava/lang/Deprecated;
	.end annotation
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"(",
	"Ljava/util/concurrent/Executor;",
	"Ljava/lang/Iterable<",
	"Lcom/google/firebase/components/ComponentRegistrar;",
	">;[",
	"Lcom/google/firebase/components/Component<",
	"*>;)V"
	}
	.end annotation

	invoke-static {p2}, Lcom/google/firebase/components/ComponentRuntime;->toProviders(Ljava/lang/Iterable;)Ljava/lang/Iterable;
	move-result-object p2
	invoke-static {p3}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
	move-result-object p3
	sget-object v0, Lcom/google/firebase/components/ComponentRegistrarProcessor;->NOOP:Lcom/google/firebase/components/ComponentRegistrarProcessor;
	invoke-direct {p0, p1, p2, p3, v0}, Lcom/google/firebase/components/ComponentRuntime;-><init>(Ljava/util/concurrent/Executor;Ljava/lang/Iterable;Ljava/util/Collection;Lcom/google/firebase/components/ComponentRegistrarProcessor;)V
	return-void
.end method

.method public static builder(Ljava/util/concurrent/Executor;)Lcom/google/firebase/components/ComponentRuntime$Builder;
	.locals 1

	new-instance v0, Lcom/google/firebase/components/ComponentRuntime$Builder;
	invoke-direct {v0, p0}, Lcom/google/firebase/components/ComponentRuntime$Builder;-><init>(Ljava/util/concurrent/Executor;)V
	return-object v0
.end method

.method private discoverComponents(Ljava/util/List;)V
	.locals 5
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"(",
	"Ljava/util/List<",
	"Lcom/google/firebase/components/Component<",
	"*>;>;)V"
	}
	.end annotation

	new-instance v0, Ljava/util/ArrayList;
	invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
	monitor-enter p0
	:try_start_0
	iget-object v1, p0, Lcom/google/firebase/components/ComponentRuntime;->unprocessedRegistrarProviders:Ljava/util/List;
	invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
	move-result-object v1
	:goto_0
	:cond_0
	invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
	move-result v2
	if-eqz v2, :cond_1
	invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
	move-result-object v2
	check-cast v2, Lcom/google/firebase/inject/Provider;
	:try_end_0
	.catchall {:try_start_0 .. :try_end_0} :catchall_0
	:try_start_1
	invoke-interface {v2}, Lcom/google/firebase/inject/Provider;->get()Ljava/lang/Object;
	move-result-object v2
	check-cast v2, Lcom/google/firebase/components/ComponentRegistrar;
	if-eqz v2, :cond_0
	iget-object v3, p0, Lcom/google/firebase/components/ComponentRuntime;->componentRegistrarProcessor:Lcom/google/firebase/components/ComponentRegistrarProcessor;
	invoke-interface {v3, v2}, Lcom/google/firebase/components/ComponentRegistrarProcessor;->processRegistrar(Lcom/google/firebase/components/ComponentRegistrar;)Ljava/util/List;
	move-result-object v2
	invoke-interface {p1, v2}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z
	invoke-interface {v1}, Ljava/util/Iterator;->remove()V
	:try_end_1
	.catch Lcom/google/firebase/components/InvalidRegistrarException; {:try_start_1 .. :try_end_1} :catch_0
	.catchall {:try_start_1 .. :try_end_1} :catchall_0
	goto :goto_0
	:catch_0
	move-exception v2
	:try_start_2
	invoke-interface {v1}, Ljava/util/Iterator;->remove()V
	const-string v3, "ComponentDiscovery"
	const-string v4, "Invalid component registrar."
	invoke-static {v3, v4, v2}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
	goto :goto_0
	:cond_1
	iget-object v1, p0, Lcom/google/firebase/components/ComponentRuntime;->components:Ljava/util/Map;
	invoke-interface {v1}, Ljava/util/Map;->isEmpty()Z
	move-result v1
	if-eqz v1, :cond_2
	invoke-static {p1}, Lcom/google/firebase/components/CycleDetector;->detect(Ljava/util/List;)V
	goto :goto_1
	:cond_2
	new-instance v1, Ljava/util/ArrayList;
	iget-object v2, p0, Lcom/google/firebase/components/ComponentRuntime;->components:Ljava/util/Map;
	invoke-interface {v2}, Ljava/util/Map;->keySet()Ljava/util/Set;
	move-result-object v2
	invoke-direct {v1, v2}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
	invoke-virtual {v1, p1}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z
	invoke-static {v1}, Lcom/google/firebase/components/CycleDetector;->detect(Ljava/util/List;)V
	:goto_1
	invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
	move-result-object v1
	:goto_2
	invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
	move-result v2
	if-eqz v2, :cond_3
	invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
	move-result-object v2
	check-cast v2, Lcom/google/firebase/components/Component;
	new-instance v3, Lcom/google/firebase/components/Lazy;
	new-instance v4, Lcom/google/firebase/components/ComponentRuntime$$ExternalSyntheticLambda1;
	invoke-direct {v4, p0, v2}, Lcom/google/firebase/components/ComponentRuntime$$ExternalSyntheticLambda1;-><init>(Lcom/google/firebase/components/ComponentRuntime;Lcom/google/firebase/components/Component;)V
	invoke-direct {v3, v4}, Lcom/google/firebase/components/Lazy;-><init>(Lcom/google/firebase/inject/Provider;)V
	iget-object v4, p0, Lcom/google/firebase/components/ComponentRuntime;->components:Ljava/util/Map;
	invoke-interface {v4, v2, v3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
	goto :goto_2
	:cond_3
	invoke-direct {p0, p1}, Lcom/google/firebase/components/ComponentRuntime;->processInstanceComponents(Ljava/util/List;)Ljava/util/List;
	move-result-object p1
	invoke-interface {v0, p1}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z
	invoke-direct {p0}, Lcom/google/firebase/components/ComponentRuntime;->processSetComponents()Ljava/util/List;
	move-result-object p1
	invoke-interface {v0, p1}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z
	invoke-direct {p0}, Lcom/google/firebase/components/ComponentRuntime;->processDependencies()V
	monitor-exit p0
	:try_end_2
	.catchall {:try_start_2 .. :try_end_2} :catchall_0
	invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
	move-result-object p1
	:goto_3
	invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
	move-result v0
	if-eqz v0, :cond_4
	invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
	move-result-object v0
	check-cast v0, Ljava/lang/Runnable;
	invoke-interface {v0}, Ljava/lang/Runnable;->run()V
	goto :goto_3
	:cond_4
	invoke-direct {p0}, Lcom/google/firebase/components/ComponentRuntime;->maybeInitializeEagerComponents()V
	return-void
	:catchall_0
	move-exception p1
	:try_start_3
	monitor-exit p0
	:try_end_3
	.catchall {:try_start_3 .. :try_end_3} :catchall_0
	throw p1
.end method

.method private doInitializeEagerComponents(Ljava/util/Map;Z)V
	.locals 3
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"(",
	"Ljava/util/Map<",
	"Lcom/google/firebase/components/Component<",
	"*>;",
	"Lcom/google/firebase/inject/Provider<",
	"*>;>;Z)V"
	}
	.end annotation

	invoke-interface {p1}, Ljava/util/Map;->entrySet()Ljava/util/Set;
	move-result-object p1
	invoke-interface {p1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
	move-result-object p1
	:goto_0
	:cond_0
	invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
	move-result v0
	if-eqz v0, :cond_2
	invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
	move-result-object v0
	check-cast v0, Ljava/util/Map$Entry;
	invoke-interface {v0}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
	move-result-object v1
	check-cast v1, Lcom/google/firebase/components/Component;
	invoke-interface {v0}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
	move-result-object v0
	check-cast v0, Lcom/google/firebase/inject/Provider;
	invoke-virtual {v1}, Lcom/google/firebase/components/Component;->isAlwaysEager()Z
	move-result v2
	if-nez v2, :cond_1
	invoke-virtual {v1}, Lcom/google/firebase/components/Component;->isEagerInDefaultApp()Z
	move-result v1
	if-eqz v1, :cond_0
	if-eqz p2, :cond_0
	:cond_1
	invoke-interface {v0}, Lcom/google/firebase/inject/Provider;->get()Ljava/lang/Object;
	goto :goto_0
	:cond_2
	iget-object p1, p0, Lcom/google/firebase/components/ComponentRuntime;->eventBus:Lcom/google/firebase/components/EventBus;
	invoke-virtual {p1}, Lcom/google/firebase/components/EventBus;->enablePublishingAndFlushPending()V
	return-void
.end method

.method private static iterableToList(Ljava/lang/Iterable;)Ljava/util/List;
	.locals 2
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"<T:",
	"Ljava/lang/Object;",
	">(",
	"Ljava/lang/Iterable<",
	"TT;>;)",
	"Ljava/util/List<",
	"TT;>;"
	}
	.end annotation

	new-instance v0, Ljava/util/ArrayList;
	invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
	invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
	move-result-object p0
	:goto_0
	invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
	move-result v1
	if-eqz v1, :cond_0
	invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
	move-result-object v1
	invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
	goto :goto_0
	:cond_0
	return-object v0
.end method

.method static synthetic lambda$processInstanceComponents$2(Lcom/google/firebase/components/OptionalProvider;Lcom/google/firebase/inject/Provider;)V
	.locals 0

	invoke-virtual {p0, p1}, Lcom/google/firebase/components/OptionalProvider;->set(Lcom/google/firebase/inject/Provider;)V
	return-void
.end method

.method static synthetic lambda$processSetComponents$3(Lcom/google/firebase/components/LazySet;Lcom/google/firebase/inject/Provider;)V
	.locals 0

	invoke-virtual {p0, p1}, Lcom/google/firebase/components/LazySet;->add(Lcom/google/firebase/inject/Provider;)V
	return-void
.end method

.method static synthetic lambda$toProviders$1(Lcom/google/firebase/components/ComponentRegistrar;)Lcom/google/firebase/components/ComponentRegistrar;
	.locals 0

	return-object p0
.end method

.method private maybeInitializeEagerComponents()V
	.locals 2

	iget-object v0, p0, Lcom/google/firebase/components/ComponentRuntime;->eagerComponentsInitializedWith:Ljava/util/concurrent/atomic/AtomicReference;
	invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
	move-result-object v0
	check-cast v0, Ljava/lang/Boolean;
	if-eqz v0, :cond_0
	iget-object v1, p0, Lcom/google/firebase/components/ComponentRuntime;->components:Ljava/util/Map;
	invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z
	move-result v0
	invoke-direct {p0, v1, v0}, Lcom/google/firebase/components/ComponentRuntime;->doInitializeEagerComponents(Ljava/util/Map;Z)V
	:cond_0
	return-void
.end method

.method private processDependencies()V
	.locals 6

	iget-object v0, p0, Lcom/google/firebase/components/ComponentRuntime;->components:Ljava/util/Map;
	invoke-interface {v0}, Ljava/util/Map;->keySet()Ljava/util/Set;
	move-result-object v0
	invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
	move-result-object v0
	:cond_0
	invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
	move-result v1
	if-eqz v1, :cond_4
	invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
	move-result-object v1
	check-cast v1, Lcom/google/firebase/components/Component;
	invoke-virtual {v1}, Lcom/google/firebase/components/Component;->getDependencies()Ljava/util/Set;
	move-result-object v2
	invoke-interface {v2}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
	move-result-object v2
	:goto_0
	:cond_1
	invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
	move-result v3
	if-eqz v3, :cond_0
	invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
	move-result-object v3
	check-cast v3, Lcom/google/firebase/components/Dependency;
	invoke-virtual {v3}, Lcom/google/firebase/components/Dependency;->isSet()Z
	move-result v4
	if-eqz v4, :cond_2
	iget-object v4, p0, Lcom/google/firebase/components/ComponentRuntime;->lazySetMap:Ljava/util/Map;
	invoke-virtual {v3}, Lcom/google/firebase/components/Dependency;->getInterface()Ljava/lang/Class;
	move-result-object v5
	invoke-interface {v4, v5}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
	move-result v4
	if-nez v4, :cond_2
	iget-object v4, p0, Lcom/google/firebase/components/ComponentRuntime;->lazySetMap:Ljava/util/Map;
	invoke-virtual {v3}, Lcom/google/firebase/components/Dependency;->getInterface()Ljava/lang/Class;
	move-result-object v3
	invoke-static {}, Ljava/util/Collections;->emptySet()Ljava/util/Set;
	move-result-object v5
	invoke-static {v5}, Lcom/google/firebase/components/LazySet;->fromCollection(Ljava/util/Collection;)Lcom/google/firebase/components/LazySet;
	move-result-object v5
	invoke-interface {v4, v3, v5}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
	goto :goto_0
	:cond_2
	iget-object v4, p0, Lcom/google/firebase/components/ComponentRuntime;->lazyInstanceMap:Ljava/util/Map;
	invoke-virtual {v3}, Lcom/google/firebase/components/Dependency;->getInterface()Ljava/lang/Class;
	move-result-object v5
	invoke-interface {v4, v5}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
	move-result v4
	if-nez v4, :cond_1
	invoke-virtual {v3}, Lcom/google/firebase/components/Dependency;->isRequired()Z
	move-result v4
	if-nez v4, :cond_3
	invoke-virtual {v3}, Lcom/google/firebase/components/Dependency;->isSet()Z
	move-result v4
	if-nez v4, :cond_1
	iget-object v4, p0, Lcom/google/firebase/components/ComponentRuntime;->lazyInstanceMap:Ljava/util/Map;
	invoke-virtual {v3}, Lcom/google/firebase/components/Dependency;->getInterface()Ljava/lang/Class;
	move-result-object v3
	invoke-static {}, Lcom/google/firebase/components/OptionalProvider;->empty()Lcom/google/firebase/components/OptionalProvider;
	move-result-object v5
	invoke-interface {v4, v3, v5}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
	goto :goto_0
	:cond_3
	new-instance v0, Lcom/google/firebase/components/MissingDependencyException;
	const/4 v2, 0x2
	new-array v2, v2, [Ljava/lang/Object;
	const/4 v4, 0x0
	aput-object v1, v2, v4
	const/4 v1, 0x1
	invoke-virtual {v3}, Lcom/google/firebase/components/Dependency;->getInterface()Ljava/lang/Class;
	move-result-object v3
	aput-object v3, v2, v1
	const-string v1, "Unsatisfied dependency for component %s: %s"
	invoke-static {v1, v2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
	move-result-object v1
	invoke-direct {v0, v1}, Lcom/google/firebase/components/MissingDependencyException;-><init>(Ljava/lang/String;)V
	throw v0
	:cond_4
	return-void
.end method

.method private processInstanceComponents(Ljava/util/List;)Ljava/util/List;
	.locals 5
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"(",
	"Ljava/util/List<",
	"Lcom/google/firebase/components/Component<",
	"*>;>;)",
	"Ljava/util/List<",
	"Ljava/lang/Runnable;",
	">;"
	}
	.end annotation

	new-instance v0, Ljava/util/ArrayList;
	invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
	invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
	move-result-object p1
	:goto_0
	:cond_0
	invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
	move-result v1
	if-eqz v1, :cond_3
	invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
	move-result-object v1
	check-cast v1, Lcom/google/firebase/components/Component;
	invoke-virtual {v1}, Lcom/google/firebase/components/Component;->isValue()Z
	move-result v2
	if-nez v2, :cond_1
	goto :goto_0
	:cond_1
	iget-object v2, p0, Lcom/google/firebase/components/ComponentRuntime;->components:Ljava/util/Map;
	invoke-interface {v2, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
	move-result-object v2
	check-cast v2, Lcom/google/firebase/inject/Provider;
	invoke-virtual {v1}, Lcom/google/firebase/components/Component;->getProvidedInterfaces()Ljava/util/Set;
	move-result-object v1
	invoke-interface {v1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
	move-result-object v1
	:goto_1
	invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
	move-result v3
	if-eqz v3, :cond_0
	invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
	move-result-object v3
	check-cast v3, Ljava/lang/Class;
	iget-object v4, p0, Lcom/google/firebase/components/ComponentRuntime;->lazyInstanceMap:Ljava/util/Map;
	invoke-interface {v4, v3}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
	move-result v4
	if-nez v4, :cond_2
	iget-object v4, p0, Lcom/google/firebase/components/ComponentRuntime;->lazyInstanceMap:Ljava/util/Map;
	invoke-interface {v4, v3, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
	goto :goto_1
	:cond_2
	iget-object v4, p0, Lcom/google/firebase/components/ComponentRuntime;->lazyInstanceMap:Ljava/util/Map;
	invoke-interface {v4, v3}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
	move-result-object v3
	check-cast v3, Lcom/google/firebase/inject/Provider;
	check-cast v3, Lcom/google/firebase/components/OptionalProvider;
	new-instance v4, Lcom/google/firebase/components/ComponentRuntime$$ExternalSyntheticLambda0;
	invoke-direct {v4, v3, v2}, Lcom/google/firebase/components/ComponentRuntime$$ExternalSyntheticLambda0;-><init>(Lcom/google/firebase/components/OptionalProvider;Lcom/google/firebase/inject/Provider;)V
	invoke-virtual {v0, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
	goto :goto_1
	:cond_3
	return-object v0
.end method

.method private processSetComponents()Ljava/util/List;
	.locals 7
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"()",
	"Ljava/util/List<",
	"Ljava/lang/Runnable;",
	">;"
	}
	.end annotation

	new-instance v0, Ljava/util/ArrayList;
	invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
	new-instance v1, Ljava/util/HashMap;
	invoke-direct {v1}, Ljava/util/HashMap;-><init>()V
	iget-object v2, p0, Lcom/google/firebase/components/ComponentRuntime;->components:Ljava/util/Map;
	invoke-interface {v2}, Ljava/util/Map;->entrySet()Ljava/util/Set;
	move-result-object v2
	invoke-interface {v2}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
	move-result-object v2
	:goto_0
	:cond_0
	invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
	move-result v3
	if-eqz v3, :cond_3
	invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
	move-result-object v3
	check-cast v3, Ljava/util/Map$Entry;
	invoke-interface {v3}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
	move-result-object v4
	check-cast v4, Lcom/google/firebase/components/Component;
	invoke-virtual {v4}, Lcom/google/firebase/components/Component;->isValue()Z
	move-result v5
	if-eqz v5, :cond_1
	goto :goto_0
	:cond_1
	invoke-interface {v3}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
	move-result-object v3
	check-cast v3, Lcom/google/firebase/inject/Provider;
	invoke-virtual {v4}, Lcom/google/firebase/components/Component;->getProvidedInterfaces()Ljava/util/Set;
	move-result-object v4
	invoke-interface {v4}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
	move-result-object v4
	:goto_1
	invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z
	move-result v5
	if-eqz v5, :cond_0
	invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;
	move-result-object v5
	check-cast v5, Ljava/lang/Class;
	invoke-interface {v1, v5}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
	move-result v6
	if-nez v6, :cond_2
	new-instance v6, Ljava/util/HashSet;
	invoke-direct {v6}, Ljava/util/HashSet;-><init>()V
	invoke-interface {v1, v5, v6}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
	:cond_2
	invoke-interface {v1, v5}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
	move-result-object v5
	check-cast v5, Ljava/util/Set;
	invoke-interface {v5, v3}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
	goto :goto_1
	:cond_3
	invoke-interface {v1}, Ljava/util/Map;->entrySet()Ljava/util/Set;
	move-result-object v1
	invoke-interface {v1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
	move-result-object v1
	:goto_2
	:cond_4
	invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
	move-result v2
	if-eqz v2, :cond_6
	invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
	move-result-object v2
	check-cast v2, Ljava/util/Map$Entry;
	iget-object v3, p0, Lcom/google/firebase/components/ComponentRuntime;->lazySetMap:Ljava/util/Map;
	invoke-interface {v2}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
	move-result-object v4
	invoke-interface {v3, v4}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
	move-result v3
	if-nez v3, :cond_5
	iget-object v3, p0, Lcom/google/firebase/components/ComponentRuntime;->lazySetMap:Ljava/util/Map;
	invoke-interface {v2}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
	move-result-object v4
	check-cast v4, Ljava/lang/Class;
	invoke-interface {v2}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
	move-result-object v2
	check-cast v2, Ljava/util/Collection;
	invoke-static {v2}, Lcom/google/firebase/components/LazySet;->fromCollection(Ljava/util/Collection;)Lcom/google/firebase/components/LazySet;
	move-result-object v2
	invoke-interface {v3, v4, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
	goto :goto_2
	:cond_5
	iget-object v3, p0, Lcom/google/firebase/components/ComponentRuntime;->lazySetMap:Ljava/util/Map;
	invoke-interface {v2}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
	move-result-object v4
	invoke-interface {v3, v4}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
	move-result-object v3
	check-cast v3, Lcom/google/firebase/components/LazySet;
	invoke-interface {v2}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
	move-result-object v2
	check-cast v2, Ljava/util/Set;
	invoke-interface {v2}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
	move-result-object v2
	:goto_3
	invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
	move-result v4
	if-eqz v4, :cond_4
	invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
	move-result-object v4
	check-cast v4, Lcom/google/firebase/inject/Provider;
	new-instance v5, Lcom/google/firebase/components/ComponentRuntime$$ExternalSyntheticLambda2;
	invoke-direct {v5, v3, v4}, Lcom/google/firebase/components/ComponentRuntime$$ExternalSyntheticLambda2;-><init>(Lcom/google/firebase/components/LazySet;Lcom/google/firebase/inject/Provider;)V
	invoke-virtual {v0, v5}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
	goto :goto_3
	:cond_6
	return-object v0
.end method

.method private static toProviders(Ljava/lang/Iterable;)Ljava/lang/Iterable;
	.locals 3
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"(",
	"Ljava/lang/Iterable<",
	"Lcom/google/firebase/components/ComponentRegistrar;",
	">;)",
	"Ljava/lang/Iterable<",
	"Lcom/google/firebase/inject/Provider<",
	"Lcom/google/firebase/components/ComponentRegistrar;",
	">;>;"
	}
	.end annotation

	new-instance v0, Ljava/util/ArrayList;
	invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
	invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
	move-result-object p0
	:goto_0
	invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
	move-result v1
	if-eqz v1, :cond_0
	invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
	move-result-object v1
	check-cast v1, Lcom/google/firebase/components/ComponentRegistrar;
	new-instance v2, Lcom/google/firebase/components/ComponentRuntime$$ExternalSyntheticLambda3;
	invoke-direct {v2, v1}, Lcom/google/firebase/components/ComponentRuntime$$ExternalSyntheticLambda3;-><init>(Lcom/google/firebase/components/ComponentRegistrar;)V
	invoke-interface {v0, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z
	goto :goto_0
	:cond_0
	return-object v0
.end method

.method public discoverComponents()V
	.locals 1

	monitor-enter p0
	:try_start_0
	iget-object v0, p0, Lcom/google/firebase/components/ComponentRuntime;->unprocessedRegistrarProviders:Ljava/util/List;
	invoke-interface {v0}, Ljava/util/List;->isEmpty()Z
	move-result v0
	if-eqz v0, :cond_0
	monitor-exit p0
	return-void
	:cond_0
	monitor-exit p0
	:try_end_0
	.catchall {:try_start_0 .. :try_end_0} :catchall_0
	new-instance v0, Ljava/util/ArrayList;
	invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
	invoke-direct {p0, v0}, Lcom/google/firebase/components/ComponentRuntime;->discoverComponents(Ljava/util/List;)V
	return-void
	:catchall_0
	move-exception v0
	:try_start_1
	monitor-exit p0
	:try_end_1
	.catchall {:try_start_1 .. :try_end_1} :catchall_0
	throw v0
.end method

.method public bridge synthetic get(Ljava/lang/Class;)Ljava/lang/Object;
	.locals 0

	invoke-super {p0, p1}, Lcom/google/firebase/components/AbstractComponentContainer;->get(Ljava/lang/Class;)Ljava/lang/Object;
	move-result-object p1
	return-object p1
.end method

.method  getAllComponentsForTest()Ljava/util/Collection;
	.locals 1
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"()",
	"Ljava/util/Collection<",
	"Lcom/google/firebase/components/Component<",
	"*>;>;"
	}
	.end annotation

	iget-object v0, p0, Lcom/google/firebase/components/ComponentRuntime;->components:Ljava/util/Map;
	invoke-interface {v0}, Ljava/util/Map;->keySet()Ljava/util/Set;
	move-result-object v0
	return-object v0
.end method

.method public getDeferred(Ljava/lang/Class;)Lcom/google/firebase/inject/Deferred;
	.locals 1
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"<T:",
	"Ljava/lang/Object;",
	">(",
	"Ljava/lang/Class<",
	"TT;>;)",
	"Lcom/google/firebase/inject/Deferred<",
	"TT;>;"
	}
	.end annotation

	invoke-virtual {p0, p1}, Lcom/google/firebase/components/ComponentRuntime;->getProvider(Ljava/lang/Class;)Lcom/google/firebase/inject/Provider;
	move-result-object p1
	if-nez p1, :cond_0
	invoke-static {}, Lcom/google/firebase/components/OptionalProvider;->empty()Lcom/google/firebase/components/OptionalProvider;
	move-result-object p1
	return-object p1
	:cond_0
	instance-of v0, p1, Lcom/google/firebase/components/OptionalProvider;
	if-eqz v0, :cond_1
	check-cast p1, Lcom/google/firebase/components/OptionalProvider;
	return-object p1
	:cond_1
	invoke-static {p1}, Lcom/google/firebase/components/OptionalProvider;->of(Lcom/google/firebase/inject/Provider;)Lcom/google/firebase/components/OptionalProvider;
	move-result-object p1
	return-object p1
.end method

.method public declared-synchronized getProvider(Ljava/lang/Class;)Lcom/google/firebase/inject/Provider;
	.locals 1
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"<T:",
	"Ljava/lang/Object;",
	">(",
	"Ljava/lang/Class<",
	"TT;>;)",
	"Lcom/google/firebase/inject/Provider<",
	"TT;>;"
	}
	.end annotation

	monitor-enter p0
	:try_start_0
	const-string v0, "Null interface requested."
	invoke-static {p1, v0}, Lcom/google/firebase/components/Preconditions;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
	iget-object v0, p0, Lcom/google/firebase/components/ComponentRuntime;->lazyInstanceMap:Ljava/util/Map;
	invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
	move-result-object p1
	check-cast p1, Lcom/google/firebase/inject/Provider;
	: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 initializeAllComponentsForTests()V
	.locals 2

	iget-object v0, p0, Lcom/google/firebase/components/ComponentRuntime;->components: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/firebase/inject/Provider;
	invoke-interface {v1}, Lcom/google/firebase/inject/Provider;->get()Ljava/lang/Object;
	goto :goto_0
	:cond_0
	return-void
.end method

.method public initializeEagerComponents(Z)V
	.locals 3

	iget-object v0, p0, Lcom/google/firebase/components/ComponentRuntime;->eagerComponentsInitializedWith:Ljava/util/concurrent/atomic/AtomicReference;
	invoke-static {p1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
	move-result-object v1
	const/4 v2, 0x0
	invoke-static {v0, v2, v1}, Lcom/google/android/gms/common/api/internal/zap$$ExternalSyntheticBackportWithForwarding0;->m(Ljava/util/concurrent/atomic/AtomicReference;Ljava/lang/Object;Ljava/lang/Object;)Z
	move-result v0
	if-nez v0, :cond_0
	return-void
	:cond_0
	monitor-enter p0
	:try_start_0
	new-instance v0, Ljava/util/HashMap;
	iget-object v1, p0, Lcom/google/firebase/components/ComponentRuntime;->components:Ljava/util/Map;
	invoke-direct {v0, v1}, Ljava/util/HashMap;-><init>(Ljava/util/Map;)V
	monitor-exit p0
	:try_end_0
	.catchall {:try_start_0 .. :try_end_0} :catchall_0
	invoke-direct {p0, v0, p1}, Lcom/google/firebase/components/ComponentRuntime;->doInitializeEagerComponents(Ljava/util/Map;Z)V
	return-void
	:catchall_0
	move-exception p1
	:try_start_1
	monitor-exit p0
	:try_end_1
	.catchall {:try_start_1 .. :try_end_1} :catchall_0
	throw p1
.end method

.method synthetic lambda$discoverComponents$0$com-google-firebase-components-ComponentRuntime(Lcom/google/firebase/components/Component;)Ljava/lang/Object;
	.locals 2

	invoke-virtual {p1}, Lcom/google/firebase/components/Component;->getFactory()Lcom/google/firebase/components/ComponentFactory;
	move-result-object v0
	new-instance v1, Lcom/google/firebase/components/RestrictedComponentContainer;
	invoke-direct {v1, p1, p0}, Lcom/google/firebase/components/RestrictedComponentContainer;-><init>(Lcom/google/firebase/components/Component;Lcom/google/firebase/components/ComponentContainer;)V
	invoke-interface {v0, v1}, Lcom/google/firebase/components/ComponentFactory;->create(Lcom/google/firebase/components/ComponentContainer;)Ljava/lang/Object;
	move-result-object p1
	return-object p1
.end method

.method public bridge synthetic setOf(Ljava/lang/Class;)Ljava/util/Set;
	.locals 0

	invoke-super {p0, p1}, Lcom/google/firebase/components/AbstractComponentContainer;->setOf(Ljava/lang/Class;)Ljava/util/Set;
	move-result-object p1
	return-object p1
.end method

.method public declared-synchronized setOfProvider(Ljava/lang/Class;)Lcom/google/firebase/inject/Provider;
	.locals 1
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"<T:",
	"Ljava/lang/Object;",
	">(",
	"Ljava/lang/Class<",
	"TT;>;)",
	"Lcom/google/firebase/inject/Provider<",
	"Ljava/util/Set<",
	"TT;>;>;"
	}
	.end annotation

	monitor-enter p0
	:try_start_0
	iget-object v0, p0, Lcom/google/firebase/components/ComponentRuntime;->lazySetMap:Ljava/util/Map;
	invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
	move-result-object p1
	check-cast p1, Lcom/google/firebase/components/LazySet;
	:try_end_0
	.catchall {:try_start_0 .. :try_end_0} :catchall_0
	if-eqz p1, :cond_0
	monitor-exit p0
	return-object p1
	:try_start_1
	:cond_0
	sget-object p1, Lcom/google/firebase/components/ComponentRuntime;->EMPTY_PROVIDER:Lcom/google/firebase/inject/Provider;
	:try_end_1
	.catchall {:try_start_1 .. :try_end_1} :catchall_0
	monitor-exit p0
	return-object p1
	:catchall_0
	move-exception p1
	monitor-exit p0
	throw p1
.end method