	.file	"extr_dt2814.c_dt2814_interrupt.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"spurious interrupt"
	.text
	.p2align 4
	.type	dt2814_interrupt, @function
dt2814_interrupt:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	edx, DWORD PTR 16[rsi]
	test	edx, edx
	je	.L10
	mov	rdi, QWORD PTR DT2814_DATA[rip]
	add	rdi, QWORD PTR [rsi]
	mov	r12, QWORD PTR 8[rsi]
	call	inb@PLT
	mov	rdi, QWORD PTR DT2814_DATA[rip]
	add	rdi, QWORD PTR 0[rbp]
	call	inb@PLT
	mov	rax, QWORD PTR devpriv[rip]
	mov	ecx, DWORD PTR [rax]
	lea	ebx, -1[rcx]
	mov	DWORD PTR [rax], ebx
	test	ebx, ebx
	je	.L11
.L4:
	mov	rsi, r12
	mov	rdi, rbp
	call	comedi_event@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR IRQ_HANDLED[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	rsi, QWORD PTR DT2814_CSR[rip]
	xor	edi, edi
	add	rsi, QWORD PTR 0[rbp]
	call	outb@PLT
	mov	eax, DWORD PTR DT2814_TIMEOUT[rip]
	test	eax, eax
	jg	.L6
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L12:
	add	ebx, 1
	cmp	DWORD PTR DT2814_TIMEOUT[rip], ebx
	jle	.L5
.L6:
	mov	rdi, QWORD PTR DT2814_CSR[rip]
	add	rdi, QWORD PTR 0[rbp]
	call	inb@PLT
	test	DWORD PTR DT2814_FINISH[rip], eax
	je	.L12
.L5:
	mov	rdi, QWORD PTR DT2814_DATA[rip]
	add	rdi, QWORD PTR 0[rbp]
	call	inb@PLT
	mov	rdi, QWORD PTR DT2814_DATA[rip]
	add	rdi, QWORD PTR 0[rbp]
	call	inb@PLT
	mov	rax, QWORD PTR [r12]
	mov	edx, DWORD PTR COMEDI_CB_EOA[rip]
	or	DWORD PTR [rax], edx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, rbp
	lea	rsi, .LC0[rip]
	call	comedi_error@PLT
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR IRQ_HANDLED[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	dt2814_interrupt, .-dt2814_interrupt
	.comm	devpriv,8,8
	.comm	IRQ_HANDLED,4,4
	.comm	DT2814_TIMEOUT,4,4
	.comm	DT2814_FINISH,4,4
	.comm	DT2814_DATA,8,8
	.comm	DT2814_CSR,8,8
	.comm	COMEDI_CB_EOA,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_dt2814.c_dt2814_interrupt.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"spurious interrupt\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dt2814_interrupt, %function
dt2814_interrupt:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r1, #8]
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	cmp	r3, #0
	mov	r4, r1
	beq	.L10
	ldr	r6, .L13
	ldr	r0, [r1]
	ldr	r3, [r6]
	ldr	r7, [r1, #4]
	add	r0, r0, r3
	bl	inb
	ldr	r3, [r6]
	ldr	r0, [r4]
	add	r0, r0, r3
	bl	inb
	ldr	r3, .L13+4
	ldr	r3, [r3]
	ldr	r5, [r3]
	sub	r5, r5, #1
	cmp	r5, #0
	str	r5, [r3]
	beq	.L11
.L4:
	mov	r1, r7
	mov	r0, r4
	bl	comedi_event
	ldr	r3, .L13+8
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L11:
	ldr	r8, .L13+12
	ldr	r1, [r4]
	ldr	r3, [r8]
	ldr	r9, .L13+16
	add	r1, r1, r3
	mov	r0, r5
	bl	outb
	ldr	r3, [r9]
	cmp	r3, #0
	ble	.L5
	ldr	r10, .L13+20
	b	.L6
.L12:
	ldr	r3, [r9]
	cmp	r3, r5
	ble	.L5
.L6:
	ldr	r3, [r8]
	ldr	r0, [r4]
	add	r5, r5, #1
	add	r0, r0, r3
	bl	inb
	ldr	r3, [r10]
	tst	r0, r3
	beq	.L12
.L5:
	ldr	r3, [r6]
	ldr	r0, [r4]
	add	r0, r0, r3
	bl	inb
	ldr	r3, [r6]
	ldr	r0, [r4]
	add	r0, r0, r3
	bl	inb
	ldr	r2, [r7]
	ldr	r1, .L13+24
	ldr	r3, [r2]
	ldr	r1, [r1]
	orr	r3, r3, r1
	str	r3, [r2]
	b	.L4
.L10:
	mov	r0, r1
	ldr	r1, .L13+28
	bl	comedi_error
	ldr	r3, .L13+8
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L14:
	.align	2
.L13:
	.word	DT2814_DATA
	.word	devpriv
	.word	IRQ_HANDLED
	.word	DT2814_CSR
	.word	DT2814_TIMEOUT
	.word	DT2814_FINISH
	.word	COMEDI_CB_EOA
	.word	.LC0
	.size	dt2814_interrupt, .-dt2814_interrupt
	.comm	devpriv,4,4
	.comm	IRQ_HANDLED,4,4
	.comm	DT2814_TIMEOUT,4,4
	.comm	DT2814_FINISH,4,4
	.comm	DT2814_DATA,4,4
	.comm	DT2814_CSR,4,4
	.comm	COMEDI_CB_EOA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
