	.file	"extr_ataflop.c_do_fd_request.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	do_fd_request
	.type	do_fd_request, @function
do_fd_request:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR current[rip]
	movsx	rdi, DWORD PTR [rax]
	call	DPRINT@PLT
	mov	edx, DWORD PTR fdc_busy[rip]
	test	edx, edx
	je	.L2
	lea	rbx, fdc_wait[rip]
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, rbx
	call	sleep_on@PLT
	mov	eax, DWORD PTR fdc_busy[rip]
	test	eax, eax
	jne	.L3
.L2:
	mov	edi, DWORD PTR floppy_irq[rip]
	xor	esi, esi
	xor	ebp, ebp
	mov	DWORD PTR fdc_busy[rip], 1
	call	stdma_lock@PLT
	mov	edi, DWORD PTR IRQ_MFP_FDC[rip]
	call	atari_disable_irq@PLT
	mov	rdi, rbp
	call	local_save_flags@PLT
	xor	eax, eax
	call	redo_fd_request@PLT
	mov	rdi, rbp
	call	local_irq_restore@PLT
	mov	edi, DWORD PTR IRQ_MFP_FDC[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	atari_enable_irq@PLT
	.cfi_endproc
.LFE0:
	.size	do_fd_request, .-do_fd_request
	.comm	floppy_irq,4,4
	.comm	fdc_wait,4,4
	.comm	fdc_busy,4,4
	.comm	current,8,8
	.comm	IRQ_MFP_FDC,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_ataflop.c_do_fd_request.c"
	.text
	.align	2
	.global	do_fd_request
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_fd_request, %function
do_fd_request:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L10
	push	{r4, r5, r6, lr}
	ldr	r3, [r3]
	ldr	r4, .L10+4
	ldr	r0, [r3]
	bl	DPRINT
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L2
	ldr	r5, .L10+8
.L3:
	mov	r0, r5
	bl	sleep_on
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L3
.L2:
	mov	r6, #0
	mov	r3, #1
	ldr	r2, .L10+12
	ldr	r5, .L10+16
	mov	r1, r6
	ldr	r0, [r2]
	str	r3, [r4]
	bl	stdma_lock
	ldr	r0, [r5]
	bl	atari_disable_irq
	mov	r0, r6
	bl	local_save_flags
	bl	redo_fd_request
	mov	r0, r6
	bl	local_irq_restore
	ldr	r0, [r5]
	pop	{r4, r5, r6, lr}
	b	atari_enable_irq
.L11:
	.align	2
.L10:
	.word	current
	.word	fdc_busy
	.word	fdc_wait
	.word	floppy_irq
	.word	IRQ_MFP_FDC
	.size	do_fd_request, .-do_fd_request
	.comm	floppy_irq,4,4
	.comm	fdc_wait,4,4
	.comm	fdc_busy,4,4
	.comm	current,4,4
	.comm	IRQ_MFP_FDC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
