	.file	"extr_msi-octeon.c_octeon_msi_interrupt.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Spurious MSI interrupt %d\n"
	.text
	.p2align 4
	.type	octeon_msi_interrupt, @function
octeon_msi_interrupt:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR OCTEON_DMA_BAR_TYPE_PCIE[rip]
	cmp	QWORD PTR octeon_dma_bar_type[rip], rax
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	je	.L13
	mov	edi, DWORD PTR CVMX_NPI_NPI_MSI_RCV[rip]
	call	cvmx_read_csr@PLT
	mov	edi, eax
.L3:
	call	fls64@PLT
	test	eax, eax
	je	.L4
	mov	edx, DWORD PTR OCTEON_IRQ_MSI_BIT0[rip]
	lea	ebp, -1[rax+rdx]
	mov	rax, QWORD PTR irq_desc[rip]
	movsx	rdx, ebp
	cmp	QWORD PTR [rax+rdx*8], 0
	jne	.L14
	mov	esi, ebp
	lea	rdi, .LC0[rip]
	call	pr_err@PLT
	mov	edi, DWORD PTR OCTEON_FEATURE_PCIE[rip]
	call	octeon_has_feature@PLT
	mov	ecx, ebp
	mov	esi, 1
	sub	ecx, DWORD PTR OCTEON_IRQ_MSI_BIT0[rip]
	sal	rsi, cl
	test	rax, rax
	je	.L7
	mov	edi, DWORD PTR CVMX_PEXP_NPEI_MSI_RCV0[rip]
	call	cvmx_write_csr@PLT
.L4:
	mov	eax, DWORD PTR IRQ_NONE[rip]
.L1:
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	edi, DWORD PTR CVMX_PEXP_NPEI_MSI_RCV0[rip]
	call	cvmx_read_csr@PLT
	mov	edi, eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L14:
	mov	edi, ebp
	call	do_IRQ@PLT
	mov	eax, DWORD PTR IRQ_HANDLED[rip]
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	edi, DWORD PTR CVMX_NPI_NPI_MSI_RCV[rip]
	call	cvmx_write_csr@PLT
	mov	eax, DWORD PTR IRQ_NONE[rip]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	octeon_msi_interrupt, .-octeon_msi_interrupt
	.comm	octeon_dma_bar_type,8,8
	.comm	irq_desc,8,8
	.comm	OCTEON_IRQ_MSI_BIT0,4,4
	.comm	OCTEON_FEATURE_PCIE,4,4
	.comm	OCTEON_DMA_BAR_TYPE_PCIE,8,8
	.comm	IRQ_NONE,4,4
	.comm	IRQ_HANDLED,4,4
	.comm	CVMX_PEXP_NPEI_MSI_RCV0,4,4
	.comm	CVMX_NPI_NPI_MSI_RCV,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-octeon.c_octeon_msi_interrupt.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Spurious MSI interrupt %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	octeon_msi_interrupt, %function
octeon_msi_interrupt:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, .L14
	ldr	r3, .L14+4
	ldr	r2, [r2]
	ldr	r3, [r3]
	push	{r4, r5, r6, lr}
	cmp	r2, r3
	ldreq	r3, .L14+8
	ldrne	r3, .L14+12
	ldr	r0, [r3]
	bl	cvmx_read_csr
	bl	fls64
	cmp	r0, #0
	beq	.L4
	ldr	r5, .L14+16
	ldr	r3, .L14+20
	ldr	r4, [r5]
	ldr	r3, [r3]
	sub	r4, r4, #1
	add	r4, r4, r0
	ldr	r3, [r3, r4, lsl #2]
	cmp	r3, #0
	bne	.L13
	mov	r1, r4
	ldr	r0, .L14+24
	bl	pr_err
	ldr	r3, .L14+28
	ldr	r0, [r3]
	bl	octeon_has_feature
	cmp	r0, #0
	mov	r2, #1
	ldr	r0, [r5]
	beq	.L7
	sub	r0, r4, r0
	sub	r3, r0, #32
	ldr	r1, .L14+8
	lsl	r3, r2, r3
	rsb	ip, r0, #32
	orr	r3, r3, r2, lsr ip
	lsl	r2, r2, r0
	ldr	r0, [r1]
	bl	cvmx_write_csr
.L4:
	ldr	r3, .L14+32
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L13:
	mov	r0, r4
	bl	do_IRQ
	ldr	r3, .L14+36
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L7:
	sub	r0, r4, r0
	ldr	ip, .L14+12
	sub	r3, r0, #32
	rsb	r1, r0, #32
	lsl	r3, r2, r3
	orr	r3, r3, r2, lsr r1
	lsl	r2, r2, r0
	ldr	r0, [ip]
	bl	cvmx_write_csr
	b	.L4
.L15:
	.align	2
.L14:
	.word	octeon_dma_bar_type
	.word	OCTEON_DMA_BAR_TYPE_PCIE
	.word	CVMX_PEXP_NPEI_MSI_RCV0
	.word	CVMX_NPI_NPI_MSI_RCV
	.word	OCTEON_IRQ_MSI_BIT0
	.word	irq_desc
	.word	.LC0
	.word	OCTEON_FEATURE_PCIE
	.word	IRQ_NONE
	.word	IRQ_HANDLED
	.size	octeon_msi_interrupt, .-octeon_msi_interrupt
	.comm	octeon_dma_bar_type,4,4
	.comm	irq_desc,4,4
	.comm	OCTEON_IRQ_MSI_BIT0,4,4
	.comm	OCTEON_FEATURE_PCIE,4,4
	.comm	OCTEON_DMA_BAR_TYPE_PCIE,4,4
	.comm	IRQ_NONE,4,4
	.comm	IRQ_HANDLED,4,4
	.comm	CVMX_PEXP_NPEI_MSI_RCV0,4,4
	.comm	CVMX_NPI_NPI_MSI_RCV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
