	.file	"extr_lapic.c_apic_clear_irr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	apic_clear_irr, @function
apic_clear_irr:
.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	r12d, edi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	r13, QWORD PTR 16[rsi]
	mov	rbp, rsi
	mov	edi, DWORD PTR 0[r13]
	call	unlikely@PLT
	test	rax, rax
	je	.L2
	mov	edi, r12d
	mov	rsi, QWORD PTR APIC_IRR[rip]
	add	rsi, QWORD PTR 8[rbp]
	call	kvm_lapic_clear_vector@PLT
	mov	rax, QWORD PTR kvm_x86_ops[rip]
	mov	rdi, rbp
	mov	r12, QWORD PTR [rax]
	call	apic_find_highest_irr@PLT
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, r13
	mov	esi, eax
	mov	rax, r12
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	rax
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	DWORD PTR 0[rbp], 0
	mov	rsi, QWORD PTR APIC_IRR[rip]
	mov	edi, r12d
	add	rsi, QWORD PTR 8[rbp]
	call	kvm_lapic_clear_vector@PLT
	mov	rdi, rbp
	call	apic_search_irr@PLT
	cmp	eax, -1
	je	.L1
	mov	DWORD PTR 0[rbp], 1
.L1:
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	apic_clear_irr, .-apic_clear_irr
	.comm	kvm_x86_ops,8,8
	.comm	APIC_IRR,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_lapic.c_apic_clear_irr.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	apic_clear_irr, %function
apic_clear_irr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r6, [r1, #8]
	mov	r5, r0
	ldr	r0, [r6]
	mov	r4, r1
	bl	unlikely
	subs	r3, r0, #0
	beq	.L2
	ldr	r3, .L9
	ldr	r1, [r4, #4]
	ldr	r3, [r3]
	mov	r0, r5
	add	r1, r1, r3
	bl	kvm_lapic_clear_vector
	ldr	r3, .L9+4
	mov	r0, r4
	ldr	r3, [r3]
	ldr	r4, [r3]
	bl	apic_find_highest_irr
	mov	r3, r4
	mov	r1, r0
	mov	r0, r6
	pop	{r4, r5, r6, lr}
	bx	r3
.L2:
	ldr	r2, .L9
	ldr	r1, [r4, #4]
	ldr	r2, [r2]
	mov	r0, r5
	str	r3, [r4]
	add	r1, r1, r2
	bl	kvm_lapic_clear_vector
	mov	r0, r4
	bl	apic_search_irr
	cmn	r0, #1
	movne	r3, #1
	strne	r3, [r4]
	pop	{r4, r5, r6, pc}
.L10:
	.align	2
.L9:
	.word	APIC_IRR
	.word	kvm_x86_ops
	.size	apic_clear_irr, .-apic_clear_irr
	.comm	kvm_x86_ops,4,4
	.comm	APIC_IRR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
