	.file	"extr_adl_pci9118.c_pci9118_decode_error_status.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"A/D Burst Mode Overrun Status (Fatal Error!)"
	.align 8
.LC1:
	.string	"A/D Over Speed Status (Warning!)"
	.align 8
.LC2:
	.string	"A/D Overrun Status (Fatal Error!)"
	.text
	.p2align 4
	.type	pci9118_decode_error_status, @function
pci9118_decode_error_status:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, edx
	and	edx, 8
	jne	.L17
	test	bl, 4
	jne	.L18
.L3:
	mov	rax, QWORD PTR devpriv[rip]
	test	bl, 2
	jne	.L19
.L5:
	xor	r8d, r8d
	test	BYTE PTR 4[rax], bl
	jne	.L20
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r8d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	lea	rsi, .LC0[rip]
	call	comedi_error@PLT
	mov	rax, QWORD PTR devpriv[rip]
	and	DWORD PTR [rax], -9
	test	bl, 4
	je	.L3
.L18:
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	call	comedi_error@PLT
	mov	rax, QWORD PTR devpriv[rip]
	and	DWORD PTR [rax], -5
	mov	rax, QWORD PTR devpriv[rip]
	test	bl, 2
	je	.L5
.L19:
	lea	rsi, .LC2[rip]
	mov	rdi, rbp
	call	comedi_error@PLT
	mov	rax, QWORD PTR devpriv[rip]
	xor	r8d, r8d
	and	DWORD PTR [rax], -3
	test	BYTE PTR 4[rax], bl
	je	.L1
.L20:
	mov	rdx, QWORD PTR [r12]
	mov	eax, DWORD PTR COMEDI_CB_ERROR[rip]
	mov	rsi, r12
	mov	rdi, rbp
	or	eax, DWORD PTR COMEDI_CB_EOA[rip]
	or	DWORD PTR [rdx], eax
	call	pci9118_ai_cancel@PLT
	mov	rsi, r12
	mov	rdi, rbp
	call	comedi_event@PLT
	mov	r8d, 1
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	mov	eax, r8d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	pci9118_decode_error_status, .-pci9118_decode_error_status
	.comm	devpriv,8,8
	.comm	COMEDI_CB_ERROR,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
	.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_adl_pci9118.c_pci9118_decode_error_status.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"A/D Burst Mode Overrun Status (Fatal Error!)\000"
	.align	2
.LC1:
	.ascii	"A/D Over Speed Status (Warning!)\000"
	.align	2
.LC2:
	.ascii	"A/D Overrun Status (Fatal Error!)\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pci9118_decode_error_status, %function
pci9118_decode_error_status:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	tst	r2, #8
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r2
	mov	r7, r1
	mov	r5, r0
	ldr	r6, .L19
	bne	.L15
.L2:
	tst	r4, #4
	bne	.L18
.L3:
	tst	r4, #2
	bne	.L4
	ldr	r3, [r6]
.L5:
	ldrb	r0, [r3, #4]	@ zero_extendqisi2
	ands	r0, r4, r0
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r3, .L19+4
	ldr	r2, .L19+8
	ldr	r1, [r7]
	ldr	r0, [r3]
	ldr	r2, [r2]
	ldr	r3, [r1]
	orr	r2, r2, r0
	orr	r3, r3, r2
	str	r3, [r1]
	mov	r0, r5
	mov	r1, r7
	bl	pci9118_ai_cancel
	mov	r1, r7
	mov	r0, r5
	bl	comedi_event
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	mov	r0, r5
	ldr	r1, .L19+12
	bl	comedi_error
	ldr	r3, [r6]
	ldr	r2, [r3]
	bic	r2, r2, #2
	str	r2, [r3]
	b	.L5
.L18:
	mov	r0, r5
	ldr	r1, .L19+16
	bl	comedi_error
	ldr	r2, [r6]
	ldr	r3, [r2]
	bic	r3, r3, #4
	str	r3, [r2]
	b	.L3
.L15:
	ldr	r1, .L19+20
	bl	comedi_error
	ldr	r2, [r6]
	ldr	r3, [r2]
	bic	r3, r3, #8
	str	r3, [r2]
	b	.L2
.L20:
	.align	2
.L19:
	.word	devpriv
	.word	COMEDI_CB_EOA
	.word	COMEDI_CB_ERROR
	.word	.LC2
	.word	.LC1
	.word	.LC0
	.size	pci9118_decode_error_status, .-pci9118_decode_error_status
	.comm	devpriv,4,4
	.comm	COMEDI_CB_ERROR,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
