	.file	"extr_x86.c_kvm_fix_hypercall.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	kvm_fix_hypercall
	.type	kvm_fix_hypercall, @function
kvm_fix_hypercall:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	r13, 5[rsp]
	call	kvm_rip_read@PLT
	mov	edi, DWORD PTR [r12]
	mov	rbp, rax
	call	kvm_mmu_zap_all@PLT
	mov	rax, QWORD PTR kvm_x86_ops[rip]
	mov	rsi, r13
	mov	rdi, r12
	call	[QWORD PTR [rax]]
	mov	rcx, r12
	mov	edx, 3
	mov	rsi, r13
	mov	rdi, rbp
	call	emulator_write_emulated@PLT
	mov	r8, rax
	xor	eax, eax
	cmp	r8, QWORD PTR X86EMUL_CONTINUE[rip]
	je	.L1
	mov	eax, DWORD PTR EFAULT[rip]
	neg	eax
.L1:
	mov	rdx, QWORD PTR 8[rsp]
	xor	rdx, QWORD PTR fs:40
	jne	.L8
	add	rsp, 16
	.cfi_remember_state
	.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
	ret
.L8:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	kvm_fix_hypercall, .-kvm_fix_hypercall
	.comm	kvm_x86_ops,8,8
	.comm	X86EMUL_CONTINUE,8,8
	.comm	EFAULT,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_x86.c_kvm_fix_hypercall.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	kvm_fix_hypercall
	.syntax unified
	.arm
	.fpu softvfp
	.type	kvm_fix_hypercall, %function
kvm_fix_hypercall:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r3, .L8
	sub	sp, sp, #12
	mov	r4, r0
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	kvm_rip_read
	mov	r5, r0
	ldr	r0, [r4]
	bl	kvm_mmu_zap_all
	ldr	r3, .L8+4
	mov	r1, sp
	ldr	r3, [r3]
	mov	r0, r4
	ldr	r3, [r3]
	blx	r3
	mov	r3, r4
	mov	r2, #3
	mov	r0, r5
	mov	r1, sp
	bl	emulator_write_emulated
	ldr	r3, .L8+8
	ldr	r3, [r3]
	cmp	r0, r3
	ldrne	r3, .L8+12
	moveq	r0, #0
	ldrne	r0, [r3]
	ldr	r3, .L8
	rsbne	r0, r0, #0
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L7
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L7:
	bl	__stack_chk_fail
.L9:
	.align	2
.L8:
	.word	.LC0
	.word	kvm_x86_ops
	.word	X86EMUL_CONTINUE
	.word	EFAULT
	.size	kvm_fix_hypercall, .-kvm_fix_hypercall
	.comm	kvm_x86_ops,4,4
	.comm	X86EMUL_CONTINUE,4,4
	.comm	EFAULT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
