	.file	"extr_ni_mio_common.c_ni_m_series_dio_insn_bits.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ni_m_series_dio_insn_bits, @function
ni_m_series_dio_insn_bits:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	r12d, DWORD PTR [rdx]
	cmp	r12d, 2
	je	.L2
	mov	r12d, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edi, DWORD PTR [rcx]
	mov	rbx, rcx
	test	edi, edi
	jne	.L10
.L4:
	mov	edi, DWORD PTR M_Offset_Static_Digital_Input[rip]
	call	ni_readl@PLT
	mov	DWORD PTR 4[rbx], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	not	edi
	and	edi, DWORD PTR [rsi]
	mov	DWORD PTR [rsi], edi
	mov	eax, DWORD PTR [rcx]
	and	eax, DWORD PTR 4[rcx]
	or	edi, eax
	mov	DWORD PTR [rsi], edi
	mov	esi, DWORD PTR M_Offset_Static_Digital_Output[rip]
	call	ni_writel@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	ni_m_series_dio_insn_bits, .-ni_m_series_dio_insn_bits
	.comm	M_Offset_Static_Digital_Output,4,4
	.comm	M_Offset_Static_Digital_Input,4,4
	.comm	EINVAL,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_mio_common.c_ni_m_series_dio_insn_bits.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ni_m_series_dio_insn_bits, %function
ni_m_series_dio_insn_bits:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r4, [r2]
	cmp	r4, #2
	beq	.L2
	ldr	r3, .L11
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r0, [r3]
	mov	r5, r3
	cmp	r0, #0
	bne	.L10
.L4:
	ldr	r3, .L11+4
	ldr	r0, [r3]
	bl	ni_readl
	str	r0, [r5, #4]
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L10:
	ldr	r3, [r1]
	ldr	r2, .L11+8
	bic	r3, r3, r0
	str	r3, [r1]
	ldm	r5, {r0, ip}
	and	r0, r0, ip
	orr	r0, r0, r3
	str	r0, [r1]
	ldr	r1, [r2]
	bl	ni_writel
	b	.L4
.L12:
	.align	2
.L11:
	.word	EINVAL
	.word	M_Offset_Static_Digital_Input
	.word	M_Offset_Static_Digital_Output
	.size	ni_m_series_dio_insn_bits, .-ni_m_series_dio_insn_bits
	.comm	M_Offset_Static_Digital_Output,4,4
	.comm	M_Offset_Static_Digital_Input,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
