	.file	"extr_nvram.c__nvram_free.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	_nvram_free, @function
_nvram_free:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rdi, QWORD PTR 8[rdi]
	call	NVRAM_ARRAYSIZE@PLT
	cmp	rax, r12
	jbe	.L25
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, QWORD PTR 8[r14]
	lea	r13, 0[0+r12*8]
	lea	rax, [rdi+r13]
	mov	rbx, QWORD PTR [rax]
	test	rbx, rbx
	je	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rbp, rbx
	mov	rbx, QWORD PTR 8[rbx]
	mov	rdi, QWORD PTR 0[rbp]
	test	rdi, rdi
	je	.L4
	call	free@PLT
.L4:
	mov	rdi, rbp
	call	free@PLT
	test	rbx, rbx
	jne	.L5
	mov	rdi, QWORD PTR 8[r14]
	lea	rax, [rdi+r13]
.L3:
	mov	QWORD PTR [rax], 0
	add	r12, 1
	call	NVRAM_ARRAYSIZE@PLT
	cmp	rax, r12
	ja	.L6
.L25:
	mov	rbx, QWORD PTR [r14]
	test	rbx, rbx
	je	.L9
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rbp, rbx
	mov	rbx, QWORD PTR 8[rbx]
	mov	rdi, QWORD PTR 0[rbp]
	test	rdi, rdi
	je	.L8
	call	free@PLT
.L8:
	mov	rdi, rbp
	call	free@PLT
	test	rbx, rbx
	jne	.L7
.L9:
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	QWORD PTR [r14], 0
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	_nvram_free, .-_nvram_free
	.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_nvram.c__nvram_free.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_nvram_free, %function
_nvram_free:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r7, r0
	ldr	r0, [r0, #4]
	mov	r6, #0
	bl	NVRAM_ARRAYSIZE
	cmp	r0, r6
	mov	r9, r6
	bls	.L25
.L6:
	ldr	r0, [r7, #4]
	lsl	r8, r6, #2
	ldr	r4, [r0, r6, lsl #2]
	add	r3, r0, r6, lsl #2
	cmp	r4, #0
	beq	.L3
.L5:
	ldr	r0, [r4]
	mov	r5, r4
	cmp	r0, #0
	ldr	r4, [r4, #4]
	beq	.L4
	bl	free
.L4:
	mov	r0, r5
	bl	free
	cmp	r4, #0
	bne	.L5
	ldr	r0, [r7, #4]
	add	r3, r0, r8
.L3:
	str	r9, [r3]
	bl	NVRAM_ARRAYSIZE
	add	r6, r6, #1
	cmp	r0, r6
	bhi	.L6
.L25:
	ldr	r4, [r7]
	cmp	r4, #0
	beq	.L9
.L7:
	ldr	r0, [r4]
	mov	r5, r4
	cmp	r0, #0
	ldr	r4, [r4, #4]
	beq	.L8
	bl	free
.L8:
	mov	r0, r5
	bl	free
	cmp	r4, #0
	bne	.L7
.L9:
	mov	r3, #0
	str	r3, [r7]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
	.size	_nvram_free, .-_nvram_free
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
