	.file	"466475.c"
	.intel_syntax noprefix
	.text
	.globl	heap
	.bss
	.align 8
	.type	heap, @object
	.size	heap, 8
heap:
	.zero	8
	.globl	heapsize
	.align 4
	.type	heapsize, @object
	.size	heapsize, 4
heapsize:
	.zero	4
	.globl	sizehdr
	.align 4
	.type	sizehdr, @object
	.size	sizehdr, 4
sizehdr:
	.zero	4
	.globl	anchor
	.align 16
	.type	anchor, @object
	.size	anchor, 16
anchor:
	.zero	16
	.section	.rodata
.LC0:
	.string	"%s anchor= %d\n"
.LC1:
	.string	"%6d %6d %6d %6d %6d\n"
	.text
	.globl	dump_heap
	.type	dump_heap, @function
dump_heap:
.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	DWORD PTR -4[rbp], 0
	mov	edx, DWORD PTR anchor[rip+8]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -8[rbp], 0
	jmp	.L2
.L4:
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L3
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	add	rax, rdx
	mov	edi, DWORD PTR 8[rax]
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	add	rax, rdx
	mov	esi, DWORD PTR 12[rax]
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR 4[rax]
	movsx	ecx, al
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -8[rbp]
	mov	r9d, edi
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -4[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -4[rbp], edx
	cdq
	shr	edx, 31
	add	eax, edx
	and	eax, 1
	sub	eax, edx
	cmp	eax, 1
	jne	.L3
	mov	edi, 10
	call	putchar@PLT
.L3:
	mov	eax, DWORD PTR sizehdr[rip]
	add	DWORD PTR -8[rbp], eax
.L2:
	mov	eax, DWORD PTR heapsize[rip]
	cmp	DWORD PTR -8[rbp], eax
	jl	.L4
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	dump_heap, .-dump_heap
	.globl	init_heap
	.type	init_heap, @function
init_heap:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	esi, 1
	mov	edi, 32768
	call	calloc@PLT
	mov	QWORD PTR heap[rip], rax
	mov	DWORD PTR sizehdr[rip], 16
	mov	DWORD PTR heapsize[rip], 32768
	mov	DWORD PTR anchor[rip], 0
	mov	BYTE PTR anchor[rip+4], 1
	mov	DWORD PTR anchor[rip+8], 0
	mov	DWORD PTR anchor[rip+12], -1
	mov	edx, DWORD PTR heapsize[rip]
	mov	eax, DWORD PTR sizehdr[rip]
	lea	ecx, [rax+rax]
	mov	rax, QWORD PTR heap[rip]
	sub	edx, ecx
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR heap[rip]
	mov	BYTE PTR 4[rax], 0
	mov	rax, QWORD PTR heap[rip]
	mov	edx, DWORD PTR heapsize[rip]
	mov	DWORD PTR 8[rax], edx
	mov	rax, QWORD PTR heap[rip]
	mov	DWORD PTR 12[rax], -1
	mov	edx, DWORD PTR heapsize[rip]
	mov	eax, DWORD PTR sizehdr[rip]
	lea	edi, [rax+rax]
	mov	rcx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR heapsize[rip]
	mov	esi, DWORD PTR sizehdr[rip]
	sub	eax, esi
	cdqe
	add	rax, rcx
	sub	edx, edi
	mov	DWORD PTR [rax], edx
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR heapsize[rip]
	mov	ecx, DWORD PTR sizehdr[rip]
	sub	eax, ecx
	cdqe
	add	rax, rdx
	mov	BYTE PTR 4[rax], 0
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	init_heap, .-init_heap
	.globl	lalloc
	.type	lalloc, @function
lalloc:
.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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR sizehdr[rip], 16
	mov	eax, DWORD PTR -52[rbp]
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR sizehdr[rip]
	add	eax, eax
	add	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	and	eax, 15
	test	eax, eax
	je	.L7
	mov	eax, DWORD PTR -40[rbp]
	cdq
	shr	edx, 28
	add	eax, edx
	and	eax, 15
	sub	eax, edx
	mov	edx, eax
	mov	eax, 16
	sub	eax, edx
	add	DWORD PTR -40[rbp], eax
.L7:
	mov	DWORD PTR -36[rbp], 0
	jmp	.L8
.L18:
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR sizehdr[rip]
	add	eax, eax
	add	eax, edx
	cmp	DWORD PTR -40[rbp], eax
	jge	.L9
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR 4[rax]
	test	al, al
	jne	.L9
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -40[rbp]
	add	eax, edx
	mov	edx, DWORD PTR sizehdr[rip]
	sub	eax, edx
	mov	DWORD PTR -20[rbp], eax
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -40[rbp]
	add	eax, edx
	mov	DWORD PTR -16[rbp], eax
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, rdx
	mov	eax, DWORD PTR 8[rax]
	mov	edx, DWORD PTR sizehdr[rip]
	sub	eax, edx
	mov	DWORD PTR -12[rbp], eax
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, rdx
	mov	BYTE PTR 4[rax], 1
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	add	rax, rdx
	mov	BYTE PTR 4[rax], 0
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	rcx, QWORD PTR heap[rip]
	mov	edx, DWORD PTR -16[rbp]
	movsx	rdx, edx
	add	rdx, rcx
	sub	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR sizehdr[rip]
	lea	ecx, [rax+rax]
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, rdx
	mov	edx, DWORD PTR -40[rbp]
	sub	edx, ecx
	mov	DWORD PTR [rax], edx
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	add	rax, rdx
	mov	BYTE PTR 4[rax], 1
	mov	eax, DWORD PTR sizehdr[rip]
	lea	ecx, [rax+rax]
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	add	rax, rdx
	mov	edx, DWORD PTR -40[rbp]
	sub	edx, ecx
	mov	DWORD PTR [rax], edx
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	rax, rdx
	mov	BYTE PTR 4[rax], 0
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	add	rax, rdx
	mov	rcx, QWORD PTR heap[rip]
	mov	edx, DWORD PTR -12[rbp]
	movsx	rdx, edx
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, rdx
	mov	rcx, QWORD PTR heap[rip]
	mov	edx, DWORD PTR -16[rbp]
	movsx	rdx, edx
	add	rdx, rcx
	mov	eax, DWORD PTR 8[rax]
	mov	DWORD PTR 8[rdx], eax
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, rdx
	mov	rcx, QWORD PTR heap[rip]
	mov	edx, DWORD PTR -16[rbp]
	movsx	rdx, edx
	add	rdx, rcx
	mov	eax, DWORD PTR 12[rax]
	mov	DWORD PTR 12[rdx], eax
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, rdx
	mov	eax, DWORD PTR 12[rax]
	cmp	eax, -1
	jne	.L10
	mov	eax, DWORD PTR -16[rbp]
	mov	DWORD PTR anchor[rip+8], eax
	jmp	.L11
.L10:
	mov	rdx, QWORD PTR heap[rip]
	mov	rcx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, rcx
	mov	eax, DWORD PTR 12[rax]
	cdqe
	add	rdx, rax
	mov	eax, DWORD PTR -16[rbp]
	mov	DWORD PTR 8[rdx], eax
.L11:
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, rdx
	mov	edx, DWORD PTR 8[rax]
	mov	eax, DWORD PTR heapsize[rip]
	cmp	edx, eax
	je	.L12
	mov	rdx, QWORD PTR heap[rip]
	mov	rcx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, rcx
	mov	eax, DWORD PTR 8[rax]
	cdqe
	add	rdx, rax
	mov	eax, DWORD PTR -16[rbp]
	mov	DWORD PTR 12[rdx], eax
.L12:
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, rdx
	mov	DWORD PTR 12[rax], 0
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, rdx
	mov	DWORD PTR 8[rax], 0
	mov	edx, DWORD PTR sizehdr[rip]
	mov	eax, DWORD PTR -36[rbp]
	add	eax, edx
	jmp	.L19
.L9:
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR sizehdr[rip]
	add	eax, eax
	add	eax, edx
	cmp	DWORD PTR -40[rbp], eax
	jne	.L14
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR 4[rax]
	test	al, al
	jne	.L14
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, rdx
	mov	BYTE PTR 4[rax], 1
	mov	rdx, QWORD PTR heap[rip]
	mov	ecx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -40[rbp]
	add	eax, ecx
	mov	ecx, DWORD PTR sizehdr[rip]
	sub	eax, ecx
	cdqe
	add	rax, rdx
	mov	BYTE PTR 4[rax], 1
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, rdx
	mov	eax, DWORD PTR 12[rax]
	cmp	eax, -1
	jne	.L15
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, rdx
	mov	eax, DWORD PTR 8[rax]
	mov	DWORD PTR anchor[rip+8], eax
	jmp	.L16
.L15:
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, rdx
	mov	rcx, QWORD PTR heap[rip]
	mov	rsi, QWORD PTR heap[rip]
	mov	edx, DWORD PTR -36[rbp]
	movsx	rdx, edx
	add	rdx, rsi
	mov	edx, DWORD PTR 12[rdx]
	movsx	rdx, edx
	add	rdx, rcx
	mov	eax, DWORD PTR 8[rax]
	mov	DWORD PTR 8[rdx], eax
.L16:
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, rdx
	mov	edx, DWORD PTR 8[rax]
	mov	eax, DWORD PTR heapsize[rip]
	cmp	edx, eax
	je	.L17
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, rdx
	mov	rcx, QWORD PTR heap[rip]
	mov	rsi, QWORD PTR heap[rip]
	mov	edx, DWORD PTR -36[rbp]
	movsx	rdx, edx
	add	rdx, rsi
	mov	edx, DWORD PTR 8[rdx]
	movsx	rdx, edx
	add	rdx, rcx
	mov	eax, DWORD PTR 12[rax]
	mov	DWORD PTR 12[rdx], eax
.L17:
	mov	edx, DWORD PTR sizehdr[rip]
	mov	eax, DWORD PTR -36[rbp]
	add	eax, edx
	jmp	.L19
.L14:
	mov	eax, DWORD PTR sizehdr[rip]
	add	DWORD PTR -36[rbp], eax
.L8:
	mov	eax, DWORD PTR heapsize[rip]
	cmp	DWORD PTR -36[rbp], eax
	jl	.L18
	mov	eax, DWORD PTR heapsize[rip]
	mov	edx, DWORD PTR sizehdr[rip]
	sub	eax, edx
	mov	DWORD PTR -32[rbp], eax
	mov	eax, DWORD PTR heapsize[rip]
	add	eax, 32768
	movsx	rdx, eax
	mov	rax, QWORD PTR heap[rip]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR heap[rip], rax
	mov	eax, DWORD PTR heapsize[rip]
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR sizehdr[rip]
	mov	edx, 16384
	sub	edx, eax
	mov	rcx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	add	rax, rcx
	add	edx, edx
	mov	DWORD PTR [rax], edx
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	add	rax, rdx
	mov	ecx, DWORD PTR [rax]
	mov	eax, DWORD PTR -32[rbp]
	sub	eax, ecx
	mov	edx, eax
	mov	ecx, DWORD PTR sizehdr[rip]
	mov	rsi, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	add	rax, rsi
	sub	edx, ecx
	mov	DWORD PTR 12[rax], edx
	mov	edx, DWORD PTR heapsize[rip]
	mov	rcx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	add	rax, rcx
	add	edx, 32768
	mov	DWORD PTR 8[rax], edx
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	add	rax, rdx
	mov	BYTE PTR 4[rax], 1
	mov	eax, DWORD PTR heapsize[rip]
	add	eax, 32768
	mov	DWORD PTR heapsize[rip], eax
	mov	eax, DWORD PTR heapsize[rip]
	mov	edx, DWORD PTR sizehdr[rip]
	sub	eax, edx
	mov	DWORD PTR -24[rbp], eax
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	add	rax, rdx
	mov	rcx, QWORD PTR heap[rip]
	mov	edx, DWORD PTR -24[rbp]
	movsx	rdx, edx
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	add	rax, rdx
	mov	DWORD PTR 12[rax], 0
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	add	rax, rdx
	mov	DWORD PTR 8[rax], 0
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	add	rax, rdx
	mov	BYTE PTR 4[rax], 1
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	add	rax, rdx
	mov	BYTE PTR 4[rax], 1
	mov	edx, DWORD PTR sizehdr[rip]
	mov	eax, DWORD PTR -28[rbp]
	add	eax, edx
	mov	DWORD PTR -44[rbp], eax
	lea	rax, -44[rbp]
	mov	rdi, rax
	call	lfree
	mov	eax, DWORD PTR -52[rbp]
	mov	edi, eax
	call	lalloc
.L19:
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	lalloc, .-lalloc
	.globl	lfree
	.type	lfree, @function
lfree:
.LFB9:
	.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 -56[rbp], rdi
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edx, DWORD PTR sizehdr[rip]
	sub	eax, edx
	mov	DWORD PTR -36[rbp], eax
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -36[rbp]
	add	edx, eax
	mov	eax, DWORD PTR sizehdr[rip]
	add	eax, edx
	mov	DWORD PTR -32[rbp], eax
	mov	edx, DWORD PTR sizehdr[rip]
	mov	eax, DWORD PTR -36[rbp]
	sub	eax, edx
	mov	DWORD PTR -28[rbp], eax
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, edx
	mov	edx, DWORD PTR sizehdr[rip]
	sub	eax, edx
	mov	DWORD PTR -24[rbp], eax
	mov	edx, DWORD PTR sizehdr[rip]
	mov	eax, DWORD PTR -32[rbp]
	add	eax, edx
	mov	DWORD PTR -20[rbp], eax
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -20[rbp]
	add	edx, eax
	mov	eax, DWORD PTR sizehdr[rip]
	add	eax, edx
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR sizehdr[rip]
	neg	eax
	cmp	DWORD PTR -28[rbp], eax
	jne	.L22
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR 4[rax]
	test	al, al
	jne	.L23
	mov	eax, DWORD PTR -16[rbp]
	sub	eax, DWORD PTR -36[rbp]
	mov	edx, eax
	mov	ecx, DWORD PTR sizehdr[rip]
	mov	rsi, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, rsi
	sub	edx, ecx
	mov	DWORD PTR [rax], edx
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, rdx
	mov	rcx, QWORD PTR heap[rip]
	mov	edx, DWORD PTR -16[rbp]
	movsx	rdx, edx
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, rdx
	mov	DWORD PTR 12[rax], -1
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	add	rax, rdx
	mov	rcx, QWORD PTR heap[rip]
	mov	edx, DWORD PTR -36[rbp]
	movsx	rdx, edx
	add	rdx, rcx
	mov	eax, DWORD PTR 8[rax]
	mov	DWORD PTR 8[rdx], eax
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR anchor[rip+8], eax
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, rdx
	mov	eax, DWORD PTR 8[rax]
	mov	DWORD PTR -4[rbp], eax
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	add	rdx, rax
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR 12[rdx], eax
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	add	rax, rdx
	mov	DWORD PTR 12[rax], 0
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	add	rax, rdx
	mov	DWORD PTR 8[rax], 0
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, rdx
	mov	BYTE PTR 4[rax], 0
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	add	rax, rdx
	mov	BYTE PTR 4[rax], 0
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], 0
	jmp	.L21
