	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snapshot_preresume
_snapshot_preresume:                    ## @snapshot_preresume
	.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, -24(%rbp)
	movq	$0, -32(%rbp)
	movq	__origins_lock@GOTPCREL(%rip), %rdi
	callq	_down_read
	xorl	%ebx, %ebx
	leaq	-24(%rbp), %rsi
	leaq	-32(%rbp), %rdx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	___find_snapshots_sharing_cow
	movq	-24(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.1:
	cmpq	$0, -32(%rbp)
	je	LBB0_8
## %bb.2:
	callq	_down_read
	movq	-24(%rbp), %rax
	cmpq	%rax, %r14
	je	LBB0_3
## %bb.4:
	movl	4(%rax), %edi
	callq	_dm_suspended
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_6
LBB0_3:
	leaq	L_.str(%rip), %rdi
LBB0_6:
	callq	_DMERR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movq	-24(%rbp), %rdi
	callq	_up_read
LBB0_8:
	movq	__origins_lock@GOTPCREL(%rip), %rdi
	callq	_up_read
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__origins_lock,4,2              ## @_origins_lock
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to resume snapshot source until handover completes."

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Unable to perform snapshot handover until source is suspended."

	.no_dead_strip	_snapshot_preresume
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snapshot_preresume
_snapshot_preresume:                    ; @snapshot_preresume
	.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	x8, x0, [sp]
	cmp	x0, #0
	ccmp	x8, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
	mov	w19, #0
	b	LBB0_9
LBB0_2:
	bl	_down_read
	ldr	x8, [sp, #8]
	cmp	x19, x8
	b.eq	LBB0_5
; %bb.3:
	ldr	w0, [x8, #4]
	bl	_dm_suspended
	cbz	w0, LBB0_6
; %bb.4:
	mov	w19, #0
	b	LBB0_8
LBB0_5:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_7:
	bl	_DMERR
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_8:
	ldr	x0, [sp, #8]
	bl	_up_read
LBB0_9:
Lloh9:
	adrp	x0, __origins_lock@GOTPAGE
Lloh10:
	ldr	x0, [x0, __origins_lock@GOTPAGEOFF]
	bl	_up_read
	mov	x0, x19
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	__origins_lock,4,2              ; @_origins_lock
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to resume snapshot source until handover completes."

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Unable to perform snapshot handover until source is suspended."

	.no_dead_strip	_snapshot_preresume
.subsections_via_symbols
