	.file	"extr_ataflop.c_fd_readtrack_check.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"fd_readtrack_check(): done\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"fd_readtrack_check(): not yet finished\n"
	.text
	.p2align 4
	.type	fd_readtrack_check, @function
fd_readtrack_check:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xor	edi, edi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	lea	r12, dma_wd[rip]
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	xor	ebp, ebp
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	local_irq_save@PLT
	cmp	QWORD PTR MultReadInProgress[rip], 0
	jne	.L2
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L14:
	mov	ebx, DWORD PTR st_dma_ext_dmahi[rip]
	xor	eax, eax
	sal	ebx, 16
	or	ebx, r13d
	movsx	rbx, ebx
	call	MFPDELAY@PLT
	cmp	rbp, rbx
	je	.L13
.L7:
	mov	rbp, rbx
.L2:
	xor	eax, eax
	movzx	r13d, BYTE PTR [r12]
	call	MFPDELAY@PLT
	mov	eax, DWORD PTR dma_wd[rip+4]
	sal	eax, 8
	movzx	ebx, ax
	xor	eax, eax
	call	MFPDELAY@PLT
	mov	edi, DWORD PTR EXTD_DMA[rip]
	or	r13d, ebx
	call	ATARIHW_PRESENT@PLT
	test	rax, rax
	jne	.L14
	mov	ebx, DWORD PTR dma_wd[rip+8]
	xor	eax, eax
	sal	ebx, 16
	and	ebx, 16711680
	or	ebx, r13d
	movsx	rbx, ebx
	call	MFPDELAY@PLT
	cmp	rbp, rbx
	jne	.L7
.L13:
	mov	rax, QWORD PTR SUDT[rip]
	xor	edi, edi
	mov	eax, DWORD PTR [rax]
	sal	eax, 9
	add	eax, DWORD PTR PhysTrackBuffer[rip]
	cdqe
	cmp	rax, rbp
	ja	.L5
	call	SET_IRQ_HANDLER@PLT
	xor	edi, edi
	mov	QWORD PTR MultReadInProgress[rip], 0
	call	local_irq_restore@PLT
	lea	rdi, .LC0[rip]
	call	DPRINT@PLT
	mov	esi, DWORD PTR FDCCMD_FORCI[rip]
	mov	edi, DWORD PTR FDCREG_CMD[rip]
	call	FDC_WRITE@PLT
	mov	edi, 25
	call	udelay@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	edi, edi
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	fd_rwsec_done1@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	call	local_irq_restore@PLT
	lea	rdi, .LC1[rip]
	call	DPRINT@PLT
	movsx	rsi, DWORD PTR HZ[rip]
	lea	rdi, readtrack_timer[rip]
	mov	rax, rsi
	imul	rsi, rsi, 1374389535
	sar	eax, 31
	sar	rsi, 36
	sub	esi, eax
	movsx	rsi, esi
	add	rsi, QWORD PTR jiffies[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	mod_timer@PLT
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	add	rsp, 8
	.cfi_def_cfa_offset 40
	xor	edi, edi
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	local_irq_restore@PLT
	.cfi_endproc
.LFE0:
	.size	fd_readtrack_check, .-fd_readtrack_check
	.comm	st_dma_ext_dmahi,4,4
	.comm	readtrack_timer,4,4
	.comm	jiffies,8,8
	.comm	dma_wd,12,8
	.comm	SUDT,8,8
	.comm	PhysTrackBuffer,4,4
	.comm	MultReadInProgress,8,8
	.comm	HZ,4,4
	.comm	FDCREG_CMD,4,4
	.comm	FDCCMD_FORCI,4,4
	.comm	EXTD_DMA,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_fd_readtrack_check.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"fd_readtrack_check(): done\012\000"
	.align	2
.LC1:
	.ascii	"fd_readtrack_check(): not yet finished\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fd_readtrack_check, %function
fd_readtrack_check:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r10, .L11
	mov	r0, #0
	bl	local_irq_save
	ldr	r3, [r10]
	cmp	r3, #0
	beq	.L10
	mov	r6, #0
	ldr	r5, .L11+4
	ldr	r8, .L11+8
	ldr	r7, .L11+12
	ldr	r9, .L11+16
	b	.L2
.L7:
	mov	r6, r4
.L2:
	ldrb	fp, [r5]	@ zero_extendqisi2
	bl	MFPDELAY
	ldr	r4, [r5, #4]
	bl	MFPDELAY
	ldr	r0, [r8]
	bl	ATARIHW_PRESENT
	cmp	r0, #0
	ldreq	r3, [r5, #8]
	ldrne	r3, [r9]
	lsleq	r3, r3, #16
	and	r4, r7, r4, lsl #8
	orr	r4, r4, fp
	andeq	r3, r3, #16711680
	orrne	r4, r4, r3, lsl #16
	orreq	r4, r3, r4
	bl	MFPDELAY
	cmp	r6, r4
	bne	.L7
	ldr	r2, .L11+20
	ldr	r3, .L11+24
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r2, [r2]
	add	r3, r3, r2, lsl #9
	cmp	r3, r6
	bhi	.L5
	mov	r4, #0
	mov	r0, r4
	bl	SET_IRQ_HANDLER
	mov	r0, r4
	str	r4, [r10]
	bl	local_irq_restore
	ldr	r0, .L11+28
	bl	DPRINT
	ldr	r3, .L11+32
	ldr	r2, .L11+36
	ldr	r0, [r3]
	ldr	r1, [r2]
	bl	FDC_WRITE
	mov	r0, #25
	bl	udelay
	mov	r0, r4
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	fd_rwsec_done1
.L5:
	mov	r0, #0
	bl	local_irq_restore
	ldr	r0, .L11+40
	bl	DPRINT
	ldr	r3, .L11+44
	ldr	r2, .L11+48
	ldr	r3, [r3]
	ldr	r1, .L11+52
	smull	r0, r2, r3, r2
	ldr	r1, [r1]
	asr	r3, r3, #31
	rsb	r3, r3, r2, asr #4
	add	r1, r3, r1
	ldr	r0, .L11+56
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	mod_timer
.L10:
	mov	r0, #0
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	local_irq_restore
.L12:
	.align	2
.L11:
	.word	MultReadInProgress
	.word	dma_wd
	.word	EXTD_DMA
	.word	65535
	.word	st_dma_ext_dmahi
	.word	SUDT
	.word	PhysTrackBuffer
	.word	.LC0
	.word	FDCREG_CMD
	.word	FDCCMD_FORCI
	.word	.LC1
	.word	HZ
	.word	1374389535
	.word	jiffies
	.word	readtrack_timer
	.size	fd_readtrack_check, .-fd_readtrack_check
	.comm	st_dma_ext_dmahi,4,4
	.comm	readtrack_timer,4,4
	.comm	jiffies,4,4
	.comm	dma_wd,12,4
	.comm	SUDT,4,4
	.comm	PhysTrackBuffer,4,4
	.comm	MultReadInProgress,4,4
	.comm	HZ,4,4
	.comm	FDCREG_CMD,4,4
	.comm	FDCCMD_FORCI,4,4
	.comm	EXTD_DMA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
