	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function plug_holes
_plug_holes:                            ## @plug_holes
	.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	%rdi, %rbx
	movq	_ram@GOTPCREL(%rip), %r14
	xorl	%esi, %esi
	cmpq	%rdi, (%r14)
	setbe	%sil
	leaq	L_.str(%rip), %rdi
	callq	_LWIP_ASSERT
	movq	_ram_end@GOTPCREL(%rip), %r15
	xorl	%esi, %esi
	cmpq	(%r15), %rbx
	setb	%sil
	leaq	L_.str.1(%rip), %rdi
	callq	_LWIP_ASSERT
	xorl	%esi, %esi
	cmpq	$0, (%rbx)
	sete	%sil
	leaq	L_.str.2(%rip), %rdi
	callq	_LWIP_ASSERT
	movq	8(%rbx), %rax
	movq	_MEM_SIZE@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	cmpq	(%rcx), %rax
	setbe	%sil
	leaq	L_.str.3(%rip), %rdi
	callq	_LWIP_ASSERT
	movq	(%r14), %rax
	movq	8(%rbx), %rcx
	leaq	(%rax,%rcx,4), %rdx
	cmpq	%rbx, %rdx
	je	LBB0_6
## %bb.1:
	cmpq	$0, (%rdx)
	jne	LBB0_6
## %bb.2:
	cmpq	(%r15), %rdx
	je	LBB0_6
## %bb.3:
	movq	_lfree@GOTPCREL(%rip), %rcx
	cmpq	%rdx, (%rcx)
	jne	LBB0_5
## %bb.4:
	movq	%rbx, (%rcx)
LBB0_5:
	movq	8(%rdx), %rcx
	movq	%rcx, 8(%rbx)
	movq	%rbx, %rsi
	subq	%rax, %rsi
	shrq	$2, %rsi
	movq	8(%rdx), %rdx
	movl	%esi, 16(%rax,%rdx,4)
LBB0_6:
	movslq	16(%rbx), %rdx
	leaq	(%rax,%rdx,4), %rsi
	cmpq	%rbx, %rsi
	je	LBB0_11
## %bb.7:
	cmpq	$0, (%rsi)
	jne	LBB0_11
## %bb.8:
	movq	_lfree@GOTPCREL(%rip), %rdi
	cmpq	%rbx, (%rdi)
	jne	LBB0_10
## %bb.9:
	movq	%rsi, (%rdi)
LBB0_10:
	movq	%rcx, 8(%rsi)
	movq	8(%rbx), %rcx
	movl	%edx, 16(%rax,%rcx,4)
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"plug_holes: mem >= ram"

	.comm	_ram,8,3                        ## @ram
L_.str.1:                               ## @.str.1
	.asciz	"plug_holes: mem < ram_end"

	.comm	_ram_end,8,3                    ## @ram_end
L_.str.2:                               ## @.str.2
	.asciz	"plug_holes: mem->used == 0"

L_.str.3:                               ## @.str.3
	.asciz	"plug_holes: mem->next <= MEM_SIZE"

	.comm	_MEM_SIZE,8,3                   ## @MEM_SIZE
	.comm	_lfree,8,3                      ## @lfree
	.no_dead_strip	_plug_holes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function plug_holes
_plug_holes:                            ; @plug_holes
	.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	x19, x0
Lloh0:
	adrp	x21, _ram@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ram@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x8, x0
	cset	w1, ls
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_LWIP_ASSERT
Lloh4:
	adrp	x20, _ram_end@GOTPAGE
Lloh5:
	ldr	x20, [x20, _ram_end@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x19, x8
	cset	w1, lo
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_LWIP_ASSERT
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w1, eq
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_LWIP_ASSERT
	ldr	x8, [x19, #8]
Lloh10:
	adrp	x9, _MEM_SIZE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MEM_SIZE@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w1, ls
Lloh13:
	adrp	x0, l_.str.3@PAGE
Lloh14:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_LWIP_ASSERT
	ldr	x8, [x21]
	ldr	x9, [x19, #8]
	add	x10, x8, x9, lsl #2
	cmp	x10, x19
	b.eq	LBB0_5
; %bb.1:
	ldr	x11, [x10]
	ldr	x12, [x20]
	cmp	x11, #0
	ccmp	x10, x12, #4, eq
	b.eq	LBB0_5
; %bb.2:
Lloh15:
	adrp	x9, _lfree@GOTPAGE
Lloh16:
	ldr	x9, [x9, _lfree@GOTPAGEOFF]
	ldr	x11, [x9]
	cmp	x11, x10
	b.ne	LBB0_4
; %bb.3:
	str	x19, [x9]
LBB0_4:
	ldr	x9, [x10, #8]
	str	x9, [x19, #8]
	sub	x11, x19, x8
	lsr	x11, x11, #2
	ldr	x10, [x10, #8]
	add	x10, x8, x10, lsl #2
	str	w11, [x10, #16]
LBB0_5:
	ldrsw	x10, [x19, #16]
	add	x11, x8, x10, lsl #2
	cmp	x11, x19
	b.eq	LBB0_10
; %bb.6:
	ldr	x12, [x11]
	cbnz	x12, LBB0_10
; %bb.7:
Lloh17:
	adrp	x12, _lfree@GOTPAGE
Lloh18:
	ldr	x12, [x12, _lfree@GOTPAGEOFF]
	ldr	x13, [x12]
	cmp	x13, x19
	b.ne	LBB0_9
; %bb.8:
	str	x11, [x12]
LBB0_9:
	str	x9, [x11, #8]
	ldr	x9, [x19, #8]
	add	x8, x8, x9, lsl #2
	str	w10, [x8, #16]
LBB0_10:
	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 AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"plug_holes: mem >= ram"

	.comm	_ram,8,3                        ; @ram
l_.str.1:                               ; @.str.1
	.asciz	"plug_holes: mem < ram_end"

	.comm	_ram_end,8,3                    ; @ram_end
l_.str.2:                               ; @.str.2
	.asciz	"plug_holes: mem->used == 0"

l_.str.3:                               ; @.str.3
	.asciz	"plug_holes: mem->next <= MEM_SIZE"

	.comm	_MEM_SIZE,8,3                   ; @MEM_SIZE
	.comm	_lfree,8,3                      ; @lfree
	.no_dead_strip	_plug_holes
.subsections_via_symbols
