	.file	"extr_qca955x_pci.c_qca955x_pci_intr.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Stray IRQ %d\n"
	.text
	.p2align 4
	.type	qca955x_pci_intr, @function
qca955x_pci_intr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR AR71XX_CPU_DDR_FLUSH_PCIE[rip]
	call	ar71xx_device_flush_ddr@PLT
	mov	rdi, QWORD PTR QCA955X_PCI_INTR_STATUS[rip]
	add	rdi, QWORD PTR 16[rbp]
	call	ATH_READ_REG@PLT
	mov	rdi, QWORD PTR QCA955X_PCI_INTR_MASK[rip]
	add	rdi, QWORD PTR 16[rbp]
	mov	ebx, eax
	call	ATH_READ_REG@PLT
	and	ebx, eax
	test	DWORD PTR QCA955X_PCI_INTR_DEV0[rip], ebx
	je	.L2
	movsx	rbx, DWORD PTR AR71XX_PCI_IRQ_START[rip]
	mov	rax, QWORD PTR 8[rbp]
	mov	r12, QWORD PTR [rax+rbx*8]
	mov	r13, rbx
	test	r12, r12
	je	.L5
	mov	rdi, r12
	call	CK_SLIST_EMPTY@PLT
	test	rax, rax
	jne	.L5
	mov	rdi, r12
	xor	esi, esi
	call	intr_event_handle@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	edi, DWORD PTR [rax+rbx*4]
	call	mips_intrcnt_inc@PLT
.L2:
	mov	eax, DWORD PTR FILTER_HANDLED[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	esi, r13d
	lea	rdi, .LC0[rip]
	call	printf@PLT
	mov	eax, DWORD PTR FILTER_STRAY[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	qca955x_pci_intr, .-qca955x_pci_intr
	.comm	QCA955X_PCI_INTR_STATUS,8,8
	.comm	QCA955X_PCI_INTR_MASK,8,8
	.comm	QCA955X_PCI_INTR_DEV0,4,4
	.comm	FILTER_STRAY,4,4
	.comm	FILTER_HANDLED,4,4
	.comm	AR71XX_PCI_IRQ_START,4,4
	.comm	AR71XX_CPU_DDR_FLUSH_PCIE,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_qca955x_pci.c_qca955x_pci_intr.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Stray IRQ %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	qca955x_pci_intr, %function
qca955x_pci_intr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	ldr	r3, .L11
	ldr	r0, [r3]
	bl	ar71xx_device_flush_ddr
	ldr	r3, .L11+4
	ldr	r0, [r5, #8]
	ldr	r3, [r3]
	add	r0, r0, r3
	bl	ATH_READ_REG
	ldr	r3, .L11+8
	ldr	r2, [r5, #8]
	ldr	r3, [r3]
	mov	r4, r0
	add	r0, r2, r3
	bl	ATH_READ_REG
	ldr	r3, .L11+12
	and	r4, r4, r0
	ldr	r3, [r3]
	tst	r4, r3
	beq	.L2
	ldr	r2, .L11+16
	ldr	r3, [r5, #4]
	ldr	r6, [r2]
	ldr	r4, [r3, r6, lsl #2]
	cmp	r4, #0
	beq	.L5
	mov	r0, r4
	bl	CK_SLIST_EMPTY
	subs	r1, r0, #0
	bne	.L5
	mov	r0, r4
	bl	intr_event_handle
	ldr	r3, [r5]
	ldr	r0, [r3, r6, lsl #2]
	bl	mips_intrcnt_inc
.L2:
	ldr	r3, .L11+20
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L5:
	mov	r1, r6
	ldr	r0, .L11+24
	bl	printf
	ldr	r3, .L11+28
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L12:
	.align	2
.L11:
	.word	AR71XX_CPU_DDR_FLUSH_PCIE
	.word	QCA955X_PCI_INTR_STATUS
	.word	QCA955X_PCI_INTR_MASK
	.word	QCA955X_PCI_INTR_DEV0
	.word	AR71XX_PCI_IRQ_START
	.word	FILTER_HANDLED
	.word	.LC0
	.word	FILTER_STRAY
	.size	qca955x_pci_intr, .-qca955x_pci_intr
	.comm	QCA955X_PCI_INTR_STATUS,4,4
	.comm	QCA955X_PCI_INTR_MASK,4,4
	.comm	QCA955X_PCI_INTR_DEV0,4,4
	.comm	FILTER_STRAY,4,4
	.comm	FILTER_HANDLED,4,4
	.comm	AR71XX_PCI_IRQ_START,4,4
	.comm	AR71XX_CPU_DDR_FLUSH_PCIE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
