	.file	"276031.c"
	.intel_syntax noprefix
	.text
	.type	max, @function
max:
.LFB0:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -16[rbp]
	cmp	QWORD PTR -8[rbp], rax
	cmovnb	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	max, .-max
	.type	align, @function
align:
.LFB1:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -16[rbp]
	neg	rax
	and	rax, rdx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	align, .-align
	.section	.rodata
	.align 8
	.type	small_object_granule_sizes, @object
	.size	small_object_granule_sizes, 10
small_object_granule_sizes:
	.ascii	"\001\002\003\004\005\006\b\n\020 "
	.text
	.type	granules_to_chunk_kind, @function
granules_to_chunk_kind:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 1
	ja	.L6
	mov	eax, 0
	jmp	.L7
.L6:
	cmp	DWORD PTR -4[rbp], 2
	ja	.L8
	mov	eax, 1
	jmp	.L7
.L8:
	cmp	DWORD PTR -4[rbp], 3
	ja	.L9
	mov	eax, 2
	jmp	.L7
.L9:
	cmp	DWORD PTR -4[rbp], 4
	ja	.L10
	mov	eax, 3
	jmp	.L7
.L10:
	cmp	DWORD PTR -4[rbp], 5
	ja	.L11
	mov	eax, 4
	jmp	.L7
.L11:
	cmp	DWORD PTR -4[rbp], 6
	ja	.L12
	mov	eax, 5
	jmp	.L7
.L12:
	cmp	DWORD PTR -4[rbp], 8
	ja	.L13
	mov	eax, 6
	jmp	.L7
.L13:
	cmp	DWORD PTR -4[rbp], 10
	ja	.L14
	mov	eax, 7
	jmp	.L7
.L14:
	cmp	DWORD PTR -4[rbp], 16
	ja	.L15
	mov	eax, 8
	jmp	.L7
.L15:
	cmp	DWORD PTR -4[rbp], 32
	ja	.L16
	mov	eax, 9
	jmp	.L7
.L16:
	mov	eax, 255
.L7:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	granules_to_chunk_kind, .-granules_to_chunk_kind
	.type	chunk_kind_to_granules, @function
