	.file	"extr_zfs_namecheck.c_entity_namecheck.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	entity_namecheck
	.type	entity_namecheck, @function
entity_namecheck:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	strlen@PLT
	cmp	rax, QWORD PTR ZFS_MAX_DATASET_NAME_LEN[rip]
	jge	.L91
	movsx	edi, BYTE PTR [rbx]
	cmp	dil, 47
	je	.L92
	test	dil, dil
	je	.L87
	mov	r12, QWORD PTR B_FALSE[rip]
.L28:
	cmp	dil, 64
	je	.L9
	cmp	dil, 47
	je	.L9
	mov	r14, rbx
	mov	eax, edi
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L11:
	test	al, al
	je	.L15
	movzx	eax, BYTE PTR 1[r14]
	add	r14, 1
	cmp	al, 47
	je	.L10
	cmp	al, 64
	je	.L10
.L7:
	cmp	al, 35
	jne	.L11
.L16:
	cmp	rbx, r14
	je	.L13
	mov	r15, rbx
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L18:
	movsx	edi, BYTE PTR [r15]
.L12:
	call	valid_char@PLT
	test	eax, eax
	jne	.L17
	cmp	BYTE PTR [r15], 37
	jne	.L93
.L17:
	add	r15, 1
	cmp	r15, r14
	jne	.L18
	movzx	edi, BYTE PTR [r14]
	test	dil, dil
	sete	al
	cmp	dil, 47
	sete	cl
	or	cl, al
	jne	.L19
	xor	eax, eax
.L20:
	cmp	dil, 64
	je	.L34
	cmp	dil, 35
	je	.L34
.L23:
	cmp	r14, rbx
	je	.L87
	test	al, al
	jne	.L33
	test	r12, r12
	je	.L27
	test	cl, cl
	jne	.L89
.L27:
	movsx	edi, BYTE PTR 1[r14]
	lea	rbx, 1[r14]
	jmp	.L28
	.p2align 4,,10
	.p2align 3
.L10:
	test	al, al
	jne	.L16
.L15:
	cmp	BYTE PTR -1[r14], 47
	jne	.L16
.L89:
	test	rbp, rbp
	je	.L3
	mov	eax, DWORD PTR NAME_ERR_TRAILING_SLASH[rip]
	mov	DWORD PTR 0[rbp], eax
	mov	eax, -1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L34:
	test	r12, r12
	jne	.L94
	mov	r12, QWORD PTR B_TRUE[rip]
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L93:
	test	rbp, rbp
	je	.L3
	mov	eax, DWORD PTR NAME_ERR_INVALCHAR[rip]
	mov	DWORD PTR 0[rbp], eax
	movzx	eax, BYTE PTR [r15]
	mov	BYTE PTR 0[r13], al
	mov	eax, -1
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	sub	r15, rbx
	cmp	r15d, 1
	je	.L95
	cmp	r15d, 2
	jne	.L20
	cmp	BYTE PTR [rbx], 46
	jne	.L20
	cmp	BYTE PTR 1[rbx], 46
	jne	.L20
	test	rbp, rbp
	je	.L3
	mov	eax, DWORD PTR NAME_ERR_PARENT_REF[rip]
	mov	DWORD PTR 0[rbp], eax
	mov	eax, -1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L95:
	cmp	BYTE PTR [rbx], 46
	jne	.L20
	test	rbp, rbp
	je	.L3
	mov	eax, DWORD PTR NAME_ERR_SELF_REF[rip]
	mov	DWORD PTR 0[rbp], eax
	mov	eax, -1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, -1
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L9:
	.cfi_restore_state
	test	dil, dil
	jne	.L96
	cmp	BYTE PTR -1[rbx], 47
	je	.L89
	mov	r14, rbx
.L13:
	movzx	edi, BYTE PTR [r14]
.L21:
	test	dil, dil
	mov	edx, 0
	sete	al
	cmp	dil, 47
	sete	cl
	or	cl, al
	cmove	eax, edx
	jmp	.L20
.L96:
	mov	r14, rbx
	jmp	.L21
