	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_pd_read_drq
_do_pd_read_drq:                        ## @do_pd_read_drq
	.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
	xorl	%eax, %eax
	callq	_pd_ready
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_pd_timeout@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_time_after_eq
	testl	%eax, %eax
	je	LBB0_2
LBB0_3:
	movq	_pd_current@GOTPCREL(%rip), %rbx
	movq	_STAT_DRQ@GOTPCREL(%rip), %r12
	leaq	L_.str(%rip), %r15
	movq	_STAT_ERR@GOTPCREL(%rip), %r13
	movq	_pd_buf@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdi
	movl	(%r12), %esi
	movq	%r15, %rdx
	callq	_pd_wait_for
	testl	%eax, (%r13)
	jne	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rbx), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	movl	$512, %edx                      ## imm = 0x200
	callq	_pi_read_block
	xorl	%eax, %eax
	callq	_pd_next_buf
	testq	%rax, %rax
	je	LBB0_4
## %bb.9:
	movq	_Ok@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_5:
	movq	_pd_retries@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_PD_MAX_RETRIES@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jge	LBB0_6
## %bb.7:
	incq	%rcx
	movq	%rcx, (%rax)
	movq	_do_pd_read_start@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_phase@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_Wait@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_6:
	movq	_Fail@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_2:
	movq	_Hold@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_pd_timeout,4,2                 ## @pd_timeout
	.comm	_Hold,4,2                       ## @Hold
	.comm	_pd_current,8,3                 ## @pd_current
	.comm	_STAT_DRQ,4,2                   ## @STAT_DRQ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"do_pd_read_drq"

	.comm	_STAT_ERR,4,2                   ## @STAT_ERR
	.comm	_pd_retries,8,3                 ## @pd_retries
	.comm	_PD_MAX_RETRIES,8,3             ## @PD_MAX_RETRIES
	.comm	_do_pd_read_start,4,2           ## @do_pd_read_start
	.comm	_phase,4,2                      ## @phase
	.comm	_Wait,4,2                       ## @Wait
	.comm	_Fail,4,2                       ## @Fail
	.comm	_pd_buf,4,2                     ## @pd_buf
	.comm	_Ok,4,2                         ## @Ok
	.no_dead_strip	_do_pd_read_drq
.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_drq
_do_pd_read_drq:                        ; @do_pd_read_drq
	.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	_pd_ready
	cbnz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _jiffies@GOTPAGE
Lloh1:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _pd_timeout@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pd_timeout@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_time_after_eq
	cbz	w0, LBB0_8
LBB0_2:
Lloh6:
	adrp	x21, _pd_current@GOTPAGE
Lloh7:
	ldr	x21, [x21, _pd_current@GOTPAGEOFF]
Lloh8:
	adrp	x22, _STAT_DRQ@GOTPAGE
Lloh9:
	ldr	x22, [x22, _STAT_DRQ@GOTPAGEOFF]
Lloh10:
	adrp	x19, l_.str@PAGE
Lloh11:
	add	x19, x19, l_.str@PAGEOFF
Lloh12:
	adrp	x23, _STAT_ERR@GOTPAGE
Lloh13:
	ldr	x23, [x23, _STAT_ERR@GOTPAGEOFF]
Lloh14:
	adrp	x24, _pd_buf@GOTPAGE
Lloh15:
	ldr	x24, [x24, _pd_buf@GOTPAGEOFF]
Lloh16:
	adrp	x20, _Ok@GOTPAGE
Lloh17:
	ldr	x20, [x20, _Ok@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21]
	ldr	w1, [x22]
	mov	x2, x19
	bl	_pd_wait_for
	ldr	w8, [x23]
	tst	w8, w0
	b.ne	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21]
	ldr	w0, [x8]
	ldr	w1, [x24]
	mov	w2, #512
	bl	_pi_read_block
	bl	_pd_next_buf
	cbz	x0, LBB0_3
	b	LBB0_9
LBB0_5:
Lloh18:
	adrp	x8, _pd_retries@GOTPAGE
Lloh19:
	ldr	x8, [x8, _pd_retries@GOTPAGEOFF]
	ldr	x9, [x8]
Lloh20:
	adrp	x10, _PD_MAX_RETRIES@GOTPAGE
Lloh21:
	ldr	x10, [x10, _PD_MAX_RETRIES@GOTPAGEOFF]
Lloh22:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ge	LBB0_7
; %bb.6:
	add	x9, x9, #1
	str	x9, [x8]
Lloh23:
	adrp	x8, _do_pd_read_start@GOTPAGE
Lloh24:
	ldr	x8, [x8, _do_pd_read_start@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _phase@GOTPAGE
Lloh27:
	ldr	x9, [x9, _phase@GOTPAGEOFF]
Lloh28:
	str	w8, [x9]
Lloh29:
	adrp	x20, _Wait@GOTPAGE
Lloh30:
	ldr	x20, [x20, _Wait@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh31:
	adrp	x20, _Fail@GOTPAGE
Lloh32:
	ldr	x20, [x20, _Fail@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh33:
	adrp	x20, _Hold@GOTPAGE
Lloh34:
	ldr	x20, [x20, _Hold@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x20]
	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
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotStr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_pd_timeout,4,2                 ; @pd_timeout
	.comm	_Hold,4,2                       ; @Hold
	.comm	_pd_current,8,3                 ; @pd_current
	.comm	_STAT_DRQ,4,2                   ; @STAT_DRQ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"do_pd_read_drq"

	.comm	_STAT_ERR,4,2                   ; @STAT_ERR
	.comm	_pd_retries,8,3                 ; @pd_retries
	.comm	_PD_MAX_RETRIES,8,3             ; @PD_MAX_RETRIES
	.comm	_do_pd_read_start,4,2           ; @do_pd_read_start
	.comm	_phase,4,2                      ; @phase
	.comm	_Wait,4,2                       ; @Wait
	.comm	_Fail,4,2                       ; @Fail
	.comm	_pd_buf,4,2                     ; @pd_buf
	.comm	_Ok,4,2                         ; @Ok
	.no_dead_strip	_do_pd_read_drq
.subsections_via_symbols
