	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testl	%r8d, %r8d
	jle	LBB0_5
## %bb.1:
	movq	%rcx, %r12
	movq	%rsi, %rbx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r15d, %rax
	addq	%rax, %rbx
	addq	%rax, %r12
	movl	-88(%rbp), %r8d                 ## 4-byte Reload
	subl	%r15d, %r8d
	jle	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	movq	%rbx, %rax
	shrq	%cl, %rax
	movq	_PAGE_MASK@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r13
	movq	%r13, %r14
	andq	%rbx, %r14
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx,%rax,4), %eax
	movl	%eax, -56(%rbp)
	andq	%r12, %r13
	movq	%r12, %rax
	shrq	%cl, %rax
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movl	(%rcx,%rax,4), %eax
	movl	%eax, -52(%rbp)
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	subq	%r14, %rsi
	movl	%r8d, -88(%rbp)                 ## 4-byte Spill
	movl	%r8d, %edi
	callq	_min
	movq	(%r15), %rsi
	subq	%r13, %rsi
	movl	%eax, %edi
	callq	_min
	movl	%eax, %r15d
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-56(%rbp), %rdi
	leaq	-80(%rbp), %rsi
	movl	$2, %edx
	callq	_pmap_map_io_transient
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	addq	-80(%rbp), %r14
	addq	-72(%rbp), %r13
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_memmove
	movl	-84(%rbp), %edi                 ## 4-byte Reload
	callq	___predict_false
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-56(%rbp), %rdi
	leaq	-80(%rbp), %rsi
	movl	$2, %edx
	callq	_pmap_unmap_io_transient
	jmp	LBB0_4
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_MASK,8,3                  ## @PAGE_MASK
	.comm	_PAGE_SHIFT,8,3                 ## @PAGE_SHIFT
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_FALSE,4,2                      ## @FALSE
.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:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	str	x2, [sp, #8]                    ; 8-byte Folded Spill
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	cmp	w4, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x19, x4
	mov	x20, x3
	mov	x22, x1
	mov	x23, x0
Lloh3:
	adrp	x28, _PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x28, [x28, _PAGE_SIZE@GOTPAGEOFF]
Lloh5:
	adrp	x21, _FALSE@GOTPAGE
Lloh6:
	ldr	x21, [x21, _FALSE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x8, x24
	sxtw	x8, w8
	add	x22, x22, x8
	add	x20, x20, x8
	sub	w19, w19, w24
	cmp	w19, #0
	b.le	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
Lloh7:
	adrp	x8, _PAGE_MASK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PAGE_MASK@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	and	x27, x8, x22
Lloh10:
	adrp	x9, _PAGE_SHIFT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _PAGE_SHIFT@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	lsr	x10, x22, x9
	ldr	w10, [x23, x10, lsl #2]
	and	x26, x8, x20
	lsr	x8, x20, x9
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w8, [x9, x8, lsl #2]
	stp	w10, w8, [sp, #32]
	ldr	x8, [x28]
	sub	x1, x8, x27
	mov	x0, x19
	bl	_min
	ldr	x8, [x28]
	sub	x1, x8, x26
	bl	_min
	mov	x24, x0
	ldr	w3, [x21]
	add	x0, sp, #32
	add	x1, sp, #16
	mov	w2, #2
	bl	_pmap_map_io_transient
	mov	x25, x0
	ldp	x8, x9, [sp, #16]
	add	x1, x8, x27
	add	x0, x9, x26
	mov	x2, x24
	bl	_memmove
	mov	x0, x25
	bl	___predict_false
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w3, [x21]
	add	x0, sp, #32
	add	x1, sp, #16
	mov	w2, #2
	bl	_pmap_unmap_io_transient
	b	LBB0_2
LBB0_5:
	ldr	x8, [sp, #40]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_MASK,8,3                  ; @PAGE_MASK
	.comm	_PAGE_SHIFT,8,3                 ; @PAGE_SHIFT
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_FALSE,4,2                      ; @FALSE
.subsections_via_symbols
