	.file	"74844.c"
	.intel_syntax noprefix
	.text
	.globl	__free_hook
	.bss
	.align 8
	.type	__free_hook, @object
	.size	__free_hook, 8
__free_hook:
	.zero	8
	.text
	.globl	__free
	.type	__free, @function
__free:
.LFB0:
	.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, 72
	.cfi_offset 3, -24
	mov	QWORD PTR -72[rbp], rdi
	mov	rdx, QWORD PTR _heapbase[rip]
	mov	rax, QWORD PTR -72[rbp]
	sub	rax, rdx
	lea	rdx, 4095[rax]
	test	rax, rax
	cmovs	rax, rdx
	sar	rax, 12
	add	rax, 1
	mov	QWORD PTR -48[rbp], rax
	mov	rcx, QWORD PTR _heapinfo[rip]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -52[rbp], 0
	jne	.L2
	mov	rax, QWORD PTR _chunks_used[rip]
	sub	rax, 1
	mov	QWORD PTR _chunks_used[rip], rax
	mov	rcx, QWORD PTR _bytes_used[rip]
	mov	rsi, QWORD PTR _heapinfo[rip]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rsi
	mov	rax, QWORD PTR 8[rax]
	sal	rax, 12
	mov	rdx, rax
	mov	rax, rcx
	sub	rax, rdx
	mov	QWORD PTR _bytes_used[rip], rax
	mov	rcx, QWORD PTR _heapinfo[rip]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	rax, QWORD PTR 8[rax]
	sal	rax, 12
	mov	rdx, rax
	mov	rax, QWORD PTR _bytes_free[rip]
	add	rax, rdx
	mov	QWORD PTR _bytes_free[rip], rax
	mov	rbx, QWORD PTR _heapindex[rip]
	cmp	rbx, QWORD PTR -48[rbp]
	jbe	.L3
	jmp	.L4
.L5:
	mov	rdx, QWORD PTR _heapinfo[rip]
	mov	rax, rbx
	add	rax, rax
	add	rax, rbx
	sal	rax, 3
	add	rax, rdx
	mov	rbx, QWORD PTR 16[rax]
.L4:
	cmp	rbx, QWORD PTR -48[rbp]
	ja	.L5
	jmp	.L6
.L3:
	mov	rdx, QWORD PTR _heapinfo[rip]
	mov	rax, rbx
	add	rax, rax
	add	rax, rbx
	sal	rax, 3
	add	rax, rdx
	mov	rbx, QWORD PTR 8[rax]
	test	rbx, rbx
	je	.L7
	cmp	rbx, QWORD PTR -48[rbp]
	jb	.L3
.L7:
	mov	rdx, QWORD PTR _heapinfo[rip]
	mov	rax, rbx
	add	rax, rax
	add	rax, rbx
	sal	rax, 3
	add	rax, rdx
	mov	rbx, QWORD PTR 16[rax]
.L6:
	mov	rdx, QWORD PTR _heapinfo[rip]
	mov	rax, rbx
	add	rax, rax
	add	rax, rbx
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, rbx
	cmp	QWORD PTR -48[rbp], rax
	jne	.L8
	mov	rdx, QWORD PTR _heapinfo[rip]
	mov	rax, rbx
	add	rax, rax
	add	rax, rbx
	sal	rax, 3
	add	rax, rdx
	mov	rcx, QWORD PTR [rax]
	mov	rsi, QWORD PTR _heapinfo[rip]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rsi
	mov	rdx, QWORD PTR 8[rax]
	mov	rsi, QWORD PTR _heapinfo[rip]
	mov	rax, rbx
	add	rax, rax
	add	rax, rbx
	sal	rax, 3
	add	rax, rsi
	add	rdx, rcx
	mov	QWORD PTR [rax], rdx
	mov	QWORD PTR -48[rbp], rbx
	jmp	.L9
