	.file	"extr_zfs_ioctl.c_zfs_ioc_snapshot.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"props"
.LC1:
	.string	"snaps"
	.text
	.p2align 4
	.type	zfs_ioc_snapshot, @function
zfs_ioc_snapshot:
.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
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	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
	lea	rsi, .LC0[rip]
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rdi, rbp
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	QWORD PTR 24[rsp], rdx
	lea	rdx, 32[rsp]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	QWORD PTR 32[rsp], 0
	call	nvlist_lookup_nvlist@PLT
	mov	rdi, QWORD PTR 32[rsp]
	call	nvlist_empty@PLT
	test	eax, eax
	jne	.L2
	mov	esi, DWORD PTR SPA_VERSION_SNAP_PROPS[rip]
	mov	rdi, r14
	call	zfs_earlier_version@PLT
	test	rax, rax
	jne	.L33
.L2:
	mov	rdi, QWORD PTR 32[rsp]
	call	zfs_check_userprops@PLT
	test	eax, eax
	je	.L34
.L1:
	mov	rcx, QWORD PTR 40[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L35
	add	rsp, 56
	.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
.L34:
	.cfi_restore_state
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	call	fnvlist_lookup_nvlist@PLT
	mov	rdi, r14
	mov	r12, rax
	call	strlen@PLT
	xor	esi, esi
	mov	rdi, r12
	mov	DWORD PTR 12[rsp], eax
	mov	ebx, eax
	call	nvlist_next_nvpair@PLT
	mov	r13, rax
	test	rax, rax
	je	.L13
	movsx	rax, ebx
	mov	QWORD PTR 16[rsp], rax
.L4:
	mov	rdi, r13
	call	nvpair_name@PLT
	mov	esi, 64
	mov	rdi, rax
	mov	rbp, rax
	call	strchr@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L6
	xor	edx, edx
	xor	esi, esi
	lea	rdi, 1[rax]
	call	zfs_component_namecheck@PLT
	test	rax, rax
	jne	.L6
	mov	edx, DWORD PTR 12[rsp]
	mov	rsi, r14
	mov	rdi, rbp
	call	strncmp@PLT
	test	rax, rax
	jne	.L31
	mov	rax, QWORD PTR 16[rsp]
	movzx	eax, BYTE PTR 0[rbp+rax]
	cmp	al, 47
	je	.L8
	cmp	al, 64
	jne	.L31
.L8:
	mov	rdi, QWORD PTR 32[rsp]
	call	nvlist_empty@PLT
	test	eax, eax
	jne	.L12
	mov	BYTE PTR [rbx], 0
	xor	eax, eax
	call	CRED@PLT
	mov	esi, DWORD PTR ZFS_DELEG_PERM_USERPROP[rip]
	mov	rdi, rbp
	mov	edx, eax
	call	zfs_secpolicy_write_perms@PLT
	mov	BYTE PTR [rbx], 64
	test	eax, eax
	jne	.L1
.L12:
	mov	rsi, r13
	mov	rdi, r12
	sub	rbx, rbp
	call	nvlist_next_nvpair@PLT
	add	ebx, 1
	mov	r15, rax
	test	rax, rax
	jne	.L15
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rsi, r15
	mov	rdi, r12
	call	nvlist_next_nvpair@PLT
	mov	r15, rax
	test	rax, rax
	je	.L11
.L15:
	mov	rdi, r15
	call	nvpair_name@PLT
	mov	edx, ebx
	mov	rdi, rbp
	mov	rsi, rax
	call	strncmp@PLT
	test	rax, rax
	jne	.L14
.L31:
	mov	edi, DWORD PTR EXDEV[rip]
	call	SET_ERROR@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rsi, r13
	mov	rdi, r12
	call	nvlist_next_nvpair@PLT
	mov	r13, rax
	test	rax, rax
	jne	.L4
.L13:
	mov	rdx, QWORD PTR 24[rsp]
	mov	rsi, QWORD PTR 32[rsp]
	mov	rdi, r12
	call	dsl_dataset_snapshot@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L33:
	mov	edi, DWORD PTR ENOTSUP[rip]
	call	SET_ERROR@PLT
	jmp	.L1
.L6:
	mov	edi, DWORD PTR EINVAL[rip]
	call	SET_ERROR@PLT
	jmp	.L1
.L35:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	zfs_ioc_snapshot, .-zfs_ioc_snapshot
	.comm	ZFS_DELEG_PERM_USERPROP,4,4
	.comm	SPA_VERSION_SNAP_PROPS,4,4
	.comm	EXDEV,4,4
	.comm	ENOTSUP,4,4
	.comm	EINVAL,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_ioctl.c_zfs_ioc_snapshot.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"props\000"
	.align	2
.LC1:
	.ascii	"snaps\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	zfs_ioc_snapshot, %function
zfs_ioc_snapshot:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	ip, .L30
	sub	sp, sp, #12
	mov	r4, r1
	mov	r8, r0
	mov	r9, r2
	mov	r0, r1
	mov	r2, sp
	ldr	r1, .L30+4
	ldr	ip, [ip]
	str	ip, [sp, #4]
	mov	ip,#0
	str	r3, [sp]
	bl	nvlist_lookup_nvlist
	ldr	r0, [sp]
	bl	nvlist_empty
	cmp	r0, #0
	bne	.L2
	ldr	r3, .L30+8
	mov	r0, r8
	ldr	r1, [r3]
	bl	zfs_earlier_version
	cmp	r0, #0
	bne	.L27
.L2:
	ldr	r0, [sp]
	bl	zfs_check_userprops
	subs	fp, r0, #0
	beq	.L28
.L1:
	ldr	r3, .L30
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L29
	mov	r0, fp
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L28:
	ldr	r1, .L30+12
	mov	r0, r4
	bl	fnvlist_lookup_nvlist
	mov	r6, r0
	mov	r0, r8
	bl	strlen
	mov	r1, fp
	mov	r10, r0
	mov	r0, r6
	bl	nvlist_next_nvpair
	subs	r7, r0, #0
	beq	.L13
.L4:
	mov	r0, r7
	bl	nvpair_name
	mov	r1, #64
	mov	fp, r0
	bl	strchr
	subs	r5, r0, #0
	beq	.L6
	mov	r2, #0
	add	r0, r5, #1
	mov	r1, r2
	bl	zfs_component_namecheck
	cmp	r0, #0
	bne	.L6
	mov	r2, r10
	mov	r1, r8
	mov	r0, fp
	bl	strncmp
	cmp	r0, #0
	bne	.L25
	ldrb	r3, [fp, r10]	@ zero_extendqisi2
	cmp	r3, #47
	cmpne	r3, #64
	bne	.L25
	ldr	r0, [sp]
	bl	nvlist_empty
	cmp	r0, #0
	bne	.L12
	ldr	r3, .L30+16
	strb	r0, [r5]
	ldr	r4, [r3]
	bl	CRED
	mov	r1, r4
	mov	r2, r0
	mov	r0, fp
	bl	zfs_secpolicy_write_perms
	mov	r3, #64
	cmp	r0, #0
	strb	r3, [r5]
	bne	.L24
.L12:
	mov	r1, r7
	mov	r0, r6
	bl	nvlist_next_nvpair
	subs	r4, r0, #0
	subne	r5, r5, fp
	addne	r5, r5, #1
	bne	.L15
	b	.L11
.L14:
	mov	r1, r4
	mov	r0, r6
	bl	nvlist_next_nvpair
	subs	r4, r0, #0
	beq	.L11
.L15:
	mov	r0, r4
	bl	nvpair_name
	mov	r2, r5
	mov	r1, r0
	mov	r0, fp
	bl	strncmp
	cmp	r0, #0
	bne	.L14
.L25:
	ldr	r3, .L30+20
	ldr	r0, [r3]
	bl	SET_ERROR
.L24:
	mov	fp, r0
	b	.L1
.L11:
	mov	r1, r7
	mov	r0, r6
	bl	nvlist_next_nvpair
	subs	r7, r0, #0
	bne	.L4
.L13:
	mov	r2, r9
	mov	r0, r6
	ldr	r1, [sp]
	bl	dsl_dataset_snapshot
	mov	fp, r0
	b	.L1
.L27:
	ldr	r3, .L30+24
	ldr	r0, [r3]
	bl	SET_ERROR
	mov	fp, r0
	b	.L1
.L6:
	ldr	r3, .L30+28
	ldr	r0, [r3]
	bl	SET_ERROR
	mov	fp, r0
	b	.L1
.L29:
	bl	__stack_chk_fail
.L31:
	.align	2
.L30:
	.word	.LC2
	.word	.LC0
	.word	SPA_VERSION_SNAP_PROPS
	.word	.LC1
	.word	ZFS_DELEG_PERM_USERPROP
	.word	EXDEV
	.word	ENOTSUP
	.word	EINVAL
	.size	zfs_ioc_snapshot, .-zfs_ioc_snapshot
	.comm	ZFS_DELEG_PERM_USERPROP,4,4
	.comm	SPA_VERSION_SNAP_PROPS,4,4
	.comm	EXDEV,4,4
	.comm	ENOTSUP,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
