	.file	"extr_libzfs_core.c_lzc_snapshot.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"/@"
.LC1:
	.string	"snaps"
.LC2:
	.string	"props"
	.text
	.p2align 4
	.globl	lzc_snapshot
	.type	lzc_snapshot, @function
lzc_snapshot:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	mov	r14, rsi
	push	r13
	.cfi_offset 13, -40
	mov	r13, rdx
	push	r12
	push	rbx
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 40
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR ZFS_MAX_DATASET_NAME_LEN[rip]
	mov	rcx, rsp
	mov	r12, rax
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L18:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L18
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L19
.L4:
	mov	QWORD PTR 0[r13], 0
	mov	rdi, rbx
	xor	esi, esi
	mov	r15, rsp
	call	nvlist_next_nvpair@PLT
	xor	r8d, r8d
	mov	rdi, rax
	test	rax, rax
	je	.L1
	call	nvpair_name@PLT
	mov	edx, r12d
	mov	rdi, rsp
	mov	esi, eax
	call	strlcpy@PLT
	lea	rsi, .LC0[rip]
	mov	rdi, rsp
	call	strcspn@PLT
	mov	BYTE PTR [rsp+rax], 0
	xor	eax, eax
	call	fnvlist_alloc@PLT
	mov	rdx, rbx
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	r12, rax
	call	fnvlist_add_nvlist@PLT
	test	r14, r14
	je	.L6
	mov	rdx, r14
	lea	rsi, .LC2[rip]
	mov	rdi, r12
	call	fnvlist_add_nvlist@PLT
.L6:
	mov	edi, DWORD PTR ZFS_IOC_SNAPSHOT[rip]
	mov	rcx, r13
	mov	rdx, r12
	mov	rsi, r15
	call	lzc_ioctl@PLT
	mov	rdi, r12
	mov	DWORD PTR -68[rbp], eax
	call	nvlist_free@PLT
	mov	r8d, DWORD PTR -68[rbp]
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L20
	lea	rsp, -40[rbp]
	mov	eax, r8d
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	lzc_snapshot, .-lzc_snapshot
	.comm	ZFS_MAX_DATASET_NAME_LEN,4,4
	.comm	ZFS_IOC_SNAPSHOT,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_libzfs_core.c_lzc_snapshot.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"/@\000"
	.align	2
.LC1:
	.ascii	"snaps\000"
	.align	2
.LC2:
	.ascii	"props\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	lzc_snapshot
	.syntax unified
	.arm
	.fpu softvfp
	.type	lzc_snapshot, %function
lzc_snapshot:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #12
	mov	r7, #0
	mov	r5, r2
	ldr	r3, .L12
	ldr	r2, .L12+4
	ldr	r8, [r3]
	ldr	r2, [r2]
	str	r2, [fp, #-40]
	mov	r2,#0
	add	r3, r8, #7
	bic	r3, r3, #7
	mov	r6, r1
	sub	sp, sp, r3
	mov	r1, r7
	str	r7, [r5]
	mov	r9, r0
	bl	nvlist_next_nvpair
	subs	r4, r0, #0
	beq	.L1
	bl	nvpair_name
	mov	r2, r8
	mov	r1, r0
	mov	r0, sp
	bl	strlcpy
	ldr	r1, .L12+8
	mov	r0, sp
	bl	strcspn
	strb	r7, [sp, r0]
	bl	fnvlist_alloc
	mov	r2, r9
	ldr	r1, .L12+12
	mov	r7, r0
	bl	fnvlist_add_nvlist
	cmp	r6, #0
	mov	r10, sp
	beq	.L3
	mov	r2, r6
	mov	r0, r7
	ldr	r1, .L12+16
	bl	fnvlist_add_nvlist
.L3:
	ldr	r2, .L12+20
	mov	r3, r5
	ldr	r0, [r2]
	mov	r1, r10
	mov	r2, r7
	bl	lzc_ioctl
	mov	r4, r0
	mov	r0, r7
	bl	nvlist_free
.L1:
	ldr	r3, .L12+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	mov	r0, r4
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	ZFS_MAX_DATASET_NAME_LEN
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	ZFS_IOC_SNAPSHOT
	.size	lzc_snapshot, .-lzc_snapshot
	.comm	ZFS_MAX_DATASET_NAME_LEN,4,4
	.comm	ZFS_IOC_SNAPSHOT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
