	.file	"extr_fdc.c_fdc_out.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"output ready timeout\n"
.LC1:
	.string	"ready for input in output\n"
	.text
	.p2align 4
	.type	fdc_out, @function
fdc_out:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	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
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	eax, DWORD PTR FDSTS_TIMEOUT[rip]
	test	eax, eax
	jle	.L2
	mov	r13d, esi
	mov	ebx, 1
	xor	ebp, ebp
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L16:
	cmp	ecx, eax
	je	.L15
	add	ebx, ebx
	mov	edi, ebx
	add	ebp, ebx
	call	DELAY@PLT
	cmp	DWORD PTR FDSTS_TIMEOUT[rip], ebp
	jle	.L2
.L6:
	mov	rdi, r12
	call	fdsts_rd@PLT
	mov	edx, DWORD PTR NE7_RQM[rip]
	mov	ecx, DWORD PTR NE7_DIO[rip]
	or	ecx, edx
	and	eax, ecx
	cmp	edx, eax
	jne	.L16
	mov	esi, r13d
	mov	rdi, r12
	call	fddata_wr@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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
.L2:
	.cfi_restore_state
	cmp	QWORD PTR bootverbose[rip], 0
	lea	rsi, .LC0[rip]
	mov	eax, 0
	cmove	rsi, rax
.L13:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, r12
	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
	jmp	fdc_err@PLT
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	lea	rsi, .LC1[rip]
	jmp	.L13
	.cfi_endproc
.LFE0:
	.size	fdc_out, .-fdc_out
	.comm	bootverbose,8,8
	.comm	NE7_RQM,4,4
	.comm	NE7_DIO,4,4
	.comm	FDSTS_TIMEOUT,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_fdc.c_fdc_out.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"output ready timeout\012\000"
	.align	2
.LC1:
	.ascii	"ready for input in output\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fdc_out, %function
fdc_out:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r6, .L16
	mov	r5, r0
	ldr	r3, [r6]
	cmp	r3, #0
	ble	.L2
	mov	r9, r1
	mov	r10, #1
	mov	r4, #0
	ldr	r8, .L16+4
	ldr	r7, .L16+8
	b	.L6
.L15:
	cmp	r3, r0
	beq	.L14
	mov	r0, r10
	bl	DELAY
	ldr	r3, [r6]
	cmp	r3, r4
	ble	.L2
.L6:
	mov	r0, r5
	bl	fdsts_rd
	ldr	r2, [r8]
	ldr	r3, [r7]
	lsl	r10, r10, #1
	orr	r3, r2, r3
	and	r0, r0, r3
	cmp	r2, r0
	add	r4, r4, r10
	bne	.L15
	mov	r1, r9
	mov	r0, r5
	bl	fddata_wr
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	ldr	r3, .L16+12
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, [r3]
	ldr	r1, .L16+16
	cmp	r3, #0
	moveq	r1, #0
	b	fdc_err
.L14:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r1, .L16+20
	b	fdc_err
.L17:
	.align	2
.L16:
	.word	FDSTS_TIMEOUT
	.word	NE7_RQM
	.word	NE7_DIO
	.word	bootverbose
	.word	.LC0
	.word	.LC1
	.size	fdc_out, .-fdc_out
	.comm	bootverbose,4,4
	.comm	NE7_RQM,4,4
	.comm	NE7_DIO,4,4
	.comm	FDSTS_TIMEOUT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
