	.file	"47393.c"
	.intel_syntax noprefix
	.text
	.globl	Heap_Buf
	.bss
	.align 32
	.type	Heap_Buf, @object
	.size	Heap_Buf, 1704
Heap_Buf:
	.zero	1704
	.text
	.globl	oops_rtos_heap_buffer_init
	.type	oops_rtos_heap_buffer_init, @function
oops_rtos_heap_buffer_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR Heap_Buf[rip], 100
	mov	edx, 1600
	mov	esi, 0
	lea	rdi, Heap_Buf[rip+104]
	call	memset@PLT
	mov	edx, 100
	mov	esi, 0
	lea	rdi, Heap_Buf[rip+4]
	call	memset@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	oops_rtos_heap_buffer_init, .-oops_rtos_heap_buffer_init
	.globl	oops_rtos_malloc
	.type	oops_rtos_malloc, @function
oops_rtos_malloc:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -36[rbp], edi
	mov	eax, DWORD PTR -36[rbp]
	shr	eax, 4
	mov	edx, eax
	mov	eax, DWORD PTR -36[rbp]
	and	eax, 15
	test	eax, eax
	je	.L3
	mov	eax, 1
	jmp	.L4
.L3:
	mov	eax, 0
.L4:
	add	eax, edx
	mov	DWORD PTR -12[rbp], eax
	mov	DWORD PTR -16[rbp], 0
	mov	QWORD PTR -8[rbp], 0
	mov	BYTE PTR -25[rbp], 0
	mov	eax, DWORD PTR Heap_Buf[rip]
	cmp	DWORD PTR -12[rbp], eax
	jbe	.L5
	mov	eax, 0
	jmp	.L6
.L5:
	mov	DWORD PTR -24[rbp], 0
	jmp	.L7
.L11:
	mov	eax, DWORD PTR -24[rbp]
	lea	rdx, Heap_Buf[rip+4]
	movzx	eax, BYTE PTR [rax+rdx]
	test	al, al
	jne	.L8
	add	DWORD PTR -16[rbp], 1
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	jb	.L9
	mov	BYTE PTR -25[rbp], 1
	jmp	.L10
.L8:
	mov	DWORD PTR -16[rbp], 0
.L9:
	add	DWORD PTR -24[rbp], 1
.L7:
	mov	eax, DWORD PTR Heap_Buf[rip]
	cmp	DWORD PTR -24[rbp], eax
	jb	.L11
.L10:
	cmp	BYTE PTR -25[rbp], 0
	je	.L12
	mov	eax, DWORD PTR Heap_Buf[rip]
	sub	eax, DWORD PTR -16[rbp]
	mov	DWORD PTR Heap_Buf[rip], eax
	mov	eax, DWORD PTR -24[rbp]
	sub	eax, DWORD PTR -16[rbp]
	add	eax, 1
	sal	eax, 4
	mov	eax, eax
	lea	rdx, 96[rax]
	lea	rax, Heap_Buf[rip]
	add	rax, rdx
	add	rax, 8
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -20[rbp], 0
	jmp	.L13
