	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_moea64_zero_page_area          ## -- Begin function moea64_zero_page_area
	.p2align	4, 0x90
_moea64_zero_page_area:                 ## @moea64_zero_page_area
	.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
	movl	%ecx, %r14d
	movl	%edx, %ebx
	movl	%edi, %r15d
	movl	%esi, %edi
	callq	_VM_PAGE_TO_PHYS
	movl	%eax, %r12d
	leal	(%r14,%rbx), %eax
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_panic
LBB0_2:
	movq	_hw_direct_map@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	movl	%r12d, %edi
	callq	_PHYS_TO_DMAP
	movslq	%ebx, %rdi
	addq	%rax, %rdi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bzero                          ## TAILCALL
LBB0_4:
	movq	_moea64_scratchpage_mtx@GOTPCREL(%rip), %r13
	movq	%r13, %rdi
	callq	_mtx_lock
	movl	%r15d, %edi
	xorl	%esi, %esi
	movl	%r12d, %edx
	callq	_moea64_set_scratchpage_pa
	movq	_moea64_scratchpage_va@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%ebx, %rdi
	addq	(%rax), %rdi
	movl	%r14d, %esi
	callq	_bzero
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mtx_unlock                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"moea64_zero_page: size + off > PAGE_SIZE"

	.comm	_hw_direct_map,8,3              ## @hw_direct_map
	.comm	_moea64_scratchpage_mtx,4,2     ## @moea64_scratchpage_mtx
	.comm	_moea64_scratchpage_va,8,3      ## @moea64_scratchpage_va
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_moea64_zero_page_area          ; -- Begin function moea64_zero_page_area
	.p2align	2
_moea64_zero_page_area:                 ; @moea64_zero_page_area
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x20, x2
	mov	x21, x0
	mov	x0, x1
	bl	_VM_PAGE_TO_PHYS
	mov	x22, x0
Lloh0:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w9, w19, w20
	cmp	w9, w8
	b.le	LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_panic
LBB0_2:
Lloh5:
	adrp	x8, _hw_direct_map@GOTPAGE
Lloh6:
	ldr	x8, [x8, _hw_direct_map@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x22
	bl	_PHYS_TO_DMAP
	add	x0, x0, w20, sxtw
	mov	x1, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_bzero
LBB0_4:
Lloh8:
	adrp	x23, _moea64_scratchpage_mtx@GOTPAGE
Lloh9:
	ldr	x23, [x23, _moea64_scratchpage_mtx@GOTPAGEOFF]
	mov	x0, x23
	bl	_mtx_lock
	mov	x0, x21
	mov	w1, #0
	mov	x2, x22
	bl	_moea64_set_scratchpage_pa
Lloh10:
	adrp	x8, _moea64_scratchpage_va@GOTPAGE
Lloh11:
	ldr	x8, [x8, _moea64_scratchpage_va@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	ldr	x8, [x8]
	add	x0, x8, w20, sxtw
	mov	x1, x19
	bl	_bzero
	mov	x0, x23
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_mtx_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"moea64_zero_page: size + off > PAGE_SIZE"

	.comm	_hw_direct_map,8,3              ; @hw_direct_map
	.comm	_moea64_scratchpage_mtx,4,2     ; @moea64_scratchpage_mtx
	.comm	_moea64_scratchpage_va,8,3      ; @moea64_scratchpage_va
.subsections_via_symbols
