	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kmem_init_zero_region          ## -- Begin function kmem_init_zero_region
	.p2align	4, 0x90
_kmem_init_zero_region:                 ## @kmem_init_zero_region
	.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	_ZERO_REGION_SIZE@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_kva_alloc
	movq	_VM_ALLOC_NORMAL@GOTPCREL(%rip), %rcx
	movq	_VM_ALLOC_NOOBJ@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_VM_ALLOC_WIRED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	%rax, %r12
	movq	_VM_ALLOC_ZERO@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_vm_page_alloc
	movq	%rax, -48(%rbp)
	movq	_PG_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	%rax, %rdi
	callq	_pmap_zero_page
LBB0_2:
	movq	(%r15), %rdx
	testq	%rdx, %rdx
	jle	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %r14
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%rbx,%r12), %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_pmap_qenter
	addq	(%r13), %rbx
	movq	(%r15), %rdx
	cmpq	%rdx, %rbx
	jl	LBB0_4
LBB0_5:
	movq	_kernel_pmap@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	%r12, %rdx
	movq	_VM_PROT_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rsi
	callq	_pmap_protect
	movq	_zero_region@GOTPCREL(%rip), %rax
	movq	%r12, (%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ZERO_REGION_SIZE,8,3           ## @ZERO_REGION_SIZE
	.comm	_VM_ALLOC_NORMAL,4,2            ## @VM_ALLOC_NORMAL
	.comm	_VM_ALLOC_NOOBJ,4,2             ## @VM_ALLOC_NOOBJ
	.comm	_VM_ALLOC_WIRED,4,2             ## @VM_ALLOC_WIRED
	.comm	_VM_ALLOC_ZERO,4,2              ## @VM_ALLOC_ZERO
	.comm	_PG_ZERO,4,2                    ## @PG_ZERO
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_kernel_pmap,4,2                ## @kernel_pmap
	.comm	_VM_PROT_READ,4,2               ## @VM_PROT_READ
	.comm	_zero_region,8,3                ## @zero_region
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kmem_init_zero_region          ; -- Begin function kmem_init_zero_region
	.p2align	2
_kmem_init_zero_region:                 ; @kmem_init_zero_region
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
Lloh0:
	adrp	x20, _ZERO_REGION_SIZE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ZERO_REGION_SIZE@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_kva_alloc
	mov	x19, x0
Lloh2:
	adrp	x8, _VM_ALLOC_NORMAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VM_ALLOC_NORMAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _VM_ALLOC_NOOBJ@GOTPAGE
Lloh6:
	ldr	x9, [x9, _VM_ALLOC_NOOBJ@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh8:
	adrp	x9, _VM_ALLOC_WIRED@GOTPAGE
Lloh9:
	ldr	x9, [x9, _VM_ALLOC_WIRED@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh11:
	adrp	x9, _VM_ALLOC_ZERO@GOTPAGE
Lloh12:
	ldr	x9, [x9, _VM_ALLOC_ZERO@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, #0
	mov	w1, #0
	bl	_vm_page_alloc
	str	x0, [sp, #8]
	ldr	w8, [x0]
Lloh14:
	adrp	x9, _PG_ZERO@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PG_ZERO@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.1:
	bl	_pmap_zero_page
LBB0_2:
	ldr	x8, [x20]
	cmp	x8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x21, #0
Lloh17:
	adrp	x22, _PAGE_SIZE@GOTPAGE
Lloh18:
	ldr	x22, [x22, _PAGE_SIZE@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x21, x19
	add	x1, sp, #8
	mov	w2, #1
	bl	_pmap_qenter
	ldr	x9, [x22]
	ldr	x8, [x20]
	add	x21, x9, x21
	cmp	x21, x8
	b.lt	LBB0_4
LBB0_5:
Lloh19:
	adrp	x9, _kernel_pmap@GOTPAGE
Lloh20:
	ldr	x9, [x9, _kernel_pmap@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x9]
	add	x2, x8, x19
Lloh22:
	adrp	x8, _VM_PROT_READ@GOTPAGE
Lloh23:
	ldr	x8, [x8, _VM_PROT_READ@GOTPAGEOFF]
Lloh24:
	ldr	w3, [x8]
	mov	x1, x19
	bl	_pmap_protect
Lloh25:
	adrp	x8, _zero_region@GOTPAGE
Lloh26:
	ldr	x8, [x8, _zero_region@GOTPAGEOFF]
Lloh27:
	str	x19, [x8]
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotStr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_ZERO_REGION_SIZE,8,3           ; @ZERO_REGION_SIZE
	.comm	_VM_ALLOC_NORMAL,4,2            ; @VM_ALLOC_NORMAL
	.comm	_VM_ALLOC_NOOBJ,4,2             ; @VM_ALLOC_NOOBJ
	.comm	_VM_ALLOC_WIRED,4,2             ; @VM_ALLOC_WIRED
	.comm	_VM_ALLOC_ZERO,4,2              ; @VM_ALLOC_ZERO
	.comm	_PG_ZERO,4,2                    ; @PG_ZERO
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_kernel_pmap,4,2                ; @kernel_pmap
	.comm	_VM_PROT_READ,4,2               ; @VM_PROT_READ
	.comm	_zero_region,8,3                ; @zero_region
.subsections_via_symbols
