.class public Landroidx/lifecycle/d0;
.super Ljava/lang/Object;
.source ""


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Landroidx/lifecycle/d0$b;,
        Landroidx/lifecycle/d0$e;,
        Landroidx/lifecycle/d0$c;,
        Landroidx/lifecycle/d0$d;,
        Landroidx/lifecycle/d0$a;
    }
.end annotation


# instance fields
.field public final a:Landroidx/lifecycle/e0;

.field public final b:Landroidx/lifecycle/d0$b;


# direct methods
.method public constructor <init>(Landroidx/lifecycle/e0;Landroidx/lifecycle/d0$b;)V
    .registers 4

    const-string v0, "store"

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

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    iput-object p1, p0, Landroidx/lifecycle/d0;->a:Landroidx/lifecycle/e0;

    iput-object p2, p0, Landroidx/lifecycle/d0;->b:Landroidx/lifecycle/d0$b;

    return-void
.end method

.method public constructor <init>(Landroidx/lifecycle/f0;)V
    .registers 4

    move-object v0, p1

    check-cast v0, Landroidx/activity/ComponentActivity;

    invoke-virtual {v0}, Landroidx/activity/ComponentActivity;->k()Landroidx/lifecycle/e0;

    move-result-object v0

    const-string v1, "owner.viewModelStore"

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

    .line 1
    check-cast p1, Landroidx/lifecycle/h;

    invoke-interface {p1}, Landroidx/lifecycle/h;->g()Landroidx/lifecycle/d0$b;

    move-result-object p1

    const-string v1, "owner.defaultViewModelProviderFactory"

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

    .line 2
    invoke-direct {p0, v0, p1}, Landroidx/lifecycle/d0;-><init>(Landroidx/lifecycle/e0;Landroidx/lifecycle/d0$b;)V

    return-void
.end method


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

    invoke-virtual {p1}, Ljava/lang/Class;->getCanonicalName()Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_61

    const-string v1, "androidx.lifecycle.ViewModelProvider.DefaultKey:"

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

    move-result-object v0

    const-string v1, "key"

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

    iget-object v1, p0, Landroidx/lifecycle/d0;->a:Landroidx/lifecycle/e0;

    .line 2
    iget-object v1, v1, Landroidx/lifecycle/e0;->a:Ljava/util/HashMap;

    invoke-virtual {v1, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroidx/lifecycle/c0;

    .line 3
    invoke-virtual {p1, v1}, Ljava/lang/Class;->isInstance(Ljava/lang/Object;)Z

    move-result v2

    const-string v3, "viewModel"

    if-eqz v2, :cond_3c

    iget-object p1, p0, Landroidx/lifecycle/d0;->b:Landroidx/lifecycle/d0$b;

    instance-of v0, p1, Landroidx/lifecycle/d0$e;

    if-eqz v0, :cond_2c

    check-cast p1, Landroidx/lifecycle/d0$e;

    goto :goto_2d

    :cond_2c
    const/4 p1, 0x0

    :goto_2d
    if-nez p1, :cond_30

    goto :goto_36

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

    invoke-virtual {p1, v1}, Landroidx/lifecycle/d0$e;->b(Landroidx/lifecycle/c0;)V

    :goto_36
    const-string p1, "null cannot be cast to non-null type T of androidx.lifecycle.ViewModelProvider.get"

    invoke-static {v1, p1}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;

    goto :goto_60

    :cond_3c
    iget-object v1, p0, Landroidx/lifecycle/d0;->b:Landroidx/lifecycle/d0$b;

    instance-of v2, v1, Landroidx/lifecycle/d0$c;

    if-eqz v2, :cond_49

    check-cast v1, Landroidx/lifecycle/d0$c;

    invoke-virtual {v1, v0, p1}, Landroidx/lifecycle/d0$c;->c(Ljava/lang/String;Ljava/lang/Class;)Landroidx/lifecycle/c0;

    move-result-object p1

    goto :goto_4d

    :cond_49
    invoke-interface {v1, p1}, Landroidx/lifecycle/d0$b;->a(Ljava/lang/Class;)Landroidx/lifecycle/c0;

    move-result-object p1

    :goto_4d
    move-object v1, p1

    iget-object p1, p0, Landroidx/lifecycle/d0;->a:Landroidx/lifecycle/e0;

    .line 4
    iget-object p1, p1, Landroidx/lifecycle/e0;->a:Ljava/util/HashMap;

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

    move-result-object p1

    check-cast p1, Landroidx/lifecycle/c0;

    if-eqz p1, :cond_5d

    invoke-virtual {p1}, Landroidx/lifecycle/c0;->b()V

    .line 5
    :cond_5d
    invoke-static {v1, v3}, Lx/e;->e(Ljava/lang/Object;Ljava/lang/String;)V

    :goto_60
    return-object v1

    .line 6
    :cond_61
    new-instance p1, Ljava/lang/IllegalArgumentException;

    const-string v0, "Local and anonymous classes can not be ViewModels"

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

    throw p1
.end method
