	.file	"extr_nvpair.c_nvs_embedded.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	nvs_embedded, @function
nvs_embedded:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	eax, DWORD PTR [rdi]
	mov	rbx, rdi
	cmp	eax, 128
	je	.L2
	cmp	eax, 129
	jne	.L14
	mov	eax, DWORD PTR NV_VERSION[rip]
	mov	r12d, DWORD PTR ENOTSUP[rip]
	cmp	DWORD PTR 4[rsi], eax
	je	.L17
.L1:
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	eax, DWORD PTR 4[rdi]
	cmp	eax, DWORD PTR nvpair_max_recursion[rip]
	jl	.L5
.L14:
	mov	r12d, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	add	eax, 1
	xor	edx, edx
	mov	DWORD PTR 4[rdi], eax
	call	nvs_operation@PLT
	sub	DWORD PTR 4[rbx], 1
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	r12d, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	mov	edi, DWORD PTR 8[rdi]
	call	nv_priv_alloc_embedded@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	mov	rdx, rax
	test	rax, rax
	je	.L1
	mov	esi, DWORD PTR 0[rbp]
	mov	rdi, rbp
	call	nvlist_init@PLT
	mov	eax, DWORD PTR 4[rbx]
	cmp	eax, DWORD PTR nvpair_max_recursion[rip]
	jge	.L18
	add	eax, 1
	xor	edx, edx
	mov	rsi, rbp
	mov	rdi, rbx
	mov	DWORD PTR 4[rbx], eax
	call	nvs_operation@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L19
.L10:
	sub	DWORD PTR 4[rbx], 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rdi, rbp
	call	nvlist_free@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rdi, rbp
	call	nvlist_free@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	nvs_embedded, .-nvs_embedded
	.comm	nvpair_max_recursion,4,4
	.comm	NV_VERSION,4,4
	.comm	ENOTSUP,4,4
	.comm	ENOMEM,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_nvpair.c_nvs_embedded.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nvs_embedded, %function
nvs_embedded:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, r5, r6, lr}
	cmp	r3, #128
	mov	r4, r0
	beq	.L2
	cmp	r3, #129
	bne	.L14
	ldr	r3, .L20
	ldr	r2, [r1, #4]
	ldr	r3, [r3]
	mov	r6, r1
	cmp	r2, r3
	beq	.L7
	ldr	r3, .L20+4
	ldr	r5, [r3]
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r2, .L20+8
	ldr	r3, [r0, #4]
	ldr	r2, [r2]
	cmp	r3, r2
	blt	.L5
.L14:
	ldr	r3, .L20+12
	ldr	r5, [r3]
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L5:
	add	r3, r3, #1
	mov	r2, #0
	str	r3, [r0, #4]
	bl	nvs_operation
	mov	r5, r0
	ldr	r3, [r4, #4]
	mov	r0, r5
	sub	r3, r3, #1
	str	r3, [r4, #4]
	pop	{r4, r5, r6, pc}
.L7:
	ldr	r0, [r0, #8]
	bl	nv_priv_alloc_embedded
	subs	r2, r0, #0
	beq	.L17
	mov	r0, r6
	ldr	r1, [r6]
	bl	nvlist_init
	ldr	r2, .L20+8
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	cmp	r3, r2
	bge	.L18
	add	r3, r3, #1
	mov	r2, #0
	mov	r1, r6
	mov	r0, r4
	str	r3, [r4, #4]
	bl	nvs_operation
	subs	r5, r0, #0
	bne	.L19
.L10:
	ldr	r3, [r4, #4]
	sub	r3, r3, #1
	str	r3, [r4, #4]
	b	.L1
.L19:
	mov	r0, r6
	bl	nvlist_free
	b	.L10
.L17:
	ldr	r3, .L20+16
	ldr	r5, [r3]
	b	.L1
.L18:
	mov	r0, r6
	bl	nvlist_free
	ldr	r3, .L20+12
	ldr	r5, [r3]
	b	.L1
.L21:
	.align	2
.L20:
	.word	NV_VERSION
	.word	ENOTSUP
	.word	nvpair_max_recursion
	.word	EINVAL
	.word	ENOMEM
	.size	nvs_embedded, .-nvs_embedded
	.comm	nvpair_max_recursion,4,4
	.comm	NV_VERSION,4,4
	.comm	ENOTSUP,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
