	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function resume_physical_mapping_init
_resume_physical_mapping_init:          ## @resume_physical_mapping_init
	.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	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	_PAGE_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_pgd_index
	movl	%eax, %r14d
	movq	_PTRS_PER_PGD@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jge	LBB0_18
## %bb.1:
	movslq	%r14d, %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %r15
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	addq	$4, %r15
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	incl	%r14d
	movq	_PTRS_PER_PGD@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jge	LBB0_18
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##       Child Loop BB0_13 Depth 3
	movq	%r15, %rdi
	callq	_resume_one_md_table_init
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r13
	movq	_max_low_pfn@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	jae	LBB0_17
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_PTRS_PER_PMD@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_17
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_13 Depth 3
	movq	_cpu_has_pse@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	_PAGE_KERNEL_LARGE_EXEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_pfn_pmd
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_set_pmd
	movq	_PTRS_PER_PTE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	%rax, %rbx
	movq	_max_low_pfn@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=2
	incl	%r12d
	movq	_PTRS_PER_PMD@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r12d
	jge	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_7 Depth=2
	addq	$4, %r13
	cmpq	%rax, %rbx
	jb	LBB0_7
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=2
	movq	%r13, %rdi
	callq	_resume_one_page_table_init
	testq	%rax, %rax
	je	LBB0_3
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	%rax, %r14
	movq	_PTRS_PER_PTE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rcx
	movq	_max_low_pfn@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rcx, %rcx
	jle	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=2
	cmpq	%rax, %rbx
	jae	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=2
	leaq	(%r14,%rcx,4), %r15
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_7 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	_PAGE_KERNEL_EXEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_pfn_pte
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_set_pte
	addq	$4, %r14
	incq	%rbx
	movq	_max_low_pfn@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%r15, %r14
	jae	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=3
	cmpq	%rax, %rbx
	jb	LBB0_13
	jmp	LBB0_15
LBB0_18:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_resume_map_numa_kva
	xorl	%eax, %eax
	jmp	LBB0_19
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_19:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_OFFSET,4,2                ## @PAGE_OFFSET
	.comm	_PTRS_PER_PGD,4,2               ## @PTRS_PER_PGD
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_max_low_pfn,8,3                ## @max_low_pfn
	.comm	_PTRS_PER_PMD,4,2               ## @PTRS_PER_PMD
	.comm	_cpu_has_pse,8,3                ## @cpu_has_pse
	.comm	_PAGE_KERNEL_LARGE_EXEC,4,2     ## @PAGE_KERNEL_LARGE_EXEC
	.comm	_PTRS_PER_PTE,4,2               ## @PTRS_PER_PTE
	.comm	_PAGE_KERNEL_EXEC,4,2           ## @PAGE_KERNEL_EXEC
	.no_dead_strip	_resume_physical_mapping_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function resume_physical_mapping_init
_resume_physical_mapping_init:          ; @resume_physical_mapping_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
Lloh0:
	adrp	x8, _PAGE_OFFSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_pgd_index
Lloh3:
	adrp	x8, _PTRS_PER_PGD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PTRS_PER_PGD@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ge	LBB0_14
; %bb.1:
	mov	x20, x0
	mov	x21, #0
Lloh6:
	adrp	x26, _max_low_pfn@GOTPAGE
Lloh7:
	ldr	x26, [x26, _max_low_pfn@GOTPAGEOFF]
Lloh8:
	adrp	x27, _PTRS_PER_PMD@GOTPAGE
Lloh9:
	ldr	x27, [x27, _PTRS_PER_PMD@GOTPAGEOFF]
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x22, x8, w0, sxtw #2
Lloh10:
	adrp	x25, _PAGE_KERNEL_EXEC@GOTPAGE
Lloh11:
	ldr	x25, [x25, _PAGE_KERNEL_EXEC@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #4
	add	w20, w20, #1
Lloh12:
	adrp	x8, _PTRS_PER_PGD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PTRS_PER_PGD@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w20, w8
	b.ge	LBB0_14
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;       Child Loop BB0_12 Depth 3
	mov	x0, x22
	bl	_resume_one_md_table_init
	cbz	x0, LBB0_15
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x26]
	ldr	w9, [x27]
	cmp	x21, x8
	ccmp	w9, #1, #8, lo
	b.lt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x23, x0
	mov	w19, #0
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=2
Lloh15:
	adrp	x8, _PAGE_KERNEL_LARGE_EXEC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PAGE_KERNEL_LARGE_EXEC@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_pfn_pmd
	mov	x1, x0
	mov	x0, x23
	bl	_set_pmd
Lloh18:
	adrp	x8, _PTRS_PER_PTE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PTRS_PER_PTE@GOTPAGEOFF]
Lloh20:
	ldrsw	x8, [x8]
	add	x21, x21, x8
	ldr	x8, [x26]
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	x23, x23, #4
	add	w19, w19, #1
	ldr	w9, [x27]
	cmp	w19, w9
	ccmp	x21, x8, #2, lt
	b.hs	LBB0_2
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_12 Depth 3
Lloh21:
	adrp	x8, _cpu_has_pse@GOTPAGE
Lloh22:
	ldr	x8, [x8, _cpu_has_pse@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	cbnz	x8, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	x0, x23
	bl	_resume_one_page_table_init
	cbz	x0, LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
Lloh24:
	adrp	x8, _PTRS_PER_PTE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _PTRS_PER_PTE@GOTPAGEOFF]
Lloh26:
	ldrsw	x9, [x8]
	ldr	x8, [x26]
	cmp	w9, #1
	ccmp	x21, x8, #2, ge
	b.hs	LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=2
	mov	x24, x0
	add	x28, x0, x9, lsl #2
LBB0_12:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w1, [x25]
	mov	x0, x21
	bl	_pfn_pte
	mov	x1, x0
	mov	x0, x24
	bl	_set_pte
	add	x24, x24, #4
	add	x21, x21, #1
	ldr	x8, [x26]
	cmp	x24, x28
	b.hs	LBB0_7
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=3
	cmp	x21, x8
	b.lo	LBB0_12
	b	LBB0_7
LBB0_14:
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_resume_map_numa_kva
	mov	w0, #0
	b	LBB0_16
LBB0_15:
Lloh27:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_16:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_OFFSET,4,2                ; @PAGE_OFFSET
	.comm	_PTRS_PER_PGD,4,2               ; @PTRS_PER_PGD
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_max_low_pfn,8,3                ; @max_low_pfn
	.comm	_PTRS_PER_PMD,4,2               ; @PTRS_PER_PMD
	.comm	_cpu_has_pse,8,3                ; @cpu_has_pse
	.comm	_PAGE_KERNEL_LARGE_EXEC,4,2     ; @PAGE_KERNEL_LARGE_EXEC
	.comm	_PTRS_PER_PTE,4,2               ; @PTRS_PER_PTE
	.comm	_PAGE_KERNEL_EXEC,4,2           ; @PAGE_KERNEL_EXEC
	.no_dead_strip	_resume_physical_mapping_init
.subsections_via_symbols
