	.file	"extr_aio_aio12_8.c_aio_aio12_8_ai_read.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"timeout %d\n"
.LC1:
	.string	"ADC timeout"
	.text
	.p2align 4
	.type	aio_aio12_8_ai_read, @function
aio_aio12_8_ai_read:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	edi, DWORD PTR 4[rdx]
	mov	QWORD PTR 8[rsp], rcx
	call	CR_RANGE@PLT
	mov	edi, DWORD PTR 4[r14]
	mov	r12d, DWORD PTR ADC_MODE_NORMAL[rip]
	mov	r13d, eax
	call	CR_CHAN@PLT
	sal	r13d, 3
	mov	rdi, QWORD PTR AIO12_8_STATUS[rip]
	add	rdi, QWORD PTR 0[rbp]
	or	eax, r12d
	or	r13d, eax
	call	inb@PLT
	mov	eax, DWORD PTR [r14]
	test	eax, eax
	jle	.L8
	movzx	r13d, r13b
	xor	ebx, ebx
	lea	r12, .LC0[rip]
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rsi, QWORD PTR AIO12_8_ADC[rip]
	mov	edi, r13d
	add	rsi, QWORD PTR 0[rbp]
	mov	r15d, 5
	call	outb@PLT
.L3:
	mov	rdi, QWORD PTR AIO12_8_STATUS[rip]
	add	rdi, QWORD PTR 0[rbp]
	call	inb@PLT
	test	DWORD PTR STATUS_ADC_EOC[rip], eax
	jne	.L13
	sub	r15d, 1
	mov	rdi, r12
	mov	esi, r15d
	call	printk@PLT
	mov	edi, 1
	call	udelay@PLT
	test	r15d, r15d
	jne	.L3
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	call	comedi_error@PLT
	mov	eax, DWORD PTR EIO[rip]
	neg	eax
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	rdi, QWORD PTR AIO12_8_ADC[rip]
	add	rdi, QWORD PTR 0[rbp]
	call	inw@PLT
	mov	rdx, QWORD PTR 8[rsp]
	and	eax, 4095
	mov	DWORD PTR [rdx+rbx*4], eax
	lea	eax, 1[rbx]
	add	rbx, 1
	cmp	DWORD PTR [r14], ebx
	jg	.L7
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L8:
	.cfi_restore_state
	xor	eax, eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	aio_aio12_8_ai_read, .-aio_aio12_8_ai_read
	.comm	STATUS_ADC_EOC,4,4
	.comm	EIO,4,4
	.comm	AIO12_8_STATUS,8,8
	.comm	AIO12_8_ADC,8,8
	.comm	ADC_MODE_NORMAL,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_aio_aio12_8.c_aio_aio12_8_ai_read.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"timeout %d\012\000"
	.align	2
.LC1:
	.ascii	"ADC timeout\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	aio_aio12_8_ai_read, %function
aio_aio12_8_ai_read:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	sub	sp, sp, #12
	ldr	r0, [r2, #4]
	mov	fp, r2
	mov	r9, r3
	bl	CR_RANGE
	ldr	r3, .L14
	mov	r7, r0
	ldr	r0, [fp, #4]
	ldrsb	r6, [r3]
	bl	CR_CHAN
	ldr	r5, .L14+4
	ldr	r2, [r4]
	orr	r6, r6, r0
	ldr	r0, [r5]
	orr	r6, r6, r7, lsl #3
	and	r3, r6, #255
	add	r0, r2, r0
	str	r3, [sp, #4]
	bl	inb
	ldr	r3, [fp]
	mov	r8, #0
	cmp	r3, #0
	ble	.L1
	sub	r3, r9, #4
	ldr	r10, .L14+8
	ldr	r6, .L14+12
	ldr	r7, .L14+16
	str	r3, [sp]
.L7:
	ldr	r1, [r4]
	ldr	r3, [r10]
	ldr	r0, [sp, #4]
	add	r1, r1, r3
	bl	outb
	mov	r9, #5
.L3:
	ldr	r3, [r5]
	ldr	r0, [r4]
	sub	r9, r9, #1
	add	r0, r0, r3
	bl	inb
	ldr	r3, [r6]
	tst	r0, r3
	bne	.L13
	mov	r1, r9
	mov	r0, r7
	bl	printk
	mov	r0, #1
	bl	udelay
	cmp	r9, #0
	bne	.L3
	mov	r0, r4
	ldr	r1, .L14+20
	bl	comedi_error
	ldr	r3, .L14+24
	ldr	r8, [r3]
	rsb	r8, r8, #0
.L1:
	mov	r0, r8
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	ldr	r3, [r10]
	ldr	r0, [r4]
	add	r8, r8, #1
	add	r0, r0, r3
	bl	inw
	ldr	r3, [sp]
	lsl	r0, r0, #20
	lsr	r0, r0, #20
	str	r0, [r3, #4]!
	str	r3, [sp]
	ldr	r3, [fp]
	cmp	r3, r8
	bgt	.L7
	mov	r0, r8
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	.align	2
.L14:
	.word	ADC_MODE_NORMAL
	.word	AIO12_8_STATUS
	.word	AIO12_8_ADC
	.word	STATUS_ADC_EOC
	.word	.LC0
	.word	.LC1
	.word	EIO
	.size	aio_aio12_8_ai_read, .-aio_aio12_8_ai_read
	.comm	STATUS_ADC_EOC,4,4
	.comm	EIO,4,4
	.comm	AIO12_8_STATUS,4,4
	.comm	AIO12_8_ADC,4,4
	.comm	ADC_MODE_NORMAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
