	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_pd_write_done
_do_pd_write_done:                      ## @do_pd_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
	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), %rax
	movl	(%rax), %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.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_write_start@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_phase@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_Wait@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_4:
	movq	_Ok@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_Fail@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_2:
	movq	_Hold@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	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,4,2                 ## @pd_current
	.comm	_STAT_READY,4,2                 ## @STAT_READY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"do_pd_write_done"

	.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_write_start,4,2          ## @do_pd_write_start
	.comm	_phase,4,2                      ## @phase
	.comm	_Wait,4,2                       ## @Wait
	.comm	_Fail,4,2                       ## @Fail
	.comm	_Ok,4,2                         ## @Ok
	.no_dead_strip	_do_pd_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_pd_write_done
_do_pd_write_done:                      ; @do_pd_write_done
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	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_7
LBB0_2:
Lloh6:
	adrp	x8, _pd_current@GOTPAGE
Lloh7:
	ldr	x8, [x8, _pd_current@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _STAT_READY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _STAT_READY@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	bl	_pd_wait_for
Lloh14:
	adrp	x8, _STAT_ERR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _STAT_ERR@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.3:
Lloh17:
	adrp	x8, _pd_retries@GOTPAGE
Lloh18:
	ldr	x8, [x8, _pd_retries@GOTPAGEOFF]
	ldr	x9, [x8]
Lloh19:
	adrp	x10, _PD_MAX_RETRIES@GOTPAGE
Lloh20:
	ldr	x10, [x10, _PD_MAX_RETRIES@GOTPAGEOFF]
Lloh21:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ge	LBB0_6
; %bb.4:
	add	x9, x9, #1
	str	x9, [x8]
Lloh22:
	adrp	x8, _do_pd_write_start@GOTPAGE
Lloh23:
	ldr	x8, [x8, _do_pd_write_start@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _phase@GOTPAGE
Lloh26:
	ldr	x9, [x9, _phase@GOTPAGEOFF]
Lloh27:
	str	w8, [x9]
Lloh28:
	adrp	x8, _Wait@GOTPAGE
Lloh29:
	ldr	x8, [x8, _Wait@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
Lloh30:
	adrp	x8, _Ok@GOTPAGE
Lloh31:
	ldr	x8, [x8, _Ok@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh32:
	adrp	x8, _Fail@GOTPAGE
Lloh33:
	ldr	x8, [x8, _Fail@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh34:
	adrp	x8, _Hold@GOTPAGE
Lloh35:
	ldr	x8, [x8, _Hold@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotStr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_pd_timeout,4,2                 ; @pd_timeout
	.comm	_Hold,4,2                       ; @Hold
	.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_write_done"

	.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_write_start,4,2          ; @do_pd_write_start
	.comm	_phase,4,2                      ; @phase
	.comm	_Wait,4,2                       ; @Wait
	.comm	_Fail,4,2                       ; @Fail
	.comm	_Ok,4,2                         ; @Ok
	.no_dead_strip	_do_pd_write_done
.subsections_via_symbols
