	.file	"extr_memp.c_memp_free.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"memp_free: mem properly aligned"
	.text
	.p2align 4
	.globl	memp_free
	.type	memp_free, @function
memp_free:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edi, DWORD PTR old_level[rip]
	call	SYS_ARCH_DECL_PROTECT@PLT
	test	rbx, rbx
	je	.L1
	mov	eax, ebx
	xor	esi, esi
	lea	rdi, .LC0[rip]
	cdq
	idiv	DWORD PTR MEM_ALIGNMENT[rip]
	test	edx, edx
	sete	sil
	call	LWIP_ASSERT@PLT
	mov	edi, DWORD PTR old_level[rip]
	sub	rbx, QWORD PTR MEMP_SIZE[rip]
	sar	rbx, 2
	call	SYS_ARCH_PROTECT@PLT
	mov	edi, DWORD PTR used[rip]
	mov	rsi, rbp
	call	MEMP_STATS_DEC@PLT
	mov	rax, QWORD PTR memp_tab[rip]
	mov	edi, DWORD PTR old_level[rip]
	lea	rax, [rax+rbp*8]
	mov	rdx, QWORD PTR [rax]
	mov	QWORD PTR [rbx], rdx
	mov	QWORD PTR [rax], rbx
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	SYS_ARCH_UNPROTECT@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	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	memp_free, .-memp_free
	.comm	used,4,4
	.comm	old_level,4,4
	.comm	memp_tab,8,8
	.comm	MEM_ALIGNMENT,4,4
	.comm	MEMP_SIZE,8,8
	.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_memp.c_memp_free.c"
	.text
	.global	__aeabi_idivmod
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"memp_free: mem properly aligned\000"
	.text
	.align	2
	.global	memp_free
	.syntax unified
	.arm
	.fpu softvfp
	.type	memp_free, %function
memp_free:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	ldr	r6, .L5
	mov	r5, r0
	ldr	r0, [r6]
	bl	SYS_ARCH_DECL_PROTECT
	cmp	r4, #0
	popeq	{r4, r5, r6, pc}
	ldr	r3, .L5+4
	mov	r0, r4
	ldr	r1, [r3]
	bl	__aeabi_idivmod
	clz	r1, r1
	ldr	r0, .L5+8
	lsr	r1, r1, #5
	bl	LWIP_ASSERT
	ldr	r3, .L5+12
	ldr	r0, [r6]
	ldr	r1, [r3]
	sub	r4, r4, r1
	bl	SYS_ARCH_PROTECT
	ldr	r3, .L5+16
	mov	r1, r5
	ldr	r0, [r3]
	bl	MEMP_STATS_DEC
	ldr	r3, .L5+20
	asr	r4, r4, #2
	ldr	r3, [r3]
	ldr	r0, [r6]
	ldr	r2, [r3, r5, lsl #2]
	str	r2, [r4]
	str	r4, [r3, r5, lsl #2]
	pop	{r4, r5, r6, lr}
	b	SYS_ARCH_UNPROTECT
.L6:
	.align	2
.L5:
	.word	old_level
	.word	MEM_ALIGNMENT
	.word	.LC0
	.word	MEMP_SIZE
	.word	used
	.word	memp_tab
	.size	memp_free, .-memp_free
	.comm	used,4,4
	.comm	old_level,4,4
	.comm	memp_tab,4,4
	.comm	MEM_ALIGNMENT,4,4
	.comm	MEMP_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