.L23:
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, rdx
	mov	BYTE PTR 4[rax], 0
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	add	rax, rdx
	mov	BYTE PTR 4[rax], 0
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, rdx
	mov	DWORD PTR 12[rax], -1
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rdx, rax
	mov	eax, DWORD PTR anchor[rip+8]
	mov	DWORD PTR 8[rdx], eax
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR anchor[rip+8]
	cdqe
	add	rdx, rax
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR 12[rdx], eax
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR anchor[rip+8], eax
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], 0
	jmp	.L21
.L22:
	mov	eax, DWORD PTR heapsize[rip]
	cmp	DWORD PTR -20[rbp], eax
	je	.L25
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR 4[rax]
	test	al, al
	jne	.L26
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR 4[rax]
	test	al, al
	jne	.L26
	mov	eax, DWORD PTR -16[rbp]
	sub	eax, DWORD PTR -24[rbp]
	mov	edx, eax
	mov	ecx, DWORD PTR sizehdr[rip]
	mov	rsi, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	add	rax, rsi
	sub	edx, ecx
	mov	DWORD PTR [rax], edx
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	add	rax, rdx
	mov	rcx, QWORD PTR heap[rip]
	mov	edx, DWORD PTR -16[rbp]
	movsx	rdx, edx
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	add	rax, rdx
	mov	eax, DWORD PTR 12[rax]
	cmp	eax, -1
	je	.L27
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	add	rax, rdx
	mov	rcx, QWORD PTR heap[rip]
	mov	rsi, QWORD PTR heap[rip]
	mov	edx, DWORD PTR -20[rbp]
	movsx	rdx, edx
	add	rdx, rsi
	mov	edx, DWORD PTR 12[rdx]
	movsx	rdx, edx
	add	rdx, rcx
	mov	eax, DWORD PTR 8[rax]
	mov	DWORD PTR 8[rdx], eax
	jmp	.L28
