	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efi_low_alloc_above            ## -- Begin function efi_low_alloc_above
	.p2align	4, 0x90
_efi_low_alloc_above:                   ## @efi_low_alloc_above
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movq	%rsi, %r13
	leaq	-72(%rbp), %rax
	movq	%rax, -112(%rbp)
	leaq	-64(%rbp), %rax
	movq	%rax, -152(%rbp)
	leaq	-56(%rbp), %rax
	movq	%rax, -144(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -128(%rbp)
	leaq	-160(%rbp), %rax
	movq	%rax, -136(%rbp)
	leaq	-152(%rbp), %rsi
	callq	_efi_get_memory_map
	movq	%rax, %r12
	movq	_EFI_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jne	LBB0_22
## %bb.1:
	movq	_EFI_ALLOC_ALIGN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	cmpq	%rbx, %rsi
	cmovaq	%rsi, %rbx
	movq	%r13, %rdi
	callq	_round_up
	movq	_EFI_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	movq	%r15, -104(%rbp)                ## 8-byte Spill
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	je	LBB0_2
## %bb.3:
	xorl	%edx, %edx
	divq	%rcx
	movq	%rax, %r13
	jmp	LBB0_4
LBB0_2:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %r13d
LBB0_4:
	movq	-64(%rbp), %rcx
	movq	-56(%rbp), %rsi
	cmpq	%rcx, %rsi
	jbe	LBB0_6
## %bb.5:
	xorl	%r14d, %r14d
LBB0_16:
	movl	%r14d, %edi
	movq	%rcx, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_17
## %bb.18:
	movq	%rcx, %rax
	xorl	%edx, %edx
	divq	%rsi
	cmpq	%rdi, %rax
	jne	LBB0_21
LBB0_20:
	movq	_EFI_NOT_FOUND@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
LBB0_21:
	movq	_free_pool@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-72(%rbp), %rsi
	xorl	%eax, %eax
	callq	_efi_call_early
LBB0_22:
	movq	%r12, %rax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	_EFI_CONVENTIONAL_MEMORY@GOTPCREL(%rip), %rbx
	xorl	%r14d, %r14d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%r14
	movq	-64(%rbp), %rcx
	movq	-56(%rbp), %rsi
	movq	%rcx, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%rcx, %rax
	xorl	%edx, %edx
	divq	%rsi
	cmpq	%r14, %rax
	ja	LBB0_7
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $eax killed $eax def $rax
	cmpq	%r14, %rax
	jbe	LBB0_16
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	-72(%rbp), %rdi
	movl	%r14d, %edx
	callq	_efi_early_memdesc_ptr
	movq	(%rax), %rcx
	cmpq	(%rbx), %rcx
	jne	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%rax), %r15
	cmpq	%r13, %r15
	jb	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	16(%rax), %rdi
	movq	_EFI_PAGE_SIZE@GOTPCREL(%rip), %rax
	imulq	(%rax), %r15
	addq	%rdi, %r15
	movq	-104(%rbp), %rax                ## 8-byte Reload
	cmpq	%rax, %rdi
	cmovbeq	%rax, %rdi
	movq	%rdi, -48(%rbp)
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	callq	_round_up
	movq	%rax, -48(%rbp)
	addq	-88(%rbp), %rax                 ## 8-byte Folded Reload
	cmpq	%r15, %rax
	ja	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_allocate_pages@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EFI_ALLOCATE_ADDRESS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	movq	_EFI_LOADER_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rcx
	leaq	-48(%rbp), %r8
	xorl	%eax, %eax
	callq	_efi_call_early
	movq	%rax, %r12
	movq	_EFI_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jne	LBB0_12
## %bb.11:
	movq	-48(%rbp), %rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	-64(%rbp), %rcx
	movq	-56(%rbp), %rsi
	jmp	LBB0_16
LBB0_17:
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $eax killed $eax def $rax
	cmpq	%rdi, %rax
	je	LBB0_20
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_EFI_SUCCESS,8,3                ## @EFI_SUCCESS
	.comm	_EFI_ALLOC_ALIGN,8,3            ## @EFI_ALLOC_ALIGN
	.comm	_EFI_PAGE_SIZE,8,3              ## @EFI_PAGE_SIZE
	.comm	_EFI_CONVENTIONAL_MEMORY,8,3    ## @EFI_CONVENTIONAL_MEMORY
	.comm	_allocate_pages,4,2             ## @allocate_pages
	.comm	_EFI_ALLOCATE_ADDRESS,4,2       ## @EFI_ALLOCATE_ADDRESS
	.comm	_EFI_LOADER_DATA,4,2            ## @EFI_LOADER_DATA
	.comm	_EFI_NOT_FOUND,8,3              ## @EFI_NOT_FOUND
	.comm	_free_pool,4,2                  ## @free_pool
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efi_low_alloc_above            ; -- Begin function efi_low_alloc_above
	.p2align	2
