	.file	"776124.c"
	.intel_syntax noprefix
	.text
	.globl	LAYOUT_4020
	.bss
	.align 8
	.type	LAYOUT_4020, @object
	.size	LAYOUT_4020, 8
LAYOUT_4020:
	.zero	8
	.globl	TRIG_FOLLOW
	.align 4
	.type	TRIG_FOLLOW, @object
	.size	TRIG_FOLLOW, 4
TRIG_FOLLOW:
	.zero	4
	.globl	TRIG_NOW
	.align 4
	.type	TRIG_NOW, @object
	.size	TRIG_NOW, 4
TRIG_NOW:
	.zero	4
	.globl	TRIG_OTHER
	.align 4
	.type	TRIG_OTHER, @object
	.size	TRIG_OTHER, 4
TRIG_OTHER:
	.zero	4
	.globl	TRIG_TIMER
	.align 4
	.type	TRIG_TIMER, @object
	.size	TRIG_TIMER, 4
TRIG_TIMER:
	.zero	4
	.section	.rodata
	.align 8
.LC0:
	.string	"all elements in chanlist must use the same analog reference"
	.align 8
.LC1:
	.string	"chanlist must use consecutive channels"
	.align 8
.LC2:
	.string	"chanlist cannot be 3 channels long, use 1, 2, or 4 channels"
	.text
	.type	ai_cmdtest, @function
ai_cmdtest:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 72
	.cfi_offset 3, -24
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	DWORD PTR -48[rbp], 0
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -36[rbp], eax
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edx, eax
	mov	eax, DWORD PTR TRIG_NOW[rip]
	or	al, -127
	and	eax, edx
	mov	edx, eax
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L2
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -36[rbp], eax
	je	.L3
.L2:
	add	DWORD PTR -48[rbp], 1
.L3:
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR TRIG_TIMER[rip]
	mov	DWORD PTR -40[rbp], eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	board@PLT
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR LAYOUT_4020[rip]
	cmp	rdx, rax
	jne	.L4
	mov	eax, DWORD PTR TRIG_OTHER[rip]
	or	DWORD PTR -40[rbp], eax
	jmp	.L5
.L4:
	mov	eax, DWORD PTR TRIG_FOLLOW[rip]
	or	DWORD PTR -40[rbp], eax
