	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efi_get_memory_map             ## -- Begin function efi_get_memory_map
	.p2align	4, 0x90
_efi_get_memory_map:                    ## @efi_get_memory_map
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	$0, -48(%rbp)
	movq	(%rsi), %rax
	movl	$4, (%rax)
	movq	8(%rsi), %rax
	movl	$128, (%rax)
	movq	16(%rsi), %rcx
	movl	$128, (%rcx)
	movq	_allocate_pool@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_EFI_LOADER_DATA@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rsi
	movl	(%rax), %edx
	leaq	-48(%rbp), %rcx
	xorl	%eax, %eax
	callq	_efi_call_early
	movq	%rax, %rbx
	movq	_EFI_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_13
## %bb.1:
	leaq	-52(%rbp), %r12
	movq	_EFI_MMAP_NR_SLACK_SLOTS@GOTPCREL(%rip), %r15
	leaq	-48(%rbp), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_free_pool@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rsi
	xorl	%eax, %eax
	callq	_efi_call_early
	movl	(%r15), %eax
	movq	(%r14), %rcx
	movq	8(%r14), %rdx
	imull	(%rcx), %eax
	addl	(%rdx), %eax
	movl	%eax, (%rdx)
	movq	16(%r14), %rcx
	movl	%eax, (%rcx)
	movq	_allocate_pool@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EFI_LOADER_DATA@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	movl	(%rdx), %edx
	movq	%r13, %rcx
	xorl	%eax, %eax
	callq	_efi_call_early
	movq	%rax, %rbx
	movq	_EFI_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_13
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %r8
	movl	$0, (%r8)
	movq	$0, -64(%rbp)
	movq	_get_memory_map@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r14), %rsi
	movq	-48(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	movq	%r12, %r9
	xorl	%eax, %eax
	callq	_efi_call_early
	movq	%rax, %rbx
	movq	_EFI_BUFFER_TOO_SMALL@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r14), %rax
	movl	(%rax), %edi
	movq	(%r14), %rax
	movq	8(%r14), %rcx
	movl	(%rcx), %esi
	movl	(%rax), %edx
	callq	_mmap_has_headroom
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	%rbx, %rax
	movq	_EFI_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rbx
	je	LBB0_7
