	.file	"extr_pcl812.c_acl8216_ai_insn_read.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"comedi%d: pcl812: (%s at 0x%lx) A/D insn read timeout\n"
	.text
	.p2align 4
	.type	acl8216_ai_insn_read, @function
acl8216_ai_insn_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, rcx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	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, 8
	.cfi_def_cfa_offset 64
	mov	rsi, QWORD PTR PCL812_MODE[rip]
	add	rsi, QWORD PTR [rdi]
	mov	edi, 1
	call	outb@PLT
	mov	edx, DWORD PTR 4[r13]
	mov	rsi, r12
	mov	rdi, rbp
	mov	ecx, 1
	call	setup_range_channel@PLT
	mov	eax, DWORD PTR 0[r13]
	test	eax, eax
	jle	.L7
	xor	r12d, r12d
.L4:
	mov	rsi, QWORD PTR PCL812_SOFTTRIG[rip]
	mov	edi, 255
	add	rsi, QWORD PTR 0[rbp]
	mov	ebx, 50
	call	outb@PLT
	mov	edi, 5
	call	udelay@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edi, 1
	call	udelay@PLT
	sub	ebx, 1
	je	.L12
.L5:
	mov	rdi, QWORD PTR ACL8216_STATUS[rip]
	add	rdi, QWORD PTR 0[rbp]
	call	inb@PLT
	test	DWORD PTR ACL8216_DRDY[rip], eax
	jne	.L3
	mov	rdi, QWORD PTR PCL812_AD_HI[rip]
	add	rdi, QWORD PTR 0[rbp]
	lea	r15d, 1[r12]
	call	inb@PLT
	mov	rdi, QWORD PTR PCL812_AD_LO[rip]
	add	rdi, QWORD PTR 0[rbp]
	mov	ebx, eax
	call	inb@PLT
	sal	ebx, 8
	or	ebx, eax
	mov	DWORD PTR [r14+r12*4], ebx
	add	r12, 1
	cmp	DWORD PTR 0[r13], r12d
	jg	.L4
.L2:
	mov	rsi, QWORD PTR PCL812_MODE[rip]
	xor	edi, edi
	add	rsi, QWORD PTR 0[rbp]
	call	outb@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	mov	edx, DWORD PTR 8[rbp]
	mov	esi, DWORD PTR 12[rbp]
	lea	rdi, .LC0[rip]
	mov	rcx, QWORD PTR 0[rbp]
	call	printk@PLT
	mov	rsi, QWORD PTR PCL812_MODE[rip]
	xor	edi, edi
	add	rsi, QWORD PTR 0[rbp]
	call	outb@PLT
	mov	r15d, DWORD PTR ETIME[rip]
	neg	r15d
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r15d
	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
.L7:
	.cfi_restore_state
	xor	r15d, r15d
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	acl8216_ai_insn_read, .-acl8216_ai_insn_read
	.comm	PCL812_SOFTTRIG,8,8
	.comm	PCL812_MODE,8,8
	.comm	PCL812_AD_LO,8,8
	.comm	PCL812_AD_HI,8,8
	.comm	ETIME,4,4
	.comm	ACL8216_STATUS,8,8
	.comm	ACL8216_DRDY,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_pcl812.c_acl8216_ai_insn_read.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"comedi%d: pcl812: (%s at 0x%lx) A/D insn read timeo"
	.ascii	"ut\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	acl8216_ai_insn_read, %function
acl8216_ai_insn_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	r9, r2
	mov	r5, r0
	mov	r6, r1
	ldr	r2, .L13
	ldr	r1, [r0]
	ldr	r2, [r2]
	sub	sp, sp, #12
	add	r1, r1, r2
	mov	r0, #1
	mov	r4, r3
	bl	outb
	mov	r3, #1
	mov	r1, r6
	mov	r0, r5
	ldr	r2, [r9, #4]
	bl	setup_range_channel
	ldr	r3, [r9]
	mov	r8, #0
	cmp	r3, #0
	ble	.L2
	sub	r3, r4, #4
	ldr	r10, .L13+4
	ldr	r7, .L13+8
	ldr	r6, .L13+12
	ldr	fp, .L13+16
	str	r3, [sp, #4]
.L4:
	ldr	r3, [r10]
	ldr	r1, [r5]
	mov	r0, #255
	add	r1, r1, r3
	bl	outb
	mov	r0, #5
	bl	udelay
	mov	r4, #50
	b	.L5
.L3:
	mov	r0, #1
	bl	udelay
	subs	r4, r4, #1
	beq	.L12
.L5:
	ldr	r3, [r7]
	ldr	r0, [r5]
	add	r0, r0, r3
	bl	inb
	ldr	r3, [r6]
	tst	r0, r3
	bne	.L3
	ldr	r3, [fp]
	ldr	r0, [r5]
	add	r8, r8, #1
	add	r0, r0, r3
	bl	inb
	ldr	r3, .L13+20
	ldr	r2, [r5]
	ldr	r3, [r3]
	mov	r4, r0
	add	r0, r2, r3
	bl	inb
	ldr	r3, [sp, #4]
	orr	r0, r0, r4, lsl #8
	str	r0, [r3, #4]!
	str	r3, [sp, #4]
	ldr	r3, [r9]
	cmp	r3, r8
	bgt	.L4
.L2:
	ldr	r3, .L13
	ldr	r1, [r5]
	ldr	r3, [r3]
	mov	r0, #0
	add	r1, r1, r3
	bl	outb
	mov	r0, r8
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L12:
	ldr	r3, [r5]
	ldr	r2, [r5, #4]
	ldr	r1, [r5, #8]
	ldr	r0, .L13+24
	bl	printk
	ldr	r3, .L13
	ldr	r1, [r5]
	ldr	r3, [r3]
	mov	r0, r4
	add	r1, r1, r3
	bl	outb
	ldr	r3, .L13+28
	ldr	r8, [r3]
	rsb	r8, r8, #0
	mov	r0, r8
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L14:
	.align	2
.L13:
	.word	PCL812_MODE
	.word	PCL812_SOFTTRIG
	.word	ACL8216_STATUS
	.word	ACL8216_DRDY
	.word	PCL812_AD_HI
	.word	PCL812_AD_LO
	.word	.LC0
	.word	ETIME
	.size	acl8216_ai_insn_read, .-acl8216_ai_insn_read
	.comm	PCL812_SOFTTRIG,4,4
	.comm	PCL812_MODE,4,4
	.comm	PCL812_AD_LO,4,4
	.comm	PCL812_AD_HI,4,4
	.comm	ETIME,4,4
	.comm	ACL8216_STATUS,4,4
	.comm	ACL8216_DRDY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
