	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ide_floppy_issue_pc
_ide_floppy_issue_pc:                   ## @ide_floppy_issue_pc
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	cmpq	$0, 8(%rdi)
	jne	LBB0_3
## %bb.1:
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	_GPCMD_REQUEST_SENSE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	%r14, 8(%rbx)
LBB0_3:
	movq	32(%rbx), %r12
	movq	%r14, 24(%rbx)
	movq	8(%r14), %rdx
	movq	_IDEFLOPPY_MAX_PC_RETRIES@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jle	LBB0_7
## %bb.4:
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	callq	_blk_rq_bytes
	movl	%eax, %r15d
	movq	_PC_FLAG_SUPPRESS_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%r14)
	jne	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_ide_floppy_report_error
LBB0_6:
	movq	_IDE_DRV_ERROR_GENERAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r14)
	movq	$0, 8(%rbx)
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	*(%rbx)
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	callq	_ide_complete_rq
	movq	_ide_stopped@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_IDE_DBG_FUNC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_ide_debug_log
	incq	8(%r14)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ide_issue_pc                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GPCMD_REQUEST_SENSE,8,3        ## @GPCMD_REQUEST_SENSE
	.comm	_IDEFLOPPY_MAX_PC_RETRIES,8,3   ## @IDEFLOPPY_MAX_PC_RETRIES
	.comm	_PC_FLAG_SUPPRESS_ERROR,4,2     ## @PC_FLAG_SUPPRESS_ERROR
	.comm	_IDE_DRV_ERROR_GENERAL,4,2      ## @IDE_DRV_ERROR_GENERAL
	.comm	_EIO,4,2                        ## @EIO
	.comm	_ide_stopped,4,2                ## @ide_stopped
	.comm	_IDE_DBG_FUNC,4,2               ## @IDE_DBG_FUNC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"retry #%d"

	.no_dead_strip	_ide_floppy_issue_pc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ide_floppy_issue_pc
_ide_floppy_issue_pc:                   ; @ide_floppy_issue_pc
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	cbnz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x20]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _GPCMD_REQUEST_SENSE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GPCMD_REQUEST_SENSE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.2:
	str	x20, [x19, #8]
LBB0_3:
	ldr	x22, [x19, #32]
	str	x20, [x19, #24]
	ldr	x2, [x20, #8]
Lloh3:
	adrp	x8, _IDEFLOPPY_MAX_PC_RETRIES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IDEFLOPPY_MAX_PC_RETRIES@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x2, x8
	b.le	LBB0_7
; %bb.4:
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	bl	_blk_rq_bytes
	mov	x21, x0
	ldr	w8, [x20, #16]
Lloh6:
	adrp	x9, _PC_FLAG_SUPPRESS_ERROR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PC_FLAG_SUPPRESS_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x22
	mov	x1, x20
	bl	_ide_floppy_report_error
LBB0_6:
Lloh9:
	adrp	x8, _IDE_DRV_ERROR_GENERAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IDE_DRV_ERROR_GENERAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x20, #20]
	str	xzr, [x19, #8]
	ldr	x8, [x19]
	mov	x0, x19
	mov	w1, #0
	blr	x8
Lloh12:
	adrp	x8, _EIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w1, w8
	mov	x0, x19
	mov	x2, x21
	bl	_ide_complete_rq
Lloh15:
	adrp	x8, _ide_stopped@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ide_stopped@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	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
	ret
LBB0_7:
Lloh18:
	adrp	x8, _IDE_DBG_FUNC@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IDE_DBG_FUNC@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ide_debug_log
	ldr	x8, [x20, #8]
	add	x8, x8, #1
	str	x8, [x20, #8]
	mov	x0, x19
	mov	x1, x21
	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	_ide_issue_pc
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_GPCMD_REQUEST_SENSE,8,3        ; @GPCMD_REQUEST_SENSE
	.comm	_IDEFLOPPY_MAX_PC_RETRIES,8,3   ; @IDEFLOPPY_MAX_PC_RETRIES
	.comm	_PC_FLAG_SUPPRESS_ERROR,4,2     ; @PC_FLAG_SUPPRESS_ERROR
	.comm	_IDE_DRV_ERROR_GENERAL,4,2      ; @IDE_DRV_ERROR_GENERAL
	.comm	_EIO,4,2                        ; @EIO
	.comm	_ide_stopped,4,2                ; @ide_stopped
	.comm	_IDE_DBG_FUNC,4,2               ; @IDE_DBG_FUNC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"retry #%d"

	.no_dead_strip	_ide_floppy_issue_pc
.subsections_via_symbols
