	.file	"extr_qca955x_pci.c_qca955x_pci_mask_irq.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	qca955x_pci_mask_irq, @function
qca955x_pci_mask_irq:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR AR71XX_PCI_IRQ_START[rip]
	cmp	QWORD PTR [rdi], rax
	je	.L7
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, QWORD PTR 8[rdi]
	mov	rdi, QWORD PTR QCA955X_PCI_INTR_MASK[rip]
	add	rdi, QWORD PTR [rbx]
	call	ATH_READ_REG@PLT
	mov	esi, DWORD PTR QCA955X_PCI_INTR_DEV0[rip]
	mov	rdi, QWORD PTR QCA955X_PCI_INTR_MASK[rip]
	add	rdi, QWORD PTR [rbx]
	not	esi
	and	esi, eax
	call	ATH_WRITE_REG@PLT
	mov	rdi, QWORD PTR QCA955X_PCI_INTR_STATUS[rip]
	add	rdi, QWORD PTR [rbx]
	call	ATH_READ_REG@PLT
	or	eax, DWORD PTR QCA955X_PCI_INTR_DEV0[rip]
	mov	rdi, QWORD PTR QCA955X_PCI_INTR_STATUS[rip]
	mov	esi, eax
	add	rdi, QWORD PTR [rbx]
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 8
	jmp	ATH_WRITE_REG@PLT
	.cfi_endproc
.LFE0:
	.size	qca955x_pci_mask_irq, .-qca955x_pci_mask_irq
	.comm	QCA955X_PCI_INTR_STATUS,8,8
	.comm	QCA955X_PCI_INTR_MASK,8,8
	.comm	QCA955X_PCI_INTR_DEV0,4,4
	.comm	AR71XX_PCI_IRQ_START,8,8
	.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_mask_irq.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	qca955x_pci_mask_irq, %function
qca955x_pci_mask_irq:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L7
	ldr	r2, [r0]
	ldr	r3, [r3]
	cmp	r2, r3
	bxne	lr
	push	{r4, r5, r6, lr}
	ldr	r4, [r0, #4]
	ldr	r5, .L7+4
	ldr	r0, [r4]
	ldr	r3, [r5]
	ldr	r6, .L7+8
	add	r0, r0, r3
	bl	ATH_READ_REG
	mov	r3, r0
	ldr	r2, [r5]
	ldr	r0, [r4]
	ldr	r1, [r6]
	ldr	r5, .L7+12
	bic	r1, r3, r1
	add	r0, r0, r2
	bl	ATH_WRITE_REG
	ldr	r3, [r5]
	ldr	r0, [r4]
	add	r0, r0, r3
	bl	ATH_READ_REG
	ldr	r1, [r6]
	ldr	r2, [r4]
	ldr	r3, [r5]
	orr	r1, r0, r1
	pop	{r4, r5, r6, lr}
	add	r0, r2, r3
	b	ATH_WRITE_REG
.L8:
	.align	2
.L7:
	.word	AR71XX_PCI_IRQ_START
	.word	QCA955X_PCI_INTR_MASK
	.word	QCA955X_PCI_INTR_DEV0
	.word	QCA955X_PCI_INTR_STATUS
	.size	qca955x_pci_mask_irq, .-qca955x_pci_mask_irq
	.comm	QCA955X_PCI_INTR_STATUS,4,4
	.comm	QCA955X_PCI_INTR_MASK,4,4
	.comm	QCA955X_PCI_INTR_DEV0,4,4
	.comm	AR71XX_PCI_IRQ_START,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
