	.file	"15762021.c"
	.intel_syntax noprefix
	.text
	.globl	heap
	.bss
	.align 32
	.type	heap, @object
	.size	heap, 20000
heap:
	.zero	20000
	.globl	free_list
	.section	.data.rel.local,"aw"
	.align 8
	.type	free_list, @object
	.size	free_list, 8
free_list:
	.quad	heap
	.text
	.globl	initialize
	.type	initialize, @function
initialize:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR free_list[rip]
	mov	QWORD PTR [rax], 19976
	mov	rax, QWORD PTR free_list[rip]
	mov	DWORD PTR 8[rax], 0
	mov	rax, QWORD PTR free_list[rip]
	mov	QWORD PTR 16[rax], 0
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	initialize, .-initialize
	.globl	divide
	.type	divide, @function
divide:
.LFB1:
	.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
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 24[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	sub	rax, QWORD PTR -32[rbp]
	lea	rdx, -24[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 8[rax], 1
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], rdx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	divide, .-divide
	.section	.rodata
.LC0:
	.string	"Initialized Memory "
.LC1:
	.string	"A block has been checked "
	.align 8
.LC2:
	.string	"Allocated block to exactly fitting free block "
	.align 8
.LC3:
	.string	"Allocated memory after splitting free block "
	.align 8
.LC4:
	.string	"Eroor. Not enough memory available to allocate"
	.text
	.globl	Allocate
	.type	Allocate, @function
Allocate:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR free_list[rip]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L4
	mov	eax, 0
	call	initialize
	lea	rdi, .LC0[rip]
	call	puts@PLT
.L4:
	mov	rax, QWORD PTR free_list[rip]
	mov	QWORD PTR -24[rbp], rax
	jmp	.L5
.L8:
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -24[rbp], rax
	lea	rdi, .LC1[rip]
	call	puts@PLT
.L5:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -40[rbp]
	add	rdx, 24
	cmp	rax, rdx
	jb	.L6
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	eax, 1
	jne	.L7
.L6:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	jne	.L8
.L7:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -40[rbp]
	add	rdx, 24
	cmp	rax, rdx
	jne	.L9
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 8[rax], 1
	add	QWORD PTR -24[rbp], 24
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L10
.L9:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -40[rbp]
	add	rdx, 24
	cmp	rax, rdx
	jbe	.L11
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	divide
	add	QWORD PTR -24[rbp], 24
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L10
.L11:
	mov	QWORD PTR -8[rbp], 0
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -8[rbp]
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	Allocate, .-Allocate
	.globl	merge
	.type	merge, @function
merge:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR free_list[rip]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L13
.L16:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 8[rax]
	test	eax, eax
	jne	.L14
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	eax, DWORD PTR 8[rax]
	test	eax, eax
	jne	.L14
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rax, QWORD PTR [rax]
	add	rax, rdx
	lea	rdx, 24[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR 16[rax], rdx
.L14:
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -16[rbp], rax
.L13:
	cmp	QWORD PTR -16[rbp], 0
	je	.L17
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	jne	.L16
.L17:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	merge, .-merge
	.section	.rodata
.LC5:
	.string	"Error. Enter a valid pointer "
	.text
	.globl	Free
	.type	Free, @function
Free:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	lea	rax, heap[rip]
	cmp	QWORD PTR -24[rbp], rax
	jb	.L19
	lea	rax, heap[rip+20000]
	cmp	QWORD PTR -24[rbp], rax
	ja	.L19
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	sub	QWORD PTR -8[rbp], 24
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 8[rax], 0
	mov	eax, 0
	call	merge
	jmp	.L20
.L19:
	lea	rdi, .LC5[rip]
	call	puts@PLT
	nop
.L20:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	Free, .-Free
	.section	.rodata
.LC6:
	.string	"%d block \nsize = %zu \n"
.LC7:
	.string	"occupied status = occupied "
	.align 8
.LC8:
	.string	"occupied status = not occupied "
	.text
	.globl	print_free_list
	.type	print_free_list, @function
print_free_list:
.LFB5:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	rax, QWORD PTR free_list[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -12[rbp], 1
	jmp	.L22
.L25:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	eax, 1
	jne	.L23
	lea	rdi, .LC7[rip]
	call	puts@PLT
	jmp	.L24
.L23:
	lea	rdi, .LC8[rip]
	call	puts@PLT
.L24:
	add	DWORD PTR -12[rbp], 1
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -8[rbp], rax
.L22:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L25
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	print_free_list, .-print_free_list
	.section	.rodata
	.align 8
.LC9:
	.string	"Allocation and deallocation is done successfully!"
.LC10:
	.string	"\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	edi, 1600
	call	Allocate
	cdqe
	mov	QWORD PTR -40[rbp], rax
	mov	edi, 150
	call	Allocate
	movsx	rax, al
	mov	QWORD PTR -32[rbp], rax
	mov	edi, 4000
	call	Allocate
	cdqe
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	Free
	mov	edi, 600
	call	Allocate
	movsx	rax, al
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	Free
	mov	edi, 1600
	call	Allocate
	cdqe
	mov	QWORD PTR -8[rbp], rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	eax, 0
	call	print_free_list
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.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	"15762021.c"
	.text
	.comm	heap,20000,4
	.global	free_list
	.data
	.align	2
	.type	free_list, %object
	.size	free_list, 4
free_list:
	.word	heap
	.text
	.align	2
	.global	initialize
	.syntax unified
	.arm
	.fpu softvfp
	.type	initialize, %function
initialize:
	@ 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	r3, [r3]
	ldr	r2, .L2+4
	str	r2, [r3]
	ldr	r3, .L2
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, .L2
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3, #8]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L3:
	.align	2
.L2:
	.word	free_list
	.word	19988
	.size	initialize, .-initialize
	.align	2
	.global	divide
	.syntax unified
	.arm
	.fpu softvfp
	.type	divide, %function
divide:
	@ 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]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-20]
	add	r3, r3, #12
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	sub	r3, r2, r3
	sub	r2, r3, #12
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	mov	r2, #1
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #8]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	divide, .-divide
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Initialized Memory \000"
	.align	2
.LC1:
	.ascii	"A block has been checked \000"
	.align	2
.LC2:
	.ascii	"Allocated block to exactly fitting free block \000"
	.align	2
.LC3:
	.ascii	"Allocated memory after splitting free block \000"
	.align	2
.LC4:
	.ascii	"Eroor. Not enough memory available to allocate\000"
	.text
	.align	2
	.global	Allocate
	.syntax unified
	.arm
	.fpu softvfp
	.type	Allocate, %function
Allocate:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r3, .L14
	ldr	r3, [r3]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L6
	bl	initialize
	ldr	r0, .L14+4
	bl	puts
.L6:
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	b	.L7
.L10:
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-16]
	ldr	r0, .L14+8
	bl	puts
