	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efi_do_vmap
_efi_do_vmap:                           ## @efi_do_vmap
	.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
	movl	%ecx, %r14d
	movl	%edx, %r12d
	movq	%rdi, %rbx
	movl	%esi, %eax
	cltd
	idivl	%r12d
	movl	%eax, %r13d
	movl	%esi, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	testl	%r13d, %r13d
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_2
## %bb.5:
	xorl	%r14d, %r14d
	movq	%rax, %r15
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_NextMemoryDescriptor
	movq	%rax, %rbx
	decl	%r13d
	je	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	_EFI_MEMORY_RUNTIME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	incl	%r14d
	movl	4(%rbx), %eax
	movl	%eax, 8(%rbx)
	movl	%eax, 8(%r15)
	movq	(%rbx), %rax
	movq	%rax, (%r15)
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_NextMemoryDescriptor
	movq	%rax, %r15
	jmp	LBB0_8
LBB0_3:
	movq	_EFI_OUT_OF_RESOURCES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_4
LBB0_2:
	xorl	%r14d, %r14d
LBB0_9:
	movq	_RS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	imull	%r12d, %r14d
	movl	%r14d, %edi
	movl	%r12d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rcx
	callq	*(%rax)
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_free
	movl	%r14d, %eax
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EFI_OUT_OF_RESOURCES,4,2       ## @EFI_OUT_OF_RESOURCES
	.comm	_EFI_MEMORY_RUNTIME,4,2         ## @EFI_MEMORY_RUNTIME
	.comm	_RS,8,3                         ## @RS
	.no_dead_strip	_efi_do_vmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efi_do_vmap
_efi_do_vmap:                           ; @efi_do_vmap
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x21, x2
	mov	x23, x1
	mov	x22, x0
	mov	x0, x1
	bl	_malloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
	sdiv	w25, w23, w21
	cmp	w25, #1
	b.lt	LBB0_7
; %bb.2:
	mov	w24, #0
Lloh0:
	adrp	x26, _EFI_MEMORY_RUNTIME@GOTPAGE
Lloh1:
	ldr	x26, [x26, _EFI_MEMORY_RUNTIME@GOTPAGEOFF]
	mov	x23, x20
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	mov	x1, x21
	bl	_NextMemoryDescriptor
	mov	x22, x0
	subs	w25, w25, #1
	b.eq	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22]
	ldr	w9, [x26]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w24, w24, #1
	ldr	w8, [x22, #4]
	str	w8, [x22, #8]
	ldr	x9, [x22]
	str	w8, [x23, #8]
	str	x9, [x23]
	mov	x0, x23
	mov	x1, x21
	bl	_NextMemoryDescriptor
	mov	x23, x0
	b	LBB0_3
LBB0_6:
Lloh2:
	adrp	x8, _EFI_OUT_OF_RESOURCES@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EFI_OUT_OF_RESOURCES@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	b	LBB0_9
LBB0_7:
	mov	w24, #0
LBB0_8:
Lloh5:
	adrp	x8, _RS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RS@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	x8, [x8]
	mul	w0, w24, w21
	mov	x1, x21
	mov	x2, x19
	mov	x3, x20
	blr	x8
	mov	x19, x0
	mov	x0, x20
	bl	_free
	mov	x0, x19
LBB0_9:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EFI_OUT_OF_RESOURCES,4,2       ; @EFI_OUT_OF_RESOURCES
	.comm	_EFI_MEMORY_RUNTIME,4,2         ; @EFI_MEMORY_RUNTIME
	.comm	_RS,8,3                         ; @RS
	.no_dead_strip	_efi_do_vmap
.subsections_via_symbols
