	.file	"extr_be.c_be_validate_snap.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	be_validate_snap
	.type	be_validate_snap, @function
be_validate_snap:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	mov	rdi, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	strlen@PLT
	cmp	rax, QWORD PTR BE_MAXPATHLEN[rip]
	jl	.L2
	mov	eax, DWORD PTR BE_ERR_PATHLEN[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	esi, DWORD PTR ZFS_TYPE_SNAPSHOT[rip]
	mov	rdi, rbp
	call	zfs_name_valid@PLT
	test	eax, eax
	jne	.L4
	mov	eax, DWORD PTR BE_ERR_INVALIDNAME[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	edi, DWORD PTR [rbx]
	mov	edx, DWORD PTR ZFS_TYPE_SNAPSHOT[rip]
	mov	rsi, rbp
	call	zfs_dataset_exists@PLT
	test	eax, eax
	mov	eax, DWORD PTR BE_ERR_NOENT[rip]
	cmovne	eax, DWORD PTR BE_ERR_SUCCESS[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	be_validate_snap, .-be_validate_snap
	.comm	ZFS_TYPE_SNAPSHOT,4,4
	.comm	BE_MAXPATHLEN,8,8
	.comm	BE_ERR_SUCCESS,4,4
	.comm	BE_ERR_PATHLEN,4,4
	.comm	BE_ERR_NOENT,4,4
	.comm	BE_ERR_INVALIDNAME,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_be.c_be_validate_snap.c"
	.text
	.align	2
	.global	be_validate_snap
	.syntax unified
	.arm
	.fpu softvfp
	.type	be_validate_snap, %function
be_validate_snap:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	mov	r0, r1
	mov	r4, r1
	bl	strlen
	ldr	r3, .L8
	ldr	r3, [r3]
	cmp	r0, r3
	blt	.L2
	ldr	r3, .L8+4
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r6, .L8+8
	mov	r0, r4
	ldr	r1, [r6]
	bl	zfs_name_valid
	cmp	r0, #0
	bne	.L4
	ldr	r3, .L8+12
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L4:
	mov	r1, r4
	ldr	r2, [r6]
	ldr	r0, [r5]
	bl	zfs_dataset_exists
	cmp	r0, #0
	ldreq	r3, .L8+16
	ldrne	r3, .L8+20
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L9:
	.align	2
.L8:
	.word	BE_MAXPATHLEN
	.word	BE_ERR_PATHLEN
	.word	ZFS_TYPE_SNAPSHOT
	.word	BE_ERR_INVALIDNAME
	.word	BE_ERR_NOENT
	.word	BE_ERR_SUCCESS
	.size	be_validate_snap, .-be_validate_snap
	.comm	ZFS_TYPE_SNAPSHOT,4,4
	.comm	BE_MAXPATHLEN,4,4
	.comm	BE_ERR_SUCCESS,4,4
	.comm	BE_ERR_PATHLEN,4,4
	.comm	BE_ERR_NOENT,4,4
	.comm	BE_ERR_INVALIDNAME,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
