	.file	"extr_zfs_namecheck.c_mountpoint_namecheck.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	mountpoint_namecheck
	.type	mountpoint_namecheck, @function
mountpoint_namecheck:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L2
	cmp	BYTE PTR [rdi], 47
	jne	.L2
	lea	rcx, 1[rdi]
	movsx	rdi, DWORD PTR ZFS_MAX_DATASET_NAME_LEN[rip]
	.p2align 4,,10
	.p2align 3
.L9:
	movzx	eax, BYTE PTR [rcx]
	mov	rdx, rcx
	test	al, al
	je	.L11
	cmp	al, 47
	je	.L11
	.p2align 4,,10
	.p2align 3
.L6:
	movzx	eax, BYTE PTR 1[rdx]
	add	rdx, 1
	cmp	al, 47
	je	.L13
	test	al, al
	jne	.L6
.L13:
	mov	r8, rdx
	sub	r8, rcx
	mov	rcx, r8
	cmp	rdi, rcx
	jle	.L31
.L8:
	lea	rcx, 1[rdx]
	test	al, al
	jne	.L9
	xor	eax, eax
.L1:
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	xor	ecx, ecx
	cmp	rdi, rcx
	jg	.L8
.L31:
	mov	eax, -1
	test	rsi, rsi
	je	.L1
	mov	edx, DWORD PTR NAME_ERR_TOOLONG[rip]
	mov	DWORD PTR [rsi], edx
	ret
.L2:
	mov	eax, -1
	test	rsi, rsi
	je	.L1
	mov	edx, DWORD PTR NAME_ERR_LEADING_SLASH[rip]
	mov	DWORD PTR [rsi], edx
	ret
	.cfi_endproc
.LFE0:
	.size	mountpoint_namecheck, .-mountpoint_namecheck
	.comm	ZFS_MAX_DATASET_NAME_LEN,4,4
	.comm	NAME_ERR_TOOLONG,4,4
	.comm	NAME_ERR_LEADING_SLASH,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_zfs_namecheck.c_mountpoint_namecheck.c"
	.text
	.align	2
	.global	mountpoint_namecheck
	.syntax unified
	.arm
	.fpu softvfp
	.type	mountpoint_namecheck, %function
mountpoint_namecheck:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	subs	r2, r0, #0
	beq	.L2
	ldrb	r3, [r2]	@ zero_extendqisi2
	cmp	r3, #47
	bne	.L2
	ldr	r3, .L23
	str	lr, [sp, #-4]!
	ldr	lr, [r3]
	add	ip, r2, #1
.L8:
	ldrb	r0, [ip]	@ zero_extendqisi2
	mov	r3, ip
	subs	r2, r0, #47
	movne	r2, #1
	cmp	r0, #0
	moveq	r2, #0
	cmp	r2, #0
	beq	.L5
.L6:
	ldrb	r0, [r3, #1]!	@ zero_extendqisi2
	cmp	r0, #47
	cmpne	r0, #0
	bne	.L6
	sub	r2, r3, ip
.L5:
	cmp	lr, r2
	ble	.L22
	cmp	r0, #0
	add	ip, r3, #1
	bne	.L8
	ldr	pc, [sp], #4
.L22:
	cmp	r1, #0
	beq	.L11
	ldr	r3, .L23+4
	mvn	r0, #0
	ldr	r3, [r3]
	str	r3, [r1]
	ldr	pc, [sp], #4
.L11:
	mvn	r0, #0
	ldr	pc, [sp], #4
.L2:
	cmp	r1, #0
	beq	.L9
	ldr	r3, .L23+8
	mvn	r0, #0
	ldr	r3, [r3]
	str	r3, [r1]
	bx	lr
.L9:
	mvn	r0, #0
	bx	lr
.L24:
	.align	2
.L23:
	.word	ZFS_MAX_DATASET_NAME_LEN
	.word	NAME_ERR_TOOLONG
	.word	NAME_ERR_LEADING_SLASH
	.size	mountpoint_namecheck, .-mountpoint_namecheck
	.comm	ZFS_MAX_DATASET_NAME_LEN,4,4
	.comm	NAME_ERR_TOOLONG,4,4
	.comm	NAME_ERR_LEADING_SLASH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
