	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmap_bootstrap_l3
_pmap_bootstrap_l3:                     ## @pmap_bootstrap_l3
	.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	%edx, %ebx
	movl	%esi, %r12d
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	movq	_L2_OFFSET@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	movl	(%rax), %eax
	andl	%esi, %eax
	sete	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	movq	_kernel_pmap@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	callq	_pmap_l2
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r15
	xorl	%r14d, %r14d
	subl	(%r15), %r14d
	movl	%r12d, %edi
	callq	_pmap_l2_index
	movq	%rax, %r13
	movq	_VM_MAX_KERNEL_ADDRESS@GOTPCREL(%rip), %rax
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	cmpl	%r12d, (%rax)
	jle	LBB0_3
## %bb.1:
	movslq	%r14d, %rax
	andq	-56(%rbp), %rax                 ## 8-byte Folded Reload
	leaq	(%rax,%r13,4), %r14
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	movq	_Ln_ENTRIES@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	setb	%dil
	leaq	L_.str.1(%rip), %rsi
	callq	_KASSERT
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_pmap_early_vtophys
	cltd
	idivl	(%r15)
	movq	_PTE_PPN0_S@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	shll	%cl, %eax
	movq	_PTE_V@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_pmap_store
	movq	_VM_MAX_KERNEL_ADDRESS@GOTPCREL(%rip), %rax
	addl	(%r15), %ebx
	movq	_L2_SIZE@GOTPCREL(%rip), %rcx
	addl	(%rcx), %r12d
	incq	%r13
	addq	$4, %r14
	cmpl	(%rax), %r12d
	jl	LBB0_2
LBB0_3:
	movslq	-44(%rbp), %rdi                 ## 4-byte Folded Reload
	movl	%ebx, %edx
	subl	%edi, %edx
	xorl	%esi, %esi
	callq	_memset
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_L2_OFFSET,4,2                  ## @L2_OFFSET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid virtual address"

	.comm	_kernel_pmap,4,2                ## @kernel_pmap
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_VM_MAX_KERNEL_ADDRESS,4,2      ## @VM_MAX_KERNEL_ADDRESS
	.comm	_Ln_ENTRIES,8,3                 ## @Ln_ENTRIES
L_.str.1:                               ## @.str.1
	.asciz	"Invalid L2 index"

	.comm	_PTE_V,4,2                      ## @PTE_V
	.comm	_PTE_PPN0_S,4,2                 ## @PTE_PPN0_S
	.comm	_L2_SIZE,8,3                    ## @L2_SIZE
	.no_dead_strip	_pmap_bootstrap_l3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pmap_bootstrap_l3
_pmap_bootstrap_l3:                     ; @pmap_bootstrap_l3
	.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
	mov	x23, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _L2_OFFSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _L2_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w1
	cset	w0, eq
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
Lloh5:
	adrp	x8, _kernel_pmap@GOTPAGE
Lloh6:
	ldr	x8, [x8, _kernel_pmap@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_pmap_l2
	mov	x24, x0
Lloh8:
	adrp	x26, _PAGE_SIZE@GOTPAGE
Lloh9:
	ldr	x26, [x26, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w19, [x26]
	mov	x0, x20
	bl	_pmap_l2_index
Lloh10:
	adrp	x10, _VM_MAX_KERNEL_ADDRESS@GOTPAGE
Lloh11:
	ldr	x10, [x10, _VM_MAX_KERNEL_ADDRESS@GOTPAGEOFF]
	ldr	w8, [x10]
	str	x23, [sp, #8]                   ; 8-byte Folded Spill
                                        ; kill: def $w23 killed $w23 killed $x23
	cmp	w8, w20
	b.le	LBB0_3
; %bb.1:
	mov	x22, x0
	neg	w8, w19
	sxtw	x8, w8
	and	x8, x8, x24
Lloh12:
	adrp	x19, _PTE_V@GOTPAGE
Lloh13:
	ldr	x19, [x19, _PTE_V@GOTPAGEOFF]
	add	x25, x8, x0, lsl #2
Lloh14:
	adrp	x27, _PTE_PPN0_S@GOTPAGE
Lloh15:
	ldr	x27, [x27, _PTE_PPN0_S@GOTPAGEOFF]
Lloh16:
	adrp	x28, _L2_SIZE@GOTPAGE
Lloh17:
	ldr	x28, [x28, _L2_SIZE@GOTPAGEOFF]
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	mov	x23, x8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
Lloh18:
	adrp	x8, _Ln_ENTRIES@GOTPAGE
Lloh19:
	ldr	x8, [x8, _Ln_ENTRIES@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cmp	x22, x8
	cset	w0, lo
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x24, x10
	bl	_KASSERT
	mov	x0, x21
	mov	x1, x23
	bl	_pmap_early_vtophys
	ldr	w8, [x26]
	sdiv	w8, w0, w8
	ldr	w9, [x19]
	ldr	w10, [x27]
	lsl	w8, w8, w10
	orr	w1, w8, w9
	mov	x0, x25
	bl	_pmap_store
	mov	x10, x24
	ldr	w8, [x26]
	add	w23, w8, w23
	add	x22, x22, #1
	ldr	w8, [x28]
	ldr	w9, [x24]
	add	x25, x25, #4
	add	w20, w20, w8
	cmp	w20, w9
	b.lt	LBB0_2
LBB0_3:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	sxtw	x0, w8
	sub	w2, w23, w8
	mov	w1, #0
	bl	_memset
	mov	x0, x23
	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 AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_L2_OFFSET,4,2                  ; @L2_OFFSET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid virtual address"

	.comm	_kernel_pmap,4,2                ; @kernel_pmap
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_VM_MAX_KERNEL_ADDRESS,4,2      ; @VM_MAX_KERNEL_ADDRESS
	.comm	_Ln_ENTRIES,8,3                 ; @Ln_ENTRIES
l_.str.1:                               ; @.str.1
	.asciz	"Invalid L2 index"

	.comm	_PTE_V,4,2                      ; @PTE_V
	.comm	_PTE_PPN0_S,4,2                 ; @PTE_PPN0_S
	.comm	_L2_SIZE,8,3                    ; @L2_SIZE
	.no_dead_strip	_pmap_bootstrap_l3
.subsections_via_symbols