.L14:
	mov	eax, DWORD PTR -20[rbp]
	mov	ecx, eax
	mov	eax, DWORD PTR -24[rbp]
	sub	eax, DWORD PTR -16[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -20[rbp]
	add	eax, edx
	add	eax, 1
	lea	edx, 1[rcx]
	mov	ecx, eax
	lea	rax, Heap_Buf[rip+4]
	mov	BYTE PTR [rcx+rax], dl
	add	DWORD PTR -20[rbp], 1
.L13:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -16[rbp]
	jb	.L14
.L12:
	mov	rax, QWORD PTR -8[rbp]
.L6:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	oops_rtos_malloc, .-oops_rtos_malloc
	.globl	oops_rtos_free
	.type	oops_rtos_free, @function
oops_rtos_free:
.LFB2:
	.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 -24[rbp], rdi
	lea	rdx, Heap_Buf[rip+104]
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, rdx
	lea	rdx, 15[rax]
	test	rax, rax
	cmovs	rax, rdx
	sar	rax, 4
	mov	DWORD PTR -4[rbp], eax
	mov	BYTE PTR -5[rbp], 0
	mov	eax, DWORD PTR -4[rbp]
	lea	rdx, Heap_Buf[rip+4]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 1
	jne	.L18
.L16:
	mov	eax, DWORD PTR -4[rbp]
	lea	rdx, Heap_Buf[rip+4]
	mov	BYTE PTR [rax+rdx], 0
	mov	eax, DWORD PTR Heap_Buf[rip]
	add	eax, 1
	mov	DWORD PTR Heap_Buf[rip], eax
	add	DWORD PTR -4[rbp], 1
	mov	eax, DWORD PTR -4[rbp]
	lea	rdx, Heap_Buf[rip+4]
	movzx	eax, BYTE PTR [rax+rdx]
	mov	BYTE PTR -5[rbp], al
	cmp	BYTE PTR -5[rbp], 1
	jbe	.L15
	cmp	DWORD PTR -4[rbp], 99
	jbe	.L16
	jmp	.L15
.L18:
	nop
.L15:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	oops_rtos_free, .-oops_rtos_free
	.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	"47393.c"
	.text
	.comm	Heap_Buf,1704,4
	.align	2
	.global	oops_rtos_heap_buffer_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	oops_rtos_heap_buffer_init, %function
oops_rtos_heap_buffer_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L2
	mov	r2, #100
	str	r2, [r3]
	mov	r2, #1600
	mov	r1, #0
	ldr	r0, .L2+4
	bl	memset
	mov	r2, #100
	mov	r1, #0
	ldr	r0, .L2+8
	bl	memset
	nop
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	Heap_Buf
	.word	Heap_Buf+104
	.word	Heap_Buf+4
	.size	oops_rtos_heap_buffer_init, .-oops_rtos_heap_buffer_init
	.align	2
	.global	oops_rtos_malloc
	.syntax unified
	.arm
	.fpu softvfp
	.type	oops_rtos_malloc, %function
oops_rtos_malloc:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #36
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	lsr	r3, r3, #4
	ldr	r2, [fp, #-32]
	and	r2, r2, #15
	cmp	r2, #0
	beq	.L5
	mov	r2, #1
	b	.L6
.L5:
	mov	r2, #0
.L6:
	add	r3, r2, r3
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	strb	r3, [fp, #-25]
	ldr	r3, .L17
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bls	.L7
	mov	r3, #0
	b	.L8
.L7:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L9
.L13:
	ldr	r2, .L17
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	add	r3, r3, #4
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L10
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bcc	.L11
	mov	r3, #1
	strb	r3, [fp, #-25]
	b	.L12
.L10:
	mov	r3, #0
	str	r3, [fp, #-16]
.L11:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L9:
	ldr	r3, .L17
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bcc	.L13
.L12:
	ldrb	r3, [fp, #-25]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L14
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	ldr	r2, .L17
	str	r3, [r2]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	add	r3, r3, #1
	lsl	r3, r3, #4
	add	r3, r3, #104
	ldr	r2, .L17
	add	r3, r3, r2
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L15
.L16:
	ldr	r3, [fp, #-20]
	and	r2, r3, #255
	ldr	r1, [fp, #-24]
	ldr	r3, [fp, #-16]
	sub	r1, r1, r3
	ldr	r3, [fp, #-20]
	add	r3, r1, r3
	add	r3, r3, #1
	add	r2, r2, #1
	and	r1, r2, #255
	ldr	r2, .L17
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3, #4]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L15:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bcc	.L16
.L14:
	ldr	r3, [fp, #-12]
.L8:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L18:
	.align	2
.L17:
	.word	Heap_Buf
	.size	oops_rtos_malloc, .-oops_rtos_malloc
	.align	2
	.global	oops_rtos_free
	.syntax unified
	.arm
	.fpu softvfp
	.type	oops_rtos_free, %function
oops_rtos_free:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r2, .L23
	sub	r3, r3, r2
	add	r2, r3, #15
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #4
	str	r3, [fp, #-8]
	mov	r3, #0
	strb	r3, [fp, #-9]
	ldr	r2, .L23+4
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	add	r3, r3, #4
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #1
	bne	.L22
.L20:
	ldr	r2, .L23+4
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	add	r3, r3, #4
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, .L23+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L23+4
	str	r3, [r2]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r2, .L23+4
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	add	r3, r3, #4
	ldrb	r3, [r3]
	strb	r3, [fp, #-9]
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #1
	bls	.L19
	ldr	r3, [fp, #-8]
	cmp	r3, #99
	bls	.L20
	b	.L19
.L22:
	nop
.L19:
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L24:
	.align	2
.L23:
	.word	Heap_Buf+104
	.word	Heap_Buf
	.size	oops_rtos_free, .-oops_rtos_free
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
