	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hydration_update_metadata
_hydration_update_metadata:             ## @hydration_update_metadata
	.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, %r15
	movq	16(%rdi), %r14
	movq	%r14, %rdi
	callq	_get_clone_mode
	movq	_CM_READ_ONLY@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setge	%dil
	callq	_unlikely
	movq	_EPERM@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	subl	(%rcx), %ebx
	xorl	%ecx, %ecx
	testq	%rax, %rax
	cmovel	%ecx, %ebx
	xorl	%edi, %edi
	testl	%ebx, %ebx
	sete	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	(%r15), %rax
	movq	_BLK_STS_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movl	(%r14), %edi
	movl	12(%r15), %esi
	callq	_dm_clone_set_region_hydrated
	movl	%eax, %ebx
LBB0_3:
	movl	12(%r15), %esi
	movq	%r14, %rdi
	callq	_get_hash_table_bucket
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_bucket_lock_irqsave
	addq	$8, %r15
	movq	%r15, %rdi
	callq	_hlist_del
	movq	%r14, %rdi
	callq	_bucket_unlock_irqrestore
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CM_READ_ONLY,8,3               ## @CM_READ_ONLY
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_BLK_STS_OK,8,3                 ## @BLK_STS_OK
	.no_dead_strip	_hydration_update_metadata
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hydration_update_metadata
_hydration_update_metadata:             ; @hydration_update_metadata
	.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	x19, x0
	ldr	x20, [x0, #16]
	mov	x0, x20
	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
Lloh3:
	adrp	x8, _EPERM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	x0, #0
	csneg	w21, wzr, w8, eq
	cmp	w21, #0
	cset	w0, eq
	bl	_likely
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _BLK_STS_OK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BLK_STS_OK@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	ldr	w0, [x20]
	ldr	w1, [x19, #12]
	bl	_dm_clone_set_region_hydrated
	mov	x21, x0
LBB0_3:
	ldr	w1, [x19, #12]
	mov	x0, x20
	bl	_get_hash_table_bucket
	mov	x20, x0
	bl	_bucket_lock_irqsave
	add	x0, x19, #8
	bl	_hlist_del
	mov	x0, x20
	bl	_bucket_unlock_irqrestore
	mov	x0, x21
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_CM_READ_ONLY,8,3               ; @CM_READ_ONLY
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_BLK_STS_OK,8,3                 ; @BLK_STS_OK
	.no_dead_strip	_hydration_update_metadata
.subsections_via_symbols
