	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snapshot_resume
_snapshot_resume:                       ## @snapshot_resume
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %r14
	movq	$0, -32(%rbp)
	movq	$0, -24(%rbp)
	movq	__origins_lock@GOTPCREL(%rip), %rdi
	callq	_down_read
	leaq	-32(%rbp), %rsi
	leaq	-24(%rbp), %rdx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	___find_snapshots_sharing_cow
	movq	-32(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	cmpq	$0, -24(%rbp)
	je	LBB0_3
## %bb.2:
	addq	$4, %rdi
	callq	_down_write
	movq	-24(%rbp), %rdi
	addq	$4, %rdi
	movq	_SINGLE_DEPTH_NESTING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_down_write_nested
	movq	-32(%rbp), %rdi
	movq	-24(%rbp), %rsi
	callq	___handover_exceptions
	movq	-24(%rbp), %rdi
	addq	$4, %rdi
	callq	_up_write
	movq	-32(%rbp), %rdi
	addq	$4, %rdi
	callq	_up_write
LBB0_3:
	movq	__origins_lock@GOTPCREL(%rip), %rdi
	callq	_up_read
	movq	%r14, %rdi
	callq	_reregister_snapshot
	leaq	4(%r14), %rbx
	movq	%rbx, %rdi
	callq	_down_write
	movl	$1, (%r14)
	movq	%rbx, %rdi
	callq	_up_write
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__origins_lock,4,2              ## @_origins_lock
	.comm	_SINGLE_DEPTH_NESTING,4,2       ## @SINGLE_DEPTH_NESTING
	.no_dead_strip	_snapshot_resume
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snapshot_resume
_snapshot_resume:                       ; @snapshot_resume
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	x19, [x0]
	stp	xzr, xzr, [sp]
Lloh0:
	adrp	x0, __origins_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, __origins_lock@GOTPAGEOFF]
	bl	_down_read
	add	x1, sp, #8
	mov	x2, sp
	mov	x0, x19
	mov	x3, #0
	bl	___find_snapshots_sharing_cow
	ldp	x9, x8, [sp]
	cmp	x8, #0
	ccmp	x9, #0, #4, ne
	b.eq	LBB0_2
; %bb.1:
	add	x0, x8, #4
	bl	_down_write
	ldr	x8, [sp]
	add	x0, x8, #4
Lloh2:
	adrp	x8, _SINGLE_DEPTH_NESTING@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SINGLE_DEPTH_NESTING@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_down_write_nested
	ldp	x1, x0, [sp]
	bl	___handover_exceptions
	ldr	x8, [sp]
	add	x0, x8, #4
	bl	_up_write
	ldr	x8, [sp, #8]
	add	x0, x8, #4
	bl	_up_write
LBB0_2:
Lloh5:
	adrp	x0, __origins_lock@GOTPAGE
Lloh6:
	ldr	x0, [x0, __origins_lock@GOTPAGEOFF]
	bl	_up_read
	mov	x0, x19
	bl	_reregister_snapshot
	add	x20, x19, #4
	mov	x0, x20
	bl	_down_write
	mov	w8, #1
	str	w8, [x19]
	mov	x0, x20
	bl	_up_write
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	__origins_lock,4,2              ; @_origins_lock
	.comm	_SINGLE_DEPTH_NESTING,4,2       ; @SINGLE_DEPTH_NESTING
	.no_dead_strip	_snapshot_resume
.subsections_via_symbols
