	.file	"extr_APCI1710_Ttl.c_i_APCI1710_InsnBitsReadTTLIO.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Selected TTL I/O port error\n"
.LC1:
	.string	"TTL I/O not initialised\n"
.LC2:
	.string	"Selected digital input error\n"
.LC3:
	.string	"Bad ReadType\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC4:
	.string	"The module is not a TTL module\n"
	.section	.rodata.str1.1
.LC5:
	.string	"Module number error\n"
	.text
	.p2align 4
	.globl	i_APCI1710_InsnBitsReadTTLIO
	.type	i_APCI1710_InsnBitsReadTTLIO, @function
i_APCI1710_InsnBitsReadTTLIO:
.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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	edi, DWORD PTR 4[rdx]
	mov	r14d, DWORD PTR [rdx]
	mov	r15d, DWORD PTR [rcx]
	call	CR_AREF@PLT
	mov	edi, DWORD PTR 4[r12]
	mov	ebx, eax
	call	CR_RANGE@PLT
	mov	edi, DWORD PTR 4[r12]
	mov	ebp, eax
	call	CR_CHAN@PLT
	cmp	bl, 3
	ja	.L2
	mov	rcx, QWORD PTR devpriv[rip]
	mov	r12d, eax
	movzx	eax, bl
	movsx	rsi, DWORD PTR APCI1710_TTL_IO[rip]
	mov	rdx, QWORD PTR [rcx]
	mov	edx, DWORD PTR [rdx+rax*4]
	mov	edi, edx
	and	edi, -65536
	cmp	rdi, rsi
	jne	.L3
	movzx	esi, r15b
	cmp	r15b, -128
	je	.L4
	cmp	esi, 129
	je	.L30
	lea	rdi, .LC3[rip]
	call	printk@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r14d
	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
.L30:
	.cfi_restore_state
	cmp	bpl, 2
	jbe	.L31
	cmp	bpl, 3
	jne	.L10
	movzx	edx, dx
	cmp	edx, 12847
	jle	.L10
	cmp	r12b, 1
	ja	.L12
	sal	rax, 4
	add	rax, QWORD PTR 16[rcx]
	cmp	DWORD PTR [rax], 1
	jne	.L13
	cmp	edx, 12592
	je	.L14
	cmp	edx, 12847
	jle	.L10
.L23:
	mov	rsi, QWORD PTR 8[rax]
	movzx	edx, bpl
	mov	edx, DWORD PTR [rsi+rdx*4]
	test	edx, edx
	jne	.L10
.L14:
	movzx	edi, bl
	mov	ebx, edi
	sal	ebx, 6
	add	ebx, DWORD PTR 8[rcx]
	mov	edi, ebx
	call	inl@PLT
	movzx	ecx, bpl
	sal	ecx, 3
	shr	eax, cl
	mov	ecx, r12d
	shr	eax, cl
	and	eax, 1
	mov	BYTE PTR 0[r13], al
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	cmp	bpl, 2
	jbe	.L32
	cmp	bpl, 3
	jne	.L10
	movzx	esi, dx
.L18:
	cmp	esi, 12847
	jle	.L10
	sal	rax, 4
	add	rax, QWORD PTR 16[rcx]
	cmp	DWORD PTR [rax], 1
	jne	.L19
	mov	rsi, QWORD PTR 8[rax]
	movzx	edx, bpl
	mov	eax, DWORD PTR [rsi+rdx*4]
	test	eax, eax
	jne	.L10
.L20:
	movzx	edi, bl
	mov	ebx, edi
	sal	ebx, 6
	add	ebx, DWORD PTR 8[rcx]
	mov	edi, ebx
	call	inl@PLT
	movzx	ecx, bpl
	sal	ecx, 3
	shr	eax, cl
	mov	BYTE PTR 0[r13], al
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L32:
	movzx	esi, dx
	cmp	dx, 12592
	jne	.L18
	sal	rax, 4
	add	rax, QWORD PTR 16[rcx]
	cmp	DWORD PTR [rax], 1
	je	.L20
.L19:
	lea	rdi, .LC1[rip]
	mov	r14d, -5
	call	DPRINTK@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L31:
	movzx	esi, dx
	cmp	dx, 12592
	je	.L33
	cmp	esi, 12847
	jle	.L10
	cmp	r12b, 7
	ja	.L12
	sal	rax, 4
	add	rax, QWORD PTR 16[rcx]
	cmp	DWORD PTR [rax], 1
	je	.L23
.L13:
	lea	rdi, .LC1[rip]
	mov	r14d, -6
	call	DPRINTK@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L33:
	cmp	r12b, 7
	ja	.L12
	sal	rax, 4
	add	rax, QWORD PTR 16[rcx]
	cmp	DWORD PTR [rax], 1
	je	.L14
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L10:
	lea	rdi, .LC0[rip]
	mov	r14d, -4
	call	DPRINTK@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	lea	rdi, .LC4[rip]
	mov	r14d, -3
	call	DPRINTK@PLT
	jmp	.L1
.L2:
	lea	rdi, .LC5[rip]
	mov	r14d, -2
	call	DPRINTK@PLT
	jmp	.L1
.L12:
	lea	rdi, .LC2[rip]
	mov	r14d, -5
	call	DPRINTK@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	i_APCI1710_InsnBitsReadTTLIO, .-i_APCI1710_InsnBitsReadTTLIO
	.comm	devpriv,8,8
	.comm	APCI1710_TTL_IO,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_APCI1710_Ttl.c_i_APCI1710_InsnBitsReadTTLIO.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Selected TTL I/O port error\012\000"
	.align	2
.LC1:
	.ascii	"TTL I/O not initialised\012\000"
	.align	2
