	.file	"extr_namespace_devs.c___reserve_free_pmem.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"pmem-reserve"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"pmem reserve underrun: %#llx of %#llx bytes\n"
	.text
	.p2align 4
	.globl	__reserve_free_pmem
	.type	__reserve_free_pmem, @function
__reserve_free_pmem:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	is_memory@PLT
	test	eax, eax
	jne	.L2
.L9:
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L15
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, rbp
	call	to_nd_region@PLT
	mov	rbp, rax
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L9
	lea	r13, 12[rsp]
	mov	edx, 4
	xor	esi, esi
	mov	rdi, r13
	call	memset@PLT
	mov	edi, DWORD PTR 12[rsp]
	lea	rsi, .LC0[rip]
	call	strcat@PLT
	mov	eax, DWORD PTR 0[rbp]
	test	eax, eax
	jle	.L9
	mov	QWORD PTR 16[rsp], 0
	mov	r12, QWORD PTR 8[rbp]
	sub	eax, 1
	lea	rax, 8[r12+rax*8]
	cmp	QWORD PTR [r12], rbx
	je	.L5
.L16:
	add	r12, 8
	cmp	r12, rax
	je	.L9
	mov	QWORD PTR 16[rsp], 0
	cmp	QWORD PTR [r12], rbx
	jne	.L16
.L5:
	lea	rdx, 16[rsp]
	mov	rsi, r12
	mov	rdi, rbp
	call	nd_pmem_available_dpa@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L9
	mov	rcx, rax
	mov	rdx, r13
	mov	rsi, r12
	mov	rdi, rbp
	call	scan_allocate@PLT
	mov	rcx, rbx
	lea	rdi, 4[rbp]
	mov	r8, rbx
	sub	rcx, rax
	mov	rsi, rax
	mov	QWORD PTR 16[rsp], rax
	lea	rdx, .LC1[rip]
	call	dev_WARN_ONCE@PLT
	cmp	QWORD PTR 16[rsp], 0
	je	.L9
	mov	eax, DWORD PTR ENXIO[rip]
	neg	eax
	jmp	.L1
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	__reserve_free_pmem, .-__reserve_free_pmem
	.comm	ENXIO,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_namespace_devs.c___reserve_free_pmem.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"pmem-reserve\000"
	.align	2
.LC1:
	.ascii	"pmem reserve underrun: %#llx of %#llx bytes\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	__reserve_free_pmem
	.syntax unified
	.arm
	.fpu softvfp
	.type	__reserve_free_pmem, %function
__reserve_free_pmem:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r8, r9, lr}
	ldr	r3, .L21
	sub	sp, sp, #24
	mov	r6, r1
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	mov	r4, r0
	bl	is_memory
	cmp	r0, #0
	bne	.L2
.L9:
	mov	r0, #0
.L1:
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L20
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r8, r9, pc}
.L2:
	mov	r0, r4
	bl	to_nd_region
	ldr	r3, [r0]
	mov	r4, r0
	cmp	r3, #0
	beq	.L9
	mov	r5, #0
	ldr	r1, .L21+4
	mov	r0, r5
	str	r5, [sp, #12]
	bl	strcat
	ldr	r1, [r4]
	cmp	r1, r5
	ble	.L9
	mov	r0, r5
	mov	ip, r5
	ldr	r3, [r4, #8]
.L6:
	ldr	r2, [r3]
	mov	r5, r3
	cmp	r2, r6
	str	ip, [sp, #16]
	add	r3, r3, #4
	beq	.L5
	add	r0, r0, #1
	cmp	r0, r1
	bne	.L6
	b	.L9
.L5:
	mov	r1, r5
	mov	r0, r4
	add	r2, sp, #16
	bl	nd_pmem_available_dpa
	subs	r6, r0, #0
	beq	.L9
	mov	r1, r5
	mov	r3, r6
	add	r2, sp, #12
	mov	r0, r4
	bl	scan_allocate
	mov	r8, r6
	mov	r1, r0
	asr	r9, r6, #31
	sub	r3, r6, r1
	stm	sp, {r8-r9}
	ldr	r2, .L21+8
	add	r0, r4, #4
	str	r1, [sp, #16]
	bl	dev_WARN_ONCE
	ldr	r3, [sp, #16]
	cmp	r3, #0
	beq	.L9
	ldr	r3, .L21+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L20:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.word	ENXIO
	.size	__reserve_free_pmem, .-__reserve_free_pmem
	.comm	ENXIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
