	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fd_seek
_fd_seek:                               ## @fd_seek
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_ReqTrack@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movq	_SUDT@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_SUD@GOTPCREL(%rip), %r14
	cmpl	%eax, (%r14)
	jne	LBB0_1
## %bb.4:
	xorl	%edi, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fd_seek_done                   ## TAILCALL
LBB0_1:
	movq	_FDCSPEED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ATARIHW_PRESENT
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_dma_wd@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	xorl	%eax, %eax
	callq	_MFPDELAY
LBB0_3:
	movslq	(%rbx), %rdi
	callq	_DPRINT
	movq	_FDCREG_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	movq	(%r15), %rax
	movb	(%rax), %cl
	shll	%cl, %esi
	callq	_FDC_WRITE
	movl	$25, %edi
	callq	_udelay
	movq	_fd_seek_done@GOTPCREL(%rip), %rdi
	callq	_SET_IRQ_HANDLER
	movq	_FDCREG_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_FDCCMD_SEEK@GOTPCREL(%rip), %rax
	movl	4(%r14), %esi
	orl	(%rax), %esi
	callq	_FDC_WRITE
	movq	_MotorOn@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	xorl	%eax, %eax
	callq	_set_head_settle_flag
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_start_timeout                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SUD,8,2                        ## @SUD
	.comm	_ReqTrack,4,2                   ## @ReqTrack
	.comm	_SUDT,8,3                       ## @SUDT
	.comm	_FDCSPEED,4,2                   ## @FDCSPEED
	.comm	_dma_wd,8,3                     ## @dma_wd
	.comm	_FDCREG_DATA,4,2                ## @FDCREG_DATA
	.comm	_FDCREG_CMD,4,2                 ## @FDCREG_CMD
	.comm	_FDCCMD_SEEK,4,2                ## @FDCCMD_SEEK
	.comm	_MotorOn,4,2                    ## @MotorOn
	.no_dead_strip	_fd_seek
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fd_seek
_fd_seek:                               ; @fd_seek
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x19, _SUD@GOTPAGE
Lloh1:
	ldr	x19, [x19, _SUD@GOTPAGEOFF]
	ldr	w8, [x19]
Lloh2:
	adrp	x20, _ReqTrack@GOTPAGE
Lloh3:
	ldr	x20, [x20, _ReqTrack@GOTPAGEOFF]
	ldr	w9, [x20]
Lloh4:
	adrp	x21, _SUDT@GOTPAGE
Lloh5:
	ldr	x21, [x21, _SUDT@GOTPAGEOFF]
	ldr	x10, [x21]
	ldr	w10, [x10]
	lsl	w9, w9, w10
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_fd_seek_done
LBB0_2:
Lloh6:
	adrp	x8, _FDCSPEED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FDCSPEED@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_ATARIHW_PRESENT
	cbz	x0, LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _dma_wd@GOTPAGE
Lloh10:
	ldr	x8, [x8, _dma_wd@GOTPAGEOFF]
Lloh11:
	str	xzr, [x8]
	bl	_MFPDELAY
LBB0_4:
	ldrsw	x0, [x20]
	bl	_DPRINT
Lloh12:
	adrp	x8, _FDCREG_DATA@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FDCREG_DATA@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	w8, [x20]
	ldr	x9, [x21]
	ldr	w9, [x9]
	lsl	w1, w8, w9
	bl	_FDC_WRITE
	mov	w0, #25
	bl	_udelay
Lloh15:
	adrp	x0, _fd_seek_done@GOTPAGE
Lloh16:
	ldr	x0, [x0, _fd_seek_done@GOTPAGEOFF]
	bl	_SET_IRQ_HANDLER
Lloh17:
	adrp	x8, _FDCREG_CMD@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FDCREG_CMD@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x8, _FDCCMD_SEEK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _FDCCMD_SEEK@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w1, w9, w8
	bl	_FDC_WRITE
Lloh23:
	adrp	x8, _MotorOn@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MotorOn@GOTPAGEOFF]
	mov	w9, #1
Lloh25:
	str	w9, [x8]
	bl	_set_head_settle_flag
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_start_timeout
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_SUD,8,2                        ; @SUD
	.comm	_ReqTrack,4,2                   ; @ReqTrack
	.comm	_SUDT,8,3                       ; @SUDT
	.comm	_FDCSPEED,4,2                   ; @FDCSPEED
	.comm	_dma_wd,8,3                     ; @dma_wd
	.comm	_FDCREG_DATA,4,2                ; @FDCREG_DATA
	.comm	_FDCREG_CMD,4,2                 ; @FDCREG_CMD
	.comm	_FDCCMD_SEEK,4,2                ; @FDCCMD_SEEK
	.comm	_MotorOn,4,2                    ; @MotorOn
	.no_dead_strip	_fd_seek
.subsections_via_symbols
