	.file	"extr_me_daq.c_me_dio_insn_config.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	me_dio_insn_config, @function
me_dio_insn_config:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rcx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	mov	rbp, QWORD PTR 8[rdi]
	mov	edi, DWORD PTR 4[rdx]
	call	CR_CHAN@PLT
	mov	rcx, r14
	mov	rdx, r12
	mov	rsi, r13
	cmp	eax, 16
	mov	rdi, rbx
	sbb	r8d, r8d
	and	r8d, 131071
	sub	r8d, 65536
	call	comedi_dio_insn_config@PLT
	test	eax, eax
	jne	.L1
	mov	eax, DWORD PTR ME_CTRL2_PORT_A_ENA[rip]
	mov	edi, DWORD PTR 0[rbp]
	mov	edx, DWORD PTR 0[r13]
	mov	ecx, eax
	not	eax
	or	ecx, edi
	and	eax, edi
	test	dx, dx
	cmove	ecx, eax
	and	edx, -65536
	mov	DWORD PTR 0[rbp], ecx
	mov	edi, ecx
	jne	.L11
	mov	eax, DWORD PTR ME_CTRL2_PORT_B_ENA[rip]
	not	eax
	and	edi, eax
.L7:
	mov	DWORD PTR 0[rbp], edi
	mov	rsi, QWORD PTR ME_CTRL2_REG[rip]
	add	rsi, QWORD PTR [rbx]
	call	writew@PLT
	mov	eax, DWORD PTR [r12]
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	or	edi, DWORD PTR ME_CTRL2_PORT_B_ENA[rip]
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	me_dio_insn_config, .-me_dio_insn_config
	.comm	ME_CTRL2_REG,8,8
	.comm	ME_CTRL2_PORT_B_ENA,4,4
	.comm	ME_CTRL2_PORT_A_ENA,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_me_daq.c_me_dio_insn_config.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	me_dio_insn_config, %function
me_dio_insn_config:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r5, r0
	sub	sp, sp, #12
	ldr	r0, [r2, #4]
	mov	r4, r2
	mov	r7, r1
	mov	r9, r3
	ldr	r6, [r5, #4]
	bl	CR_CHAN
	ldr	r8, .L11
	ldr	r2, .L11+4
	cmp	r0, #15
	movhi	r0, r2
	movls	r0, r8
	mov	r3, r9
	str	r0, [sp]
	mov	r2, r4
	mov	r1, r7
	mov	r0, r5
	bl	comedi_dio_insn_config
	cmp	r0, #0
	bne	.L1
	ldr	r3, [r7]
	ldr	r2, .L11+8
	ldr	r0, [r6]
	ldr	r2, [r2]
	tst	r3, r8
	lsr	r3, r3, #16
	lsl	r3, r3, #16
	orrne	r0, r2, r0
	biceq	r0, r0, r2
	cmp	r3, #0
	ldr	r3, .L11+12
	str	r0, [r6]
	ldr	r3, [r3]
	ldr	r1, [r5]
	orrne	r0, r0, r3
	biceq	r0, r0, r3
	ldr	r3, .L11+16
	ldr	r3, [r3]
	str	r0, [r6]
	add	r1, r1, r3
	bl	writew
	ldr	r0, [r4]
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L12:
	.align	2
.L11:
	.word	65535
	.word	-65536
	.word	ME_CTRL2_PORT_A_ENA
	.word	ME_CTRL2_PORT_B_ENA
	.word	ME_CTRL2_REG
	.size	me_dio_insn_config, .-me_dio_insn_config
	.comm	ME_CTRL2_REG,4,4
	.comm	ME_CTRL2_PORT_B_ENA,4,4
	.comm	ME_CTRL2_PORT_A_ENA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
