	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function load
_load:                                  ## @load
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r15
	movq	%rdi, %r14
	movq	8(%rsi), %rbx
	movq	%rbx, %rdi
	callq	_zfs_spa_init
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	(%rbx), %rsi
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_4
LBB0_2:
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_zfs_mount
	testl	%eax, %eax
	je	LBB0_7
## %bb.3:
	movq	(%rbx), %rsi
	leaq	L_.str.1(%rip), %rdi
LBB0_4:
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_DPRINTF
LBB0_5:
	movq	_EFI_NOT_FOUND@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	leaq	-48(%rbp), %rdi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rsi
	callq	_zfs_lookup
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	movq	(%rbx), %rdx
	cmpl	(%rcx), %eax
	jne	LBB0_12
## %bb.9:
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_DPRINTF
	jmp	LBB0_5
LBB0_10:
	leaq	-44(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_zfs_dnode_stat
	testl	%eax, %eax
	je	LBB0_14
## %bb.11:
	movq	(%rbx), %rdx
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_13
LBB0_12:
	leaq	L_.str.3(%rip), %rdi
LBB0_13:
	movq	%r14, %rsi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_printf
	movq	_EFI_INVALID_PARAMETER@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_14:
	movq	-56(%rbp), %r13
	movq	%r13, %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_17
## %bb.15:
	leaq	-44(%rbp), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movq	%rax, %r14
	movq	%rax, %rcx
	movq	%r13, %r8
	callq	_dnode_read
	testl	%eax, %eax
	je	LBB0_18
## %bb.16:
	movq	(%rbx), %rsi
	leaq	L_.str.6(%rip), %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_printf
	movq	%r14, %rdi
	callq	_free
	movq	_EFI_INVALID_PARAMETER@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_17:
	movslq	%r13d, %rsi
	movq	(%rbx), %rdx
	leaq	L_.str.5(%rip), %rdi
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_printf
	movq	_EFI_INVALID_PARAMETER@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_18:
	movq	-56(%rbp), %rax
	movq	%rax, (%r12)
	movq	%r14, (%r15)
	movq	_EFI_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to load pool '%s' (%d)\n"

	.comm	_EFI_NOT_FOUND,4,2              ## @EFI_NOT_FOUND
L_.str.1:                               ## @.str.1
	.asciz	"Failed to mount pool '%s' (%d)\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
L_.str.2:                               ## @.str.2
	.asciz	"Failed to find '%s' on pool '%s' (%d)\n"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to lookup '%s' on pool '%s' (%d)\n"

	.comm	_EFI_INVALID_PARAMETER,4,2      ## @EFI_INVALID_PARAMETER
L_.str.4:                               ## @.str.4
	.asciz	"Failed to stat '%s' on pool '%s' (%d)\n"

L_.str.5:                               ## @.str.5
	.asciz	"Failed to allocate load buffer %jd for pool '%s' for '%s' "

L_.str.6:                               ## @.str.6
	.asciz	"Failed to read node from %s (%d)\n"

	.comm	_EFI_SUCCESS,4,2                ## @EFI_SUCCESS
	.no_dead_strip	_load
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function load
_load:                                  ; @load
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x3
	mov	x21, x2
	mov	x19, x0
	ldr	x20, [x1, #8]
	mov	x0, x20
	bl	_zfs_spa_init
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_2
; %bb.1:
	ldr	x1, [x20]
	str	x0, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
	add	x2, sp, #40
	mov	x0, x20
	mov	w1, #0
	bl	_zfs_mount
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_6
; %bb.3:
	ldr	x1, [x20]
	str	x0, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_4:
	bl	_DPRINTF
Lloh4:
	adrp	x8, _EFI_NOT_FOUND@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EFI_NOT_FOUND@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_6:
	add	x0, sp, #40
	add	x2, sp, #36
	mov	x1, x19
	bl	_zfs_lookup
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_9
; %bb.7:
Lloh6:
	adrp	x8, _ENOENT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x8]
	ldr	x8, [x20]
	cmp	w0, w9
	b.ne	LBB0_11
; %bb.8:
	stp	x8, x0, [sp]
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	b	LBB0_4
LBB0_9:
	add	x1, sp, #36
	add	x2, sp, #24
	mov	x0, x20
	bl	_zfs_dnode_stat
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_15
; %bb.10:
	ldr	x8, [x20]
	stp	x8, x0, [sp]
Lloh11:
	adrp	x0, l_.str.4@PAGE
Lloh12:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_12
LBB0_11:
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	stp	x8, x0, [sp]
Lloh13:
	adrp	x0, l_.str.3@PAGE
Lloh14:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_12:
	mov	x1, x19
LBB0_13:
	bl	_printf
LBB0_14:
Lloh15:
	adrp	x8, _EFI_INVALID_PARAMETER@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EFI_INVALID_PARAMETER@GOTPAGEOFF]
	b	LBB0_5
LBB0_15:
	ldr	x24, [sp, #24]
	mov	x0, x24
	bl	_malloc
	cbz	x0, LBB0_18
; %bb.16:
	mov	x23, x0
	add	x1, sp, #36
	mov	x0, x20
	mov	w2, #0
	mov	x3, x23
	mov	x4, x24
	bl	_dnode_read
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_19
; %bb.17:
	ldr	x1, [x20]
	str	x0, [sp]
Lloh17:
	adrp	x0, l_.str.6@PAGE
Lloh18:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_printf
	mov	x0, x23
	bl	_free
	b	LBB0_14
LBB0_18:
	sxtw	x1, w24
	ldr	x8, [x20]
	stp	x8, x19, [sp]
Lloh19:
	adrp	x0, l_.str.5@PAGE
Lloh20:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_13
LBB0_19:
	ldr	x8, [sp, #24]
	str	x8, [x22]
	str	x23, [x21]
Lloh21:
	adrp	x8, _EFI_SUCCESS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EFI_SUCCESS@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to load pool '%s' (%d)\n"

	.comm	_EFI_NOT_FOUND,4,2              ; @EFI_NOT_FOUND
l_.str.1:                               ; @.str.1
	.asciz	"Failed to mount pool '%s' (%d)\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
l_.str.2:                               ; @.str.2
	.asciz	"Failed to find '%s' on pool '%s' (%d)\n"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to lookup '%s' on pool '%s' (%d)\n"

	.comm	_EFI_INVALID_PARAMETER,4,2      ; @EFI_INVALID_PARAMETER
l_.str.4:                               ; @.str.4
	.asciz	"Failed to stat '%s' on pool '%s' (%d)\n"

l_.str.5:                               ; @.str.5
	.asciz	"Failed to allocate load buffer %jd for pool '%s' for '%s' "

l_.str.6:                               ; @.str.6
	.asciz	"Failed to read node from %s (%d)\n"

	.comm	_EFI_SUCCESS,4,2                ; @EFI_SUCCESS
	.no_dead_strip	_load
.subsections_via_symbols