.L5:
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 4[rax]
	and	eax, DWORD PTR -40[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 4[rax]
	test	eax, eax
	je	.L6
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	DWORD PTR -36[rbp], eax
	je	.L7
.L6:
	add	DWORD PTR -48[rbp], 1
.L7:
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 8[rax]
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR TRIG_TIMER[rip]
	mov	DWORD PTR -40[rbp], eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	board@PLT
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR LAYOUT_4020[rip]
	cmp	rdx, rax
	jne	.L8
	mov	eax, DWORD PTR TRIG_NOW[rip]
	or	DWORD PTR -40[rbp], eax
	jmp	.L9
.L8:
	or	DWORD PTR -40[rbp], 129
.L9:
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 8[rax]
	and	eax, DWORD PTR -40[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR 8[rax], edx
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 8[rax]
	test	eax, eax
	je	.L10
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	DWORD PTR -36[rbp], eax
	je	.L11
.L10:
	add	DWORD PTR -48[rbp], 1
.L11:
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 12[rax]
	mov	DWORD PTR -36[rbp], eax
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 12[rax]
	and	eax, 130
	mov	edx, eax
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR 12[rax], edx
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 12[rax]
	test	eax, eax
	je	.L12
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 12[rax]
	cmp	DWORD PTR -36[rbp], eax
	je	.L13
.L12:
	add	DWORD PTR -48[rbp], 1
.L13:
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 16[rax]
	mov	DWORD PTR -36[rbp], eax
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 16[rax]
	and	eax, 131
	mov	edx, eax
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR 16[rax], edx
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 16[rax]
	test	eax, eax
	je	.L14
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 16[rax]
	cmp	DWORD PTR -36[rbp], eax
	je	.L15
.L14:
	add	DWORD PTR -48[rbp], 1
.L15:
	cmp	DWORD PTR -48[rbp], 0
	je	.L16
	mov	eax, 1
	jmp	.L17
.L16:
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edx, eax
	mov	eax, DWORD PTR TRIG_NOW[rip]
	cmp	edx, eax
	je	.L18
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 129
	je	.L18
	add	DWORD PTR -48[rbp], 1
.L18:
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	edx, eax
	mov	eax, DWORD PTR TRIG_TIMER[rip]
	cmp	edx, eax
	je	.L19
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	edx, eax
	mov	eax, DWORD PTR TRIG_OTHER[rip]
	cmp	edx, eax
	je	.L19
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	edx, eax
	mov	eax, DWORD PTR TRIG_FOLLOW[rip]
	cmp	edx, eax
	je	.L19
	add	DWORD PTR -48[rbp], 1
.L19:
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 8[rax]
	mov	edx, eax
	mov	eax, DWORD PTR TRIG_TIMER[rip]
	cmp	edx, eax
	je	.L20
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	eax, 129
	je	.L20
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 8[rax]
	mov	edx, eax
	mov	eax, DWORD PTR TRIG_NOW[rip]
	cmp	edx, eax
	je	.L20
	add	DWORD PTR -48[rbp], 1
.L20:
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 16[rax]
	cmp	eax, 130
	je	.L21
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 16[rax]
	cmp	eax, 128
	je	.L21
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 16[rax]
	cmp	eax, 129
	je	.L21
	add	DWORD PTR -48[rbp], 1
.L21:
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	eax, 129
	jne	.L22
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	edx, eax
	mov	eax, DWORD PTR TRIG_TIMER[rip]
	cmp	edx, eax
	jne	.L22
	add	DWORD PTR -48[rbp], 1
.L22:
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 16[rax]
	cmp	eax, 130
	je	.L23
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 16[rax]
	cmp	eax, 128
	je	.L23
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 16[rax]
	cmp	eax, 129
	je	.L23
	add	DWORD PTR -48[rbp], 1
.L23:
	cmp	DWORD PTR -48[rbp], 0
	je	.L24
	mov	eax, 2
	jmp	.L17
.L24:
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 8[rax]
	mov	edx, eax
	mov	eax, DWORD PTR TRIG_TIMER[rip]
	cmp	edx, eax
	jne	.L25
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	board@PLT
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR LAYOUT_4020[rip]
	cmp	rdx, rax
	jne	.L26
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 20[rax]
	test	eax, eax
	je	.L25
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR 20[rax], 0
	add	DWORD PTR -48[rbp], 1
	jmp	.L25
.L26:
	mov	rax, QWORD PTR -72[rbp]
	mov	ebx, DWORD PTR 20[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	board@PLT
	mov	eax, DWORD PTR 8[rax]
	cmp	ebx, eax
	jge	.L27
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	board@PLT
	mov	edx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR 20[rax], edx
	add	DWORD PTR -48[rbp], 1
.L27:
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	edx, eax
	mov	eax, DWORD PTR TRIG_TIMER[rip]
	cmp	edx, eax
	jne	.L25
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR 20[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 24[rax]
	imul	edx, eax
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 28[rax]
	cmp	edx, eax
	jle	.L25
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR 20[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 24[rax]
	imul	edx, eax
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR 28[rax], edx
	add	DWORD PTR -48[rbp], 1
.L25:
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 24[rax]
	test	eax, eax
	jne	.L28
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR 24[rax], 1
	add	DWORD PTR -48[rbp], 1
.L28:
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR 32[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 24[rax]
	cmp	edx, eax
	je	.L29
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR 24[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR 32[rax], edx
	add	DWORD PTR -48[rbp], 1
.L29:
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 16[rax]
	cmp	eax, 130
	je	.L30
	cmp	eax, 130
	jg	.L50
	cmp	eax, 128
	je	.L32
	cmp	eax, 129
	jmp	.L50
.L30:
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 36[rax]
	test	eax, eax
	jne	.L51
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR 36[rax], 1
	add	DWORD PTR -48[rbp], 1
	jmp	.L51
.L32:
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 36[rax]
	test	eax, eax
	je	.L52
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR 36[rax], 0
	add	DWORD PTR -48[rbp], 1
	jmp	.L52
.L50:
	nop
	jmp	.L33
.L51:
	nop
	jmp	.L33
.L52:
	nop
.L33:
	cmp	DWORD PTR -48[rbp], 0
	je	.L36
	mov	eax, 3
	jmp	.L17
.L36:
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 8[rax]
	mov	edx, eax
	mov	eax, DWORD PTR TRIG_TIMER[rip]
	cmp	edx, eax
	jne	.L37
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 20[rax]
	mov	DWORD PTR -32[rbp], eax
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 28[rax]
	mov	DWORD PTR -28[rbp], eax
	mov	rdx, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	check_adc_timing@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 20[rax]
	cmp	DWORD PTR -32[rbp], eax
	je	.L38
	add	DWORD PTR -48[rbp], 1
.L38:
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 28[rax]
	cmp	DWORD PTR -28[rbp], eax
	je	.L37
	add	DWORD PTR -48[rbp], 1
.L37:
	cmp	DWORD PTR -48[rbp], 0
	je	.L39
	mov	eax, 4
	jmp	.L17
.L39:
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 40[rax]
	test	rax, rax
	je	.L40
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	CR_AREF@PLT
	mov	DWORD PTR -24[rbp], eax
	mov	DWORD PTR -44[rbp], 1
	jmp	.L41
.L44:
	mov	rax, QWORD PTR -72[rbp]
	mov	rdx, QWORD PTR 40[rax]
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	CR_AREF@PLT
	cmp	DWORD PTR -24[rbp], eax
	je	.L42
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	comedi_error@PLT
	add	DWORD PTR -48[rbp], 1
	jmp	.L43
.L42:
	add	DWORD PTR -44[rbp], 1
.L41:
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 24[rax]
	cmp	DWORD PTR -44[rbp], eax
	jl	.L44
.L43:
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	board@PLT
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR LAYOUT_4020[rip]
	cmp	rdx, rax
	jne	.L40
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	CR_CHAN@PLT
	mov	DWORD PTR -20[rbp], eax
	mov	DWORD PTR -44[rbp], 1
	jmp	.L45
.L48:
	mov	rax, QWORD PTR -72[rbp]
	mov	rdx, QWORD PTR 40[rax]
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	CR_CHAN@PLT
	mov	ecx, DWORD PTR -44[rbp]
	mov	edx, DWORD PTR -20[rbp]
	add	edx, ecx
	cmp	eax, edx
	je	.L46
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	comedi_error@PLT
	add	DWORD PTR -48[rbp], 1
	jmp	.L47
.L46:
	add	DWORD PTR -44[rbp], 1
.L45:
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 24[rax]
	cmp	DWORD PTR -44[rbp], eax
	jl	.L48
.L47:
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 24[rax]
	cmp	eax, 3
	jne	.L40
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	comedi_error@PLT
	add	DWORD PTR -48[rbp], 1
.L40:
	cmp	DWORD PTR -48[rbp], 0
	je	.L49
	mov	eax, 5
	jmp	.L17
.L49:
	mov	eax, 0
.L17:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	ai_cmdtest, .-ai_cmdtest
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"776124.c"
	.text
	.comm	LAYOUT_4020,4,4
	.comm	TRIG_FOLLOW,4,4
	.comm	TRIG_NOW,4,4
	.comm	TRIG_OTHER,4,4
	.comm	TRIG_TIMER,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"all elements in chanlist must use the same analog r"
	.ascii	"eference\000"
	.align	2
.LC1:
	.ascii	"chanlist must use consecutive channels\000"
	.align	2
.LC2:
	.ascii	"chanlist cannot be 3 channels long, use 1, 2, or 4 "
	.ascii	"channels\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ai_cmdtest, %function
ai_cmdtest:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #52
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	str	r2, [fp, #-56]
	mov	r3, #0
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-56]
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-56]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, .L53
	ldr	r3, [r3]
	orr	r3, r3, #129
	and	r3, r3, r2
	mov	r2, r3
	ldr	r3, [fp, #-56]
	str	r2, [r3]
	ldr	r3, [fp, #-56]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [fp, #-56]
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	beq	.L3
.L2:
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L3:
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-32]
	ldr	r3, .L53+4
	ldr	r3, [r3]
	str	r3, [fp, #-36]
	ldr	r0, [fp, #-48]
	bl	board
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, .L53+8
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L4
	ldr	r3, .L53+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-36]
	orr	r3, r2, r3
	str	r3, [fp, #-36]
	b	.L5
.L4:
	ldr	r3, .L53+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-36]
	orr	r3, r2, r3
	str	r3, [fp, #-36]
.L5:
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #4]
	mov	r2, r3
	ldr	r3, [fp, #-36]
	and	r3, r3, r2
	mov	r2, r3
	ldr	r3, [fp, #-56]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L6
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	beq	.L7
.L6:
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L7:
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-32]
	ldr	r3, .L53+4
	ldr	r3, [r3]
	str	r3, [fp, #-36]
	ldr	r0, [fp, #-48]
	bl	board
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, .L53+8
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L8
	ldr	r3, .L53
	ldr	r3, [r3]
	ldr	r2, [fp, #-36]
	orr	r3, r2, r3
	str	r3, [fp, #-36]
	b	.L9
.L8:
	ldr	r3, [fp, #-36]
	orr	r3, r3, #129
	str	r3, [fp, #-36]
.L9:
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #8]
	mov	r2, r3
	ldr	r3, [fp, #-36]
	and	r3, r3, r2
	mov	r2, r3
	ldr	r3, [fp, #-56]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L10
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	beq	.L11
.L10:
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L11:
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #12]
	and	r2, r3, #130
	ldr	r3, [fp, #-56]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	beq	.L12
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	beq	.L13
.L12:
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L13:
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #16]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #16]
	and	r2, r3, #131
	ldr	r3, [fp, #-56]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #16]
	cmp	r3, #0
	beq	.L14
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #16]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	beq	.L15
.L14:
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L15:
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L16
	mov	r3, #1
	b	.L17
.L16:
	ldr	r3, [fp, #-56]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, .L53
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L18
	ldr	r3, [fp, #-56]
	ldr	r3, [r3]
	cmp	r3, #129
	beq	.L18
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L18:
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #4]
	mov	r2, r3
	ldr	r3, .L53+4
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L19
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #4]
	mov	r2, r3
	ldr	r3, .L53+12
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L19
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #4]
	mov	r2, r3
	ldr	r3, .L53+16
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L19
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L19:
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #8]
	mov	r2, r3
	ldr	r3, .L53+4
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L20
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #8]
	cmp	r3, #129
	beq	.L20
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #8]
	mov	r2, r3
	ldr	r3, .L53
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L20
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L20:
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #16]
	cmp	r3, #130
	beq	.L21
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #16]
	cmp	r3, #128
	beq	.L21
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #16]
	cmp	r3, #129
	beq	.L21
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L21:
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #8]
	cmp	r3, #129
	bne	.L22
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #4]
	mov	r2, r3
	ldr	r3, .L53+4
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L22
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L22:
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #16]
	cmp	r3, #130
	beq	.L23
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #16]
	cmp	r3, #128
	beq	.L23
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #16]
	cmp	r3, #129
	beq	.L23
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L23:
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L24
	mov	r3, #2
	b	.L17
.L24:
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #8]
	mov	r2, r3
	ldr	r3, .L53+4
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L25
	ldr	r0, [fp, #-48]
	bl	board
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, .L53+8
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L26
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #20]
	cmp	r3, #0
	beq	.L25
	ldr	r3, [fp, #-56]
	mov	r2, #0
	str	r2, [r3, #20]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
	b	.L25
.L26:
	ldr	r3, [fp, #-56]
	ldr	r4, [r3, #20]
	ldr	r0, [fp, #-48]
	bl	board
	mov	r3, r0
	ldr	r3, [r3, #4]
	cmp	r4, r3
	bge	.L27
	ldr	r0, [fp, #-48]
	bl	board
	mov	r3, r0
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-56]
	str	r2, [r3, #20]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L27:
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #4]
	mov	r2, r3
	ldr	r3, .L53+4
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L25
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #20]
	ldr	r2, [fp, #-56]
	ldr	r2, [r2, #24]
	mul	r2, r3, r2
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #28]
	cmp	r2, r3
	ble	.L25
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #20]
	ldr	r2, [fp, #-56]
	ldr	r2, [r2, #24]
	mul	r2, r3, r2
	ldr	r3, [fp, #-56]
	str	r2, [r3, #28]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L25:
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #24]
	cmp	r3, #0
	bne	.L28
	ldr	r3, [fp, #-56]
	mov	r2, #1
	str	r2, [r3, #24]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L28:
	ldr	r3, [fp, #-56]
	ldr	r2, [r3, #32]
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #24]
	cmp	r2, r3
	beq	.L29
	ldr	r3, [fp, #-56]
	ldr	r2, [r3, #24]
	ldr	r3, [fp, #-56]
	str	r2, [r3, #32]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L29:
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #16]
	cmp	r3, #130
	beq	.L30
	cmp	r3, #130
	bgt	.L50
	cmp	r3, #128
	beq	.L32
	cmp	r3, #129
	b	.L50
.L30:
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #36]
	cmp	r3, #0
	bne	.L51
	ldr	r3, [fp, #-56]
	mov	r2, #1
	str	r2, [r3, #36]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
	b	.L51
.L32:
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #36]
	cmp	r3, #0
	beq	.L52
	ldr	r3, [fp, #-56]
	mov	r2, #0
	str	r2, [r3, #36]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
	b	.L52
.L50:
	nop
	b	.L33
.L51:
	nop
	b	.L33
.L52:
	nop
.L33:
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L36
	mov	r3, #3
	b	.L17
.L36:
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #8]
	mov	r2, r3
	ldr	r3, .L53+4
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L37
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #20]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #28]
	str	r3, [fp, #-24]
	ldr	r1, [fp, #-56]
	ldr	r0, [fp, #-48]
	bl	check_adc_timing
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #20]
	mov	r2, r3
	ldr	r3, [fp, #-28]
	cmp	r3, r2
	beq	.L38
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L38:
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #28]
	mov	r2, r3
	ldr	r3, [fp, #-24]
	cmp	r3, r2
	beq	.L37
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L37:
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L39
	mov	r3, #4
	b	.L17
.L39:
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #40]
	cmp	r3, #0
	beq	.L40
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #40]
	ldr	r3, [r3]
	mov	r0, r3
	bl	CR_AREF
	str	r0, [fp, #-20]
	mov	r3, #1
	str	r3, [fp, #-40]
	b	.L41
.L44:
	ldr	r3, [fp, #-56]
	ldr	r2, [r3, #40]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	CR_AREF
	mov	r2, r0
	ldr	r3, [fp, #-20]
	cmp	r3, r2
	beq	.L42
	ldr	r1, .L53+20
	ldr	r0, [fp, #-48]
	bl	comedi_error
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
	b	.L43
.L42:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L41:
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #24]
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	blt	.L44
.L43:
	ldr	r0, [fp, #-48]
	bl	board
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, .L53+8
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L40
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #40]
	ldr	r3, [r3]
	mov	r0, r3
	bl	CR_CHAN
	str	r0, [fp, #-16]
	mov	r3, #1
	str	r3, [fp, #-40]
	b	.L45
.L48:
	ldr	r3, [fp, #-56]
	ldr	r2, [r3, #40]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	CR_CHAN
	mov	r1, r0
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	cmp	r1, r3
	beq	.L46
	ldr	r1, .L53+24
	ldr	r0, [fp, #-48]
	bl	comedi_error
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
	b	.L47
.L46:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L45:
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #24]
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	blt	.L48
.L47:
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #24]
	cmp	r3, #3
	bne	.L40
	ldr	r1, .L53+28
	ldr	r0, [fp, #-48]
	bl	comedi_error
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L40:
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L49
	mov	r3, #5
	b	.L17
.L49:
	mov	r3, #0
.L17:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L54:
	.align	2
.L53:
	.word	TRIG_NOW
	.word	TRIG_TIMER
	.word	LAYOUT_4020
	.word	TRIG_OTHER
	.word	TRIG_FOLLOW
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	ai_cmdtest, .-ai_cmdtest
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
