	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function finish_fdc
_finish_fdc:                            ## @finish_fdc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_NeedSeek@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_DPRINT
	movq	_FDCREG_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SUD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_FDC_WRITE
	movq	_finish_fdc_done@GOTPCREL(%rip), %rdi
	callq	_SET_IRQ_HANDLER
	movq	_FDCREG_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_FDCCMD_SEEK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_FDC_WRITE
	movq	_MotorOn@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	xorl	%eax, %eax
	popq	%rbp
	jmp	_start_timeout                  ## TAILCALL
LBB0_1:
	xorl	%edi, %edi
	popq	%rbp
	jmp	_finish_fdc_done                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NeedSeek,4,2                   ## @NeedSeek
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"finish_fdc: dummy seek started\n"

	.comm	_FDCREG_DATA,4,2                ## @FDCREG_DATA
	.comm	_SUD,4,2                        ## @SUD
	.comm	_FDCREG_CMD,4,2                 ## @FDCREG_CMD
	.comm	_FDCCMD_SEEK,4,2                ## @FDCCMD_SEEK
	.comm	_MotorOn,4,2                    ## @MotorOn
	.no_dead_strip	_finish_fdc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function finish_fdc
_finish_fdc:                            ; @finish_fdc
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _NeedSeek@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NeedSeek@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPRINT
Lloh5:
	adrp	x8, _FDCREG_DATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FDCREG_DATA@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _SUD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SUD@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_FDC_WRITE
Lloh11:
	adrp	x0, _finish_fdc_done@GOTPAGE
Lloh12:
	ldr	x0, [x0, _finish_fdc_done@GOTPAGEOFF]
	bl	_SET_IRQ_HANDLER
Lloh13:
	adrp	x8, _FDCREG_CMD@GOTPAGE
Lloh14:
	ldr	x8, [x8, _FDCREG_CMD@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x8, _FDCCMD_SEEK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _FDCCMD_SEEK@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	bl	_FDC_WRITE
Lloh19:
	adrp	x8, _MotorOn@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MotorOn@GOTPAGEOFF]
	mov	w9, #1
Lloh21:
	str	w9, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_start_timeout
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_finish_fdc_done
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_NeedSeek,4,2                   ; @NeedSeek
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"finish_fdc: dummy seek started\n"

	.comm	_FDCREG_DATA,4,2                ; @FDCREG_DATA
	.comm	_SUD,4,2                        ; @SUD
	.comm	_FDCREG_CMD,4,2                 ; @FDCREG_CMD
	.comm	_FDCCMD_SEEK,4,2                ; @FDCCMD_SEEK
	.comm	_MotorOn,4,2                    ; @MotorOn
	.no_dead_strip	_finish_fdc
.subsections_via_symbols