.L7:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #12
	cmp	r2, r3
	bcc	.L8
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	cmp	r3, #1
	bne	.L9
.L8:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L10
.L9:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #12
	cmp	r2, r3
	bne	.L11
	ldr	r3, [fp, #-16]
	mov	r2, #1
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	add	r3, r3, #12
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	ldr	r0, .L14+12
	bl	puts
	ldr	r3, [fp, #-8]
	b	.L12
.L11:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #12
	cmp	r2, r3
	bls	.L13
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-16]
	bl	divide
	ldr	r3, [fp, #-16]
	add	r3, r3, #12
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	ldr	r0, .L14+16
	bl	puts
	ldr	r3, [fp, #-8]
	b	.L12
.L13:
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r0, .L14+20
	bl	puts
	ldr	r3, [fp, #-8]
.L12:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	free_list
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	Allocate, .-Allocate
	.align	2
	.global	merge
	.syntax unified
	.arm
	.fpu softvfp
	.type	merge, %function
merge:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	b	.L17
.L20:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L18
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L18
	ldr	r3, [fp, #-12]
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	ldr	r3, [r3]
	add	r3, r2, r3
	add	r2, r3, #12
	ldr	r3, [fp, #-12]
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-12]
	str	r2, [r3, #8]
.L18:
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-12]
.L17:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L21
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L20
.L21:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L23:
	.align	2
.L22:
	.word	free_list
	.size	merge, .-merge
	.section	.rodata
	.align	2
.LC5:
	.ascii	"Error. Enter a valid pointer \000"
	.text
	.align	2
	.global	Free
	.syntax unified
	.arm
	.fpu softvfp
	.type	Free, %function
Free:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r2, .L27
	cmp	r3, r2
	bcc	.L25
	ldr	r2, .L27+4
	ldr	r3, [fp, #-16]
	cmp	r3, r2
	bhi	.L25
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	sub	r3, r3, #12
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #4]
	bl	merge
	b	.L26
.L25:
	ldr	r0, .L27+8
	bl	puts
	nop
.L26:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	heap
	.word	heap+20000
	.word	.LC5
	.size	Free, .-Free
	.section	.rodata
	.align	2
.LC6:
	.ascii	"%d block \012size = %zu \012\000"
	.align	2
.LC7:
	.ascii	"occupied status = occupied \000"
	.align	2
.LC8:
	.ascii	"occupied status = not occupied \000"
	.text
	.align	2
	.global	print_free_list
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_free_list, %function
print_free_list:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L34
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L30
.L33:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, [fp, #-8]
	ldr	r0, .L34+4
	bl	printf
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	cmp	r3, #1
	bne	.L31
	ldr	r0, .L34+8
	bl	puts
	b	.L32
.L31:
	ldr	r0, .L34+12
	bl	puts
.L32:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-12]
.L30:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L33
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L35:
	.align	2
.L34:
	.word	free_list
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	print_free_list, .-print_free_list
	.section	.rodata
	.align	2
.LC9:
	.ascii	"Allocation and deallocation is done successfully!\000"
	.align	2
.LC10:
	.ascii	"\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	mov	r0, #1600
	bl	Allocate
	str	r0, [fp, #-24]
	mov	r0, #150
	bl	Allocate
	mov	r3, r0
	and	r3, r3, #255
	str	r3, [fp, #-20]
	mov	r0, #4000
	bl	Allocate
	str	r0, [fp, #-16]
	ldr	r0, [fp, #-24]
	bl	Free
	mov	r0, #600
	bl	Allocate
	mov	r3, r0
	and	r3, r3, #255
	str	r3, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	Free
	mov	r0, #1600
	bl	Allocate
	str	r0, [fp, #-8]
	ldr	r0, .L38
	bl	printf
	ldr	r0, .L38+4
	bl	puts
	bl	print_free_list
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L39:
	.align	2
.L38:
	.word	.LC9
	.word	.LC10
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
