	.file	"extr_msi.c_arch_setup_msi_irq.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	arch_setup_msi_irq
	.type	arch_setup_msi_irq, @function
arch_setup_msi_irq:
.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, rsi
	sub	rsp, 40
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	create_irq@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
	mov	rsi, rbp
	mov	edi, eax
	call	set_irq_msi@PLT
	mov	eax, DWORD PTR IOP13XX_MU_MIMR_PCI[rip]
	mov	DWORD PTR 12[rsp], 0
	mov	DWORD PTR 20[rsp], eax
	xor	eax, eax
	call	iop13xx_cpu_id@PLT
	mov	edx, r12d
	mov	edi, r12d
	lea	rsi, 12[rsp]
	mov	ecx, DWORD PTR IOP13XX_MU_MIMR_CORE_SELECT[rip]
	and	edx, 127
	sal	eax, cl
	or	eax, edx
	mov	DWORD PTR 16[rsp], eax
	call	write_msi_msg@PLT
	mov	edx, DWORD PTR handle_simple_irq[rip]
	mov	edi, r12d
	lea	rsi, iop13xx_msi_chip[rip]
	xor	r12d, r12d
	call	set_irq_chip_and_handler@PLT
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L6
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L6:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	arch_setup_msi_irq, .-arch_setup_msi_irq
	.comm	iop13xx_msi_chip,4,4
	.comm	handle_simple_irq,4,4
	.comm	IOP13XX_MU_MIMR_PCI,4,4
	.comm	IOP13XX_MU_MIMR_CORE_SELECT,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_msi.c_arch_setup_msi_irq.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	arch_setup_msi_irq
	.syntax unified
	.arm
	.fpu softvfp
	.type	arch_setup_msi_irq, %function
arch_setup_msi_irq:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L7
	sub	sp, sp, #16
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r5, r1
	bl	create_irq
	subs	r4, r0, #0
	blt	.L1
	mov	r6, #0
	mov	r1, r5
	bl	set_irq_msi
	ldr	r3, .L7+4
	str	r6, [sp]
	ldr	r3, [r3]
	str	r3, [sp, #8]
	bl	iop13xx_cpu_id
	ldr	r2, .L7+8
	and	r3, r4, #127
	ldr	r2, [r2]
	mov	r1, sp
	orr	r3, r3, r0, lsl r2
	mov	r0, r4
	str	r3, [sp, #4]
	bl	write_msi_msg
	ldr	r3, .L7+12
	mov	r0, r4
	ldr	r2, [r3]
	ldr	r1, .L7+16
	mov	r4, r6
	bl	set_irq_chip_and_handler
.L1:
	ldr	r3, .L7
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L6
	mov	r0, r4
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L6:
	bl	__stack_chk_fail
.L8:
	.align	2
.L7:
	.word	.LC0
	.word	IOP13XX_MU_MIMR_PCI
	.word	IOP13XX_MU_MIMR_CORE_SELECT
	.word	handle_simple_irq
	.word	iop13xx_msi_chip
	.size	arch_setup_msi_irq, .-arch_setup_msi_irq
	.comm	iop13xx_msi_chip,4,4
	.comm	handle_simple_irq,4,4
	.comm	IOP13XX_MU_MIMR_PCI,4,4
	.comm	IOP13XX_MU_MIMR_CORE_SELECT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
