	.file	"extr_nvpair.c_nvlist_xalloc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	nvlist_xalloc
	.type	nvlist_xalloc, @function
nvlist_xalloc:
.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
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	test	rdi, rdi
	je	.L7
	mov	rdi, rdx
	test	rdx, rdx
	je	.L7
	mov	ebp, esi
	call	nv_priv_alloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L9
	mov	edi, 4
	call	NV_ALIGN@PLT
	mov	rdi, r12
	mov	esi, eax
	call	nv_mem_zalloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	rdi, rax
	test	rax, rax
	je	.L11
	mov	rdx, r12
	mov	esi, ebp
	call	nvlist_init@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	edx, 4
	mov	rsi, r12
	mov	rdi, r12
	call	nv_mem_free@PLT
.L9:
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR ENOMEM[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	nvlist_xalloc, .-nvlist_xalloc
	.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_nvlist_xalloc.c"
	.text
	.align	2
	.global	nvlist_xalloc
	.syntax unified
	.arm
	.fpu softvfp
	.type	nvlist_xalloc, %function
nvlist_xalloc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	clz	r3, r2
	cmp	r0, #0
	lsr	r3, r3, #5
	push	{r4, r5, r6, r7, r8, lr}
	movne	r4, r3
	moveq	r4, #1
	cmp	r4, #0
	beq	.L2
	ldr	r3, .L10
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r5, r0
	mov	r0, r2
	mov	r7, r1
	bl	nv_priv_alloc
	subs	r6, r0, #0
	beq	.L7
	mov	r0, #4
	bl	NV_ALIGN
	mov	r1, r0
	mov	r0, r6
	bl	nv_mem_zalloc
	cmp	r0, #0
	str	r0, [r5]
	beq	.L9
	mov	r2, r6
	mov	r1, r7
	bl	nvlist_init
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	mov	r2, #4
	mov	r1, r6
	mov	r0, r6
	bl	nv_mem_free
.L7:
	ldr	r3, .L10+4
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	.align	2
.L10:
	.word	EINVAL
	.word	ENOMEM
	.size	nvlist_xalloc, .-nvlist_xalloc
	.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
