	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_pf_write_start
_do_pf_write_start:                     ## @do_pf_write_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	%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
	movq	_pf_busy@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_pf_current@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	movq	_ATAPI_WRITE_10@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_pf_block@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_pf_run@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_pf_start
	testq	%rax, %rax
	je	LBB0_1
## %bb.5:
	movq	(%rbx), %rax
	movl	(%rax), %edi
LBB0_3:
	callq	_pi_disconnect
	movq	_pf_retries@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_PF_MAX_RETRIES@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jge	LBB0_6
## %bb.4:
	incq	%rcx
	movq	%rcx, (%rax)
	movq	(%rbx), %rax
	movl	(%rax), %edi
	leaq	_do_pf_write_start(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pi_do_claimed                  ## TAILCALL
LBB0_6:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_next_request                   ## TAILCALL
LBB0_1:
	movq	_STAT_ERR@GOTPCREL(%rip), %r12
	leaq	L_.str(%rip), %r14
	leaq	L_.str.1(%rip), %r15
	movq	_pf_buf@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdi
	movq	_STAT_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	movq	_STAT_DRQ@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r14, %rcx
	movq	%r15, %r8
	callq	_pf_wait
	movq	(%rbx), %rcx
	movl	(%rcx), %edi
	testl	%eax, (%r12)
	jne	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %esi
	movl	$512, %edx                      ## imm = 0x200
	callq	_pi_write_block
	xorl	%eax, %eax
	callq	_pf_next_buf
	testq	%rax, %rax
	je	LBB0_2
## %bb.8:
	movq	_pf_mask@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_do_pf_write_done@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_pf_ready@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PF_TMO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_nice@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ps_set_intr                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_pf_busy,4,2                    ## @pf_busy
	.comm	_pf_current,8,3                 ## @pf_current
	.comm	_ATAPI_WRITE_10,4,2             ## @ATAPI_WRITE_10
	.comm	_pf_block,4,2                   ## @pf_block
	.comm	_pf_run,4,2                     ## @pf_run
	.comm	_pf_retries,8,3                 ## @pf_retries
	.comm	_PF_MAX_RETRIES,8,3             ## @PF_MAX_RETRIES
	.comm	_EIO,4,2                        ## @EIO
	.comm	_STAT_BUSY,4,2                  ## @STAT_BUSY
	.comm	_STAT_DRQ,4,2                   ## @STAT_DRQ
	.comm	_STAT_ERR,4,2                   ## @STAT_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"write block"

L_.str.1:                               ## @.str.1
	.asciz	"data wait"

	.comm	_pf_buf,4,2                     ## @pf_buf
	.comm	_pf_mask,8,3                    ## @pf_mask
	.comm	_do_pf_write_done,4,2           ## @do_pf_write_done
	.comm	_pf_ready,4,2                   ## @pf_ready
	.comm	_PF_TMO,4,2                     ## @PF_TMO
	.comm	_nice,4,2                       ## @nice
	.no_dead_strip	_do_pf_write_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_pf_write_start
_do_pf_write_start:                     ; @do_pf_write_start
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x8, _pf_busy@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pf_busy@GOTPAGEOFF]
	mov	w9, #1
Lloh2:
	str	w9, [x8]
Lloh3:
	adrp	x21, _pf_current@GOTPAGE
Lloh4:
	ldr	x21, [x21, _pf_current@GOTPAGEOFF]
	ldr	x0, [x21]
Lloh5:
	adrp	x8, _ATAPI_WRITE_10@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ATAPI_WRITE_10@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _pf_block@GOTPAGE
