	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_memp_free                      ## -- Begin function memp_free
	.p2align	4, 0x90
_memp_free:                             ## @memp_free
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_old_level@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_SYS_ARCH_DECL_PROTECT
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	_MEM_ALIGNMENT@GOTPCREL(%rip), %rcx
	movl	%ebx, %eax
	cltd
	idivl	(%rcx)
	xorl	%esi, %esi
	testl	%edx, %edx
	sete	%sil
	leaq	L_.str(%rip), %rdi
	callq	_LWIP_ASSERT
	movq	_MEMP_SIZE@GOTPCREL(%rip), %rax
	subq	(%rax), %rbx
	sarq	$2, %rbx
	movl	(%r15), %edi
	callq	_SYS_ARCH_PROTECT
	movq	_used@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_MEMP_STATS_DEC
	movq	_memp_tab@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	(%rcx,%r14,8), %rcx
	movq	%rcx, (%rbx)
	movq	(%rax), %rax
	movq	%rbx, (%rax,%r14,8)
	movl	(%r15), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SYS_ARCH_UNPROTECT             ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_old_level,4,2                  ## @old_level
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"memp_free: mem properly aligned"

	.comm	_MEM_ALIGNMENT,4,2              ## @MEM_ALIGNMENT
	.comm	_MEMP_SIZE,8,3                  ## @MEMP_SIZE
	.comm	_used,4,2                       ## @used
	.comm	_memp_tab,8,3                   ## @memp_tab
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_memp_free                      ; -- Begin function memp_free
	.p2align	2
_memp_free:                             ; @memp_free
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _old_level@GOTPAGE
Lloh1:
	ldr	x21, [x21, _old_level@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_SYS_ARCH_DECL_PROTECT
	cbz	x20, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _MEM_ALIGNMENT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MEM_ALIGNMENT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	sdiv	w9, w20, w8
	msub	w8, w9, w8, w20
	cmp	w8, #0
	cset	w1, eq
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_LWIP_ASSERT
Lloh7:
	adrp	x8, _MEMP_SIZE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MEMP_SIZE@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	sub	x8, x20, x8
	asr	x20, x8, #2
	ldr	w0, [x21]
	bl	_SYS_ARCH_PROTECT
Lloh10:
	adrp	x8, _used@GOTPAGE
Lloh11:
	ldr	x8, [x8, _used@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_MEMP_STATS_DEC
Lloh13:
	adrp	x8, _memp_tab@GOTPAGE
Lloh14:
	ldr	x8, [x8, _memp_tab@GOTPAGEOFF]
	ldr	x9, [x8]
	lsl	x10, x19, #3
	ldr	x9, [x9, x10]
	str	x9, [x20]
	ldr	x8, [x8]
	str	x20, [x8, x10]
	ldr	w0, [x21]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_SYS_ARCH_UNPROTECT
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_old_level,4,2                  ; @old_level
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"memp_free: mem properly aligned"

	.comm	_MEM_ALIGNMENT,4,2              ; @MEM_ALIGNMENT
	.comm	_MEMP_SIZE,8,3                  ; @MEMP_SIZE
	.comm	_used,4,2                       ; @used
	.comm	_memp_tab,8,3                   ; @memp_tab
.subsections_via_symbols
