	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hydration_complete
_hydration_complete:                    ## @hydration_complete
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %r14
	callq	_hydration_update_metadata
	movl	%eax, %r15d
	movq	(%rbx), %rax
	movq	_BLK_STS_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.1:
	xorl	%edi, %edi
	testl	%r15d, %r15d
	sete	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	16(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_complete_overwrite_bio
LBB0_4:
	leaq	8(%rbx), %rsi
	movq	%r14, %rdi
	callq	_issue_deferred_bios
	jmp	LBB0_10
LBB0_5:
	movq	%rbx, %rax
	testl	%r15d, %r15d
	je	LBB0_7
## %bb.6:
	movq	_BLK_STS_IOERR@GOTPCREL(%rip), %rax
LBB0_7:
	movq	(%rax), %r15
	movq	16(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.8:
	leaq	8(%rbx), %rdi
	callq	_bio_list_add
LBB0_9:
	leaq	8(%rbx), %rdi
	movq	%r15, %rsi
	callq	_fail_bios
LBB0_10:
	movq	%rbx, %rdi
	callq	_free_hydration
	movq	%r14, %rdi
	callq	_atomic_dec_and_test
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wakeup_hydration_waiters       ## TAILCALL
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BLK_STS_OK,8,3                 ## @BLK_STS_OK
	.comm	_BLK_STS_IOERR,8,3              ## @BLK_STS_IOERR
	.no_dead_strip	_hydration_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hydration_complete
_hydration_complete:                    ; @hydration_complete
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
	ldr	x19, [x0, #24]
	bl	_hydration_update_metadata
	mov	x21, x0
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _BLK_STS_OK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BLK_STS_OK@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	cmp	w21, #0
	cset	w0, eq
	bl	_likely
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x1, [x20, #16]
	cbz	x1, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_complete_overwrite_bio
LBB0_4:
	add	x1, x20, #8
	mov	x0, x19
	bl	_issue_deferred_bios
	b	LBB0_8
LBB0_5:
Lloh3:
	adrp	x8, _BLK_STS_IOERR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BLK_STS_IOERR@GOTPAGEOFF]
	cmp	w21, #0
	csel	x8, x20, x8, eq
	ldr	x21, [x8]
	ldr	x1, [x20, #16]
	cbz	x1, LBB0_7
; %bb.6:
	add	x0, x20, #8
	bl	_bio_list_add
LBB0_7:
	add	x0, x20, #8
	mov	x1, x21
	bl	_fail_bios
LBB0_8:
	mov	x0, x20
	bl	_free_hydration
	mov	x0, x19
	bl	_atomic_dec_and_test
	cbz	x0, LBB0_10
; %bb.9:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_wakeup_hydration_waiters
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_BLK_STS_OK,8,3                 ; @BLK_STS_OK
	.comm	_BLK_STS_IOERR,8,3              ; @BLK_STS_IOERR
	.no_dead_strip	_hydration_complete
.subsections_via_symbols
