	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zfs_get_root
_zfs_get_root:                          ## @zfs_get_root
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	$0, (%rsi)
	movq	_DMU_POOL_DIRECTORY_OBJECT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	-24(%rbp), %rcx
	movq	%rdi, %rsi
	callq	_objset_get_dnode
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	leaq	L_str.3(%rip), %rdi
	jmp	LBB0_2
LBB0_3:
	movq	_DMU_POOL_PROPS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	-24(%rbp), %rsi
	leaq	-56(%rbp), %r9
	movq	%rbx, %rdi
	movl	$8, %ecx
	movl	$1, %r8d
	callq	_zap_lookup
	testq	%rax, %rax
	jne	LBB0_7
## %bb.4:
	movq	-56(%rbp), %rdx
	leaq	-32(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_objset_get_dnode
	testq	%rax, %rax
	je	LBB0_5
LBB0_7:
	movq	_DMU_POOL_ROOT_DATASET@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	-24(%rbp), %rsi
	leaq	-40(%rbp), %r9
	movq	%rbx, %rdi
	movl	$8, %ecx
	movl	$1, %r8d
	callq	_zap_lookup
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	movq	-40(%rbp), %rdx
	leaq	-24(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_objset_get_dnode
	testq	%rax, %rax
	je	LBB0_10
LBB0_9:
	leaq	L_str(%rip), %rdi
LBB0_2:
	callq	_puts
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_12:
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	leaq	L_.str.1(%rip), %rdx
	leaq	-32(%rbp), %rsi
	leaq	-48(%rbp), %r9
	movq	%rbx, %rdi
	movl	$8, %ecx
	movl	$1, %r8d
	callq	_zap_lookup
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movq	-48(%rbp), %rax
	testq	%rax, %rax
	jne	LBB0_11
	jmp	LBB0_7
LBB0_10:
	movq	-24(%rbp), %rax
LBB0_11:
	movq	%rax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_DMU_POOL_DIRECTORY_OBJECT,8,3  ## @DMU_POOL_DIRECTORY_OBJECT
	.comm	_EIO,4,2                        ## @EIO
	.comm	_DMU_POOL_PROPS,8,3             ## @DMU_POOL_PROPS
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"bootfs"

	.comm	_DMU_POOL_ROOT_DATASET,8,3      ## @DMU_POOL_ROOT_DATASET
L_str:                                  ## @str
	.asciz	"ZFS: can't find root dsl_dir"

L_str.3:                                ## @str.3
	.asciz	"ZFS: can't read MOS object directory"

	.no_dead_strip	_zfs_get_root
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zfs_get_root
_zfs_get_root:                          ; @zfs_get_root
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	str	xzr, [x1]
Lloh0:
	adrp	x8, _DMU_POOL_DIRECTORY_OBJECT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMU_POOL_DIRECTORY_OBJECT@GOTPAGEOFF]
Lloh2:
	ldr	x2, [x8]
	sub	x3, x29, #24
	mov	x1, x0
	bl	_objset_get_dnode
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_str.3@PAGE
Lloh4:
	add	x0, x0, l_str.3@PAGEOFF
	b	LBB0_7
LBB0_2:
Lloh5:
	adrp	x8, _DMU_POOL_PROPS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DMU_POOL_PROPS@GOTPAGEOFF]
Lloh7:
	ldr	x2, [x8]
	sub	x1, x29, #24
	add	x5, sp, #24
	mov	x0, x20
	mov	w3, #8
	mov	w4, #1
	bl	_zap_lookup
	cbnz	x0, LBB0_4
; %bb.3:
	ldr	x2, [sp, #24]
	add	x3, sp, #32
	mov	x0, x20
	mov	x1, x20
	bl	_objset_get_dnode
	cbz	x0, LBB0_9
LBB0_4:
Lloh8:
	adrp	x8, _DMU_POOL_ROOT_DATASET@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DMU_POOL_ROOT_DATASET@GOTPAGEOFF]
Lloh10:
	ldr	x2, [x8]
	sub	x1, x29, #24
	add	x5, sp, #8
	mov	x0, x20
	mov	w3, #8
	mov	w4, #1
	bl	_zap_lookup
	cbnz	x0, LBB0_6
; %bb.5:
	ldr	x2, [sp, #8]
	sub	x3, x29, #24
	mov	x0, x20
	mov	x1, x20
	bl	_objset_get_dnode
	cbz	x0, LBB0_12
LBB0_6:
Lloh11:
	adrp	x0, l_str@PAGE
Lloh12:
	add	x0, x0, l_str@PAGEOFF
LBB0_7:
	bl	_puts
Lloh13:
	adrp	x8, _EIO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_9:
Lloh16:
	adrp	x2, l_.str.1@PAGE
Lloh17:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x1, sp, #32
	add	x5, sp, #16
	mov	x0, x20
	mov	w3, #8
	mov	w4, #1
	bl	_zap_lookup
	cbnz	x0, LBB0_4
; %bb.10:
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_4
; %bb.11:
	mov	w0, #0
	b	LBB0_13
LBB0_12:
	ldur	x8, [x29, #-24]
LBB0_13:
	str	x8, [x19]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_DMU_POOL_DIRECTORY_OBJECT,8,3  ; @DMU_POOL_DIRECTORY_OBJECT
	.comm	_EIO,4,2                        ; @EIO
	.comm	_DMU_POOL_PROPS,8,3             ; @DMU_POOL_PROPS
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"bootfs"

	.comm	_DMU_POOL_ROOT_DATASET,8,3      ; @DMU_POOL_ROOT_DATASET
l_str:                                  ; @str
	.asciz	"ZFS: can't find root dsl_dir"

l_str.3:                                ; @str.3
	.asciz	"ZFS: can't read MOS object directory"

	.no_dead_strip	_zfs_get_root
.subsections_via_symbols
