	.file	"extr_addi_apci_16xx.c_apci16xx_insn_config.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	apci16xx_insn_config, @function
apci16xx_insn_config:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	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_CHAN@PLT
	mov	r8d, 255
	cmp	eax, 7
	jbe	.L2
	mov	r8d, 65280
	cmp	eax, 15
	ja	.L9
.L2:
	mov	rcx, r13
	mov	rdx, rbx
	mov	rsi, rbp
	mov	rdi, r12
	call	comedi_dio_insn_config@PLT
	test	eax, eax
	jne	.L1
	mov	edi, DWORD PTR 0[rbp]
	mov	r12, QWORD PTR [r12]
	call	APCI16XX_DIR_REG@PLT
	mov	edi, DWORD PTR 4[rbp]
	lea	rsi, [r12+rax]
	call	outl@PLT
	mov	eax, DWORD PTR [rbx]
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
.L9:
	.cfi_restore_state
	cmp	eax, 24
	sbb	r8d, r8d
	and	r8d, 33488896
	sub	r8d, 16777216
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	apci16xx_insn_config, .-apci16xx_insn_config
	.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_apci_16xx.c_apci16xx_insn_config.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	apci16xx_insn_config, %function
apci16xx_insn_config:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r6, r0
	sub	sp, sp, #12
	ldr	r0, [r2, #4]
	mov	r7, r3
	mov	r4, r2
	mov	r5, r1
	bl	CR_CHAN
	cmp	r0, #7
	movls	r3, #255
	bls	.L2
	cmp	r0, #15
	movls	r3, #65280
	bhi	.L9
.L2:
	str	r3, [sp]
	mov	r2, r4
	mov	r3, r7
	mov	r1, r5
	mov	r0, r6
	bl	comedi_dio_insn_config
	cmp	r0, #0
	bne	.L1
	ldr	r0, [r5]
	ldr	r6, [r6]
	ldr	r5, [r5, #4]
	bl	APCI16XX_DIR_REG
	mov	r1, r0
	mov	r0, r5
	add	r1, r6, r1
	bl	outl
	ldr	r0, [r4]
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L9:
	cmp	r0, #24
	movcc	r3, #16711680
	movcs	r3, #-16777216
	b	.L2
	.size	apci16xx_insn_config, .-apci16xx_insn_config
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
