	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	testl	%r8d, %r8d
	jle	LBB0_9
## %bb.1:
	movq	%rcx, %r12
	movq	%rsi, %r15
                                        ## implicit-def: $rax
                                        ## kill: killed $rax
                                        ## implicit-def: $rax
                                        ## kill: killed $rax
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	callq	_PHYS_TO_DMAP
	addq	%r14, %rax
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_memmove
	movslq	%ebx, %rax
	addq	%rax, %r15
	addq	%rax, %r12
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	subl	%eax, %r8d
	jle	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	movq	%r15, %rax
	shrq	%cl, %rax
	movq	_PAGE_MASK@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r14
	movq	%r14, %r13
	andq	%r15, %r13
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx,%rax,8), %rax
	movl	(%rax), %ebx
	andq	%r12, %r14
	movq	%r12, %rax
	shrq	%cl, %rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	subq	%r13, %rsi
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movl	%r8d, %edi
	callq	_min
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	subq	%r14, %rsi
	movl	%eax, %edi
	callq	_min
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_PHYS_IN_DMAP
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	___predict_false
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str(%rip), %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_panic
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_PHYS_TO_DMAP
	addq	%r13, %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	callq	_PHYS_IN_DMAP
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	___predict_false
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	callq	_panic
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_8
LBB0_9:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"!DMAP a %lx"

L_.str.1:                               ## @.str.1
	.asciz	"!DMAP b %lx"

.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, #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
	stp	x0, x2, [sp]                    ; 16-byte Folded Spill
	cmp	w4, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x19, x4
	mov	x20, x3
	mov	x22, x1
                                        ; implicit-def: $x26
                                        ; implicit-def: $x27
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	bl	_PHYS_TO_DMAP
	add	x27, x0, x23
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x27
	mov	x1, x26
	mov	x2, x28
	bl	_memmove
	sxtw	x8, w28
	add	x22, x22, x8
	add	x20, x20, x8
	sub	w19, w19, w28
	cmp	w19, #0
	b.le	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
Lloh0:
	adrp	x8, _PAGE_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	and	x21, x8, x22
Lloh3:
	adrp	x9, _PAGE_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PAGE_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	lsr	x10, x22, x9
	ldr	x11, [sp]                       ; 8-byte Folded Reload
	ldr	x10, [x11, x10, lsl #3]
	ldr	w25, [x10]
	and	x23, x8, x20
	lsr	x8, x20, x9
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x8, [x9, x8, lsl #3]
	ldr	w24, [x8]
Lloh6:
	adrp	x28, _PAGE_SIZE@GOTPAGE
Lloh7:
	ldr	x28, [x28, _PAGE_SIZE@GOTPAGEOFF]
	ldr	x8, [x28]
	sub	x1, x8, x21
	mov	x0, x19
	bl	_min
	ldr	x8, [x28]
	sub	x1, x8, x23
	bl	_min
	mov	x28, x0
	mov	x0, x25
	bl	_PHYS_IN_DMAP
	cmp	w0, #0
	cset	w0, eq
	bl	___predict_false
	cbz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x25
	bl	_panic
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x25
	bl	_PHYS_TO_DMAP
	add	x26, x0, x21
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	bl	_PHYS_IN_DMAP
	cmp	w0, #0
	cset	w0, eq
	bl	___predict_false
	cbz	x0, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x24
	bl	_panic
	b	LBB0_3
LBB0_9:
	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
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.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
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"!DMAP a %lx"

l_.str.1:                               ; @.str.1
	.asciz	"!DMAP b %lx"

.subsections_via_symbols
