	.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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	movq	$0, -40(%rbp)
	movq	__origins_lock@GOTPCREL(%rip), %rdi
	callq	_down_read
	movq	24(%r14), %rax
	movl	(%rax), %edi
	callq	___lookup_dm_origin
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_dm_table_get_md
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_4
LBB0_2:
	xorl	%r15d, %r15d
	leaq	-40(%rbp), %rcx
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	___find_snapshots_sharing_cow
	movq	-40(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	16(%rax), %rax
	movl	(%rax), %edi
	callq	_dm_table_get_md
	movq	%rax, %r15
LBB0_4:
	movl	(%rbx), %edi
	callq	_dm_table_get_md
	testq	%r15, %r15
	je	LBB0_7
## %bb.5:
	cmpq	%rax, %r15
	je	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	callq	_dm_hold
	testq	%rax, %rax
	je	LBB0_16
LBB0_7:
	movq	__origins_lock@GOTPCREL(%rip), %rdi
	callq	_up_read
	movb	$1, %bl
	xorl	%r15d, %r15d
	movb	$1, %r12b
LBB0_8:
	movq	__origins_lock@GOTPCREL(%rip), %rdi
	callq	_down_read
	leaq	-56(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	___find_snapshots_sharing_cow
	movq	-56(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.9:
	cmpq	$0, -48(%rbp)
	je	LBB0_11
## %bb.10:
	addq	$4, %rdi
	callq	_down_write
	movq	-48(%rbp), %rdi
	addq	$4, %rdi
	movq	_SINGLE_DEPTH_NESTING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_down_write_nested
	movq	-56(%rbp), %rdi
	movq	-48(%rbp), %rsi
	callq	___handover_exceptions
	movq	-48(%rbp), %rdi
	addq	$4, %rdi
	callq	_up_write
	movq	-56(%rbp), %rdi
	addq	$4, %rdi
	callq	_up_write
LBB0_11:
	movq	__origins_lock@GOTPCREL(%rip), %rdi
	callq	_up_read
	testb	%bl, %bl
	jne	LBB0_15
## %bb.12:
	testb	%r12b, %r12b
	jne	LBB0_14
## %bb.13:
	movq	-40(%rbp), %rdi
	callq	_start_merge
LBB0_14:
	movq	%r15, %rdi
	callq	_dm_internal_resume_fast
	movq	%r15, %rdi
	callq	_dm_put
LBB0_15:
	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	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	__origins_lock@GOTPCREL(%rip), %rdi
	callq	_up_read
	movq	%r15, %rdi
	callq	_dm_internal_suspend_fast
	movq	-40(%rbp), %rsi
	movb	$1, %r12b
	testq	%rsi, %rsi
	je	LBB0_20
## %bb.17:
	movq	_RUNNING_MERGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_20
## %bb.18:
	movq	-40(%rbp), %rdi
	callq	_stop_merge
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	jmp	LBB0_8
LBB0_20:
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	__origins_lock,4,2              ## @_origins_lock
	.comm	_RUNNING_MERGE,4,2              ## @RUNNING_MERGE
	.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, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x0
	ldr	x19, [x0, #8]
	stp	xzr, xzr, [sp, #16]
	str	xzr, [sp, #8]
Lloh0:
	adrp	x0, __origins_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, __origins_lock@GOTPAGEOFF]
	bl	_down_read
	ldr	x8, [x19, #24]
	ldr	w0, [x8]
	bl	___lookup_dm_origin
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x0]
	ldr	w0, [x8]
	bl	_dm_table_get_md
	mov	x20, x0
	cbnz	x0, LBB0_5
LBB0_2:
	add	x3, sp, #8
	mov	x0, x19
	mov	x1, #0
	mov	x2, #0
	bl	___find_snapshots_sharing_cow
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x8, [x8, #16]
	ldr	w0, [x8]
	bl	_dm_table_get_md
	mov	x20, x0
	b	LBB0_5
LBB0_4:
	mov	x20, #0
LBB0_5:
	ldr	w0, [x21]
	bl	_dm_table_get_md
	cmp	x20, #0
	ccmp	x20, x0, #4, ne
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x20
	bl	_dm_hold
	cbz	x0, LBB0_17
LBB0_7:
Lloh2:
	adrp	x0, __origins_lock@GOTPAGE
Lloh3:
	ldr	x0, [x0, __origins_lock@GOTPAGEOFF]
	bl	_up_read
	mov	x20, #0
	mov	w21, #1
LBB0_8:
	mov	w22, #1
LBB0_9:
Lloh4:
	adrp	x0, __origins_lock@GOTPAGE
Lloh5:
	ldr	x0, [x0, __origins_lock@GOTPAGEOFF]
	bl	_down_read
	add	x1, sp, #24
	add	x2, sp, #16
	mov	x0, x19
	mov	x3, #0
	bl	___find_snapshots_sharing_cow
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_12
; %bb.10:
	ldr	x9, [sp, #16]
	cbz	x9, LBB0_12
; %bb.11:
	add	x0, x8, #4
	bl	_down_write
	ldr	x8, [sp, #16]
	add	x0, x8, #4
Lloh6:
	adrp	x8, _SINGLE_DEPTH_NESTING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SINGLE_DEPTH_NESTING@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_down_write_nested
	ldp	x1, x0, [sp, #16]
	bl	___handover_exceptions
	ldr	x8, [sp, #16]
	add	x0, x8, #4
	bl	_up_write
	ldr	x8, [sp, #24]
	add	x0, x8, #4
	bl	_up_write
LBB0_12:
Lloh9:
	adrp	x0, __origins_lock@GOTPAGE
Lloh10:
	ldr	x0, [x0, __origins_lock@GOTPAGEOFF]
	bl	_up_read
	tbnz	w21, #0, LBB0_16
; %bb.13:
	tbnz	w22, #0, LBB0_15
; %bb.14:
	ldr	x0, [sp, #8]
	bl	_start_merge
LBB0_15:
	mov	x0, x20
	bl	_dm_internal_resume_fast
	mov	x0, x20
	bl	_dm_put
LBB0_16:
	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, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_17:
Lloh11:
	adrp	x0, __origins_lock@GOTPAGE
Lloh12:
	ldr	x0, [x0, __origins_lock@GOTPAGEOFF]
	bl	_up_read
	mov	x0, x20
	bl	_dm_internal_suspend_fast
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_20
; %bb.18:
Lloh13:
	adrp	x9, _RUNNING_MERGE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _RUNNING_MERGE@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x9]
	add	x1, x8, #8
	bl	_test_bit
	cbz	x0, LBB0_20
; %bb.19:
	ldr	x0, [sp, #8]
	bl	_stop_merge
	mov	w21, #0
	mov	w22, #0
	b	LBB0_9
LBB0_20:
	mov	w21, #0
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	__origins_lock,4,2              ; @_origins_lock
	.comm	_RUNNING_MERGE,4,2              ; @RUNNING_MERGE
	.comm	_SINGLE_DEPTH_NESTING,4,2       ; @SINGLE_DEPTH_NESTING
	.no_dead_strip	_snapshot_resume
.subsections_via_symbols