chunk_kind_to_granules:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 9
	ja	.L18
	mov	eax, DWORD PTR -4[rbp]
	lea	rdx, 0[0+rax*4]
	lea	rax, .L20[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L20[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L20:
	.long	.L29-.L20
	.long	.L28-.L20
	.long	.L27-.L20
	.long	.L26-.L20
	.long	.L25-.L20
	.long	.L24-.L20
	.long	.L23-.L20
	.long	.L22-.L20
	.long	.L21-.L20
	.long	.L19-.L20
	.text
.L29:
	mov	eax, 1
	jmp	.L30
.L28:
	mov	eax, 2
	jmp	.L30
.L27:
	mov	eax, 3
	jmp	.L30
.L26:
	mov	eax, 4
	jmp	.L30
.L25:
	mov	eax, 5
	jmp	.L30
.L24:
	mov	eax, 6
	jmp	.L30
.L23:
	mov	eax, 8
	jmp	.L30
.L22:
	mov	eax, 10
	jmp	.L30
.L21:
	mov	eax, 16
	jmp	.L30
.L19:
	mov	eax, 32
	jmp	.L30
.L18:
	mov	eax, -1
.L30:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	chunk_kind_to_granules, .-chunk_kind_to_granules
	.type	get_page, @function
get_page:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	ax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	get_page, .-get_page
	.type	get_chunk_index, @function
get_chunk_index:
.LFB5:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, ax
	shr	rax, 8
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	get_chunk_index, .-get_chunk_index
	.type	get_large_object_payload, @function
get_large_object_payload:
.LFB6:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 16
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	get_large_object_payload, .-get_large_object_payload
	.type	get_large_object, @function
get_large_object:
.LFB7:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, 16
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	get_large_object, .-get_large_object
	.local	small_object_freelists
	.comm	small_object_freelists,80,32
	.local	large_objects
	.comm	large_objects,8,8
	.local	walloc_heap_size
	.comm	walloc_heap_size,8,8
	.type	allocate_pages, @function
allocate_pages:
.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, 80
	mov	QWORD PTR -72[rbp], rdi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR -72[rbp]
	add	rax, 256
	mov	QWORD PTR -40[rbp], rax
	mov	edi, 0
	mov	eax, 0
	call	__builtin_wasm_memory_size@PLT
	sal	eax, 16
	cdqe
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -64[rbp], rax
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	rax, QWORD PTR walloc_heap_size[rip]
	test	rax, rax
	jne	.L40
	lea	rax, __heap_base[rip]
	mov	esi, 65536
	mov	rdi, rax
	call	align
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	sub	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR walloc_heap_size[rip], rax
	mov	rax, QWORD PTR -56[rbp]
	sub	QWORD PTR -64[rbp], rax
.L40:
	mov	rax, QWORD PTR -56[rbp]
	cmp	rax, QWORD PTR -40[rbp]
	jnb	.L41
	mov	rax, QWORD PTR -40[rbp]
	sub	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR walloc_heap_size[rip]
	shr	rdx
	mov	rsi, rax
	mov	rdi, rdx
	call	max
	mov	esi, 65536
	mov	rdi, rax
	call	align
	mov	QWORD PTR -48[rbp], rax
	cmp	QWORD PTR -48[rbp], 0
	jne	.L42
	ud2
.L42:
	mov	rax, QWORD PTR -48[rbp]
	shr	rax, 16
	mov	rsi, rax
	mov	edi, 0
	mov	eax, 0
	call	__builtin_wasm_memory_grow@PLT
	cmp	eax, -1
	jne	.L43
	mov	eax, 0
	jmp	.L44
.L43:
	mov	rdx, QWORD PTR walloc_heap_size[rip]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	QWORD PTR walloc_heap_size[rip], rax
.L41:
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L45
	ud2
.L45:
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 65536
	mov	rdi, rax
	call	align
	cmp	QWORD PTR -8[rbp], rax
	je	.L46
	ud2
.L46:
	mov	rax, QWORD PTR -8[rbp]
	shr	rax, 16
	mov	rdx, rax
	mov	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -16[rbp]
.L44:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	allocate_pages, .-allocate_pages
	.type	allocate_chunk, @function
allocate_chunk:
.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 -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	DWORD PTR -16[rbp], edx
	mov	eax, DWORD PTR -16[rbp]
	mov	ecx, eax
	mov	rdx, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	BYTE PTR [rdx+rax], cl
	mov	eax, DWORD PTR -12[rbp]
	sal	rax, 8
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	allocate_chunk, .-allocate_chunk
	.type	maybe_repurpose_single_chunk_large_objects_head, @function
maybe_repurpose_single_chunk_large_objects_head:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	rax, QWORD PTR large_objects[rip]
	mov	rax, QWORD PTR 8[rax]
	cmp	rax, 255
	ja	.L51
	mov	rax, QWORD PTR large_objects[rip]
	mov	rdi, rax
	call	get_chunk_index
	mov	DWORD PTR -20[rbp], eax
	mov	rax, QWORD PTR large_objects[rip]
	mov	rdi, rax
	call	get_page
	mov	rcx, rax
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 9
	mov	esi, eax
	mov	rdi, rcx
	call	allocate_chunk
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR large_objects[rip]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR large_objects[rip], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR small_object_freelists[rip+72]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR small_object_freelists[rip+72], rax
.L51:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	maybe_repurpose_single_chunk_large_objects_head, .-maybe_repurpose_single_chunk_large_objects_head
	.local	pending_large_object_compact
	.comm	pending_large_object_compact,4,4
	.type	maybe_merge_free_large_object, @function
maybe_merge_free_large_object:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 72
	mov	QWORD PTR -72[rbp], rdi
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -32[rbp], rax
.L62:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	get_large_object_payload
	mov	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 8[rax]
	add	rax, rdx
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 256
	mov	rdi, rax
	call	align
	mov	rdx, QWORD PTR -24[rbp]
	cmp	rax, rdx
	je	.L53
	ud2
.L53:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	get_chunk_index
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -52[rbp], 0
	jne	.L54
	mov	rax, QWORD PTR -72[rbp]
	jmp	.L55
.L54:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	get_page
	mov	QWORD PTR -16[rbp], rax
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -52[rbp]
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, -2
	je	.L56
	mov	rax, QWORD PTR -72[rbp]
	jmp	.L55
.L56:
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	lea	rax, large_objects[rip]
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR large_objects[rip]
	mov	QWORD PTR -40[rbp], rax
.L61:
	cmp	QWORD PTR -40[rbp], 0
	jne	.L57
	ud2
.L57:
	mov	rax, QWORD PTR -40[rbp]
	cmp	rax, QWORD PTR -8[rbp]
	jne	.L58
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 8[rax]
	add	rax, rdx
	lea	rdx, 16[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -40[rbp]
	cmp	QWORD PTR -72[rbp], rax
	jne	.L63
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR -72[rbp], rax
	jmp	.L63
.L58:
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -40[rbp], rax
	jmp	.L61
.L63:
	nop
	jmp	.L62
.L55:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	maybe_merge_free_large_object, .-maybe_merge_free_large_object
	.type	maybe_compact_free_large_objects, @function
maybe_compact_free_large_objects:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	eax, DWORD PTR pending_large_object_compact[rip]
	test	eax, eax
	je	.L68
	mov	DWORD PTR pending_large_object_compact[rip], 0
	lea	rax, large_objects[rip]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L66
.L67:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	maybe_merge_free_large_object
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
.L66:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L67
.L68:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	maybe_compact_free_large_objects, .-maybe_compact_free_large_objects
	.type	allocate_large_object, @function
allocate_large_object:
.LFB13:
	.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, 232
	.cfi_offset 3, -24
	mov	QWORD PTR -232[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	call	maybe_compact_free_large_objects
	mov	QWORD PTR -208[rbp], 0
	lea	rax, large_objects[rip]
	mov	QWORD PTR -200[rbp], rax
	mov	QWORD PTR -192[rbp], -1
	lea	rax, large_objects[rip]
	mov	QWORD PTR -184[rbp], rax
	mov	rax, QWORD PTR large_objects[rip]
	mov	QWORD PTR -176[rbp], rax
	jmp	.L70
.L73:
	mov	rax, QWORD PTR -176[rbp]
	mov	rax, QWORD PTR 8[rax]
	cmp	QWORD PTR -232[rbp], rax
	ja	.L71
	mov	rax, QWORD PTR -176[rbp]
	mov	rax, QWORD PTR 8[rax]
	cmp	QWORD PTR -192[rbp], rax
	jbe	.L71
	mov	rax, QWORD PTR -176[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -192[rbp], rax
	mov	rax, QWORD PTR -176[rbp]
	mov	QWORD PTR -208[rbp], rax
	mov	rax, QWORD PTR -184[rbp]
	mov	QWORD PTR -200[rbp], rax
	mov	rax, QWORD PTR -192[rbp]
	lea	rbx, 16[rax]
	mov	rax, QWORD PTR -232[rbp]
	add	rax, 16
	mov	esi, 256
	mov	rdi, rax
	call	align
	cmp	rbx, rax
	je	.L91
.L71:
	mov	rax, QWORD PTR -176[rbp]
	mov	QWORD PTR -184[rbp], rax
	mov	rax, QWORD PTR -176[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -176[rbp], rax
.L70:
	cmp	QWORD PTR -176[rbp], 0
	jne	.L73
	jmp	.L72
.L91:
	nop
.L72:
	cmp	QWORD PTR -208[rbp], 0
	jne	.L74
	mov	rax, QWORD PTR -232[rbp]
	add	rax, 16
	mov	QWORD PTR -160[rbp], rax
	mov	QWORD PTR -216[rbp], 0
	lea	rdx, -216[rbp]
	mov	rax, QWORD PTR -160[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	allocate_pages
	mov	QWORD PTR -152[rbp], rax
	cmp	QWORD PTR -152[rbp], 0
	jne	.L75
	mov	eax, 0
	jmp	.L76
.L75:
	mov	rax, QWORD PTR -152[rbp]
	mov	edx, 255
	mov	esi, 1
	mov	rdi, rax
	call	allocate_chunk
	mov	QWORD PTR -144[rbp], rax
	mov	rax, QWORD PTR -144[rbp]
	mov	QWORD PTR -208[rbp], rax
	mov	rax, QWORD PTR -144[rbp]
	sub	rax, QWORD PTR -152[rbp]
	mov	QWORD PTR -136[rbp], rax
	mov	rdx, QWORD PTR large_objects[rip]
	mov	rax, QWORD PTR -208[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -216[rbp]
	sal	rax, 16
	sub	rax, QWORD PTR -136[rbp]
	sub	rax, 16
	mov	QWORD PTR -192[rbp], rax
	mov	rax, QWORD PTR -208[rbp]
	mov	rdx, QWORD PTR -192[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -192[rbp]
	cmp	rax, QWORD PTR -160[rbp]
	jnb	.L74
	ud2
.L74:
	mov	rax, QWORD PTR -208[rbp]
	mov	rdi, rax
	call	get_chunk_index
	mov	ebx, eax
	mov	rax, QWORD PTR -208[rbp]
	mov	rdi, rax
	call	get_page
	mov	edx, 255
	mov	esi, ebx
	mov	rdi, rax
	call	allocate_chunk
	mov	rax, QWORD PTR -208[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -128[rbp], rax
	mov	rax, QWORD PTR -200[rbp]
	mov	rdx, QWORD PTR -128[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -192[rbp]
	sub	rax, QWORD PTR -232[rbp]
	mov	al, 0
	mov	QWORD PTR -168[rbp], rax
	cmp	QWORD PTR -168[rbp], 0
	je	.L78
	mov	rax, QWORD PTR -208[rbp]
	mov	rdi, rax
	call	get_page
	mov	QWORD PTR -120[rbp], rax
	mov	rax, QWORD PTR -208[rbp]
	mov	rdi, rax
	call	get_large_object_payload
	mov	QWORD PTR -112[rbp], rax
	mov	rdx, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR -192[rbp]
	add	rax, rdx
	mov	QWORD PTR -104[rbp], rax
	mov	rax, QWORD PTR -168[rbp]
	not	rax
	mov	rdx, rax
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	rdi, rax
	call	get_page
	cmp	QWORD PTR -120[rbp], rax
	jne	.L79
	mov	rax, QWORD PTR -104[rbp]
	mov	esi, 256
	mov	rdi, rax
	call	align
	mov	rdx, QWORD PTR -104[rbp]
	cmp	rax, rdx
	je	.L80
	ud2
.L79:
	cmp	QWORD PTR -232[rbp], 65263
	ja	.L81
	mov	rax, QWORD PTR -104[rbp]
	mov	esi, 65536
	mov	rdi, rax
	call	align
	mov	rdx, QWORD PTR -104[rbp]
	cmp	rax, rdx
	je	.L82
	ud2
.L82:
	mov	rax, QWORD PTR -112[rbp]
	movzx	edx, ax
	mov	eax, 65536
	sub	rax, rdx
	mov	QWORD PTR -80[rbp], rax
	mov	rax, QWORD PTR -208[rbp]
	mov	QWORD PTR -72[rbp], rax
	mov	rax, QWORD PTR -112[rbp]
	mov	rdi, rax
	call	get_chunk_index
	mov	ecx, eax
	mov	rax, QWORD PTR -120[rbp]
	mov	edx, 254
	mov	esi, ecx
	mov	rdi, rax
	call	allocate_chunk
	mov	rax, QWORD PTR -72[rbp]
	mov	rdx, QWORD PTR -80[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rdx, QWORD PTR large_objects[rip]
	mov	rax, QWORD PTR -72[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -72[rbp]
	mov	QWORD PTR large_objects[rip], rax
	call	maybe_repurpose_single_chunk_large_objects_head
	mov	rax, QWORD PTR -120[rbp]
	add	rax, 65536
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, 255
	mov	esi, 1
	mov	rdi, rax
	call	allocate_chunk
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -208[rbp], rax
	mov	rax, QWORD PTR -192[rbp]
	sub	rax, QWORD PTR -80[rbp]
	sub	rax, 272
	mov	QWORD PTR -192[rbp], rax
	mov	rax, QWORD PTR -208[rbp]
	mov	rdx, QWORD PTR -192[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -192[rbp]
	cmp	rax, QWORD PTR -232[rbp]
	jnb	.L83
	ud2
.L83:
	mov	rax, QWORD PTR -208[rbp]
	mov	rdi, rax
	call	get_large_object_payload
	mov	QWORD PTR -112[rbp], rax
	mov	rax, QWORD PTR -192[rbp]
	sub	rax, QWORD PTR -232[rbp]
	mov	al, 0
	mov	QWORD PTR -168[rbp], rax
	jmp	.L80
.L81:
	mov	rax, QWORD PTR -104[rbp]
	mov	esi, 65536
	mov	rdi, rax
	call	align
	mov	rdx, QWORD PTR -104[rbp]
	cmp	rax, rdx
	je	.L84
	ud2
.L84:
	mov	rax, QWORD PTR -112[rbp]
	movzx	edx, ax
	mov	eax, 65536
	sub	rax, rdx
	mov	QWORD PTR -96[rbp], rax
	mov	rax, QWORD PTR -232[rbp]
	sub	rax, QWORD PTR -96[rbp]
	mov	esi, 65536
	mov	rdi, rax
	call	align
	mov	QWORD PTR -88[rbp], rax
	mov	rdx, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	QWORD PTR -232[rbp], rax
	mov	rax, QWORD PTR -192[rbp]
	sub	rax, QWORD PTR -232[rbp]
	mov	QWORD PTR -168[rbp], rax
.L80:
	mov	rax, QWORD PTR -208[rbp]
	mov	rax, QWORD PTR 8[rax]
	sub	rax, QWORD PTR -168[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -208[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -168[rbp]
	neg	rax
	mov	rdx, rax
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	rdi, rax
	call	get_chunk_index
	mov	DWORD PTR -220[rbp], eax
	jmp	.L85
.L87:
	sub	QWORD PTR -168[rbp], 256
	add	DWORD PTR -220[rbp], 1
.L85:
	cmp	DWORD PTR -220[rbp], 0
	jne	.L86
	cmp	QWORD PTR -168[rbp], 0
	jne	.L87
.L86:
	cmp	QWORD PTR -168[rbp], 0
	je	.L78
	mov	rax, QWORD PTR -168[rbp]
	neg	rax
	mov	rdx, rax
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	rdi, rax
	call	get_page
	mov	QWORD PTR -48[rbp], rax
	mov	ecx, DWORD PTR -220[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, 254
	mov	esi, ecx
	mov	rdi, rax
	call	allocate_chunk
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	rdx, QWORD PTR large_objects[rip]
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -168[rbp]
	lea	rdx, -16[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	get_large_object_payload
	mov	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 8[rax]
	add	rax, rdx
	mov	rbx, rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	get_large_object_payload
	mov	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 8[rax]
	add	rax, rdx
	mov	esi, 256
	mov	rdi, rax
	call	align
	cmp	rbx, rax
	je	.L88
	ud2
.L88:
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR large_objects[rip], rax
	call	maybe_repurpose_single_chunk_large_objects_head
.L78:
	mov	rax, QWORD PTR -208[rbp]
	mov	rdi, rax
	call	get_large_object_payload
	mov	rdx, rax
	mov	rax, QWORD PTR -208[rbp]
	mov	rax, QWORD PTR 8[rax]
	add	rax, rdx
	mov	rbx, rax
	mov	rax, QWORD PTR -208[rbp]
	mov	rdi, rax
	call	get_large_object_payload
	mov	rdx, rax
	mov	rax, QWORD PTR -208[rbp]
	mov	rax, QWORD PTR 8[rax]
	add	rax, rdx
	mov	esi, 256
	mov	rdi, rax
	call	align
	cmp	rbx, rax
	je	.L89
	ud2
.L89:
	mov	rax, QWORD PTR -208[rbp]
.L76:
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L90
	call	__stack_chk_fail@PLT
.L90:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	allocate_large_object, .-allocate_large_object
	.type	obtain_small_objects, @function
obtain_small_objects:
.LFB14:
	.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, 88
	.cfi_offset 3, -24
	mov	DWORD PTR -84[rbp], edi
	lea	rax, small_object_freelists[rip+72]
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L93
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -80[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L94
.L93:
	mov	edi, 0
	call	allocate_large_object
	mov	QWORD PTR -80[rbp], rax
	cmp	QWORD PTR -80[rbp], 0
	jne	.L94
	mov	eax, 0
	jmp	.L95
.L94:
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	get_chunk_index
	mov	ebx, eax
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	get_page
	mov	rcx, rax
	mov	eax, DWORD PTR -84[rbp]
	mov	edx, eax
	mov	esi, ebx
	mov	rdi, rcx
	call	allocate_chunk
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 256
	mov	QWORD PTR -40[rbp], rax
	mov	QWORD PTR -72[rbp], 0
	mov	eax, DWORD PTR -84[rbp]
	mov	edi, eax
	call	chunk_kind_to_granules
	sal	eax, 3
	mov	eax, eax
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -64[rbp], rax
	jmp	.L96
.L97:
	mov	rax, QWORD PTR -64[rbp]
	neg	rax
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -72[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -72[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	add	QWORD PTR -64[rbp], rax
.L96:
	cmp	QWORD PTR -64[rbp], 256
	jbe	.L97
	mov	rax, QWORD PTR -72[rbp]
.L95:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	obtain_small_objects, .-obtain_small_objects
	.type	size_to_granules, @function
size_to_granules:
.LFB15:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 7
	shr	rax, 3
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	size_to_granules, .-size_to_granules
	.type	get_small_object_freelist, @function
get_small_object_freelist:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 9
	jbe	.L101
	ud2
.L101:
	mov	eax, DWORD PTR -4[rbp]
	lea	rdx, 0[0+rax*8]
	lea	rax, small_object_freelists[rip]
	add	rax, rdx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	get_small_object_freelist, .-get_small_object_freelist
	.type	allocate_small, @function
allocate_small:
.LFB17:
	.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	DWORD PTR -36[rbp], edi
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	get_small_object_freelist
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L104
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	obtain_small_objects
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L105
	mov	eax, 0
	jmp	.L106
.L105:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR [rax], rdx
.L104:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
.L106:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	allocate_small, .-allocate_small
	.type	allocate_large, @function
allocate_large:
.LFB18:
	.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	allocate_large_object
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L108
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	get_large_object_payload
	jmp	.L110
.L108:
	mov	eax, 0
.L110:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	allocate_large, .-allocate_large
	.globl	malloc
	.type	malloc, @function
malloc:
.LFB19:
	.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	size_to_granules
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	edi, eax
	call	granules_to_chunk_kind
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 255
	jne	.L112
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	allocate_large
	jmp	.L114
.L112:
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	allocate_small
.L114:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	malloc, .-malloc
	.globl	free
	.type	free, @function
free:
.LFB20:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 56
	mov	QWORD PTR -56[rbp], rdi
	cmp	QWORD PTR -56[rbp], 0
	je	.L119
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	get_page
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	get_chunk_index
	mov	DWORD PTR -44[rbp], eax
	mov	rdx, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR -44[rbp]
	movzx	eax, BYTE PTR [rdx+rax]
	mov	BYTE PTR -45[rbp], al
	cmp	BYTE PTR -45[rbp], -1
	jne	.L118
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	get_large_object
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR large_objects[rip]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR large_objects[rip], rax
	mov	ecx, DWORD PTR -44[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 254
	mov	esi, ecx
	mov	rdi, rax
	call	allocate_chunk
	mov	DWORD PTR pending_large_object_compact[rip], 1
	jmp	.L115
.L118:
	movzx	eax, BYTE PTR -45[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	edi, eax
	call	get_small_object_freelist
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L115
.L119:
	nop
.L115:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	free, .-free
	.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	"276031.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	max, %function
max:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	movcs	r3, r2
	movcc	r3, r3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	max, .-max
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	align, %function
align:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	sub	r2, r3, #1
	ldr	r3, [fp, #-12]
	rsb	r3, r3, #0
	and	r3, r3, r2
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	align, .-align
	.section	.rodata
	.align	2
	.type	small_object_granule_sizes, %object
	.size	small_object_granule_sizes, 10
small_object_granule_sizes:
	.ascii	"\001\002\003\004\005\006\010\012\020 "
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	granules_to_chunk_kind, %function
granules_to_chunk_kind:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	bhi	.L6
	mov	r3, #0
	b	.L7
.L6:
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	bhi	.L8
	mov	r3, #1
	b	.L7
.L8:
	ldr	r3, [fp, #-8]
	cmp	r3, #3
	bhi	.L9
	mov	r3, #2
	b	.L7
.L9:
	ldr	r3, [fp, #-8]
	cmp	r3, #4
	bhi	.L10
	mov	r3, #3
	b	.L7
.L10:
	ldr	r3, [fp, #-8]
	cmp	r3, #5
	bhi	.L11
	mov	r3, #4
	b	.L7
.L11:
	ldr	r3, [fp, #-8]
	cmp	r3, #6
	bhi	.L12
	mov	r3, #5
	b	.L7
.L12:
	ldr	r3, [fp, #-8]
	cmp	r3, #8
	bhi	.L13
	mov	r3, #6
	b	.L7
.L13:
	ldr	r3, [fp, #-8]
	cmp	r3, #10
	bhi	.L14
	mov	r3, #7
	b	.L7
.L14:
	ldr	r3, [fp, #-8]
	cmp	r3, #16
	bhi	.L15
	mov	r3, #8
	b	.L7
.L15:
	ldr	r3, [fp, #-8]
	cmp	r3, #32
	bhi	.L16
	mov	r3, #9
	b	.L7
.L16:
	mov	r3, #255
.L7:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	granules_to_chunk_kind, .-granules_to_chunk_kind
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	chunk_kind_to_granules, %function
chunk_kind_to_granules:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #9
	ldrls	pc, [pc, r3, asl #2]
	b	.L18
.L20:
	.word	.L29
	.word	.L28
	.word	.L27
	.word	.L26
	.word	.L25
	.word	.L24
	.word	.L23
	.word	.L22
	.word	.L21
	.word	.L19
.L29:
	mov	r3, #1
	b	.L30
.L28:
	mov	r3, #2
	b	.L30
.L27:
	mov	r3, #3
	b	.L30
.L26:
	mov	r3, #4
	b	.L30
.L25:
	mov	r3, #5
	b	.L30
.L24:
	mov	r3, #6
	b	.L30
.L23:
	mov	r3, #8
	b	.L30
.L22:
	mov	r3, #10
	b	.L30
.L21:
	mov	r3, #16
	b	.L30
.L19:
	mov	r3, #32
	b	.L30
.L18:
	mvn	r3, #0
.L30:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	chunk_kind_to_granules, .-chunk_kind_to_granules
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_page, %function
get_page:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	lsr	r3, r3, #16
	lsl	r3, r3, #16
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	get_page, .-get_page
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_chunk_index, %function
get_chunk_index:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsr	r3, r3, #8
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	get_chunk_index, .-get_chunk_index
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_large_object_payload, %function
get_large_object_payload:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	add	r3, r3, #8
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	get_large_object_payload, .-get_large_object_payload
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_large_object, %function
get_large_object:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	sub	r3, r3, #8
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	get_large_object, .-get_large_object
	.local	small_object_freelists
	.comm	small_object_freelists,40,4
	.local	large_objects
	.comm	large_objects,4,4
	.local	walloc_heap_size
	.comm	walloc_heap_size,4,4
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	allocate_pages, %function
allocate_pages:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, [fp, #-40]
	add	r3, r3, #256
	str	r3, [fp, #-24]
	mov	r0, #0
	bl	__builtin_wasm_memory_size
	mov	r3, r0
	lsl	r3, r3, #16
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	ldr	r3, .L47
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L40
	ldr	r3, .L47+4
	mov	r1, #65536
	mov	r0, r3
	bl	align
	str	r0, [fp, #-16]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	str	r3, [fp, #-32]
	ldr	r2, .L47
	ldr	r3, [fp, #-32]
	str	r3, [r2]
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-32]
	sub	r3, r2, r3
	str	r3, [fp, #-36]
.L40:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bcs	.L41
	ldr	r3, .L47
	ldr	r3, [r3]
	lsr	r0, r3, #1
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-32]
	sub	r3, r2, r3
	mov	r1, r3
	bl	max
	mov	r3, r0
	mov	r1, #65536
	mov	r0, r3
	bl	align
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L42
	.inst	0xe7f000f0
.L42:
	ldr	r3, [fp, #-28]
	lsr	r3, r3, #16
	mov	r1, r3
	mov	r0, #0
	bl	__builtin_wasm_memory_grow
	mov	r3, r0
	cmn	r3, #1
	bne	.L43
	mov	r3, #0
	b	.L44
.L43:
	ldr	r3, .L47
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	ldr	r2, .L47
	str	r3, [r2]
.L41:
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L45
	.inst	0xe7f000f0
.L45:
	mov	r1, #65536
	ldr	r0, [fp, #-8]
	bl	align
	mov	r2, r0
	ldr	r3, [fp, #-8]
	cmp	r3, r2
	beq	.L46
	.inst	0xe7f000f0
.L46:
	ldr	r3, [fp, #-8]
	lsr	r2, r3, #16
	ldr	r3, [fp, #-44]
	str	r2, [r3]
	ldr	r3, [fp, #-12]
.L44:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L48:
	.align	2
.L47:
	.word	walloc_heap_size
	.word	__heap_base
	.size	allocate_pages, .-allocate_pages
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	allocate_chunk, %function
allocate_chunk:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-16]
	and	r1, r3, #255
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #8
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	allocate_chunk, .-allocate_chunk
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	maybe_repurpose_single_chunk_large_objects_head, %function
maybe_repurpose_single_chunk_large_objects_head:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L54
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	cmp	r3, #255
	bhi	.L53
	ldr	r3, .L54
	ldr	r3, [r3]
	mov	r0, r3
	bl	get_chunk_index
	str	r0, [fp, #-16]
	ldr	r3, .L54
	ldr	r3, [r3]
	mov	r0, r3
	bl	get_page
	mov	r3, r0
	mov	r2, #9
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	allocate_chunk
	str	r0, [fp, #-12]
	ldr	r3, .L54
	ldr	r3, [r3]
	ldr	r3, [r3]
	ldr	r2, .L54
	str	r3, [r2]
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-8]
	ldr	r3, .L54+4
	ldr	r2, [r3, #36]
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	ldr	r2, .L54+4
	ldr	r3, [fp, #-8]
	str	r3, [r2, #36]
.L53:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L55:
	.align	2
.L54:
	.word	large_objects
	.word	small_object_freelists
	.size	maybe_repurpose_single_chunk_large_objects_head, .-maybe_repurpose_single_chunk_large_objects_head
	.local	pending_large_object_compact
	.comm	pending_large_object_compact,4,4
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	maybe_merge_free_large_object, %function
maybe_merge_free_large_object:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	ldr	r3, [r3]
	str	r3, [fp, #-24]
.L66:
	ldr	r0, [fp, #-24]
	bl	get_large_object_payload
	mov	r2, r0
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	add	r3, r2, r3
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	mov	r1, #256
	mov	r0, r3
	bl	align
	mov	r2, r0
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	beq	.L57
	.inst	0xe7f000f0
.L57:
	ldr	r0, [fp, #-20]
	bl	get_chunk_index
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L58
	ldr	r3, [fp, #-40]
	b	.L59
.L58:
	ldr	r0, [fp, #-20]
	bl	get_page
	str	r0, [fp, #-12]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #254
	beq	.L60
	ldr	r3, [fp, #-40]
	b	.L59
.L60:
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-8]
	ldr	r3, .L68
	str	r3, [fp, #-32]
	ldr	r3, .L68
	ldr	r3, [r3]
	str	r3, [fp, #-28]
.L65:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L61
	.inst	0xe7f000f0
.L61:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bne	.L62
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #4]
	add	r3, r2, r3
	add	r2, r3, #8
	ldr	r3, [fp, #-24]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-28]
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	str	r2, [r3]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	bne	.L67
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-40]
	b	.L67
.L62:
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	str	r3, [fp, #-28]
	b	.L65
.L67:
	nop
	b	.L66
.L59:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L69:
	.align	2
.L68:
	.word	large_objects
	.size	maybe_merge_free_large_object, .-maybe_merge_free_large_object
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	maybe_compact_free_large_objects, %function
maybe_compact_free_large_objects:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L75
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L74
	ldr	r3, .L75
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L75+4
	str	r3, [fp, #-8]
	b	.L72
.L73:
	ldr	r0, [fp, #-8]
	bl	maybe_merge_free_large_object
	mov	r3, r0
	ldr	r3, [r3]
	str	r3, [fp, #-8]
.L72:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L73
.L74:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L76:
	.align	2
.L75:
	.word	pending_large_object_compact
	.word	large_objects
	.size	maybe_compact_free_large_objects, .-maybe_compact_free_large_objects
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	allocate_large_object, %function
allocate_large_object:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #116
	str	r0, [fp, #-120]
	ldr	r3, .L100
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	bl	maybe_compact_free_large_objects
	mov	r3, #0
	str	r3, [fp, #-112]
	ldr	r3, .L100+4
	str	r3, [fp, #-108]
	mvn	r3, #0
	str	r3, [fp, #-104]
	ldr	r3, .L100+4
	str	r3, [fp, #-100]
	ldr	r3, .L100+4
	ldr	r3, [r3]
	str	r3, [fp, #-96]
	b	.L78
.L81:
	ldr	r3, [fp, #-96]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-120]
	cmp	r2, r3
	bhi	.L79
	ldr	r3, [fp, #-96]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-104]
	cmp	r2, r3
	bls	.L79
	ldr	r3, [fp, #-96]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-104]
	ldr	r3, [fp, #-96]
	str	r3, [fp, #-112]
	ldr	r3, [fp, #-100]
	str	r3, [fp, #-108]
	ldr	r3, [fp, #-104]
	add	r4, r3, #8
	ldr	r3, [fp, #-120]
	add	r3, r3, #8
	mov	r1, #256
	mov	r0, r3
	bl	align
	mov	r3, r0
	cmp	r4, r3
	beq	.L99
.L79:
	ldr	r3, [fp, #-96]
	str	r3, [fp, #-100]
	ldr	r3, [fp, #-96]
	ldr	r3, [r3]
	str	r3, [fp, #-96]
.L78:
	ldr	r3, [fp, #-96]
	cmp	r3, #0
	bne	.L81
	b	.L80
.L99:
	nop
.L80:
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	bne	.L82
	ldr	r3, [fp, #-120]
	add	r3, r3, #8
	str	r3, [fp, #-84]
	mov	r3, #0
	str	r3, [fp, #-116]
	sub	r3, fp, #116
	mov	r1, r3
	ldr	r0, [fp, #-84]
	bl	allocate_pages
	str	r0, [fp, #-80]
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	bne	.L83
	mov	r3, #0
	b	.L84
.L83:
	mov	r2, #255
	mov	r1, #1
	ldr	r0, [fp, #-80]
	bl	allocate_chunk
	str	r0, [fp, #-76]
	ldr	r3, [fp, #-76]
	str	r3, [fp, #-112]
	ldr	r2, [fp, #-76]
	ldr	r3, [fp, #-80]
	sub	r3, r2, r3
	str	r3, [fp, #-72]
	ldr	r3, .L100+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-112]
	str	r2, [r3]
	ldr	r3, [fp, #-116]
	lsl	r2, r3, #16
	ldr	r3, [fp, #-72]
	sub	r3, r2, r3
	sub	r3, r3, #8
	str	r3, [fp, #-104]
	ldr	r3, [fp, #-112]
	ldr	r2, [fp, #-104]
	str	r2, [r3, #4]
	ldr	r2, [fp, #-104]
	ldr	r3, [fp, #-84]
	cmp	r2, r3
	bcs	.L82
	.inst	0xe7f000f0
.L82:
	ldr	r0, [fp, #-112]
	bl	get_page
	mov	r4, r0
	ldr	r0, [fp, #-112]
	bl	get_chunk_index
	mov	r3, r0
	mov	r2, #255
	mov	r1, r3
	mov	r0, r4
	bl	allocate_chunk
	ldr	r3, [fp, #-112]
	ldr	r3, [r3]
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-108]
	ldr	r2, [fp, #-68]
	str	r2, [r3]
	ldr	r2, [fp, #-104]
	ldr	r3, [fp, #-120]
	sub	r3, r2, r3
	bic	r3, r3, #255
	str	r3, [fp, #-92]
	ldr	r3, [fp, #-92]
	cmp	r3, #0
	beq	.L86
	ldr	r0, [fp, #-112]
	bl	get_page
	str	r0, [fp, #-64]
	ldr	r0, [fp, #-112]
	bl	get_large_object_payload
	str	r0, [fp, #-60]
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-104]
	add	r3, r2, r3
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-92]
	mvn	r3, r3
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	mov	r0, r3
	bl	get_page
	mov	r2, r0
	ldr	r3, [fp, #-64]
	cmp	r3, r2
	bne	.L87
	ldr	r3, [fp, #-56]
	mov	r1, #256
	mov	r0, r3
	bl	align
	mov	r2, r0
	ldr	r3, [fp, #-56]
	cmp	r2, r3
	beq	.L88
	.inst	0xe7f000f0
.L87:
	ldr	r3, [fp, #-120]
	ldr	r2, .L100+8
	cmp	r3, r2
	bhi	.L89
	ldr	r3, [fp, #-56]
	mov	r1, #65536
	mov	r0, r3
	bl	align
	mov	r2, r0
	ldr	r3, [fp, #-56]
	cmp	r2, r3
	beq	.L90
	.inst	0xe7f000f0
.L90:
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	rsb	r3, r3, #65536
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-112]
	str	r3, [fp, #-40]
	ldr	r0, [fp, #-60]
	bl	get_chunk_index
	mov	r3, r0
	mov	r2, #254
	mov	r1, r3
	ldr	r0, [fp, #-64]
	bl	allocate_chunk
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-44]
	str	r2, [r3, #4]
	ldr	r3, .L100+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	str	r2, [r3]
	ldr	r2, .L100+4
	ldr	r3, [fp, #-40]
	str	r3, [r2]
	bl	maybe_repurpose_single_chunk_large_objects_head
	ldr	r3, [fp, #-64]
	add	r3, r3, #65536
	str	r3, [fp, #-36]
	mov	r2, #255
	mov	r1, #1
	ldr	r0, [fp, #-36]
	bl	allocate_chunk
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-112]
	ldr	r2, [fp, #-104]
	ldr	r3, [fp, #-44]
	sub	r3, r2, r3
	sub	r3, r3, #264
	str	r3, [fp, #-104]
	ldr	r3, [fp, #-112]
	ldr	r2, [fp, #-104]
	str	r2, [r3, #4]
	ldr	r2, [fp, #-104]
	ldr	r3, [fp, #-120]
	cmp	r2, r3
	bcs	.L91
	.inst	0xe7f000f0
.L91:
	ldr	r0, [fp, #-112]
	bl	get_large_object_payload
	str	r0, [fp, #-60]
	ldr	r2, [fp, #-104]
	ldr	r3, [fp, #-120]
	sub	r3, r2, r3
	bic	r3, r3, #255
	str	r3, [fp, #-92]
	b	.L88
.L89:
	ldr	r3, [fp, #-56]
	mov	r1, #65536
	mov	r0, r3
	bl	align
	mov	r2, r0
	ldr	r3, [fp, #-56]
	cmp	r2, r3
	beq	.L92
	.inst	0xe7f000f0
.L92:
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	rsb	r3, r3, #65536
	str	r3, [fp, #-52]
	ldr	r2, [fp, #-120]
	ldr	r3, [fp, #-52]
	sub	r3, r2, r3
	mov	r1, #65536
	mov	r0, r3
	bl	align
	str	r0, [fp, #-48]
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-48]
	add	r3, r2, r3
	str	r3, [fp, #-120]
	ldr	r2, [fp, #-104]
	ldr	r3, [fp, #-120]
	sub	r3, r2, r3
	str	r3, [fp, #-92]
.L88:
	ldr	r3, [fp, #-112]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-92]
	sub	r2, r2, r3
	ldr	r3, [fp, #-112]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-92]
	rsb	r3, r3, #0
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	mov	r0, r3
	bl	get_chunk_index
	str	r0, [fp, #-88]
	b	.L93
.L95:
	ldr	r3, [fp, #-92]
	sub	r3, r3, #256
	str	r3, [fp, #-92]
	ldr	r3, [fp, #-88]
	add	r3, r3, #1
	str	r3, [fp, #-88]
.L93:
	ldr	r3, [fp, #-88]
	cmp	r3, #0
	bne	.L94
	ldr	r3, [fp, #-92]
	cmp	r3, #0
	bne	.L95
.L94:
	ldr	r3, [fp, #-92]
	cmp	r3, #0
	beq	.L86
	ldr	r3, [fp, #-92]
	rsb	r3, r3, #0
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	mov	r0, r3
	bl	get_page
	str	r0, [fp, #-28]
	mov	r2, #254
	ldr	r1, [fp, #-88]
	ldr	r0, [fp, #-28]
	bl	allocate_chunk
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-20]
	ldr	r3, .L100+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	str	r2, [r3]
	ldr	r3, [fp, #-92]
	sub	r2, r3, #8
	ldr	r3, [fp, #-20]
	str	r2, [r3, #4]
	ldr	r0, [fp, #-20]
	bl	get_large_object_payload
	mov	r2, r0
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	add	r3, r2, r3
	mov	r4, r3
	ldr	r0, [fp, #-20]
	bl	get_large_object_payload
	mov	r2, r0
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	add	r3, r2, r3
	mov	r1, #256
	mov	r0, r3
	bl	align
	mov	r3, r0
	cmp	r4, r3
	beq	.L96
	.inst	0xe7f000f0
.L96:
	ldr	r2, .L100+4
	ldr	r3, [fp, #-20]
	str	r3, [r2]
	bl	maybe_repurpose_single_chunk_large_objects_head
.L86:
	ldr	r0, [fp, #-112]
	bl	get_large_object_payload
	mov	r2, r0
	ldr	r3, [fp, #-112]
	ldr	r3, [r3, #4]
	add	r3, r2, r3
	mov	r4, r3
	ldr	r0, [fp, #-112]
	bl	get_large_object_payload
	mov	r2, r0
	ldr	r3, [fp, #-112]
	ldr	r3, [r3, #4]
	add	r3, r2, r3
	mov	r1, #256
	mov	r0, r3
	bl	align
	mov	r3, r0
	cmp	r4, r3
	beq	.L97
	.inst	0xe7f000f0
.L97:
	ldr	r3, [fp, #-112]
.L84:
	ldr	r2, .L100
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L98
	bl	__stack_chk_fail
.L98:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L101:
	.align	2
.L100:
	.word	.LC0
	.word	large_objects
	.word	65271
	.size	allocate_large_object, .-allocate_large_object
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	obtain_small_objects, %function
obtain_small_objects:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #44
	str	r0, [fp, #-48]
	ldr	r3, .L108
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L103
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	str	r2, [r3]
	b	.L104
.L103:
	mov	r0, #0
	bl	allocate_large_object
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bne	.L104
	mov	r3, #0
	b	.L105
.L104:
	ldr	r0, [fp, #-44]
	bl	get_page
	mov	r4, r0
	ldr	r0, [fp, #-44]
	bl	get_chunk_index
	mov	r3, r0
	ldr	r2, [fp, #-48]
	mov	r1, r3
	mov	r0, r4
	bl	allocate_chunk
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	add	r3, r3, #256
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-40]
	ldr	r0, [fp, #-48]
	bl	chunk_kind_to_granules
	mov	r3, r0
	lsl	r3, r3, #3
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-36]
	b	.L106
.L107:
	ldr	r3, [fp, #-36]
	rsb	r3, r3, #0
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-40]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-40]
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	str	r3, [fp, #-36]
.L106:
	ldr	r3, [fp, #-36]
	cmp	r3, #256
	bls	.L107
	ldr	r3, [fp, #-40]
.L105:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L109:
	.align	2
.L108:
	.word	small_object_freelists+36
	.size	obtain_small_objects, .-obtain_small_objects
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	size_to_granules, %function
size_to_granules:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	add	r3, r3, #7
	lsr	r3, r3, #3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	size_to_granules, .-size_to_granules
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_small_object_freelist, %function
get_small_object_freelist:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #9
	bls	.L113
	.inst	0xe7f000f0
.L113:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, .L115
	add	r3, r3, r2
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L116:
	.align	2
.L115:
	.word	small_object_freelists
	.size	get_small_object_freelist, .-get_small_object_freelist
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	allocate_small, %function
allocate_small:
	@ 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	get_small_object_freelist
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L118
	ldr	r0, [fp, #-24]
	bl	obtain_small_objects
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L119
	mov	r3, #0
	b	.L120
.L119:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	str	r2, [r3]
.L118:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
.L120:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	allocate_small, .-allocate_small
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	allocate_large, %function
allocate_large:
	@ 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	allocate_large_object
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L122
	ldr	r0, [fp, #-8]
	bl	get_large_object_payload
	mov	r3, r0
	b	.L124
.L122:
	mov	r3, #0
.L124:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	allocate_large, .-allocate_large
	.align	2
	.global	malloc
	.syntax unified
	.arm
	.fpu softvfp
	.type	malloc, %function
malloc:
	@ 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	size_to_granules
	str	r0, [fp, #-12]
	ldr	r0, [fp, #-12]
	bl	granules_to_chunk_kind
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #255
	bne	.L126
	ldr	r0, [fp, #-16]
	bl	allocate_large
	mov	r3, r0
	b	.L128
.L126:
	ldr	r0, [fp, #-8]
	bl	allocate_small
	mov	r3, r0
.L128:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	malloc, .-malloc
	.align	2
	.global	free
	.syntax unified
	.arm
	.fpu softvfp
	.type	free, %function
free:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L133
	ldr	r0, [fp, #-40]
	bl	get_page
	str	r0, [fp, #-28]
	ldr	r0, [fp, #-40]
	bl	get_chunk_index
	str	r0, [fp, #-24]
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]
	strb	r3, [fp, #-29]
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #255
	bne	.L132
	ldr	r0, [fp, #-40]
	bl	get_large_object
	str	r0, [fp, #-8]
	ldr	r3, .L134
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	ldr	r2, .L134
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	mov	r2, #254
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-28]
	bl	allocate_chunk
	ldr	r3, .L134+4
	mov	r2, #1
	str	r2, [r3]
	b	.L129
.L132:
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	str	r3, [fp, #-20]
	ldr	r0, [fp, #-20]
	bl	get_small_object_freelist
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	b	.L129
.L133:
	nop
.L129:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L135:
	.align	2
.L134:
	.word	large_objects
	.word	pending_large_object_compact
	.size	free, .-free
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
