	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmap_grow_map
_pmap_grow_map:                         ## @pmap_grow_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movl	%esi, %r14d
	movl	%edi, %r15d
	movq	_VM_ALLOC_NOOBJ@GOTPCREL(%rip), %rax
	movq	_VM_ALLOC_WIRED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_vm_page_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rdi
	callq	_VM_PAGE_TO_PHYS
	movl	%eax, %ebx
	testq	%r12, %r12
	je	LBB0_4
## %bb.3:
	movl	%ebx, (%r12)
LBB0_4:
	movq	_kernel_pmap@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_pmap_get_l2_bucket
	movq	(%rax), %r13
	movl	%r15d, %edi
	callq	_l2pte_index
	movq	%rax, %r15
	leaq	(,%rax,4), %r12
	addq	%r13, %r12
	movq	_L2_S_PROTO@GOTPCREL(%rip), %rax
	movq	_PTE_KERNEL@GOTPCREL(%rip), %rcx
	movq	_VM_PROT_READ@GOTPCREL(%rip), %rdx
	movq	_VM_PROT_WRITE@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rdx), %esi
	movl	(%rcx), %edi
	orl	%r14d, %ebx
	orl	(%rax), %ebx
	callq	_L2_S_PROT
	orl	%ebx, %eax
	movl	%eax, (%r13,%r15,4)
	movq	%r12, %rdi
	callq	_PTE_SYNC
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_1:
	movl	$1, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VM_ALLOC_NOOBJ,4,2             ## @VM_ALLOC_NOOBJ
	.comm	_VM_ALLOC_WIRED,4,2             ## @VM_ALLOC_WIRED
	.comm	_kernel_pmap,4,2                ## @kernel_pmap
	.comm	_L2_S_PROTO,4,2                 ## @L2_S_PROTO
	.comm	_PTE_KERNEL,4,2                 ## @PTE_KERNEL
	.comm	_VM_PROT_READ,4,2               ## @VM_PROT_READ
	.comm	_VM_PROT_WRITE,4,2              ## @VM_PROT_WRITE
	.no_dead_strip	_pmap_grow_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pmap_grow_map
_pmap_grow_map:                         ; @pmap_grow_map
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _VM_ALLOC_NOOBJ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VM_ALLOC_NOOBJ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _VM_ALLOC_WIRED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VM_ALLOC_WIRED@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, #0
	mov	w1, #0
	bl	_vm_page_alloc
	cbz	x0, LBB0_4
; %bb.1:
	bl	_VM_PAGE_TO_PHYS
	mov	x21, x0
	cbz	x22, LBB0_3
; %bb.2:
	str	w21, [x22]
LBB0_3:
Lloh6:
	adrp	x8, _kernel_pmap@GOTPAGE
Lloh7:
	ldr	x8, [x8, _kernel_pmap@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_pmap_get_l2_bucket
	ldr	x22, [x0]
	mov	x0, x20
	bl	_l2pte_index
Lloh9:
	adrp	x8, _L2_S_PROTO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _L2_S_PROTO@GOTPAGEOFF]
	add	x20, x22, x0, lsl #2
Lloh11:
	ldr	w22, [x8]
Lloh12:
	adrp	x8, _PTE_KERNEL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PTE_KERNEL@GOTPAGEOFF]
Lloh14:
	adrp	x9, _VM_PROT_READ@GOTPAGE
Lloh15:
	ldr	x9, [x9, _VM_PROT_READ@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	ldr	w8, [x9]
Lloh18:
	adrp	x9, _VM_PROT_WRITE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _VM_PROT_WRITE@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_L2_S_PROT
	orr	w8, w21, w19
	orr	w8, w8, w22
	orr	w8, w8, w0
	str	w8, [x20]
	mov	x0, x20
	bl	_PTE_SYNC
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	mov	w0, #1
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_VM_ALLOC_NOOBJ,4,2             ; @VM_ALLOC_NOOBJ
	.comm	_VM_ALLOC_WIRED,4,2             ; @VM_ALLOC_WIRED
	.comm	_kernel_pmap,4,2                ; @kernel_pmap
	.comm	_L2_S_PROTO,4,2                 ; @L2_S_PROTO
	.comm	_PTE_KERNEL,4,2                 ; @PTE_KERNEL
	.comm	_VM_PROT_READ,4,2               ; @VM_PROT_READ
	.comm	_VM_PROT_WRITE,4,2              ; @VM_PROT_WRITE
	.no_dead_strip	_pmap_grow_map
.subsections_via_symbols
