	.file	"extr_ioapic.c___rtc_irq_eoi_tracking_restore_one.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	__rtc_irq_eoi_tracking_restore_one, @function
__rtc_irq_eoi_tracking_restore_one:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xor	esi, esi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR 8[rdi]
	mov	rbp, QWORD PTR [rax]
	mov	rax, QWORD PTR RTC_GSI[rip]
	lea	rdx, [rax+rax*2]
	mov	rax, QWORD PTR 24[rbp]
	lea	r12, [rax+rdx*4]
	xor	edx, edx
	mov	ecx, DWORD PTR 8[r12]
	mov	r8d, DWORD PTR 4[r12]
	call	kvm_apic_match_dest@PLT
	test	eax, eax
	jne	.L8
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.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
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	esi, DWORD PTR [r12]
	mov	rdi, rbx
	call	kvm_apic_pending_eoi@PLT
	mov	esi, DWORD PTR 8[rbp]
	mov	rdi, QWORD PTR [rbx]
	mov	r13d, eax
	call	test_bit@PLT
	cmp	r13d, eax
	je	.L1
	mov	esi, DWORD PTR 8[rbp]
	mov	rdi, QWORD PTR [rbx]
	test	r13d, r13d
	je	.L5
	call	__set_bit@PLT
	mov	ecx, DWORD PTR [r12]
	mov	rdx, QWORD PTR [rbx]
	mov	rax, QWORD PTR 16[rbp]
	mov	DWORD PTR [rax+rdx*4], ecx
	add	DWORD PTR 0[rbp], 1
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.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
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	call	__clear_bit@PLT
	sub	DWORD PTR 0[rbp], 1
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	pop	rbx
	.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
	jmp	rtc_status_pending_eoi_check_valid@PLT
	.cfi_endproc
.LFE0:
	.size	__rtc_irq_eoi_tracking_restore_one, .-__rtc_irq_eoi_tracking_restore_one
	.comm	RTC_GSI,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_ioapic.c___rtc_irq_eoi_tracking_restore_one.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__rtc_irq_eoi_tracking_restore_one, %function
__rtc_irq_eoi_tracking_restore_one:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r2, #0
	ldr	r1, [r0, #4]
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L9
	ldr	r6, [r1]
	ldr	ip, [r3]
	ldr	r7, [r6, #12]
	add	ip, ip, ip, lsl #1
	sub	sp, sp, #8
	add	r1, r7, ip, lsl #2
	ldmib	r1, {r1, r3}
	str	r1, [sp]
	mov	r1, r2
	mov	r5, r0
	lsl	r4, ip, #2
	bl	kvm_apic_match_dest
	cmp	r0, #0
	bne	.L8
.L1:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	ldr	r1, [r7, r4]
	mov	r0, r5
	bl	kvm_apic_pending_eoi
	ldr	r1, [r6, #4]
	mov	r8, r0
	ldr	r0, [r5]
	bl	test_bit
	cmp	r8, r0
	beq	.L1
	cmp	r8, #0
	ldr	r0, [r5]
	ldr	r1, [r6, #4]
	beq	.L5
	bl	__set_bit
	ldr	r1, [r7, r4]
	ldr	r2, [r5]
	ldr	r3, [r6, #8]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [r6]
	add	r3, r3, #1
	str	r3, [r6]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	bl	__clear_bit
	mov	r0, r6
	ldr	r3, [r6]
	sub	r3, r3, #1
	str	r3, [r6]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, lr}
	b	rtc_status_pending_eoi_check_valid
.L10:
	.align	2
.L9:
	.word	RTC_GSI
	.size	__rtc_irq_eoi_tracking_restore_one, .-__rtc_irq_eoi_tracking_restore_one
	.comm	RTC_GSI,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
