	.file	"extr_bhnd_nvram_store.c_bhnd_nvstore_export_merge.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	bhnd_nvstore_export_merge, @function
bhnd_nvstore_export_merge:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, ecx
	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
	xor	ebp, ebp
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	mov	edi, ecx
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	esi, DWORD PTR EXPORT_UNCOMMITTED[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	BHND_NVSTORE_GET_FLAG@PLT
	test	rax, rax
	je	.L10
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rdi, QWORD PTR 0[r13]
	mov	rsi, rbp
	call	bhnd_nvram_plist_next@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L10
	mov	esi, DWORD PTR EXPORT_DELETED[rip]
	mov	edi, r14d
	call	BHND_NVSTORE_GET_FLAG@PLT
	test	rax, rax
	jne	.L8
	mov	rdi, rbp
	call	bhnd_nvram_prop_is_null@PLT
	test	rax, rax
	jne	.L2
.L8:
	mov	rsi, rbp
	mov	rdi, r15
	call	bhnd_nvram_plist_append@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L2
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L36
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L10:
	.cfi_restore_state
	mov	esi, DWORD PTR EXPORT_COMMITTED[rip]
	mov	edi, r14d
	call	BHND_NVSTORE_GET_FLAG@PLT
	test	rax, rax
	je	.L3
	mov	QWORD PTR 24[rsp], 0
	lea	rax, 24[rsp]
	mov	QWORD PTR [rsp], rax
	lea	rax, 32[rsp]
	mov	QWORD PTR 8[rsp], rax
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rdx, QWORD PTR [rsp]
	mov	rsi, r13
	mov	rdi, rbx
	call	bhnd_nvstore_path_data_next@PLT
	mov	r12, rax
	test	rax, rax
	je	.L3
	mov	edi, DWORD PTR 4[rbx]
	mov	rsi, r12
	call	bhnd_nvram_data_getvar_name@PLT
	mov	rbp, rax
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR BHND_NVRAM_DATA_CAP_DEVPATHS[rip], eax
	jne	.L37
.L12:
	mov	esi, DWORD PTR EXPORT_UNCOMMITTED[rip]
	mov	edi, r14d
	call	BHND_NVSTORE_GET_FLAG@PLT
	test	rax, rax
	je	.L16
	mov	rdi, QWORD PTR 0[r13]
	mov	rsi, rbp
	call	bhnd_nvram_plist_contains@PLT
	test	rax, rax
	jne	.L11
.L16:
	mov	rsi, rbp
	mov	rdi, r15
	call	bhnd_nvram_plist_contains@PLT
	test	rax, rax
	jne	.L11
	mov	edi, DWORD PTR 4[rbx]
	mov	rdx, QWORD PTR 8[rsp]
	mov	rsi, r12
	call	bhnd_nvram_data_copy_val@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	rdx, QWORD PTR 32[rsp]
	mov	rdi, r15
	mov	rsi, rbp
	call	bhnd_nvram_plist_append_val@PLT
	mov	rdi, QWORD PTR 32[rsp]
	mov	r12d, eax
	call	bhnd_nvram_val_release@PLT
	test	r12d, r12d
	je	.L11
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	xor	r12d, r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L37:
	mov	rdi, rbp
	call	bhnd_nvram_trim_path_name@PLT
	mov	rbp, rax
	jmp	.L12
.L36:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	bhnd_nvstore_export_merge, .-bhnd_nvstore_export_merge
	.comm	EXPORT_UNCOMMITTED,4,4
	.comm	EXPORT_DELETED,4,4
	.comm	EXPORT_COMMITTED,4,4
	.comm	BHND_NVRAM_DATA_CAP_DEVPATHS,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_bhnd_nvram_store.c_bhnd_nvstore_export_merge.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bhnd_nvstore_export_merge, %function
bhnd_nvstore_export_merge:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r10, .L37
	mov	r8, r3
	mov	r6, r0
	mov	r0, r3
	ldr	r3, .L37+4
	sub	sp, sp, #20
	mov	r7, r1
	ldr	r1, [r10]
	mov	r9, r2
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	BHND_NVSTORE_GET_FLAG
	cmp	r0, #0
	beq	.L10
	mov	fp, #0
	ldr	r5, .L37+8
.L2:
	mov	r1, fp
	ldr	r0, [r7]
	bl	bhnd_nvram_plist_next
	subs	fp, r0, #0
	beq	.L10
	mov	r0, r8
	ldr	r1, [r5]
	bl	BHND_NVSTORE_GET_FLAG
	cmp	r0, #0
	bne	.L8
	mov	r0, fp
	bl	bhnd_nvram_prop_is_null
	cmp	r0, #0
	bne	.L2
.L8:
	mov	r1, fp
	mov	r0, r9
	bl	bhnd_nvram_plist_append
	subs	r4, r0, #0
	beq	.L2
.L1:
	ldr	r3, .L37+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L35
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L10:
	ldr	r3, .L37+12
	mov	r0, r8
	ldr	r1, [r3]
	bl	BHND_NVSTORE_GET_FLAG
	cmp	r0, #0
	beq	.L3
	mov	r3, #0
	ldr	fp, .L37+16
	str	r3, [sp, #4]
.L11:
	mov	r1, r7
	mov	r0, r6
	add	r2, sp, #4
	bl	bhnd_nvstore_path_data_next
	subs	r4, r0, #0
	beq	.L3
	mov	r1, r4
	ldr	r0, [r6, #4]
	bl	bhnd_nvram_data_getvar_name
	ldr	r2, [r6]
	ldr	r3, [fp]
	mov	r5, r0
	tst	r2, r3
	bne	.L36
.L12:
	mov	r0, r8
	ldr	r1, [r10]
	bl	BHND_NVSTORE_GET_FLAG
	cmp	r0, #0
	beq	.L16
	mov	r1, r5
	ldr	r0, [r7]
	bl	bhnd_nvram_plist_contains
	cmp	r0, #0
	bne	.L11
.L16:
	mov	r1, r5
	mov	r0, r9
	bl	bhnd_nvram_plist_contains
	cmp	r0, #0
	bne	.L11
	mov	r1, r4
	ldr	r0, [r6, #4]
	add	r2, sp, #8
	bl	bhnd_nvram_data_copy_val
	subs	r4, r0, #0
	bne	.L1
	mov	r1, r5
	ldr	r2, [sp, #8]
	mov	r0, r9
	bl	bhnd_nvram_plist_append_val
	mov	r4, r0
	ldr	r0, [sp, #8]
	bl	bhnd_nvram_val_release
	cmp	r4, #0
	beq	.L11
	b	.L1
.L3:
	mov	r4, #0
	b	.L1
.L36:
	bl	bhnd_nvram_trim_path_name
	mov	r5, r0
	b	.L12
.L35:
	bl	__stack_chk_fail
.L38:
	.align	2
.L37:
	.word	EXPORT_UNCOMMITTED
	.word	.LC0
	.word	EXPORT_DELETED
	.word	EXPORT_COMMITTED
	.word	BHND_NVRAM_DATA_CAP_DEVPATHS
	.size	bhnd_nvstore_export_merge, .-bhnd_nvstore_export_merge
	.comm	EXPORT_UNCOMMITTED,4,4
	.comm	EXPORT_DELETED,4,4
	.comm	EXPORT_COMMITTED,4,4
	.comm	BHND_NVRAM_DATA_CAP_DEVPATHS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
