LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/bluesky466[P]ResourcesParser/ResourcesParser.cpp
// Function: ResourcesParser::parserEntryPool(std::basic_ifstream<char, std::char_traits<char>>&, unsigned int, unsigned int, unsigned int)
ResourcesParser::EntryPool ResourcesParser::parserEntryPool(
			ifstream& resources,
			uint32_t entryCount,
			uint32_t dataStart,
			uint32_t dataSize) {
	EntryPool pool;
	pool.pOffsets = shared_ptr<uint32_t>(
			new uint32_t[entryCount],
			default_delete<uint32_t[]>()
	);

	const uint32_t offsetSize = sizeof(uint32_t) * entryCount;
	resources.read((char*)pool.pOffsets.get(), offsetSize);

	pool.offsetCount = entryCount;
	pool.dataSize = dataSize;

	resources.seekg(dataStart - offsetSize, ios::cur);

	pool.pData = shared_ptr<byte>(
			new byte[pool.dataSize],
			default_delete<byte[]>()
	);
	resources.read((char*)pool.pData.get(), pool.dataSize);
	return pool;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r9d, -0x2c(%rbp)
movl %r8d, %r15d
movl %ecx, %r13d
movq %rdx, %r14
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rdi)
movups %xmm0, (%rdi)
movl %ecx, %edi
shlq $0x2, %rdi
callq 0x3030
leaq -0x40(%rbp), %rdi
movq %rax, %rsi
callq 0x72fe
leaq -0x40(%rbp), %rsi
movq %rbx, %rdi
callq 0x7482
leaq -0x38(%rbp), %rdi
callq 0x3ac4
leal (,%r13,4), %r12d
movq (%rbx), %rsi
movq %r14, %rdi
movq %r12, %rdx
callq 0x3230
movl %r13d, 0x24(%rbx)
movl -0x2c(%rbp), %eax
movl %eax, 0x20(%rbx)
subl %r12d, %r15d
pushq $0x1
popq %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0x3260
movl 0x20(%rbx), %edi
callq 0x3030
leaq -0x40(%rbp), %rdi
movq %rax, %rsi
callq 0x74bc
leaq 0x10(%rbx), %rdi
leaq -0x40(%rbp), %rsi
callq 0x7646
leaq -0x38(%rbp), %rdi
callq 0x3ac4
movq 0x10(%rbx), %rsi
movl 0x20(%rbx), %edx
movq %r14, %rdi
callq 0x3230
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x5f41
jmp 0x5f41
movq %rax, %r14
movq %rbx, %rdi
callq 0x63f0
movq %r14, %rdi
callq 0x3340
// File: /workspace/github_cpp_makefile_star2_O2/bluesky466[P]ResourcesParser/ResourcesParser.cpp
// Function: ResourcesParser::getEntryFromEntryPool(ResourcesParser::EntryPool, unsigned int)
ResTable_entry* ResourcesParser::getEntryFromEntryPool(EntryPool pool, uint32_t index) {
	if(index >= pool.offsetCount) {
		return nullptr;
	}
	uint32_t offset = *(pool.pOffsets.get() + index);
	if(offset == ResTable_type::NO_ENTRY) {
		return nullptr;
	}
	return ((ResTable_entry*)(pool.pData.get() + offset));
}

