	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mountkernfs
_mountkernfs:                           ## @mountkernfs
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$32, %rsp
	xorl	%eax, %eax
	callq	_rump_nativeabi_p
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_atf_tc_skip
LBB0_2:
	xorl	%eax, %eax
	callq	_rump_init
	leaq	L_.str.1(%rip), %rdi
	movl	$511, %esi                      ## imm = 0x1FF
	callq	_rump_sys_mkdir
	cmpl	$-1, %eax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rdi
	callq	_atf_tc_fail_errno
LBB0_4:
	movl	$1, -4(%rbp)
	movq	$4, -16(%rbp)
	leaq	L_.str.3(%rip), %rdi
	leaq	-20(%rbp), %rsi
	leaq	-16(%rbp), %rdx
	leaq	-4(%rbp), %rcx
	movl	$4, %r8d
	callq	_sysctlbyname
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.4(%rip), %rdi
	callq	_atf_tc_fail_errno
LBB0_6:
	movq	_MOUNT_KERNFS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_rump_sys_mount
	cmpl	$-1, %eax
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.5(%rip), %rdi
	callq	_atf_tc_fail_errno
LBB0_8:
	addq	$32, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"host kernel modules not supported"

L_.str.1:                               ## @.str.1
	.asciz	"/kern"

L_.str.2:                               ## @.str.2
	.asciz	"mkdir /kern"

L_.str.3:                               ## @.str.3
	.asciz	"kern.module.autoload"

L_.str.4:                               ## @.str.4
	.asciz	"could not enable module autoload"

	.comm	_MOUNT_KERNFS,4,2               ## @MOUNT_KERNFS
L_.str.5:                               ## @.str.5
	.asciz	"could not mount kernfs"

	.no_dead_strip	_mountkernfs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mountkernfs
_mountkernfs:                           ; @mountkernfs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	bl	_rump_nativeabi_p
	cbnz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_atf_tc_skip
LBB0_2:
	bl	_rump_init
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	w1, #511
	bl	_rump_sys_mkdir
	cmn	w0, #1
	b.ne	LBB0_4
; %bb.3:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_atf_tc_fail_errno
LBB0_4:
	mov	w8, #1
	str	w8, [sp, #8]
	mov	w8, #4
	str	x8, [sp]
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	sub	x1, x29, #4
	mov	x2, sp
	add	x3, sp, #8
	mov	w4, #4
	bl	_sysctlbyname
	cbz	w0, LBB0_6
; %bb.5:
Lloh8:
	adrp	x0, l_.str.4@PAGE
Lloh9:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_atf_tc_fail_errno
LBB0_6:
Lloh10:
	adrp	x8, _MOUNT_KERNFS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MOUNT_KERNFS@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #0
	mov	x3, #0
	mov	w4, #0
	bl	_rump_sys_mount
	cmn	w0, #1
	b.ne	LBB0_8
; %bb.7:
Lloh15:
	adrp	x0, l_.str.5@PAGE
Lloh16:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_atf_tc_fail_errno
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"host kernel modules not supported"

l_.str.1:                               ; @.str.1
	.asciz	"/kern"

l_.str.2:                               ; @.str.2
	.asciz	"mkdir /kern"

l_.str.3:                               ; @.str.3
	.asciz	"kern.module.autoload"

l_.str.4:                               ; @.str.4
	.asciz	"could not enable module autoload"

	.comm	_MOUNT_KERNFS,4,2               ; @MOUNT_KERNFS
l_.str.5:                               ; @.str.5
	.asciz	"could not mount kernfs"

	.no_dead_strip	_mountkernfs
.subsections_via_symbols
