package androidx.view;

import androidx.lifecycle.ak;
import androidx.lifecycle.at;
import androidx.lifecycle.k;
import androidx.lifecycle.t;
import androidx.view.NavBackStackEntry;
import defpackage.h15;
import defpackage.qq3;
import defpackage.u55;
import kotlin.Metadata;

/* JADX INFO: loaded from: classes.dex */
@Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0003\u0010\u0003\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"Landroidx/lifecycle/ak;", "invoke", "()Landroidx/lifecycle/ak;", "<anonymous>"}, k = 3, mv = {1, 8, 0})
final class h extends u55 implements qq3<ak> {
    public final /* synthetic */ NavBackStackEntry a;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public h(NavBackStackEntry navBackStackEntry) {
        super(0);
        this.a = navBackStackEntry;
    }

    @Override // defpackage.qq3
    public final Object invoke() {
        NavBackStackEntry navBackStackEntry = this.a;
        if (!navBackStackEntry.l) {
            throw new IllegalStateException("You cannot access the NavBackStackEntry's SavedStateHandle until it is added to the NavController's back stack (i.e., the Lifecycle of the NavBackStackEntry reaches the CREATED state).");
        }
        t tVar = navBackStackEntry.j;
        if (tVar.d == k.b.a) {
            throw new IllegalStateException("You cannot access the NavBackStackEntry's SavedStateHandle after the NavBackStackEntry is destroyed.");
        }
        NavBackStackEntry.b bVar = new NavBackStackEntry.b();
        bVar.a = navBackStackEntry.k.b;
        bVar.b = tVar;
        return ((NavBackStackEntry.SavedStateViewModel) new at(navBackStackEntry, bVar).a(h15.e(NavBackStackEntry.SavedStateViewModel.class))).a;
    }
}