// Assembly:
cmpl %edx, 0x24(%rsi)
jbe 0x5f75
pushq %rbp
movq %rsp, %rbp
movq (%rsi), %rax
movl %edx, %ecx
movl (%rax,%rcx,4), %eax
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
cmpq %rcx, %rax
je 0x5f78
addq 0x10(%rsi), %rax
jmp 0x5f7a
xorl %eax, %eax
retq
xorl %eax, %eax
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/bluesky466[P]ResourcesParser/ResourcesParser.cpp
// Function: ResourcesParser::getPackageResouceForId(unsigned int) const
ResourcesParser::PackageResourcePtr ResourcesParser::getPackageResouceForId(uint32_t id) const {
	uint32_t packageId = (id >> 24);
	auto it = mResourceForId.find(packageId);
	if(it==mResourceForId.end()) {
		return nullptr;
	}
	return it->second;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r14
movq %rdi, %rbx
shrl $0x18, %edx
leaq -0x14(%rbp), %rsi
movl %edx, (%rsi)
leaq 0x50(%r14), %rdi
callq 0x811e
addq $0x58, %r14
cmpq %r14, %rax
je 0x5fd1
addq $0x28, %rax
movq %rbx, %rdi
movq %rax, %rsi
callq 0x4a0a
jmp 0x5fd7
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/bluesky466[P]ResourcesParser/ResourcesParser.cpp
// Function: ResourcesParser::getResTableTypesForId(unsigned int)
vector<ResourcesParser::ResTableTypePtr> ResourcesParser::getResTableTypesForId(uint32_t id) {
	PackageResourcePtr pPackage = getPackageResouceForId(id);
	if(pPackage == nullptr) {
		return vector<ResTableTypePtr>();
	}
	return pPackage->resTablePtrs[TYPE_ID(id)];
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movl %edx, %r14d
movq %rdi, %rbx
leaq -0x30(%rbp), %r15
movq %r15, %rdi
callq 0x5f94
movq (%r15), %rdi
testq %rdi, %rdi
je 0x6032
addq $0x140, %rdi            # imm = 0x140
shrl $0x10, %r14d
movzbl %r14b, %eax
leaq -0x1c(%rbp), %rsi
movl %eax, (%rsi)
callq 0x4882
movq %rbx, %rdi
movq %rax, %rsi
callq 0x64c4
jmp 0x603d
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
andq $0x0, 0x10(%rbx)
leaq -0x28(%rbp), %rdi
callq 0x3ac4
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x28(%rbp), %rdi
callq 0x3ac4
movq %rbx, %rdi
callq 0x3340
// File: /workspace/github_cpp_makefile_star2_O2/bluesky466[P]ResourcesParser/ResourcesParser.cpp
// Function: ResourcesParser::getNameForResTableMap[abi:cxx11](ResTable_ref const&) const
string ResourcesParser::getNameForResTableMap(const ResTable_ref& ref) const {
	switch(ref.ident) {
		case ResTable_map::ATTR_TYPE:
			return "ATTR_TYPE";
        case ResTable_map::ATTR_MIN:
			return "ATTR_MIN";
		case ResTable_map::ATTR_MAX:
			return "ATTR_MAX";
		case ResTable_map::ATTR_L10N:
			return "ATTR_L10N";
       	case ResTable_map::ATTR_OTHER:
			return "ATTR_OTHER";
       	case ResTable_map::ATTR_ZERO:
			return "ATTR_ZERO";
       	case ResTable_map::ATTR_ONE:
			return "ATTR_ONE";
       	case ResTable_map::ATTR_TWO:
			return "ATTR_TWO";
       	case ResTable_map::ATTR_FEW:
			return "ATTR_FEW";
       	case ResTable_map::ATTR_MANY:
			return "ATTR_MANY";
		default:
			return getNameForId(ref.ident);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movl (%rdx), %edx
leal -0x1000000(%rdx), %eax
cmpl $0x9, %eax
ja 0x610a
leaq 0x40e8(%rip), %rcx      # 0xa174
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x425a(%rip), %rsi      # 0xa2f6
leaq -0x12(%rbp), %rdx
jmp 0x611f
leaq 0x4273(%rip), %rsi      # 0xa31c
leaq -0xe(%rbp), %rdx
jmp 0x611f
leaq 0x4296(%rip), %rsi      # 0xa34c
leaq -0x9(%rbp), %rdx
jmp 0x611f
leaq 0x4246(%rip), %rsi      # 0xa309
leaq -0x10(%rbp), %rdx
jmp 0x611f
leaq 0x4242(%rip), %rsi      # 0xa312
leaq -0xf(%rbp), %rdx
jmp 0x611f
leaq 0x425d(%rip), %rsi      # 0xa33a
leaq -0xb(%rbp), %rdx
jmp 0x611f
leaq 0x4216(%rip), %rsi      # 0xa300
leaq -0x11(%rbp), %rdx
jmp 0x611f
leaq 0x4230(%rip), %rsi      # 0xa327
leaq -0xd(%rbp), %rdx
jmp 0x611f
leaq 0x422d(%rip), %rsi      # 0xa331
leaq -0xc(%rbp), %rdx
jmp 0x611f
movq %rbx, %rdi
callq 0x51de
jmp 0x6127
leaq 0x4228(%rip), %rsi      # 0xa343
leaq -0xa(%rbp), %rdx
movq %rbx, %rdi
callq 0x3090
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/bluesky466[P]ResourcesParser/ResourcesParser.cpp
// Function: ResourcesParser::getValueTypeForResTableMap[abi:cxx11](Res_value const&) const
string ResourcesParser::getValueTypeForResTableMap(const Res_value& value) const {
	switch(value.data) {
		case ResTable_map::TYPE_ANY:
			return "any";
		case ResTable_map::TYPE_REFERENCE:
			return "reference";
		case ResTable_map::TYPE_STRING:
			return "string";
		case ResTable_map::TYPE_INTEGER:
			return "integer";
		case ResTable_map::TYPE_BOOLEAN:
			return "boolean";
		case ResTable_map::TYPE_COLOR:
			return "color";
		case ResTable_map::TYPE_FLOAT:
			return "float";
		case ResTable_map::TYPE_DIMENSION:
			return "dimension";
		case ResTable_map::TYPE_FRACTION:
			return "fraction";
		case ResTable_map::TYPE_ENUM:
			return "enum";
		case ResTable_map::TYPE_FLAGS:
			return "flags";
		default:
			return "unknown";
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movl 0x4(%rdx), %eax
leal -0x1(%rax), %ecx
cmpl $0x7, %ecx
jbe 0x61b0
cmpl $0x10, %eax
je 0x621e
cmpl $0x20, %eax
je 0x6245
cmpl $0x40, %eax
je 0x6204
cmpl $0x80, %eax
je 0x6211
cmpl $0x20000, %eax          # imm = 0x20000
je 0x622b
cmpl $0x10000, %eax          # imm = 0x10000
je 0x6238
cmpl $0xffff, %eax           # imm = 0xFFFF
jne 0x61d0
leaq 0x41af(%rip), %rsi      # 0xa356
leaq -0x14(%rbp), %rdx
jmp 0x6250
leaq 0x3fe5(%rip), %rax      # 0xa19c
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
leaq 0x4193(%rip), %rsi      # 0xa35a
leaq -0x13(%rbp), %rdx
jmp 0x6250
leaq 0x41b9(%rip), %rsi      # 0xa390
leaq -0x9(%rbp), %rdx
jmp 0x6250
leaq 0x3f2e(%rip), %rsi      # 0xa112
leaq -0x11(%rbp), %rdx
jmp 0x6250
leaq 0x3f0e(%rip), %rsi      # 0xa0ff
leaq -0x12(%rbp), %rdx
jmp 0x6250
leaq 0x4166(%rip), %rsi      # 0xa364
leaq -0x10(%rbp), %rdx
jmp 0x6250
leaq 0x4167(%rip), %rsi      # 0xa372
leaq -0xd(%rbp), %rdx
jmp 0x6250
leaq 0x4164(%rip), %rsi      # 0xa37c
leaq -0xc(%rbp), %rdx
jmp 0x6250
leaq 0x3ee7(%rip), %rsi      # 0xa10c
leaq -0xf(%rbp), %rdx
jmp 0x6250
leaq 0x4158(%rip), %rsi      # 0xa38a
leaq -0xa(%rbp), %rdx
jmp 0x6250
leaq 0x4146(%rip), %rsi      # 0xa385
leaq -0xb(%rbp), %rdx
jmp 0x6250
leaq 0x4120(%rip), %rsi      # 0xa36c
leaq -0xe(%rbp), %rdx
movq %rbx, %rdi
callq 0x3090
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/gtonkinhill[P]pairsnp-cpp/src/main.cpp
// Function: show_help(int)
void show_help(int retcode)
{
  FILE* out = (retcode == EXIT_SUCCESS ? stdout : stderr);
  fprintf(out, "SYNOPSIS\n  Fast pairwise SNP distance matrices\n");
  fprintf(out, "USAGE\n  %s [options] alignment.fasta[.gz] > matrix.csv\n", EXENAME);
  fprintf(out, "OPTIONS\n");
  fprintf(out, "  -h\tShow this help\n");
  fprintf(out, "  -v\tPrint version and exit\n");
  fprintf(out, "  -s\tOutput in sparse matrix form (i,j,distance).\n");
  fprintf(out, "  -d\tDistance threshold for sparse output. Only distances <= d will be returned.\n");
  fprintf(out, "  -k\tWill on return the k nearest neighbours for each sample in sparse output.\n");
  fprintf(out, "  -c\tOutput CSV instead of TSV\n");
  fprintf(out, "  -i\tOutput sequence index inplace of header (useful for downstream processing)\n");
  fprintf(out, "  -t\tNumber of threads to use (default=1)\n");
  exit(retcode);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %edi, %ebx
testl %edi, %edi
jne 0x2400
movq 0x5ba2(%rip), %rax      # 0x7fa0
jmp 0x2407
movq 0x5bc1(%rip), %rax      # 0x7fc8
movq (%rax), %r14
leaq 0x2cdf(%rip), %rdi      # 0x50f0
pushq $0x2f
popq %rsi
pushq $0x1
popq %r15
movq %r15, %rdx
movq %r14, %rcx
callq 0x22b0
leaq 0x2cf6(%rip), %rsi      # 0x5120
leaq 0x2d27(%rip), %rdx      # 0x5158
movq %r14, %rdi
xorl %eax, %eax
callq 0x21e0
leaq 0x2d1e(%rip), %rdi      # 0x5160
pushq $0x8
popq %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x22b0
leaq 0x2d12(%rip), %rdi      # 0x5169
pushq $0x14
popq %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x22b0
leaq 0x2d12(%rip), %rdi      # 0x517e
pushq $0x1c
popq %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x22b0
leaq 0x2d1a(%rip), %rdi      # 0x519b
pushq $0x32
popq %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x22b0
leaq 0x2d38(%rip), %rdi      # 0x51ce
pushq $0x51
popq %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x22b0
leaq 0x2d75(%rip), %rdi      # 0x5220
pushq $0x4f
popq %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x22b0
leaq 0x2db0(%rip), %rdi      # 0x5270
pushq $0x1f
popq %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x22b0
leaq 0x2dbb(%rip), %rdi      # 0x5290
pushq $0x50
popq %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x22b0
leaq 0x2df7(%rip), %rdi      # 0x52e1
pushq $0x2a
popq %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x22b0
movl %ebx, %edi
callq 0x21a0
// File: /workspace/github_cpp_makefile_star2_O2/gtonkinhill[P]pairsnp-cpp/libs/boost/dynamic_bitset/dynamic_bitset.hpp
// Function: boost::dynamic_bitset<unsigned long, std::allocator<unsigned long>>::operator=(boost::dynamic_bitset<unsigned long, std::allocator<unsigned long>>&&)
inline dynamic_bitset<Block, Allocator>& dynamic_bitset<Block, Allocator>::
operator=(dynamic_bitset<Block, Allocator>&& b)
{
    if (boost::addressof(b) == this) { return *this; }

    m_bits = boost::move(b.m_bits);
    m_num_bits = boost::move(b.m_num_bits);
    // Required so that assert(m_check_invariants()); works.
    assert((b.m_bits = buffer_type()).empty());
    b.m_num_bits = 0;
    return *this;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
cmpq %rdi, %rsi
je 0x36aa
movq %rsi, %r14
movq %rbx, %rdi
callq 0x4262
movq 0x18(%r14), %rax
movq %rax, 0x18(%rbx)
xorps %xmm0, %xmm0
movq %rsp, %rsi
movaps %xmm0, (%rsi)
andq $0x0, 0x10(%rsi)
movq %r14, %rdi
callq 0x4262
movq (%r14), %rax
cmpq 0x8(%r14), %rax
jne 0x36b5
movq %rsp, %rdi
callq 0x3d76
andq $0x0, 0x18(%r14)
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r14
retq
leaq 0x2121(%rip), %rdi      # 0x57dd
leaq 0x1d7e(%rip), %rsi      # 0x5441
leaq 0x2136(%rip), %rcx      # 0x5800
movl $0x2e7, %edx            # imm = 0x2E7
callq 0x20d0
// File: /workspace/github_cpp_makefile_star2_O2/gtonkinhill[P]pairsnp-cpp/libs/boost/dynamic_bitset/dynamic_bitset.hpp
// Function: boost::dynamic_bitset<unsigned long, std::allocator<unsigned long>>::operator|=(boost::dynamic_bitset<unsigned long, std::allocator<unsigned long>> const&)
dynamic_bitset<Block, Allocator>&
dynamic_bitset<Block, Allocator>::operator|=(const dynamic_bitset& rhs)
{
    assert(size() == rhs.size());
    for (size_type i = 0; i < num_blocks(); ++i)
        m_bits[i] |= rhs.m_bits[i];
    //m_zero_unused_bits();
    return *this;
}

// Assembly:
pushq %rax
movq 0x18(%rdi), %rax
cmpq 0x18(%rsi), %rax
jne 0x3709
movq (%rdi), %rax
movq 0x8(%rdi), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
movq (%rsi), %rdx
xorl %esi, %esi
cmpq %rsi, %rcx
je 0x3704
movq (%rdx,%rsi,8), %r8
orq %r8, (%rax,%rsi,8)
incq %rsi
jmp 0x36f2
movq %rdi, %rax
popq %rcx
retq
leaq 0x2005(%rip), %rdi      # 0x5715
leaq 0x1d2a(%rip), %rsi      # 0x5441
leaq 0x218f(%rip), %rcx      # 0x58ad
movl $0x369, %edx            # imm = 0x369
callq 0x20d0
// File: /workspace/github_cpp_makefile_star2_O2/gtonkinhill[P]pairsnp-cpp/libs/boost/dynamic_bitset/dynamic_bitset.hpp
// Function: boost::dynamic_bitset<unsigned long, std::allocator<unsigned long>>::m_check_invariants() const
bool dynamic_bitset<Block, Allocator>::m_check_invariants() const
{
    const block_width_type extra_bits = count_extra_bits();
    if (extra_bits > 0) {
        const block_type mask = detail::dynamic_bitset_impl::max_limit<Block>::value << extra_bits;
        if ((m_highest_block() & mask) != 0)
            return false;
    }
    if (m_bits.size() > m_bits.capacity() || num_blocks() != calc_num_blocks(size()))
        return false;

    return true;

}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x18(%rdi), %r14
andq $0x3f, %r14
je 0x3dbb
movq %rbx, %rdi
callq 0x3dfe
movq (%rax), %rax
movl %r14d, %ecx
shrq %cl, %rax
testq %rax, %rax
jne 0x3dd1
movq (%rbx), %rcx
movq 0x8(%rbx), %rax
subq %rcx, %rax
movq 0x10(%rbx), %rdx
subq %rcx, %rdx
cmpq %rdx, %rax
jbe 0x3dd5
xorl %eax, %eax
jmp 0x3df5
sarq $0x3, %rax
movq 0x18(%rbx), %rcx
movq %rcx, %rdx
shrq $0x6, %rdx
andl $0x3f, %ecx
cmpq $0x1, %rcx
sbbq $-0x1, %rdx
cmpq %rdx, %rax
sete %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/gtonkinhill[P]pairsnp-cpp/libs/boost/dynamic_bitset/dynamic_bitset.hpp
// Function: boost::dynamic_bitset<unsigned long, std::allocator<unsigned long>>::operator&=(boost::dynamic_bitset<unsigned long, std::allocator<unsigned long>> const&)
dynamic_bitset<Block, Allocator>&
dynamic_bitset<Block, Allocator>::operator&=(const dynamic_bitset& rhs)
{
    assert(size() == rhs.size());
    for (size_type i = 0; i < num_blocks(); ++i)
        m_bits[i] &= rhs.m_bits[i];
    return *this;
}

// Assembly:
pushq %rax
movq 0x18(%rdi), %rax
cmpq 0x18(%rsi), %rax
jne 0x4243
movq (%rdi), %rax
movq 0x8(%rdi), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
movq (%rsi), %rdx
xorl %esi, %esi
cmpq %rsi, %rcx
je 0x423e
movq (%rdx,%rsi,8), %r8
andq %r8, (%rax,%rsi,8)
incq %rsi
jmp 0x422c
movq %rdi, %rax
popq %rcx
retq
leaq 0x14cb(%rip), %rdi      # 0x5715
leaq 0x11f0(%rip), %rsi      # 0x5441
leaq 0x14d2(%rip), %rcx      # 0x572a
movl $0x35f, %edx            # imm = 0x35F
callq 0x20d0
// File: /workspace/github_cpp_makefile_star2_O2/gtonkinhill[P]pairsnp-cpp/libs/boost/dynamic_bitset/detail/dynamic_bitset.hpp
// Function: unsigned long boost::detail::dynamic_bitset_impl::do_count<__gnu_cxx::__normal_iterator<unsigned long const*, std::vector<unsigned long, std::allocator<unsigned long>>>, unsigned long>(__gnu_cxx::__normal_iterator<unsigned long const*, std::vector<unsigned long, std::allocator<unsigned long>>>, unsigned long, unsigned long, boost::detail::dynamic_bitset_impl::value_to_type<false>*)
inline std::size_t do_count(Iterator first, std::size_t length, ValueType,
                                value_to_type<access_by_blocks>*)
    {
        std::size_t num1 = 0u, num2 = 0u;
        while (length >= 2u) {
            num1 += popcount<ValueType>(*first);
            ++first;
            num2 += popcount<ValueType>(*first);
            ++first;
            length -= 2u;
        }

        if (length > 0u)
            num1 += popcount<ValueType>(*first);

        return num1 + num2;
    }

// Assembly:
pxor %xmm1, %xmm1
movdqa 0xe01(%rip), %xmm2      # 0x50c0
movdqa 0xe09(%rip), %xmm3      # 0x50d0
movdqa 0xe11(%rip), %xmm4      # 0x50e0
pxor %xmm0, %xmm0
cmpq $0x2, %rsi
jb 0x4326
movdqu (%rdi), %xmm5
movdqa %xmm5, %xmm6
psrlw $0x1, %xmm6
pand %xmm2, %xmm6
psubb %xmm6, %xmm5
movdqa %xmm5, %xmm6
pand %xmm3, %xmm6
psrlw $0x2, %xmm5
pand %xmm3, %xmm5
paddb %xmm6, %xmm5
movdqa %xmm5, %xmm6
psrlw $0x4, %xmm6
paddb %xmm5, %xmm6
pand %xmm4, %xmm6
psadbw %xmm1, %xmm6
paddq %xmm6, %xmm0
addq $0x10, %rdi
addq $-0x2, %rsi
jmp 0x42d3
movq %xmm0, %rcx
cmpq $0x1, %rsi
jne 0x4390
movq (%rdi), %rax
movq %rax, %rdx
shrq %rdx
movabsq $0x5555555555555555, %rsi # imm = 0x5555555555555555
andq %rdx, %rsi
subq %rsi, %rax
movabsq $0x3333333333333333, %rdx # imm = 0x3333333333333333
movq %rax, %rsi
andq %rdx, %rsi
shrq $0x2, %rax
andq %rdx, %rax
addq %rsi, %rax
movq %rax, %rdx
shrq $0x4, %rdx
addq %rax, %rdx
movabsq $0xf0f0f0f0f0f0f0f, %rax # imm = 0xF0F0F0F0F0F0F0F
andq %rdx, %rax
movabsq $0x101010101010101, %rdx # imm = 0x101010101010101
imulq %rax, %rdx
shrq $0x38, %rdx
addq %rdx, %rcx
pshufd $0xee, %xmm0, %xmm0     # xmm0 = xmm0[2,3,2,3]
movq %xmm0, %rax
addq %rcx, %rax
retq
// File: /workspace/github_cpp_makefile_star2_O2/johan-bjareholt[P]lua-compiler/src/main.cc
// Function: parse_flags(int, char**)
void parse_flags(int argc, char** argv){
	for (int i=1; i<argc; i++){
        if (argv[i][0] == '-'){
            switch (argv[i][1]){
                case 'o':
                    i++;
                    output_mode = OUTPUT_FILE;
                    output_filename = argv[i];
                    break;
                case 'd':
                    debug_lex = true;
                    debug_grammar = true;
                    debug_cfg = true;
                    break;
                default:
                    std::cout << "Unknown option -"<< argv[i][1] << std::endl;
                    exit(1);
                    break;
            } 
        }
        else
		    set_input_file(argv[i]);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movl %edi, %r14d
pushq $0x1
popq %r12
movb $0x1, %r13b
cmpl %r14d, %r12d
jge 0x462c
movslq %r12d, %r15
movq (%rbx,%r15,8), %rdi
cmpb $0x2d, (%rdi)
jne 0x460b
movzbl 0x1(%rdi), %eax
cmpl $0x64, %eax
je 0x4612
cmpl $0x6f, %eax
jne 0x463b
incl %r12d
movl $0x1, 0x17cc8(%rip)     # 0x1c2c0
movq 0x8(%rbx,%r15,8), %rsi
leaq 0x17cc4(%rip), %rdi     # 0x1c2c8
callq 0x3410
jmp 0x4627
callq 0x10be2
jmp 0x4627
movb %r13b, 0x17c7f(%rip)    # 0x1c298
movb %r13b, 0x17c79(%rip)    # 0x1c299
movb %r13b, 0x17c73(%rip)    # 0x1c29a
incl %r12d
jmp 0x45cc
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x17986(%rip), %rdi     # 0x1bfc8
leaq 0xd9ee(%rip), %rsi      # 0x12037
callq 0x31f0
movq (%rbx,%r15,8), %rcx
movsbl 0x1(%rcx), %esi
movq %rax, %rdi
callq 0x3270
movq %rax, %rdi
callq 0x3100
pushq $0x1
popq %rdi
callq 0x32a0
// File: /workspace/github_cpp_makefile_star2_O2/johan-bjareholt[P]lua-compiler/src/ir.cc
// Function: BBlock::dump(std::ostream&)
void BBlock::dump(std::ostream& ss)
{
    ss << "BBlock " << " @ " << this << endl;
    for(auto i : instructions)
        i.dump(ss);
    ss << "True: " << trueExit << endl;
    ss << "False: " << falseExit << endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x70, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0xd758(%rip), %rsi      # 0x120a2
movq %r14, %rdi
callq 0x31f0
leaq 0xd751(%rip), %rsi      # 0x120aa
movq %rax, %rdi
callq 0x31f0
movq %rax, %rdi
movq %rbx, %rsi
callq 0x31a0
movq %rax, %rdi
callq 0x3100
leaq -0x88(%rbp), %r15
movq %rbx, %r12
movq (%r12), %r12
cmpq %rbx, %r12
je 0x49a9
leaq 0x10(%r12), %rsi
movq %r15, %rdi
callq 0x68fe
movq %r15, %rdi
movq %r14, %rsi
callq 0x488c
movq %r15, %rdi
callq 0x6970
jmp 0x497e
leaq 0xd6fe(%rip), %rsi      # 0x120ae
movq %r14, %rdi
callq 0x31f0
movq 0x18(%rbx), %rsi
movq %rax, %rdi
callq 0x31a0
movq %rax, %rdi
callq 0x3100
leaq 0xd6e2(%rip), %rsi      # 0x120b5
movq %r14, %rdi
callq 0x31f0
movq 0x20(%rbx), %rsi
movq %rax, %rdi
callq 0x31a0
movq %rax, %rdi
callq 0x3100
addq $0x70, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x88(%rbp), %rdi
callq 0x6970
movq %rbx, %rdi
callq 0x33f0
// File: /workspace/github_cpp_makefile_star2_O2/johan-bjareholt[P]lua-compiler/src/ir.cc
// Function: dumpDot(std::ostream&, std::__cxx11::list<BBlock*, std::allocator<BBlock*>>)
void dumpDot(std::ostream& ss, std::list<BBlock*> startblocks){
    traversed_blocks = std::set<BBlock*>();
    ss << "digraph {" << std::endl;
    ss << "size=\"6,6\";" << std::endl;
    ss << "node [color=lightblue, style=filled];" << std::endl;

    for (BBlock* block : startblocks){
        block->dumpDot(ss);
    }
    
    ss << "}" << std::endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x38, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq -0x48(%rbp), %rax
xorps %xmm0, %xmm0
movaps %xmm0, -0x8(%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
andq $0x0, 0x20(%rax)
leaq 0x178d6(%rip), %rdi     # 0x1c320
leaq -0x50(%rbp), %r15
movq %r15, %rsi
callq 0x6cd4
movq %r15, %rdi
callq 0x6c7e
leaq 0xd658(%rip), %rsi      # 0x120bd
movq %rbx, %rdi
callq 0x31f0
movq %rax, %rdi
callq 0x3100
leaq 0xd64b(%rip), %rsi      # 0x120c7
movq %rbx, %rdi
callq 0x31f0
movq %rax, %rdi
callq 0x3100
leaq 0xd640(%rip), %rsi      # 0x120d3
movq %rbx, %rdi
callq 0x31f0
movq %rax, %rdi
callq 0x3100
movq %r14, %r15
movq (%r15), %r15
cmpq %r14, %r15
je 0x4abc
movq 0x10(%r15), %rdi
movq %rbx, %rsi
callq 0x4ade
jmp 0x4aa6
leaq 0xd9ce(%rip), %rsi      # 0x12491
movq %rbx, %rdi
callq 0x31f0
movq %rax, %rdi
callq 0x3100
addq $0x38, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/johan-bjareholt[P]lua-compiler/src/ir.cc
// Function: Expression::dump(std::ostream&, int)
void Expression::dump(std::ostream& ss, int depth)
{
    for(int i=0; i<depth; i++)  
        ss << "  ";
    switch(kind)
    {
        case 'N':  ss << op    << endl; break;
        case 'V':  ss << name  << endl; break;
        case 'C':  ss << value << endl; break;
	    case 'S':  ss << name  << endl; break;
	    case 'f':  ss << name  << endl; break;
        default: std::cout << "ERROR: bad expression kind '" << kind << '\''<< endl; ss << "bad expression" << endl; break;
    }
    if(left!=NULL)
        left->dump(ss, depth+1);
    if(right!=NULL)
        right->dump(ss, depth+1);
    for (Expression* exp : subexp)
        exp->dump(ss, depth+1);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
xorl %r13d, %r13d
testl %edx, %edx
cmovgl %edx, %r13d
leaq 0xd4ed(%rip), %r12      # 0x1230f
subl $0x1, %r13d
jb 0x4e35
movq %r14, %rdi
movq %r12, %rsi
callq 0x31f0
jmp 0x4e22
movzbl 0x28(%r15), %eax
cmpl $0x43, %eax
je 0x4eb4
cmpl $0x4e, %eax
je 0x4e61
cmpl $0x53, %eax
je 0x4e53
cmpl $0x56, %eax
je 0x4e53
cmpl $0x66, %eax
jne 0x4e70
leaq 0x30(%r15), %rsi
movq %r14, %rdi
callq 0x31d0
jmp 0x4ec0
movsbl 0x29(%r15), %esi
movq %r14, %rdi
callq 0x3270
jmp 0x4ec0
movq 0x17151(%rip), %rdi     # 0x1bfc8
leaq 0xd294(%rip), %rsi      # 0x12112
callq 0x31f0
movsbl 0x28(%r15), %esi
movq %rax, %rdi
callq 0x3270
pushq $0x27
popq %rsi
movq %rax, %rdi
callq 0x3270
movq %rax, %rdi
callq 0x3100
leaq 0xd285(%rip), %rsi      # 0x1212f
movq %r14, %rdi
callq 0x31f0
jmp 0x4ec0
movl 0x2c(%r15), %esi
movq %r14, %rdi
callq 0x33d0
movq %rax, %rdi
callq 0x3100
movq (%r15), %rdi
testq %rdi, %rdi
je 0x4edb
leal 0x1(%rbx), %edx
movq %r14, %rsi
callq 0x4dfc
movq 0x8(%r15), %rdi
incl %ebx
testq %rdi, %rdi
je 0x4ef0
movq %r14, %rsi
movl %ebx, %edx
callq 0x4dfc
addq $0x10, %r15
movq %r15, %r12
movq (%r12), %r12
cmpq %r15, %r12
je 0x4f11
movq 0x10(%r12), %rdi
movq %r14, %rsi
movl %ebx, %edx
callq 0x4dfc
jmp 0x4ef7
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/johan-bjareholt[P]lua-compiler/src/ir.cc
// Function: FunctionCall(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::list<Expression*, std::allocator<Expression*>>)
Expression *FunctionCall(std::string name, std::list<Expression*> args){
    Expression *result = new Expression('f',NULL,NULL);
    result->name = name;
    result->op = 'f';
    result->subexp = args;
    return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
pushq $0x50
popq %rdi
callq 0x3200
movq %rax, %r15
leaq 0x10(%rax), %r12
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq %r12, 0x18(%rax)
movq %r12, 0x10(%rax)
andq $0x0, 0x20(%rax)
movb $0x66, %r13b
movb %r13b, 0x28(%rax)
leaq 0x30(%rax), %rdi
addq $0x40, %rax
movq %rax, 0x30(%r15)
andq $0x0, 0x38(%r15)
movb $0x0, 0x40(%r15)
movq %r14, %rsi
callq 0x3130
movb %r13b, 0x29(%r15)
movq %r12, %rdi
movq %rbx, %rsi
callq 0x69a8
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/johan-bjareholt[P]lua-compiler/src/ir.cc
// Function: Statement::dump(std::ostream&, int)
void Statement::dump(std::ostream& ss, int indent)
{
    for(int i=0; i<indent; i++)
        ss << "  ";
    ss << "Statement(" << kind << ")" << endl ;
    for( auto e: expressions ){
        e->dump(ss, indent+1);
    }
    for( auto c: children )
        c->dump(ss, indent+1);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
xorl %r13d, %r13d
testl %edx, %edx
cmovgl %edx, %r13d
leaq 0xd155(%rip), %r12      # 0x1230f
subl $0x1, %r13d
jb 0x51cd
movq %r14, %rdi
movq %r12, %rsi
callq 0x31f0
jmp 0x51ba
leaq 0xcf6a(%rip), %rsi      # 0x1213e
movq %r14, %rdi
callq 0x31f0
movsbl 0x30(%r15), %esi
movq %rax, %rdi
callq 0x3270
leaq 0xeb5f(%rip), %rsi      # 0x13d4f
movq %rax, %rdi
callq 0x31f0
movq %rax, %rdi
callq 0x3100
movq (%r15), %r12
movq 0x8(%r15), %r13
incl %ebx
cmpq %r13, %r12
je 0x5222
movq (%r12), %rdi
movq %r14, %rsi
movl %ebx, %edx
callq 0x4dfc
addq $0x8, %r12
jmp 0x5209
movq 0x18(%r15), %r12
movq 0x20(%r15), %r15
cmpq %r15, %r12
je 0x5243
movq (%r12), %rdi
movq %r14, %rsi
movl %ebx, %edx
callq 0x5194
addq $0x8, %r12
jmp 0x522a
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/johan-bjareholt[P]lua-compiler/src/ir.cc
// Function: Assign(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, Expression*)
Statement *Assign(string target, Expression *val)
{
    Statement *result = new Statement('A');
    result->expressions.push_back( Variable(target) );
    result->expressions.push_back(val);
    return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x38, %rsp
movq %rdi, %r14
movq %rsi, -0x20(%rbp)
pushq $0x38
popq %rdi
callq 0x3200
movq %rax, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x20(%rax)
movb $0x41, 0x30(%rax)
leaq -0x48(%rbp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x32f0
movq %r15, %rdi
callq 0x4fc3
leaq -0x28(%rbp), %rsi
movq %rax, (%rsi)
movq %rbx, %rdi
callq 0x735c
leaq -0x48(%rbp), %rdi
callq 0x3448
leaq -0x20(%rbp), %rsi
movq %rbx, %rdi
callq 0x69ce
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x48(%rbp), %rdi
callq 0x3448
movq %rbx, %rdi
callq 0x33f0
// File: /workspace/github_cpp_makefile_star2_O2/johan-bjareholt[P]lua-compiler/src/ir.cc
// Function: If(Expression*, Statement*, Statement*)
Statement *If(Expression *condition, Statement *trueSt, Statement *falseSt)
{
    Statement *result = new Statement('I');
    result->expressions.push_back(condition);
    result->children.push_back(trueSt);
    result->children.push_back(falseSt);
    return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
leaq -0x38(%rbp), %rbx
movq %rdi, (%rbx)
leaq -0x30(%rbp), %r14
movq %rsi, (%r14)
leaq -0x28(%rbp), %r15
movq %rdx, (%r15)
pushq $0x38
popq %rdi
callq 0x3200
movq %rax, %r12
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x20(%rax)
movb $0x49, 0x30(%rax)
movq %rax, %rdi
movq %rbx, %rsi
callq 0x69ce
leaq 0x18(%r12), %rbx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x69f2
movq %rbx, %rdi
movq %r15, %rsi
callq 0x69f2
movq %r12, %rax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/johan-bjareholt[P]lua-compiler/src/ir.cc
// Function: Seq(std::initializer_list<Statement*>)
Statement *Seq(initializer_list<Statement*> ss)
{
    Statement *result = new Statement('S');
    for(auto s : ss)
        result->children.push_back(s);
    return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq %rdi, %r14
pushq $0x38
popq %rdi
callq 0x3200
movq %rax, %r12
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x20(%rax)
movb $0x53, 0x30(%rax)
movq %rax, -0x30(%rbp)
addq $0x18, %r12
shlq $0x3, %rbx
xorl %r15d, %r15d
leaq -0x38(%rbp), %r13
cmpq %r15, %rbx
je 0x53bc
movq (%r14,%r15), %rax
movq %rax, -0x38(%rbp)
movq %r12, %rdi
movq %r13, %rsi
callq 0x69f2
addq $0x8, %r15
jmp 0x539e
movq -0x30(%rbp), %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/johan-bjareholt[P]lua-compiler/src/ir.cc
// Function: Loop(Statement*, Expression*, Statement*, Statement*)
Statement *Loop(Statement* pre, Expression* check, Statement* body, Statement* post){
    Statement *result = new Statement('L');
    result->children.push_back(pre);
    result->expressions.push_back(check);
    result->children.push_back(body);
    result->children.push_back(post);
    return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
leaq -0x48(%rbp), %r14
movq %rdi, (%r14)
leaq -0x40(%rbp), %r15
movq %rsi, (%r15)
leaq -0x38(%rbp), %r12
movq %rdx, (%r12)
leaq -0x30(%rbp), %rax
movq %rcx, (%rax)
pushq $0x38
popq %rdi
callq 0x3200
movq %rax, %r13
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x20(%rax)
movb $0x4c, 0x30(%rax)
leaq 0x18(%rax), %rbx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x69f2
movq %r13, %rdi
movq %r15, %rsi
callq 0x69ce
movq %rbx, %rdi
movq %r12, %rsi
callq 0x69f2
movq %rbx, %rdi
leaq -0x30(%rbp), %rsi
callq 0x69f2
movq %r13, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/johan-bjareholt[P]lua-compiler/src/ir.cc
// Function: While(Expression*, Statement*)
Statement *While(Expression* expression, Statement* body){
    Statement* pre = new Statement('S');
    Expression* check = expression;
    Statement* post = new Statement('S');
	return Loop(pre, check, body, post);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
pushq $0x38
popq %r15
movq %r15, %rdi
callq 0x3200
movq %rax, %r12
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x20(%rax)
movb $0x53, %r13b
movb %r13b, 0x30(%rax)
movq %r15, %rdi
callq 0x3200
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x20(%rax)
movb %r13b, 0x30(%rax)
movq %r12, %rdi
movq %r14, %rsi
movq %rbx, %rdx
movq %rax, %rcx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x53cf
// File: /workspace/github_cpp_makefile_star2_O2/johan-bjareholt[P]lua-compiler/src/ir.cc
// Function: Repeat(Expression*, Statement*)
Statement *Repeat(Expression* expression, Statement* body){
    Statement* repeat = new Statement('R');
    repeat->children.push_back(repeat);
    repeat->expressions.push_back(expression);
	return repeat;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
leaq -0x20(%rbp), %rbx
movq %rdi, (%rbx)
pushq $0x38
popq %rdi
callq 0x3200
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x20(%rax)
movb $0x52, 0x30(%rax)
leaq -0x18(%rbp), %r14
movq %rax, (%r14)
leaq 0x18(%rax), %rdi
movq %r14, %rsi
callq 0x69f2
movq (%r14), %rdi
movq %rbx, %rsi
callq 0x69ce
movq (%r14), %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/johan-bjareholt[P]lua-compiler/src/ir.cc
// Function: FunctionDef(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::vector<Expression*, std::allocator<Expression*>>, Statement*)
Statement *FunctionDef(std::string& name, std::vector<Expression*> args, Statement* body){
	Statement* result = new Statement('F');
	Expression* nameExp = String(name);
	result->expressions.push_back(nameExp);
	// TODO: Add proper args support
    Statement* argscontainer = new Statement('E');
    argscontainer->expressions = args;
	result->children.push_back(argscontainer);
	result->children.push_back(body);
	return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rsi, %r14
movq %rdi, %r15
movq %rdx, -0x28(%rbp)
pushq $0x38
popq %rdi
callq 0x3200
movq %rax, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x20(%rax)
movb $0x46, 0x30(%rax)
leaq -0x58(%rbp), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x32f0
movq %r12, %rdi
callq 0x5061
movq %rax, %r15
leaq -0x58(%rbp), %rdi
callq 0x3448
leaq -0x38(%rbp), %rsi
movq %r15, (%rsi)
movq %rbx, %rdi
callq 0x69ce
pushq $0x38
popq %rdi
callq 0x3200
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x20(%rax)
movb $0x45, 0x30(%rax)
leaq -0x30(%rbp), %r15
movq %rax, (%r15)
movq %rax, %rdi
movq %r14, %rsi
callq 0x6a16
movq %rbx, %r14
addq $0x18, %r14
movq %r14, %rdi
movq %r15, %rsi
callq 0x69f2
leaq -0x28(%rbp), %rsi
movq %r14, %rdi
callq 0x69f2
movq %rbx, %rax
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x58(%rbp), %rdi
callq 0x3448
movq %rbx, %rdi
callq 0x33f0
// File: /workspace/github_cpp_makefile_star2_O2/johan-bjareholt[P]lua-compiler/src/ir.cc
// Function: Return(std::__cxx11::list<Expression*, std::allocator<Expression*>>)
Statement *Return(std::list<Expression*> retvals){
    Statement *result = new Statement('r');
    for (Expression* exp : retvals){
        result->expressions.push_back(exp);
    }
    return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
pushq $0x38
popq %rdi
callq 0x3200
movq %rax, %r14
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x20(%rax)
movb $0x72, 0x30(%rax)
leaq -0x28(%rbp), %r15
movq %rbx, %r12
movq (%r12), %r12
cmpq %rbx, %r12
je 0x5878
movq 0x10(%r12), %rax
movq %rax, -0x28(%rbp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x69ce
jmp 0x5859
movq %r14, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/johan-bjareholt[P]lua-compiler/src/ir.cc
// Function: namePass(Expression*, std::map<Expression*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::less<Expression*>, std::allocator<std::pair<Expression* const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>&)
void namePass(Expression *tree, map<Expression*,string> &nameMap)
{
    std::string name;
    // Exp is funccall
    if (tree->kind == 'f'){
        for (Expression* exp : tree->subexp){
	        namePass(exp, nameMap);
        }
        name = newName();
    }
    // Exp is binop
    else if (tree->left != nullptr && tree->right != nullptr){
	    namePass(tree->left, nameMap);
	    namePass(tree->right, nameMap);
	    name = newName();
    }
    else {
        // Exp is string
        if (tree->name == "")
            name = to_string(tree->value);
        // Exp is var
	    else
            name = tree->name;
    }
  
    auto entry = std::pair<Expression*, string>(tree, name);
    nameMap.insert(entry);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x50, %rsp
movq %rsi, %rbx
leaq -0x30(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movq %rdi, %r14
movb $0x0, (%rax)
cmpb $0x66, 0x28(%rdi)
jne 0x59da
leaq 0x10(%r14), %r15
movq %r15, %r12
movq (%r12), %r12
cmpq %r15, %r12
je 0x5a08
movq 0x10(%r12), %rdi
movq %rbx, %rsi
callq 0x5990
jmp 0x59c2
movq (%r14), %rdi
testq %rdi, %rdi
je 0x5a13
cmpq $0x0, 0x8(%r14)
je 0x5a13
movq %rbx, %rsi
callq 0x5990
movq 0x8(%r14), %rdi
movq %rbx, %rsi
callq 0x5990
leaq -0x68(%rbp), %rdi
callq 0x5888
jmp 0x5a37
leaq -0x68(%rbp), %rdi
callq 0x5888
jmp 0x5a37
leaq 0x30(%r14), %r15
leaq 0xc8f8(%rip), %rsi      # 0x12316
movq %r15, %rdi
callq 0x6ae1
testb %al, %al
je 0x5a8d
movl 0x2c(%r14), %esi
leaq -0x68(%rbp), %rdi
callq 0x6af1
leaq -0x40(%rbp), %rdi
leaq -0x68(%rbp), %r15
movq %r15, %rsi
callq 0x32b0
movq %r15, %rdi
callq 0x3448
leaq -0x60(%rbp), %r15
movq %r14, -0x8(%r15)
leaq -0x40(%rbp), %rsi
movq %r15, %rdi
callq 0x32f0
leaq -0x68(%rbp), %rsi
movq %rbx, %rdi
callq 0x77fa
movq %r15, %rdi
callq 0x3448
leaq -0x40(%rbp), %rdi
callq 0x3448
addq $0x50, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq -0x40(%rbp), %rdi
movq %r15, %rsi
callq 0x3130
jmp 0x5a4f
jmp 0x5ab2
jmp 0x5ab2
jmp 0x5ab2
jmp 0x5ab2
movq %rax, %rbx
movq %r15, %rdi
callq 0x3448
jmp 0x5ab5
jmp 0x5ab2
movq %rax, %rbx
leaq -0x40(%rbp), %rdi
callq 0x3448
movq %rbx, %rdi
callq 0x33f0
// File: /workspace/github_cpp_makefile_star2_O2/johan-bjareholt[P]lua-compiler/src/ir.cc
// Function: convert[abi:cxx11](Expression*, BBlock*)
string convert(Expression *in, BBlock *out)
{
    map<Expression*,string> naming;
    namePass(in, naming);
    emitPass(in, naming, out);
    return naming[in];
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x38, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movq %rsi, -0x20(%rbp)
leaq -0x48(%rbp), %rax
andl $0x0, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
andq $0x0, 0x20(%rax)
leaq -0x50(%rbp), %rsi
movq %r15, %rdi
callq 0x5990
leaq -0x50(%rbp), %rsi
movq %r15, %rdi
movq %r14, %rdx
callq 0x5ac6
leaq -0x50(%rbp), %rdi
leaq -0x20(%rbp), %rsi
callq 0x6b52
movq %rbx, %rdi
movq %rax, %rsi
callq 0x32f0
leaq -0x50(%rbp), %rdi
callq 0x6e4a
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x50(%rbp), %rdi
callq 0x6e4a
movq %rbx, %rdi
callq 0x33f0
// File: /workspace/github_cpp_makefile_star2_O2/johan-bjareholt[P]lua-compiler/src/ir.cc
// Function: convertAssign(Statement*, BBlock*)
void convertAssign(Statement *in, BBlock *out)
{
    std::string name = in->expressions.at(0)->name;
    std::string val = convert(in->expressions.at(1), out);
    ThreeAd ta = ThreeAd(name,'c',name,val);
    out->instructions.push_back(ta);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x110, %rsp            # imm = 0x110
movq %rsi, %rbx
movq %rdi, %r14
xorl %esi, %esi
callq 0x6bb4
movq (%rax), %rsi
addq $0x30, %rsi
leaq -0x30(%rbp), %rdi
callq 0x32f0
pushq $0x1
popq %rsi
movq %r14, %rdi
callq 0x6bb4
movq (%rax), %rsi
leaq -0xb0(%rbp), %rdi
movq %rbx, %rdx
callq 0x5cf2
leaq -0x90(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x32f0
leaq -0x70(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x32f0
leaq -0x50(%rbp), %rdi
leaq -0xb0(%rbp), %rsi
callq 0x32f0
leaq -0x118(%rbp), %rdi
leaq -0x90(%rbp), %rsi
pushq $0x63
popq %rdx
leaq -0x70(%rbp), %rcx
leaq -0x50(%rbp), %r8
callq 0x4818
leaq -0x50(%rbp), %rdi
callq 0x3448
leaq -0x70(%rbp), %rdi
callq 0x3448
leaq -0x90(%rbp), %rdi
callq 0x3448
leaq -0x118(%rbp), %rsi
movq %rbx, %rdi
callq 0x6ba4
leaq -0x118(%rbp), %rdi
callq 0x6970
leaq -0xb0(%rbp), %rdi
callq 0x3448
leaq -0x30(%rbp), %rdi
callq 0x3448
addq $0x110, %rsp            # imm = 0x110
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
leaq -0x118(%rbp), %rdi
callq 0x6970
jmp 0x5eb1
movq %rax, %rbx
leaq -0x50(%rbp), %rdi
callq 0x3448
jmp 0x5e92
movq %rax, %rbx
leaq -0x70(%rbp), %rdi
callq 0x3448
jmp 0x5ea0
movq %rax, %rbx
leaq -0x90(%rbp), %rdi
callq 0x3448
jmp 0x5eb1
movq %rax, %rbx
leaq -0xb0(%rbp), %rdi
callq 0x3448
jmp 0x5ec2
movq %rax, %rbx
leaq -0x30(%rbp), %rdi
callq 0x3448
movq %rbx, %rdi
callq 0x33f0
// File: /workspace/github_cpp_makefile_star2_O2/johan-bjareholt[P]lua-compiler/src/ir.cc
// Function: convertComparitor(Expression*, BBlock*)
void convertComparitor(Expression *in, BBlock *out)
{
    std::string l = convert(in->left, out);
    std::string r = convert(in->right, out);
    std::string name = newName();
    ThreeAd ta = ThreeAd(name,in->op,l,r);
    out->instructions.push_back(ta);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x130, %rsp            # imm = 0x130
movq %rsi, %rbx
movq %rdi, %r14
movq (%rdi), %rsi
leaq -0xd0(%rbp), %rdi
movq %rbx, %rdx
callq 0x5cf2
movq 0x8(%r14), %rsi
leaq -0xb0(%rbp), %rdi
movq %rbx, %rdx
callq 0x5cf2
leaq -0x90(%rbp), %rdi
callq 0x5888
leaq -0x70(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0x32f0
movb 0x29(%r14), %r14b
leaq -0x50(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
callq 0x32f0
leaq -0x30(%rbp), %rdi
leaq -0xb0(%rbp), %rsi
callq 0x32f0
movsbl %r14b, %edx
leaq -0x138(%rbp), %rdi
leaq -0x70(%rbp), %rsi
leaq -0x50(%rbp), %rcx
leaq -0x30(%rbp), %r8
callq 0x4818
leaq -0x30(%rbp), %rdi
callq 0x3448
leaq -0x50(%rbp), %rdi
callq 0x3448
leaq -0x70(%rbp), %rdi
callq 0x3448
leaq -0x138(%rbp), %rsi
movq %rbx, %rdi
callq 0x6ba4
leaq -0x138(%rbp), %rdi
callq 0x6970
leaq -0x90(%rbp), %rdi
callq 0x3448
leaq -0xb0(%rbp), %rdi
callq 0x3448
leaq -0xd0(%rbp), %rdi
callq 0x3448
addq $0x130, %rsp            # imm = 0x130
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
leaq -0x138(%rbp), %rdi
callq 0x6970
jmp 0x600c
movq %rax, %rbx
leaq -0x30(%rbp), %rdi
callq 0x3448
jmp 0x5ff0
movq %rax, %rbx
leaq -0x50(%rbp), %rdi
callq 0x3448
jmp 0x5ffe
movq %rax, %rbx
leaq -0x70(%rbp), %rdi
callq 0x3448
jmp 0x600c
movq %rax, %rbx
leaq -0x90(%rbp), %rdi
callq 0x3448
leaq -0xb0(%rbp), %rdi
callq 0x3448
leaq -0xd0(%rbp), %rdi
callq 0x3448
movq %rbx, %rdi
callq 0x33f0
movq %rax, %rbx
jmp 0x6018
movq %rax, %rbx
jmp 0x6024
// File: /workspace/github_cpp_makefile_star2_O2/johan-bjareholt[P]lua-compiler/src/ir.cc
// Function: convertIf(Statement*, BBlock**)
void convertIf(Statement *in, BBlock **current)
{
    // Translate comparitor
    Expression* comparitor = in->expressions.back();
    convertComparitor(comparitor, *current);

    // Create true and false block
    BBlock* trueBlock = new BBlock();
    BBlock* trueBlockPtr = trueBlock;
    convertStatement(in->children.at(0), &trueBlockPtr);
    (*current)->trueExit = trueBlock;

    BBlock* falseBlock = new BBlock();
    BBlock* falseBlockPtr = falseBlock;
    convertStatement(in->children.at(1), &falseBlockPtr);
    (*current)->falseExit = falseBlock;

    // Create next block
    BBlock* nextBlock = new BBlock();
    trueBlock->trueExit = nextBlock;
    falseBlock->trueExit = nextBlock;

    *current = nextBlock;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq %rdi, %r12
movq 0x8(%rdi), %rax
movq -0x8(%rax), %rdi
movq (%rsi), %rsi
callq 0x5ed3
pushq $0x48
popq %r15
movq %r15, %rdi
callq 0x3200
movq %rax, %r14
movq %rax, 0x8(%rax)
movq %rax, (%rax)
addq $0x38, %rax
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%r14)
andq $0x0, 0x20(%r14)
movq %rax, 0x28(%r14)
andq $0x0, 0x30(%r14)
xorl %eax, %eax
movb %al, 0x38(%r14)
leaq -0x38(%rbp), %r13
movq %r14, (%r13)
addq $0x18, %r12
movq %r12, %rdi
xorl %esi, %esi
callq 0x6bd6
movq (%rax), %rdi
movq %r13, %rsi
callq 0x6164
movq (%rbx), %rax
movq %r14, 0x18(%rax)
movq %r15, %rdi
callq 0x3200
movq %rax, %r13
movq %rax, 0x8(%rax)
movq %rax, (%rax)
addq $0x38, %rax
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%r13)
andq $0x0, 0x20(%r13)
movq %rax, 0x28(%r13)
andq $0x0, 0x30(%r13)
xorl %eax, %eax
movb %al, 0x38(%r13)
leaq -0x30(%rbp), %r15
movq %r13, (%r15)
pushq $0x1
popq %rsi
movq %r12, %rdi
callq 0x6bd6
movq (%rax), %rdi
movq %r15, %rsi
callq 0x6164
movq (%rbx), %rax
movq %r13, 0x20(%rax)
pushq $0x48
popq %rdi
callq 0x3200
movq %rax, 0x8(%rax)
movq %rax, (%rax)
leaq 0x38(%rax), %rcx
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
andq $0x0, 0x20(%rax)
movq %rcx, 0x28(%rax)
andq $0x0, 0x30(%rax)
xorl %ecx, %ecx
movb %cl, 0x38(%rax)
movq %rax, 0x18(%r14)
movq %rax, 0x18(%r13)
movq %rax, (%rbx)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/johan-bjareholt[P]lua-compiler/src/ir.cc
// Function: convertStatement(Statement*, BBlock**)
void convertStatement(Statement *in, BBlock **current)
{
    switch(in->kind)
    {
        case 'A':
            convertAssign(in,*current);   // Does not update current
            break;
        case 'F':
            convertFuncDef(in,*current);	// Does not update current
            break;
        case 'E':
            convertExpressions(in, *current); // Does not update current
            break;
        case 'r':
            convertReturn(in,*current); // Does not update current
            break;
        case 'L':
            convertLoop(in,current);
            break;
        case 'R':
            convertRepeat(in,current);
            break;
        case 'I':
            convertIf(in,current);
            break;
        case 'S':
            convertSeq(in,current);
            break;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movzbl 0x30(%rdi), %eax
leal -0x45(%rax), %ecx
cmpl $0xe, %ecx
ja 0x618d
leaq 0xbee5(%rip), %rax      # 0x12060
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movq (%rsi), %rsi
popq %rbp
jmp 0x664d
cmpl $0x72, %eax
je 0x61c0
cmpl $0x41, %eax
jne 0x61a0
movq (%rsi), %rsi
popq %rbp
jmp 0x5d83
popq %rbp
retq
popq %rbp
jmp 0x64f5
popq %rbp
jmp 0x61c9
popq %rbp
jmp 0x63d8
popq %rbp
jmp 0x6042
popq %rbp
jmp 0x63a2
movq (%rsi), %rsi
popq %rbp
jmp 0x6698