	.file	"extr_hwdrv_apci3501.c_i_APCI3501_ReadDigitalInput.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"\nSpecified channel not supported \n"
	.text
	.p2align 4
	.globl	i_APCI3501_ReadDigitalInput
	.type	i_APCI3501_ReadDigitalInput, @function
i_APCI3501_ReadDigitalInput:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rcx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR 4[rdx]
	call	CR_CHAN@PLT
	mov	rdi, QWORD PTR APCI3501_DIGITAL_IP[rip]
	mov	r13d, DWORD PTR [rbx]
	mov	r12d, eax
	mov	rax, QWORD PTR devpriv[rip]
	add	rdi, QWORD PTR [rax]
	call	inl@PLT
	mov	DWORD PTR [rbx], eax
	test	r13d, r13d
	jne	.L2
	mov	ecx, r12d
	shr	eax, cl
	and	eax, 1
	mov	DWORD PTR [rbx], eax
	mov	eax, DWORD PTR 0[rbp]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	cmp	r13d, 1
	jne	.L4
	and	eax, 3
	mov	DWORD PTR [rbx], eax
	mov	eax, DWORD PTR 0[rbp]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	printk@PLT
	mov	eax, DWORD PTR 0[rbp]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	i_APCI3501_ReadDigitalInput, .-i_APCI3501_ReadDigitalInput
	.comm	devpriv,8,8
	.comm	APCI3501_DIGITAL_IP,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_apci3501.c_i_APCI3501_ReadDigitalInput.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\012Specified channel not supported \012\000"
	.text
	.align	2
	.global	i_APCI3501_ReadDigitalInput
	.syntax unified
	.arm
	.fpu softvfp
	.type	i_APCI3501_ReadDigitalInput, %function
i_APCI3501_ReadDigitalInput:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r0, [r2, #4]
	mov	r4, r3
	mov	r5, r2
	bl	CR_CHAN
	ldr	r2, .L7
	ldr	r3, .L7+4
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r2, [r2]
	mov	r6, r0
	add	r0, r2, r3
	ldr	r7, [r4]
	bl	inl
	cmp	r7, #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	r7, #1
	andeq	r0, r0, #3
	streq	r0, [r4]
	beq	.L3
	ldr	r0, .L7+8
	bl	printk
	ldr	r0, [r5]
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	.align	2
.L7:
	.word	devpriv
	.word	APCI3501_DIGITAL_IP
	.word	.LC0
	.size	i_APCI3501_ReadDigitalInput, .-i_APCI3501_ReadDigitalInput
	.comm	devpriv,4,4
	.comm	APCI3501_DIGITAL_IP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
