	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmap_copy_pages                ## -- Begin function pmap_copy_pages
	.p2align	4, 0x90
_pmap_copy_pages:                       ## @pmap_copy_pages
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %ebx
	movq	%rcx, %r12
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %r15
	xorl	%eax, %eax
	callq	_cpu_dcache_wbinv_all
	xorl	%eax, %eax
	callq	_cpu_l2cache_wbinv_all
	testl	%ebx, %ebx
	jle	LBB0_3
## %bb.1:
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	movq	%r14, %rax
	shrq	%cl, %rax
	movl	(%r15,%rax,4), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_PAGE_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	andq	%r14, %r15
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	subq	%r15, %rsi
	movl	%ebx, %edi
	callq	_min
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	movq	%r12, %rdx
	shrq	%cl, %rdx
	movl	(%r13,%rdx,4), %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	_PAGE_MASK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r13
	andq	%r12, %r13
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	subq	%r13, %rsi
	movl	%eax, %edi
	callq	_min
	movl	%eax, %ebx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_VM_PAGE_TO_PHYS
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_VM_PAGE_TO_PHYS
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r15, %rsi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	%eax, %edx
	movq	%r13, %rcx
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movl	%ebx, %r8d
	callq	_pmap_copy_page_offs_generic
	movslq	%ebx, %rax
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	addq	%rax, %r14
	addq	%rax, %r12
	subl	%eax, %ebx
	jg	LBB0_2
LBB0_3:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SHIFT,8,3                 ## @PAGE_SHIFT
	.comm	_PAGE_MASK,8,3                  ## @PAGE_MASK
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmap_copy_pages                ; -- Begin function pmap_copy_pages
	.p2align	2
_pmap_copy_pages:                       ; @pmap_copy_pages
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x4
	mov	x20, x3
	mov	x26, x2
	mov	x22, x1
	mov	x23, x0
	bl	_cpu_dcache_wbinv_all
	bl	_cpu_l2cache_wbinv_all
	cmp	w19, #1
	b.lt	LBB0_2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
Lloh0:
	adrp	x21, _PAGE_SHIFT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PAGE_SHIFT@GOTPAGEOFF]
	ldr	x8, [x21]
	lsr	x8, x22, x8
	ldr	w24, [x23, x8, lsl #2]
Lloh2:
	adrp	x27, _PAGE_MASK@GOTPAGE
Lloh3:
	ldr	x27, [x27, _PAGE_MASK@GOTPAGEOFF]
	ldr	x8, [x27]
	and	x25, x8, x22
Lloh4:
	adrp	x28, _PAGE_SIZE@GOTPAGE
Lloh5:
	ldr	x28, [x28, _PAGE_SIZE@GOTPAGEOFF]
	ldr	x8, [x28]
	sub	x1, x8, x25
	mov	x0, x19
	bl	_min
	ldr	x8, [x21]
	lsr	x8, x20, x8
	mov	x21, x23
	ldr	w23, [x26, x8, lsl #2]
	ldr	x8, [x27]
	and	x27, x8, x20
	ldr	x8, [x28]
	sub	x1, x8, x27
	bl	_min
	mov	x28, x0
	mov	x0, x24
	bl	_VM_PAGE_TO_PHYS
	mov	x24, x0
	mov	x0, x23
	mov	x23, x21
	bl	_VM_PAGE_TO_PHYS
	mov	x2, x0
	mov	x0, x24
	mov	x1, x25
	mov	x3, x27
	mov	x4, x28
	bl	_pmap_copy_page_offs_generic
	sub	w19, w19, w28
	sxtw	x8, w28
	add	x22, x22, x8
	add	x20, x20, x8
	cmp	w19, #0
	b.gt	LBB0_1
LBB0_2:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SHIFT,8,3                 ; @PAGE_SHIFT
	.comm	_PAGE_MASK,8,3                  ; @PAGE_MASK
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
.subsections_via_symbols