.LC2:
	.ascii	"Selected digital input error\012\000"
	.align	2
.LC3:
	.ascii	"Bad ReadType\012\000"
	.align	2
.LC4:
	.ascii	"The module is not a TTL module\012\000"
	.align	2
.LC5:
	.ascii	"Module number error\012\000"
	.text
	.align	2
	.global	i_APCI1710_InsnBitsReadTTLIO
	.syntax unified
	.arm
	.fpu softvfp
	.type	i_APCI1710_InsnBitsReadTTLIO, %function
i_APCI1710_InsnBitsReadTTLIO:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r0, [r2, #4]
	mov	r4, r2
	mov	r6, r3
	ldr	r7, [r2]
	ldr	r8, [r3]
	bl	CR_AREF
	mov	r5, r0
	ldr	r0, [r4, #4]
	bl	CR_RANGE
	mov	r3, r0
	ldr	r0, [r4, #4]
	mov	r4, r3
	bl	CR_CHAN
	cmp	r5, #3
	bhi	.L2
	ldr	r2, .L40
	ldr	r3, .L40+4
	ldr	r1, [r2]
	mov	r9, r0
	ldr	r0, [r3]
	ldr	r3, [r1]
	ldr	r2, [r3, r5, lsl #2]
	lsr	r3, r2, #16
	lsl	r3, r3, #16
	cmp	r3, r0
	bne	.L3
	and	r3, r8, #255
	cmp	r3, #128
	beq	.L4
	cmp	r3, #129
	beq	.L36
	ldr	r0, .L40+8
	bl	printk
.L1:
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L36:
	cmp	r4, #2
	bls	.L37
	cmp	r4, #3
	bne	.L10
	ldr	r3, .L40+12
	lsl	r2, r2, #16
	lsr	r2, r2, #16
	cmp	r2, r3
	ble	.L10
	cmp	r9, #1
	bhi	.L12
	ldr	r3, [r1, #8]
	ldr	r0, [r3, r5, lsl #3]
	add	r3, r3, r5, lsl #3
	cmp	r0, #1
	bne	.L13
	ldr	r0, .L40+16
	cmp	r2, r0
	beq	.L14
	add	r0, r0, #255
	cmp	r2, r0
	ble	.L10
.L23:
	ldr	r3, [r3, #4]
	ldr	r3, [r3, r4, lsl #2]
	cmp	r3, #0
	bne	.L10
.L14:
	ldr	r0, [r1, #4]
	lsl	r4, r4, #3
	add	r0, r0, r5, lsl #6
	bl	inl
	lsr	r0, r0, r4
	lsr	r9, r0, r9
	and	r9, r9, #1
	mov	r0, r7
	strb	r9, [r6]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L4:
	cmp	r4, #2
	bls	.L38
	cmp	r4, #3
	bne	.L10
	lsl	r2, r2, #16
	lsr	r2, r2, #16
.L18:
	ldr	r3, .L40+12
	cmp	r2, r3
	ble	.L10
	ldr	r3, [r1, #8]
	ldr	r2, [r3, r5, lsl #3]
	add	r3, r3, r5, lsl #3
	cmp	r2, #1
	bne	.L19
	ldr	r3, [r3, #4]
	ldr	r3, [r3, r4, lsl #2]
	cmp	r3, #0
	bne	.L10
.L20:
	ldr	r0, [r1, #4]
	lsl	r4, r4, #3
	add	r0, r0, r5, lsl #6
	bl	inl
	lsr	r0, r0, r4
	strb	r0, [r6]
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L38:
	ldr	r3, .L40+16
	lsl	r2, r2, #16
	lsr	r2, r2, #16
	cmp	r2, r3
	bne	.L18
	ldr	r3, [r1, #8]
	ldr	r3, [r3, r5, lsl #3]
	cmp	r3, #1
	beq	.L20
.L19:
	ldr	r0, .L40+20
	bl	DPRINTK
	mvn	r7, #4
	b	.L1
.L37:
	ldr	r3, .L40+16
	lsl	r2, r2, #16
	lsr	r2, r2, #16
	cmp	r2, r3
	beq	.L39
	ldr	r3, .L40+12
	cmp	r2, r3
	ble	.L10
	cmp	r9, #7
	bhi	.L12
	ldr	r3, [r1, #8]
	ldr	r2, [r3, r5, lsl #3]
	add	r3, r3, r5, lsl #3
	cmp	r2, #1
	beq	.L23
.L13:
	ldr	r0, .L40+20
	bl	DPRINTK
	mvn	r7, #5
	b	.L1
.L39:
	cmp	r9, #7
	bhi	.L12
	ldr	r3, [r1, #8]
	ldr	r3, [r3, r5, lsl #3]
	cmp	r3, #1
	beq	.L14
	b	.L13
.L10:
	ldr	r0, .L40+24
	bl	DPRINTK
	mvn	r7, #3
	b	.L1
.L3:
	ldr	r0, .L40+28
	bl	DPRINTK
	mvn	r7, #2
	b	.L1
.L2:
	ldr	r0, .L40+32
	bl	DPRINTK
	mvn	r7, #1
	b	.L1
.L12:
	ldr	r0, .L40+36
	bl	DPRINTK
	mvn	r7, #4
	b	.L1
.L41:
	.align	2
.L40:
	.word	devpriv
	.word	APCI1710_TTL_IO
	.word	.LC3
	.word	12847
	.word	12592
	.word	.LC1
	.word	.LC0
	.word	.LC4
	.word	.LC5
	.word	.LC2
	.size	i_APCI1710_InsnBitsReadTTLIO, .-i_APCI1710_InsnBitsReadTTLIO
	.comm	devpriv,4,4
	.comm	APCI1710_TTL_IO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
