	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmap_growkernel                ## -- Begin function pmap_growkernel
	.p2align	4, 0x90
_pmap_growkernel:                       ## @pmap_growkernel
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_pmap_curmaxkvaddr@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	cmpq	%rdi, %rsi
	jge	LBB0_4
## %bb.1:
	movq	%rdi, %r14
	movq	_kernel_pmap@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_L1_S_SIZE@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_pmap_grow_l2_bucket
	movq	(%r15), %rsi
	addq	(%r12), %rsi
	movq	%rsi, (%r15)
	cmpq	%r14, %rsi
	jl	LBB0_2
## %bb.3:
	xorl	%eax, %eax
	callq	_cpu_dcache_wbinv_all
	xorl	%eax, %eax
	callq	_cpu_l2cache_wbinv_all
	xorl	%eax, %eax
	callq	_cpu_tlb_flushD
	xorl	%eax, %eax
	callq	_cpu_cpwait
	movq	(%r15), %rax
	movq	_kernel_vm_end@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_kernel_pmap,4,2                ## @kernel_pmap
	.comm	_pmap_curmaxkvaddr,8,3          ## @pmap_curmaxkvaddr
	.comm	_L1_S_SIZE,8,3                  ## @L1_S_SIZE
	.comm	_kernel_vm_end,8,3              ## @kernel_vm_end
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmap_growkernel                ; -- Begin function pmap_growkernel
	.p2align	2
_pmap_growkernel:                       ; @pmap_growkernel
	.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
Lloh0:
	adrp	x21, _pmap_curmaxkvaddr@GOTPAGE
Lloh1:
	ldr	x21, [x21, _pmap_curmaxkvaddr@GOTPAGEOFF]
	ldr	x1, [x21]
	cmp	x1, x0
	b.ge	LBB0_4
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x8, _kernel_pmap@GOTPAGE
Lloh3:
	ldr	x8, [x8, _kernel_pmap@GOTPAGEOFF]
Lloh4:
	ldr	w20, [x8]
Lloh5:
	adrp	x22, _L1_S_SIZE@GOTPAGE
Lloh6:
	ldr	x22, [x22, _L1_S_SIZE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_pmap_grow_l2_bucket
	ldr	x8, [x22]
	ldr	x9, [x21]
	add	x1, x9, x8
	cmp	x1, x19
	str	x1, [x21]
	b.lt	LBB0_2
; %bb.3:
	bl	_cpu_dcache_wbinv_all
	bl	_cpu_l2cache_wbinv_all
	bl	_cpu_tlb_flushD
	bl	_cpu_cpwait
	ldr	x8, [x21]
Lloh7:
	adrp	x9, _kernel_vm_end@GOTPAGE
Lloh8:
	ldr	x9, [x9, _kernel_vm_end@GOTPAGEOFF]
Lloh9:
	str	x8, [x9]
LBB0_4:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_kernel_pmap,4,2                ; @kernel_pmap
	.comm	_pmap_curmaxkvaddr,8,3          ; @pmap_curmaxkvaddr
	.comm	_L1_S_SIZE,8,3                  ; @L1_S_SIZE
	.comm	_kernel_vm_end,8,3              ; @kernel_vm_end
.subsections_via_symbols