.L27:
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	add	rax, rdx
	mov	eax, DWORD PTR 12[rax]
	cmp	eax, -1
	jne	.L28
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	add	rax, rdx
	mov	eax, DWORD PTR 8[rax]
	mov	DWORD PTR anchor[rip+8], eax
.L28:
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	add	rax, rdx
	mov	rcx, QWORD PTR heap[rip]
	mov	rsi, QWORD PTR heap[rip]
	mov	edx, DWORD PTR -20[rbp]
	movsx	rdx, edx
	add	rdx, rsi
	mov	edx, DWORD PTR 8[rdx]
	movsx	rdx, edx
	add	rdx, rcx
	mov	eax, DWORD PTR 12[rax]
	mov	DWORD PTR 12[rdx], eax
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, rdx
	mov	BYTE PTR 4[rax], 0
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	add	rax, rdx
	mov	BYTE PTR 4[rax], 0
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, rdx
	mov	DWORD PTR 12[rax], 0
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, rdx
	mov	DWORD PTR 8[rax], 0
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	add	rax, rdx
	mov	DWORD PTR 12[rax], 0
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	add	rax, rdx
	mov	DWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], 0
	jmp	.L21
.L26:
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR 4[rax]
	test	al, al
	jne	.L29
	mov	eax, DWORD PTR -32[rbp]
	sub	eax, DWORD PTR -24[rbp]
	mov	edx, eax
	mov	ecx, DWORD PTR sizehdr[rip]
	mov	rsi, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	add	rax, rsi
	sub	edx, ecx
	mov	DWORD PTR [rax], edx
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	add	rax, rdx
	mov	rcx, QWORD PTR heap[rip]
	mov	edx, DWORD PTR -32[rbp]
	movsx	rdx, edx
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, rdx
	mov	BYTE PTR 4[rax], 0
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	add	rax, rdx
	mov	BYTE PTR 4[rax], 0
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], 0
	jmp	.L21
