	.file	"extr_addi-datahwdrv_apci16xx.c_i_APCI16XX_InsnReadTTLIOAllPortValue.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"\nBuffer size error"
.LC1:
	.string	"\nCommand selection error"
	.text
	.p2align 4
	.globl	i_APCI16XX_InsnReadTTLIOAllPortValue
	.type	i_APCI16XX_InsnReadTTLIOAllPortValue, @function
i_APCI16XX_InsnReadTTLIOAllPortValue:
.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, rcx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR 4[rdx]
	call	CR_AREF@PLT
	movzx	r9d, BYTE PTR APCI16XX_TTL_READ_ALL_INPUTS[rip]
	mov	r13d, DWORD PTR [rbx]
	cmp	r9b, al
	je	.L2
	cmp	BYTE PTR APCI16XX_TTL_READ_ALL_OUTPUTS[rip], al
	jne	.L3
.L2:
	mov	rdx, QWORD PTR devpriv[rip]
	mov	rcx, QWORD PTR 16[rdx]
	mov	edi, DWORD PTR [rcx]
	test	edi, edi
	lea	ecx, 31[rdi]
	cmovns	ecx, edi
	sar	ecx, 5
	movzx	r8d, cl
	mov	esi, ecx
	mov	r10d, r8d
	sal	r10d, 5
	cmp	edi, r10d
	jg	.L18
.L4:
	cmp	r13d, r8d
	jl	.L5
	cmp	r9b, al
	je	.L6
	test	sil, sil
	je	.L1
	sub	esi, 1
	xor	ebx, ebx
	movzx	esi, sil
	lea	r12, 4[0+rsi*4]
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rax, QWORD PTR 8[rdx]
	lea	rdi, 20[rbx+rax]
	call	inl@PLT
	mov	rdx, QWORD PTR devpriv[rip]
	mov	DWORD PTR 0[rbp+rbx], eax
	mov	rcx, QWORD PTR [rdx]
	and	eax, DWORD PTR [rcx+rbx]
	mov	DWORD PTR 0[rbp+rbx], eax
	add	rbx, 4
	cmp	r12, rbx
	jne	.L10
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	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
.L18:
	.cfi_restore_state
	lea	esi, 1[rcx]
	movzx	r8d, sil
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	test	sil, sil
	je	.L1
	sub	esi, 1
	xor	ebx, ebx
	movzx	esi, sil
	lea	r12, 4[0+rsi*4]
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rax, QWORD PTR 8[rdx]
	lea	rdi, 8[rbx+rax]
	call	inl@PLT
	mov	rdx, QWORD PTR devpriv[rip]
	mov	DWORD PTR 0[rbp+rbx], eax
	mov	ecx, eax
	mov	rax, QWORD PTR [rdx]
	mov	eax, DWORD PTR [rax+rbx]
	not	eax
	and	eax, ecx
	mov	DWORD PTR 0[rbp+rbx], eax
	add	rbx, 4
	cmp	r12, rbx
	jne	.L9
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	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
.L3:
	.cfi_restore_state
	lea	rdi, .LC1[rip]
	mov	r13d, -100
	call	printk@PLT
	jmp	.L1
.L5:
	lea	rdi, .LC0[rip]
	mov	r13d, -101
	call	printk@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	i_APCI16XX_InsnReadTTLIOAllPortValue, .-i_APCI16XX_InsnReadTTLIOAllPortValue
	.comm	devpriv,8,8
	.comm	APCI16XX_TTL_READ_ALL_OUTPUTS,1,1
	.comm	APCI16XX_TTL_READ_ALL_INPUTS,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_InsnReadTTLIOAllPortValue.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\012Buffer size error\000"
	.align	2
.LC1:
	.ascii	"\012Command selection error\000"
	.text
	.align	2
	.global	i_APCI16XX_InsnReadTTLIOAllPortValue
	.syntax unified
	.arm
	.fpu softvfp
	.type	i_APCI16XX_InsnReadTTLIOAllPortValue, %function
i_APCI16XX_InsnReadTTLIOAllPortValue:
	@ 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	r5, r2
	mov	r4, r3
	bl	CR_AREF
	ldr	r3, .L18
	and	r0, r0, #255
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r8, [r5]
	cmp	r1, r0
	beq	.L2
	ldr	r3, .L18+4
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, r0
	bne	.L3
.L2:
	ldr	r7, .L18+8
	ldr	r2, [r7]
	ldr	r3, [r2, #8]
	ldr	r3, [r3]
	cmp	r3, #0
	add	r5, r3, #31
	movge	r5, r3
	asr	r5, r5, #5
	and	r5, r5, #255
	cmp	r3, r5, lsl #5
	addgt	r5, r5, #1
	andgt	r5, r5, #255
	cmp	r8, r5
	blt	.L5
	cmp	r1, r0
	beq	.L6
	cmp	r5, #0
	beq	.L1
	mov	r6, #0
	sub	r5, r5, #1
	and	r5, r5, #255
	add	r5, r4, r5, lsl #2
	sub	r4, r4, #4
.L10:
	ldr	r0, [r2, #4]
	add	r0, r0, #20
	add	r0, r0, r6
	bl	inl
	ldr	r2, [r7]
	str	r0, [r4, #4]!
	ldr	r3, [r2]
	cmp	r5, r4
	ldr	r3, [r3, r6]
	add	r6, r6, #4
	and	r0, r0, r3
	str	r0, [r4]
	bne	.L10
.L1:
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	cmp	r5, #0
	beq	.L1
	mov	r6, #0
	sub	r5, r5, #1
	and	r5, r5, #255
	add	r5, r4, r5, lsl #2
	sub	r4, r4, #4
.L9:
	ldr	r0, [r2, #4]
	add	r0, r0, #8
	add	r0, r0, r6
	bl	inl
	ldr	r2, [r7]
	str	r0, [r4, #4]!
	ldr	r3, [r2]
	cmp	r5, r4
	ldr	r3, [r3, r6]
	add	r6, r6, #4
	bic	r0, r0, r3
	str	r0, [r4]
	bne	.L9
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	ldr	r0, .L18+12
	bl	printk
	mvn	r8, #99
	b	.L1
.L5:
	ldr	r0, .L18+16
	bl	printk
	mvn	r8, #100
	b	.L1
.L19:
	.align	2
.L18:
	.word	APCI16XX_TTL_READ_ALL_INPUTS
	.word	APCI16XX_TTL_READ_ALL_OUTPUTS
	.word	devpriv
	.word	.LC1
	.word	.LC0
	.size	i_APCI16XX_InsnReadTTLIOAllPortValue, .-i_APCI16XX_InsnReadTTLIOAllPortValue
	.comm	devpriv,4,4
	.comm	APCI16XX_TTL_READ_ALL_OUTPUTS,1,1
	.comm	APCI16XX_TTL_READ_ALL_INPUTS,1,1
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
