	.file	"extr_pcie-iproc-msi.c_iproc_msi_handler.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	iproc_msi_handler, @function
iproc_msi_handler:
.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
	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, 8
	.cfi_def_cfa_offset 64
	call	irq_desc_get_chip@PLT
	mov	rsi, r12
	mov	rdi, rax
	mov	r13, rax
	call	chained_irq_enter@PLT
	mov	rdi, r12
	call	irq_desc_get_handler_data@PLT
	mov	esi, DWORD PTR IPROC_MSI_EQ_HEAD[rip]
	mov	rbx, QWORD PTR 8[rax]
	mov	ebp, DWORD PTR [rax]
	mov	rdi, rbx
	mov	edx, ebp
	call	iproc_msi_read_reg@PLT
	and	eax, DWORD PTR IPROC_MSI_EQ_MASK[rip]
	mov	r15d, eax
	.p2align 4,,10
	.p2align 3
.L6:
	mov	esi, DWORD PTR IPROC_MSI_EQ_TAIL[rip]
	mov	edx, ebp
	mov	rdi, rbx
	call	iproc_msi_read_reg@PLT
	and	eax, DWORD PTR IPROC_MSI_EQ_MASK[rip]
	mov	r14d, eax
	sub	r14d, r15d
	cmp	r15d, eax
	jle	.L3
	add	eax, DWORD PTR EQ_LEN[rip]
	mov	r14d, eax
	sub	r14d, r15d
.L3:
	test	r14d, r14d
	je	.L4
	sub	r14d, 1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	edx, r15d
	mov	esi, ebp
	mov	rdi, rbx
	sub	r14d, 1
	call	decode_msi_hwirq@PLT
	mov	edi, DWORD PTR [rbx]
	mov	rsi, rax
	call	irq_find_mapping@PLT
	mov	edi, eax
	call	generic_handle_irq@PLT
	lea	eax, 1[r15]
	cdq
	idiv	DWORD PTR EQ_LEN[rip]
	mov	r15d, edx
	cmp	r14d, -1
	jne	.L5
	mov	esi, DWORD PTR IPROC_MSI_EQ_HEAD[rip]
	mov	ecx, edx
	mov	rdi, rbx
	mov	edx, ebp
	call	iproc_msi_write_reg@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L4:
	add	rsp, 8
	.cfi_def_cfa_offset 56
	mov	rsi, r12
	mov	rdi, r13
	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
	jmp	chained_irq_exit@PLT
	.cfi_endproc
.LFE0:
	.size	iproc_msi_handler, .-iproc_msi_handler
	.comm	IPROC_MSI_EQ_TAIL,4,4
	.comm	IPROC_MSI_EQ_MASK,4,4
	.comm	IPROC_MSI_EQ_HEAD,4,4
	.comm	EQ_LEN,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_pcie-iproc-msi.c_iproc_msi_handler.c"
	.text
	.global	__aeabi_idivmod
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	iproc_msi_handler, %function
iproc_msi_handler:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	sub	sp, sp, #12
	str	r0, [sp, #4]
	bl	irq_desc_get_chip
	mov	r1, r4
	str	r0, [sp]
	bl	chained_irq_enter
	mov	r0, r4
	bl	irq_desc_get_handler_data
	ldr	r10, .L10
	ldr	r6, [r0]
	ldr	r5, [r0, #4]
	mov	r2, r6
	mov	r0, r5
	ldr	r1, [r10]
	bl	iproc_msi_read_reg
	ldr	r8, .L10+4
	ldr	r9, .L10+8
	ldr	r3, [r8]
	ldr	r7, .L10+12
	and	r4, r0, r3
.L6:
	mov	r2, r6
	mov	r0, r5
	ldr	r1, [r9]
	bl	iproc_msi_read_reg
	ldr	fp, [r8]
	and	r0, r0, fp
	cmp	r4, r0
	ldrgt	fp, [r7]
	subgt	r0, r4, r0
	subgt	fp, fp, r0
	suble	fp, r0, r4
	cmp	fp, #0
	beq	.L4
	sub	fp, fp, #1
.L5:
	mov	r2, r4
	mov	r1, r6
	mov	r0, r5
	bl	decode_msi_hwirq
	mov	r1, r0
	ldr	r0, [r5]
	bl	irq_find_mapping
	bl	generic_handle_irq
	add	r0, r4, #1
	ldr	r1, [r7]
	bl	__aeabi_idivmod
	sub	fp, fp, #1
	cmn	fp, #1
	mov	r4, r1
	bne	.L5
	mov	r3, r1
	mov	r2, r6
	mov	r0, r5
	ldr	r1, [r10]
	bl	iproc_msi_write_reg
	b	.L6
.L4:
	ldm	sp, {r0, r1}
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	chained_irq_exit
.L11:
	.align	2
.L10:
	.word	IPROC_MSI_EQ_HEAD
	.word	IPROC_MSI_EQ_MASK
	.word	IPROC_MSI_EQ_TAIL
	.word	EQ_LEN
	.size	iproc_msi_handler, .-iproc_msi_handler
	.comm	IPROC_MSI_EQ_TAIL,4,4
	.comm	IPROC_MSI_EQ_MASK,4,4
	.comm	IPROC_MSI_EQ_HEAD,4,4
	.comm	EQ_LEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
