	.file	"extr_fadump.c_fadump_release_memory.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	fadump_release_memory, @function
fadump_release_memory:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	xor	eax, eax
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	fadump_scan_reserved_mem_ranges@PLT
	mov	r13, QWORD PTR fw_dump[rip]
	mov	r14, QWORD PTR fw_dump[rip+8]
	lea	rdi, reserved_mrange_info[rip]
	add	r14, r13
	mov	rsi, r13
	mov	rdx, r14
	call	fadump_add_mem_range@PLT
	test	eax, eax
	je	.L2
	cmp	r14, rbp
	jle	.L21
	cmp	r13, r12
	jge	.L21
	cmp	r13, rbp
	jg	.L23
.L4:
	mov	rsi, r12
	mov	rdi, r14
	cmp	r14, r12
	jl	.L20
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	cmp	r12, rbp
	jle	.L1
.L21:
	mov	rsi, r12
	mov	rdi, rbp
.L20:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	fadump_release_reserved_area@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	lea	rdi, reserved_mrange_info[rip]
	call	sort_and_merge_mem_ranges@PLT
	mov	eax, DWORD PTR reserved_mrange_info[rip]
	test	eax, eax
	jle	.L7
	xor	ebx, ebx
	lea	r14, reserved_mrange_info[rip]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rbp, r13
.L8:
	add	rbx, 1
	cmp	DWORD PTR [r14], ebx
	jle	.L7
.L9:
	mov	rax, rbx
	sal	rax, 4
	add	rax, QWORD PTR reserved_mrange_info[rip+8]
	mov	rsi, QWORD PTR [rax]
	mov	r13, QWORD PTR 8[rax]
	add	r13, rsi
	cmp	r13, rbp
	jle	.L8
	cmp	rsi, rbp
	jle	.L11
	mov	rdi, rbp
	mov	rbp, r13
	call	fadump_release_reserved_area@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rsi, r13
	mov	rdi, rbp
	call	fadump_release_reserved_area@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	fadump_release_memory, .-fadump_release_memory
	.comm	reserved_mrange_info,16,16
	.comm	fw_dump,16,16
	.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_fadump.c_fadump_release_memory.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fadump_release_memory, %function
fadump_release_memory:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r8, r1
	mov	r6, r0
	bl	fadump_scan_reserved_mem_ranges
	ldr	r3, .L18
	ldr	r7, .L18+4
	ldr	r9, [r3]
	ldr	r5, [r3, #4]
	mov	r1, r9
	add	r5, r9, r5
	mov	r2, r5
	mov	r0, r7
	bl	fadump_add_mem_range
	subs	r4, r0, #0
	beq	.L2
	cmp	r5, r6
	movle	r3, #0
	movgt	r3, #1
	cmp	r9, r8
	movge	r3, #0
	cmp	r3, #0
	beq	.L14
	cmp	r9, r6
	bgt	.L16
	cmp	r5, r8
	popge	{r4, r5, r6, r7, r8, r9, r10, pc}
.L17:
	mov	r1, r8
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	fadump_release_reserved_area
.L7:
	cmp	r8, r6
	pople	{r4, r5, r6, r7, r8, r9, r10, pc}
.L14:
	mov	r1, r8
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	fadump_release_reserved_area
.L2:
	mov	r0, r7
	bl	sort_and_merge_mem_ranges
	ldr	r3, [r7]
	cmp	r3, #0
	bgt	.L9
	b	.L7
.L8:
	ldr	r3, [r7]
	add	r4, r4, #1
	cmp	r3, r4
	ble	.L7
.L9:
	ldr	r3, [r7, #4]
	add	r2, r3, r4, lsl #3
	ldr	r5, [r2, #4]
	ldr	r1, [r3, r4, lsl #3]
	add	r5, r1, r5
	cmp	r5, r6
	ble	.L8
	cmp	r1, r6
	movle	r6, r5
	ble	.L8
	mov	r0, r6
	bl	fadump_release_reserved_area
	mov	r6, r5
	b	.L8
.L16:
	mov	r1, r9
	mov	r0, r6
	bl	fadump_release_reserved_area
	cmp	r5, r8
	popge	{r4, r5, r6, r7, r8, r9, r10, pc}
	b	.L17
.L19:
	.align	2
.L18:
	.word	fw_dump
	.word	reserved_mrange_info
	.size	fadump_release_memory, .-fadump_release_memory
	.comm	reserved_mrange_info,8,4
	.comm	fw_dump,8,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
