	.file	"extr_book3s_xics.c_ics_eoi.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"ios_eoi: IRQ 0x%06x not found !\n"
	.text
	.p2align 4
	.type	ics_eoi, @function
ics_eoi:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR [rdi]
	lea	rdx, 16[rsp]
	mov	r14, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rdi]
	mov	rdi, r14
	mov	QWORD PTR 8[rsp], rax
	call	kvmppc_xics_find_ics@PLT
	test	rax, rax
	je	.L14
	mov	rbp, QWORD PTR 16[rsp]
	sal	rbp, 4
	add	rbp, QWORD PTR [rax]
	cmp	QWORD PTR 8[rbp], 0
	mov	r15d, DWORD PTR 0[rbp]
	je	.L15
	test	DWORD PTR PQ_PRESENTED[rip], r15d
	jne	.L16
.L6:
	mov	rdi, QWORD PTR [r12]
	mov	edx, r13d
	xor	esi, esi
	call	kvm_notify_acked_irq@PLT
	mov	eax, DWORD PTR H_SUCCESS[rip]
.L1:
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L17
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	ebx, r15d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L18:
	mov	ebx, DWORD PTR 0[rbp]
.L5:
	mov	r15d, ebx
	mov	esi, ebx
	mov	rdi, rbp
	sar	r15d
	mov	edx, r15d
	call	cmpxchg@PLT
	cmp	eax, ebx
	jne	.L18
	test	DWORD PTR PQ_PRESENTED[rip], r15d
	je	.L6
.L16:
	mov	rsi, QWORD PTR 8[rsp]
	xor	ecx, ecx
	mov	edx, r13d
	mov	rdi, r14
	call	icp_deliver_irq@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L14:
	mov	esi, r13d
	lea	rdi, .LC0[rip]
	call	XICS_DBG@PLT
	mov	eax, DWORD PTR H_PARAMETER[rip]
	jmp	.L1
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ics_eoi, .-ics_eoi
	.comm	PQ_PRESENTED,4,4
	.comm	H_SUCCESS,4,4
	.comm	H_PARAMETER,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_book3s_xics.c_ics_eoi.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ios_eoi: IRQ 0x%06x not found !\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ics_eoi, %function
ics_eoi:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r7, r0
	ldr	r3, [r0]
	sub	sp, sp, #8
	ldr	r9, [r3]
	ldr	r3, .L19
	mov	r2, sp
	mov	r0, r9
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r8, r1
	ldr	r10, [r7, #4]
	bl	kvmppc_xics_find_ics
	cmp	r0, #0
	beq	.L14
	ldr	r3, [r0]
	ldr	r2, [sp]
	add	r6, r3, r2, lsl #3
	ldr	r1, [r6, #4]
	ldr	r5, [r3, r2, lsl #3]
	cmp	r1, #0
	beq	.L15
	ldr	r3, .L19+4
	ldr	r3, [r3]
	tst	r5, r3
	bne	.L16
.L6:
	mov	r2, r8
	mov	r1, #0
	ldr	r0, [r7]
	bl	kvm_notify_acked_irq
	ldr	r3, .L19+8
	ldr	r0, [r3]
.L1:
	ldr	r3, .L19
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L15:
	mov	r4, r5
	b	.L5
.L18:
	ldr	r4, [r6]
.L5:
	asr	r5, r4, #1
	mov	r2, r5
	mov	r1, r4
	mov	r0, r6
	bl	cmpxchg
	cmp	r0, r4
	bne	.L18
	ldr	r3, .L19+4
	ldr	r3, [r3]
	tst	r5, r3
	beq	.L6
.L16:
	mov	r1, r10
	mov	r0, r9
	mov	r3, #0
	mov	r2, r8
	bl	icp_deliver_irq
	b	.L6
.L14:
	mov	r1, r8
	ldr	r0, .L19+12
	bl	XICS_DBG
	ldr	r3, .L19+16
	ldr	r0, [r3]
	b	.L1
.L17:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	.LC1
	.word	PQ_PRESENTED
	.word	H_SUCCESS
	.word	.LC0
	.word	H_PARAMETER
	.size	ics_eoi, .-ics_eoi
	.comm	PQ_PRESENTED,4,4
	.comm	H_SUCCESS,4,4
	.comm	H_PARAMETER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
