	.file	"extr_dmm32at.c_dmm32at_ao_insn_write.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	dmm32at_ao_insn_write, @function
dmm32at_ao_insn_write:
.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
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	edi, DWORD PTR 4[rdx]
	mov	QWORD PTR 16[rsp], rcx
	call	CR_CHAN@PLT
	mov	r15d, eax
	mov	eax, DWORD PTR 0[r13]
	test	eax, eax
	jle	.L1
	mov	eax, r15d
	xor	r12d, r12d
	sal	rax, 2
	mov	QWORD PTR 24[rsp], rax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdi, QWORD PTR DMM32AT_AO_MSB_REG[rip]
	add	rdi, QWORD PTR [rbx]
	add	r12, 1
	call	inb@PLT
	mov	rax, QWORD PTR [r14]
	mov	rdx, QWORD PTR 24[rsp]
	mov	DWORD PTR [rax+rdx], ebp
	mov	eax, DWORD PTR 0[r13]
	cmp	eax, r12d
	jle	.L1
.L3:
	mov	rax, QWORD PTR 16[rsp]
	mov	rsi, QWORD PTR DMM32AT_AO_LSB_REG[rip]
	add	rsi, QWORD PTR [rbx]
	mov	ebp, DWORD PTR [rax+r12*4]
	movzx	edi, bpl
	call	outb@PLT
	mov	rsi, QWORD PTR DMM32AT_AO_MSB_REG[rip]
	mov	edi, r15d
	add	rsi, QWORD PTR [rbx]
	mov	QWORD PTR 8[rsp], rsi
	call	DMM32AT_AO_MSB_DACH@PLT
	mov	edi, ebp
	mov	rsi, QWORD PTR 8[rsp]
	shr	edi, 8
	or	edi, eax
	call	outb@PLT
	xor	r8d, r8d
	mov	rdx, r13
	mov	rsi, r14
	mov	ecx, DWORD PTR dmm32at_ao_eoc[rip]
	mov	rdi, rbx
	call	comedi_timeout@PLT
	test	eax, eax
	je	.L7
.L1:
	add	rsp, 40
	.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
	.cfi_endproc
.LFE0:
	.size	dmm32at_ao_insn_write, .-dmm32at_ao_insn_write
	.comm	dmm32at_ao_eoc,4,4
	.comm	DMM32AT_AO_MSB_REG,8,8
	.comm	DMM32AT_AO_LSB_REG,8,8
	.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_dmm32at.c_dmm32at_ao_insn_write.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dmm32at_ao_insn_write, %function
dmm32at_ao_insn_write:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	sub	sp, sp, #20
	ldr	r0, [r2, #4]
	mov	r8, r2
	mov	r7, r3
	mov	r9, r1
	bl	CR_CHAN
	mov	r3, r0
	ldr	r0, [r8]
	str	r3, [sp, #8]
	cmp	r0, #0
	ble	.L1
	lsl	r3, r3, #2
	mov	r6, #0
	ldr	fp, .L9
	ldr	r10, .L9+4
	sub	r7, r7, #4
	str	r3, [sp, #12]
	b	.L3
.L8:
	ldr	r3, [r10]
	ldr	r0, [r4]
	add	r0, r0, r3
	bl	inb
	ldr	r3, [r9]
	ldr	r2, [sp, #12]
	str	r5, [r3, r2]
	ldr	r0, [r8]
	cmp	r0, r6
	ble	.L1
.L3:
	ldr	r3, [fp]
	ldr	r5, [r7, #4]!
	ldr	r1, [r4]
	and	r0, r5, #255
	add	r1, r1, r3
	bl	outb
	ldr	r0, [sp, #8]
	bl	DMM32AT_AO_MSB_DACH
	ldr	r3, [r10]
	ldr	r1, [r4]
	orr	r0, r0, r5, lsr #8
	add	r1, r1, r3
	bl	outb
	mov	r3, #0
	str	r3, [sp]
	ldr	r3, .L9+8
	mov	r2, r8
	mov	r1, r9
	mov	r0, r4
	ldr	r3, [r3]
	bl	comedi_timeout
	cmp	r0, #0
	add	r6, r6, #1
	beq	.L8
.L1:
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L10:
	.align	2
.L9:
	.word	DMM32AT_AO_LSB_REG
	.word	DMM32AT_AO_MSB_REG
	.word	dmm32at_ao_eoc
	.size	dmm32at_ao_insn_write, .-dmm32at_ao_insn_write
	.comm	dmm32at_ao_eoc,4,4
	.comm	DMM32AT_AO_MSB_REG,4,4
	.comm	DMM32AT_AO_LSB_REG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
