	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function redo_fd_request
_redo_fd_request:                       ## @redo_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_floppy_queue@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_blk_fetch_request
	testq	%rax, %rax
	je	LBB0_18
## %bb.1:
	movq	%rax, %rbx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_floppy_queue@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_blk_fetch_request
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_18
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##       Child Loop BB0_6 Depth 3
	movq	8(%rbx), %rax
	movq	(%rax), %r15
	movq	%r15, %rcx
	movq	_unit@GOTPCREL(%rip), %rax
	subq	(%rax), %rcx
	sarq	$3, %rcx
	movabsq	$-3689348814741910323, %rax     ## imm = 0xCCCCCCCCCCCCCCCD
	imulq	%rax, %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movslq	%ecx, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	xorl	%esi, %esi
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %esi
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	%rbx, %rdi
	callq	___blk_end_request_cur
	testq	%rax, %rax
	je	LBB0_2
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_6 Depth 3
	movq	%rbx, %rdi
	callq	_blk_rq_cur_sectors
	xorl	%esi, %esi
	testl	%eax, %eax
	je	LBB0_17
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=3
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	$512, %edx                      ## imm = 0x200
	callq	_memcpy
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=3
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	incq	%r12
	movq	%rbx, %rdi
	callq	_blk_rq_cur_sectors
	movl	%eax, %eax
	addq	$512, -64(%rbp)                 ## 8-byte Folded Spill
                                        ## imm = 0x200
	cmpq	%rax, %r12
	jae	LBB0_16
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	%rbx, %rdi
	callq	_blk_rq_pos
	movl	%eax, %eax
	addq	%r12, %rax
	cmpl	(%r15), %eax
	jg	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=3
	movq	24(%r15), %rcx
	movq	32(%r15), %rdx
	movl	(%rcx), %ecx
	imull	(%rdx), %ecx
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %r13d
	movq	%rbx, %r14
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
                                        ## kill: def $ebx killed $ebx killed $rbx def $rbx
	andl	$-512, %ebx                     ## imm = 0xFE00
	addq	(%r14), %rbx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	movl	%eax, %esi
	callq	_get_track
	cmpl	$-1, %eax
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=3
	movq	%r14, %rdi
	callq	_rq_data_dir
	shll	$9, %r13d
	addq	8(%r15), %r13
	movq	_READ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=3
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	$512, %edx                      ## imm = 0x200
	callq	_memcpy
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_fd_motor_on
	testl	%eax, %eax
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=3
	callq	_local_irq_save
	movl	$1, 16(%r15)
	movq	_flush_track_timer@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	-72(%rbp), %rdi                 ## 8-byte Folded Reload
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	incq	%rsi
	callq	_mod_timer
	callq	_local_irq_restore
	jmp	LBB0_15
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=2
	xorl	%esi, %esi
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %esi
	movq	%r14, %rbx
	jmp	LBB0_17
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=2
	xorl	%esi, %esi
	jmp	LBB0_17
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=2
	xorl	%esi, %esi
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %esi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_17
LBB0_18:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_floppy_queue,4,2               ## @floppy_queue
	.comm	_unit,8,3                       ## @unit
	.comm	_EIO,4,2                        ## @EIO
	.comm	_READ,8,3                       ## @READ
	.comm	_flush_track_timer,8,3          ## @flush_track_timer
	.comm	_jiffies,8,3                    ## @jiffies
	.no_dead_strip	_redo_fd_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function redo_fd_request
_redo_fd_request:                       ; @redo_fd_request
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, _floppy_queue@GOTPAGE
Lloh1:
	ldr	x8, [x8, _floppy_queue@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_blk_fetch_request
	cbz	x0, LBB0_16
; %bb.1:
	mov	x19, x0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
Lloh3:
	adrp	x8, _floppy_queue@GOTPAGE
Lloh4:
	ldr	x8, [x8, _floppy_queue@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_blk_fetch_request
	mov	x19, x0
	cbz	x0, LBB0_16
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;       Child Loop BB0_10 Depth 3
	ldr	x8, [x19, #8]
	ldr	x27, [x8]
Lloh6:
	adrp	x8, _unit@GOTPAGE
Lloh7:
	ldr	x8, [x8, _unit@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	sub	x8, x27, x8
	asr	x8, x8, #3
	mov	x9, #-3689348814741910324
	movk	x9, #52429
	mul	x20, x8, x9
	sxtw	x25, w20
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=2
	mov	w1, #0
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x19
	bl	___blk_end_request_cur
	cbz	x0, LBB0_2
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_10 Depth 3
	mov	x0, x19
	bl	_blk_rq_cur_sectors
	cbz	w0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x28, #0
	mov	x24, #0
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=3
	mov	x0, x21
	mov	w2, #512
	bl	_memcpy
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=3
	add	x24, x24, #1
	mov	x0, x19
	bl	_blk_rq_cur_sectors
	add	x28, x28, #512
	cmp	x24, w0, uxtw
	b.hs	LBB0_4
LBB0_10:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_6 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	mov	x0, x19
	bl	_blk_rq_pos
	add	x23, x24, w0, uxtw
	ldr	w8, [x27]
	cmp	w23, w8
	b.gt	LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=3
	ldp	x9, x8, [x27, #24]
	ldr	w8, [x8]
	ldr	w9, [x9]
	mul	w26, w9, w8
	udiv	w22, w23, w26
	ldr	x21, [x19]
	mov	x0, x20
	mov	x1, x22
	bl	_get_track
	cmn	w0, #1
	b.eq	LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=3
	and	x8, x28, #0xfffffe00
	add	x21, x21, x8
	msub	w22, w22, w26, w23
	mov	x0, x19
	bl	_rq_data_dir
Lloh9:
	adrp	x8, _READ@GOTPAGE
Lloh10:
	ldr	x8, [x8, _READ@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	x9, [x27, #8]
	lsl	w10, w22, #9
	add	x1, x9, x10
	cmp	x0, x8
	b.eq	LBB0_8
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=3
	mov	x0, x1
	mov	x1, x21
	mov	w2, #512
	bl	_memcpy
	mov	x0, x20
	bl	_fd_motor_on
	cbz	w0, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=3
	bl	_local_irq_save
	mov	w8, #1
	str	w8, [x27, #16]
Lloh12:
	adrp	x8, _flush_track_timer@GOTPAGE
Lloh13:
	ldr	x8, [x8, _flush_track_timer@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	add	x0, x8, x25
Lloh15:
	adrp	x8, _jiffies@GOTPAGE
Lloh16:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	add	x1, x8, #1
	bl	_mod_timer
	bl	_local_irq_restore
	b	LBB0_9
LBB0_15:                                ;   in Loop: Header=BB0_6 Depth=2
Lloh18:
	adrp	x8, _EIO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w1, w8
	b	LBB0_5
LBB0_16:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_floppy_queue,4,2               ; @floppy_queue
	.comm	_unit,8,3                       ; @unit
	.comm	_EIO,4,2                        ; @EIO
	.comm	_READ,8,3                       ; @READ
	.comm	_flush_track_timer,8,3          ; @flush_track_timer
	.comm	_jiffies,8,3                    ; @jiffies
	.no_dead_strip	_redo_fd_request
.subsections_via_symbols
