	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __validate_exception_handover
___validate_exception_handover:         ## @__validate_exception_handover
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	$0, -16(%rbp)
	movq	$0, -32(%rbp)
	movq	$0, -24(%rbp)
	leaq	-16(%rbp), %rsi
	leaq	-32(%rbp), %rdx
	leaq	-24(%rbp), %rcx
	callq	___find_snapshots_sharing_cow
	leaq	L_.str(%rip), %rcx
	cmpl	$2, %eax
	je	LBB0_9
## %bb.1:
	cmpq	$0, -32(%rbp)
	jne	LBB0_9
## %bb.2:
	cmpq	$0, -16(%rbp)
	je	LBB0_3
## %bb.4:
	movq	(%rbx), %rdi
	callq	_dm_target_is_snapshot_merge
	movl	%eax, %ecx
	movl	$1, %eax
	testl	%ecx, %ecx
	je	LBB0_10
## %bb.5:
	cmpq	$0, -24(%rbp)
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rcx
LBB0_9:
	movq	(%rbx), %rax
	movq	%rcx, (%rax)
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_10
LBB0_3:
	xorl	%eax, %eax
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_7:
	movq	-16(%rbp), %rcx
	movq	8(%rcx), %rcx
	movq	(%rcx), %rdx
	leaq	L_.str.2(%rip), %rcx
	cmpl	$0, 4(%rdx)
	je	LBB0_9
## %bb.8:
	cmpl	$0, (%rdx)
	jne	LBB0_10
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Snapshot cow pairing for exception table handover failed"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"A snapshot is already merging."

L_.str.2:                               ## @.str.2
	.asciz	"Snapshot exception store does not support snapshot-merge."

	.no_dead_strip	___validate_exception_handover
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __validate_exception_handover
___validate_exception_handover:         ; @__validate_exception_handover
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	stp	xzr, xzr, [sp, #16]
	str	xzr, [sp, #8]
	add	x1, sp, #24
	add	x2, sp, #16
	add	x3, sp, #8
	bl	___find_snapshots_sharing_cow
	ldr	x8, [sp, #16]
	cmp	w0, #2
	ccmp	x8, #0, #0, ne
	b.eq	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	b	LBB0_11
LBB0_2:
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_6
; %bb.3:
	ldr	x0, [x19]
	bl	_dm_target_is_snapshot_merge
	cbz	w0, LBB0_9
; %bb.4:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_7
; %bb.5:
Lloh2:
	adrp	x8, l_.str.1@PAGE
Lloh3:
	add	x8, x8, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_6:
	mov	w0, #0
	b	LBB0_12
LBB0_7:
	ldr	x8, [sp, #24]
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	ldr	w9, [x8, #4]
	cbz	w9, LBB0_10
; %bb.8:
	ldr	w8, [x8]
	cbz	w8, LBB0_10
LBB0_9:
	mov	w0, #1
	b	LBB0_12
LBB0_10:
Lloh4:
	adrp	x8, l_.str.2@PAGE
Lloh5:
	add	x8, x8, l_.str.2@PAGEOFF
LBB0_11:
	ldr	x9, [x19]
	str	x8, [x9]
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Snapshot cow pairing for exception table handover failed"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"A snapshot is already merging."

l_.str.2:                               ; @.str.2
	.asciz	"Snapshot exception store does not support snapshot-merge."

	.no_dead_strip	___validate_exception_handover
.subsections_via_symbols
