	.file	"extr_svm.c_svm_deliver_avic_intr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	svm_deliver_avic_intr, @function
svm_deliver_avic_intr:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	mov	edi, esi
	mov	esi, DWORD PTR 4[rbp]
	call	kvm_lapic_set_irr@PLT
	xor	eax, eax
	call	smp_mb__after_atomic@PLT
	mov	rdi, rbp
	call	avic_vcpu_is_running@PLT
	test	rax, rax
	je	.L2
	mov	ebp, DWORD PTR 0[rbp]
	xor	eax, eax
	call	get_cpu@PLT
	cmp	eax, ebp
	jne	.L6
	xor	eax, eax
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	put_cpu@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	kvm_vcpu_wake_up@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	edi, ebp
	call	kvm_cpu_get_apicid@PLT
	mov	edi, DWORD PTR SVM_AVIC_DOORBELL[rip]
	mov	esi, eax
	call	wrmsrl@PLT
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	put_cpu@PLT
	.cfi_endproc
.LFE0:
	.size	svm_deliver_avic_intr, .-svm_deliver_avic_intr
	.comm	SVM_AVIC_DOORBELL,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_svm.c_svm_deliver_avic_intr.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	svm_deliver_avic_intr, %function
svm_deliver_avic_intr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	mov	r0, r1
	ldr	r1, [r4, #4]
	bl	kvm_lapic_set_irr
	bl	smp_mb__after_atomic
	mov	r0, r4
	bl	avic_vcpu_is_running
	cmp	r0, #0
	beq	.L2
	ldr	r4, [r4]
	bl	get_cpu
	cmp	r0, r4
	bne	.L6
	pop	{r4, lr}
	b	put_cpu
.L2:
	mov	r0, r4
	pop	{r4, lr}
	b	kvm_vcpu_wake_up
.L6:
	ldr	r3, .L7
	mov	r0, r4
	ldr	r4, [r3]
	bl	kvm_cpu_get_apicid
	mov	r1, r0
	mov	r0, r4
	bl	wrmsrl
	pop	{r4, lr}
	b	put_cpu
.L8:
	.align	2
.L7:
	.word	SVM_AVIC_DOORBELL
	.size	svm_deliver_avic_intr, .-svm_deliver_avic_intr
	.comm	SVM_AVIC_DOORBELL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
