	.file	"extr_r592.c_r592_irq.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"IRQ: DMA error"
.LC1:
	.string	"IRQ: dma done"
.LC2:
	.string	"removed"
.LC3:
	.string	"IRQ: card %s"
.LC4:
	.string	"added"
	.text
	.p2align 4
	.type	r592_irq, @function
r592_irq:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, DWORD PTR IRQ_NONE[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	xor	esi, esi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rdi, rbp
	call	spin_lock_irqsave@PLT
	mov	esi, DWORD PTR R592_REG_MSC[rip]
	mov	rdi, rbp
	call	r592_read_reg@PLT
	mov	esi, DWORD PTR R592_REG_MSC[rip]
	mov	rdi, rbp
	mov	ebx, eax
	sar	ebx, 16
	and	ebx, eax
	xor	ax, ax
	mov	edx, eax
	movzx	ebx, bx
	call	r592_write_reg@PLT
	mov	eax, DWORD PTR R592_REG_MSC_IRQ_INSERT[rip]
	mov	edx, DWORD PTR R592_REG_MSC_IRQ_REMOVE[rip]
	or	edx, eax
	test	edx, ebx
	je	.L2
	mov	r12d, DWORD PTR IRQ_HANDLED[rip]
	test	eax, ebx
	jne	.L3
	lea	rdi, .LC3[rip]
	lea	rsi, .LC2[rip]
	xor	eax, eax
	call	message@PLT
	mov	edi, 50
.L8:
	call	msecs_to_jiffies@PLT
	add	rax, QWORD PTR jiffies[rip]
	lea	rdi, 8[rbp]
	mov	rsi, rax
	call	mod_timer@PLT
.L2:
	mov	esi, DWORD PTR R592_REG_MSC_FIFO_DMA_ERR[rip]
	mov	eax, DWORD PTR R592_REG_MSC_FIFO_DMA_DONE[rip]
	or	eax, esi
	test	eax, ebx
	je	.L5
	mov	r12d, DWORD PTR IRQ_HANDLED[rip]
	and	ebx, esi
	jne	.L19
	lea	rdi, .LC1[rip]
	call	dbg_verbose@PLT
.L7:
	mov	rdi, rbp
	mov	esi, ebx
	call	r592_stop_dma@PLT
	lea	rdi, 4[rbp]
	call	complete@PLT
.L5:
	mov	rdi, rbp
	xor	esi, esi
	call	spin_unlock_irqrestore@PLT
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	message@PLT
	mov	ebx, DWORD PTR EIO[rip]
	neg	ebx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L3:
	lea	rdi, .LC3[rip]
	lea	rsi, .LC4[rip]
	xor	eax, eax
	call	message@PLT
	mov	edi, 500
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	r592_irq, .-r592_irq
	.comm	jiffies,8,8
	.comm	R592_REG_MSC_IRQ_REMOVE,4,4
	.comm	R592_REG_MSC_IRQ_INSERT,4,4
	.comm	R592_REG_MSC_FIFO_DMA_ERR,4,4
	.comm	R592_REG_MSC_FIFO_DMA_DONE,4,4
	.comm	R592_REG_MSC,4,4
	.comm	IRQ_NONE,4,4
	.comm	IRQ_HANDLED,4,4
	.comm	EIO,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_r592.c_r592_irq.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"IRQ: DMA error\000"
	.align	2
.LC1:
	.ascii	"IRQ: dma done\000"
	.align	2
.LC2:
	.ascii	"removed\000"
	.align	2
.LC3:
	.ascii	"IRQ: card %s\000"
	.align	2
.LC4:
	.ascii	"added\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	r592_irq, %function
r592_irq:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	ldr	r3, .L20
	ldr	r7, .L20+4
	mov	r0, r1
	mov	r1, #0
	ldr	r6, [r3]
	bl	spin_lock_irqsave
	ldr	r1, [r7]
	mov	r0, r5
	bl	r592_read_reg
	mov	r4, r0
	lsr	r2, r0, #16
	lsl	r2, r2, #16
	mov	r0, r5
	ldr	r1, [r7]
	bl	r592_write_reg
	ldr	r2, .L20+8
	ldr	r3, .L20+12
	ldr	r2, [r2]
	ldr	r3, [r3]
	and	r4, r4, r4, asr #16
	lsl	r4, r4, #16
	lsr	r4, r4, #16
	orr	r3, r2, r3
	tst	r3, r4
	beq	.L2
	ldr	r3, .L20+16
	tst	r2, r4
	ldr	r6, [r3]
	add	r7, r5, #8
	bne	.L3
	ldr	r1, .L20+20
	ldr	r0, .L20+24
	bl	message
	mov	r0, #50
.L8:
	bl	msecs_to_jiffies
	mov	r1, r0
	ldr	r3, .L20+28
	mov	r0, r7
	ldr	r3, [r3]
	add	r1, r1, r3
	bl	mod_timer
.L2:
	ldr	r2, .L20+32
	ldr	r3, .L20+36
	ldr	r1, [r2]
	ldr	r3, [r3]
	orr	r3, r1, r3
	tst	r3, r4
	beq	.L5
	ldr	r3, .L20+16
	ands	r4, r1, r4
	ldr	r6, [r3]
	bne	.L19
	ldr	r0, .L20+40
	bl	dbg_verbose
.L7:
	mov	r1, r4
	mov	r0, r5
	bl	r592_stop_dma
	add	r0, r5, #4
	bl	complete
.L5:
	mov	r0, r5
	mov	r1, #0
	bl	spin_unlock_irqrestore
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L19:
	ldr	r0, .L20+44
	bl	message
	ldr	r3, .L20+48
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L7
.L3:
	ldr	r1, .L20+52
	ldr	r0, .L20+24
	bl	message
	mov	r0, #500
	b	.L8
.L21:
	.align	2
.L20:
	.word	IRQ_NONE
	.word	R592_REG_MSC
	.word	R592_REG_MSC_IRQ_INSERT
	.word	R592_REG_MSC_IRQ_REMOVE
	.word	IRQ_HANDLED
	.word	.LC2
	.word	.LC3
	.word	jiffies
	.word	R592_REG_MSC_FIFO_DMA_ERR
	.word	R592_REG_MSC_FIFO_DMA_DONE
	.word	.LC1
	.word	.LC0
	.word	EIO
	.word	.LC4
	.size	r592_irq, .-r592_irq
	.comm	jiffies,4,4
	.comm	R592_REG_MSC_IRQ_REMOVE,4,4
	.comm	R592_REG_MSC_IRQ_INSERT,4,4
	.comm	R592_REG_MSC_FIFO_DMA_ERR,4,4
	.comm	R592_REG_MSC_FIFO_DMA_DONE,4,4
	.comm	R592_REG_MSC,4,4
	.comm	IRQ_NONE,4,4
	.comm	IRQ_HANDLED,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
