	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_loader_efi_config        ## -- Begin function parse_loader_efi_config
	.p2align	4, 0x90
_parse_loader_efi_config:               ## @parse_loader_efi_config
	.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	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	callq	_efiblk_get_pdinfo_by_handle
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %rdi
	callq	_set_currdev_pdinfo
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_stat
	testq	%rax, %rax
	jne	LBB0_7
## %bb.2:
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_open
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.3:
	movl	%eax, %r14d
	movl	-24(%rbp), %edi
	incl	%edi
	callq	_malloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movl	-24(%rbp), %edx
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_read
	cmpl	-24(%rbp), %eax
	jne	LBB0_6
## %bb.5:
	cltq
	movb	$0, (%rbx,%rax)
	movq	%rbx, %rdi
	callq	_boot_parse_cmdline
LBB0_6:
	movq	%rbx, %rdi
	callq	_free
	movl	%r14d, %edi
	callq	_close
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_loader_efi_config        ; -- Begin function parse_loader_efi_config
	.p2align	2
_parse_loader_efi_config:               ; @parse_loader_efi_config
	.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, x1
	bl	_efiblk_get_pdinfo_by_handle
	cbz	x0, LBB0_7
; %bb.1:
	bl	_set_currdev_pdinfo
	add	x1, sp, #8
	mov	x0, x19
	bl	_stat
	cbnz	x0, LBB0_7
; %bb.2:
Lloh0:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_open
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.3:
	mov	x19, x0
	ldr	w8, [sp, #8]
	add	w0, w8, #1
	bl	_malloc
	mov	x20, x0
	cbz	x0, LBB0_6
; %bb.4:
	ldr	w2, [sp, #8]
	mov	x0, x19
	mov	x1, x20
	bl	_read
	ldr	w8, [sp, #8]
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.5:
	strb	wzr, [x20, w0, sxtw]
	mov	x0, x20
	bl	_boot_parse_cmdline
LBB0_6:
	mov	x0, x20
	bl	_free
	mov	x0, x19
	bl	_close
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
.subsections_via_symbols
