	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmap_copy_page_offs_generic    ## -- Begin function pmap_copy_page_offs_generic
	.p2align	4, 0x90
_pmap_copy_page_offs_generic:           ## @pmap_copy_page_offs_generic
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r13d
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, %ebx
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	%edi, %r14d
	movq	_cmtx@GOTPCREL(%rip), %rdi
	callq	_mtx_lock
	movq	_L2_S_PROTO@GOTPCREL(%rip), %r12
	orl	(%r12), %r14d
	movq	_PTE_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_VM_PROT_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_L2_S_PROT
	orl	%r14d, %eax
	movq	_pte_l2_s_cache_mode@GOTPCREL(%rip), %r14
	orl	(%r14), %eax
	movq	_csrc_pte@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	movl	%eax, (%rdi)
	callq	_PTE_SYNC
	orl	(%r12), %ebx
	movl	(%r15), %edi
	movq	_VM_PROT_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_L2_S_PROT
	orl	%ebx, %eax
	orl	(%r14), %eax
	movq	_cdst_pte@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	movl	%eax, (%rdi)
	callq	_PTE_SYNC
	movq	_csrcp@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_cpu_tlb_flushD_SE
	movq	_cdstp@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_cpu_tlb_flushD_SE
	xorl	%eax, %eax
	callq	_cpu_cpwait
	movslq	(%r12), %rsi
	movslq	-44(%rbp), %rbx                 ## 4-byte Folded Reload
	addq	%rbx, %rsi
	movslq	(%r14), %rdi
	movslq	-48(%rbp), %r15                 ## 4-byte Folded Reload
	addq	%r15, %rdi
	movq	%r13, %rdx
	callq	_memmove
	movq	_cmtx@GOTPCREL(%rip), %rdi
	callq	_mtx_unlock
	movl	(%r12), %edi
	addl	%ebx, %edi
	movl	%r13d, %esi
	callq	_cpu_dcache_inv_range
	movl	(%r14), %edi
	addl	%r15d, %edi
	movl	%r13d, %esi
	callq	_cpu_dcache_wbinv_range
	addl	(%r12), %ebx
	movl	%ebx, %edi
	movl	%r13d, %esi
	callq	_cpu_l2cache_inv_range
	addl	(%r14), %r15d
	movl	%r15d, %edi
	movl	%r13d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cpu_l2cache_wbinv_range        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_cmtx,4,2                       ## @cmtx
	.comm	_L2_S_PROTO,4,2                 ## @L2_S_PROTO
	.comm	_PTE_KERNEL,4,2                 ## @PTE_KERNEL
	.comm	_VM_PROT_READ,4,2               ## @VM_PROT_READ
	.comm	_pte_l2_s_cache_mode,4,2        ## @pte_l2_s_cache_mode
	.comm	_csrc_pte,8,3                   ## @csrc_pte
	.comm	_VM_PROT_WRITE,4,2              ## @VM_PROT_WRITE
	.comm	_cdst_pte,8,3                   ## @cdst_pte
	.comm	_csrcp,4,2                      ## @csrcp
	.comm	_cdstp,4,2                      ## @cdstp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmap_copy_page_offs_generic    ; -- Begin function pmap_copy_page_offs_generic
	.p2align	2
_pmap_copy_page_offs_generic:           ; @pmap_copy_page_offs_generic
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x4
	mov	x20, x3
	mov	x23, x2
	mov	x21, x1
	mov	x24, x0
Lloh0:
	adrp	x22, _cmtx@GOTPAGE
Lloh1:
	ldr	x22, [x22, _cmtx@GOTPAGEOFF]
	mov	x0, x22
	bl	_mtx_lock
Lloh2:
	adrp	x25, _L2_S_PROTO@GOTPAGE
Lloh3:
	ldr	x25, [x25, _L2_S_PROTO@GOTPAGEOFF]
	ldr	w8, [x25]
	orr	w24, w8, w24
Lloh4:
	adrp	x26, _PTE_KERNEL@GOTPAGE
Lloh5:
	ldr	x26, [x26, _PTE_KERNEL@GOTPAGEOFF]
	ldr	w0, [x26]
Lloh6:
	adrp	x8, _VM_PROT_READ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VM_PROT_READ@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_L2_S_PROT
	orr	w8, w24, w0
Lloh9:
	adrp	x24, _pte_l2_s_cache_mode@GOTPAGE
Lloh10:
	ldr	x24, [x24, _pte_l2_s_cache_mode@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w8, w8, w9
Lloh11:
	adrp	x9, _csrc_pte@GOTPAGE
Lloh12:
	ldr	x9, [x9, _csrc_pte@GOTPAGEOFF]
Lloh13:
	ldr	x0, [x9]
	str	w8, [x0]
	bl	_PTE_SYNC
	ldr	w8, [x25]
	orr	w23, w8, w23
	ldr	w0, [x26]
Lloh14:
	adrp	x8, _VM_PROT_WRITE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VM_PROT_WRITE@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_L2_S_PROT
	orr	w8, w23, w0
	ldr	w9, [x24]
	orr	w8, w8, w9
Lloh17:
	adrp	x9, _cdst_pte@GOTPAGE
Lloh18:
	ldr	x9, [x9, _cdst_pte@GOTPAGEOFF]
Lloh19:
	ldr	x0, [x9]
	str	w8, [x0]
	bl	_PTE_SYNC
Lloh20:
	adrp	x23, _csrcp@GOTPAGE
Lloh21:
	ldr	x23, [x23, _csrcp@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_cpu_tlb_flushD_SE
Lloh22:
	adrp	x24, _cdstp@GOTPAGE
Lloh23:
	ldr	x24, [x24, _cdstp@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_cpu_tlb_flushD_SE
	bl	_cpu_cpwait
	ldrsw	x8, [x23]
	add	x1, x8, w21, sxtw
	ldrsw	x8, [x24]
	add	x0, x8, w20, sxtw
	mov	x2, x19
	bl	_memmove
	mov	x0, x22
	bl	_mtx_unlock
	ldr	w8, [x23]
	add	w0, w8, w21
	mov	x1, x19
	bl	_cpu_dcache_inv_range
	ldr	w8, [x24]
	add	w0, w8, w20
	mov	x1, x19
	bl	_cpu_dcache_wbinv_range
	ldr	w8, [x23]
	add	w0, w8, w21
	mov	x1, x19
	bl	_cpu_l2cache_inv_range
	ldr	w8, [x24]
	add	w0, w8, w20
	mov	x1, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_cpu_l2cache_wbinv_range
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_cmtx,4,2                       ; @cmtx
	.comm	_L2_S_PROTO,4,2                 ; @L2_S_PROTO
	.comm	_PTE_KERNEL,4,2                 ; @PTE_KERNEL
	.comm	_VM_PROT_READ,4,2               ; @VM_PROT_READ
	.comm	_pte_l2_s_cache_mode,4,2        ; @pte_l2_s_cache_mode
	.comm	_csrc_pte,8,3                   ; @csrc_pte
	.comm	_VM_PROT_WRITE,4,2              ; @VM_PROT_WRITE
	.comm	_cdst_pte,8,3                   ; @cdst_pte
	.comm	_csrcp,4,2                      ; @csrcp
	.comm	_cdstp,4,2                      ; @cdstp
.subsections_via_symbols
