	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_be_validate_snap               ## -- Begin function be_validate_snap
	.p2align	4, 0x90
_be_validate_snap:                      ## @be_validate_snap
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_strlen
	movq	_BE_MAXPATHLEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_1
## %bb.2:
	movq	_ZFS_TYPE_SNAPSHOT@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_zfs_name_valid
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	(%r14), %edi
	movl	(%r15), %edx
	movq	%rbx, %rsi
	callq	_zfs_dataset_exists
	testl	%eax, %eax
	jne	LBB0_5
## %bb.6:
	movq	_BE_ERR_NOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_1:
	movq	_BE_ERR_PATHLEN@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_3:
	movq	_BE_ERR_INVALIDNAME@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_BE_ERR_SUCCESS@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BE_MAXPATHLEN,8,3              ## @BE_MAXPATHLEN
	.comm	_BE_ERR_PATHLEN,4,2             ## @BE_ERR_PATHLEN
	.comm	_ZFS_TYPE_SNAPSHOT,4,2          ## @ZFS_TYPE_SNAPSHOT
	.comm	_BE_ERR_INVALIDNAME,4,2         ## @BE_ERR_INVALIDNAME
	.comm	_BE_ERR_NOENT,4,2               ## @BE_ERR_NOENT
	.comm	_BE_ERR_SUCCESS,4,2             ## @BE_ERR_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_be_validate_snap               ; -- Begin function be_validate_snap
	.p2align	2
_be_validate_snap:                      ; @be_validate_snap
	.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, x1
	mov	x20, x0
	mov	x0, x1
	bl	_strlen
Lloh0:
	adrp	x8, _BE_MAXPATHLEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BE_MAXPATHLEN@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_3
; %bb.1:
Lloh3:
	adrp	x21, _ZFS_TYPE_SNAPSHOT@GOTPAGE
Lloh4:
	ldr	x21, [x21, _ZFS_TYPE_SNAPSHOT@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_zfs_name_valid
	cbz	w0, LBB0_4
; %bb.2:
	ldr	w0, [x20]
	ldr	w2, [x21]
	mov	x1, x19
	bl	_zfs_dataset_exists
Lloh5:
	adrp	x8, _BE_ERR_SUCCESS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BE_ERR_SUCCESS@GOTPAGEOFF]
Lloh7:
	adrp	x9, _BE_ERR_NOENT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _BE_ERR_NOENT@GOTPAGEOFF]
	cmp	w0, #0
	csel	x8, x9, x8, eq
	b	LBB0_5
LBB0_3:
Lloh9:
	adrp	x8, _BE_ERR_PATHLEN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BE_ERR_PATHLEN@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh11:
	adrp	x8, _BE_ERR_INVALIDNAME@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BE_ERR_INVALIDNAME@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_BE_MAXPATHLEN,8,3              ; @BE_MAXPATHLEN
	.comm	_BE_ERR_PATHLEN,4,2             ; @BE_ERR_PATHLEN
	.comm	_ZFS_TYPE_SNAPSHOT,4,2          ; @ZFS_TYPE_SNAPSHOT
	.comm	_BE_ERR_INVALIDNAME,4,2         ; @BE_ERR_INVALIDNAME
	.comm	_BE_ERR_NOENT,4,2               ; @BE_ERR_NOENT
	.comm	_BE_ERR_SUCCESS,4,2             ; @BE_ERR_SUCCESS
.subsections_via_symbols
