	.file	"extr_pmap-v4.c_pmap_copy_page_generic.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pmap_copy_page_generic, @function
pmap_copy_page_generic:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, edi
	lea	rdi, cmtx[rip]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	mtx_lock@PLT
	mov	esi, DWORD PTR VM_PROT_READ[rip]
	mov	edi, DWORD PTR PTE_KERNEL[rip]
	mov	ebp, DWORD PTR L2_S_PROTO[rip]
	call	L2_S_PROT@PLT
	or	ebp, DWORD PTR pte_l2_s_cache_mode[rip]
	mov	rdi, QWORD PTR csrc_pte[rip]
	or	ebp, r13d
	or	ebp, eax
	mov	DWORD PTR [rdi], ebp
	call	PTE_SYNC@PLT
	mov	esi, DWORD PTR VM_PROT_WRITE[rip]
	mov	edi, DWORD PTR PTE_KERNEL[rip]
	mov	ebx, DWORD PTR L2_S_PROTO[rip]
	call	L2_S_PROT@PLT
	or	ebx, DWORD PTR pte_l2_s_cache_mode[rip]
	mov	rdi, QWORD PTR cdst_pte[rip]
	or	ebx, r12d
	or	ebx, eax
	mov	DWORD PTR [rdi], ebx
	call	PTE_SYNC@PLT
	mov	edi, DWORD PTR csrcp[rip]
	call	cpu_tlb_flushD_SE@PLT
	mov	edi, DWORD PTR cdstp[rip]
	call	cpu_tlb_flushD_SE@PLT
	xor	eax, eax
	call	cpu_cpwait@PLT
	mov	esi, DWORD PTR cdstp[rip]
	mov	edi, DWORD PTR csrcp[rip]
	call	bcopy_page@PLT
	lea	rdi, cmtx[rip]
	call	mtx_unlock@PLT
	mov	esi, DWORD PTR PAGE_SIZE[rip]
	mov	edi, DWORD PTR csrcp[rip]
	call	cpu_dcache_inv_range@PLT
	mov	esi, DWORD PTR PAGE_SIZE[rip]
	mov	edi, DWORD PTR cdstp[rip]
	call	cpu_dcache_wbinv_range@PLT
	mov	esi, DWORD PTR PAGE_SIZE[rip]
	mov	edi, DWORD PTR csrcp[rip]
	call	cpu_l2cache_inv_range@PLT
	mov	esi, DWORD PTR PAGE_SIZE[rip]
	mov	edi, DWORD PTR cdstp[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	cpu_l2cache_wbinv_range@PLT
	.cfi_endproc
.LFE0:
	.size	pmap_copy_page_generic, .-pmap_copy_page_generic
	.comm	pte_l2_s_cache_mode,4,4
	.comm	csrcp,4,4
	.comm	csrc_pte,8,8
	.comm	cmtx,4,4
	.comm	cdstp,4,4
	.comm	cdst_pte,8,8
	.comm	VM_PROT_WRITE,4,4
	.comm	VM_PROT_READ,4,4
	.comm	TRUE,4,4
	.comm	PTE_KERNEL,4,4
	.comm	PAGE_SIZE,4,4
	.comm	L2_S_PROTO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_pmap-v4.c_pmap_copy_page_generic.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pmap_copy_page_generic, %function
pmap_copy_page_generic:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r6, .L4
	mov	r8, r0
	mov	r0, r6
	mov	r7, r1
	ldr	r4, .L4+4
	bl	mtx_lock
	ldr	r3, .L4+8
	ldr	r10, .L4+12
	ldr	r1, [r3]
	ldr	r0, [r4]
	ldr	r5, [r10]
	bl	L2_S_PROT
	ldr	r9, .L4+16
	ldr	r3, .L4+20
	ldr	r2, [r9]
	ldr	r3, [r3]
	orr	r5, r5, r2
	orr	r5, r5, r8
	orr	r5, r5, r0
	str	r5, [r3]
	mov	r0, r3
	bl	PTE_SYNC
	ldr	r3, .L4+24
	ldr	r0, [r4]
	ldr	r1, [r3]
	ldr	r4, [r10]
	bl	L2_S_PROT
	ldr	r1, [r9]
	ldr	r3, .L4+28
	orr	r4, r4, r1
	ldr	r3, [r3]
	orr	r1, r4, r7
	orr	r1, r1, r0
	ldr	r7, .L4+32
	str	r1, [r3]
	mov	r0, r3
	ldr	r4, .L4+36
	bl	PTE_SYNC
	ldr	r0, [r7]
	bl	cpu_tlb_flushD_SE
	ldr	r0, [r4]
	ldr	r5, .L4+40
	bl	cpu_tlb_flushD_SE
	bl	cpu_cpwait
	ldr	r1, [r4]
	ldr	r0, [r7]
	bl	bcopy_page
	mov	r0, r6
	bl	mtx_unlock
	ldr	r1, [r5]
	ldr	r0, [r7]
	bl	cpu_dcache_inv_range
	ldr	r1, [r5]
	ldr	r0, [r4]
	bl	cpu_dcache_wbinv_range
	ldr	r1, [r5]
	ldr	r0, [r7]
	bl	cpu_l2cache_inv_range
	ldr	r1, [r5]
	ldr	r0, [r4]
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	cpu_l2cache_wbinv_range
.L5:
	.align	2
.L4:
	.word	cmtx
	.word	PTE_KERNEL
	.word	VM_PROT_READ
	.word	L2_S_PROTO
	.word	pte_l2_s_cache_mode
	.word	csrc_pte
	.word	VM_PROT_WRITE
	.word	cdst_pte
	.word	csrcp
	.word	cdstp
	.word	PAGE_SIZE
	.size	pmap_copy_page_generic, .-pmap_copy_page_generic
	.comm	pte_l2_s_cache_mode,4,4
	.comm	csrcp,4,4
	.comm	csrc_pte,4,4
	.comm	cmtx,4,4
	.comm	cdstp,4,4
	.comm	cdst_pte,4,4
	.comm	VM_PROT_WRITE,4,4
	.comm	VM_PROT_READ,4,4
	.comm	TRUE,4,4
	.comm	PTE_KERNEL,4,4
	.comm	PAGE_SIZE,4,4
	.comm	L2_S_PROTO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
