	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_be_validate_name               ## -- Begin function be_validate_name
	.p2align	4, 0x90
_be_validate_name:                      ## @be_validate_name
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	(%rdi), %rdi
	callq	_strlen
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_strlen
	addq	%rbx, %rax
	incq	%rax
	movq	_MAXNAMELEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_2
## %bb.1:
	movq	_BE_ERR_PATHLEN@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_2:
	movq	_ZFS_TYPE_DATASET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_zfs_name_valid
	testl	%eax, %eax
	jne	LBB0_3
## %bb.4:
	movq	_BE_ERR_INVALIDNAME@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_BE_ERR_SUCCESS@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXNAMELEN,8,3                 ## @MAXNAMELEN
	.comm	_BE_ERR_PATHLEN,4,2             ## @BE_ERR_PATHLEN
	.comm	_ZFS_TYPE_DATASET,4,2           ## @ZFS_TYPE_DATASET
	.comm	_BE_ERR_INVALIDNAME,4,2         ## @BE_ERR_INVALIDNAME
	.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_name               ; -- Begin function be_validate_name
	.p2align	2
_be_validate_name:                      ; @be_validate_name
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	x0, [x0]
	bl	_strlen
	mov	x20, x0
	mov	x0, x19
	bl	_strlen
	add	x8, x20, x0
	add	x8, x8, #1
Lloh0:
	adrp	x9, _MAXNAMELEN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAXNAMELEN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _BE_ERR_PATHLEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BE_ERR_PATHLEN@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x8, _ZFS_TYPE_DATASET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ZFS_TYPE_DATASET@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_zfs_name_valid
Lloh8:
	adrp	x8, _BE_ERR_SUCCESS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BE_ERR_SUCCESS@GOTPAGEOFF]
Lloh10:
	adrp	x9, _BE_ERR_INVALIDNAME@GOTPAGE
Lloh11:
	ldr	x9, [x9, _BE_ERR_INVALIDNAME@GOTPAGEOFF]
	cmp	w0, #0
	csel	x8, x9, x8, eq
LBB0_3:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXNAMELEN,8,3                 ; @MAXNAMELEN
	.comm	_BE_ERR_PATHLEN,4,2             ; @BE_ERR_PATHLEN
	.comm	_ZFS_TYPE_DATASET,4,2           ; @ZFS_TYPE_DATASET
	.comm	_BE_ERR_INVALIDNAME,4,2         ; @BE_ERR_INVALIDNAME
	.comm	_BE_ERR_SUCCESS,4,2             ; @BE_ERR_SUCCESS
.subsections_via_symbols
