	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_moea64_copy_page               ## -- Begin function moea64_copy_page
	.p2align	4, 0x90
_moea64_copy_page:                      ## @moea64_copy_page
	.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
	movl	%esi, %ebx
	movl	%edi, %r14d
	movl	%edx, %edi
	callq	_VM_PAGE_TO_PHYS
	movl	%eax, %r12d
	movl	%ebx, %edi
	callq	_VM_PAGE_TO_PHYS
	movl	%eax, %ebx
	movq	_hw_direct_map@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movl	%ebx, %edi
	callq	_PHYS_TO_DMAP
	movq	%rax, %rbx
	movl	%r12d, %edi
	callq	_PHYS_TO_DMAP
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memmove                        ## TAILCALL
LBB0_2:
	movq	_moea64_scratchpage_mtx@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	callq	_mtx_lock
	movl	%r14d, %edi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_moea64_set_scratchpage_pa
	movl	%r14d, %edi
	movl	$1, %esi
	movl	%r12d, %edx
	callq	_moea64_set_scratchpage_pa
	movq	_moea64_scratchpage_va@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rsi
	movq	8(%rax), %rdi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memmove
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mtx_unlock                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_hw_direct_map,8,3              ## @hw_direct_map
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.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_copy_page               ; -- Begin function moea64_copy_page
	.p2align	2
_moea64_copy_page:                      ; @moea64_copy_page
	.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	x21, x1
	mov	x20, x0
	mov	x0, x2
	bl	_VM_PAGE_TO_PHYS
	mov	x19, x0
	mov	x0, x21
	bl	_VM_PAGE_TO_PHYS
	mov	x21, x0
Lloh0:
	adrp	x8, _hw_direct_map@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hw_direct_map@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_PHYS_TO_DMAP
	mov	x20, x0
	mov	x0, x19
	bl	_PHYS_TO_DMAP
Lloh3:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x1, x20
	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
	b	_memmove
LBB0_2:
Lloh6:
	adrp	x22, _moea64_scratchpage_mtx@GOTPAGE
Lloh7:
	ldr	x22, [x22, _moea64_scratchpage_mtx@GOTPAGEOFF]
	mov	x0, x22
	bl	_mtx_lock
	mov	x0, x20
	mov	w1, #0
	mov	x2, x21
	bl	_moea64_set_scratchpage_pa
	mov	x0, x20
	mov	w1, #1
	mov	x2, x19
	bl	_moea64_set_scratchpage_pa
Lloh8:
	adrp	x8, _moea64_scratchpage_va@GOTPAGE
Lloh9:
	ldr	x8, [x8, _moea64_scratchpage_va@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldp	x1, x0, [x8]
Lloh11:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	bl	_memmove
	mov	x0, x22
	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
	b	_mtx_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_hw_direct_map,8,3              ; @hw_direct_map
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_moea64_scratchpage_mtx,4,2     ; @moea64_scratchpage_mtx
	.comm	_moea64_scratchpage_va,8,3      ; @moea64_scratchpage_va
.subsections_via_symbols
