	.file	"extr_addi-datahwdrv_apci16xx.c_i_APCI16XX_InsnBitsReadTTLIO.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"\nChannel selection error"
.LC1:
	.string	"\nPort selection error"
.LC2:
	.string	"\nCommand selection error"
.LC3:
	.string	"\nBuffer size error"
	.text
	.p2align 4
	.globl	i_APCI16XX_InsnBitsReadTTLIO
	.type	i_APCI16XX_InsnBitsReadTTLIO, @function
i_APCI16XX_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
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR devpriv[rip]
	mov	r15d, DWORD PTR [rdx]
	mov	edi, DWORD PTR 4[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	edx, DWORD PTR [rax]
	test	edx, edx
	lea	eax, 7[rdx]
	cmovns	eax, edx
	sar	eax, 3
	mov	r14d, eax
	call	CR_RANGE@PLT
	mov	edi, DWORD PTR 4[rbp]
	mov	ebx, eax
	call	CR_CHAN@PLT
	mov	edx, DWORD PTR 0[rbp]
	test	edx, edx
	jle	.L2
	mov	ebp, DWORD PTR [r12]
	movzx	esi, BYTE PTR APCI16XX_TTL_READCHANNEL[rip]
	mov	r13d, eax
	cmp	sil, bpl
	je	.L3
	cmp	BYTE PTR APCI16XX_TTL_READPORT[rip], bpl
	jne	.L4
.L3:
	cmp	r14b, bl
	jbe	.L5
	mov	rdi, QWORD PTR devpriv[rip]
	mov	eax, ebx
	and	ebx, 3
	shr	al, 2
	sal	ebx, 3
	mov	rdx, QWORD PTR [rdi]
	movzx	ecx, al
	mov	edx, DWORD PTR [rdx+rcx*4]
	mov	ecx, ebx
	sar	edx, cl
	test	dl, dl
	jne	.L5
	cmp	r13b, 7
	jbe	.L6
	cmp	sil, bpl
	je	.L16
.L6:
	test	r15d, r15d
	jns	.L17
.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
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	mov	rdx, QWORD PTR 8[rdi]
	sal	rax, 2
	and	eax, 252
	lea	rdi, 8[rdx+rax]
	call	inl@PLT
	mov	ecx, ebx
	shr	eax, cl
	mov	BYTE PTR [r12], al
	cmp	BYTE PTR APCI16XX_TTL_READCHANNEL[rip], bpl
	jne	.L1
	movzx	eax, al
	mov	ecx, r13d
	sar	eax, cl
	and	eax, 1
	mov	BYTE PTR [r12], al
	jmp	.L1
.L16:
	lea	rdi, .LC0[rip]
	mov	r15d, -103
	call	printk@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	lea	rdi, .LC1[rip]
	mov	r15d, -102
	call	printk@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	lea	rdi, .LC2[rip]
	mov	r15d, -100
	call	printk@PLT
	jmp	.L1
.L2:
	lea	rdi, .LC3[rip]
	mov	r15d, -101
	call	printk@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	i_APCI16XX_InsnBitsReadTTLIO, .-i_APCI16XX_InsnBitsReadTTLIO
	.comm	devpriv,8,8
	.comm	APCI16XX_TTL_READPORT,1,1
	.comm	APCI16XX_TTL_READCHANNEL,1,1
	.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_addi-datahwdrv_apci16xx.c_i_APCI16XX_InsnBitsReadTTLIO.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\012Channel selection error\000"
	.align	2
.LC1:
	.ascii	"\012Port selection error\000"
	.align	2
.LC2:
	.ascii	"\012Command selection error\000"
	.align	2
.LC3:
	.ascii	"\012Buffer size error\000"
	.text
	.align	2
	.global	i_APCI16XX_InsnBitsReadTTLIO
	.syntax unified
	.arm
	.fpu softvfp
	.type	i_APCI16XX_InsnBitsReadTTLIO, %function
i_APCI16XX_InsnBitsReadTTLIO:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r9, .L11
	mov	r5, r2
	ldr	r2, [r9]
	mov	r6, r3
	ldr	r2, [r2, #8]
	ldr	r0, [r5, #4]
	ldr	r1, [r2]
	ldr	r10, [r5]
	add	r3, r1, #7
	cmp	r1, #0
	movlt	r1, r3
	asr	r1, r1, #3
	and	r7, r1, #255
	bl	CR_RANGE
	mov	r4, r0
	ldr	r0, [r5, #4]
	bl	CR_CHAN
	ldr	r3, [r5]
	cmp	r3, #0
	ble	.L2
	ldr	fp, .L11+4
	ldrb	r8, [r6]	@ zero_extendqisi2
	ldrb	r1, [fp]	@ zero_extendqisi2
	mov	r5, r0
	cmp	r1, r8
	beq	.L3
	ldr	r3, .L11+8
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, r8
	bne	.L4
.L3:
	cmp	r7, r4
	bls	.L5
	ldr	ip, [r9]
	lsr	r3, r4, #2
	ldr	r2, [ip]
	and	r3, r3, #255
	ldr	r2, [r2, r3, lsl #2]
	and	r4, r4, #3
	lsl	r4, r4, #3
	asr	r2, r2, r4
	tst	r2, #255
	bne	.L5
	cmp	r5, #7
	movls	r2, #0
	movhi	r2, #1
	cmp	r1, r8
	movne	r2, #0
	cmp	r2, #0
	bne	.L10
	cmp	r10, #0
	blt	.L1
	ldr	r0, [ip, #4]
	add	r0, r0, #8
	add	r0, r0, r3, lsl #2
	bl	inl
	lsr	r4, r0, r4
	strb	r4, [r6]
	ldrb	r3, [fp]	@ zero_extendqisi2
	cmp	r3, r8
	andeq	r4, r4, #255
	asreq	r5, r4, r5
	andeq	r5, r5, #1
	strbeq	r5, [r6]
.L1:
	mov	r0, r10
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L5:
	ldr	r0, .L11+12
	bl	printk
	mvn	r10, #101
	b	.L1
.L4:
	ldr	r0, .L11+16
	bl	printk
	mvn	r10, #99
	b	.L1
.L2:
	ldr	r0, .L11+20
	bl	printk
	mvn	r10, #100
	b	.L1
.L10:
	ldr	r0, .L11+24
	bl	printk
	mvn	r10, #102
	b	.L1
.L12:
	.align	2
.L11:
	.word	devpriv
	.word	APCI16XX_TTL_READCHANNEL
	.word	APCI16XX_TTL_READPORT
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC0
	.size	i_APCI16XX_InsnBitsReadTTLIO, .-i_APCI16XX_InsnBitsReadTTLIO
	.comm	devpriv,4,4
	.comm	APCI16XX_TTL_READPORT,1,1
	.comm	APCI16XX_TTL_READCHANNEL,1,1
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
