	.file	"863174.c"
	.intel_syntax noprefix
	.text
	.globl	freeChunks
	.bss
	.align 16
	.type	freeChunks, @object
	.size	freeChunks, 16
freeChunks:
	.zero	16
	.globl	SuspendAllocationOfFreeChunks
	.align 4
	.type	SuspendAllocationOfFreeChunks, @object
	.size	SuspendAllocationOfFreeChunks, 4
SuspendAllocationOfFreeChunks:
	.zero	4
	.globl	memory_pool_array
	.align 32
	.type	memory_pool_array, @object
	.size	memory_pool_array, 80
memory_pool_array:
	.zero	80
	.section	.rodata
.LC0:
	.string	"%d => %p\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, 1072
	mov	DWORD PTR -1060[rbp], edi
	mov	QWORD PTR -1072[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	esi, 16
	lea	rdi, freeChunks[rip]
	call	AllocStructInit
	mov	DWORD PTR -1048[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -1048[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, memory_pool_array[rip]
	add	rax, rdx
	mov	rdi, rax
	call	DeallocateFreeChunk
	add	DWORD PTR -1048[rbp], 1
.L2:
	cmp	DWORD PTR -1048[rbp], 4
	jle	.L3
	mov	DWORD PTR -1044[rbp], 0
	jmp	.L4
.L5:
	call	AllocateFreeChunk
	mov	edx, DWORD PTR -1044[rbp]
	movsx	rdx, edx
	mov	QWORD PTR -1040[rbp+rdx*8], rax
	mov	eax, DWORD PTR -1044[rbp]
	cdqe
	mov	rdx, QWORD PTR -1040[rbp+rax*8]
	mov	eax, DWORD PTR -1044[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -1044[rbp], 1
.L4:
	cmp	DWORD PTR -1044[rbp], 127
	jle	.L5
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC1:
	.string	"@line %d \n"
	.text
	.globl	MemoryAlloc
	.type	MemoryAlloc, @function
MemoryAlloc:
.LFB7:
	.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	DWORD PTR -4[rbp], edi
	mov	esi, 59
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	call	AllocateFreeChunk
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	MemoryAlloc, .-MemoryAlloc
	.globl	AllocStructInit
	.type	AllocStructInit, @function
AllocStructInit:
.LFB8:
	.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 -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -12[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], 0
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	AllocStructInit, .-AllocStructInit
	.globl	AllocStructAllocate
	.type	AllocStructAllocate, @function
AllocStructAllocate:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L12
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 4[rax]
	sal	eax, 6
	mov	edi, eax
	call	MemoryAlloc
	mov	rdx, QWORD PTR -40[rbp]
	mov	QWORD PTR 8[rdx], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	DWORD PTR -20[rbp], 0
	jmp	.L13
.L16:
	cmp	DWORD PTR -20[rbp], 62
	jg	.L14
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 4[rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -16[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L15
.L14:
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR [rax], 0
.L15:
	add	DWORD PTR -20[rbp], 1
.L13:
	cmp	DWORD PTR -20[rbp], 63
	jle	.L16
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], 64
.L12:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	AllocStructAllocate, .-AllocStructAllocate
	.globl	AllocStructDeallocate
	.type	AllocStructDeallocate, @function
AllocStructDeallocate:
.LFB10:
	.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]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	AllocStructDeallocate, .-AllocStructDeallocate
	.globl	AllocateFreeChunk
	.type	AllocateFreeChunk, @function
AllocateFreeChunk:
.LFB11:
	.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	eax, DWORD PTR freeChunks[rip]
	cmp	eax, 2
	jg	.L20
	mov	eax, DWORD PTR SuspendAllocationOfFreeChunks[rip]
	test	eax, eax
	jne	.L20
	mov	DWORD PTR SuspendAllocationOfFreeChunks[rip], 1
	mov	esi, 128
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR freeChunks[rip+4]
	sal	eax, 6
	mov	edi, eax
	call	MemoryAlloc
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -12[rbp], 0
	jmp	.L21
.L22:
	mov	eax, DWORD PTR freeChunks[rip+4]
	imul	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, freeChunks[rip]
	call	AllocStructDeallocate
	add	DWORD PTR -12[rbp], 1
.L21:
	cmp	DWORD PTR -12[rbp], 63
	jle	.L22
	mov	DWORD PTR SuspendAllocationOfFreeChunks[rip], 0
.L20:
	lea	rdi, freeChunks[rip]
	call	AllocStructAllocate
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	AllocateFreeChunk, .-AllocateFreeChunk
	.globl	DeallocateFreeChunk
	.type	DeallocateFreeChunk, @function
DeallocateFreeChunk:
.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, 8
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, freeChunks[rip]
	call	AllocStructDeallocate
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	DeallocateFreeChunk, .-DeallocateFreeChunk
	.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	"863174.c"
	.text
	.comm	freeChunks,12,4
	.global	SuspendAllocationOfFreeChunks
	.bss
	.align	2
	.type	SuspendAllocationOfFreeChunks, %object
	.size	SuspendAllocationOfFreeChunks, 4
SuspendAllocationOfFreeChunks:
	.space	4
	.comm	memory_pool_array,40,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d => %p\012\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 536
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #536
	str	r0, [fp, #-536]
	str	r1, [fp, #-540]
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r1, #8
	ldr	r0, .L8+4
	bl	AllocStructInit
	mov	r3, #0
	str	r3, [fp, #-528]
	b	.L2
.L3:
	ldr	r3, [fp, #-528]
	lsl	r3, r3, #3
	ldr	r2, .L8+8
	add	r3, r3, r2
	mov	r0, r3
	bl	DeallocateFreeChunk
	ldr	r3, [fp, #-528]
	add	r3, r3, #1
	str	r3, [fp, #-528]
.L2:
	ldr	r3, [fp, #-528]
	cmp	r3, #4
	ble	.L3
	mov	r3, #0
	str	r3, [fp, #-524]
	b	.L4
.L5:
	bl	AllocateFreeChunk
	mov	r2, r0
	ldr	r3, [fp, #-524]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-516]
	ldr	r3, [fp, #-524]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-516]
	mov	r2, r3
	ldr	r1, [fp, #-524]
	ldr	r0, .L8+12
	bl	printf
	ldr	r3, [fp, #-524]
	add	r3, r3, #1
	str	r3, [fp, #-524]
.L4:
	ldr	r3, [fp, #-524]
	cmp	r3, #127
	ble	.L5
	mov	r3, #0
	ldr	r2, .L8
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC1
	.word	freeChunks
	.word	memory_pool_array
	.word	.LC0
	.size	main, .-main
	.section	.rodata
	.align	2
.LC2:
	.ascii	"@line %d \012\000"
	.text
	.align	2
	.global	MemoryAlloc
	.syntax unified
	.arm
	.fpu softvfp
	.type	MemoryAlloc, %function
MemoryAlloc:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	mov	r1, #59
	ldr	r0, .L12
	bl	printf
	bl	AllocateFreeChunk
	ldr	r3, [fp, #-8]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC2
	.size	MemoryAlloc, .-MemoryAlloc
	.align	2
	.global	AllocStructInit
	.syntax unified
	.arm
	.fpu softvfp
	.type	AllocStructInit, %function
AllocStructInit:
	@ 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
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #8]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	AllocStructInit, .-AllocStructInit
	.align	2
	.global	AllocStructAllocate
	.syntax unified
	.arm
	.fpu softvfp
	.type	AllocStructAllocate, %function
AllocStructAllocate:
	@ 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, [fp, #-24]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L16
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	lsl	r3, r3, #6
	mov	r0, r3
	bl	MemoryAlloc
	mov	r2, r0
	ldr	r3, [fp, #-24]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L17
.L20:
	ldr	r3, [fp, #-12]
	cmp	r3, #62
	bgt	.L18
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r2, r3, r2
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	b	.L19
.L18:
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3]
.L19:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L17:
	ldr	r3, [fp, #-12]
	cmp	r3, #63
	ble	.L20
	ldr	r3, [fp, #-24]
	mov	r2, #64
	str	r2, [r3]
.L16:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r3, [fp, #-24]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	AllocStructAllocate, .-AllocStructAllocate
	.align	2
	.global	AllocStructDeallocate
	.syntax unified
	.arm
	.fpu softvfp
	.type	AllocStructDeallocate, %function
AllocStructDeallocate:
	@ 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]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	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	AllocStructDeallocate, .-AllocStructDeallocate
	.align	2
	.global	AllocateFreeChunk
	.syntax unified
	.arm
	.fpu softvfp
	.type	AllocateFreeChunk, %function
AllocateFreeChunk:
	@ 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, .L28
	ldr	r3, [r3]
	cmp	r3, #2
	bgt	.L24
	ldr	r3, .L28+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L24
	ldr	r3, .L28+4
	mov	r2, #1
	str	r2, [r3]
	mov	r1, #128
	ldr	r0, .L28+8
	bl	printf
	ldr	r3, .L28
	ldr	r3, [r3, #4]
	lsl	r3, r3, #6
	mov	r0, r3
	bl	MemoryAlloc
	str	r0, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L25
.L26:
	ldr	r3, .L28
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-12]
	mul	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L28
	bl	AllocStructDeallocate
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L25:
	ldr	r3, [fp, #-12]
	cmp	r3, #63
	ble	.L26
	ldr	r3, .L28+4
	mov	r2, #0
	str	r2, [r3]
.L24:
	ldr	r0, .L28
	bl	AllocStructAllocate
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	freeChunks
	.word	SuspendAllocationOfFreeChunks
	.word	.LC2
	.size	AllocateFreeChunk, .-AllocateFreeChunk
	.align	2
	.global	DeallocateFreeChunk
	.syntax unified
	.arm
	.fpu softvfp
	.type	DeallocateFreeChunk, %function
DeallocateFreeChunk:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r1, [fp, #-8]
	ldr	r0, .L31
	bl	AllocStructDeallocate
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L32:
	.align	2
.L31:
	.word	freeChunks
	.size	DeallocateFreeChunk, .-DeallocateFreeChunk
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
