	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_hydration
_do_hydration:                          ## @do_hydration
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r13
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	callq	_get_clone_mode
	movq	_CM_READ_ONLY@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setge	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_13
## %bb.1:
	movl	32(%rbx), %edi
	callq	_dm_clone_is_hydration_done
	testq	%rax, %rax
	jne	LBB0_13
## %bb.2:
	leaq	16(%rbx), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_atomic_inc
	xorl	%eax, %eax
	callq	_smp_mb__after_atomic
	movq	8(%rbx), %r15
	leaq	24(%rbx), %r12
	movq	_DM_CLONE_HYDRATION_SUSPENDED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_test_bit
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:
	leaq	28(%rbx), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_atomic_read
	testl	%eax, %eax
	jne	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_DM_CLONE_HYDRATION_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%r13, %r15
	jae	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_atomic_read
	movl	%eax, %r14d
	addl	-64(%rbp), %r14d
	movl	20(%rbx), %edi
	callq	_READ_ONCE
	cmpl	%eax, %r14d
	ja	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	leaq	-64(%rbp), %rdx
	callq	___start_next_hydration
	movq	%rax, %r15
	movq	_DM_CLONE_HYDRATION_SUSPENDED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_test_bit
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_likely
	testq	%rax, %rax
	jne	LBB0_4
LBB0_9:
	movq	-56(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:
	movq	-64(%rbp), %rsi
	callq	_hydration_copy
LBB0_11:
	xorl	%eax, %eax
	cmpq	%r13, %r15
	cmovbq	%r15, %rax
	movq	%rax, 8(%rbx)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_atomic_dec_and_test
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	%rbx, %rdi
	callq	_wakeup_hydration_waiters
LBB0_13:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CM_READ_ONLY,8,3               ## @CM_READ_ONLY
	.comm	_DM_CLONE_HYDRATION_SUSPENDED,4,2 ## @DM_CLONE_HYDRATION_SUSPENDED
	.comm	_DM_CLONE_HYDRATION_ENABLED,4,2 ## @DM_CLONE_HYDRATION_ENABLED
	.no_dead_strip	_do_hydration
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_hydration
_do_hydration:                          ; @do_hydration
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x24, [x0]
	stp	xzr, xzr, [sp]
	bl	_get_clone_mode
Lloh0:
	adrp	x8, _CM_READ_ONLY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CM_READ_ONLY@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, ge
	bl	_unlikely
	cbnz	x0, LBB0_12
; %bb.1:
	ldr	w0, [x19, #32]
	bl	_dm_clone_is_hydration_done
	cbnz	x0, LBB0_12
; %bb.2:
	add	x20, x19, #16
	mov	x0, x20
	bl	_atomic_inc
	bl	_smp_mb__after_atomic
	ldr	x21, [x19, #8]
	add	x22, x19, #24
Lloh3:
	adrp	x25, _DM_CLONE_HYDRATION_SUSPENDED@GOTPAGE
Lloh4:
	ldr	x25, [x25, _DM_CLONE_HYDRATION_SUSPENDED@GOTPAGEOFF]
	ldr	w0, [x25]
	mov	x1, x22
	bl	_test_bit
	cmp	x0, #0
	cset	w0, eq
	bl	_likely
	cbz	x0, LBB0_10
; %bb.3:
	add	x23, x19, #28
Lloh5:
	adrp	x26, _DM_CLONE_HYDRATION_ENABLED@GOTPAGE
Lloh6:
	ldr	x26, [x26, _DM_CLONE_HYDRATION_ENABLED@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	bl	_atomic_read
	cbnz	w0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x26]
	mov	x1, x22
	bl	_test_bit
	cmp	x0, #0
	ccmp	x21, x24, #2, ne
	b.hs	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_atomic_read
	ldr	w8, [sp]
	add	w27, w0, w8
	ldr	w0, [x19, #20]
	bl	_READ_ONCE
	cmp	w27, w0
	b.hi	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x2, sp
	mov	x0, x19
	mov	x1, x21
	bl	___start_next_hydration
	mov	x21, x0
	ldr	w0, [x25]
	mov	x1, x22
	bl	_test_bit
	cmp	x0, #0
	cset	w0, eq
	bl	_likely
	cbnz	x0, LBB0_4
LBB0_8:
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_10
; %bb.9:
	ldr	x1, [sp]
	bl	_hydration_copy
LBB0_10:
	cmp	x21, x24
	csel	x8, x21, xzr, lo
	str	x8, [x19, #8]
	mov	x0, x20
	bl	_atomic_dec_and_test
	cbz	x0, LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_wakeup_hydration_waiters
LBB0_12:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_CM_READ_ONLY,8,3               ; @CM_READ_ONLY
	.comm	_DM_CLONE_HYDRATION_SUSPENDED,4,2 ; @DM_CLONE_HYDRATION_SUSPENDED
	.comm	_DM_CLONE_HYDRATION_ENABLED,4,2 ; @DM_CLONE_HYDRATION_ENABLED
	.no_dead_strip	_do_hydration
.subsections_via_symbols
