	.file	"363910.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Error"
	.text
	.globl	read_input
	.type	read_input, @function
read_input:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	read@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jg	.L3
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edi, -1
	call	_exit@PLT
.L3:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	read_input, .-read_input
	.globl	heaparray
	.bss
	.align 32
	.type	heaparray, @object
	.size	heaparray, 80
heaparray:
	.zero	80
	.globl	magic
	.align 8
	.type	magic, @object
	.size	magic, 8
magic:
	.zero	8
	.section	.rodata
	.align 8
.LC1:
	.string	"--------------------------------"
	.align 8
.LC2:
	.string	"       Magic Heap Creator       "
	.align 8
.LC3:
	.string	" 1. Create a Heap               "
	.align 8
.LC4:
	.string	" 2. Edit a Heap                 "
	.align 8
.LC5:
	.string	" 3. Delete a Heap               "
	.align 8
.LC6:
	.string	" 4. Exit                        "
.LC7:
	.string	"Your choice :"
	.text
	.globl	menu
	.type	menu, @function
menu:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	menu, .-menu
	.section	.rodata
.LC8:
	.string	"Size of Heap : "
.LC9:
	.string	"Allocate Error"
.LC10:
	.string	"Content of heap:"
.LC11:
	.string	"SuccessFul"
	.text
	.globl	create_heap
	.type	create_heap, @function
create_heap:
.LFB8:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -24[rbp], 0
	mov	DWORD PTR -28[rbp], 0
	jmp	.L6