.L87:
	test	rbp, rbp
	je	.L3
	mov	eax, DWORD PTR NAME_ERR_EMPTY_COMPONENT[rip]
	mov	DWORD PTR 0[rbp], eax
	mov	eax, -1
	jmp	.L1
.L33:
	xor	eax, eax
	jmp	.L1
.L94:
	test	rbp, rbp
	je	.L3
	mov	eax, DWORD PTR NAME_ERR_MULTIPLE_DELIMITERS[rip]
	mov	DWORD PTR 0[rbp], eax
	mov	eax, -1
	jmp	.L1
.L91:
	test	rbp, rbp
	je	.L3
	mov	eax, DWORD PTR NAME_ERR_TOOLONG[rip]
	mov	DWORD PTR 0[rbp], eax
	mov	eax, -1
	jmp	.L1
.L92:
	test	rbp, rbp
	je	.L3
	mov	eax, DWORD PTR NAME_ERR_LEADING_SLASH[rip]
	mov	DWORD PTR 0[rbp], eax
	mov	eax, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	entity_namecheck, .-entity_namecheck
	.comm	ZFS_MAX_DATASET_NAME_LEN,8,8
	.comm	NAME_ERR_TRAILING_SLASH,4,4
	.comm	NAME_ERR_TOOLONG,4,4
	.comm	NAME_ERR_SELF_REF,4,4
	.comm	NAME_ERR_PARENT_REF,4,4
	.comm	NAME_ERR_MULTIPLE_DELIMITERS,4,4
	.comm	NAME_ERR_LEADING_SLASH,4,4
	.comm	NAME_ERR_INVALCHAR,4,4
	.comm	NAME_ERR_EMPTY_COMPONENT,4,4
	.comm	B_TRUE,8,8
	.comm	B_FALSE,8,8
	.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_zfs_namecheck.c_entity_namecheck.c"
	.text
	.align	2
	.global	entity_namecheck
	.syntax unified
	.arm
	.fpu softvfp
	.type	entity_namecheck, %function
entity_namecheck:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r7, r1
	mov	r9, r2
	mov	r6, r0
	bl	strlen
	ldr	r3, .L88
	ldr	r3, [r3]
	cmp	r0, r3
	bge	.L79
	ldrb	r0, [r6]	@ zero_extendqisi2
	cmp	r0, #47
	beq	.L80
	cmp	r0, #0
	beq	.L75
	ldr	r3, .L88+4
	ldr	r10, .L88+8
	ldr	r8, [r3]
.L26:
	cmp	r0, #64
	cmpne	r0, #47
	movne	r5, r6
	movne	r3, r0
	bne	.L7
	b	.L81
