	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xen_build_mfn_list_list        ## -- Begin function xen_build_mfn_list_list
	.p2align	4, 0x90
_xen_build_mfn_list_list:               ## @xen_build_mfn_list_list
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_MAX_DOMAIN_PAGES@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	je	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	movq	_p2m_top_mfn@GOTPCREL(%rip), %r12
	movq	_P2M_ENTRIES_PER_PAGE@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_p2m_top_index
	movq	_p2m_top@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, %r14d
	movq	(%rcx,%r14,8), %rdi
	callq	_virt_to_mfn
	movq	(%r12), %rcx
	movq	%rax, (%rcx,%r14,8)
	addl	(%r13), %ebx
	cmpl	(%r15), %ebx
	jb	LBB0_2
LBB0_3:
	movq	_p2m_top_mfn_list@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	movq	_P2M_ENTRIES_PER_PAGE@GOTPCREL(%rip), %r15
	movq	_p2m_top_mfn@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	imull	%ebx, %edi
	shlq	$3, %rdi
	addq	(%r12), %rdi
	callq	_virt_to_mfn
	movq	(%r14), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	cmpq	%rax, %rbx
	jb	LBB0_5
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_DOMAIN_PAGES,4,2           ## @MAX_DOMAIN_PAGES
	.comm	_p2m_top,8,3                    ## @p2m_top
	.comm	_p2m_top_mfn,8,3                ## @p2m_top_mfn
	.comm	_P2M_ENTRIES_PER_PAGE,4,2       ## @P2M_ENTRIES_PER_PAGE
	.comm	_p2m_top_mfn_list,8,3           ## @p2m_top_mfn_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xen_build_mfn_list_list        ; -- Begin function xen_build_mfn_list_list
	.p2align	2
_xen_build_mfn_list_list:               ; @xen_build_mfn_list_list
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x22, _MAX_DOMAIN_PAGES@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MAX_DOMAIN_PAGES@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh2:
	adrp	x20, _P2M_ENTRIES_PER_PAGE@GOTPAGE
Lloh3:
	ldr	x20, [x20, _P2M_ENTRIES_PER_PAGE@GOTPAGEOFF]
Lloh4:
	adrp	x21, _p2m_top_mfn@GOTPAGE
Lloh5:
	ldr	x21, [x21, _p2m_top_mfn@GOTPAGEOFF]
	cbz	w8, LBB0_3
; %bb.1:
	mov	w19, #0
Lloh6:
	adrp	x23, _p2m_top@GOTPAGE
Lloh7:
	ldr	x23, [x23, _p2m_top@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_p2m_top_index
	ldr	x8, [x23]
	mov	w9, w0
	lsl	x24, x9, #3
	ldr	x0, [x8, x24]
	bl	_virt_to_mfn
	ldr	x8, [x21]
	str	x0, [x8, x24]
	ldr	w8, [x20]
	ldr	w9, [x22]
	add	w19, w8, w19
	cmp	w19, w9
	b.lo	LBB0_2
LBB0_3:
Lloh8:
	adrp	x19, _p2m_top_mfn_list@GOTPAGE
Lloh9:
	ldr	x19, [x19, _p2m_top_mfn_list@GOTPAGEOFF]
	ldr	x0, [x19]
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_6
; %bb.4:
	mov	x22, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20]
	mul	w8, w8, w22
	ldr	x9, [x21]
	add	x0, x9, w8, uxtw #3
	bl	_virt_to_mfn
	ldr	x8, [x19]
	str	x0, [x8, x22, lsl #3]
	add	x22, x22, #1
	ldr	x0, [x19]
	bl	_ARRAY_SIZE
	cmp	x22, w0, uxtw
	b.lo	LBB0_5
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_DOMAIN_PAGES,4,2           ; @MAX_DOMAIN_PAGES
	.comm	_p2m_top,8,3                    ; @p2m_top
	.comm	_p2m_top_mfn,8,3                ; @p2m_top_mfn
	.comm	_P2M_ENTRIES_PER_PAGE,4,2       ; @P2M_ENTRIES_PER_PAGE
	.comm	_p2m_top_mfn_list,8,3           ; @p2m_top_mfn_list
.subsections_via_symbols