.L10:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, heaparray[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	jne	.L7
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -16[rbp]
	mov	edx, 8
	mov	rsi, rax
	mov	edi, 0
	call	read@PLT
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	atoi@PLT
	cdqe
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	rcx, rax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, heaparray[rip]
	mov	QWORD PTR [rdx+rax], rcx
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, heaparray[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	jne	.L8
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	edi, 2
	call	exit@PLT
.L8:
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, heaparray[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	read_input
	lea	rdi, .LC11[rip]
	call	puts@PLT
	jmp	.L9
.L7:
	add	DWORD PTR -28[rbp], 1
.L6:
	cmp	DWORD PTR -28[rbp], 9
	jle	.L10
.L9:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	create_heap, .-create_heap
	.section	.rodata
.LC12:
	.string	"Index :"
.LC13:
	.string	"Out of bound!"
.LC14:
	.string	"Content of heap : "
.LC15:
	.string	"Done !"
.LC16:
	.string	"No such heap !"
	.text
	.globl	edit_heap
	.type	edit_heap, @function
edit_heap:
.LFB9:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -12[rbp]
	mov	edx, 4
	mov	rsi, rax
	mov	edi, 0
	call	read@PLT
	lea	rax, -12[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	js	.L13
	cmp	DWORD PTR -28[rbp], 9
	jle	.L14
.L13:
	lea	rdi, .LC13[rip]
	call	puts@PLT
	mov	edi, 0
	call	_exit@PLT
.L14:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, heaparray[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	je	.L15
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -12[rbp]
	mov	edx, 8
	mov	rsi, rax
	mov	edi, 0
	call	read@PLT
	lea	rax, -12[rbp]
	mov	rdi, rax
	call	atoi@PLT
	cdqe
	mov	QWORD PTR -24[rbp], rax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, heaparray[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	read_input
	lea	rdi, .LC15[rip]
	call	puts@PLT
	jmp	.L18
.L15:
	lea	rdi, .LC16[rip]
	call	puts@PLT
.L18:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	edit_heap, .-edit_heap
	.globl	delete_heap
	.type	delete_heap, @function
delete_heap:
.LFB10:
	.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 fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -12[rbp]
	mov	edx, 4
	mov	rsi, rax
	mov	edi, 0
	call	read@PLT
	lea	rax, -12[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -16[rbp], eax
	cmp	DWORD PTR -16[rbp], 0
	js	.L20
	cmp	DWORD PTR -16[rbp], 9
	jle	.L21
.L20:
	lea	rdi, .LC13[rip]
	call	puts@PLT
	mov	edi, 0
	call	_exit@PLT
.L21:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, heaparray[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	je	.L22
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, heaparray[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, heaparray[rip]
	mov	QWORD PTR [rdx+rax], 0
	lea	rdi, .LC15[rip]
	call	puts@PLT
	jmp	.L25
.L22:
	lea	rdi, .LC16[rip]
	call	puts@PLT
.L25:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	delete_heap, .-delete_heap
	.section	.rodata
.LC17:
	.string	"cat /home/magicheap/flag"
	.text
	.globl	l33t
	.type	l33t, @function
l33t:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC17[rip]
	call	system@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	l33t, .-l33t
	.section	.rodata
.LC18:
	.string	"Congrt !"
.LC19:
	.string	"So sad !"
.LC20:
	.string	"Invalid Choice"
	.text
	.globl	main
	.type	main, @function
main:
.LFB12:
	.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 fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR stdout[rip]
	mov	ecx, 0
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	setvbuf@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	ecx, 0
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	setvbuf@PLT
.L37:
	mov	eax, 0
	call	menu
	lea	rax, -16[rbp]
	mov	edx, 8
	mov	rsi, rax
	mov	edi, 0
	call	read@PLT
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	atoi@PLT
	cmp	eax, 4869
	je	.L28
	cmp	eax, 4869
	jg	.L29
	cmp	eax, 4
	je	.L30
	cmp	eax, 4
	jg	.L29
	cmp	eax, 3
	je	.L31
	cmp	eax, 3
	jg	.L29
	cmp	eax, 1
	je	.L32
	cmp	eax, 2
	je	.L33
	jmp	.L29
.L32:
	mov	eax, 0
	call	create_heap
	jmp	.L34
.L33:
	mov	eax, 0
	call	edit_heap
	jmp	.L34
.L31:
	mov	eax, 0
	call	delete_heap
	jmp	.L34
.L30:
	mov	edi, 0
	call	exit@PLT
.L28:
	mov	rax, QWORD PTR magic[rip]
	cmp	rax, 4869
	jbe	.L35
	lea	rdi, .LC18[rip]
	call	puts@PLT
	mov	eax, 0
	call	l33t
	jmp	.L34
.L35:
	lea	rdi, .LC19[rip]
	call	puts@PLT
	jmp	.L34
.L29:
	lea	rdi, .LC20[rip]
	call	puts@PLT
	nop
.L34:
	jmp	.L37
	.cfi_endproc
.LFE12:
	.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	"363910.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Error\000"
	.text
	.align	2
	.global	read_input
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_input, %function
read_input:
	@ 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]
	str	r1, [fp, #-20]
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-16]
	mov	r0, #0
	bl	read
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bgt	.L3
	ldr	r0, .L4
	bl	puts
	mvn	r0, #0
	bl	_exit
.L3:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.size	read_input, .-read_input
	.comm	heaparray,40,4
	.global	magic
	.bss
	.align	2
	.type	magic, %object
	.size	magic, 4
magic:
	.space	4
	.section	.rodata
	.align	2
.LC1:
	.ascii	"--------------------------------\000"
	.align	2
.LC2:
	.ascii	"       Magic Heap Creator       \000"
	.align	2
.LC3:
	.ascii	" 1. Create a Heap               \000"
	.align	2
.LC4:
	.ascii	" 2. Edit a Heap                 \000"
	.align	2
.LC5:
	.ascii	" 3. Delete a Heap               \000"
	.align	2
.LC6:
	.ascii	" 4. Exit                        \000"
	.align	2
.LC7:
	.ascii	"Your choice :\000"
	.text
	.align	2
	.global	menu
	.syntax unified
	.arm
	.fpu softvfp
	.type	menu, %function
menu:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L7
	bl	puts
	ldr	r0, .L7+4
	bl	puts
	ldr	r0, .L7
	bl	puts
	ldr	r0, .L7+8
	bl	puts
	ldr	r0, .L7+12
	bl	puts
	ldr	r0, .L7+16
	bl	puts
	ldr	r0, .L7+20
	bl	puts
	ldr	r0, .L7
	bl	puts
	ldr	r0, .L7+24
	bl	printf
	nop
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	menu, .-menu
	.section	.rodata
	.align	2
.LC8:
	.ascii	"Size of Heap : \000"
	.align	2
.LC9:
	.ascii	"Allocate Error\000"
	.align	2
.LC10:
	.ascii	"Content of heap:\000"
	.align	2
.LC11:
	.ascii	"SuccessFul\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	create_heap
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_heap, %function
create_heap:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L10
.L14:
	ldr	r2, .L16+4
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bne	.L11
	ldr	r0, .L16+8
	bl	printf
	sub	r3, fp, #16
	mov	r2, #8
	mov	r1, r3
	mov	r0, #0
	bl	read
	sub	r3, fp, #16
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r0, [fp, #-20]
	bl	malloc
	mov	r3, r0
	mov	r1, r3
	ldr	r2, .L16+4
	ldr	r3, [fp, #-24]
	str	r1, [r2, r3, lsl #2]
	ldr	r2, .L16+4
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bne	.L12
	ldr	r0, .L16+12
	bl	puts
	mov	r0, #2
	bl	exit
.L12:
	ldr	r0, .L16+16
	bl	printf
	ldr	r2, .L16+4
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	read_input
	ldr	r0, .L16+20
	bl	puts
	b	.L13
.L11:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L10:
	ldr	r3, [fp, #-24]
	cmp	r3, #9
	ble	.L14
.L13:
	nop
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC12
	.word	heaparray
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	create_heap, .-create_heap
	.section	.rodata
	.align	2
.LC13:
	.ascii	"Index :\000"
	.align	2
.LC14:
	.ascii	"Out of bound!\000"
	.align	2
.LC15:
	.ascii	"Content of heap : \000"
	.align	2
.LC16:
	.ascii	"Done !\000"
	.align	2
.LC17:
	.ascii	"No such heap !\000"
	.align	2
.LC18:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	edit_heap
	.syntax unified
	.arm
	.fpu softvfp
	.type	edit_heap, %function
edit_heap:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L25
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L25+4
	bl	printf
	sub	r3, fp, #12
	mov	r2, #4
	mov	r1, r3
	mov	r0, #0
	bl	read
	sub	r3, fp, #12
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	blt	.L19
	ldr	r3, [fp, #-20]
	cmp	r3, #9
	ble	.L20
.L19:
	ldr	r0, .L25+8
	bl	puts
	mov	r0, #0
	bl	_exit
.L20:
	ldr	r2, .L25+12
	ldr	r3, [fp, #-20]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L21
	ldr	r0, .L25+16
	bl	printf
	sub	r3, fp, #12
	mov	r2, #8
	mov	r1, r3
	mov	r0, #0
	bl	read
	sub	r3, fp, #12
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r0, .L25+20
	bl	printf
	ldr	r2, .L25+12
	ldr	r3, [fp, #-20]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	read_input
	ldr	r0, .L25+24
	bl	puts
	b	.L24
.L21:
	ldr	r0, .L25+28
	bl	puts
.L24:
	nop
	ldr	r3, .L25
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L23
	bl	__stack_chk_fail
.L23:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC18
	.word	.LC13
	.word	.LC14
	.word	heaparray
	.word	.LC8
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.size	edit_heap, .-edit_heap
	.section	.rodata
	.align	2
.LC19:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	delete_heap
	.syntax unified
	.arm
	.fpu softvfp
	.type	delete_heap, %function
delete_heap:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L34
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L34+4
	bl	printf
	sub	r3, fp, #12
	mov	r2, #4
	mov	r1, r3
	mov	r0, #0
	bl	read
	sub	r3, fp, #12
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	blt	.L28
	ldr	r3, [fp, #-16]
	cmp	r3, #9
	ble	.L29
.L28:
	ldr	r0, .L34+8
	bl	puts
	mov	r0, #0
	bl	_exit
.L29:
	ldr	r2, .L34+12
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L30
	ldr	r2, .L34+12
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r3
	bl	free
	ldr	r2, .L34+12
	ldr	r3, [fp, #-16]
	mov	r1, #0
	str	r1, [r2, r3, lsl #2]
	ldr	r0, .L34+16
	bl	puts
	b	.L33
.L30:
	ldr	r0, .L34+20
	bl	puts
.L33:
	nop
	ldr	r3, .L34
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L32
	bl	__stack_chk_fail
.L32:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L35:
	.align	2
.L34:
	.word	.LC19
	.word	.LC13
	.word	.LC14
	.word	heaparray
	.word	.LC16
	.word	.LC17
	.size	delete_heap, .-delete_heap
	.section	.rodata
	.align	2
.LC20:
	.ascii	"cat /home/magicheap/flag\000"
	.text
	.align	2
	.global	l33t
	.syntax unified
	.arm
	.fpu softvfp
	.type	l33t, %function
l33t:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L37
	bl	system
	nop
	pop	{fp, pc}
.L38:
	.align	2
.L37:
	.word	.LC20
	.size	l33t, .-l33t
	.section	.rodata
	.align	2
.LC21:
	.ascii	"Congrt !\000"
	.align	2
.LC22:
	.ascii	"So sad !\000"
	.align	2
.LC23:
	.ascii	"Invalid Choice\000"
	.align	2
.LC24:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L53
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L53+4
	ldr	r0, [r3]
	mov	r3, #0
	mov	r2, #2
	mov	r1, #0
	bl	setvbuf
	ldr	r3, .L53+8
	ldr	r0, [r3]
	mov	r3, #0
	mov	r2, #2
	mov	r1, #0
	bl	setvbuf
.L51:
	bl	menu
	sub	r3, fp, #16
	mov	r2, #8
	mov	r1, r3
	mov	r0, #0
	bl	read
	sub	r3, fp, #16
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	cmp	r3, #4
	bgt	.L40
	cmp	r3, #0
	ble	.L41
	sub	r3, r3, #1
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L41
.L43:
	.word	.L46
	.word	.L45
	.word	.L44
	.word	.L42
.L40:
	ldr	r2, .L53+12
	cmp	r3, r2
	beq	.L47
	b	.L41
.L46:
	bl	create_heap
	b	.L48
.L45:
	bl	edit_heap
	b	.L48
.L44:
	bl	delete_heap
	b	.L48
.L42:
	mov	r0, #0
	bl	exit
.L47:
	ldr	r3, .L53+16
	ldr	r3, [r3]
	ldr	r2, .L53+12
	cmp	r3, r2
	bls	.L49
	ldr	r0, .L53+20
	bl	puts
	bl	l33t
	b	.L48
.L49:
	ldr	r0, .L53+24
	bl	puts
	b	.L48
.L41:
	ldr	r0, .L53+28
	bl	puts
	nop
.L48:
	b	.L51
.L54:
	.align	2
.L53:
	.word	.LC24
	.word	stdout
	.word	stdin
	.word	4869
	.word	magic
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
