.class public Landroidx/lifecycle/d0$a;
.super Landroidx/lifecycle/d0$d;
.source ""


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Landroidx/lifecycle/d0;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x9
    name = "a"
.end annotation


# static fields
.field public static c:Landroidx/lifecycle/d0$a;


# instance fields
.field public final b:Landroid/app/Application;


# direct methods
.method public constructor <init>(Landroid/app/Application;)V
    .registers 2

    invoke-direct {p0}, Landroidx/lifecycle/d0$d;-><init>()V

    iput-object p1, p0, Landroidx/lifecycle/d0$a;->b:Landroid/app/Application;

    return-void
.end method


# virtual methods
.method public a(Ljava/lang/Class;)Landroidx/lifecycle/c0;
    .registers 7
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "<T:",
            "Landroidx/lifecycle/c0;",
            ">(",
            "Ljava/lang/Class<",
            "TT;>;)TT;"
        }
    .end annotation

    const-string v0, "Cannot create an instance of "

    const-string v1, "modelClass"

    invoke-static {p1, v1}, Lx/e;->f(Ljava/lang/Object;Ljava/lang/String;)V

    const-class v1, Landroidx/lifecycle/a;

    invoke-virtual {v1, p1}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z

    move-result v1

    if-eqz v1, :cond_59

    const/4 v1, 0x1

    :try_start_10
    new-array v2, v1, [Ljava/lang/Class;

    const-class v3, Landroid/app/Application;

    const/4 v4, 0x0

    aput-object v3, v2, v4

    invoke-virtual {p1, v2}, Ljava/lang/Class;->getConstructor([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;

    move-result-object v2

    new-array v1, v1, [Ljava/lang/Object;

    iget-object v3, p0, Landroidx/lifecycle/d0$a;->b:Landroid/app/Application;

    aput-object v3, v1, v4

    invoke-virtual {v2, v1}, Ljava/lang/reflect/Constructor;->newInstance([Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroidx/lifecycle/c0;
    :try_end_27
    .catch Ljava/lang/NoSuchMethodException; {:try_start_10 .. :try_end_27} :catch_4e
    .catch Ljava/lang/IllegalAccessException; {:try_start_10 .. :try_end_27} :catch_43
    .catch Ljava/lang/InstantiationException; {:try_start_10 .. :try_end_27} :catch_38
    .catch Ljava/lang/reflect/InvocationTargetException; {:try_start_10 .. :try_end_27} :catch_2d

    const-string p1, "{\n                try {\n\u2026          }\n            }"

    invoke-static {v1, p1}, Lx/e;->e(Ljava/lang/Object;Ljava/lang/String;)V

    goto :goto_5d

    :catch_2d
    move-exception v1

    new-instance v2, Ljava/lang/RuntimeException;

    invoke-static {v0, p1}, Lx/e;->k(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p1

    invoke-direct {v2, p1, v1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V

    throw v2

    :catch_38
    move-exception v1

    new-instance v2, Ljava/lang/RuntimeException;

    invoke-static {v0, p1}, Lx/e;->k(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p1

    invoke-direct {v2, p1, v1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V

    throw v2

    :catch_43
    move-exception v1

    new-instance v2, Ljava/lang/RuntimeException;

    invoke-static {v0, p1}, Lx/e;->k(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p1

    invoke-direct {v2, p1, v1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V

    throw v2

    :catch_4e
    move-exception v1

    new-instance v2, Ljava/lang/RuntimeException;

    invoke-static {v0, p1}, Lx/e;->k(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p1

    invoke-direct {v2, p1, v1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V

    throw v2

    :cond_59
    invoke-super {p0, p1}, Landroidx/lifecycle/d0$d;->a(Ljava/lang/Class;)Landroidx/lifecycle/c0;

    move-result-object v1

    :goto_5d
    return-object v1
.end method
