	.file	"extr_vlapic.c_vlapic_trigger_lvt.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	vlapic_trigger_lvt
	.type	vlapic_trigger_lvt, @function
vlapic_trigger_lvt:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	call	vlapic_enabled@PLT
	test	eax, eax
	je	.L11
	lea	eax, -128[r13]
	mov	r12d, DWORD PTR EINVAL[rip]
	cmp	eax, 6
	jbe	.L12
.L1:
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	esi, r13d
	mov	rdi, rbx
	call	vlapic_fire_lvt@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L1
	mov	edi, DWORD PTR 4[rbx]
	mov	edx, DWORD PTR LVTS_TRIGGERRED[rip]
	mov	ecx, r13d
	xor	r12d, r12d
	mov	esi, DWORD PTR [rbx]
	mov	r8d, 1
	call	vmm_stat_array_incr@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	r12d, eax
	cmp	r13d, 131
	je	.L3
	cmp	r13d, 132
	jne	.L1
	mov	edi, DWORD PTR 4[rbx]
	mov	esi, DWORD PTR [rbx]
	call	vm_inject_extint@PLT
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	edi, DWORD PTR 4[rbx]
	mov	esi, DWORD PTR [rbx]
	call	vm_inject_nmi@PLT
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	vlapic_trigger_lvt, .-vlapic_trigger_lvt
	.comm	LVTS_TRIGGERRED,4,4
	.comm	EINVAL,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_vlapic.c_vlapic_trigger_lvt.c"
	.text
	.align	2
	.global	vlapic_trigger_lvt
	.syntax unified
	.arm
	.fpu softvfp
	.type	vlapic_trigger_lvt, %function
vlapic_trigger_lvt:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	sub	sp, sp, #8
	mov	r5, r1
	mov	r6, r0
	bl	vlapic_enabled
	subs	r4, r0, #0
	beq	.L11
	sub	r3, r5, #128
	cmp	r3, #6
	bls	.L12
	ldr	r3, .L13
	ldr	r4, [r3]
.L1:
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L12:
	mov	r1, r5
	mov	r0, r6
	bl	vlapic_fire_lvt
	subs	r4, r0, #0
	beq	.L1
	mov	r1, #1
	ldr	r2, .L13+4
	str	r1, [sp]
	mov	r3, r5
	ldr	r2, [r2]
	ldr	r1, [r6]
	ldr	r0, [r6, #4]
	bl	vmm_stat_array_incr
	mov	r4, #0
	b	.L1
.L11:
	cmp	r5, #131
	beq	.L3
	cmp	r5, #132
	bne	.L1
	ldr	r1, [r6]
	ldr	r0, [r6, #4]
	bl	vm_inject_extint
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L3:
	ldr	r1, [r6]
	ldr	r0, [r6, #4]
	bl	vm_inject_nmi
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L14:
	.align	2
.L13:
	.word	EINVAL
	.word	LVTS_TRIGGERRED
	.size	vlapic_trigger_lvt, .-vlapic_trigger_lvt
	.comm	LVTS_TRIGGERRED,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
