	.file	"extr_pcl726.c_pcl726_ao_insn_write.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pcl726_ao_insn_write, @function
pcl726_ao_insn_write:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	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
	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, rdx
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	edi, DWORD PTR 4[rdx]
	mov	QWORD PTR 8[rsp], rdx
	mov	QWORD PTR 16[rsp], rcx
	call	CR_CHAN@PLT
	mov	edi, DWORD PTR 4[rbx]
	mov	r13d, eax
	call	CR_RANGE@PLT
	mov	DWORD PTR 4[rsp], eax
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	jle	.L1
	mov	eax, r13d
	xor	ebp, ebp
	sal	rax, 2
	mov	QWORD PTR 24[rsp], rax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	mov	r12, QWORD PTR [r15]
	mov	edi, r13d
	add	rbp, 1
	call	PCL726_AO_MSB_REG@PLT
	movzx	edi, bh
	lea	rsi, [r12+rax]
	call	outb@PLT
	mov	r12, QWORD PTR [r15]
	mov	edi, r13d
	call	PCL726_AO_LSB_REG@PLT
	movzx	edi, bl
	lea	rsi, [r12+rax]
	call	outb@PLT
	mov	rax, QWORD PTR 8[rsp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, ebp
	jle	.L1
.L4:
	mov	rax, QWORD PTR 16[rsp]
	mov	rcx, QWORD PTR 24[rsp]
	mov	esi, r13d
	mov	rdi, r14
	mov	edx, DWORD PTR 4[rsp]
	mov	ebx, DWORD PTR [rax+rbp*4]
	mov	rax, QWORD PTR [r14]
	mov	DWORD PTR [rax+rcx], ebx
	call	comedi_chan_range_is_bipolar@PLT
	test	rax, rax
	je	.L3
	mov	esi, ebx
	mov	rdi, r14
	call	comedi_offset_munge@PLT
	mov	ebx, eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.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	pcl726_ao_insn_write, .-pcl726_ao_insn_write
	.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_pcl726.c_pcl726_ao_insn_write.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pcl726_ao_insn_write, %function
pcl726_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	r9, r0
	sub	sp, sp, #12
	ldr	r0, [r2, #4]
	mov	r4, r2
	str	r2, [sp]
	mov	r7, r1
	mov	r8, r3
	bl	CR_CHAN
	mov	r5, r0
	ldr	r0, [r4, #4]
	bl	CR_RANGE
	ldr	r2, [r4]
	cmp	r2, #0
	ble	.L1
	lsl	r3, r5, #2
	mov	fp, r0
	mov	r6, #0
	sub	r8, r8, #4
	str	r3, [sp, #4]
	b	.L4
.L3:
	mov	r0, r5
	ldr	r10, [r9]
	bl	PCL726_AO_MSB_REG
	lsr	r3, r4, #8
	add	r1, r10, r0
	and	r0, r3, #255
	bl	outb
	mov	r0, r5
	ldr	r10, [r9]
	bl	PCL726_AO_LSB_REG
	mov	r3, r0
	and	r0, r4, #255
	add	r1, r10, r3
	bl	outb
	ldr	r3, [sp]
	ldr	r2, [r3]
	cmp	r2, r6
	ble	.L1
.L4:
	ldr	r1, [sp, #4]
	ldr	r4, [r8, #4]!
	ldr	r3, [r7]
	mov	r2, fp
	str	r4, [r3, r1]
	mov	r0, r7
	mov	r1, r5
	bl	comedi_chan_range_is_bipolar
	cmp	r0, #0
	add	r6, r6, #1
	beq	.L3
	mov	r1, r4
	mov	r0, r7
	bl	comedi_offset_munge
	mov	r4, r0
	b	.L3
.L1:
	mov	r0, r2
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
	.size	pcl726_ao_insn_write, .-pcl726_ao_insn_write
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
