	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function moea64_copy_pages_nodmap
_moea64_copy_pages_nodmap:              ## @moea64_copy_pages_nodmap
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %ebx
	movq	%r8, %r12
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r14
	movq	%rsi, %r15
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movq	_moea64_scratchpage_mtx@GOTPCREL(%rip), %rdi
	callq	_mtx_lock
	testl	%ebx, %ebx
	jle	LBB0_3
## %bb.1:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movq	_PAGE_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	andq	%r14, %r13
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	subq	%r13, %rsi
	movl	%ebx, %edi
	callq	_min
	movl	%eax, %ebx
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	movq	%r14, %rax
	shrq	%cl, %rax
	movl	(%r15,%rax,4), %edi
	callq	_VM_PAGE_TO_PHYS
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_moea64_set_scratchpage_pa
	movq	_moea64_scratchpage_va@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	(%rax), %r13
	movq	_PAGE_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	andq	%r12, %r15
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	subq	%r15, %rsi
	movl	%ebx, %edi
	callq	_min
	movl	%eax, %ebx
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	movq	%r12, %rax
	shrq	%cl, %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%rax,4), %edi
	callq	_VM_PAGE_TO_PHYS
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	$1, %esi
	movl	%eax, %edx
	callq	_moea64_set_scratchpage_pa
	movq	_moea64_scratchpage_va@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	8(%rax), %r15
	movq	%r15, %rdi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_memmove
	movslq	%ebx, %rax
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	addq	%rax, %r14
	addq	%rax, %r12
	subl	%eax, %ebx
	jg	LBB0_2
LBB0_3:
	movq	_moea64_scratchpage_mtx@GOTPCREL(%rip), %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mtx_unlock                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_moea64_scratchpage_mtx,4,2     ## @moea64_scratchpage_mtx
	.comm	_PAGE_MASK,8,3                  ## @PAGE_MASK
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_PAGE_SHIFT,8,3                 ## @PAGE_SHIFT
	.comm	_moea64_scratchpage_va,8,3      ## @moea64_scratchpage_va
	.no_dead_strip	_moea64_copy_pages_nodmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function moea64_copy_pages_nodmap
_moea64_copy_pages_nodmap:              ; @moea64_copy_pages_nodmap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x5
	mov	x20, x4
	str	x3, [sp, #8]                    ; 8-byte Folded Spill
	mov	x22, x2
	mov	x27, x1
	mov	x21, x0
Lloh0:
	adrp	x0, _moea64_scratchpage_mtx@GOTPAGE
Lloh1:
	ldr	x0, [x0, _moea64_scratchpage_mtx@GOTPAGEOFF]
	bl	_mtx_lock
	cmp	w19, #1
	b.lt	LBB0_3
; %bb.1:
Lloh2:
	adrp	x23, _PAGE_SHIFT@GOTPAGE
Lloh3:
	ldr	x23, [x23, _PAGE_SHIFT@GOTPAGEOFF]
Lloh4:
	adrp	x24, _moea64_scratchpage_va@GOTPAGE
Lloh5:
	ldr	x24, [x24, _moea64_scratchpage_va@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
Lloh6:
	adrp	x28, _PAGE_MASK@GOTPAGE
Lloh7:
	ldr	x28, [x28, _PAGE_MASK@GOTPAGEOFF]
	ldr	x8, [x28]
	and	x26, x8, x22
Lloh8:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	sub	x1, x8, x26
	mov	x0, x19
	bl	_min
	mov	x25, x0
	ldr	x8, [x23]
	lsr	x8, x22, x8
	ldr	w0, [x27, x8, lsl #2]
	bl	_VM_PAGE_TO_PHYS
	mov	x2, x0
	mov	x0, x21
	mov	w1, #0
	bl	_moea64_set_scratchpage_pa
	ldr	x8, [x24]
	ldr	x8, [x8]
	add	x26, x8, x26
	ldr	x8, [x28]
	mov	x28, x27
	and	x27, x8, x20
Lloh11:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	sub	x1, x8, x27
	mov	x0, x25
	bl	_min
	mov	x25, x0
	ldr	x8, [x23]
	lsr	x8, x20, x8
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w0, [x9, x8, lsl #2]
	bl	_VM_PAGE_TO_PHYS
	mov	x2, x0
	mov	x0, x21
	mov	w1, #1
	bl	_moea64_set_scratchpage_pa
	ldr	x8, [x24]
	ldr	x8, [x8, #8]
	add	x0, x8, x27
	mov	x27, x28
	mov	x1, x26
	mov	x2, x25
	bl	_memmove
	sxtw	x8, w25
	add	x22, x22, x8
	add	x20, x20, x8
	sub	w19, w19, w25
	cmp	w19, #0
	b.gt	LBB0_2
LBB0_3:
Lloh14:
	adrp	x0, _moea64_scratchpage_mtx@GOTPAGE
Lloh15:
	ldr	x0, [x0, _moea64_scratchpage_mtx@GOTPAGEOFF]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_mtx_unlock
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_moea64_scratchpage_mtx,4,2     ; @moea64_scratchpage_mtx
	.comm	_PAGE_MASK,8,3                  ; @PAGE_MASK
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_PAGE_SHIFT,8,3                 ; @PAGE_SHIFT
	.comm	_moea64_scratchpage_va,8,3      ; @moea64_scratchpage_va
	.no_dead_strip	_moea64_copy_pages_nodmap
.subsections_via_symbols
