	.file	"extr_book3s_xics.c_kvmppc_xics_rm_complete.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"XICS_RM: H_%x completing, act: %x state: %lx tgt: %p\n"
	.text
	.p2align 4
	.globl	kvmppc_xics_rm_complete
	.type	kvmppc_xics_rm_complete, @function
kvmppc_xics_rm_complete:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, QWORD PTR 8[rdi]
	mov	rax, QWORD PTR [rdi]
	lea	rdi, .LC0[rip]
	mov	ecx, DWORD PTR 32[rbx]
	mov	r8d, DWORD PTR 28[rbx]
	mov	edx, DWORD PTR [rbx]
	mov	r12, QWORD PTR [rax]
	call	XICS_DBG@PLT
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR XICS_RM_KICK_VCPU[rip], eax
	jne	.L16
	test	DWORD PTR XICS_RM_CHECK_RESEND[rip], eax
	jne	.L17
.L3:
	test	DWORD PTR XICS_RM_NOTIFY_EOI[rip], eax
	jne	.L18
.L4:
	mov	DWORD PTR [rbx], 0
	mov	eax, DWORD PTR H_SUCCESS[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	add	DWORD PTR 24[rbx], 1
	mov	edi, DWORD PTR 20[rbx]
	call	kvmppc_fast_vcpu_kick@PLT
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR XICS_RM_CHECK_RESEND[rip], eax
	je	.L3
.L17:
	add	DWORD PTR 16[rbx], 1
	mov	esi, DWORD PTR 12[rbx]
	mov	rdi, r12
	call	icp_check_resend@PLT
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR XICS_RM_NOTIFY_EOI[rip], eax
	je	.L4
.L18:
	add	DWORD PTR 8[rbx], 1
	mov	edx, DWORD PTR 4[rbx]
	xor	esi, esi
	mov	rdi, QWORD PTR 0[rbp]
	call	kvm_notify_acked_irq@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	kvmppc_xics_rm_complete, .-kvmppc_xics_rm_complete
	.comm	XICS_RM_NOTIFY_EOI,4,4
	.comm	XICS_RM_KICK_VCPU,4,4
	.comm	XICS_RM_CHECK_RESEND,4,4
	.comm	H_SUCCESS,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_kvmppc_xics_rm_complete.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"XICS_RM: H_%x completing, act: %x state: %lx tgt: %"
	.ascii	"p\012\000"
	.text
	.align	2
	.global	kvmppc_xics_rm_complete
	.syntax unified
	.arm
	.fpu softvfp
	.type	kvmppc_xics_rm_complete, %function
kvmppc_xics_rm_complete:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r4, [r0, #4]
	ldr	ip, [r0]
	mov	r5, r0
	ldr	r0, [r4, #28]
	sub	sp, sp, #8
	ldr	r3, [r4, #32]
	ldr	r2, [r4]
	ldr	r6, [ip]
	str	r0, [sp]
	ldr	r0, .L19
	bl	XICS_DBG
	ldr	r2, .L19+4
	ldr	r3, [r4]
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L16
	ldr	r2, .L19+8
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L17
.L3:
	ldr	r2, .L19+12
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L18
.L4:
	mov	r2, #0
	ldr	r3, .L19+16
	str	r2, [r4]
	ldr	r0, [r3]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L16:
	ldr	r3, [r4, #24]
	ldr	r0, [r4, #20]
	add	r3, r3, #1
	str	r3, [r4, #24]
	bl	kvmppc_fast_vcpu_kick
	ldr	r2, .L19+8
	ldr	r3, [r4]
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L3
.L17:
	ldr	r3, [r4, #16]
	mov	r0, r6
	add	r3, r3, #1
	str	r3, [r4, #16]
	ldr	r1, [r4, #12]
	bl	icp_check_resend
	ldr	r2, .L19+12
	ldr	r3, [r4]
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L4
.L18:
	ldr	r3, [r4, #8]
	ldr	r0, [r5]
	add	r3, r3, #1
	mov	r1, #0
	ldr	r2, [r4, #4]
	str	r3, [r4, #8]
	bl	kvm_notify_acked_irq
	b	.L4
.L20:
	.align	2
.L19:
	.word	.LC0
	.word	XICS_RM_KICK_VCPU
	.word	XICS_RM_CHECK_RESEND
	.word	XICS_RM_NOTIFY_EOI
	.word	H_SUCCESS
	.size	kvmppc_xics_rm_complete, .-kvmppc_xics_rm_complete
	.comm	XICS_RM_NOTIFY_EOI,4,4
	.comm	XICS_RM_KICK_VCPU,4,4
	.comm	XICS_RM_CHECK_RESEND,4,4
	.comm	H_SUCCESS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