.L10:
	cmp	r3, #0
	beq	.L14
	ldrb	r3, [r5, #1]!	@ zero_extendqisi2
	cmp	r3, #47
	cmpne	r3, #64
	beq	.L82
.L7:
	cmp	r3, #35
	bne	.L10
.L15:
	cmp	r6, r5
	beq	.L11
	mov	r4, r6
	sub	fp, r5, #1
	b	.L12
.L17:
	ldrb	r0, [r4, #1]!	@ zero_extendqisi2
.L12:
	bl	valid_char
	cmp	r0, #0
	bne	.L16
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #37
	bne	.L83
.L16:
	cmp	fp, r4
	bne	.L17
	ldrb	r0, [r5]	@ zero_extendqisi2
	clz	r3, r0
	lsr	r3, r3, #5
	cmp	r0, #47
	movne	r2, r3
	orreq	r2, r3, #1
	cmp	r2, #0
	moveq	r3, r2
	beq	.L19
	sub	r1, r5, r6
	cmp	r1, #1
	beq	.L84
	cmp	r1, #2
	bne	.L19
	ldrb	r1, [r6]	@ zero_extendqisi2
	cmp	r1, #46
	beq	.L85
.L19:
	cmp	r0, #35
	cmpne	r0, #64
	bne	.L22
	cmp	r8, #0
	bne	.L86
	ldr	r8, [r10]
.L22:
	cmp	r6, r5
	beq	.L75
	cmp	r3, #0
	bne	.L30
	cmp	r8, #0
	moveq	r2, #0
	cmp	r2, #0
	bne	.L77
	ldrb	r0, [r5, #1]	@ zero_extendqisi2
	add	r6, r5, #1
	b	.L26
.L82:
	cmp	r3, #0
	bne	.L15
.L14:
	ldrb	r3, [r5, #-1]	@ zero_extendqisi2
	cmp	r3, #47
	bne	.L15
.L77:
	cmp	r7, #0
	beq	.L3
	ldr	r3, .L88+12
	mvn	r0, #0
	ldr	r3, [r3]
	str	r3, [r7]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L83:
	cmp	r7, #0
	beq	.L3
	ldr	r3, .L88+16
	mvn	r0, #0
	ldr	r3, [r3]
	str	r3, [r7]
	ldrb	r3, [r4]	@ zero_extendqisi2
	strb	r3, [r9]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L84:
	ldrb	r1, [r6]	@ zero_extendqisi2
	cmp	r1, #46
	bne	.L19
	cmp	r7, #0
	beq	.L3
	ldr	r3, .L88+20
	mvn	r0, #0
	ldr	r3, [r3]
	str	r3, [r7]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L3:
	mvn	r0, #0
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L85:
	ldrb	r1, [r6, #1]	@ zero_extendqisi2
	cmp	r1, #46
	bne	.L19
	cmp	r7, #0
	beq	.L3
	ldr	r3, .L88+24
	mvn	r0, #0
	ldr	r3, [r3]
	str	r3, [r7]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L81:
	cmp	r0, #0
	bne	.L87
	ldrb	r3, [r6, #-1]	@ zero_extendqisi2
	cmp	r3, #47
	beq	.L77
	mov	r5, r6
.L11:
	ldrb	r0, [r5]	@ zero_extendqisi2
.L20:
	clz	r3, r0
	lsr	r3, r3, #5
	cmp	r0, #47
	movne	r2, r3
	orreq	r2, r3, #1
	cmp	r2, #0
	moveq	r3, #0
	b	.L19
.L87:
	mov	r5, r6
	b	.L20
.L75:
	cmp	r7, #0
	beq	.L3
	ldr	r3, .L88+28
	mvn	r0, #0
	ldr	r3, [r3]
	str	r3, [r7]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L30:
	mov	r0, #0
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L86:
	cmp	r7, #0
	beq	.L3
	ldr	r3, .L88+32
	mvn	r0, #0
	ldr	r3, [r3]
	str	r3, [r7]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L79:
	cmp	r7, #0
	beq	.L3
	ldr	r3, .L88+36
	mvn	r0, #0
	ldr	r3, [r3]
	str	r3, [r7]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L80:
	cmp	r7, #0
	beq	.L3
	ldr	r3, .L88+40
	mvn	r0, #0
	ldr	r3, [r3]
	str	r3, [r7]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L89:
	.align	2
.L88:
	.word	ZFS_MAX_DATASET_NAME_LEN
	.word	B_FALSE
	.word	B_TRUE
	.word	NAME_ERR_TRAILING_SLASH
	.word	NAME_ERR_INVALCHAR
	.word	NAME_ERR_SELF_REF
	.word	NAME_ERR_PARENT_REF
	.word	NAME_ERR_EMPTY_COMPONENT
	.word	NAME_ERR_MULTIPLE_DELIMITERS
	.word	NAME_ERR_TOOLONG
	.word	NAME_ERR_LEADING_SLASH
	.size	entity_namecheck, .-entity_namecheck
	.comm	ZFS_MAX_DATASET_NAME_LEN,4,4
	.comm	NAME_ERR_TRAILING_SLASH,4,4
	.comm	NAME_ERR_TOOLONG,4,4
	.comm	NAME_ERR_SELF_REF,4,4
	.comm	NAME_ERR_PARENT_REF,4,4
	.comm	NAME_ERR_MULTIPLE_DELIMITERS,4,4
	.comm	NAME_ERR_LEADING_SLASH,4,4
	.comm	NAME_ERR_INVALCHAR,4,4
	.comm	NAME_ERR_EMPTY_COMPONENT,4,4
	.comm	B_TRUE,4,4
	.comm	B_FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