_efi_low_alloc_above:                   ; @efi_low_alloc_above
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x28, x27, [sp, #128]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x4
	mov	x20, x3
	mov	x23, x2
	mov	x22, x1
	sub	x8, x29, #88
	sub	x9, x29, #96
	stp	x8, x9, [sp, #48]
	add	x8, sp, #96
	stp	xzr, x8, [sp, #80]
	add	x8, sp, #104
	stp	x8, xzr, [sp, #64]
	add	x1, sp, #48
	bl	_efi_get_memory_map
	mov	x19, x0
Lloh0:
	adrp	x25, _EFI_SUCCESS@GOTPAGE
Lloh1:
	ldr	x25, [x25, _EFI_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.1:
Lloh2:
	adrp	x8, _EFI_ALLOC_ALIGN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EFI_ALLOC_ALIGN@GOTPAGEOFF]
Lloh4:
	ldr	x1, [x8]
	cmp	x1, x23
	csel	x23, x1, x23, hi
	mov	x0, x22
	bl	_round_up
	ldp	x1, x8, [x29, #-96]
	cmp	x1, x8
	b.ls	LBB0_5
; %bb.2:
	mov	x22, #0
LBB0_3:
	udiv	x8, x8, x1
Lloh5:
	adrp	x9, _EFI_NOT_FOUND@GOTPAGE
Lloh6:
	ldr	x9, [x9, _EFI_NOT_FOUND@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, w22, uxtw
	csel	x19, x9, x19, eq
Lloh8:
	adrp	x8, _free_pool@GOTPAGE
Lloh9:
	ldr	x8, [x8, _free_pool@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	x1, [sp, #96]
	bl	_efi_call_early
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
LBB0_5:
	mov	x24, x0
	str	x20, [sp, #32]                  ; 8-byte Folded Spill
	mov	x22, #0
Lloh11:
	adrp	x26, _EFI_PAGE_SIZE@GOTPAGE
Lloh12:
	ldr	x26, [x26, _EFI_PAGE_SIZE@GOTPAGEOFF]
	ldr	x8, [x26]
Lloh13:
	adrp	x27, _EFI_CONVENTIONAL_MEMORY@GOTPAGE
Lloh14:
	ldr	x27, [x27, _EFI_CONVENTIONAL_MEMORY@GOTPAGEOFF]
	udiv	x28, x0, x8
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x22, x22, #1
	ldp	x1, x8, [x29, #-96]
	udiv	x9, x8, x1
	cmp	x9, x22
	b.ls	LBB0_3
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [sp, #96]
	mov	x2, x22
	bl	_efi_early_memdesc_ptr
	ldr	x8, [x0]
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x0, #8]
	cmp	x8, x28
	b.lo	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x9, [x0, #16]
	ldr	x10, [x26]
	madd	x20, x10, x8, x9
	cmp	x9, x21
	csel	x0, x9, x21, hi
	str	x0, [sp, #40]
	mov	x1, x23
	bl	_round_up
	str	x0, [sp, #40]
	add	x8, x0, x24
	cmp	x8, x20
	b.hi	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
Lloh15:
	adrp	x8, _allocate_pages@GOTPAGE
Lloh16:
	ldr	x8, [x8, _allocate_pages@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x8, _EFI_ALLOCATE_ADDRESS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EFI_ALLOCATE_ADDRESS@GOTPAGEOFF]
Lloh20:
	ldrsw	x1, [x8]
Lloh21:
	adrp	x8, _EFI_LOADER_DATA@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EFI_LOADER_DATA@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	add	x9, sp, #40
	stp	x28, x9, [sp, #8]
	str	x8, [sp]
	bl	_efi_call_early
	mov	x19, x0
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.11:
	ldp	x9, x8, [sp, #32]               ; 8-byte Folded Reload
	str	x8, [x9]
	ldp	x1, x8, [x29, #-96]
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_EFI_SUCCESS,8,3                ; @EFI_SUCCESS
	.comm	_EFI_ALLOC_ALIGN,8,3            ; @EFI_ALLOC_ALIGN
	.comm	_EFI_PAGE_SIZE,8,3              ; @EFI_PAGE_SIZE
	.comm	_EFI_CONVENTIONAL_MEMORY,8,3    ; @EFI_CONVENTIONAL_MEMORY
	.comm	_allocate_pages,4,2             ; @allocate_pages
	.comm	_EFI_ALLOCATE_ADDRESS,4,2       ; @EFI_ALLOCATE_ADDRESS
	.comm	_EFI_LOADER_DATA,4,2            ; @EFI_LOADER_DATA
	.comm	_EFI_NOT_FOUND,8,3              ; @EFI_NOT_FOUND
	.comm	_free_pool,4,2                  ; @free_pool
.subsections_via_symbols