.L29:
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR 4[rax]
	test	al, al
	jne	.L30
	mov	eax, DWORD PTR -16[rbp]
	sub	eax, DWORD PTR -36[rbp]
	mov	edx, eax
	mov	ecx, DWORD PTR sizehdr[rip]
	mov	rsi, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, rsi
	sub	edx, ecx
	mov	DWORD PTR [rax], edx
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, rdx
	mov	rcx, QWORD PTR heap[rip]
	mov	edx, DWORD PTR -16[rbp]
	movsx	rdx, edx
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	add	rax, rdx
	mov	rcx, QWORD PTR heap[rip]
	mov	edx, DWORD PTR -36[rbp]
	movsx	rdx, edx
	add	rdx, rcx
	mov	eax, DWORD PTR 12[rax]
	mov	DWORD PTR 12[rdx], eax
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	add	rax, rdx
	mov	rcx, QWORD PTR heap[rip]
	mov	edx, DWORD PTR -36[rbp]
	movsx	rdx, edx
	add	rdx, rcx
	mov	eax, DWORD PTR 8[rax]
	mov	DWORD PTR 8[rdx], eax
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, rdx
	mov	eax, DWORD PTR 12[rax]
	mov	DWORD PTR -12[rbp], eax
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, rdx
	mov	eax, DWORD PTR 8[rax]
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -12[rbp], -1
	jne	.L31
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR anchor[rip+8], eax
	jmp	.L32
.L31:
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	rdx, rax
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR 8[rdx], eax
.L32:
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	add	rdx, rax
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR 12[rdx], eax
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	add	rax, rdx
	mov	DWORD PTR 12[rax], 0
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	add	rax, rdx
	mov	DWORD PTR 8[rax], 0
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, rdx
	mov	BYTE PTR 4[rax], 0
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	add	rax, rdx
	mov	BYTE PTR 4[rax], 0
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], 0
	jmp	.L21
.L25:
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR 4[rax]
	test	al, al
	jne	.L30
	mov	eax, DWORD PTR -32[rbp]
	sub	eax, DWORD PTR -24[rbp]
	mov	edx, eax
	mov	ecx, DWORD PTR sizehdr[rip]
	mov	rsi, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	add	rax, rsi
	sub	edx, ecx
	mov	DWORD PTR [rax], edx
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	add	rax, rdx
	mov	rcx, QWORD PTR heap[rip]
	mov	edx, DWORD PTR -32[rbp]
	movsx	rdx, edx
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	add	rdx, rax
	mov	eax, DWORD PTR heapsize[rip]
	mov	DWORD PTR 8[rdx], eax
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, rdx
	mov	BYTE PTR 4[rax], 0
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	add	rax, rdx
	mov	BYTE PTR 4[rax], 0
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], 0
	jmp	.L21
.L30:
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, rdx
	mov	BYTE PTR 4[rax], 0
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	add	rax, rdx
	mov	BYTE PTR 4[rax], 0
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, rdx
	mov	DWORD PTR 12[rax], -1
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rdx, rax
	mov	eax, DWORD PTR anchor[rip+8]
	mov	DWORD PTR 8[rdx], eax
	mov	rdx, QWORD PTR heap[rip]
	mov	eax, DWORD PTR anchor[rip+8]
	cdqe
	add	rdx, rax
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR 12[rdx], eax
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR anchor[rip+8], eax
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], 0
	nop
.L21:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	lfree, .-lfree
	.section	.rodata
.LC2:
	.string	"init heap"
.LC3:
	.string	"first allocs"
.LC4:
	.string	"coalesce with upper"
.LC5:
	.string	"coalesce with lower"
.LC6:
	.string	"coalesce with both"
.LC7:
	.string	"blew the top off"
.LC8:
	.string	"free everything "
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 440
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -436[rbp], 0
	mov	eax, 0
	call	init_heap
	lea	rdi, .LC2[rip]
	call	dump_heap
	mov	DWORD PTR -440[rbp], 0
	jmp	.L34
.L35:
	call	rand@PLT
	mov	edx, eax
	movsx	rax, edx
	imul	rax, rax, 274877907
	shr	rax, 32
	sar	eax, 5
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	imul	ecx, eax, 500
	mov	eax, edx
	sub	eax, ecx
	mov	ebx, DWORD PTR -436[rbp]
	lea	edx, 1[rbx]
	mov	DWORD PTR -436[rbp], edx
	mov	edi, eax
	call	lalloc
	movsx	rdx, ebx
	mov	DWORD PTR -432[rbp+rdx*4], eax
	add	DWORD PTR -440[rbp], 1
.L34:
	cmp	DWORD PTR -440[rbp], 19
	jle	.L35
	lea	rdi, .LC3[rip]
	call	dump_heap
	lea	rax, -432[rbp]
	add	rax, 40
	mov	rdi, rax
	call	lfree
	lea	rax, -432[rbp]
	add	rax, 44
	mov	rdi, rax
	call	lfree
	lea	rdi, .LC4[rip]
	call	dump_heap
	lea	rax, -432[rbp]
	add	rax, 56
	mov	rdi, rax
	call	lfree
	lea	rax, -432[rbp]
	add	rax, 52
	mov	rdi, rax
	call	lfree
	lea	rdi, .LC5[rip]
	call	dump_heap
	lea	rax, -432[rbp]
	add	rax, 20
	mov	rdi, rax
	call	lfree
	lea	rax, -432[rbp]
	add	rax, 28
	mov	rdi, rax
	call	lfree
	lea	rax, -432[rbp]
	add	rax, 24
	mov	rdi, rax
	call	lfree
	lea	rdi, .LC6[rip]
	call	dump_heap
	mov	edi, 80000
	call	lalloc
	mov	DWORD PTR -412[rbp], eax
	lea	rdi, .LC7[rip]
	call	dump_heap
	mov	DWORD PTR -440[rbp], 0
	jmp	.L36
