	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_install_memreserve_table       ## -- Begin function install_memreserve_table
	.p2align	4, 0x90
_install_memreserve_table:              ## @install_memreserve_table
	.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	%rdi, %r14
	movq	_LINUX_EFI_MEMRESERVE_TABLE_GUID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -20(%rbp)
	movq	_allocate_pool@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EFI_LOADER_DATA@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	leaq	-32(%rbp), %rcx
	movl	$24, %edx
	xorl	%eax, %eax
	callq	_efi_call_early
	movq	_EFI_SUCCESS@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_1
## %bb.2:
	movq	-32(%rbp), %rdi
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rdi)
	xorl	%esi, %esi
	callq	_atomic_set
	movq	_install_configuration_table@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-32(%rbp), %rdx
	leaq	-20(%rbp), %rsi
	xorl	%eax, %eax
	callq	_efi_call_early
	cmpq	(%rbx), %rax
	je	LBB0_5
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_4
LBB0_1:
	leaq	L_.str(%rip), %rsi
LBB0_4:
	movq	%r14, %rdi
	callq	_pr_efi_err
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LINUX_EFI_MEMRESERVE_TABLE_GUID,4,2 ## @LINUX_EFI_MEMRESERVE_TABLE_GUID
	.comm	_allocate_pool,4,2              ## @allocate_pool
	.comm	_EFI_LOADER_DATA,4,2            ## @EFI_LOADER_DATA
	.comm	_EFI_SUCCESS,8,3                ## @EFI_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate memreserve entry!\n"

	.comm	_install_configuration_table,4,2 ## @install_configuration_table
L_.str.1:                               ## @.str.1
	.asciz	"Failed to install memreserve config table!\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_install_memreserve_table       ; -- Begin function install_memreserve_table
	.p2align	2
_install_memreserve_table:              ; @install_memreserve_table
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _LINUX_EFI_MEMRESERVE_TABLE_GUID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LINUX_EFI_MEMRESERVE_TABLE_GUID@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #20]
Lloh3:
	adrp	x8, _allocate_pool@GOTPAGE
Lloh4:
	ldr	x8, [x8, _allocate_pool@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _EFI_LOADER_DATA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EFI_LOADER_DATA@GOTPAGEOFF]
Lloh8:
	ldrsw	x1, [x8]
	add	x8, sp, #24
	mov	w9, #24
	stp	x9, x8, [sp]
	bl	_efi_call_early
Lloh9:
	adrp	x20, _EFI_SUCCESS@GOTPAGE
Lloh10:
	ldr	x20, [x20, _EFI_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.1:
	ldr	x0, [sp, #24]
	stp	xzr, xzr, [x0, #8]
	mov	w1, #0
	bl	_atomic_set
Lloh11:
	adrp	x8, _install_configuration_table@GOTPAGE
Lloh12:
	ldr	x8, [x8, _install_configuration_table@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	x8, [sp, #24]
	str	x8, [sp]
	add	x1, sp, #20
	bl	_efi_call_early
	ldr	x8, [x20]
	cmp	x0, x8
	b.eq	LBB0_5
; %bb.2:
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
LBB0_4:
	mov	x0, x19
	bl	_pr_efi_err
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_LINUX_EFI_MEMRESERVE_TABLE_GUID,4,2 ; @LINUX_EFI_MEMRESERVE_TABLE_GUID
	.comm	_allocate_pool,4,2              ; @allocate_pool
	.comm	_EFI_LOADER_DATA,4,2            ; @EFI_LOADER_DATA
	.comm	_EFI_SUCCESS,8,3                ; @EFI_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate memreserve entry!\n"

	.comm	_install_configuration_table,4,2 ; @install_configuration_table
l_.str.1:                               ; @.str.1
	.asciz	"Failed to install memreserve config table!\n"

.subsections_via_symbols