Lloh9:
	ldr	x8, [x8, _pf_block@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x8, _pf_run@GOTPAGE
Lloh12:
	ldr	x8, [x8, _pf_run@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	bl	_pf_start
	cbz	x0, LBB0_5
; %bb.1:
	ldr	x8, [x21]
	ldr	w0, [x8]
LBB0_2:
	bl	_pi_disconnect
Lloh14:
	adrp	x8, _pf_retries@GOTPAGE
Lloh15:
	ldr	x8, [x8, _pf_retries@GOTPAGEOFF]
	ldr	x9, [x8]
Lloh16:
	adrp	x10, _PF_MAX_RETRIES@GOTPAGE
Lloh17:
	ldr	x10, [x10, _PF_MAX_RETRIES@GOTPAGEOFF]
Lloh18:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ge	LBB0_4
; %bb.3:
	add	x9, x9, #1
	str	x9, [x8]
	ldr	x8, [x21]
	ldr	w0, [x8]
Lloh19:
	adrp	x1, _do_pf_write_start@PAGE
Lloh20:
	add	x1, x1, _do_pf_write_start@PAGEOFF
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_pi_do_claimed
LBB0_4:
Lloh21:
	adrp	x8, _EIO@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_next_request
LBB0_5:
Lloh24:
	adrp	x22, _STAT_BUSY@GOTPAGE
Lloh25:
	ldr	x22, [x22, _STAT_BUSY@GOTPAGEOFF]
Lloh26:
	adrp	x23, _STAT_DRQ@GOTPAGE
Lloh27:
	ldr	x23, [x23, _STAT_DRQ@GOTPAGEOFF]
Lloh28:
	adrp	x19, l_.str@PAGE
Lloh29:
	add	x19, x19, l_.str@PAGEOFF
Lloh30:
	adrp	x24, _STAT_ERR@GOTPAGE
Lloh31:
	ldr	x24, [x24, _STAT_ERR@GOTPAGEOFF]
Lloh32:
	adrp	x20, l_.str.1@PAGE
Lloh33:
	add	x20, x20, l_.str.1@PAGEOFF
Lloh34:
	adrp	x25, _pf_buf@GOTPAGE
Lloh35:
	ldr	x25, [x25, _pf_buf@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21]
	ldr	w1, [x22]
	ldr	w8, [x23]
	ldr	w9, [x24]
	orr	w2, w9, w8
	mov	x3, x19
	mov	x4, x20
	bl	_pf_wait
	mov	x8, x0
	ldr	w9, [x24]
	ldr	x10, [x21]
	ldr	w0, [x10]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w1, [x25]
	mov	w2, #512
	bl	_pi_write_block
	bl	_pf_next_buf
	cbz	x0, LBB0_6
; %bb.8:
Lloh36:
	adrp	x8, _pf_mask@GOTPAGE
Lloh37:
	ldr	x8, [x8, _pf_mask@GOTPAGEOFF]
Lloh38:
	str	xzr, [x8]
Lloh39:
	adrp	x8, _do_pf_write_done@GOTPAGE
Lloh40:
	ldr	x8, [x8, _do_pf_write_done@GOTPAGEOFF]
Lloh41:
	adrp	x9, _pf_ready@GOTPAGE
Lloh42:
	ldr	x9, [x9, _pf_ready@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
Lloh44:
	ldr	w1, [x9]
Lloh45:
	adrp	x8, _PF_TMO@GOTPAGE
Lloh46:
	ldr	x8, [x8, _PF_TMO@GOTPAGEOFF]
Lloh47:
	adrp	x9, _nice@GOTPAGE
Lloh48:
	ldr	x9, [x9, _nice@GOTPAGEOFF]
Lloh49:
	ldr	w2, [x8]
Lloh50:
	ldr	w3, [x9]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_ps_set_intr
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh49
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh43
	.loh AdrpLdrGotStr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_pf_busy,4,2                    ; @pf_busy
	.comm	_pf_current,8,3                 ; @pf_current
	.comm	_ATAPI_WRITE_10,4,2             ; @ATAPI_WRITE_10
	.comm	_pf_block,4,2                   ; @pf_block
	.comm	_pf_run,4,2                     ; @pf_run
	.comm	_pf_retries,8,3                 ; @pf_retries
	.comm	_PF_MAX_RETRIES,8,3             ; @PF_MAX_RETRIES
	.comm	_EIO,4,2                        ; @EIO
	.comm	_STAT_BUSY,4,2                  ; @STAT_BUSY
	.comm	_STAT_DRQ,4,2                   ; @STAT_DRQ
	.comm	_STAT_ERR,4,2                   ; @STAT_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"write block"

l_.str.1:                               ; @.str.1
	.asciz	"data wait"

	.comm	_pf_buf,4,2                     ; @pf_buf
	.comm	_pf_mask,8,3                    ; @pf_mask
	.comm	_do_pf_write_done,4,2           ; @do_pf_write_done
	.comm	_pf_ready,4,2                   ; @pf_ready
	.comm	_PF_TMO,4,2                     ; @PF_TMO
	.comm	_nice,4,2                       ; @nice
	.no_dead_strip	_do_pf_write_start
.subsections_via_symbols
