	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fd_readtrack_check
_fd_readtrack_check:                    ## @fd_readtrack_check
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_local_irq_save
	movq	_MultReadInProgress@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.1:
	movq	_dma_wd@GOTPCREL(%rip), %r15
	movq	_EXTD_DMA@GOTPCREL(%rip), %r12
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%r15), %eax
	movzbl	%al, %eax
	shlq	$16, %rax
	movl	%r14d, %ebx
	orq	%rax, %rbx
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_MFPDELAY
	cmpq	%r13, %rbx
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %r13
	movzbl	(%r15), %ebx
	xorl	%eax, %eax
	callq	_MFPDELAY
	movl	4(%r15), %eax
	shll	$8, %eax
	movzwl	%ax, %r14d
	orq	%rbx, %r14
	xorl	%eax, %eax
	callq	_MFPDELAY
	movl	(%r12), %edi
	callq	_ATARIHW_PRESENT
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_st_dma_ext_dmahi@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$16, %eax
	movslq	%eax, %rbx
	orq	%r14, %rbx
	jmp	LBB0_5
LBB0_6:
	movq	_PhysTrackBuffer@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	_SUDT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	(%rcx), %rcx
	shlq	$9, %rcx
	addq	%rax, %rcx
	cmpq	%rcx, %r13
	jae	LBB0_9
## %bb.7:
	callq	_local_irq_restore
	leaq	L_.str.1(%rip), %rdi
	callq	_DPRINT
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	imulq	$1374389535, %rcx, %rcx         ## imm = 0x51EB851F
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$36, %rcx
	addl	%edx, %ecx
	movslq	%ecx, %rsi
	addq	(%rax), %rsi
	movq	_readtrack_timer@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mod_timer                      ## TAILCALL
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_local_irq_restore              ## TAILCALL
LBB0_9:
	xorl	%edi, %edi
	callq	_SET_IRQ_HANDLER
	movq	_MultReadInProgress@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	callq	_local_irq_restore
	leaq	L_.str(%rip), %rdi
	callq	_DPRINT
	movq	_FDCREG_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_FDCCMD_FORCI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_FDC_WRITE
	movl	$25, %edi
	callq	_udelay
	xorl	%edi, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fd_rwsec_done1                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MultReadInProgress,8,3         ## @MultReadInProgress
	.comm	_dma_wd,12,2                    ## @dma_wd
	.comm	_EXTD_DMA,4,2                   ## @EXTD_DMA
	.comm	_st_dma_ext_dmahi,4,2           ## @st_dma_ext_dmahi
	.comm	_PhysTrackBuffer,4,2            ## @PhysTrackBuffer
	.comm	_SUDT,8,3                       ## @SUDT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fd_readtrack_check(): done\n"

	.comm	_FDCREG_CMD,4,2                 ## @FDCREG_CMD
	.comm	_FDCCMD_FORCI,4,2               ## @FDCCMD_FORCI
L_.str.1:                               ## @.str.1
	.asciz	"fd_readtrack_check(): not yet finished\n"

	.comm	_readtrack_timer,4,2            ## @readtrack_timer
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.no_dead_strip	_fd_readtrack_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fd_readtrack_check
_fd_readtrack_check:                    ; @fd_readtrack_check
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	bl	_local_irq_save
Lloh0:
	adrp	x19, _MultReadInProgress@GOTPAGE
Lloh1:
	ldr	x19, [x19, _MultReadInProgress@GOTPAGEOFF]
	ldr	x8, [x19]
	cbz	x8, LBB0_8
; %bb.1:
	mov	x24, #0
Lloh2:
	adrp	x21, _dma_wd@GOTPAGE
Lloh3:
	ldr	x21, [x21, _dma_wd@GOTPAGEOFF]
Lloh4:
	adrp	x22, _EXTD_DMA@GOTPAGE
Lloh5:
	ldr	x22, [x22, _EXTD_DMA@GOTPAGEOFF]
Lloh6:
	adrp	x23, _st_dma_ext_dmahi@GOTPAGE
Lloh7:
	ldr	x23, [x23, _st_dma_ext_dmahi@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x21, #8]
	lsl	w8, w8, #16
	and	x8, x8, #0xff0000
	mov	w9, w24
	orr	x24, x8, x9
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_MFPDELAY
	cmp	x24, x20
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x20, x24
	ldrb	w24, [x21]
	bl	_MFPDELAY
	ldr	w8, [x21, #4]
	lsl	w8, w8, #8
	and	x8, x8, #0xff00
	orr	x24, x8, x24
	bl	_MFPDELAY
	ldr	w0, [x22]
	bl	_ATARIHW_PRESENT
	cbz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x23]
	lsl	w8, w8, #16
	sxtw	x8, w8
	orr	x24, x8, x24
	b	LBB0_3
LBB0_6:
Lloh8:
	adrp	x8, _PhysTrackBuffer@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PhysTrackBuffer@GOTPAGEOFF]
Lloh10:
	ldrsw	x8, [x8]
Lloh11:
	adrp	x9, _SUDT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SUDT@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	ldrsw	x9, [x9]
	add	x8, x8, x9, lsl #9
	cmp	x20, x8
	b.hs	LBB0_9
; %bb.7:
	bl	_local_irq_restore
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DPRINT
Lloh16:
	adrp	x8, _jiffies@GOTPAGE
Lloh17:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh18:
	adrp	x9, _HZ@GOTPAGE
Lloh19:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
Lloh21:
	ldrsw	x9, [x9]
	mov	w10, #34079
	movk	w10, #20971, lsl #16
	mul	x9, x9, x10
	lsr	x10, x9, #63
	asr	x9, x9, #36
	add	w9, w9, w10
	add	x1, x8, w9, sxtw
Lloh22:
	adrp	x0, _readtrack_timer@GOTPAGE
Lloh23:
	ldr	x0, [x0, _readtrack_timer@GOTPAGEOFF]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_mod_timer
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_local_irq_restore
LBB0_9:
	mov	x0, #0
	bl	_SET_IRQ_HANDLER
	str	xzr, [x19]
	bl	_local_irq_restore
Lloh24:
	adrp	x0, l_.str@PAGE
Lloh25:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPRINT
Lloh26:
	adrp	x8, _FDCREG_CMD@GOTPAGE
Lloh27:
	ldr	x8, [x8, _FDCREG_CMD@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x8, _FDCCMD_FORCI@GOTPAGE
Lloh30:
	ldr	x8, [x8, _FDCCMD_FORCI@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	bl	_FDC_WRITE
	mov	w0, #25
	bl	_udelay
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_fd_rwsec_done1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh20
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_MultReadInProgress,8,3         ; @MultReadInProgress
	.comm	_dma_wd,12,2                    ; @dma_wd
	.comm	_EXTD_DMA,4,2                   ; @EXTD_DMA
	.comm	_st_dma_ext_dmahi,4,2           ; @st_dma_ext_dmahi
	.comm	_PhysTrackBuffer,4,2            ; @PhysTrackBuffer
	.comm	_SUDT,8,3                       ; @SUDT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fd_readtrack_check(): done\n"

	.comm	_FDCREG_CMD,4,2                 ; @FDCREG_CMD
	.comm	_FDCCMD_FORCI,4,2               ; @FDCCMD_FORCI
l_.str.1:                               ; @.str.1
	.asciz	"fd_readtrack_check(): not yet finished\n"

	.comm	_readtrack_timer,4,2            ; @readtrack_timer
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.no_dead_strip	_fd_readtrack_check
.subsections_via_symbols
