	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_init_dev
	testq	%rax, %rax
	js	LBB0_7
## %bb.1:
	movq	%r12, %rdi
	callq	_lookup
	testl	%eax, %eax
	je	LBB0_8
## %bb.2:
	movl	%eax, %ebx
	leaq	-48(%rbp), %rcx
	movl	%eax, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_fsread_size
	testq	%rax, %rax
	js	LBB0_9
## %bb.3:
	movq	-48(%rbp), %r13
	testq	%r13, %r13
	je	LBB0_9
## %bb.4:
	movq	%r13, %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	movl	%ebx, %edi
	movq	%rax, %rbx
	movq	%rax, %rsi
	movq	%r13, %rdx
	callq	_fsread
	movq	-48(%rbp), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_11
## %bb.6:
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_DPRINTF
	movq	%rbx, (%r15)
	movq	-48(%rbp), %rax
	movq	%rax, (%r14)
	movq	_EFI_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_7:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DPRINTF
	movq	_EFI_UNSUPPORTED@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_8:
	leaq	L_.str.1(%rip), %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_DPRINTF
	movq	_EFI_NOT_FOUND@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_9:
	leaq	L_.str.2(%rip), %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_12
LBB0_10:
	leaq	L_.str.3(%rip), %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_printf
	movq	_EFI_OUT_OF_RESOURCES@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_11:
	leaq	L_.str.4(%rip), %rdi
	movq	%r12, %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_printf
	movq	%rbx, %rdi
	callq	_free
LBB0_12:
	movq	_EFI_INVALID_PARAMETER@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to init device\n"

	.comm	_EFI_UNSUPPORTED,4,2            ## @EFI_UNSUPPORTED
L_.str.1:                               ## @.str.1
	.asciz	"Failed to lookup '%s' (file not found?)\n"

	.comm	_EFI_NOT_FOUND,4,2              ## @EFI_NOT_FOUND
L_.str.2:                               ## @.str.2
	.asciz	"Failed to read size of '%s' ino: %d\n"

	.comm	_EFI_INVALID_PARAMETER,4,2      ## @EFI_INVALID_PARAMETER
L_.str.3:                               ## @.str.3
	.asciz	"Failed to allocate read buffer %zu for '%s'\n"

	.comm	_EFI_OUT_OF_RESOURCES,4,2       ## @EFI_OUT_OF_RESOURCES
L_.str.4:                               ## @.str.4
	.asciz	"Failed to read '%s' (%zd != %zu)\n"

L_.str.5:                               ## @.str.5
	.asciz	"Load complete\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, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x3
	mov	x21, x2
	mov	x19, x0
	mov	x0, x1
	bl	_init_dev
	tbnz	x0, #63, LBB0_7
; %bb.1:
	mov	x0, x19
	bl	_lookup
	cbz	w0, LBB0_8
; %bb.2:
	mov	x22, x0
	add	x3, sp, #24
	mov	x1, #0
	mov	w2, #0
	bl	_fsread_size
	tbnz	x0, #63, LBB0_9
; %bb.3:
	ldr	x24, [sp, #24]
	cbz	x24, LBB0_9
; %bb.4:
	mov	x0, x24
	bl	_malloc
	cbz	x0, LBB0_10
; %bb.5:
	mov	x23, x0
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	bl	_fsread
	ldr	x8, [sp, #24]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.6:
Lloh0:
	adrp	x0, l_.str.5@PAGE
Lloh1:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_DPRINTF
	str	x23, [x21]
	ldr	x8, [sp, #24]
	str	x8, [x20]
Lloh2:
	adrp	x8, _EFI_SUCCESS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EFI_SUCCESS@GOTPAGEOFF]
	b	LBB0_13
LBB0_7:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPRINTF
Lloh6:
	adrp	x8, _EFI_UNSUPPORTED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EFI_UNSUPPORTED@GOTPAGEOFF]
	b	LBB0_13
LBB0_8:
	str	x19, [sp]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DPRINTF
Lloh10:
	adrp	x8, _EFI_NOT_FOUND@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EFI_NOT_FOUND@GOTPAGEOFF]
	b	LBB0_13
LBB0_9:
	stp	x19, x22, [sp]
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	b	LBB0_12
LBB0_10:
	stp	x24, x19, [sp]
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
Lloh16:
	adrp	x8, _EFI_OUT_OF_RESOURCES@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EFI_OUT_OF_RESOURCES@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:
	stp	x0, x8, [sp, #8]
	str	x19, [sp]
Lloh18:
	adrp	x0, l_.str.4@PAGE
Lloh19:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
	mov	x0, x23
	bl	_free
LBB0_12:
Lloh20:
	adrp	x8, _EFI_INVALID_PARAMETER@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EFI_INVALID_PARAMETER@GOTPAGEOFF]
LBB0_13:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to init device\n"

	.comm	_EFI_UNSUPPORTED,4,2            ; @EFI_UNSUPPORTED
l_.str.1:                               ; @.str.1
	.asciz	"Failed to lookup '%s' (file not found?)\n"

	.comm	_EFI_NOT_FOUND,4,2              ; @EFI_NOT_FOUND
l_.str.2:                               ; @.str.2
	.asciz	"Failed to read size of '%s' ino: %d\n"

	.comm	_EFI_INVALID_PARAMETER,4,2      ; @EFI_INVALID_PARAMETER
l_.str.3:                               ; @.str.3
	.asciz	"Failed to allocate read buffer %zu for '%s'\n"

	.comm	_EFI_OUT_OF_RESOURCES,4,2       ; @EFI_OUT_OF_RESOURCES
l_.str.4:                               ; @.str.4
	.asciz	"Failed to read '%s' (%zd != %zu)\n"

l_.str.5:                               ; @.str.5
	.asciz	"Load complete\n"

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