	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_fd_request                  ## -- Begin function do_fd_request
	.p2align	4, 0x90
_do_fd_request:                         ## @do_fd_request
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	(%rax), %rdi
	callq	_DPRINT
	movq	_fdc_busy@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	je	LBB0_3
## %bb.1:
	movq	_fdc_wait@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_sleep_on
	cmpl	$0, (%r14)
	jne	LBB0_2
LBB0_3:
	movl	$1, (%r14)
	movq	_floppy_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_stdma_lock
	movq	_IRQ_MFP_FDC@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_atari_disable_irq
	callq	_local_save_flags
	xorl	%eax, %eax
	callq	_redo_fd_request
	callq	_local_irq_restore
	movl	(%rbx), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_atari_enable_irq               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_current,8,3                    ## @current
	.comm	_fdc_busy,4,2                   ## @fdc_busy
	.comm	_fdc_wait,4,2                   ## @fdc_wait
	.comm	_floppy_irq,4,2                 ## @floppy_irq
	.comm	_IRQ_MFP_FDC,4,2                ## @IRQ_MFP_FDC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_fd_request                  ; -- Begin function do_fd_request
	.p2align	2
_do_fd_request:                         ; @do_fd_request
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _current@GOTPAGE
Lloh1:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldrsw	x0, [x8]
	bl	_DPRINT
Lloh3:
	adrp	x20, _fdc_busy@GOTPAGE
Lloh4:
	ldr	x20, [x20, _fdc_busy@GOTPAGEOFF]
	ldr	w8, [x20]
	cbz	w8, LBB0_3
; %bb.1:
Lloh5:
	adrp	x19, _fdc_wait@GOTPAGE
Lloh6:
	ldr	x19, [x19, _fdc_wait@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_sleep_on
	ldr	w8, [x20]
	cbnz	w8, LBB0_2
LBB0_3:
	mov	w8, #1
	str	w8, [x20]
Lloh7:
	adrp	x8, _floppy_irq@GOTPAGE
Lloh8:
	ldr	x8, [x8, _floppy_irq@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_stdma_lock
Lloh10:
	adrp	x19, _IRQ_MFP_FDC@GOTPAGE
Lloh11:
	ldr	x19, [x19, _IRQ_MFP_FDC@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_atari_disable_irq
	bl	_local_save_flags
	bl	_redo_fd_request
	bl	_local_irq_restore
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_atari_enable_irq
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_current,8,3                    ; @current
	.comm	_fdc_busy,4,2                   ; @fdc_busy
	.comm	_fdc_wait,4,2                   ; @fdc_wait
	.comm	_floppy_irq,4,2                 ; @floppy_irq
	.comm	_IRQ_MFP_FDC,4,2                ; @IRQ_MFP_FDC
.subsections_via_symbols
