	.file	"extr_dsl_bookmark.c_dsl_get_bookmarks_impl.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	dsl_get_bookmarks_impl
	.type	dsl_get_bookmarks_impl, @function
dsl_get_bookmarks_impl:
.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, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR 8[rdi]
	mov	r15, QWORD PTR [rax]
	mov	rdi, r15
	call	dsl_pool_config_held@PLT
	mov	edi, eax
	call	ASSERT@PLT
	mov	rdi, rbx
	call	dsl_dataset_is_snapshot@PLT
	test	rax, rax
	jne	.L12
	mov	rdi, rbx
	call	avl_first@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	xor	eax, eax
	call	fnvlist_alloc@PLT
	lea	rsi, 4[rbp]
	mov	rdx, r13
	mov	rdi, r15
	mov	rcx, rax
	mov	r12, rax
	call	dsl_bookmark_fetch_props@PLT
	mov	esi, DWORD PTR 0[rbp]
	mov	rdx, r12
	mov	rdi, r14
	call	fnvlist_add_nvlist@PLT
	mov	rdi, r12
	call	fnvlist_free@PLT
	mov	rsi, rbp
	mov	rdi, rbx
	call	AVL_NEXT@PLT
	mov	rbp, rax
	test	rax, rax
	jne	.L4
.L5:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
.L12:
	.cfi_restore_state
	mov	edi, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.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
	jmp	SET_ERROR@PLT
	.cfi_endproc
.LFE0:
	.size	dsl_get_bookmarks_impl, .-dsl_get_bookmarks_impl
	.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_dsl_bookmark.c_dsl_get_bookmarks_impl.c"
	.text
	.align	2
	.global	dsl_get_bookmarks_impl
	.syntax unified
	.arm
	.fpu softvfp
	.type	dsl_get_bookmarks_impl, %function
dsl_get_bookmarks_impl:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, r0
	ldr	r3, [r0, #4]
	mov	r7, r1
	ldr	r9, [r3]
	mov	r8, r2
	mov	r0, r9
	bl	dsl_pool_config_held
	bl	ASSERT
	mov	r0, r6
	bl	dsl_dataset_is_snapshot
	cmp	r0, #0
	bne	.L11
	mov	r0, r6
	bl	avl_first
	subs	r4, r0, #0
	beq	.L1
.L4:
	bl	fnvlist_alloc
	mov	r5, r0
	mov	r3, r0
	add	r1, r4, #4
	mov	r2, r7
	mov	r0, r9
	bl	dsl_bookmark_fetch_props
	ldr	r1, [r4]
	mov	r2, r5
	mov	r0, r8
	bl	fnvlist_add_nvlist
	mov	r0, r5
	bl	fnvlist_free
	mov	r1, r4
	mov	r0, r6
	bl	AVL_NEXT
	subs	r4, r0, #0
	bne	.L4
.L1:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L11:
	ldr	r3, .L12
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r0, [r3]
	b	SET_ERROR
.L13:
	.align	2
.L12:
	.word	EINVAL
	.size	dsl_get_bookmarks_impl, .-dsl_get_bookmarks_impl
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