## %bb.6:
	movq	_free_pool@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rsi
	xorl	%eax, %eax
	callq	_efi_call_early
	movq	_EFI_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_7:
	movq	24(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.8:
	cmpq	%rax, %rbx
	jne	LBB0_10
## %bb.9:
	movq	-64(%rbp), %rax
	movq	%rax, (%rcx)
	movq	_EFI_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_10:
	movq	40(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_13
## %bb.11:
	cmpq	%rax, %rbx
	jne	LBB0_13
## %bb.12:
	movl	-52(%rbp), %eax
	movl	%eax, (%rcx)
LBB0_13:
	movq	-48(%rbp), %rax
	movq	32(%r14), %rcx
	movq	%rax, (%rcx)
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_allocate_pool,4,2              ## @allocate_pool
	.comm	_EFI_LOADER_DATA,4,2            ## @EFI_LOADER_DATA
	.comm	_EFI_SUCCESS,8,3                ## @EFI_SUCCESS
	.comm	_get_memory_map,4,2             ## @get_memory_map
	.comm	_EFI_BUFFER_TOO_SMALL,8,3       ## @EFI_BUFFER_TOO_SMALL
	.comm	_free_pool,4,2                  ## @free_pool
	.comm	_EFI_MMAP_NR_SLACK_SLOTS,4,2    ## @EFI_MMAP_NR_SLACK_SLOTS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efi_get_memory_map             ; -- Begin function efi_get_memory_map
	.p2align	2
_efi_get_memory_map:                    ; @efi_get_memory_map
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x19, x1
	str	xzr, [sp, #56]
	ldr	x8, [x1]
	mov	w9, #4
	str	w9, [x8]
	ldr	x8, [x1, #8]
	mov	w9, #128
	str	w9, [x8]
	ldr	x10, [x1, #16]
Lloh0:
	adrp	x11, _allocate_pool@GOTPAGE
Lloh1:
	ldr	x11, [x11, _allocate_pool@GOTPAGEOFF]
	str	w9, [x10]
Lloh2:
	ldr	w0, [x11]
Lloh3:
	adrp	x23, _EFI_LOADER_DATA@GOTPAGE
Lloh4:
	ldr	x23, [x23, _EFI_LOADER_DATA@GOTPAGEOFF]
	ldrsw	x1, [x23]
	ldr	w8, [x8]
	add	x24, sp, #56
	stp	x8, x24, [sp]
	bl	_efi_call_early
	mov	x20, x0
Lloh5:
	adrp	x8, _EFI_SUCCESS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EFI_SUCCESS@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_14
; %bb.1:
Lloh8:
	adrp	x26, _get_memory_map@GOTPAGE
Lloh9:
	ldr	x26, [x26, _get_memory_map@GOTPAGEOFF]
	add	x27, sp, #44
	add	x28, sp, #48
Lloh10:
	adrp	x21, _EFI_BUFFER_TOO_SMALL@GOTPAGE
Lloh11:
	ldr	x21, [x21, _EFI_BUFFER_TOO_SMALL@GOTPAGEOFF]
Lloh12:
	adrp	x25, _free_pool@GOTPAGE
Lloh13:
	ldr	x25, [x25, _free_pool@GOTPAGEOFF]
Lloh14:
	adrp	x22, _EFI_MMAP_NR_SLACK_SLOTS@GOTPAGE
Lloh15:
	ldr	x22, [x22, _EFI_MMAP_NR_SLACK_SLOTS@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x25]
	ldr	x1, [sp, #56]
	bl	_efi_call_early
	ldp	x8, x9, [x19]
	ldr	w8, [x8]
	ldr	w10, [x22]
	ldr	w11, [x9]
	madd	w8, w10, w8, w11
	str	w8, [x9]
	ldr	x10, [x19, #16]
	str	w8, [x10]
Lloh16:
	adrp	x8, _allocate_pool@GOTPAGE
Lloh17:
	ldr	x8, [x8, _allocate_pool@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	ldrsw	x1, [x23]
	ldr	w8, [x9]
	stp	x8, x24, [sp]
	bl	_efi_call_early
Lloh19:
	adrp	x8, _EFI_SUCCESS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EFI_SUCCESS@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_13
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	str	wzr, [x8]
	str	xzr, [sp, #48]
	ldr	w0, [x26]
	ldr	x1, [x19, #8]
	ldr	x9, [sp, #56]
	stp	x8, x27, [sp, #16]
	stp	x9, x28, [sp]
	bl	_efi_call_early
	ldr	x8, [x21]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x20, x0
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	ldp	x9, x8, [x19]
	ldr	w1, [x8]
	ldr	w2, [x9]
	bl	_mmap_has_headroom
	cbz	w0, LBB0_2
; %bb.5:
Lloh22:
	adrp	x8, _EFI_SUCCESS@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EFI_SUCCESS@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x8]
	mov	x8, x20
	cmp	x20, x9
	b.eq	LBB0_7
; %bb.6:
	ldr	w0, [x25]
	ldr	x1, [sp, #56]
	bl	_efi_call_early
Lloh25:
	adrp	x8, _EFI_SUCCESS@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EFI_SUCCESS@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
LBB0_7:
	ldr	x9, [x19, #24]
	cbz	x9, LBB0_10
; %bb.8:
	cmp	x20, x8
	b.ne	LBB0_10
; %bb.9:
	ldr	x8, [sp, #48]
	str	x8, [x9]
Lloh28:
	adrp	x8, _EFI_SUCCESS@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EFI_SUCCESS@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
LBB0_10:
	ldr	x9, [x19, #40]
	cbz	x9, LBB0_14
; %bb.11:
	cmp	x20, x8
	b.ne	LBB0_14
; %bb.12:
	ldr	w8, [sp, #44]
	str	w8, [x9]
	b	LBB0_14
LBB0_13:
	mov	x20, x0
LBB0_14:
	ldr	x8, [sp, #56]
	ldr	x9, [x19, #32]
	str	x8, [x9]
	mov	x0, x20
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_allocate_pool,4,2              ; @allocate_pool
	.comm	_EFI_LOADER_DATA,4,2            ; @EFI_LOADER_DATA
	.comm	_EFI_SUCCESS,8,3                ; @EFI_SUCCESS
	.comm	_get_memory_map,4,2             ; @get_memory_map
	.comm	_EFI_BUFFER_TOO_SMALL,8,3       ; @EFI_BUFFER_TOO_SMALL
	.comm	_free_pool,4,2                  ; @free_pool
	.comm	_EFI_MMAP_NR_SLACK_SLOTS,4,2    ; @EFI_MMAP_NR_SLACK_SLOTS
.subsections_via_symbols
