	.file	"extr_bhnd_nvram_plist.c_bhnd_nvram_plist_remove.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"entry count over-release"
	.text
	.p2align 4
	.globl	bhnd_nvram_plist_remove
	.type	bhnd_nvram_plist_remove, @function
bhnd_nvram_plist_remove:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	bhnd_nvram_plist_get_entry@PLT
	test	rax, rax
	je	.L1
	mov	edx, DWORD PTR pl_link[rip]
	lea	rdi, 8[rbx]
	mov	rsi, rax
	mov	rbp, rax
	call	TAILQ_REMOVE@PLT
	mov	esi, DWORD PTR pl_hash_link[rip]
	mov	rdi, rbp
	call	LIST_REMOVE@PLT
	mov	edi, DWORD PTR 0[rbp]
	call	bhnd_nvram_prop_release@PLT
	mov	rdi, rbp
	call	bhnd_nv_free@PLT
	xor	edi, edi
	cmp	QWORD PTR [rbx], 0
	lea	rsi, .LC0[rip]
	setg	dil
	call	BHND_NV_ASSERT@PLT
	sub	QWORD PTR [rbx], 1
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	bhnd_nvram_plist_remove, .-bhnd_nvram_plist_remove
	.comm	pl_link,4,4
	.comm	pl_hash_link,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_plist.c_bhnd_nvram_plist_remove.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"entry count over-release\000"
	.text
	.align	2
	.global	bhnd_nvram_plist_remove
	.syntax unified
	.arm
	.fpu softvfp
	.type	bhnd_nvram_plist_remove, %function
bhnd_nvram_plist_remove:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	bl	bhnd_nvram_plist_get_entry
	subs	r4, r0, #0
	popeq	{r4, r5, r6, pc}
	ldr	r3, .L8
	mov	r1, r4
	ldr	r2, [r3]
	add	r0, r5, #4
	bl	TAILQ_REMOVE
	ldr	r3, .L8+4
	mov	r0, r4
	ldr	r1, [r3]
	bl	LIST_REMOVE
	ldr	r0, [r4]
	bl	bhnd_nvram_prop_release
	mov	r0, r4
	bl	bhnd_nv_free
	ldr	r0, [r5]
	ldr	r1, .L8+8
	cmp	r0, #0
	movle	r0, #0
	movgt	r0, #1
	bl	BHND_NV_ASSERT
	ldr	r3, [r5]
	sub	r3, r3, #1
	str	r3, [r5]
	pop	{r4, r5, r6, pc}
.L9:
	.align	2
.L8:
	.word	pl_link
	.word	pl_hash_link
	.word	.LC0
	.size	bhnd_nvram_plist_remove, .-bhnd_nvram_plist_remove
	.comm	pl_link,4,4
	.comm	pl_hash_link,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