.L8:
	mov	rcx, QWORD PTR _heapinfo[rip]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rcx, rax
	mov	rsi, QWORD PTR _heapinfo[rip]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	lea	rdx, [rsi+rax]
	mov	rax, QWORD PTR 8[rcx]
	mov	QWORD PTR [rdx], rax
	mov	rdx, QWORD PTR _heapinfo[rip]
	mov	rax, rbx
	add	rax, rax
	add	rax, rbx
	sal	rax, 3
	lea	rcx, [rdx+rax]
	mov	rsi, QWORD PTR _heapinfo[rip]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	lea	rdx, [rsi+rax]
	mov	rax, QWORD PTR 8[rcx]
	mov	QWORD PTR 8[rdx], rax
	mov	rcx, QWORD PTR _heapinfo[rip]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	QWORD PTR 16[rax], rbx
	mov	rdx, QWORD PTR _heapinfo[rip]
	mov	rax, rbx
	add	rax, rax
	add	rax, rbx
	sal	rax, 3
	add	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR 8[rdx], rax
	mov	rcx, QWORD PTR _heapinfo[rip]
	mov	rsi, QWORD PTR _heapinfo[rip]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rsi
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	lea	rdx, [rcx+rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR 16[rdx], rax
	mov	rax, QWORD PTR _chunks_free[rip]
	add	rax, 1
	mov	QWORD PTR _chunks_free[rip], rax
.L9:
	mov	rcx, QWORD PTR _heapinfo[rip]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -48[rbp]
	lea	rcx, [rdx+rax]
	mov	rsi, QWORD PTR _heapinfo[rip]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rsi
	mov	rax, QWORD PTR 8[rax]
	cmp	rcx, rax
	jne	.L10
	mov	rcx, QWORD PTR _heapinfo[rip]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	rsi, QWORD PTR [rax]
	mov	rcx, QWORD PTR _heapinfo[rip]
	mov	rdi, QWORD PTR _heapinfo[rip]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rdi
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	rcx, QWORD PTR [rax]
	mov	rdi, QWORD PTR _heapinfo[rip]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rdi
	lea	rdx, [rsi+rcx]
	mov	QWORD PTR [rax], rdx
	mov	rcx, QWORD PTR _heapinfo[rip]
	mov	rsi, QWORD PTR _heapinfo[rip]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rsi
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rcx, rax
	mov	rsi, QWORD PTR _heapinfo[rip]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	lea	rdx, [rsi+rax]
	mov	rax, QWORD PTR 8[rcx]
	mov	QWORD PTR 8[rdx], rax
	mov	rcx, QWORD PTR _heapinfo[rip]
	mov	rsi, QWORD PTR _heapinfo[rip]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rsi
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	lea	rdx, [rcx+rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR 16[rdx], rax
	mov	rax, QWORD PTR _chunks_free[rip]
	sub	rax, 1
	mov	QWORD PTR _chunks_free[rip], rax
.L10:
	mov	rcx, QWORD PTR _heapinfo[rip]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 7
	jbe	.L11
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR _heaplimit[rip]
	cmp	rdx, rax
	jne	.L11
	mov	rax, QWORD PTR __morecore[rip]
	mov	edi, 0
	call	rax
	mov	rcx, QWORD PTR _heapbase[rip]
	mov	rsi, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	add	rdx, rsi
	sub	rdx, 1
	sal	rdx, 12
	add	rdx, rcx
	cmp	rax, rdx
	jne	.L11
	mov	rax, QWORD PTR -32[rbp]
	sal	rax, 12
	mov	rbx, rax
	mov	rax, QWORD PTR _heaplimit[rip]
	sub	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR _heaplimit[rip], rax
	mov	rax, QWORD PTR __morecore[rip]
	mov	rdx, rbx
	neg	rdx
	mov	rdi, rdx
	call	rax
	mov	rcx, QWORD PTR _heapinfo[rip]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rcx, rax
	mov	rsi, QWORD PTR _heapinfo[rip]
	mov	rdi, QWORD PTR _heapinfo[rip]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rdi
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	lea	rdx, [rsi+rax]
	mov	rax, QWORD PTR 8[rcx]
	mov	QWORD PTR 8[rdx], rax
	mov	rcx, QWORD PTR _heapinfo[rip]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rcx, rax
	mov	rsi, QWORD PTR _heapinfo[rip]
	mov	rdi, QWORD PTR _heapinfo[rip]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rdi
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	lea	rdx, [rsi+rax]
	mov	rax, QWORD PTR 16[rcx]
	mov	QWORD PTR 16[rdx], rax
	mov	rcx, QWORD PTR _heapinfo[rip]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR _chunks_free[rip]
	sub	rax, 1
	mov	QWORD PTR _chunks_free[rip], rax
	mov	rax, QWORD PTR _bytes_free[rip]
	sub	rax, rbx
	mov	QWORD PTR _bytes_free[rip], rax
.L11:
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR _heapindex[rip], rax
	jmp	.L12
.L2:
	mov	rax, QWORD PTR _chunks_used[rip]
	sub	rax, 1
	mov	QWORD PTR _chunks_used[rip], rax
	mov	rdx, QWORD PTR _bytes_used[rip]
	mov	eax, DWORD PTR -52[rbp]
	mov	esi, 1
	mov	ecx, eax
	sal	esi, cl
	mov	eax, esi
	movsx	rcx, eax
	mov	rax, rdx
	sub	rax, rcx
	mov	QWORD PTR _bytes_used[rip], rax
	mov	rax, QWORD PTR _chunks_free[rip]
	add	rax, 1
	mov	QWORD PTR _chunks_free[rip], rax
	mov	eax, DWORD PTR -52[rbp]
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR _bytes_free[rip]
	add	rax, rdx
	mov	QWORD PTR _bytes_free[rip], rax
	mov	rsi, QWORD PTR _heapbase[rip]
	mov	rax, QWORD PTR -48[rbp]
	sub	rax, 1
	sal	rax, 12
	mov	rdi, rax
	mov	rcx, QWORD PTR _heapinfo[rip]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	rdx, QWORD PTR 16[rax]
	mov	eax, DWORD PTR -52[rbp]
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	add	rax, rdi
	add	rax, rsi
	mov	QWORD PTR -24[rbp], rax
	mov	rcx, QWORD PTR _heapinfo[rip]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -52[rbp]
	mov	esi, 4096
	mov	ecx, eax
	sar	esi, cl
	mov	eax, esi
	sub	eax, 1
	cdqe
	cmp	rdx, rax
	jne	.L13
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -40[rbp], rax
	mov	ebx, 1
	jmp	.L14
.L15:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -40[rbp], rax
	add	rbx, 1
.L14:
	mov	eax, DWORD PTR -52[rbp]
	mov	edx, 4096
	mov	ecx, eax
	sar	edx, cl
	mov	eax, edx
	cdqe
	cmp	rbx, rax
	jb	.L15
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -40[rbp]
	mov	QWORD PTR [rax], rdx
	cmp	QWORD PTR -40[rbp], 0
	je	.L16
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR 8[rax], rdx
.L16:
	mov	rcx, QWORD PTR _heapinfo[rip]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	DWORD PTR [rax], 0
	mov	rcx, QWORD PTR _heapinfo[rip]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	QWORD PTR 8[rax], 1
	mov	rax, QWORD PTR _chunks_used[rip]
	add	rax, 1
	mov	QWORD PTR _chunks_used[rip], rax
	mov	rax, QWORD PTR _bytes_used[rip]
	add	rax, 4096
	mov	QWORD PTR _bytes_used[rip], rax
	mov	rdx, QWORD PTR _chunks_free[rip]
	mov	eax, DWORD PTR -52[rbp]
	mov	esi, 4096
	mov	ecx, eax
	sar	esi, cl
	mov	eax, esi
	movsx	rcx, eax
	mov	rax, rdx
	sub	rax, rcx
	mov	QWORD PTR _chunks_free[rip], rax
	mov	rax, QWORD PTR _bytes_free[rip]
	sub	rax, 4096
	mov	QWORD PTR _bytes_free[rip], rax
	mov	rdx, QWORD PTR _heapbase[rip]
	mov	rax, QWORD PTR -48[rbp]
	sub	rax, 1
	sal	rax, 12
	add	rax, rdx
	mov	rdi, rax
	call	free
	jmp	.L20
.L13:
	mov	rcx, QWORD PTR _heapinfo[rip]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L18
	mov	rax, QWORD PTR -72[rbp]
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L19
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -40[rbp]
	mov	QWORD PTR 8[rax], rdx
.L19:
	mov	rcx, QWORD PTR _heapinfo[rip]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	rdx, QWORD PTR 8[rax]
	add	rdx, 1
	mov	QWORD PTR 8[rax], rdx
	jmp	.L20
.L18:
	mov	rax, QWORD PTR -72[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	rcx, QWORD PTR _heapinfo[rip]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	QWORD PTR 8[rax], 1
	mov	rax, QWORD PTR -72[rbp]
	cqo
	shr	rdx, 52
	add	rax, rdx
	and	eax, 4095
	sub	rax, rdx
	mov	rdx, rax
	mov	eax, DWORD PTR -52[rbp]
	mov	ecx, eax
	sar	rdx, cl
	mov	rax, rdx
	mov	esi, eax
	mov	rcx, QWORD PTR _heapinfo[rip]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	edx, esi
	mov	QWORD PTR 16[rax], rdx
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, _fraghead[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, _fraghead[rip]
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L20
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 8[rax], rdx
.L20:
	nop
.L12:
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	__free, .-__free
	.globl	free
	.type	free, @function
free:
.LFB1:
	.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	QWORD PTR -8[rbp], rdi
	cmp	QWORD PTR -8[rbp], 0
	je	.L25
	mov	rax, QWORD PTR __free_hook[rip]
	test	rax, rax
	je	.L24
	mov	rdx, QWORD PTR __free_hook[rip]
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	rdx
	jmp	.L21
.L24:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	__free
	jmp	.L21
.L25:
	nop
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	free, .-free
	.globl	__morecore
	.section	.data.rel.local,"aw"
	.align 8
	.type	__morecore, @object
	.size	__morecore, 8
__morecore:
	.quad	__default_morecore
	.globl	__malloc_hook
	.bss
	.align 8
	.type	__malloc_hook, @object
	.size	__malloc_hook, 8
__malloc_hook:
	.zero	8
	.globl	_heapbase
	.align 8
	.type	_heapbase, @object
	.size	_heapbase, 8
_heapbase:
	.zero	8
	.globl	_heapinfo
	.align 8
	.type	_heapinfo, @object
	.size	_heapinfo, 8
_heapinfo:
	.zero	8
	.local	heapsize
	.comm	heapsize,8,8
	.globl	_heapindex
	.align 8
	.type	_heapindex, @object
	.size	_heapindex, 8
_heapindex:
	.zero	8
	.globl	_heaplimit
	.align 8
	.type	_heaplimit, @object
	.size	_heaplimit, 8
_heaplimit:
	.zero	8
	.globl	_fraghead
	.align 32
	.type	_fraghead, @object
	.size	_fraghead, 192
_fraghead:
	.zero	192
	.globl	_chunks_used
	.align 8
	.type	_chunks_used, @object
	.size	_chunks_used, 8
_chunks_used:
	.zero	8
	.globl	_bytes_used
	.align 8
	.type	_bytes_used, @object
	.size	_bytes_used, 8
_bytes_used:
	.zero	8
	.globl	_chunks_free
	.align 8
	.type	_chunks_free, @object
	.size	_chunks_free, 8
_chunks_free:
	.zero	8
	.globl	_bytes_free
	.align 8
	.type	_bytes_free, @object
	.size	_bytes_free, 8
_bytes_free:
	.zero	8
	.globl	__malloc_initialized
	.align 4
	.type	__malloc_initialized, @object
	.size	__malloc_initialized, 4
__malloc_initialized:
	.zero	4
	.text
	.type	align, @function
align:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rdx, QWORD PTR __morecore[rip]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	and	eax, 4095
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	je	.L27
	mov	eax, 4096
	sub	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR -12[rbp], eax
	mov	rdx, QWORD PTR __morecore[rip]
	mov	eax, DWORD PTR -12[rbp]
	mov	rdi, rax
	call	rdx
	mov	eax, DWORD PTR -12[rbp]
	add	QWORD PTR -8[rbp], rax
.L27:
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	align, .-align
	.type	initialize, @function
initialize:
.LFB3:
	.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 heapsize[rip], 1024
	mov	rdx, QWORD PTR heapsize[rip]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdi, rax
	call	align
	mov	QWORD PTR _heapinfo[rip], rax
	mov	rax, QWORD PTR _heapinfo[rip]
	test	rax, rax
	jne	.L30
	mov	eax, 0
	jmp	.L31
.L30:
	mov	rdx, QWORD PTR heapsize[rip]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR _heapinfo[rip]
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR _heapinfo[rip]
	mov	QWORD PTR [rax], 0
	mov	rax, QWORD PTR _heapinfo[rip]
	mov	QWORD PTR 16[rax], 0
	mov	rdx, QWORD PTR _heapinfo[rip]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR 8[rdx], rax
	mov	QWORD PTR _heapindex[rip], 0
	mov	rax, QWORD PTR _heapinfo[rip]
	mov	QWORD PTR _heapbase[rip], rax
	mov	DWORD PTR __malloc_initialized[rip], 1
	mov	eax, 1
.L31:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	initialize, .-initialize
	.type	morecore, @function
morecore:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	align
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L33
	mov	eax, 0
	jmp	.L34
.L33:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR _heapbase[rip]
	sub	rax, rdx
	lea	rdx, 4095[rax]
	test	rax, rax
	cmovs	rax, rdx
	sar	rax, 12
	add	rax, 1
	mov	rdx, rax
	mov	rax, QWORD PTR heapsize[rip]
	cmp	rdx, rax
	jbe	.L35
	mov	rax, QWORD PTR heapsize[rip]
	mov	QWORD PTR -32[rbp], rax
	jmp	.L36
.L37:
	sal	QWORD PTR -32[rbp]
.L36:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR _heapbase[rip]
	sub	rax, rdx
	lea	rdx, 4095[rax]
	test	rax, rax
	cmovs	rax, rdx
	sar	rax, 12
	add	rax, 1
	cmp	QWORD PTR -32[rbp], rax
	jb	.L37
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdi, rax
	call	align
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L38
	mov	rax, QWORD PTR __morecore[rip]
	mov	rdx, QWORD PTR -40[rbp]
	neg	rdx
	mov	rdi, rdx
	call	rax
	mov	eax, 0
	jmp	.L34
.L38:
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rdx, QWORD PTR heapsize[rip]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rcx, QWORD PTR _heapinfo[rip]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	rax, QWORD PTR _heapinfo[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR _heapbase[rip]
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, rdx
	lea	rdx, 4095[rax]
	test	rax, rax
	cmovs	rax, rdx
	sar	rax, 12
	lea	rdx, 1[rax]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	mov	rdx, QWORD PTR heapsize[rip]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	lea	rcx, 4095[rax]
	mov	rdx, QWORD PTR _heapbase[rip]
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, rdx
	lea	rdx, 4095[rax]
	test	rax, rax
	cmovs	rax, rdx
	sar	rax, 12
	lea	rdx, 1[rax]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	shr	rcx, 12
	mov	rdx, rcx
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR _heapinfo[rip], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	__free
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR heapsize[rip], rax
.L35:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR _heapbase[rip]
	sub	rax, rdx
	lea	rdx, 4095[rax]
	test	rax, rax
	cmovs	rax, rdx
	sar	rax, 12
	add	rax, 1
	mov	QWORD PTR _heaplimit[rip], rax
	mov	rax, QWORD PTR -24[rbp]
.L34:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	morecore, .-morecore
	.globl	malloc
	.type	malloc, @function
malloc:
.LFB5:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 64
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	QWORD PTR -72[rbp], rdi
	cmp	QWORD PTR -72[rbp], 0
	jne	.L40
	mov	eax, 0
	jmp	.L41
.L40:
	mov	rax, QWORD PTR __malloc_hook[rip]
	test	rax, rax
	je	.L42
	mov	rdx, QWORD PTR __malloc_hook[rip]
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	rdx
	jmp	.L41
.L42:
	mov	eax, DWORD PTR __malloc_initialized[rip]
	test	eax, eax
	jne	.L43
	call	initialize
	test	eax, eax
	jne	.L43
	mov	eax, 0
	jmp	.L41
.L43:
	cmp	QWORD PTR -72[rbp], 15
	ja	.L44
	mov	QWORD PTR -72[rbp], 16
.L44:
	cmp	QWORD PTR -72[rbp], 2048
	ja	.L45
	mov	ebx, 1
	sub	QWORD PTR -72[rbp], 1
	jmp	.L46
.L47:
	add	rbx, 1
.L46:
	mov	rax, QWORD PTR -72[rbp]
	shr	rax
	mov	QWORD PTR -72[rbp], rax
	cmp	QWORD PTR -72[rbp], 0
	jne	.L47
	mov	rdx, rbx
	sal	rdx, 4
	lea	rax, _fraghead[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	je	.L48
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rdx]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L49
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 8[rdx]
	mov	QWORD PTR 8[rax], rdx
.L49:
	mov	rdx, QWORD PTR _heapbase[rip]
	mov	rax, QWORD PTR -64[rbp]
	sub	rax, rdx
	lea	rdx, 4095[rax]
	test	rax, rax
	cmovs	rax, rdx
	sar	rax, 12
	add	rax, 1
	mov	QWORD PTR -56[rbp], rax
	mov	rcx, QWORD PTR _heapinfo[rip]
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	rdx, QWORD PTR 8[rax]
	sub	rdx, 1
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L50
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, rax
	mov	rax, rdx
	sar	rax, 63
	shr	rax, 52
	mov	rcx, rax
	lea	rax, [rdx+rcx]
	and	eax, 4095
	sub	rax, rcx
	mov	edx, eax
	mov	eax, ebx
	mov	esi, edx
	mov	ecx, eax
	shr	esi, cl
	mov	rcx, QWORD PTR _heapinfo[rip]
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	edx, esi
	mov	QWORD PTR 16[rax], rdx
.L50:
	mov	rax, QWORD PTR _chunks_used[rip]
	add	rax, 1
	mov	QWORD PTR _chunks_used[rip], rax
	mov	eax, ebx
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR _bytes_used[rip]
	add	rax, rdx
	mov	QWORD PTR _bytes_used[rip], rax
	mov	rax, QWORD PTR _chunks_free[rip]
	sub	rax, 1
	mov	QWORD PTR _chunks_free[rip], rax
	mov	rax, QWORD PTR _bytes_free[rip]
	mov	edx, ebx
	mov	esi, 1
	mov	ecx, edx
	sal	esi, cl
	mov	edx, esi
	movsx	rdx, edx
	sub	rax, rdx
	mov	QWORD PTR _bytes_free[rip], rax
	jmp	.L51
.L48:
	mov	edi, 4096
	call	malloc
	mov	QWORD PTR -64[rbp], rax
	cmp	QWORD PTR -64[rbp], 0
	jne	.L52
	mov	eax, 0
	jmp	.L41
.L52:
	mov	r12d, 1
	jmp	.L53
.L55:
	mov	eax, ebx
	mov	rdx, r12
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	QWORD PTR -24[rbp], rax
	mov	rdx, rbx
	sal	rdx, 4
	lea	rax, _fraghead[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rdx, rbx
	sal	rdx, 4
	lea	rax, _fraghead[rip]
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L54
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 8[rax], rdx
.L54:
	add	r12, 1
.L53:
	mov	eax, ebx
	mov	edx, 4096
	mov	ecx, eax
	sar	edx, cl
	mov	eax, edx
	cdqe
	cmp	r12, rax
	jb	.L55
	mov	rdx, QWORD PTR _heapbase[rip]
	mov	rax, QWORD PTR -64[rbp]
	sub	rax, rdx
	lea	rdx, 4095[rax]
	test	rax, rax
	cmovs	rax, rdx
	sar	rax, 12
	add	rax, 1
	mov	QWORD PTR -56[rbp], rax
	mov	rcx, QWORD PTR _heapinfo[rip]
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	edx, ebx
	mov	DWORD PTR [rax], edx
	mov	rcx, QWORD PTR _heapinfo[rip]
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	lea	rdx, [rcx+rax]
	lea	rax, -1[r12]
	mov	QWORD PTR 8[rdx], rax
	mov	rcx, QWORD PTR _heapinfo[rip]
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	lea	rdx, -1[r12]
	mov	QWORD PTR 16[rax], rdx
	mov	eax, ebx
	mov	edx, 4096
	mov	ecx, eax
	sar	edx, cl
	mov	eax, edx
	sub	eax, 1
	movsx	rdx, eax
	mov	rax, QWORD PTR _chunks_free[rip]
	add	rax, rdx
	mov	QWORD PTR _chunks_free[rip], rax
	mov	eax, ebx
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, 4096
	sub	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR _bytes_free[rip]
	add	rax, rdx
	mov	QWORD PTR _bytes_free[rip], rax
	jmp	.L51
.L45:
	mov	rax, QWORD PTR -72[rbp]
	add	rax, 4095
	shr	rax, 12
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR _heapindex[rip]
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -40[rbp], rax
	jmp	.L56
.L59:
	mov	rcx, QWORD PTR _heapinfo[rip]
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	cmp	rax, QWORD PTR -40[rbp]
	jne	.L56
	mov	rax, QWORD PTR _heapinfo[rip]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -56[rbp], rax
	mov	rcx, QWORD PTR _heapinfo[rip]
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR _heaplimit[rip]
	test	rax, rax
	je	.L57
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR _heaplimit[rip]
	cmp	rdx, rax
	jne	.L57
	mov	rax, QWORD PTR __morecore[rip]
	mov	edi, 0
	call	rax
	mov	rcx, QWORD PTR _heapbase[rip]
	mov	rsi, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	add	rdx, rsi
	sub	rdx, 1
	sal	rdx, 12
	add	rdx, rcx
	cmp	rax, rdx
	jne	.L57
	mov	rax, QWORD PTR -48[rbp]
	sub	rax, QWORD PTR -32[rbp]
	sal	rax, 12
	mov	rdi, rax
	call	morecore
	test	rax, rax
	je	.L57
	mov	rcx, QWORD PTR _heapinfo[rip]
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	lea	rdx, [rcx+rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR [rdx], rax
	mov	rax, QWORD PTR -48[rbp]
	sub	rax, QWORD PTR -32[rbp]
	sal	rax, 12
	mov	rdx, rax
	mov	rax, QWORD PTR _bytes_free[rip]
	add	rax, rdx
	mov	QWORD PTR _bytes_free[rip], rax
	jmp	.L56
.L57:
	mov	rax, QWORD PTR -48[rbp]
	sal	rax, 12
	mov	rdi, rax
	call	morecore
	mov	QWORD PTR -64[rbp], rax
	cmp	QWORD PTR -64[rbp], 0
	jne	.L58
	mov	eax, 0
	jmp	.L41
.L58:
	mov	rdx, QWORD PTR _heapbase[rip]
	mov	rax, QWORD PTR -64[rbp]
	sub	rax, rdx
	lea	rdx, 4095[rax]
	test	rax, rax
	cmovs	rax, rdx
	sar	rax, 12
	add	rax, 1
	mov	QWORD PTR -56[rbp], rax
	mov	rcx, QWORD PTR _heapinfo[rip]
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	DWORD PTR [rax], 0
	mov	rcx, QWORD PTR _heapinfo[rip]
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	lea	rdx, [rcx+rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR 8[rdx], rax
	mov	rax, QWORD PTR _chunks_used[rip]
	add	rax, 1
	mov	QWORD PTR _chunks_used[rip], rax
	mov	rax, QWORD PTR -48[rbp]
	sal	rax, 12
	mov	rdx, rax
	mov	rax, QWORD PTR _bytes_used[rip]
	add	rax, rdx
	mov	QWORD PTR _bytes_used[rip], rax
	mov	rax, QWORD PTR -64[rbp]
	jmp	.L41
.L56:
	mov	rcx, QWORD PTR _heapinfo[rip]
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR -48[rbp], rax
	ja	.L59
	mov	rdx, QWORD PTR _heapbase[rip]
	mov	rax, QWORD PTR -56[rbp]
	sub	rax, 1
	sal	rax, 12
	add	rax, rdx
	mov	QWORD PTR -64[rbp], rax
	mov	rcx, QWORD PTR _heapinfo[rip]
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR -48[rbp], rax
	jnb	.L60
	mov	rcx, QWORD PTR _heapinfo[rip]
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	rdx, QWORD PTR [rax]
	mov	rsi, QWORD PTR _heapinfo[rip]
	mov	rcx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -48[rbp]
	add	rcx, rax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 3
	lea	rcx, [rsi+rax]
	mov	rax, rdx
	sub	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR [rcx], rax
	mov	rcx, QWORD PTR _heapinfo[rip]
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rcx, rax
	mov	rsi, QWORD PTR _heapinfo[rip]
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -48[rbp]
	add	rdx, rax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	lea	rdx, [rsi+rax]
	mov	rax, QWORD PTR 8[rcx]
	mov	QWORD PTR 8[rdx], rax
	mov	rcx, QWORD PTR _heapinfo[rip]
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rcx, rax
	mov	rsi, QWORD PTR _heapinfo[rip]
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -48[rbp]
	add	rdx, rax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	lea	rdx, [rsi+rax]
	mov	rax, QWORD PTR 16[rcx]
	mov	QWORD PTR 16[rdx], rax
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	QWORD PTR _heapindex[rip], rax
	mov	rcx, QWORD PTR _heapinfo[rip]
	mov	rsi, QWORD PTR _heapinfo[rip]
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rsi
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	lea	rdx, [rcx+rax]
	mov	rax, QWORD PTR _heapindex[rip]
	mov	QWORD PTR 16[rdx], rax
	mov	rsi, QWORD PTR _heapinfo[rip]
	mov	rdi, QWORD PTR _heapinfo[rip]
	mov	rcx, QWORD PTR -56[rbp]
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 3
	add	rax, rdi
	mov	rcx, QWORD PTR 16[rax]
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 3
	lea	rcx, [rsi+rax]
	mov	rax, QWORD PTR 16[rdx]
	mov	QWORD PTR 8[rcx], rax
	jmp	.L61
.L60:
	mov	rcx, QWORD PTR _heapinfo[rip]
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rcx, rax
	mov	rsi, QWORD PTR _heapinfo[rip]
	mov	rdi, QWORD PTR _heapinfo[rip]
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rdi
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	lea	rdx, [rsi+rax]
	mov	rax, QWORD PTR 16[rcx]
	mov	QWORD PTR 16[rdx], rax
	mov	rcx, QWORD PTR _heapinfo[rip]
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR _heapindex[rip], rax
	mov	rcx, QWORD PTR _heapinfo[rip]
	mov	rsi, QWORD PTR _heapinfo[rip]
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rsi
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	lea	rdx, [rcx+rax]
	mov	rax, QWORD PTR _heapindex[rip]
	mov	QWORD PTR 8[rdx], rax
	mov	rax, QWORD PTR _chunks_free[rip]
	sub	rax, 1
	mov	QWORD PTR _chunks_free[rip], rax
.L61:
	mov	rcx, QWORD PTR _heapinfo[rip]
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	DWORD PTR [rax], 0
	mov	rcx, QWORD PTR _heapinfo[rip]
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	lea	rdx, [rcx+rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR 8[rdx], rax
	mov	rax, QWORD PTR _chunks_used[rip]
	add	rax, 1
	mov	QWORD PTR _chunks_used[rip], rax
	mov	rax, QWORD PTR -48[rbp]
	sal	rax, 12
	mov	rdx, rax
	mov	rax, QWORD PTR _bytes_used[rip]
	add	rax, rdx
	mov	QWORD PTR _bytes_used[rip], rax
	mov	rax, QWORD PTR _bytes_free[rip]
	mov	rdx, QWORD PTR -48[rbp]
	sal	rdx, 12
	sub	rax, rdx
	mov	QWORD PTR _bytes_free[rip], rax
.L51:
	mov	rax, QWORD PTR -64[rbp]
.L41:
	add	rsp, 64
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	malloc, .-malloc
	.globl	__realloc_hook
	.bss
	.align 8
	.type	__realloc_hook, @object
	.size	__realloc_hook, 8
__realloc_hook:
	.zero	8
	.text
	.globl	realloc
	.type	realloc, @function
realloc:
.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, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	cmp	QWORD PTR -64[rbp], 0
	jne	.L63
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	free
	mov	eax, 0
	jmp	.L64
.L63:
	cmp	QWORD PTR -56[rbp], 0
	jne	.L65
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	malloc
	jmp	.L64
.L65:
	mov	rax, QWORD PTR __realloc_hook[rip]
	test	rax, rax
	je	.L66
	mov	rcx, QWORD PTR __realloc_hook[rip]
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	rcx
	jmp	.L64
.L66:
	mov	rdx, QWORD PTR _heapbase[rip]
	mov	rax, QWORD PTR -56[rbp]
	sub	rax, rdx
	lea	rdx, 4095[rax]
	test	rax, rax
	cmovs	rax, rdx
	sar	rax, 12
	add	rax, 1
	mov	QWORD PTR -24[rbp], rax
	mov	rcx, QWORD PTR _heapinfo[rip]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	jne	.L67
	cmp	QWORD PTR -64[rbp], 2048
	ja	.L68
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	malloc
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	je	.L68
	mov	rdx, QWORD PTR -64[rbp]
	mov	rcx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	free
	mov	rax, QWORD PTR -32[rbp]
	jmp	.L64
.L68:
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 4095
	shr	rax, 12
	mov	QWORD PTR -16[rbp], rax
	mov	rcx, QWORD PTR _heapinfo[rip]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	rax, QWORD PTR 8[rax]
	cmp	QWORD PTR -16[rbp], rax
	jnb	.L69
	mov	rcx, QWORD PTR _heapinfo[rip]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -16[rbp]
	add	rdx, rax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	DWORD PTR [rax], 0
	mov	rcx, QWORD PTR _heapinfo[rip]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	rdx, QWORD PTR 8[rax]
	mov	rsi, QWORD PTR _heapinfo[rip]
	mov	rcx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -16[rbp]
	add	rcx, rax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 3
	lea	rcx, [rsi+rax]
	mov	rax, rdx
	sub	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR 8[rcx], rax
	mov	rcx, QWORD PTR _heapinfo[rip]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	lea	rdx, [rcx+rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR 8[rdx], rax
	mov	rdx, QWORD PTR _heapbase[rip]
	mov	rcx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rcx
	sub	rax, 1
	sal	rax, 12
	add	rax, rdx
	mov	rdi, rax
	call	free
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -32[rbp], rax
	jmp	.L77
.L69:
	mov	rcx, QWORD PTR _heapinfo[rip]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	rax, QWORD PTR 8[rax]
	cmp	QWORD PTR -16[rbp], rax
	jne	.L71
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -32[rbp], rax
	jmp	.L77
.L71:
	mov	rcx, QWORD PTR _heapinfo[rip]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR _heaplimit[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	QWORD PTR _heaplimit[rip], 0
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	free
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR _heaplimit[rip], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	malloc
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	jne	.L72
	mov	rax, QWORD PTR -16[rbp]
	sal	rax, 12
	mov	rdi, rax
	call	malloc
	mov	eax, 0
	jmp	.L64
.L72:
	mov	rax, QWORD PTR -56[rbp]
	cmp	rax, QWORD PTR -32[rbp]
	je	.L77
	mov	rax, QWORD PTR -16[rbp]
	sal	rax, 12
	mov	rdx, rax
	mov	rcx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	jmp	.L77
.L67:
	mov	eax, DWORD PTR -36[rbp]
	sub	eax, 1
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	cdqe
	cmp	QWORD PTR -64[rbp], rax
	jbe	.L74
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	cdqe
	cmp	QWORD PTR -64[rbp], rax
	ja	.L74
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -32[rbp], rax
	jmp	.L73
.L74:
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	malloc
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	jne	.L76
	mov	eax, 0
	jmp	.L64
.L76:
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	cdqe
	cmp	QWORD PTR -64[rbp], rax
	cmovbe	rax, QWORD PTR -64[rbp]
	mov	rdx, rax
	mov	rcx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	free
	jmp	.L73
.L77:
	nop
.L73:
	mov	rax, QWORD PTR -32[rbp]
.L64:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	realloc, .-realloc
	.globl	__default_morecore
	.type	__default_morecore, @function
__default_morecore:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	sbrk@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], -1
	jne	.L79
	mov	eax, 0
	jmp	.L80
.L79:
	mov	rax, QWORD PTR -8[rbp]
.L80:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	__default_morecore, .-__default_morecore
	.local	pagesize
	.comm	pagesize,8,8
	.globl	valloc
	.type	valloc, @function
valloc:
.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	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR pagesize[rip]
	test	rax, rax
	jne	.L82
	call	getpagesize@PLT
	mov	QWORD PTR pagesize[rip], rax
.L82:
	mov	rdx, QWORD PTR pagesize[rip]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdi, rax
	call	malloc
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L83
	mov	eax, 0
	jmp	.L84
.L83:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, eax
	mov	rcx, QWORD PTR pagesize[rip]
	mov	edx, 0
	div	rcx
	mov	rax, rdx
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	je	.L85
	mov	rax, QWORD PTR pagesize[rip]
	mov	edx, DWORD PTR -12[rbp]
	sub	rax, rdx
	add	QWORD PTR -8[rbp], rax
.L85:
	mov	rax, QWORD PTR -8[rbp]
.L84:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	valloc, .-valloc
	.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	"74844.c"
	.text
	.comm	__free_hook,4,4
	.align	2
	.global	__free
	.syntax unified
	.arm
	.fpu softvfp
	.type	__free, %function
__free:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-40]
	ldr	r3, .L21
	ldr	r3, [r3]
	ldr	r2, [fp, #-40]
	sub	r3, r2, r3
	add	r2, r3, #4080
	add	r2, r2, #15
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #12
	add	r3, r3, #1
	str	r3, [fp, #-32]
	ldr	r3, .L21+4
	ldr	r1, [r3]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L21+8
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L21+8
	str	r3, [r2]
	ldr	r3, .L21+12
	ldr	r1, [r3]
	ldr	r3, .L21+4
	ldr	r0, [r3]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	ldr	r3, [r3, #4]
	lsl	r3, r3, #12
	sub	r3, r1, r3
	ldr	r2, .L21+12
	str	r3, [r2]
	ldr	r3, .L21+4
	ldr	r1, [r3]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3, #4]
	lsl	r2, r3, #12
	ldr	r3, .L21+16
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L21+16
	str	r3, [r2]
	ldr	r3, .L21+20
	ldr	r4, [r3]
	ldr	r3, [fp, #-32]
	cmp	r4, r3
	bls	.L3
	b	.L4
.L5:
	ldr	r3, .L21+4
	ldr	r2, [r3]
	mov	r3, r4
	lsl	r3, r3, #1
	add	r3, r3, r4
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r4, [r3, #8]
.L4:
	ldr	r3, [fp, #-32]
	cmp	r4, r3
	bhi	.L5
	b	.L6
.L3:
	ldr	r3, .L21+4
	ldr	r2, [r3]
	mov	r3, r4
	lsl	r3, r3, #1
	add	r3, r3, r4
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r4, [r3, #4]
	cmp	r4, #0
	beq	.L7
	ldr	r3, [fp, #-32]
	cmp	r4, r3
	bcc	.L3
.L7:
	ldr	r3, .L21+4
	ldr	r2, [r3]
	mov	r3, r4
	lsl	r3, r3, #1
	add	r3, r3, r4
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r4, [r3, #8]
.L6:
	ldr	r3, .L21+4
	ldr	r2, [r3]
	mov	r3, r4
	lsl	r3, r3, #1
	add	r3, r3, r4
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r3, r4, r3
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	bne	.L8
	ldr	r3, .L21+4
	ldr	r2, [r3]
	mov	r3, r4
	lsl	r3, r3, #1
	add	r3, r3, r4
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, .L21+4
	ldr	r0, [r3]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	ldr	r2, [r3, #4]
	ldr	r3, .L21+4
	ldr	r0, [r3]
	mov	r3, r4
	lsl	r3, r3, #1
	add	r3, r3, r4
	lsl	r3, r3, #2
	add	r3, r0, r3
	add	r2, r1, r2
	str	r2, [r3]
	str	r4, [fp, #-32]
	b	.L9
.L8:
	ldr	r3, .L21+4
	ldr	r1, [r3]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r1, r1, r3
	ldr	r3, .L21+4
	ldr	r0, [r3]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	ldr	r2, [r1, #4]
	str	r2, [r3]
	ldr	r3, .L21+4
	ldr	r2, [r3]
	mov	r3, r4
	lsl	r3, r3, #1
	add	r3, r3, r4
	lsl	r3, r3, #2
	add	r1, r2, r3
	ldr	r3, .L21+4
	ldr	r0, [r3]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	ldr	r2, [r1, #4]
	str	r2, [r3, #4]
	ldr	r3, .L21+4
	ldr	r1, [r3]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	str	r4, [r3, #8]
	ldr	r3, .L21+4
	ldr	r2, [r3]
	mov	r3, r4
	lsl	r3, r3, #1
	add	r3, r3, r4
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-32]
	str	r2, [r3, #4]
	ldr	r3, .L21+4
	ldr	r1, [r3]
	ldr	r3, .L21+4
	ldr	r0, [r3]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	ldr	r2, [r3, #4]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [fp, #-32]
	str	r2, [r3, #8]
	ldr	r3, .L21+24
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L21+24
	str	r3, [r2]
.L9:
	ldr	r3, .L21+4
	ldr	r1, [r3]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	add	r1, r2, r3
	ldr	r3, .L21+4
	ldr	r0, [r3]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	ldr	r3, [r3, #4]
	cmp	r1, r3
	bne	.L10
	ldr	r3, .L21+4
	ldr	r1, [r3]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r0, [r3]
	ldr	r3, .L21+4
	ldr	r1, [r3]
	ldr	r3, .L21+4
	ldr	ip, [r3]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, ip, r3
	ldr	r2, [r3, #4]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, .L21+4
	ldr	ip, [r3]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, ip, r3
	add	r2, r0, r1
	str	r2, [r3]
	ldr	r3, .L21+4
	ldr	r1, [r3]
	ldr	r3, .L21+4
	ldr	r0, [r3]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	ldr	r2, [r3, #4]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r1, r1, r3
	ldr	r3, .L21+4
	ldr	r0, [r3]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	ldr	r2, [r1, #4]
	str	r2, [r3, #4]
	ldr	r3, .L21+4
	ldr	r1, [r3]
	ldr	r3, .L21+4
	ldr	r0, [r3]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	ldr	r2, [r3, #4]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [fp, #-32]
	str	r2, [r3, #8]
	ldr	r3, .L21+24
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L21+24
	str	r3, [r2]
.L10:
	ldr	r3, .L21+4
	ldr	r1, [r3]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #7
	bls	.L11
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-20]
	add	r2, r2, r3
	ldr	r3, .L21+28
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L11
	ldr	r3, .L21+32
	ldr	r3, [r3]
	mov	r0, #0
	blx	r3
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r1, [fp, #-32]
	ldr	r3, [fp, #-20]
	add	r3, r1, r3
	sub	r3, r3, #1
	lsl	r3, r3, #12
	add	r3, r2, r3
	cmp	r0, r3
	bne	.L11
	ldr	r3, [fp, #-20]
	lsl	r4, r3, #12
	ldr	r3, .L21+28
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	sub	r3, r2, r3
	ldr	r2, .L21+28
	str	r3, [r2]
	ldr	r3, .L21+32
	ldr	r3, [r3]
	rsb	r2, r4, #0
	mov	r0, r2
	blx	r3
	ldr	r3, .L21+4
	ldr	r1, [r3]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r1, r1, r3
	ldr	r3, .L21+4
	ldr	r0, [r3]
	ldr	r3, .L21+4
	ldr	ip, [r3]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, ip, r3
	ldr	r2, [r3, #8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	ldr	r2, [r1, #4]
	str	r2, [r3, #4]
	ldr	r3, .L21+4
	ldr	r1, [r3]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r1, r1, r3
	ldr	r3, .L21+4
	ldr	r0, [r3]
	ldr	r3, .L21+4
	ldr	ip, [r3]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, ip, r3
	ldr	r2, [r3, #4]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	ldr	r2, [r1, #8]
	str	r2, [r3, #8]
	ldr	r3, .L21+4
	ldr	r1, [r3]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3, #8]
	str	r3, [fp, #-32]
	ldr	r3, .L21+24
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L21+24
	str	r3, [r2]
	ldr	r3, .L21+16
	ldr	r3, [r3]
	sub	r3, r3, r4
	ldr	r2, .L21+16
	str	r3, [r2]
.L11:
	ldr	r2, .L21+20
	ldr	r3, [fp, #-32]
	str	r3, [r2]
	b	.L12
.L2:
	ldr	r3, .L21+8
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L21+8
	str	r3, [r2]
	ldr	r3, .L21+12
	ldr	r3, [r3]
	mov	r1, #1
	ldr	r2, [fp, #-24]
	lsl	r2, r1, r2
	sub	r3, r3, r2
	ldr	r2, .L21+12
	str	r3, [r2]
	ldr	r3, .L21+24
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L21+24
	str	r3, [r2]
	mov	r2, #1
	ldr	r3, [fp, #-24]
	lsl	r3, r2, r3
	mov	r2, r3
	ldr	r3, .L21+16
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L21+16
	str	r3, [r2]
	ldr	r3, .L21
	ldr	r1, [r3]
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	lsl	r0, r3, #12
	ldr	r3, .L21+4
	ldr	ip, [r3]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, ip, r3
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-24]
	lsl	r3, r2, r3
	add	r3, r0, r3
	add	r3, r1, r3
	str	r3, [fp, #-16]
	ldr	r3, .L21+4
	ldr	r1, [r3]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3, #4]
	mov	r1, #4096
	ldr	r2, [fp, #-24]
	asr	r2, r1, r2
	sub	r2, r2, #1
	cmp	r3, r2
	bne	.L13
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-28]
	mov	r4, #1
	b	.L14
.L15:
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	str	r3, [fp, #-28]
	add	r4, r4, #1
.L14:
	mov	r2, #4096
	ldr	r3, [fp, #-24]
	asr	r3, r2, r3
	cmp	r4, r3
	bcc	.L15
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-28]
	str	r2, [r3]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L16
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-28]
	str	r2, [r3, #4]
.L16:
	ldr	r3, .L21+4
	ldr	r1, [r3]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L21+4
	ldr	r1, [r3]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	r2, #1
	str	r2, [r3, #4]
	ldr	r3, .L21+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L21+8
	str	r3, [r2]
	ldr	r3, .L21+12
	ldr	r3, [r3]
	add	r3, r3, #4096
	ldr	r2, .L21+12
	str	r3, [r2]
	ldr	r3, .L21+24
	ldr	r3, [r3]
	mov	r1, #4096
	ldr	r2, [fp, #-24]
	asr	r2, r1, r2
	sub	r3, r3, r2
	ldr	r2, .L21+24
	str	r3, [r2]
	ldr	r3, .L21+16
	ldr	r3, [r3]
	sub	r3, r3, #4096
	ldr	r2, .L21+16
	str	r3, [r2]
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	lsl	r3, r3, #12
	add	r3, r2, r3
	mov	r0, r3
	bl	free
	b	.L20
.L13:
	ldr	r3, .L21+4
	ldr	r1, [r3]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L18
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	str	r2, [r3]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-28]
	str	r2, [r3]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L19
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	str	r2, [r3, #4]
.L19:
	ldr	r3, .L21+4
	ldr	r1, [r3]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [r3, #4]
	add	r2, r2, #1
	str	r2, [r3, #4]
	b	.L20
.L18:
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-16]
	ldr	r3, .L21+4
	ldr	r1, [r3]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	r2, #1
	str	r2, [r3, #4]
	ldr	r3, [fp, #-40]
	rsbs	r2, r3, #0
	lsl	r3, r3, #20
	lsr	r3, r3, #20
	lsl	r2, r2, #20
	lsr	r2, r2, #20
	rsbpl	r3, r2, #0
	ldr	r2, [fp, #-24]
	asr	r0, r3, r2
	ldr	r3, .L21+4
	ldr	r1, [r3]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	r2, r0
	str	r2, [r3, #8]
	ldr	r2, .L21+36
	ldr	r3, [fp, #-24]
	ldr	r2, [r2, r3, lsl #3]
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #3
	ldr	r2, .L21+36
	add	r2, r3, r2
	ldr	r3, [fp, #-16]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L20
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #4]
.L20:
	nop
.L12:
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L22:
	.align	2
.L21:
	.word	_heapbase
	.word	_heapinfo
	.word	_chunks_used
	.word	_bytes_used
	.word	_bytes_free
	.word	_heapindex
	.word	_chunks_free
	.word	_heaplimit
	.word	__morecore
	.word	_fraghead
	.size	__free, .-__free
	.align	2
	.global	free
	.syntax unified
	.arm
	.fpu softvfp
	.type	free, %function
free:
	@ 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	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L27
	ldr	r3, .L28
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L26
	ldr	r3, .L28
	ldr	r3, [r3]
	ldr	r0, [fp, #-8]
	blx	r3
	b	.L23
.L26:
	ldr	r0, [fp, #-8]
	bl	__free
	b	.L23
.L27:
	nop
.L23:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	__free_hook
	.size	free, .-free
	.global	__morecore
	.data
	.align	2
	.type	__morecore, %object
	.size	__morecore, 4
__morecore:
	.word	__default_morecore
	.comm	__malloc_hook,4,4
	.comm	_heapbase,4,4
	.comm	_heapinfo,4,4
	.local	heapsize
	.comm	heapsize,4,4
	.comm	_heapindex,4,4
	.comm	_heaplimit,4,4
	.comm	_fraghead,96,4
	.comm	_chunks_used,4,4
	.comm	_bytes_used,4,4
	.comm	_chunks_free,4,4
	.comm	_bytes_free,4,4
	.comm	__malloc_initialized,4,4
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	align, %function
align:
	@ 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, .L33
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	mov	r0, r2
	blx	r3
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #20
	lsr	r3, r3, #20
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L31
	ldr	r3, [fp, #-8]
	rsb	r3, r3, #4096
	str	r3, [fp, #-8]
	ldr	r3, .L33
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	mov	r0, r2
	blx	r3
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	str	r3, [fp, #-12]
.L31:
	ldr	r3, [fp, #-12]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L34:
	.align	2
.L33:
	.word	__morecore
	.size	align, .-align
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	initialize, %function
initialize:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L38
	mov	r2, #1024
	str	r2, [r3]
	ldr	r3, .L38
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r0, r3
	bl	align
	mov	r3, r0
	ldr	r2, .L38+4
	str	r3, [r2]
	ldr	r3, .L38+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L36
	mov	r3, #0
	b	.L37
.L36:
	ldr	r3, .L38+4
	ldr	r0, [r3]
	ldr	r3, .L38
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	mov	r1, #0
	bl	memset
	ldr	r3, .L38+4
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L38+4
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r2, .L38+4
	ldr	r2, [r2]
	ldr	r3, [r3, #8]
	str	r3, [r2, #4]
	ldr	r3, .L38+8
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L38+4
	ldr	r3, [r3]
	ldr	r2, .L38+12
	str	r3, [r2]
	ldr	r3, .L38+16
	mov	r2, #1
	str	r2, [r3]
	mov	r3, #1
.L37:
	mov	r0, r3
	pop	{fp, pc}
.L39:
	.align	2
.L38:
	.word	heapsize
	.word	_heapinfo
	.word	_heapindex
	.word	_heapbase
	.word	__malloc_initialized
	.size	initialize, .-initialize
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	morecore, %function
morecore:
	@ 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	r0, [fp, #-24]
	bl	align
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L41
	mov	r3, #0
	b	.L42
.L41:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-24]
	add	r2, r2, r3
	ldr	r3, .L47
	ldr	r3, [r3]
	sub	r3, r2, r3
	add	r2, r3, #4080
	add	r2, r2, #15
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #12
	add	r3, r3, #1
	mov	r2, r3
	ldr	r3, .L47+4
	ldr	r3, [r3]
	cmp	r2, r3
	bls	.L43
	ldr	r3, .L47+4
	ldr	r3, [r3]
	str	r3, [fp, #-20]
	b	.L44
.L45:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #1
	str	r3, [fp, #-20]
.L44:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-24]
	add	r2, r2, r3
	ldr	r3, .L47
	ldr	r3, [r3]
	sub	r3, r2, r3
	add	r2, r3, #4080
	add	r2, r2, #15
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #12
	add	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-20]
	cmp	r3, r2
	bcc	.L45
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r0, r3
	bl	align
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L46
	ldr	r3, .L47+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	rsb	r2, r2, #0
	mov	r0, r2
	blx	r3
	mov	r3, #0
	b	.L42
.L46:
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	mov	r1, #0
	ldr	r0, [fp, #-12]
	bl	memset
	ldr	r3, .L47+12
	ldr	r1, [r3]
	ldr	r3, .L47+4
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r0, [fp, #-12]
	bl	memcpy
	ldr	r3, .L47+12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, .L47
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	sub	r3, r2, r3
	add	r2, r3, #4080
	add	r2, r2, #15
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #12
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-12]
	add	r3, r3, r2
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L47+4
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r2, r3, #4080
	add	r2, r2, #15
	ldr	r3, .L47
	ldr	r3, [r3]
	ldr	r1, [fp, #-8]
	sub	r3, r1, r3
	add	r1, r3, #4080
	add	r1, r1, #15
	cmp	r3, #0
	movlt	r3, r1
	movge	r3, r3
	asr	r3, r3, #12
	add	r1, r3, #1
	mov	r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	lsl	r3, r3, #2
	mov	r1, r3
	ldr	r3, [fp, #-12]
	add	r3, r3, r1
	lsr	r2, r2, #12
	str	r2, [r3, #4]
	ldr	r2, .L47+12
	ldr	r3, [fp, #-12]
	str	r3, [r2]
	ldr	r0, [fp, #-8]
	bl	__free
	ldr	r2, .L47+4
	ldr	r3, [fp, #-20]
	str	r3, [r2]
.L43:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-24]
	add	r2, r2, r3
	ldr	r3, .L47
	ldr	r3, [r3]
	sub	r3, r2, r3
	add	r2, r3, #4080
	add	r2, r2, #15
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #12
	add	r3, r3, #1
	mov	r2, r3
	ldr	r3, .L47+16
	str	r2, [r3]
	ldr	r3, [fp, #-16]
.L42:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L48:
	.align	2
.L47:
	.word	_heapbase
	.word	heapsize
	.word	__morecore
	.word	_heapinfo
	.word	_heaplimit
	.size	morecore, .-morecore
	.align	2
	.global	malloc
	.syntax unified
	.arm
	.fpu softvfp
	.type	malloc, %function
malloc:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #32
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bne	.L50
	mov	r3, #0
	b	.L51
.L50:
	ldr	r3, .L72
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L52
	ldr	r3, .L72
	ldr	r3, [r3]
	ldr	r0, [fp, #-40]
	blx	r3
	mov	r3, r0
	b	.L51
.L52:
	ldr	r3, .L72+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L53
	bl	initialize
	mov	r3, r0
	cmp	r3, #0
	bne	.L53
	mov	r3, #0
	b	.L51
.L53:
	ldr	r3, [fp, #-40]
	cmp	r3, #7
	bhi	.L54
	mov	r3, #8
	str	r3, [fp, #-40]
.L54:
	ldr	r3, [fp, #-40]
	cmp	r3, #2048
	bhi	.L55
	mov	r4, #1
	ldr	r3, [fp, #-40]
	sub	r3, r3, #1
	str	r3, [fp, #-40]
	b	.L56
.L57:
	add	r4, r4, #1
.L56:
	ldr	r3, [fp, #-40]
	lsr	r3, r3, #1
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bne	.L57
	ldr	r3, .L72+8
	ldr	r3, [r3, r4, lsl #3]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L58
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-16]
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L59
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r2, [r2, #4]
	str	r2, [r3, #4]
.L59:
	ldr	r3, .L72+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-36]
	sub	r3, r2, r3
	add	r2, r3, #4080
	add	r2, r2, #15
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #12
	add	r3, r3, #1
	str	r3, [fp, #-32]
	ldr	r3, .L72+16
	ldr	r1, [r3]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [r3, #4]
	sub	r2, r2, #1
	str	r2, [r3, #4]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L60
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	rsbs	r2, r3, #0
	lsl	r3, r3, #20
	lsr	r3, r3, #20
	lsl	r2, r2, #20
	lsr	r2, r2, #20
	rsbpl	r3, r2, #0
	mov	r0, r3
	ldr	r3, .L72+16
	ldr	r1, [r3]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	lsr	r2, r0, r4
	str	r2, [r3, #8]
.L60:
	ldr	r3, .L72+20
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L72+20
	str	r3, [r2]
	mov	r3, #1
	lsl	r3, r3, r4
	mov	r2, r3
	ldr	r3, .L72+24
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L72+24
	str	r3, [r2]
	ldr	r3, .L72+28
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L72+28
	str	r3, [r2]
	ldr	r3, .L72+32
	ldr	r3, [r3]
	mov	r2, #1
	lsl	r2, r2, r4
	sub	r3, r3, r2
	ldr	r2, .L72+32
	str	r3, [r2]
	b	.L61
.L58:
	mov	r0, #4096
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L62
	mov	r3, #0
	b	.L51
.L62:
	mov	r5, #1
	b	.L63
.L65:
	lsl	r3, r5, r4
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, .L72+8
	ldr	r2, [r3, r4, lsl #3]
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	lsl	r3, r4, #3
	ldr	r2, .L72+8
	add	r2, r3, r2
	ldr	r3, [fp, #-16]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L64
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #4]
.L64:
	add	r5, r5, #1
.L63:
	mov	r3, #4096
	asr	r3, r3, r4
	cmp	r5, r3
	bcc	.L65
	ldr	r3, .L72+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-36]
	sub	r3, r2, r3
	add	r2, r3, #4080
	add	r2, r2, #15
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #12
	add	r3, r3, #1
	str	r3, [fp, #-32]
	ldr	r3, .L72+16
	ldr	r1, [r3]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	r2, r4
	str	r2, [r3]
	ldr	r3, .L72+16
	ldr	r1, [r3]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	sub	r2, r5, #1
	str	r2, [r3, #4]
	ldr	r3, .L72+16
	ldr	r1, [r3]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	sub	r2, r5, #1
	str	r2, [r3, #8]
	mov	r3, #4096
	asr	r3, r3, r4
	mov	r2, r3
	ldr	r3, .L72+28
	ldr	r3, [r3]
	add	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, .L72+28
	str	r3, [r2]
	ldr	r3, .L72+32
	ldr	r3, [r3]
	mov	r2, #1
	lsl	r2, r2, r4
	sub	r3, r3, r2
	add	r3, r3, #4096
	ldr	r2, .L72+32
	str	r3, [r2]
	b	.L61
.L55:
	ldr	r3, [fp, #-40]
	add	r3, r3, #4080
	add	r3, r3, #15
	lsr	r3, r3, #12
	str	r3, [fp, #-28]
	ldr	r3, .L72+36
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-24]
	b	.L66
.L69:
	ldr	r3, .L72+16
	ldr	r1, [r3]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3, #4]
	str	r3, [fp, #-32]
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bne	.L66
	ldr	r3, .L72+16
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-32]
	ldr	r3, .L72+16
	ldr	r1, [r3]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	str	r3, [fp, #-20]
	ldr	r3, .L72+40
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L67
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-20]
	add	r2, r2, r3
	ldr	r3, .L72+40
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L67
	ldr	r3, .L72+44
	ldr	r3, [r3]
	mov	r0, #0
	blx	r3
	ldr	r3, .L72+12
	ldr	r2, [r3]
	ldr	r1, [fp, #-32]
	ldr	r3, [fp, #-20]
	add	r3, r1, r3
	sub	r3, r3, #1
	lsl	r3, r3, #12
	add	r3, r2, r3
	cmp	r0, r3
	bne	.L67
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-20]
	sub	r3, r2, r3
	lsl	r3, r3, #12
	mov	r0, r3
	bl	morecore
	mov	r3, r0
	cmp	r3, #0
	beq	.L67
	ldr	r3, .L72+16
	ldr	r1, [r3]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [fp, #-28]
	str	r2, [r3]
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-20]
	sub	r3, r2, r3
	lsl	r2, r3, #12
	ldr	r3, .L72+32
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L72+32
	str	r3, [r2]
	b	.L66
.L67:
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #12
	mov	r0, r3
	bl	morecore
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L68
	mov	r3, #0
	b	.L51
.L68:
	ldr	r3, .L72+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-36]
	sub	r3, r2, r3
	add	r2, r3, #4080
	add	r2, r2, #15
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #12
	add	r3, r3, #1
	str	r3, [fp, #-32]
	ldr	r3, .L72+16
	ldr	r1, [r3]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L72+16
	ldr	r1, [r3]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [fp, #-28]
	str	r2, [r3, #4]
	ldr	r3, .L72+20
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L72+20
	str	r3, [r2]
	ldr	r3, [fp, #-28]
	lsl	r2, r3, #12
	ldr	r3, .L72+24
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L72+24
	str	r3, [r2]
	ldr	r3, [fp, #-36]
	b	.L51
.L66:
	ldr	r3, .L72+16
	ldr	r1, [r3]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	bhi	.L69
	ldr	r3, .L72+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	lsl	r3, r3, #12
	add	r3, r2, r3
	str	r3, [fp, #-36]
	ldr	r3, .L72+16
	ldr	r1, [r3]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	bcs	.L70
	ldr	r3, .L72+16
	ldr	r1, [r3]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, .L72+16
	ldr	r0, [r3]
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-28]
	add	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	ldr	r2, [fp, #-28]
	sub	r2, r1, r2
	str	r2, [r3]
	ldr	r3, .L72+16
	ldr	r1, [r3]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r1, r1, r3
	ldr	r3, .L72+16
	ldr	r0, [r3]
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-28]
	add	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	ldr	r2, [r1, #4]
	str	r2, [r3, #4]
	ldr	r3, .L72+16
	ldr	r1, [r3]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r1, r1, r3
	ldr	r3, .L72+16
	ldr	r0, [r3]
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-28]
	add	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	ldr	r2, [r1, #8]
	str	r2, [r3, #8]
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	ldr	r2, .L72+36
	str	r3, [r2]
	ldr	r3, .L72+16
	ldr	r1, [r3]
	ldr	r3, .L72+16
	ldr	r0, [r3]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	ldr	r2, [r3, #4]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r2, r1, r3
	ldr	r3, .L72+36
	ldr	r3, [r3]
	str	r3, [r2, #8]
	ldr	r3, .L72+16
	ldr	r0, [r3]
	ldr	r3, .L72+16
	ldr	ip, [r3]
	ldr	r1, [fp, #-32]
	mov	r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, ip, r3
	ldr	r1, [r3, #8]
	mov	r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r0, r3
	ldr	r2, [r2, #8]
	str	r2, [r3, #4]
	b	.L71
.L70:
	ldr	r3, .L72+16
	ldr	r1, [r3]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r1, r1, r3
	ldr	r3, .L72+16
	ldr	r0, [r3]
	ldr	r3, .L72+16
	ldr	ip, [r3]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, ip, r3
	ldr	r2, [r3, #4]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	ldr	r2, [r1, #8]
	str	r2, [r3, #8]
	ldr	r3, .L72+16
	ldr	r1, [r3]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3, #4]
	ldr	r2, .L72+36
	str	r3, [r2]
	ldr	r3, .L72+16
	ldr	r1, [r3]
	ldr	r3, .L72+16
	ldr	r0, [r3]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	ldr	r2, [r3, #8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, .L72+36
	ldr	r2, [r2]
	str	r2, [r3, #4]
	ldr	r3, .L72+28
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L72+28
	str	r3, [r2]
.L71:
	ldr	r3, .L72+16
	ldr	r1, [r3]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L72+16
	ldr	r1, [r3]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [fp, #-28]
	str	r2, [r3, #4]
	ldr	r3, .L72+20
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L72+20
	str	r3, [r2]
	ldr	r3, [fp, #-28]
	lsl	r2, r3, #12
	ldr	r3, .L72+24
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L72+24
	str	r3, [r2]
	ldr	r3, .L72+32
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #12
	sub	r3, r2, r3
	ldr	r2, .L72+32
	str	r3, [r2]
.L61:
	ldr	r3, [fp, #-36]
.L51:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L73:
	.align	2
.L72:
	.word	__malloc_hook
	.word	__malloc_initialized
	.word	_fraghead
	.word	_heapbase
	.word	_heapinfo
	.word	_chunks_used
	.word	_bytes_used
	.word	_chunks_free
	.word	_bytes_free
	.word	_heapindex
	.word	_heaplimit
	.word	__morecore
	.size	malloc, .-malloc
	.comm	__realloc_hook,4,4
	.align	2
	.global	realloc
	.syntax unified
	.arm
	.fpu softvfp
	.type	realloc, %function
realloc:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L75
	ldr	r0, [fp, #-32]
	bl	free
	mov	r3, #0
	b	.L76
.L75:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L77
	ldr	r0, [fp, #-36]
	bl	malloc
	mov	r3, r0
	b	.L76
.L77:
	ldr	r3, .L90
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L78
	ldr	r3, .L90
	ldr	r3, [r3]
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-32]
	blx	r3
	mov	r3, r0
	b	.L76
.L78:
	ldr	r3, .L90+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	sub	r3, r2, r3
	add	r2, r3, #4080
	add	r2, r2, #15
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #12
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, .L90+8
	ldr	r1, [r3]
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L79
	ldr	r3, [fp, #-36]
	cmp	r3, #2048
	bhi	.L80
	ldr	r0, [fp, #-36]
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L80
	ldr	r2, [fp, #-36]
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-24]
	bl	memcpy
	ldr	r0, [fp, #-32]
	bl	free
	ldr	r3, [fp, #-24]
	b	.L76
.L80:
	ldr	r3, [fp, #-36]
	add	r3, r3, #4080
	add	r3, r3, #15
	lsr	r3, r3, #12
	str	r3, [fp, #-12]
	ldr	r3, .L90+8
	ldr	r1, [r3]
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bcs	.L81
	ldr	r3, .L90+8
	ldr	r1, [r3]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-12]
	add	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L90+8
	ldr	r1, [r3]
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r1, [r3, #4]
	ldr	r3, .L90+8
	ldr	r0, [r3]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-12]
	add	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	ldr	r2, [fp, #-12]
	sub	r2, r1, r2
	str	r2, [r3, #4]
	ldr	r3, .L90+8
	ldr	r1, [r3]
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [fp, #-12]
	str	r2, [r3, #4]
	ldr	r3, .L90+4
	ldr	r2, [r3]
	ldr	r1, [fp, #-20]
	ldr	r3, [fp, #-12]
	add	r3, r1, r3
	sub	r3, r3, #1
	lsl	r3, r3, #12
	add	r3, r2, r3
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-24]
	b	.L89
.L81:
	ldr	r3, .L90+8
	ldr	r1, [r3]
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bne	.L83
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-24]
	b	.L89
.L83:
	ldr	r3, .L90+8
	ldr	r1, [r3]
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3, #4]
	str	r3, [fp, #-12]
	ldr	r3, .L90+12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, .L90+12
	mov	r2, #0
	str	r2, [r3]
	ldr	r0, [fp, #-32]
	bl	free
	ldr	r2, .L90+12
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	ldr	r0, [fp, #-36]
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L84
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #12
	mov	r0, r3
	bl	malloc
	mov	r3, #0
	b	.L76
.L84:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	beq	.L89
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #12
	mov	r2, r3
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-24]
	bl	memcpy
	b	.L89
.L79:
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	mov	r2, #1
	lsl	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-36]
	cmp	r3, r2
	bls	.L86
	mov	r2, #1
	ldr	r3, [fp, #-16]
	lsl	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-36]
	cmp	r3, r2
	bhi	.L86
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-24]
	b	.L85
.L86:
	ldr	r0, [fp, #-36]
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L88
	mov	r3, #0
	b	.L76
.L88:
	mov	r2, #1
	ldr	r3, [fp, #-16]
	lsl	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	movcc	r3, r2
	movcs	r3, r3
	mov	r2, r3
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-24]
	bl	memcpy
	ldr	r0, [fp, #-32]
	bl	free
	b	.L85
.L89:
	nop
.L85:
	ldr	r3, [fp, #-24]
.L76:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L91:
	.align	2
.L90:
	.word	__realloc_hook
	.word	_heapbase
	.word	_heapinfo
	.word	_heaplimit
	.size	realloc, .-realloc
	.align	2
	.global	__default_morecore
	.syntax unified
	.arm
	.fpu softvfp
	.type	__default_morecore, %function
__default_morecore:
	@ 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	r0, [fp, #-16]
	bl	sbrk
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L93
	mov	r3, #0
	b	.L94
.L93:
	ldr	r3, [fp, #-8]
.L94:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	__default_morecore, .-__default_morecore
	.local	pagesize
	.comm	pagesize,4,4
	.global	__aeabi_uidivmod
	.align	2
	.global	valloc
	.syntax unified
	.arm
	.fpu softvfp
	.type	valloc, %function
valloc:
	@ 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, .L100
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L96
	bl	getpagesize
	mov	r3, r0
	ldr	r2, .L100
	str	r3, [r2]
.L96:
	ldr	r3, .L100
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L97
	mov	r3, #0
	b	.L98
.L97:
	ldr	r3, [fp, #-12]
	ldr	r2, .L100
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_uidivmod
	mov	r3, r1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L99
	ldr	r3, .L100
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	sub	r3, r2, r3
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	str	r3, [fp, #-12]
.L99:
	ldr	r3, [fp, #-12]
.L98:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L101:
	.align	2
.L100:
	.word	pagesize
	.size	valloc, .-valloc
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
