	.file	"967112.c"
	.intel_syntax noprefix
	.text
	.globl	__sdcc_heap_free
	.bss
	.align 8
	.type	__sdcc_heap_free, @object
	.size	__sdcc_heap_free, 8
__sdcc_heap_free:
	.zero	8
	.text
	.globl	__sdcc_heap_init
	.type	__sdcc_heap_init, @function
__sdcc_heap_init:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rax, __sdcc_heap[rip]
	mov	QWORD PTR __sdcc_heap_free[rip], rax
	mov	rax, QWORD PTR __sdcc_heap_free[rip]
	lea	rdx, __sdcc_heap_end[rip]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR __sdcc_heap_free[rip]
	mov	QWORD PTR 8[rax], 0
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	__sdcc_heap_init, .-__sdcc_heap_init
	.globl	malloc
	.type	malloc, @function
malloc:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -40[rbp], rdi
	cmp	QWORD PTR -40[rbp], 0
	je	.L3
	cmp	QWORD PTR -40[rbp], -9
	jbe	.L4
.L3:
	mov	eax, 0
	jmp	.L5
.L4:
	add	QWORD PTR -40[rbp], 8
	cmp	QWORD PTR -40[rbp], 15
	ja	.L6
	mov	QWORD PTR -40[rbp], 16
.L6:
	mov	rax, QWORD PTR __sdcc_heap_free[rip]
	mov	QWORD PTR -32[rbp], rax
	lea	rax, __sdcc_heap_free[rip]
	mov	QWORD PTR -24[rbp], rax
	jmp	.L7
.L11:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	sub	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	cmp	rax, QWORD PTR -40[rbp]
	jb	.L8
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 16
	cmp	QWORD PTR -16[rbp], rax
	jb	.L9
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L10
.L9:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
.L10:
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	jmp	.L5
.L8:
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -32[rbp], rax
.L7:
	cmp	QWORD PTR -32[rbp], 0
	jne	.L11
	mov	eax, 0
.L5:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	malloc, .-malloc
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"967112.c"
	.text
	.comm	__sdcc_heap_free,4,4
	.align	2
	.global	__sdcc_heap_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	__sdcc_heap_init, %function
__sdcc_heap_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L2
	ldr	r2, .L2+4
	str	r2, [r3]
	ldr	r3, .L2
	ldr	r3, [r3]
	ldr	r2, .L2+8
	str	r2, [r3]
	ldr	r3, .L2
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3, #4]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L3:
	.align	2
.L2:
	.word	__sdcc_heap_free
	.word	__sdcc_heap
	.word	__sdcc_heap_end
	.size	__sdcc_heap_init, .-__sdcc_heap_init
	.align	2
	.global	malloc
	.syntax unified
	.arm
	.fpu softvfp
	.type	malloc, %function
malloc:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L5
	ldr	r3, [fp, #-24]
	cmn	r3, #5
	bls	.L6
.L5:
	mov	r3, #0
	b	.L7
.L6:
	ldr	r3, [fp, #-24]
	add	r3, r3, #4
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #7
	bhi	.L8
	mov	r3, #8
	str	r3, [fp, #-24]
.L8:
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-20]
	ldr	r3, .L14
	str	r3, [fp, #-16]
	b	.L9
.L13:
	ldr	r3, [fp, #-20]
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	sub	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bcc	.L10
	ldr	r3, [fp, #-24]
	add	r3, r3, #8
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bcc	.L11
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	b	.L12
.L11:
	ldr	r3, [fp, #-20]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	str	r2, [r3]
.L12:
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	b	.L7
.L10:
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-20]
.L9:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L13
	mov	r3, #0
.L7:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L15:
	.align	2
.L14:
	.word	__sdcc_heap_free
	.size	malloc, .-malloc
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
