	.file	"extr_ni_mio_common.c_ni_request_cdo_mite_channel.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"failed to reserve mite dma channel for correlated digital output\n"
	.text
	.p2align 4
	.type	ni_request_cdo_mite_channel, @function
ni_request_cdo_mite_channel:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	esi, esi
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rbp, QWORD PTR 8[rdi]
	mov	rdi, rbp
	call	spin_lock_irqsave@PLT
	mov	esi, DWORD PTR 16[rbp]
	mov	edi, DWORD PTR 20[rbp]
	call	mite_request_channel@PLT
	test	rax, rax
	je	.L6
	mov	edx, DWORD PTR COMEDI_OUTPUT[rip]
	mov	edi, DWORD PTR [rax]
	mov	DWORD PTR 4[rax], edx
	mov	QWORD PTR 8[rbp], rax
	call	NI_STC_DMA_CHAN_SEL@PLT
	mov	edi, eax
	call	NI_M_CDIO_DMA_SEL_CDO@PLT
	mov	edx, DWORD PTR NI_M_CDIO_DMA_SEL_CDO_MASK[rip]
	mov	esi, DWORD PTR NI_M_CDIO_DMA_SEL_REG[rip]
	mov	rdi, r12
	mov	ecx, eax
	call	ni_set_bitfield@PLT
	mov	rdi, rbp
	xor	esi, esi
	call	spin_unlock_irqrestore@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rdi, rbp
	xor	esi, esi
	call	spin_unlock_irqrestore@PLT
	mov	edi, DWORD PTR [r12]
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	mov	eax, DWORD PTR EBUSY[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	ni_request_cdo_mite_channel, .-ni_request_cdo_mite_channel
	.comm	NI_M_CDIO_DMA_SEL_REG,4,4
	.comm	NI_M_CDIO_DMA_SEL_CDO_MASK,4,4
	.comm	EBUSY,4,4
	.comm	COMEDI_OUTPUT,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_request_cdo_mite_channel.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"failed to reserve mite dma channel for correlated d"
	.ascii	"igital output\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ni_request_cdo_mite_channel, %function
ni_request_cdo_mite_channel:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r4, [r0, #4]
	mov	r1, #0
	mov	r5, r0
	mov	r0, r4
	bl	spin_lock_irqsave
	ldr	r1, [r4, #8]
	ldr	r0, [r4, #12]
	bl	mite_request_channel
	subs	r3, r0, #0
	beq	.L6
	ldr	r2, .L7
	ldr	r0, [r3]
	ldr	r2, [r2]
	str	r2, [r3, #4]
	str	r3, [r4, #4]
	bl	NI_STC_DMA_CHAN_SEL
	ldr	r2, .L7+4
	ldr	r3, .L7+8
	ldr	r6, [r2]
	ldr	r7, [r3]
	bl	NI_M_CDIO_DMA_SEL_CDO
	mov	r2, r7
	mov	r3, r0
	mov	r1, r6
	mov	r0, r5
	bl	ni_set_bitfield
	mov	r0, r4
	mov	r1, #0
	bl	spin_unlock_irqrestore
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	mov	r0, r4
	mov	r1, #0
	bl	spin_unlock_irqrestore
	ldr	r0, [r5]
	ldr	r1, .L7+12
	bl	dev_err
	ldr	r3, .L7+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	.align	2
.L7:
	.word	COMEDI_OUTPUT
	.word	NI_M_CDIO_DMA_SEL_REG
	.word	NI_M_CDIO_DMA_SEL_CDO_MASK
	.word	.LC0
	.word	EBUSY
	.size	ni_request_cdo_mite_channel, .-ni_request_cdo_mite_channel
	.comm	NI_M_CDIO_DMA_SEL_REG,4,4
	.comm	NI_M_CDIO_DMA_SEL_CDO_MASK,4,4
	.comm	EBUSY,4,4
	.comm	COMEDI_OUTPUT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
