	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_pf_write_done
_do_pf_write_done:                      ## @do_pf_write_done
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_pf_current@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	movq	_STAT_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	leaq	L_.str.1(%rip), %r8
	xorl	%edx, %edx
	callq	_pf_wait
	movl	%eax, %ebx
	movq	_STAT_ERR@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	(%r14), %rax
	movl	(%rax), %edi
	callq	_pi_disconnect
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.1:
	movq	_pf_retries@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_PF_MAX_RETRIES@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jge	LBB0_2
## %bb.5:
	incq	%rcx
	movq	%rcx, (%rax)
	movq	(%r14), %rax
	movl	(%rax), %edi
	movq	_do_pf_write_start@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_pi_do_claimed                  ## TAILCALL
LBB0_3:
	xorl	%edi, %edi
	jmp	LBB0_4
LBB0_2:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_next_request                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_pf_current,8,3                 ## @pf_current
	.comm	_STAT_BUSY,4,2                  ## @STAT_BUSY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"write block"

L_.str.1:                               ## @.str.1
	.asciz	"done"

	.comm	_STAT_ERR,4,2                   ## @STAT_ERR
	.comm	_pf_retries,8,3                 ## @pf_retries
	.comm	_PF_MAX_RETRIES,8,3             ## @PF_MAX_RETRIES
	.comm	_do_pf_write_start,4,2          ## @do_pf_write_start
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_do_pf_write_done
.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_done
_do_pf_write_done:                      ; @do_pf_write_done
	.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, _pf_current@GOTPAGE
Lloh1:
	ldr	x19, [x19, _pf_current@GOTPAGEOFF]
	ldr	x0, [x19]
Lloh2:
	adrp	x8, _STAT_BUSY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _STAT_BUSY@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x3, l_.str@PAGE
Lloh6:
	add	x3, x3, l_.str@PAGEOFF
Lloh7:
	adrp	x4, l_.str.1@PAGE
Lloh8:
	add	x4, x4, l_.str.1@PAGEOFF
	mov	w2, #0
	bl	_pf_wait
Lloh9:
	adrp	x8, _STAT_ERR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _STAT_ERR@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	and	w20, w8, w0
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_pi_disconnect
	cbz	w20, LBB0_3
; %bb.1:
Lloh12:
	adrp	x8, _pf_retries@GOTPAGE
Lloh13:
	ldr	x8, [x8, _pf_retries@GOTPAGEOFF]
	ldr	x9, [x8]
Lloh14:
	adrp	x10, _PF_MAX_RETRIES@GOTPAGE
Lloh15:
	ldr	x10, [x10, _PF_MAX_RETRIES@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ge	LBB0_4
; %bb.2:
	add	x9, x9, #1
	str	x9, [x8]
	ldr	x8, [x19]
	ldr	w0, [x8]
Lloh17:
	adrp	x8, _do_pf_write_start@GOTPAGE
Lloh18:
	ldr	x8, [x8, _do_pf_write_start@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pi_do_claimed
LBB0_3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh20:
	adrp	x8, _EIO@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_next_request
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_pf_current,8,3                 ; @pf_current
	.comm	_STAT_BUSY,4,2                  ; @STAT_BUSY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"write block"

l_.str.1:                               ; @.str.1
	.asciz	"done"

	.comm	_STAT_ERR,4,2                   ; @STAT_ERR
	.comm	_pf_retries,8,3                 ; @pf_retries
	.comm	_PF_MAX_RETRIES,8,3             ; @PF_MAX_RETRIES
	.comm	_do_pf_write_start,4,2          ; @do_pf_write_start
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_do_pf_write_done
.subsections_via_symbols
