	.file	"extr_cx88-mpeg.c_cx8802_irq.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"cx8802_irq\n"
.LC1:
	.string	"    loop: %d/%d\n"
.LC2:
	.string	"    status: %d\n"
.LC3:
	.string	"clearing mask\n"
.LC4:
	.string	"irq loop -- clearing mask\n"
	.text
	.p2align 4
	.type	cx8802_irq, @function
cx8802_irq:
.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
	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
	mov	eax, DWORD PTR MAX_IRQ_LOOP[rip]
	mov	r12, QWORD PTR [rsi]
	test	eax, eax
	jle	.L7
	mov	r15, rsi
	xor	r13d, r13d
	lea	r14, .LC0[rip]
	xor	ebp, ebp
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L4:
	test	DWORD PTR PCI_INT_TSINT[rip], ebx
	jne	.L20
.L5:
	mov	eax, DWORD PTR MAX_IRQ_LOOP[rip]
	add	ebp, 1
	mov	r13d, 1
	cmp	eax, ebp
	jle	.L2
.L6:
	mov	edi, DWORD PTR MO_PCI_INTSTAT[rip]
	call	cx_read@PLT
	mov	ebx, DWORD PTR [r12]
	or	ebx, DWORD PTR PCI_INT_TSINT[rip]
	and	ebx, eax
	je	.L3
	mov	rsi, r14
	mov	edi, 1
	xor	eax, eax
	call	dprintk@PLT
	mov	ecx, DWORD PTR MAX_IRQ_LOOP[rip]
	mov	edx, ebp
	xor	eax, eax
	lea	rsi, .LC1[rip]
	mov	edi, 1
	call	dprintk@PLT
	lea	rsi, .LC2[rip]
	xor	eax, eax
	mov	edx, ebx
	mov	edi, 1
	call	dprintk@PLT
	mov	edi, DWORD PTR MO_PCI_INTSTAT[rip]
	mov	esi, ebx
	call	cx_write@PLT
	test	DWORD PTR [r12], ebx
	je	.L4
	mov	esi, ebx
	mov	rdi, r12
	call	cx88_core_irq@PLT
	test	DWORD PTR PCI_INT_TSINT[rip], ebx
	je	.L5
.L20:
	mov	rdi, r15
	call	cx8802_mpeg_irq@PLT
	jmp	.L5
.L7:
	xor	r13d, r13d
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L2:
	cmp	eax, ebp
	jne	.L3
	lea	rsi, .LC3[rip]
	xor	edi, edi
	xor	eax, eax
	call	dprintk@PLT
	lea	rdi, .LC4[rip]
	call	pr_warn@PLT
	mov	edi, DWORD PTR MO_PCI_INTMSK[rip]
	xor	esi, esi
	call	cx_write@PLT
.L3:
	add	rsp, 8
	.cfi_def_cfa_offset 56
	mov	edi, r13d
	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	IRQ_RETVAL@PLT
	.cfi_endproc
.LFE0:
	.size	cx8802_irq, .-cx8802_irq
	.comm	PCI_INT_TSINT,4,4
	.comm	MO_PCI_INTSTAT,4,4
	.comm	MO_PCI_INTMSK,4,4
	.comm	MAX_IRQ_LOOP,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_cx88-mpeg.c_cx8802_irq.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"cx8802_irq\012\000"
	.align	2
.LC1:
	.ascii	"    loop: %d/%d\012\000"
	.align	2
.LC2:
	.ascii	"    status: %d\012\000"
	.align	2
.LC3:
	.ascii	"clearing mask\012\000"
	.align	2
.LC4:
	.ascii	"irq loop -- clearing mask\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cx8802_irq, %function
cx8802_irq:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r7, .L22
	sub	sp, sp, #12
	ldr	r3, [r7]
	ldr	r6, [r1]
	cmp	r3, #0
	str	r1, [sp, #4]
	ble	.L7
	mov	r3, #0
	ldr	r9, .L22+4
	mov	r5, r3
	ldr	r8, .L22+8
	ldr	fp, .L22+12
	ldr	r10, .L22+16
	str	r3, [sp]
	b	.L6
.L4:
	mov	r2, #1
	ldr	r3, [r8]
	str	r2, [sp]
	tst	r4, r3
	bne	.L20
	ldr	r3, [r7]
	cmp	r3, r5
	ble	.L2
.L6:
	ldr	r0, [r9]
	bl	cx_read
	ldr	r4, [r6]
	ldr	r3, [r8]
	orr	r4, r4, r3
	ands	r4, r4, r0
	beq	.L3
	mov	r1, fp
	mov	r0, #1
	bl	dprintk
	ldr	r3, [r7]
	mov	r2, r5
	ldr	r1, .L22+20
	mov	r0, #1
	bl	dprintk
	mov	r2, r4
	mov	r1, r10
	mov	r0, #1
	bl	dprintk
	mov	r1, r4
	ldr	r0, [r9]
	bl	cx_write
	ldr	r3, [r6]
	add	r5, r5, #1
	tst	r4, r3
	beq	.L4
	mov	r1, r4
	mov	r0, r6
	bl	cx88_core_irq
	b	.L4
.L20:
	ldr	r0, [sp, #4]
	bl	cx8802_mpeg_irq
	ldr	r3, [r7]
	cmp	r3, r5
	bgt	.L6
.L2:
	cmp	r3, r5
	beq	.L21
.L3:
	ldr	r0, [sp]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	IRQ_RETVAL
.L21:
	ldr	r1, .L22+24
	mov	r0, #0
	bl	dprintk
	ldr	r0, .L22+28
	bl	pr_warn
	ldr	r3, .L22+32
	mov	r1, #0
	ldr	r0, [r3]
	bl	cx_write
	ldr	r0, [sp]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	IRQ_RETVAL
.L7:
	mov	r2, #0
	mov	r5, r2
	str	r2, [sp]
	b	.L2
.L23:
	.align	2
.L22:
	.word	MAX_IRQ_LOOP
	.word	MO_PCI_INTSTAT
	.word	PCI_INT_TSINT
	.word	.LC0
	.word	.LC2
	.word	.LC1
	.word	.LC3
	.word	.LC4
	.word	MO_PCI_INTMSK
	.size	cx8802_irq, .-cx8802_irq
	.comm	PCI_INT_TSINT,4,4
	.comm	MO_PCI_INTSTAT,4,4
	.comm	MO_PCI_INTMSK,4,4
	.comm	MAX_IRQ_LOOP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
