	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efi_open_volume
_efi_open_volume:                       ## @efi_open_volume
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rdx
	movq	%rdi, %r15
	movq	_EFI_FILE_SYSTEM_GUID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movq	_efi_loaded_image@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_device_handle@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_efi_table_attr
	movq	_handle_protocol@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	-36(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	movq	%rax, %rsi
	callq	_efi_call_early
	movq	_EFI_SUCCESS@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_1
## %bb.2:
	movq	_efi_file_io_interface@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_open_volume@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	callq	_efi_call_proto
	movq	%rax, %rbx
	cmpq	(%r12), %rax
	jne	LBB0_3
## %bb.5:
	movq	-48(%rbp), %rax
	movq	%rax, (%r14)
	jmp	LBB0_6
LBB0_1:
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_4
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
LBB0_4:
	movq	%r15, %rdi
	callq	_efi_printk
LBB0_6:
	movq	%rbx, %rax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EFI_FILE_SYSTEM_GUID,4,2       ## @EFI_FILE_SYSTEM_GUID
	.comm	_efi_loaded_image,4,2           ## @efi_loaded_image
	.comm	_device_handle,4,2              ## @device_handle
	.comm	_handle_protocol,4,2            ## @handle_protocol
	.comm	_EFI_SUCCESS,8,3                ## @EFI_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to handle fs_proto\n"

	.comm	_efi_file_io_interface,4,2      ## @efi_file_io_interface
	.comm	_open_volume,4,2                ## @open_volume
L_.str.1:                               ## @.str.1
	.asciz	"Failed to open volume\n"

	.no_dead_strip	_efi_open_volume
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efi_open_volume
_efi_open_volume:                       ; @efi_open_volume
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x2
	mov	x2, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _EFI_FILE_SYSTEM_GUID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EFI_FILE_SYSTEM_GUID@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #12]
Lloh3:
	adrp	x8, _efi_loaded_image@GOTPAGE
Lloh4:
	ldr	x8, [x8, _efi_loaded_image@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _device_handle@GOTPAGE
Lloh7:
	ldr	x8, [x8, _device_handle@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_efi_table_attr
	mov	x1, x0
Lloh9:
	adrp	x8, _handle_protocol@GOTPAGE
Lloh10:
	ldr	x8, [x8, _handle_protocol@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	add	x2, sp, #12
	add	x3, sp, #24
	bl	_efi_call_early
Lloh12:
	adrp	x22, _EFI_SUCCESS@GOTPAGE
Lloh13:
	ldr	x22, [x22, _EFI_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.1:
Lloh14:
	adrp	x8, _efi_file_io_interface@GOTPAGE
Lloh15:
	ldr	x8, [x8, _efi_file_io_interface@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x8, _open_volume@GOTPAGE
Lloh18:
	ldr	x8, [x8, _open_volume@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	ldr	x2, [sp, #24]
	add	x3, sp, #16
	bl	_efi_call_proto
	mov	x21, x0
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [sp, #16]
	str	x8, [x20]
	b	LBB0_6
LBB0_3:
	mov	x21, x0
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_5:
	mov	x0, x19
	bl	_efi_printk
LBB0_6:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_EFI_FILE_SYSTEM_GUID,4,2       ; @EFI_FILE_SYSTEM_GUID
	.comm	_efi_loaded_image,4,2           ; @efi_loaded_image
	.comm	_device_handle,4,2              ; @device_handle
	.comm	_handle_protocol,4,2            ; @handle_protocol
	.comm	_EFI_SUCCESS,8,3                ; @EFI_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to handle fs_proto\n"

	.comm	_efi_file_io_interface,4,2      ; @efi_file_io_interface
	.comm	_open_volume,4,2                ; @open_volume
l_.str.1:                               ; @.str.1
	.asciz	"Failed to open volume\n"

	.no_dead_strip	_efi_open_volume
.subsections_via_symbols
