	.file	"extr_gc.c_free_heap.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	free_heap
	.type	free_heap, @function
free_heap:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	r13, QWORD PTR [rsi]
	test	r13, r13
	je	.L1
	mov	r12, rdi
	.p2align 4,,10
	.p2align 3
.L6:
	mov	r14, r13
	mov	r13, QWORD PTR 0[r13]
	mov	rdi, r14
	call	objects@PLT
	movsx	rbp, DWORD PTR MRB_HEAP_PAGE_SIZE[rip]
	mov	rbx, rax
	sal	rbp, 4
	add	rbp, rax
	cmp	rax, rbp
	jnb	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR MRB_TT_FREE[rip]
	cmp	QWORD PTR 8[rbx], rax
	je	.L4
	mov	edx, DWORD PTR TRUE[rip]
	mov	rsi, rbx
	mov	rdi, r12
	call	obj_free@PLT
.L4:
	add	rbx, 16
	cmp	rbp, rbx
	ja	.L5
.L3:
	mov	rsi, r14
	mov	rdi, r12
	call	mrb_free@PLT
	test	r13, r13
	jne	.L6
.L1:
	pop	rbx
	.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
	.cfi_endproc
.LFE0:
	.size	free_heap, .-free_heap
	.comm	TRUE,4,4
	.comm	MRB_TT_FREE,8,8
	.comm	MRB_HEAP_PAGE_SIZE,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_gc.c_free_heap.c"
	.text
	.align	2
	.global	free_heap
	.syntax unified
	.arm
	.fpu softvfp
	.type	free_heap, %function
free_heap:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r7, [r1]
	cmp	r7, #0
	popeq	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	mov	r6, r0
	ldr	r10, .L14
	ldr	fp, .L14+4
	ldr	r8, .L14+8
.L6:
	mov	r0, r7
	mov	r9, r7
	ldr	r7, [r7]
	bl	objects
	ldr	r5, [r10]
	mov	r4, r0
	add	r5, r0, r5, lsl #3
	cmp	r0, r5
	bcs	.L3
.L5:
	ldr	r2, [r4, #4]
	ldr	r3, [fp]
	cmp	r2, r3
	beq	.L4
	mov	r1, r4
	mov	r0, r6
	ldr	r2, [r8]
	bl	obj_free
.L4:
	add	r4, r4, #8
	cmp	r5, r4
	bhi	.L5
.L3:
	mov	r1, r9
	mov	r0, r6
	bl	mrb_free
	cmp	r7, #0
	bne	.L6
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	.align	2
.L14:
	.word	MRB_HEAP_PAGE_SIZE
	.word	MRB_TT_FREE
	.word	TRUE
	.size	free_heap, .-free_heap
	.comm	TRUE,4,4
	.comm	MRB_TT_FREE,4,4
	.comm	MRB_HEAP_PAGE_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
