	.file	"extr_mmu_pv.c_xen_remap_exchanged_ptes.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	xen_remap_exchanged_ptes, @function
xen_remap_exchanged_ptes:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	eax, eax
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, esi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	xor	r13d, r13d
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	DWORD PTR 28[rsp], esi
	mov	QWORD PTR 8[rsp], rcx
	call	xen_mc_batch@PLT
	mov	eax, 1
	mov	ecx, r14d
	sal	eax, cl
	lea	esi, -1[rax]
	mov	DWORD PTR 24[rsp], esi
	mov	QWORD PTR 16[rsp], rsi
	test	eax, eax
	jne	.L8
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L6:
	mov	esi, DWORD PTR PAGE_KERNEL[rip]
	mov	rdi, r15
	call	mfn_pte@PLT
	mov	rsi, rbp
	mov	ecx, r12d
	mov	edi, r14d
	mov	edx, eax
	call	MULTI_update_va_mapping@PLT
	mov	rdi, rbp
	call	virt_to_pfn@PLT
	mov	rsi, r15
	mov	edi, eax
	call	set_phys_to_machine@PLT
	add	rbp, QWORD PTR PAGE_SIZE[rip]
	lea	rax, 1[r13]
	cmp	r13, QWORD PTR 16[rsp]
	je	.L3
	mov	r13, rax
.L8:
	xor	edi, edi
	call	__xen_mc_entry@PLT
	mov	r14d, eax
	mov	rax, QWORD PTR 8[rsp]
	lea	r15, 0[r13+rax]
	test	rbx, rbx
	je	.L5
	mov	r15, QWORD PTR [rbx+r13*8]
.L5:
	xor	r12d, r12d
	cmp	DWORD PTR 24[rsp], r13d
	ja	.L6
	mov	eax, DWORD PTR 28[rsp]
	mov	ecx, DWORD PTR UVMF_ALL[rip]
	test	eax, eax
	jne	.L7
	mov	esi, DWORD PTR PAGE_KERNEL[rip]
	or	ecx, DWORD PTR UVMF_INVLPG[rip]
	mov	rdi, r15
	mov	r12d, ecx
	call	mfn_pte@PLT
	mov	rsi, rbp
	mov	ecx, r12d
	mov	edi, r14d
	mov	edx, eax
	call	MULTI_update_va_mapping@PLT
	mov	rdi, rbp
	call	virt_to_pfn@PLT
	mov	rsi, r15
	mov	edi, eax
	call	set_phys_to_machine@PLT
.L3:
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	edi, edi
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	xen_mc_issue@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	or	ecx, DWORD PTR UVMF_TLB_FLUSH[rip]
	mov	r12d, ecx
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	xen_remap_exchanged_ptes, .-xen_remap_exchanged_ptes
	.comm	UVMF_TLB_FLUSH,4,4
	.comm	UVMF_INVLPG,4,4
	.comm	UVMF_ALL,4,4
	.comm	PAGE_SIZE,8,8
	.comm	PAGE_KERNEL,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_mmu_pv.c_xen_remap_exchanged_ptes.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	xen_remap_exchanged_ptes, %function
xen_remap_exchanged_ptes:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r1
	mov	r9, #1
	sub	sp, sp, #20
	str	r3, [sp, #12]
	mov	r5, r0
	mov	r8, r2
	str	r1, [sp, #8]
	bl	xen_mc_batch
	lsls	r3, r9, r4
	str	r3, [sp, #4]
	beq	.L3
	sub	r3, r3, #1
	mov	r4, #0
	ldr	r10, .L14
	ldr	fp, .L14+4
	str	r3, [sp]
	b	.L8
.L6:
	ldr	r1, [r10]
	mov	r0, r7
	bl	mfn_pte
	mov	r3, r9
	mov	r2, r0
	mov	r1, r5
	mov	r0, r6
	bl	MULTI_update_va_mapping
	mov	r0, r5
	bl	virt_to_pfn
	mov	r1, r7
	bl	set_phys_to_machine
	ldr	r2, [sp, #4]
	ldr	r3, [fp]
	add	r4, r4, #1
	cmp	r2, r4
	add	r5, r5, r3
	beq	.L3
.L8:
	mov	r0, #0
	bl	__xen_mc_entry
	cmp	r8, #0
	ldreq	r3, [sp, #12]
	ldrne	r7, [r8, r4, lsl #2]
	addeq	r7, r3, r4
	ldr	r3, [sp]
	mov	r6, r0
	cmp	r4, r3
	movcc	r9, #0
	bcc	.L6
	ldr	r3, [sp, #8]
	cmp	r3, #0
	ldr	r3, .L14+8
	ldr	r3, [r3]
	bne	.L7
	ldr	r2, .L14+12
	ldr	r1, [r10]
	ldr	r4, [r2]
	mov	r0, r7
	orr	r4, r3, r4
	bl	mfn_pte
	mov	r1, r5
	mov	r2, r0
	mov	r3, r4
	mov	r0, r6
	bl	MULTI_update_va_mapping
	mov	r0, r5
	bl	virt_to_pfn
	mov	r1, r7
	bl	set_phys_to_machine
.L3:
	mov	r0, #0
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	xen_mc_issue
.L7:
	ldr	r2, .L14+16
	ldr	r2, [r2]
	orr	r9, r3, r2
	b	.L6
.L15:
	.align	2
.L14:
	.word	PAGE_KERNEL
	.word	PAGE_SIZE
	.word	UVMF_ALL
	.word	UVMF_INVLPG
	.word	UVMF_TLB_FLUSH
	.size	xen_remap_exchanged_ptes, .-xen_remap_exchanged_ptes
	.comm	UVMF_TLB_FLUSH,4,4
	.comm	UVMF_INVLPG,4,4
	.comm	UVMF_ALL,4,4
	.comm	PAGE_SIZE,4,4
	.comm	PAGE_KERNEL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
