	.file	"extr_pcl818.c_pcl818_ao_insn_write.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pcl818_ao_insn_write, @function
pcl818_ao_insn_write:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rcx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	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
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	edi, DWORD PTR 4[rdx]
	call	CR_CHAN@PLT
	mov	edx, DWORD PTR 0[rbp]
	test	edx, edx
	jle	.L6
	movsx	r14, eax
	mov	r13d, eax
	xor	r12d, r12d
	sal	r14, 2
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L10:
	mov	edi, DWORD PTR [r15]
	add	rsi, QWORD PTR PCL718_DA2_LO[rip]
	sal	edi, 4
	movzx	edi, dil
	call	outb@PLT
	mov	rax, QWORD PTR [rbx]
	mov	rsi, QWORD PTR PCL718_DA2_HI[rip]
.L4:
	mov	edi, DWORD PTR [r15]
	add	rsi, rax
	add	r12d, 1
	add	r15, 4
	shr	edi, 4
	movzx	edi, dil
	call	outb@PLT
	cmp	DWORD PTR 0[rbp], r12d
	jle	.L1
.L5:
	mov	rax, QWORD PTR devpriv[rip]
	mov	edx, DWORD PTR [r15]
	mov	rsi, QWORD PTR [rbx]
	mov	rax, QWORD PTR [rax]
	mov	DWORD PTR [rax+r14], edx
	test	r13d, r13d
	jne	.L10
	mov	edi, DWORD PTR [r15]
	add	rsi, QWORD PTR PCL818_DA_LO[rip]
	sal	edi, 4
	movzx	edi, dil
	call	outb@PLT
	mov	rax, QWORD PTR [rbx]
	mov	rsi, QWORD PTR PCL818_DA_HI[rip]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	xor	r12d, r12d
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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	pcl818_ao_insn_write, .-pcl818_ao_insn_write
	.comm	devpriv,8,8
	.comm	PCL818_DA_LO,8,8
	.comm	PCL818_DA_HI,8,8
	.comm	PCL718_DA2_LO,8,8
	.comm	PCL718_DA2_HI,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_pcl818.c_pcl818_ao_insn_write.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pcl818_ao_insn_write, %function
pcl818_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	r7, r2
	mov	r6, r0
	sub	sp, sp, #12
	ldr	r0, [r2, #4]
	mov	r4, r3
	bl	CR_CHAN
	ldr	r3, [r7]
	cmp	r3, #0
	ble	.L6
	lsl	r3, r0, #2
	mov	r8, r0
	mov	r5, #0
	ldr	r9, .L11
	ldr	fp, .L11+4
	ldr	r10, .L11+8
	sub	r4, r4, #4
	str	r3, [sp, #4]
	b	.L5
.L10:
	ldr	r1, [r10]
	add	r1, r2, r1
	bl	outb
	ldr	r0, [r4]
	ldr	r3, .L11+12
	lsr	r0, r0, #4
	ldr	r2, [r6]
	ldr	r1, [r3]
	and	r0, r0, #255
.L4:
	add	r1, r1, r2
	bl	outb
	ldr	r2, [r7]
	add	r5, r5, #1
	cmp	r2, r5
	ble	.L1
.L5:
	ldr	r2, [r9]
	ldr	r1, [r4, #4]!
	ldr	r2, [r2]
	ldr	r3, [sp, #4]
	cmp	r8, #0
	str	r1, [r2, r3]
	ldr	r0, [r4]
	ldr	r2, [r6]
	lsl	r0, r0, #4
	and	r0, r0, #255
	bne	.L10
	ldr	r1, [fp]
	add	r1, r2, r1
	bl	outb
	ldr	r0, [r4]
	ldr	r3, .L11+16
	lsr	r0, r0, #4
	ldr	r2, [r6]
	ldr	r1, [r3]
	and	r0, r0, #255
	b	.L4
.L6:
	mov	r5, #0
.L1:
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L12:
	.align	2
.L11:
	.word	devpriv
	.word	PCL818_DA_LO
	.word	PCL718_DA2_LO
	.word	PCL718_DA2_HI
	.word	PCL818_DA_HI
	.size	pcl818_ao_insn_write, .-pcl818_ao_insn_write
	.comm	devpriv,4,4
	.comm	PCL818_DA_LO,4,4
	.comm	PCL818_DA_HI,4,4
	.comm	PCL718_DA2_LO,4,4
	.comm	PCL718_DA2_HI,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
