	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function be_locate_rootfs
_be_locate_rootfs:                      ## @be_locate_rootfs
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	leaq	-40(%rbp), %rsi
	callq	_statfs
	movl	$1, %ebx
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	leaq	-40(%rbp), %rdi
	leaq	-32(%rbp), %rsi
	callq	_statfs2mnttab
	movl	-32(%rbp), %edi
	movq	_MNTTYPE_ZFS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	movl	4(%r14), %edi
	movq	_ZFS_TYPE_FILESYSTEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	callq	_zfs_path_to_zhandle
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, %r15
	movl	(%r14), %ebx
	movq	%rax, %rdi
	callq	_zfs_get_name
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	$4, %edx
	callq	_strlcpy
	movq	%r15, %rdi
	callq	_zfs_close
	xorl	%ebx, %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/"

	.comm	_MNTTYPE_ZFS,4,2                ## @MNTTYPE_ZFS
	.comm	_ZFS_TYPE_FILESYSTEM,4,2        ## @ZFS_TYPE_FILESYSTEM
	.no_dead_strip	_be_locate_rootfs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function be_locate_rootfs
_be_locate_rootfs:                      ; @be_locate_rootfs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	add	x1, sp, #8
	bl	_statfs
	cbnz	x0, LBB0_2
; %bb.1:
	add	x0, sp, #8
	mov	x1, sp
	bl	_statfs2mnttab
	ldr	w0, [sp]
Lloh2:
	adrp	x8, _MNTTYPE_ZFS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MNTTYPE_ZFS@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_strcmp
	cbz	x0, LBB0_4
LBB0_2:
	mov	w0, #1
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_4:
	ldr	w0, [x19, #4]
Lloh5:
	adrp	x8, _ZFS_TYPE_FILESYSTEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ZFS_TYPE_FILESYSTEM@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_zfs_path_to_zhandle
	cbz	x0, LBB0_2
; %bb.5:
	mov	x20, x0
	ldr	w19, [x19]
	bl	_zfs_get_name
	mov	x1, x0
	mov	x0, x19
	mov	w2, #4
	bl	_strlcpy
	mov	x0, x20
	bl	_zfs_close
	mov	w0, #0
	b	LBB0_3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/"

	.comm	_MNTTYPE_ZFS,4,2                ; @MNTTYPE_ZFS
	.comm	_ZFS_TYPE_FILESYSTEM,4,2        ; @ZFS_TYPE_FILESYSTEM
	.no_dead_strip	_be_locate_rootfs
.subsections_via_symbols
