package w8;

/* loaded from: classes.dex */
public abstract class y {
    public static final androidx.lifecycle.f0 a(androidx.fragment.app.f fVar, int i10, String key) {
        kotlin.jvm.internal.t.g(fVar, "<this>");
        kotlin.jvm.internal.t.g(key, "key");
        return x4.d.a(fVar).y(i10).i().f(key);
    }

    public static final void b(androidx.fragment.app.f fVar, int i10, String key) {
        kotlin.jvm.internal.t.g(fVar, "<this>");
        kotlin.jvm.internal.t.g(key, "key");
        if (x4.d.a(fVar).y(i10).i().e(key)) {
            x4.d.a(fVar).y(i10).i().h(key);
        }
    }

    public static final rm.n0 c(androidx.fragment.app.f fVar, String key, Object obj) {
        androidx.lifecycle.o0 i10;
        kotlin.jvm.internal.t.g(fVar, "<this>");
        kotlin.jvm.internal.t.g(key, "key");
        v4.g H = x4.d.a(fVar).H();
        if (H == null || (i10 = H.i()) == null) {
            return null;
        }
        i10.k(key, obj);
        return rm.n0.f34904a;
    }
}
