.class public final Lg6/fc;
.super Lg6/h;
.source ""


# instance fields
.field public final t:Landroidx/lifecycle/s;

.field public final u:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map<",
            "Ljava/lang/String;",
            "Lg6/h;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method public constructor <init>(Landroidx/lifecycle/s;)V
    .registers 3

    const-string v0, "require"

    invoke-direct {p0, v0}, Lg6/h;-><init>(Ljava/lang/String;)V

    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    iput-object v0, p0, Lg6/fc;->u:Ljava/util/Map;

    iput-object p1, p0, Lg6/fc;->t:Landroidx/lifecycle/s;

    return-void
.end method


# virtual methods
.method public final b(Ls1/g;Ljava/util/List;)Lg6/n;
    .registers 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ls1/g;",
            "Ljava/util/List<",
            "Lg6/n;",
            ">;)",
            "Lg6/n;"
        }
    .end annotation

    const-string v0, "require"

    const/4 v1, 0x1

    invoke-static {v0, v1, p2}, Le/d;->u(Ljava/lang/String;ILjava/util/List;)V

    const/4 v0, 0x0

    invoke-interface {p2, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p2

    check-cast p2, Lg6/n;

    invoke-virtual {p1, p2}, Ls1/g;->g(Lg6/n;)Lg6/n;

    move-result-object p1

    invoke-interface {p1}, Lg6/n;->zzi()Ljava/lang/String;

    move-result-object p1

    iget-object p2, p0, Lg6/fc;->u:Ljava/util/Map;

    invoke-interface {p2, p1}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z

    move-result p2

    if-eqz p2, :cond_26

    iget-object p2, p0, Lg6/fc;->u:Ljava/util/Map;

    invoke-interface {p2, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lg6/n;

    return-object p1

    :cond_26
    iget-object p2, p0, Lg6/fc;->t:Landroidx/lifecycle/s;

    iget-object v0, p2, Landroidx/lifecycle/s;->a:Ljava/util/Map;

    invoke-interface {v0, p1}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_5b

    iget-object p2, p2, Landroidx/lifecycle/s;->a:Ljava/util/Map;

    invoke-interface {p2, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p2

    check-cast p2, Ljava/util/concurrent/Callable;

    :try_start_38
    invoke-interface {p2}, Ljava/util/concurrent/Callable;->call()Ljava/lang/Object;

    move-result-object p2

    check-cast p2, Lg6/n;
    :try_end_3e
    .catch Ljava/lang/Exception; {:try_start_38 .. :try_end_3e} :catch_3f

    goto :goto_5d

    :catch_3f
    new-instance p2, Ljava/lang/IllegalStateException;

    invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p1

    const-string v0, "Failed to create API implementation: "

    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v1

    if-eqz v1, :cond_52

    invoke-virtual {v0, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    goto :goto_57

    :cond_52
    new-instance p1, Ljava/lang/String;

    invoke-direct {p1, v0}, Ljava/lang/String;-><init>(Ljava/lang/String;)V

    :goto_57
    invoke-direct {p2, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw p2

    :cond_5b
    sget-object p2, Lg6/n;->b:Lg6/n;

    :goto_5d
    instance-of v0, p2, Lg6/h;

    if-eqz v0, :cond_69

    iget-object v0, p0, Lg6/fc;->u:Ljava/util/Map;

    move-object v1, p2

    check-cast v1, Lg6/h;

    invoke-interface {v0, p1, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    :cond_69
    return-object p2
.end method