.L38:
	mov	eax, DWORD PTR -440[rbp]
	cdqe
	mov	eax, DWORD PTR -432[rbp+rax*4]
	test	eax, eax
	je	.L37
	lea	rdx, -432[rbp]
	mov	eax, DWORD PTR -440[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	rdi, rax
	call	lfree
.L37:
	add	DWORD PTR -440[rbp], 1
.L36:
	cmp	DWORD PTR -440[rbp], 19
	jle	.L38
	lea	rdi, .LC8[rip]
	call	dump_heap
	mov	eax, 0
	mov	rsi, QWORD PTR -24[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L40
	call	__stack_chk_fail@PLT
.L40:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.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	"466475.c"
	.text
	.comm	heap,4,4
	.comm	heapsize,4,4
	.comm	sizehdr,4,4
	.comm	anchor,16,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s anchor= %d\012\000"
	.align	2
.LC1:
	.ascii	"%6d %6d %6d %6d %6d\012\000"
	.text
	.align	2
	.global	dump_heap
	.syntax unified
	.arm
	.fpu softvfp
	.type	dump_heap, %function
dump_heap:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, .L5
	ldr	r3, [r3, #8]
	mov	r2, r3
	ldr	r1, [fp, #-16]
	ldr	r0, .L5+4
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L2
.L4:
	ldr	r3, .L5+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L3
	ldr	r3, .L5+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldr	r0, [r3]
	ldr	r3, .L5+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	mov	ip, r3
	ldr	r3, .L5+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldr	r3, [r3, #12]
	ldr	r2, .L5+8
	ldr	r1, [r2]
	ldr	r2, [fp, #-12]
	add	r2, r1, r2
	ldr	r2, [r2, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, ip
	mov	r2, r0
	ldr	r1, [fp, #-12]
	ldr	r0, .L5+12
	bl	printf
	ldr	r3, [fp, #-8]
	add	r2, r3, #1
	str	r2, [fp, #-8]
	cmp	r3, #0
	and	r3, r3, #1
	rsblt	r3, r3, #0
	cmp	r3, #1
	bne	.L3
	mov	r0, #10
	bl	putchar
.L3:
	ldr	r3, .L5+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	str	r3, [fp, #-12]
.L2:
	ldr	r3, .L5+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L4
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	anchor
	.word	.LC0
	.word	heap
	.word	.LC1
	.word	sizehdr
	.word	heapsize
	.size	dump_heap, .-dump_heap
	.align	2
	.global	init_heap
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_heap, %function
init_heap:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r1, #1
	mov	r0, #32768
	bl	calloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L8
	str	r2, [r3]
	ldr	r3, .L8+4
	mov	r2, #16
	str	r2, [r3]
	ldr	r3, .L8+8
	mov	r2, #32768
	str	r2, [r3]
	ldr	r3, .L8+12
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L8+12
	mov	r2, #1
	strb	r2, [r3, #4]
	ldr	r3, .L8+12
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r3, .L8+12
	mvn	r2, #0
	str	r2, [r3, #12]
	ldr	r3, .L8+8
	ldr	r1, [r3]
	ldr	r3, .L8+4
	ldr	r3, [r3]
	lsl	r2, r3, #1
	ldr	r3, .L8
	ldr	r3, [r3]
	sub	r2, r1, r2
	str	r2, [r3]
	ldr	r3, .L8
	ldr	r3, [r3]
	mov	r2, #0
	strb	r2, [r3, #4]
	ldr	r3, .L8
	ldr	r3, [r3]
	ldr	r2, .L8+8
	ldr	r2, [r2]
	str	r2, [r3, #8]
	ldr	r3, .L8
	ldr	r3, [r3]
	mvn	r2, #0
	str	r2, [r3, #12]
	ldr	r3, .L8+8
	ldr	r1, [r3]
	ldr	r3, .L8+4
	ldr	r3, [r3]
	lsl	r2, r3, #1
	ldr	r3, .L8
	ldr	r3, [r3]
	ldr	r0, .L8+8
	ldr	ip, [r0]
	ldr	r0, .L8+4
	ldr	r0, [r0]
	sub	r0, ip, r0
	add	r3, r3, r0
	sub	r2, r1, r2
	str	r2, [r3]
	ldr	r3, .L8
	ldr	r3, [r3]
	ldr	r2, .L8+8
	ldr	r1, [r2]
	ldr	r2, .L8+4
	ldr	r2, [r2]
	sub	r2, r1, r2
	add	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3, #4]
	nop
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	heap
	.word	sizehdr
	.word	heapsize
	.word	anchor
	.size	init_heap, .-init_heap
	.section	.rodata
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	lalloc
	.syntax unified
	.arm
	.fpu softvfp
	.type	lalloc, %function
lalloc:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-48]
	ldr	r3, .L25
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L25+4
	mov	r2, #16
	str	r2, [r3]
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-40]
	ldr	r3, .L25+4
	ldr	r3, [r3]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-40]
	and	r3, r3, #15
	cmp	r3, #0
	beq	.L11
	ldr	r3, [fp, #-40]
	rsbs	r2, r3, #0
	and	r3, r3, #15
	and	r2, r2, #15
	rsbpl	r3, r2, #0
	rsb	r3, r3, #16
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	str	r3, [fp, #-40]
.L11:
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L12
.L22:
	ldr	r3, .L25+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L25+4
	ldr	r3, [r3]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	bge	.L13
	ldr	r3, .L25+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L13
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-40]
	add	r2, r2, r3
	ldr	r3, .L25+4
	ldr	r3, [r3]
	sub	r3, r2, r3
	str	r3, [fp, #-20]
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, .L25+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	ldr	r2, [r3, #8]
	ldr	r3, .L25+4
	ldr	r3, [r3]
	sub	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, .L25+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	mov	r2, #1
	strb	r2, [r3, #4]
	ldr	r3, .L25+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #4]
	ldr	r3, .L25+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, .L25+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [fp, #-40]
	sub	r2, r1, r2
	str	r2, [r3]
	ldr	r3, .L25+4
	ldr	r3, [r3]
	lsl	r2, r3, #1
	ldr	r3, .L25+8
	ldr	r1, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r1, r3
	ldr	r1, [fp, #-40]
	sub	r2, r1, r2
	str	r2, [r3]
	ldr	r3, .L25+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	mov	r2, #1
	strb	r2, [r3, #4]
	ldr	r3, .L25+4
	ldr	r3, [r3]
	lsl	r2, r3, #1
	ldr	r3, .L25+8
	ldr	r1, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r1, r3
	ldr	r1, [fp, #-40]
	sub	r2, r1, r2
	str	r2, [r3]
	ldr	r3, .L25+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #4]
	ldr	r3, .L25+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, .L25+8
	ldr	r1, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, .L25+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	add	r2, r2, r3
	ldr	r3, .L25+8
	ldr	r1, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r1, r3
	ldr	r2, [r2, #8]
	str	r2, [r3, #8]
	ldr	r3, .L25+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	add	r2, r2, r3
	ldr	r3, .L25+8
	ldr	r1, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r1, r3
	ldr	r2, [r2, #12]
	str	r2, [r3, #12]
	ldr	r3, .L25+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3, #12]
	cmn	r3, #1
	bne	.L14
	ldr	r2, .L25+12
	ldr	r3, [fp, #-16]
	str	r3, [r2, #8]
	b	.L15
.L14:
	ldr	r3, .L25+8
	ldr	r3, [r3]
	ldr	r2, .L25+8
	ldr	r1, [r2]
	ldr	r2, [fp, #-36]
	add	r2, r1, r2
	ldr	r2, [r2, #12]
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	str	r2, [r3, #8]
.L15:
	ldr	r3, .L25+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	ldr	r2, [r3, #8]
	ldr	r3, .L25+16
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L16
	ldr	r3, .L25+8
	ldr	r3, [r3]
	ldr	r2, .L25+8
	ldr	r1, [r2]
	ldr	r2, [fp, #-36]
	add	r2, r1, r2
	ldr	r2, [r2, #8]
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	str	r2, [r3, #12]
.L16:
	ldr	r3, .L25+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #12]
	ldr	r3, .L25+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r3, .L25+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	b	.L23
.L13:
	ldr	r3, .L25+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L25+4
	ldr	r3, [r3]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	bne	.L18
	ldr	r3, .L25+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L18
	ldr	r3, .L25+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	mov	r2, #1
	strb	r2, [r3, #4]
	ldr	r3, .L25+8
	ldr	r3, [r3]
	ldr	r1, [fp, #-36]
	ldr	r2, [fp, #-40]
	add	r1, r1, r2
	ldr	r2, .L25+4
	ldr	r2, [r2]
	sub	r2, r1, r2
	add	r3, r3, r2
	mov	r2, #1
	strb	r2, [r3, #4]
	ldr	r3, .L25+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3, #12]
	cmn	r3, #1
	bne	.L19
	ldr	r3, .L25+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	ldr	r2, .L25+12
	str	r3, [r2, #8]
	b	.L20
.L19:
	ldr	r3, .L25+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	add	r2, r2, r3
	ldr	r3, .L25+8
	ldr	r3, [r3]
	ldr	r1, .L25+8
	ldr	r0, [r1]
	ldr	r1, [fp, #-36]
	add	r1, r0, r1
	ldr	r1, [r1, #12]
	add	r3, r3, r1
	ldr	r2, [r2, #8]
	str	r2, [r3, #8]
.L20:
	ldr	r3, .L25+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	ldr	r2, [r3, #8]
	ldr	r3, .L25+16
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L21
	ldr	r3, .L25+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	add	r2, r2, r3
	ldr	r3, .L25+8
	ldr	r3, [r3]
	ldr	r1, .L25+8
	ldr	r0, [r1]
	ldr	r1, [fp, #-36]
	add	r1, r0, r1
	ldr	r1, [r1, #8]
	add	r3, r3, r1
	ldr	r2, [r2, #12]
	str	r2, [r3, #12]
.L21:
	ldr	r3, .L25+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	b	.L23
.L18:
	ldr	r3, .L25+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	str	r3, [fp, #-36]
.L12:
	ldr	r3, .L25+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	blt	.L22
	ldr	r3, .L25+16
	ldr	r2, [r3]
	ldr	r3, .L25+4
	ldr	r3, [r3]
	sub	r3, r2, r3
	str	r3, [fp, #-32]
	ldr	r3, .L25+8
	ldr	r2, [r3]
	ldr	r3, .L25+16
	ldr	r3, [r3]
	add	r3, r3, #32768
	mov	r1, r3
	mov	r0, r2
	bl	realloc
	mov	r3, r0
	ldr	r2, .L25+8
	str	r3, [r2]
	ldr	r3, .L25+16
	ldr	r3, [r3]
	str	r3, [fp, #-28]
	ldr	r3, .L25+4
	ldr	r3, [r3]
	rsb	r2, r3, #16384
	ldr	r3, .L25+8
	ldr	r1, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r1, r3
	lsl	r2, r2, #1
	str	r2, [r3]
	ldr	r3, .L25+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	sub	r1, r2, r3
	ldr	r3, .L25+4
	ldr	r2, [r3]
	ldr	r3, .L25+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r0, r3
	sub	r2, r1, r2
	str	r2, [r3, #12]
	ldr	r3, .L25+16
	ldr	r2, [r3]
	ldr	r3, .L25+8
	ldr	r1, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r1, r3
	add	r2, r2, #32768
	str	r2, [r3, #8]
	ldr	r3, .L25+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	mov	r2, #1
	strb	r2, [r3, #4]
	ldr	r3, .L25+16
	ldr	r3, [r3]
	add	r3, r3, #32768
	ldr	r2, .L25+16
	str	r3, [r2]
	ldr	r3, .L25+16
	ldr	r2, [r3]
	ldr	r3, .L25+4
	ldr	r3, [r3]
	sub	r3, r2, r3
	str	r3, [fp, #-24]
	ldr	r3, .L25+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r2, r2, r3
	ldr	r3, .L25+8
	ldr	r1, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, .L25+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #12]
	ldr	r3, .L25+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r3, .L25+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	mov	r2, #1
	strb	r2, [r3, #4]
	ldr	r3, .L25+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	mov	r2, #1
	strb	r2, [r3, #4]
	ldr	r3, .L25+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	str	r3, [fp, #-44]
	sub	r3, fp, #44
	mov	r0, r3
	bl	lfree
	ldr	r0, [fp, #-48]
	bl	lalloc
	mov	r3, r0
.L23:
	ldr	r2, .L25
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L24
	bl	__stack_chk_fail
.L24:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC2
	.word	sizehdr
	.word	heap
	.word	anchor
	.word	heapsize
	.size	lalloc, .-lalloc
	.align	2
	.global	lfree
	.syntax unified
	.arm
	.fpu softvfp
	.type	lfree, %function
lfree:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #52
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	ldr	r2, [r3]
	ldr	r3, .L39
	ldr	r3, [r3]
	sub	r3, r2, r3
	str	r3, [fp, #-40]
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	add	r2, r2, r3
	ldr	r3, .L39
	ldr	r3, [r3]
	add	r3, r2, r3
	str	r3, [fp, #-36]
	ldr	r3, .L39
	ldr	r3, [r3]
	ldr	r2, [fp, #-40]
	sub	r3, r2, r3
	str	r3, [fp, #-32]
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	sub	r2, r2, r3
	ldr	r3, .L39
	ldr	r3, [r3]
	sub	r3, r2, r3
	str	r3, [fp, #-28]
	ldr	r3, .L39
	ldr	r3, [r3]
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	str	r3, [fp, #-24]
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r2, r2, r3
	ldr	r3, .L39
	ldr	r3, [r3]
	add	r3, r2, r3
	str	r3, [fp, #-20]
	ldr	r3, .L39
	ldr	r3, [r3]
	rsb	r3, r3, #0
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	bne	.L28
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L29
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-40]
	sub	r1, r2, r3
	ldr	r3, .L39
	ldr	r2, [r3]
	ldr	r3, .L39+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-40]
	add	r3, r0, r3
	sub	r2, r1, r2
	str	r2, [r3]
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	add	r2, r2, r3
	ldr	r3, .L39+4
	ldr	r1, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	mvn	r2, #0
	str	r2, [r3, #12]
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r2, r2, r3
	ldr	r3, .L39+4
	ldr	r1, [r3]
	ldr	r3, [fp, #-40]
	add	r3, r1, r3
	ldr	r2, [r2, #8]
	str	r2, [r3, #8]
	ldr	r2, .L39+8
	ldr	r3, [fp, #-40]
	str	r3, [r2, #8]
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	str	r3, [fp, #-8]
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, [fp, #-40]
	str	r2, [r3, #12]
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #12]
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #4]
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #4]
	ldr	r3, [fp, #-48]
	mov	r2, #0
	str	r2, [r3]
	b	.L27
.L29:
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #4]
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #4]
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	mvn	r2, #0
	str	r2, [r3, #12]
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	ldr	r2, .L39+8
	ldr	r2, [r2, #8]
	str	r2, [r3, #8]
	ldr	r3, .L39+4
	ldr	r3, [r3]
	ldr	r2, .L39+8
	ldr	r2, [r2, #8]
	add	r3, r3, r2
	ldr	r2, [fp, #-40]
	str	r2, [r3, #12]
	ldr	r2, .L39+8
	ldr	r3, [fp, #-40]
	str	r3, [r2, #8]
	ldr	r3, [fp, #-48]
	mov	r2, #0
	str	r2, [r3]
	b	.L27
.L28:
	ldr	r3, .L39+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	beq	.L31
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L32
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L32
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-28]
	sub	r1, r2, r3
	ldr	r3, .L39
	ldr	r2, [r3]
	ldr	r3, .L39+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r0, r3
	sub	r2, r1, r2
	str	r2, [r3]
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r2, r2, r3
	ldr	r3, .L39+4
	ldr	r1, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3, #12]
	cmn	r3, #1
	beq	.L33
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r2, r2, r3
	ldr	r3, .L39+4
	ldr	r3, [r3]
	ldr	r1, .L39+4
	ldr	r0, [r1]
	ldr	r1, [fp, #-24]
	add	r1, r0, r1
	ldr	r1, [r1, #12]
	add	r3, r3, r1
	ldr	r2, [r2, #8]
	str	r2, [r3, #8]
	b	.L34
.L33:
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3, #12]
	cmn	r3, #1
	bne	.L34
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	ldr	r2, .L39+8
	str	r3, [r2, #8]
.L34:
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r2, r2, r3
	ldr	r3, .L39+4
	ldr	r3, [r3]
	ldr	r1, .L39+4
	ldr	r0, [r1]
	ldr	r1, [fp, #-24]
	add	r1, r0, r1
	ldr	r1, [r1, #8]
	add	r3, r3, r1
	ldr	r2, [r2, #12]
	str	r2, [r3, #12]
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #4]
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #4]
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #12]
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #12]
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r3, [fp, #-48]
	mov	r2, #0
	str	r2, [r3]
	b	.L27
.L32:
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L35
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-28]
	sub	r1, r2, r3
	ldr	r3, .L39
	ldr	r2, [r3]
	ldr	r3, .L39+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r0, r3
	sub	r2, r1, r2
	str	r2, [r3]
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r2, r2, r3
	ldr	r3, .L39+4
	ldr	r1, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #4]
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #4]
	ldr	r3, [fp, #-48]
	mov	r2, #0
	str	r2, [r3]
	b	.L27
.L35:
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L36
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-40]
	sub	r1, r2, r3
	ldr	r3, .L39
	ldr	r2, [r3]
	ldr	r3, .L39+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-40]
	add	r3, r0, r3
	sub	r2, r1, r2
	str	r2, [r3]
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	add	r2, r2, r3
	ldr	r3, .L39+4
	ldr	r1, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r2, r2, r3
	ldr	r3, .L39+4
	ldr	r1, [r3]
	ldr	r3, [fp, #-40]
	add	r3, r1, r3
	ldr	r2, [r2, #12]
	str	r2, [r3, #12]
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r2, r2, r3
	ldr	r3, .L39+4
	ldr	r1, [r3]
	ldr	r3, [fp, #-40]
	add	r3, r1, r3
	ldr	r2, [r2, #8]
	str	r2, [r3, #8]
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	ldr	r3, [r3, #12]
	str	r3, [fp, #-16]
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	bne	.L37
	ldr	r2, .L39+8
	ldr	r3, [fp, #-40]
	str	r3, [r2, #8]
	b	.L38
.L37:
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [fp, #-40]
	str	r2, [r3, #8]
.L38:
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldr	r2, [fp, #-40]
	str	r2, [r3, #12]
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #12]
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #4]
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #4]
	ldr	r3, [fp, #-48]
	mov	r2, #0
	str	r2, [r3]
	b	.L27
.L31:
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L36
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-28]
	sub	r1, r2, r3
	ldr	r3, .L39
	ldr	r2, [r3]
	ldr	r3, .L39+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r0, r3
	sub	r2, r1, r2
	str	r2, [r3]
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r2, r2, r3
	ldr	r3, .L39+4
	ldr	r1, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	ldr	r2, .L39+12
	ldr	r2, [r2]
	str	r2, [r3, #8]
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #4]
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #4]
	ldr	r3, [fp, #-48]
	mov	r2, #0
	str	r2, [r3]
	b	.L27
.L36:
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #4]
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #4]
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	mvn	r2, #0
	str	r2, [r3, #12]
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	ldr	r2, .L39+8
	ldr	r2, [r2, #8]
	str	r2, [r3, #8]
	ldr	r3, .L39+4
	ldr	r3, [r3]
	ldr	r2, .L39+8
	ldr	r2, [r2, #8]
	add	r3, r3, r2
	ldr	r2, [fp, #-40]
	str	r2, [r3, #12]
	ldr	r2, .L39+8
	ldr	r3, [fp, #-40]
	str	r3, [r2, #8]
	ldr	r3, [fp, #-48]
	mov	r2, #0
	str	r2, [r3]
	nop
.L27:
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L40:
	.align	2
.L39:
	.word	sizehdr
	.word	heap
	.word	anchor
	.word	heapsize
	.size	lfree, .-lfree
	.section	.rodata
	.align	2
.LC3:
	.ascii	"init heap\000"
	.align	2
.LC4:
	.ascii	"first allocs\000"
	.align	2
.LC5:
	.ascii	"coalesce with upper\000"
	.align	2
.LC6:
	.ascii	"coalesce with lower\000"
	.align	2
.LC7:
	.ascii	"coalesce with both\000"
	.align	2
.LC8:
	.ascii	"blew the top off\000"
	.align	2
.LC9:
	.ascii	"free everything \000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 416
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #420
	ldr	r3, .L49
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-420]
	bl	init_heap
	ldr	r0, .L49+4
	bl	dump_heap
	mov	r3, #0
	str	r3, [fp, #-424]
	b	.L42
.L43:
	bl	rand
	mov	r1, r0
	ldr	r3, .L49+8
	smull	r2, r3, r1, r3
	asr	r2, r3, #5
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, r1, r3
	ldr	r4, [fp, #-420]
	add	r3, r4, #1
	str	r3, [fp, #-420]
	mov	r0, r2
	bl	lalloc
	mov	r2, r0
	lsl	r3, r4, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	str	r2, [r3, #-404]
	ldr	r3, [fp, #-424]
	add	r3, r3, #1
	str	r3, [fp, #-424]
.L42:
	ldr	r3, [fp, #-424]
	cmp	r3, #19
	ble	.L43
	ldr	r0, .L49+12
	bl	dump_heap
	sub	r3, fp, #416
	add	r3, r3, #40
	mov	r0, r3
	bl	lfree
	sub	r3, fp, #416
	add	r3, r3, #44
	mov	r0, r3
	bl	lfree
	ldr	r0, .L49+16
	bl	dump_heap
	sub	r3, fp, #416
	add	r3, r3, #56
	mov	r0, r3
	bl	lfree
	sub	r3, fp, #416
	add	r3, r3, #52
	mov	r0, r3
	bl	lfree
	ldr	r0, .L49+20
	bl	dump_heap
	sub	r3, fp, #416
	add	r3, r3, #20
	mov	r0, r3
	bl	lfree
	sub	r3, fp, #416
	add	r3, r3, #28
	mov	r0, r3
	bl	lfree
	sub	r3, fp, #416
	add	r3, r3, #24
	mov	r0, r3
	bl	lfree
	ldr	r0, .L49+24
	bl	dump_heap
	ldr	r0, .L49+28
	bl	lalloc
	mov	r3, r0
	str	r3, [fp, #-396]
	ldr	r0, .L49+32
	bl	dump_heap
	mov	r3, #0
	str	r3, [fp, #-424]
	b	.L44
.L46:
	ldr	r3, [fp, #-424]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-404]
	cmp	r3, #0
	beq	.L45
	sub	r2, fp, #416
	ldr	r3, [fp, #-424]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r0, r3
	bl	lfree
.L45:
	ldr	r3, [fp, #-424]
	add	r3, r3, #1
	str	r3, [fp, #-424]
.L44:
	ldr	r3, [fp, #-424]
	cmp	r3, #19
	ble	.L46
	ldr	r0, .L49+36
	bl	dump_heap
	mov	r3, #0
	ldr	r2, .L49
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L48
	bl	__stack_chk_fail
.L48:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L50:
	.align	2
.L49:
	.word	.LC10
	.word	.LC3
	.word	274877907
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	80000
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
