	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_pd_read_start
_do_pd_read_start:                      ## @do_pd_read_start
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_pd_current@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_STAT_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_pd_wait_for
	movq	_STAT_ERR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.1:
	movq	_pd_retries@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_PD_MAX_RETRIES@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jge	LBB0_2
## %bb.3:
	incq	%rcx
	movq	%rcx, (%rax)
	movq	_Wait@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movl	(%rbx), %edi
	movq	_IDE_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_pd_block@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_pd_run@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_pd_ide_command
	movq	_do_pd_read_drq@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_jiffies@GOTPCREL(%rip), %rcx
	movq	_PD_TMO@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	addq	(%rcx), %rdx
	movq	_phase@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_pd_timeout@GOTPCREL(%rip), %rax
	movq	%rdx, (%rax)
	movq	_Hold@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_2:
	movq	_Fail@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pd_current,4,2                 ## @pd_current
	.comm	_STAT_READY,4,2                 ## @STAT_READY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"do_pd_read"

	.comm	_STAT_ERR,4,2                   ## @STAT_ERR
	.comm	_pd_retries,8,3                 ## @pd_retries
	.comm	_PD_MAX_RETRIES,8,3             ## @PD_MAX_RETRIES
	.comm	_Wait,4,2                       ## @Wait
	.comm	_Fail,4,2                       ## @Fail
	.comm	_IDE_READ,4,2                   ## @IDE_READ
	.comm	_pd_block,4,2                   ## @pd_block
	.comm	_pd_run,4,2                     ## @pd_run
	.comm	_do_pd_read_drq,4,2             ## @do_pd_read_drq
	.comm	_phase,4,2                      ## @phase
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_PD_TMO,8,3                     ## @PD_TMO
	.comm	_pd_timeout,8,3                 ## @pd_timeout
	.comm	_Hold,4,2                       ## @Hold
	.no_dead_strip	_do_pd_read_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_pd_read_start
_do_pd_read_start:                      ; @do_pd_read_start
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _pd_current@GOTPAGE
Lloh1:
	ldr	x19, [x19, _pd_current@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh2:
	adrp	x8, _STAT_READY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _STAT_READY@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	bl	_pd_wait_for
Lloh7:
	adrp	x8, _STAT_ERR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _STAT_ERR@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.1:
Lloh10:
	adrp	x8, _pd_retries@GOTPAGE
Lloh11:
	ldr	x8, [x8, _pd_retries@GOTPAGEOFF]
	ldr	x9, [x8]
Lloh12:
	adrp	x10, _PD_MAX_RETRIES@GOTPAGE
Lloh13:
	ldr	x10, [x10, _PD_MAX_RETRIES@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ge	LBB0_4
; %bb.2:
	add	x9, x9, #1
	str	x9, [x8]
Lloh15:
	adrp	x8, _Wait@GOTPAGE
Lloh16:
	ldr	x8, [x8, _Wait@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
	ldr	w0, [x19]
Lloh17:
	adrp	x8, _IDE_READ@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IDE_READ@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x8, _pd_block@GOTPAGE
Lloh21:
	ldr	x8, [x8, _pd_block@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
Lloh23:
	adrp	x8, _pd_run@GOTPAGE
Lloh24:
	ldr	x8, [x8, _pd_run@GOTPAGEOFF]
Lloh25:
	ldr	w3, [x8]
	bl	_pd_ide_command
Lloh26:
	adrp	x8, _do_pd_read_drq@GOTPAGE
Lloh27:
	ldr	x8, [x8, _do_pd_read_drq@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	adrp	x9, _phase@GOTPAGE
Lloh30:
	ldr	x9, [x9, _phase@GOTPAGEOFF]
Lloh31:
	str	w8, [x9]
Lloh32:
	adrp	x8, _jiffies@GOTPAGE
Lloh33:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
Lloh35:
	adrp	x9, _PD_TMO@GOTPAGE
Lloh36:
	ldr	x9, [x9, _PD_TMO@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	add	x8, x9, x8
Lloh38:
	adrp	x9, _pd_timeout@GOTPAGE
Lloh39:
	ldr	x9, [x9, _pd_timeout@GOTPAGEOFF]
Lloh40:
	str	x8, [x9]
Lloh41:
	adrp	x8, _Hold@GOTPAGE
Lloh42:
	ldr	x8, [x8, _Hold@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh43:
	adrp	x8, _Fail@GOTPAGE
Lloh44:
	ldr	x8, [x8, _Fail@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotStr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotStr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_pd_current,4,2                 ; @pd_current
	.comm	_STAT_READY,4,2                 ; @STAT_READY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"do_pd_read"

	.comm	_STAT_ERR,4,2                   ; @STAT_ERR
	.comm	_pd_retries,8,3                 ; @pd_retries
	.comm	_PD_MAX_RETRIES,8,3             ; @PD_MAX_RETRIES
	.comm	_Wait,4,2                       ; @Wait
	.comm	_Fail,4,2                       ; @Fail
	.comm	_IDE_READ,4,2                   ; @IDE_READ
	.comm	_pd_block,4,2                   ; @pd_block
	.comm	_pd_run,4,2                     ; @pd_run
	.comm	_do_pd_read_drq,4,2             ; @do_pd_read_drq
	.comm	_phase,4,2                      ; @phase
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_PD_TMO,8,3                     ; @PD_TMO
	.comm	_pd_timeout,8,3                 ; @pd_timeout
	.comm	_Hold,4,2                       ; @Hold
	.no_dead_strip	_do_pd_read_start
.subsections_via_symbols
