	.file	"extr_ni_usb6501.c_ni6501_dio_insn_bits.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ni6501_dio_insn_bits, @function
ni6501_dio_insn_bits:
.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
	xor	r14d, r14d
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	mov	rsi, rcx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	mov	rdi, r13
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rcx
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	QWORD PTR 8[rsp], rdx
	lea	r12, 20[rsp]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	comedi_dio_update_state@PLT
	mov	r8d, 255
	mov	r15d, eax
.L3:
	lea	ecx, 0[0+r14*8]
	mov	eax, r8d
	sal	eax, cl
	test	eax, r15d
	jne	.L2
.L6:
	add	r14d, 1
	cmp	r14d, 3
	jne	.L3
	mov	DWORD PTR 4[rbx], 0
	xor	r14d, r14d
.L7:
	mov	esi, DWORD PTR READ_PORT[rip]
	mov	rcx, r12
	mov	edx, r14d
	mov	rdi, rbp
	call	ni6501_port_command@PLT
	test	eax, eax
	jne	.L1
	mov	eax, DWORD PTR 20[rsp]
	lea	ecx, 0[0+r14*8]
	add	r14d, 1
	sal	eax, cl
	or	DWORD PTR 4[rbx], eax
	cmp	r14d, 3
	jne	.L7
	mov	rax, QWORD PTR 8[rsp]
	mov	eax, DWORD PTR [rax]
.L1:
	mov	rbx, QWORD PTR 24[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L14
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L2:
	.cfi_restore_state
	mov	eax, DWORD PTR 0[r13]
	mov	esi, DWORD PTR WRITE_PORT[rip]
	mov	edx, r14d
	mov	rdi, rbp
	sar	eax, cl
	mov	rcx, r12
	and	eax, 255
	mov	DWORD PTR 20[rsp], eax
	call	ni6501_port_command@PLT
	mov	r8d, 255
	test	eax, eax
	je	.L6
	jmp	.L1
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ni6501_dio_insn_bits, .-ni6501_dio_insn_bits
	.comm	WRITE_PORT,4,4
	.comm	READ_PORT,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_ni_usb6501.c_ni6501_dio_insn_bits.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ni6501_dio_insn_bits, %function
ni6501_dio_insn_bits:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r7, r1
	mov	r4, r3
	mov	r1, r3
	ldr	r3, .L15
	sub	sp, sp, #12
	mov	r5, r0
	mov	r0, r7
	mov	r9, r2
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	comedi_dio_update_state
	mov	fp, #0
	mov	r6, r0
	mov	r8, #255
	ldr	r10, .L15+4
.L3:
	lsl	r2, fp, #3
	ands	r3, r6, r8, lsl r2
	bne	.L2
.L6:
	add	fp, fp, #1
	cmp	fp, #3
	bne	.L3
	mov	r3, #0
	mov	r6, r3
	ldr	r7, .L15+8
	str	r3, [r4, #4]
.L7:
	mov	r3, sp
	mov	r2, r6
	mov	r0, r5
	ldr	r1, [r7]
	bl	ni6501_port_command
	cmp	r0, #0
	bne	.L1
	ldr	r3, [r4, #4]
	ldr	r1, [sp]
	lsl	r2, r6, #3
	add	r6, r6, #1
	orr	r3, r3, r1, lsl r2
	cmp	r6, #3
	str	r3, [r4, #4]
	bne	.L7
	ldr	r0, [r9]
.L1:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	ip, [r7]
	mov	r3, sp
	asr	r2, ip, r2
	and	ip, r2, #255
	mov	r0, r5
	mov	r2, fp
	ldr	r1, [r10]
	str	ip, [sp]
	bl	ni6501_port_command
	cmp	r0, #0
	beq	.L6
	b	.L1
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC0
	.word	WRITE_PORT
	.word	READ_PORT
	.size	ni6501_dio_insn_bits, .-ni6501_dio_insn_bits
	.comm	WRITE_PORT,4,4
	.comm	READ_PORT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
