	.file	"extr_handle_exit.c_kvm_handle_wfx.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	kvm_handle_wfx, @function
kvm_handle_wfx:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	call	kvm_vcpu_get_hsr@PLT
	mov	rdi, rbp
	test	DWORD PTR ESR_ELx_WFx_ISS_WFE[rip], eax
	je	.L2
	call	vcpu_pc@PLT
	mov	esi, 1
	mov	edi, DWORD PTR [rax]
	call	trace_kvm_wfx_arm64@PLT
	add	DWORD PTR 4[rbp], 1
	mov	rdi, rbp
	call	vcpu_mode_priv@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	kvm_vcpu_on_spin@PLT
.L3:
	mov	rdi, rbp
	call	kvm_vcpu_trap_il_is32bit@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	kvm_skip_instr@PLT
	mov	eax, 1
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	call	vcpu_pc@PLT
	xor	esi, esi
	mov	edi, DWORD PTR [rax]
	call	trace_kvm_wfx_arm64@PLT
	add	DWORD PTR 0[rbp], 1
	mov	rdi, rbp
	call	kvm_vcpu_block@PLT
	mov	edi, DWORD PTR KVM_REQ_UNHALT[rip]
	mov	rsi, rbp
	call	kvm_clear_request@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	kvm_handle_wfx, .-kvm_handle_wfx
	.comm	KVM_REQ_UNHALT,4,4
	.comm	ESR_ELx_WFx_ISS_WFE,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_handle_exit.c_kvm_handle_wfx.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	kvm_handle_wfx, %function
kvm_handle_wfx:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	bl	kvm_vcpu_get_hsr
	ldr	r3, .L6
	ldr	r5, [r3]
	ands	r5, r0, r5
	mov	r0, r4
	beq	.L2
	bl	vcpu_pc
	mov	r1, #1
	ldr	r0, [r0]
	bl	trace_kvm_wfx_arm64
	ldr	r3, [r4, #4]
	mov	r0, r4
	add	r3, r3, #1
	str	r3, [r4, #4]
	bl	vcpu_mode_priv
	mov	r1, r0
	mov	r0, r4
	bl	kvm_vcpu_on_spin
.L3:
	mov	r0, r4
	bl	kvm_vcpu_trap_il_is32bit
	mov	r1, r0
	mov	r0, r4
	bl	kvm_skip_instr
	mov	r0, #1
	pop	{r4, r5, r6, pc}
.L2:
	bl	vcpu_pc
	mov	r1, r5
	ldr	r0, [r0]
	bl	trace_kvm_wfx_arm64
	ldr	r3, [r4]
	mov	r0, r4
	add	r3, r3, #1
	str	r3, [r4]
	bl	kvm_vcpu_block
	ldr	r3, .L6+4
	mov	r1, r4
	ldr	r0, [r3]
	bl	kvm_clear_request
	b	.L3
.L7:
	.align	2
.L6:
	.word	ESR_ELx_WFx_ISS_WFE
	.word	KVM_REQ_UNHALT
	.size	kvm_handle_wfx, .-kvm_handle_wfx
	.comm	KVM_REQ_UNHALT,4,4
	.comm	ESR_ELx_WFx_ISS_WFE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
