	.file	"extr_ni_labpc_common.c_labpc_interrupt.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"premature interrupt\n"
.LC1:
	.string	"overrun\n"
.LC2:
	.string	"handled timer interrupt?\n"
.LC3:
	.string	"overflow\n"
	.text
	.p2align 4
	.type	labpc_interrupt, @function
labpc_interrupt:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	eax, DWORD PTR 4[rsi]
	test	eax, eax
	je	.L24
	mov	r14, QWORD PTR 24[rsi]
	mov	r13, QWORD PTR 16[rsi]
	mov	rdi, rbp
	mov	r12, QWORD PTR 8[rsi]
	mov	esi, DWORD PTR STAT1_REG[rip]
	mov	rbx, QWORD PTR [r12]
	call	[QWORD PTR 8[r13]]
	cmp	QWORD PTR [r14], 0
	mov	DWORD PTR 0[r13], eax
	je	.L4
	mov	esi, DWORD PTR STAT2_REG[rip]
	mov	rdi, rbp
	call	[QWORD PTR 8[r13]]
	mov	DWORD PTR 16[r13], eax
	mov	eax, DWORD PTR 0[r13]
.L4:
	mov	ecx, DWORD PTR STAT1_OVERRUN[rip]
	mov	edx, DWORD PTR STAT1_GATA0[rip]
	or	edx, DWORD PTR STAT1_CNTINT[rip]
	or	edx, DWORD PTR STAT1_OVERFLOW[rip]
	or	edx, ecx
	or	edx, DWORD PTR STAT1_DAVAIL[rip]
	test	edx, eax
	jne	.L5
	mov	edx, DWORD PTR 16[r13]
	test	DWORD PTR STAT2_OUTA1[rip], edx
	jne	.L5
	test	DWORD PTR STAT2_FIFONHF[rip], edx
	je	.L5
	mov	eax, DWORD PTR IRQ_NONE[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	test	ecx, eax
	jne	.L25
	mov	rax, QWORD PTR isa_dma_transfer[rip]
	mov	rdi, rbp
	cmp	QWORD PTR 24[r13], rax
	je	.L26
	call	labpc_drain_fifo@PLT
	mov	eax, DWORD PTR 0[r13]
	test	DWORD PTR STAT1_CNTINT[rip], eax
	jne	.L27
.L9:
	test	DWORD PTR STAT1_OVERFLOW[rip], eax
	jne	.L28
	mov	rax, QWORD PTR 8[rbx]
	cmp	rax, QWORD PTR TRIG_EXT[rip]
	je	.L29
.L11:
	cmp	QWORD PTR TRIG_COUNT[rip], rax
	je	.L30
.L12:
	mov	rsi, r12
	mov	rdi, rbp
	call	comedi_handle_events@PLT
	mov	eax, DWORD PTR IRQ_HANDLED[rip]
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L25:
	.cfi_restore_state
	mov	edx, DWORD PTR ADC_FIFO_CLEAR_REG[rip]
	mov	rdi, rbp
	mov	esi, 1
	call	[QWORD PTR 40[r13]]
	mov	eax, DWORD PTR COMEDI_CB_ERROR[rip]
	or	DWORD PTR [rbx], eax
	mov	rsi, r12
	mov	rdi, rbp
	call	comedi_handle_events@PLT
	mov	edi, DWORD PTR 0[rbp]
	lea	rsi, .LC1[rip]
	call	dev_err@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, DWORD PTR IRQ_HANDLED[rip]
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	mov	edi, DWORD PTR 0[rbp]
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, DWORD PTR IRQ_HANDLED[rip]
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L28:
	.cfi_restore_state
	mov	edx, DWORD PTR ADC_FIFO_CLEAR_REG[rip]
	mov	rdi, rbp
	mov	esi, 1
	call	[QWORD PTR 40[r13]]
	mov	eax, DWORD PTR COMEDI_CB_ERROR[rip]
	or	DWORD PTR [rbx], eax
	mov	rsi, r12
	mov	rdi, rbp
	call	comedi_handle_events@PLT
	mov	edi, DWORD PTR 0[rbp]
	lea	rsi, .LC3[rip]
	call	dev_err@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, DWORD PTR IRQ_HANDLED[rip]
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L26:
	.cfi_restore_state
	call	labpc_handle_dma_status@PLT
	mov	eax, DWORD PTR 0[r13]
	test	DWORD PTR STAT1_CNTINT[rip], eax
	je	.L9
.L27:
	mov	edi, DWORD PTR 0[rbp]
	lea	rsi, .LC2[rip]
	call	dev_err@PLT
	mov	edx, DWORD PTR TIMER_CLEAR_REG[rip]
	mov	esi, 1
	mov	rdi, rbp
	call	[QWORD PTR 40[r13]]
	mov	eax, DWORD PTR 0[r13]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L30:
	cmp	QWORD PTR 32[r13], 0
	jne	.L12
	mov	eax, DWORD PTR COMEDI_CB_EOA[rip]
	or	DWORD PTR [rbx], eax
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L29:
	mov	edx, DWORD PTR 16[r13]
	test	DWORD PTR STAT2_OUTA1[rip], edx
	je	.L11
	mov	rdi, rbp
	call	labpc_drain_dregs@PLT
	mov	eax, DWORD PTR COMEDI_CB_EOA[rip]
	or	DWORD PTR [rbx], eax
	mov	rax, QWORD PTR 8[rbx]
	jmp	.L11
	.cfi_endproc
.LFE0:
	.size	labpc_interrupt, .-labpc_interrupt
	.comm	isa_dma_transfer,8,8
	.comm	TRIG_EXT,8,8
	.comm	TRIG_COUNT,8,8
	.comm	TIMER_CLEAR_REG,4,4
	.comm	STAT2_REG,4,4
	.comm	STAT2_OUTA1,4,4
	.comm	STAT2_FIFONHF,4,4
	.comm	STAT1_REG,4,4
	.comm	STAT1_OVERRUN,4,4
	.comm	STAT1_OVERFLOW,4,4
	.comm	STAT1_GATA0,4,4
	.comm	STAT1_DAVAIL,4,4
	.comm	STAT1_CNTINT,4,4
	.comm	IRQ_NONE,4,4
	.comm	IRQ_HANDLED,4,4
	.comm	COMEDI_CB_ERROR,4,4
	.comm	COMEDI_CB_EOA,4,4
	.comm	ADC_FIFO_CLEAR_REG,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_ni_labpc_common.c_labpc_interrupt.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"premature interrupt\012\000"
	.align	2
.LC1:
	.ascii	"overrun\012\000"
	.align	2
.LC2:
	.ascii	"handled timer interrupt?\012\000"
	.align	2
.LC3:
	.ascii	"overflow\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	labpc_interrupt, %function
labpc_interrupt:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r1, #4]
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	cmp	r3, #0
	mov	r4, r1
	beq	.L27
	ldr	r5, [r1, #12]
	ldr	r2, .L33
	ldr	r6, [r1, #8]
	ldr	r3, [r5, #4]
	ldr	r1, [r2]
	mov	r0, r4
	ldr	r8, [r4, #16]
	ldr	r7, [r6]
	blx	r3
	ldr	r3, [r8]
	mov	r2, r0
	cmp	r3, #0
	str	r0, [r5]
	beq	.L4
	ldr	r2, .L33+4
	mov	r0, r4
	ldr	r1, [r2]
	ldr	r3, [r5, #4]
	blx	r3
	ldr	r2, [r5]
	str	r0, [r5, #8]
.L4:
	ldr	r3, .L33+8
	ldr	r9, .L33+12
	ldr	r8, .L33+16
	ldr	r0, [r9]
	ldr	r3, [r3]
	ldr	r1, .L33+20
	orr	r3, r3, r0
	ldr	ip, [r8]
	ldr	r0, .L33+24
	ldr	r1, [r1]
	ldr	r0, [r0]
	orr	r3, r3, ip
	orr	r3, r3, r1
	orr	r3, r3, r0
	tst	r3, r2
	bne	.L5
	ldr	r0, .L33+28
	ldr	r3, [r5, #8]
	ldr	r0, [r0]
	tst	r3, r0
	bne	.L5
	ldr	r0, .L33+32
	ldr	r0, [r0]
	tst	r3, r0
	beq	.L5
	ldr	r3, .L33+36
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L5:
	tst	r1, r2
	bne	.L28
	ldr	r3, .L33+40
	ldr	r2, [r5, #12]
	ldr	r3, [r3]
	mov	r0, r4
	cmp	r2, r3
	beq	.L29
	bl	labpc_drain_fifo
	ldr	r2, [r9]
	ldr	r3, [r5]
	tst	r3, r2
	bne	.L30
.L9:
	ldr	r2, [r8]
	tst	r3, r2
	bne	.L31
	ldr	r2, .L33+44
	ldr	r3, [r7, #4]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L32
.L11:
	ldr	r2, .L33+48
	ldr	r2, [r2]
	cmp	r2, r3
	bne	.L12
	ldr	r3, [r5, #16]
	cmp	r3, #0
	ldreq	r2, .L33+52
	ldreq	r3, [r7]
	ldreq	r2, [r2]
	orreq	r3, r3, r2
	streq	r3, [r7]
.L12:
	mov	r1, r6
	mov	r0, r4
	bl	comedi_handle_events
	ldr	r3, .L33+56
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L28:
	ldr	r2, .L33+60
	ldr	r3, [r5, #20]
	mov	r1, #1
	mov	r0, r4
	ldr	r2, [r2]
	blx	r3
	ldr	r2, .L33+64
	ldr	r3, [r7]
	ldr	r2, [r2]
	mov	r1, r6
	orr	r3, r3, r2
	str	r3, [r7]
	mov	r0, r4
	bl	comedi_handle_events
	ldr	r0, [r4]
	ldr	r1, .L33+68
	bl	dev_err
	ldr	r3, .L33+56
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L27:
	ldr	r0, [r1]
	ldr	r1, .L33+72
	bl	dev_err
	ldr	r3, .L33+56
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L31:
	ldr	r2, .L33+60
	ldr	r3, [r5, #20]
	mov	r1, #1
	mov	r0, r4
	ldr	r2, [r2]
	blx	r3
	ldr	r2, .L33+64
	ldr	r3, [r7]
	ldr	r2, [r2]
	mov	r1, r6
	orr	r3, r3, r2
	str	r3, [r7]
	mov	r0, r4
	bl	comedi_handle_events
	ldr	r0, [r4]
	ldr	r1, .L33+76
	bl	dev_err
	ldr	r3, .L33+56
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L29:
	bl	labpc_handle_dma_status
	ldr	r2, [r9]
	ldr	r3, [r5]
	tst	r3, r2
	beq	.L9
.L30:
	ldr	r1, .L33+80
	ldr	r0, [r4]
	bl	dev_err
	ldr	r2, .L33+84
	ldr	r3, [r5, #20]
	mov	r1, #1
	mov	r0, r4
	ldr	r2, [r2]
	blx	r3
	ldr	r3, [r5]
	b	.L9
.L32:
	ldr	r2, .L33+28
	ldr	r1, [r5, #8]
	ldr	r2, [r2]
	tst	r1, r2
	beq	.L11
	mov	r0, r4
	bl	labpc_drain_dregs
	ldr	r3, .L33+52
	ldr	r2, [r7]
	ldr	r1, [r3]
	ldr	r3, [r7, #4]
	orr	r2, r2, r1
	str	r2, [r7]
	b	.L11
.L34:
	.align	2
.L33:
	.word	STAT1_REG
	.word	STAT2_REG
	.word	STAT1_GATA0
	.word	STAT1_CNTINT
	.word	STAT1_OVERFLOW
	.word	STAT1_OVERRUN
	.word	STAT1_DAVAIL
	.word	STAT2_OUTA1
	.word	STAT2_FIFONHF
	.word	IRQ_NONE
	.word	isa_dma_transfer
	.word	TRIG_EXT
	.word	TRIG_COUNT
	.word	COMEDI_CB_EOA
	.word	IRQ_HANDLED
	.word	ADC_FIFO_CLEAR_REG
	.word	COMEDI_CB_ERROR
	.word	.LC1
	.word	.LC0
	.word	.LC3
	.word	.LC2
	.word	TIMER_CLEAR_REG
	.size	labpc_interrupt, .-labpc_interrupt
	.comm	isa_dma_transfer,4,4
	.comm	TRIG_EXT,4,4
	.comm	TRIG_COUNT,4,4
	.comm	TIMER_CLEAR_REG,4,4
	.comm	STAT2_REG,4,4
	.comm	STAT2_OUTA1,4,4
	.comm	STAT2_FIFONHF,4,4
	.comm	STAT1_REG,4,4
	.comm	STAT1_OVERRUN,4,4
	.comm	STAT1_OVERFLOW,4,4
	.comm	STAT1_GATA0,4,4
	.comm	STAT1_DAVAIL,4,4
	.comm	STAT1_CNTINT,4,4
	.comm	IRQ_NONE,4,4
	.comm	IRQ_HANDLED,4,4
	.comm	COMEDI_CB_ERROR,4,4
	.comm	COMEDI_CB_EOA,4,4
	.comm	ADC_FIFO_CLEAR_REG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
