	.file	"extr_hwdrv_apci1516.c_i_APCI1516_ReadDigitalOutput.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	" chan spec wrong"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"\nSpecified channel not supported \n"
	.text
	.p2align 4
	.globl	i_APCI1516_ReadDigitalOutput
	.type	i_APCI1516_ReadDigitalOutput, @function
i_APCI1516_ReadDigitalOutput:
.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
	mov	r13, rdi
	mov	edi, DWORD PTR 4[rdx]
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rcx
	call	CR_CHAN@PLT
	mov	rdi, QWORD PTR APCI1516_DIGITAL_OP_RW[rip]
	mov	r14d, DWORD PTR [rbx]
	mov	r12d, eax
	mov	rax, QWORD PTR devpriv[rip]
	add	rdi, QWORD PTR [rax]
	call	inw@PLT
	mov	DWORD PTR [rbx], eax
	test	r14d, r14d
	jne	.L2
	mov	ecx, r12d
	shr	eax, cl
	and	eax, 1
	mov	DWORD PTR [rbx], eax
.L3:
	mov	eax, DWORD PTR 0[rbp]
.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
.L2:
	.cfi_restore_state
	cmp	r14d, 1
	jne	.L4
	cmp	r12d, 4
	je	.L5
	cmp	r12d, 7
	je	.L3
	cmp	r12d, 2
	je	.L13
	lea	rsi, .LC0[rip]
	mov	rdi, r13
	call	comedi_error@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	lea	rdi, .LC1[rip]
	call	printk@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L13:
	mov	esi, DWORD PTR 4[rbx]
	lea	ecx, [rsi+rsi]
	shr	eax, cl
	and	eax, 3
	mov	DWORD PTR [rbx], eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	mov	esi, DWORD PTR 4[rbx]
	lea	ecx, 0[0+rsi*4]
	shr	eax, cl
	and	eax, 15
	mov	DWORD PTR [rbx], eax
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	i_APCI1516_ReadDigitalOutput, .-i_APCI1516_ReadDigitalOutput
	.comm	devpriv,8,8
	.comm	EINVAL,4,4
	.comm	APCI1516_DIGITAL_OP_RW,8,8
	.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_hwdrv_apci1516.c_i_APCI1516_ReadDigitalOutput.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	" chan spec wrong\000"
	.align	2
.LC1:
	.ascii	"\012Specified channel not supported \012\000"
	.text
	.align	2
	.global	i_APCI1516_ReadDigitalOutput
	.syntax unified
	.arm
	.fpu softvfp
	.type	i_APCI1516_ReadDigitalOutput, %function
i_APCI1516_ReadDigitalOutput:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r0
	ldr	r0, [r2, #4]
	mov	r4, r3
	mov	r5, r2
	bl	CR_CHAN
	ldr	r2, .L14
	ldr	r3, .L14+4
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r2, [r2]
	mov	r6, r0
	add	r0, r2, r3
	ldr	r8, [r4]
	bl	inw
	cmp	r8, #0
	str	r0, [r4]
	bne	.L2
	lsr	r0, r0, r6
	and	r0, r0, #1
	str	r0, [r4]
.L3:
	ldr	r0, [r5]
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	cmp	r8, #1
	bne	.L4
	cmp	r6, #4
	beq	.L5
	cmp	r6, #7
	beq	.L3
	cmp	r6, #2
	beq	.L13
	mov	r0, r7
	ldr	r1, .L14+8
	bl	comedi_error
	ldr	r3, .L14+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	ldr	r0, .L14+16
	bl	printk
	ldr	r0, [r5]
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	ldr	r3, [r4, #4]
	lsl	r3, r3, #1
	lsr	r0, r0, r3
	and	r0, r0, #3
	str	r0, [r4]
	b	.L3
.L5:
	ldr	r3, [r4, #4]
	lsl	r3, r3, #2
	lsr	r0, r0, r3
	and	r0, r0, #15
	str	r0, [r4]
	b	.L3
.L15:
	.align	2
.L14:
	.word	devpriv
	.word	APCI1516_DIGITAL_OP_RW
	.word	.LC0
	.word	EINVAL
	.word	.LC1
	.size	i_APCI1516_ReadDigitalOutput, .-i_APCI1516_ReadDigitalOutput
	.comm	devpriv,4,4
	.comm	EINVAL,4,4
	.comm	APCI1516_DIGITAL_OP_RW,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
