	.file	"extr_x86.c_vcpu_mmio_gva_to_gpa.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	vcpu_mmio_gva_to_gpa, @function
vcpu_mmio_gva_to_gpa:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rcx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, 0
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, r8d
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	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, 8
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR kvm_x86_ops[rip]
	call	[QWORD PTR [rax]]
	cmp	eax, 3
	cmove	r14d, DWORD PTR PFERR_USER_MASK[rip]
	test	r13d, r13d
	je	.L3
	or	r14d, DWORD PTR PFERR_WRITE_MASK[rip]
.L3:
	mov	rsi, r12
	mov	rdi, rbp
	call	vcpu_match_mmio_gva@PLT
	test	rax, rax
	jne	.L16
.L4:
	mov	rax, QWORD PTR 8[rbp]
	mov	edx, r14d
	mov	rcx, r15
	mov	rsi, r12
	mov	rdi, rbp
	call	[QWORD PTR [rax]]
	mov	QWORD PTR [rbx], rax
	cmp	rax, QWORD PTR UNMAPPED_GVA[rip]
	mov	rdx, rax
	je	.L7
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	ecx, r13d
	mov	rsi, r12
	mov	rdi, rbp
	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	vcpu_is_mmio_gpa@PLT
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	edx, DWORD PTR 16[rbp]
	mov	rsi, QWORD PTR 8[rbp]
	xor	ecx, ecx
	mov	r8d, r14d
	mov	rdi, rbp
	call	permission_fault@PLT
	test	eax, eax
	jne	.L4
	mov	rcx, QWORD PTR PAGE_SHIFT[rip]
	mov	rsi, QWORD PTR 0[rbp]
	mov	rdi, r12
	mov	eax, DWORD PTR PAGE_SIZE[rip]
	sal	rsi, cl
	xor	ecx, ecx
	sub	eax, 1
	mov	rdx, rsi
	movsx	rsi, eax
	and	rsi, r12
	or	rsi, rdx
	mov	edx, r13d
	mov	QWORD PTR [rbx], rsi
	call	trace_vcpu_match_mmio@PLT
	mov	eax, 1
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	eax, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	vcpu_mmio_gva_to_gpa, .-vcpu_mmio_gva_to_gpa
	.comm	kvm_x86_ops,8,8
	.comm	UNMAPPED_GVA,8,8
	.comm	PFERR_WRITE_MASK,4,4
	.comm	PFERR_USER_MASK,4,4
	.comm	PAGE_SIZE,4,4
	.comm	PAGE_SHIFT,8,8
	.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_x86.c_vcpu_mmio_gva_to_gpa.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vcpu_mmio_gva_to_gpa, %function
vcpu_mmio_gva_to_gpa:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	ip, .L17
	mov	r5, r1
	ldr	r1, [ip]
	sub	sp, sp, #12
	mov	r6, r2
	ldr	r2, [r1]
	mov	r7, r3
	mov	r4, r0
	ldr	r9, [sp, #40]
	blx	r2
	cmp	r0, #3
	movne	r8, #0
	ldreq	r3, .L17+4
	mov	r1, r5
	ldreq	r8, [r3]
	cmp	r9, #0
	ldrne	r3, .L17+8
	mov	r0, r4
	ldrne	r3, [r3]
	orrne	r8, r8, r3
	bl	vcpu_match_mmio_gva
	cmp	r0, #0
	bne	.L16
.L4:
	ldr	r1, [r4, #4]
	mov	r3, r7
	mov	r2, r8
	ldr	r7, [r1]
	mov	r0, r4
	mov	r1, r5
	blx	r7
	ldr	r3, .L17+12
	str	r0, [r6]
	ldr	r3, [r3]
	mov	r2, r0
	cmp	r0, r3
	beq	.L7
	mov	r3, r9
	mov	r1, r5
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, lr}
	b	vcpu_is_mmio_gpa
.L16:
	str	r8, [sp]
	mov	r3, #0
	ldmib	r4, {r1, r2}
	mov	r0, r4
	bl	permission_fault
	subs	r3, r0, #0
	bne	.L4
	ldr	r1, .L17+16
	ldr	r2, .L17+20
	ldr	r1, [r1]
	ldr	r0, [r4]
	ldr	r2, [r2]
	sub	r1, r1, #1
	and	r1, r1, r5
	orr	r1, r1, r0, lsl r2
	str	r1, [r6]
	mov	r2, r9
	mov	r0, r5
	bl	trace_vcpu_match_mmio
	mov	r0, #1
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L7:
	mvn	r0, #0
	b	.L1
.L18:
	.align	2
.L17:
	.word	kvm_x86_ops
	.word	PFERR_USER_MASK
	.word	PFERR_WRITE_MASK
	.word	UNMAPPED_GVA
	.word	PAGE_SIZE
	.word	PAGE_SHIFT
	.size	vcpu_mmio_gva_to_gpa, .-vcpu_mmio_gva_to_gpa
	.comm	kvm_x86_ops,4,4
	.comm	UNMAPPED_GVA,4,4
	.comm	PFERR_WRITE_MASK,4,4
	.comm	PFERR_USER_MASK,4,4
	.comm	PAGE_SIZE,4,4
	.comm	PAGE_SHIFT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
