LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/bluesky466[P]ResourcesParser/main.cpp
// Function: printHelp()
void printHelp() {
	cout <<"rp -p path [-a] [-t type] [-i id]" <<endl<<endl;
	cout <<"-p : set path of resources.arsc" <<endl;
	cout <<"-a : show all of resources.arsc" <<endl;
	cout <<"-t : select the type in resources.arsc to show" <<endl;
	cout <<"-i : select the id of resource to show" <<endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq 0xb3ec(%rip), %rbx      # 0xefd8
leaq 0x7420(%rip), %rsi      # 0xb013
movl $0x21, %edx
movq %rbx, %rdi
callq 0x3230
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x31f0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3130
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x31f0
movsbl %al, %esi
movq %r14, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3130
leaq 0x73dd(%rip), %rsi      # 0xb035
movl $0x1f, %edx
movq %rbx, %rdi
callq 0x3230
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x31f0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3130
leaq 0x73c2(%rip), %rsi      # 0xb055
movl $0x1f, %edx
movq %rbx, %rdi
callq 0x3230
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x31f0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3130
leaq 0x73a7(%rip), %rsi      # 0xb075
movl $0x2e, %edx
movq %rbx, %rdi
callq 0x3230
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x31f0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3130
leaq 0x739b(%rip), %rsi      # 0xb0a4
movl $0x26, %edx
movq %rbx, %rdi
callq 0x3230
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x31f0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x3130
nop
// File: /workspace/github_cpp_makefile_star2_O1/bluesky466[P]ResourcesParser/ResourcesParser.cpp
// Function: stringOfComplex[abi:cxx11](unsigned int, bool)
static string stringOfComplex(uint32_t complex, bool isFraction) {
	stringstream ss;
    const float MANTISSA_MULT =
        1.0f / (1<<Res_value::COMPLEX_MANTISSA_SHIFT);
    const float RADIX_MULTS[] = {
        1.0f*MANTISSA_MULT, 1.0f/(1<<7)*MANTISSA_MULT,
        1.0f/(1<<15)*MANTISSA_MULT, 1.0f/(1<<23)*MANTISSA_MULT
    };

    float value = (complex&(Res_value::COMPLEX_MANTISSA_MASK
                   <<Res_value::COMPLEX_MANTISSA_SHIFT))
            * RADIX_MULTS[(complex>>Res_value::COMPLEX_RADIX_SHIFT)
                            & Res_value::COMPLEX_RADIX_MASK];
	ss<<value;

    if (!isFraction) {
        switch ((complex>>Res_value::COMPLEX_UNIT_SHIFT)&Res_value::COMPLEX_UNIT_MASK) {
            case Res_value::COMPLEX_UNIT_PX: ss<<"px"; break;
            case Res_value::COMPLEX_UNIT_DIP: ss<<"dp"; break;
            case Res_value::COMPLEX_UNIT_SP: ss<<"sp"; break;
            case Res_value::COMPLEX_UNIT_PT: ss<<"pt"; break;
            case Res_value::COMPLEX_UNIT_IN: ss<<"in"; break;
            case Res_value::COMPLEX_UNIT_MM: ss<<"mm"; break;
            default: ss<<" (unknown unit)"; break;
        }
    } else {
        switch ((complex>>Res_value::COMPLEX_UNIT_SHIFT)&Res_value::COMPLEX_UNIT_MASK) {
            case Res_value::COMPLEX_UNIT_FRACTION: ss<<"%"; break;
            case Res_value::COMPLEX_UNIT_FRACTION_PARENT: ss<<"%p"; break;
            default: ss<<" (unknown unit)"; break;
        }
    }
	return ss.str();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x190, %rsp            # imm = 0x190
movl %edx, %r12d
movl %esi, %r15d
movq %rdi, %rbx
leaq -0x1a8(%rbp), %rdi
callq 0x3150
movl %r15d, %eax
andl $0xffffff00, %eax       # imm = 0xFFFFFF00
cvtsi2ss %rax, %xmm0
movl %r15d, %eax
shrl $0x2, %eax
andl $0xc, %eax
leaq 0x4d75(%rip), %rcx      # 0xb200
mulss (%rax,%rcx), %xmm0
leaq -0x198(%rbp), %r14
cvtss2sd %xmm0, %xmm0
movq %r14, %rdi
callq 0x32d0
andl $0xf, %r15d
testb %r12b, %r12b
je 0x64c5
testl %r15d, %r15d
je 0x64f1
cmpl $0x1, %r15d
jne 0x64e3
movl $0x2, %edx
leaq 0x4f31(%rip), %rsi      # 0xb3f4
jmp 0x64fd
cmpl $0x6, %r15d
jae 0x64e3
movl %r15d, %eax
leaq 0x4cf7(%rip), %rcx      # 0xb1cc
movslq (%rcx,%rax,4), %rsi
addq %rcx, %rsi
movl $0x2, %edx
jmp 0x64fd
movl $0xf, %edx
leaq 0x4ef3(%rip), %rsi      # 0xb3e2
jmp 0x64fd
movl $0x1, %edx
leaq 0x4ef5(%rip), %rsi      # 0xb3f2
movq %r14, %rdi
callq 0x3230
leaq -0x190(%rbp), %rsi
movq %rbx, %rdi
callq 0x32c0
movq 0x8a8d(%rip), %rsi      # 0xefa8
leaq -0x1a8(%rbp), %rdi
callq 0x3170
leaq -0x128(%rbp), %rdi
callq 0x30b0
movq %rbx, %rax
addq $0x190, %rsp            # imm = 0x190
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x8a58(%rip), %rsi      # 0xefa8
leaq -0x1a8(%rbp), %rdi
callq 0x3170
leaq -0x128(%rbp), %rdi
callq 0x30b0
movq %rbx, %rdi
callq 0x3340
// File: /workspace/github_cpp_makefile_star2_O1/bluesky466[P]ResourcesParser/ResourcesParser.cpp
// Function: ResourcesParser::getStringFromResStringPool[abi:cxx11](std::shared_ptr<ResourcesParser::ResStringPool>, unsigned int)
string ResourcesParser::getStringFromResStringPool(
			ResourcesParser::ResStringPoolPtr pPool,
			uint32_t index) {
	if(index > pPool->header.stringCount) {
		return "???";
	}
	uint32_t offset = *(pPool->pOffsets.get() + index);
	//前两个字节是字符串长度
	char* str = ((char*) (pPool->pStrings.get() + offset + 2));
	return (pPool->header.flags & ResStringPool_header::UTF8_FLAG)
		? str
		: toUtf8((char16_t*) str);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x80, %rsp
movq %rdi, %rbx
movq (%rsi), %rax
cmpl %edx, 0x8(%rax)
jae 0x7009
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x42ef(%rip), %rsi      # 0xb2e4
leaq 0x42eb(%rip), %rdx      # 0xb2e7
movq %rbx, %rdi
callq 0x3efc
jmp 0x7104
movq 0x20(%rax), %rcx
movl %edx, %edx
movl (%rcx,%rdx,4), %ecx
movq 0x30(%rax), %rdx
leaq (%rdx,%rcx), %r14
addq $0x2, %r14
movl 0x10(%rax), %r15d
btl $0x8, %r15d
jb 0x70cd
addq %rcx, %rdx
leaq -0x30(%rbp), %r12
movq %r12, -0x10(%r12)
cmpw $0x0, 0x2(%rdx)
leaq 0x2(%rdx), %rdx
jne 0x7039
leaq -0x40(%rbp), %rdi
movq %r14, %rsi
callq 0x7d8e
movl $0x20, %edi
callq 0x3200
xorl %ecx, %ecx
movl %ecx, 0x8(%rax)
movq $0x10ffff, 0x10(%rax)   # imm = 0x10FFFF
movl %ecx, 0x18(%rax)
leaq 0x7ad7(%rip), %rdx      # 0xeb48
movq %rdx, (%rax)
leaq -0x88(%rbp), %rdx
movq %rax, -0x18(%rdx)
movq %rdx, -0x10(%rdx)
movq %rcx, -0x8(%rdx)
movb $0x0, (%rdx)
leaq -0x68(%rbp), %rax
movq %rax, -0x10(%rax)
movq %rcx, -0x8(%rax)
movw %cx, (%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movw %cx, 0x20(%rax)
movq -0x40(%rbp), %rdx
movq -0x38(%rbp), %rax
leaq (%rdx,%rax,2), %rcx
leaq -0xa0(%rbp), %rsi
movq %rbx, %rdi
callq 0x7906
leaq -0xa0(%rbp), %rdi
callq 0x78a0
jmp 0x70eb
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
movq %r14, %rdi
callq 0x30e0
leaq (%rax,%r14), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3efc
btl $0x8, %r15d
jb 0x7104
leaq -0x30(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7104
callq 0x31d0
movq %rbx, %rax
addq $0x80, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0xa0(%rbp), %rdi
callq 0x78a0
jmp 0x712b
movq %rax, %rbx
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0x7139
callq 0x31d0
movq %rbx, %rdi
callq 0x3340
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 $0x28, %rsp
movl %r9d, %r12d
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 -0x38(%rbp), %rdi
movq %rax, -0x8(%rdi)
movq %rax, %rsi
callq 0x82b2
movq %r14, -0x48(%rbp)
movaps -0x40(%rbp), %xmm0
xorps %xmm1, %xmm1
movaps %xmm1, -0x40(%rbp)
movq 0x8(%rbx), %rdi
movups %xmm0, (%rbx)
testq %rdi, %rdi
je 0x71a7
callq 0x3dfa
movq %r15, -0x50(%rbp)
movl %r12d, %r14d
movq -0x38(%rbp), %rdi
testq %rdi, %rdi
je 0x71bc
callq 0x3dfa
leal (,%r13,4), %r12d
movq (%rbx), %rsi
movq -0x48(%rbp), %r15
movq %r15, %rdi
movq %r12, %rdx
callq 0x3250
movl %r13d, 0x24(%rbx)
movl %r14d, 0x20(%rbx)
movq -0x50(%rbp), %rsi
subl %r12d, %esi
movq %r15, %rdi
movl $0x1, %edx
callq 0x3270
movl 0x20(%rbx), %edi
callq 0x3030
leaq -0x38(%rbp), %rdi
movq %rax, -0x8(%rdi)
movq %rax, %rsi
callq 0x839a
movaps -0x40(%rbp), %xmm0
xorps %xmm1, %xmm1
movaps %xmm1, -0x40(%rbp)
movq 0x18(%rbx), %rdi
movups %xmm0, 0x10(%rbx)
testq %rdi, %rdi
movq -0x48(%rbp), %r14
je 0x722b
callq 0x3dfa
movq -0x38(%rbp), %rdi
testq %rdi, %rdi
je 0x7239
callq 0x3dfa
movq 0x10(%rbx), %rsi
movl 0x20(%rbx), %edx
movq %r14, %rdi
callq 0x3250
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x725e
jmp 0x725e
movq %rax, %r14
movq %rbx, %rdi
callq 0x773e
movq %r14, %rdi
callq 0x3340
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x7293
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 0x7296
addq 0x10(%rsi), %rax
jmp 0x7298
xorl %eax, %eax
retq
xorl %eax, %eax
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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
movq %rdi, %rax
shrl $0x18, %edx
movq 0x60(%rsi), %rdi
addq $0x58, %rsi
movq %rsi, %rcx
testq %rdi, %rdi
je 0x72e7
movq %rsi, %rcx
xorl %r8d, %r8d
cmpl %edx, 0x20(%rdi)
setb %r8b
cmovaeq %rdi, %rcx
movq 0x10(%rdi,%r8,8), %rdi
testq %rdi, %rdi
jne 0x72cf
movq %rsi, %rdi
cmpq %rsi, %rcx
je 0x72f9
cmpl 0x20(%rcx), %edx
cmovbq %rsi, %rcx
movq %rcx, %rdi
cmpq %rsi, %rdi
je 0x7323
movq 0x28(%rdi), %rcx
movq %rcx, (%rax)
movq 0x30(%rdi), %rcx
movq %rcx, 0x8(%rax)
testq %rcx, %rcx
je 0x732f
movq 0x7cb7(%rip), %rdx      # 0xefd0
cmpb $0x0, (%rdx)
je 0x732b
incl 0x8(%rcx)
jmp 0x732f
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
jmp 0x732f
lock
incl 0x8(%rcx)
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x72b2
movq (%r15), %rdi
testq %rdi, %rdi
je 0x7380
addq $0x140, %rdi            # imm = 0x140
shrl $0x10, %r14d
movzbl %r14b, %eax
leaq -0x1c(%rbp), %rsi
movl %eax, (%rsi)
callq 0x533c
movq %rbx, %rdi
movq %rax, %rsi
callq 0x77b2
jmp 0x738e
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq $0x0, 0x10(%rbx)
movq -0x28(%rbp), %rdi
testq %rdi, %rdi
je 0x739c
callq 0x3dfa
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x28(%rbp), %rdi
testq %rdi, %rdi
je 0x73bb
callq 0x3dfa
movq %rbx, %rdi
callq 0x3340
nop
// File: /workspace/github_cpp_makefile_star2_O1/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
pushq %rax
movq %rdi, %rbx
movl (%rdx), %edx
leal -0x1000000(%rdx), %eax
cmpl $0x9, %eax
ja 0x74c9
leaq 0x3d9b(%rip), %rcx      # 0xb180
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x3f32(%rip), %rsi      # 0xb32e
leaq 0x3f34(%rip), %rdx      # 0xb337
jmp 0x74e8
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x3f3e(%rip), %rsi      # 0xb354
leaq 0x3f41(%rip), %rdx      # 0xb35e
jmp 0x74e8
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x3f54(%rip), %rsi      # 0xb384
leaq 0x3f56(%rip), %rdx      # 0xb38d
jmp 0x74e8
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x3ef7(%rip), %rsi      # 0xb341
leaq 0x3ef8(%rip), %rdx      # 0xb349
jmp 0x74e8
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x3ee6(%rip), %rsi      # 0xb34a
leaq 0x3ee8(%rip), %rdx      # 0xb353
jmp 0x74e8
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x3ef7(%rip), %rsi      # 0xb372
leaq 0x3ef8(%rip), %rdx      # 0xb37a
jmp 0x74e8
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x3ea6(%rip), %rsi      # 0xb338
leaq 0x3ea7(%rip), %rdx      # 0xb340
jmp 0x74e8
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x3eb6(%rip), %rsi      # 0xb35f
leaq 0x3eb8(%rip), %rdx      # 0xb368
jmp 0x74e8
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x3ea9(%rip), %rsi      # 0xb369
leaq 0x3eaa(%rip), %rdx      # 0xb371
jmp 0x74e8
movq %rbx, %rdi
callq 0x5e46
jmp 0x74f0
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x3e9a(%rip), %rsi      # 0xb37b
leaq 0x3e9b(%rip), %rdx      # 0xb383
movq %rbx, %rdi
callq 0x3efc
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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
pushq %rax
movq %rdi, %rbx
movl 0x4(%rdx), %eax
leaq 0x10(%rdi), %rcx
movq %rcx, (%rdi)
cmpl $0x3f, %eax
jg 0x7551
leal -0x1(%rax), %ecx
cmpl $0x7, %ecx
ja 0x7588
leaq 0x3c73(%rip), %rax      # 0xb1a8
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
leaq 0x3e4d(%rip), %rsi      # 0xb392
leaq 0x3e4f(%rip), %rdx      # 0xb39b
jmp 0x7643
cmpl $0xfffe, %eax           # imm = 0xFFFE
jle 0x75a9
cmpl $0x20000, %eax          # imm = 0x20000
je 0x7625
cmpl $0x10000, %eax          # imm = 0x10000
je 0x7615
cmpl $0xffff, %eax           # imm = 0xFFFF
jne 0x75c5
leaq 0x3e12(%rip), %rsi      # 0xb38e
leaq 0x3e0e(%rip), %rdx      # 0xb391
jmp 0x7643
cmpl $0x10, %eax
je 0x7635
cmpl $0x20, %eax
jne 0x75c5
leaq 0x3e07(%rip), %rsi      # 0xb3a4
leaq 0x3e05(%rip), %rdx      # 0xb3a9
jmp 0x7643
cmpl $0x40, %eax
je 0x7605
cmpl $0x80, %eax
jne 0x75c5
leaq 0x3df8(%rip), %rsi      # 0xb3b4
leaq 0x3df9(%rip), %rdx      # 0xb3bc
jmp 0x7643
leaq 0x3dfc(%rip), %rsi      # 0xb3c8
leaq 0x3dfc(%rip), %rdx      # 0xb3cf
jmp 0x7643
leaq 0x3dc0(%rip), %rsi      # 0xb39c
leaq 0x3dc0(%rip), %rdx      # 0xb3a3
jmp 0x7643
leaq 0x3b21(%rip), %rsi      # 0xb10d
leaq 0x3b20(%rip), %rdx      # 0xb113
jmp 0x7643
leaq 0x3b24(%rip), %rsi      # 0xb120
leaq 0x3b24(%rip), %rdx      # 0xb127
jmp 0x7643
leaq 0x3d9e(%rip), %rsi      # 0xb3aa
leaq 0x3da0(%rip), %rdx      # 0xb3b3
jmp 0x7643
leaq 0x3da1(%rip), %rsi      # 0xb3bd
leaq 0x3d9e(%rip), %rdx      # 0xb3c1
jmp 0x7643
leaq 0x3d96(%rip), %rsi      # 0xb3c2
leaq 0x3d94(%rip), %rdx      # 0xb3c7
jmp 0x7643
leaq 0x3ade(%rip), %rsi      # 0xb11a
leaq 0x3adc(%rip), %rdx      # 0xb11f
movq %rbx, %rdi
callq 0x3efc
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 %r14
pushq %rbx
pushq %rax
movl %edi, %ebx
testl %edi, %edi
jne 0x248f
movq 0x5b13(%rip), %rax      # 0x7fa0
jmp 0x2496
movq 0x5b32(%rip), %rax      # 0x7fc8
movq (%rax), %r14
leaq 0x2c34(%rip), %rdi      # 0x50d4
movl $0x2f, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x22b0
leaq 0x2c4b(%rip), %rsi      # 0x5104
leaq 0x2c7c(%rip), %rdx      # 0x513c
movq %r14, %rdi
xorl %eax, %eax
callq 0x21d0
leaq 0x2c73(%rip), %rdi      # 0x5144
movl $0x8, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x22b0
leaq 0x2c63(%rip), %rdi      # 0x514d
movl $0x14, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x22b0
leaq 0x2c5f(%rip), %rdi      # 0x5162
movl $0x1c, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x22b0
leaq 0x2c63(%rip), %rdi      # 0x517f
movl $0x32, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x22b0
leaq 0x2c7d(%rip), %rdi      # 0x51b2
movl $0x51, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x22b0
leaq 0x2cb6(%rip), %rdi      # 0x5204
movl $0x4f, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x22b0
leaq 0x2ced(%rip), %rdi      # 0x5254
movl $0x1f, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x22b0
leaq 0x2cf4(%rip), %rdi      # 0x5274
movl $0x50, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x22b0
leaq 0x2d2c(%rip), %rdi      # 0x52c5
movl $0x2a, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x22b0
movl %ebx, %edi
callq 0x21a0
// File: /workspace/github_cpp_makefile_star2_O1/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 0x3b17
movq (%rdi), %rax
movq 0x8(%rdi), %rcx
subq %rax, %rcx
je 0x3b12
sarq $0x3, %rcx
movq (%rsi), %rdx
cmpq $0x1, %rcx
adcq $0x0, %rcx
xorl %esi, %esi
movq (%rdx,%rsi,8), %r8
orq %r8, (%rax,%rsi,8)
incq %rsi
cmpq %rsi, %rcx
jne 0x3b02
movq %rdi, %rax
popq %rcx
retq
leaq 0x1b35(%rip), %rdi      # 0x5653
leaq 0x1900(%rip), %rsi      # 0x5425
leaq 0x1cbf(%rip), %rcx      # 0x57eb
movl $0x369, %edx            # imm = 0x369
callq 0x20d0
// File: /workspace/github_cpp_makefile_star2_O1/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 0x46b3
movq (%rdi), %rax
movq 0x8(%rdi), %rcx
subq %rax, %rcx
je 0x46ae
sarq $0x3, %rcx
movq (%rsi), %rdx
cmpq $0x1, %rcx
adcq $0x0, %rcx
xorl %esi, %esi
movq (%rdx,%rsi,8), %r8
andq %r8, (%rax,%rsi,8)
incq %rsi
cmpq %rsi, %rcx
jne 0x469e
movq %rdi, %rax
popq %rcx
retq
leaq 0xf99(%rip), %rdi       # 0x5653
leaq 0xd64(%rip), %rsi       # 0x5425
leaq 0xfa0(%rip), %rcx       # 0x5668
movl $0x35f, %edx            # imm = 0x35F
callq 0x20d0
// File: /workspace/github_cpp_makefile_star2_O1/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
cmpl $0x2, %edi
jl 0x4b10
movq %rsi, %rbx
movl %edi, %r14d
movl $0x1, %r15d
movslq %r15d, %r12
movq (%rbx,%r12,8), %rdi
cmpb $0x2d, (%rdi)
jne 0x4aed
movzbl 0x1(%rdi), %eax
cmpl $0x64, %eax
je 0x4af4
cmpl $0x6f, %eax
jne 0x4b1f
leal 0x1(%r12), %r15d
movl $0x1, 0x1a840(%rip)     # 0x1f300
movq 0x8(%rbx,%r12,8), %r12
movq 0x1a844(%rip), %r13     # 0x1f310
movq %r12, %rdi
callq 0x3100
leaq 0x1a82d(%rip), %rdi     # 0x1f308
xorl %esi, %esi
movq %r13, %rdx
movq %r12, %rcx
movq %rax, %r8
callq 0x33f0
jmp 0x4b08
callq 0x1440a
jmp 0x4b08
movb $0x1, %al
movb %al, 0x1a7dc(%rip)      # 0x1f2d8
movb %al, 0x1a7d7(%rip)      # 0x1f2d9
movb %al, 0x1a7d2(%rip)      # 0x1f2da
incl %r15d
cmpl %r14d, %r15d
jl 0x4a97
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x1a4aa(%rip), %rdi     # 0x1efd0
leaq 0x11508(%rip), %rsi     # 0x16035
callq 0x3250
movq (%rbx,%r12,8), %rcx
movsbl 0x1(%rcx), %esi
movq %rax, %rdi
callq 0x32e0
movq %rax, %rdi
callq 0x3110
movl $0x1, %edi
callq 0x3310
// File: /workspace/github_cpp_makefile_star2_O1/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 %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x1125a(%rip), %rsi     # 0x160c2
movl $0x7, %edx
movq %rbx, %rdi
callq 0x32b0
leaq 0x1124e(%rip), %rsi     # 0x160ca
movl $0x3, %edx
movq %rbx, %rdi
callq 0x32b0
movq %rbx, %r12
movq %rbx, %rdi
movq %r14, %rsi
callq 0x31d0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x3240
movsbl %al, %esi
movq %r15, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3180
movq (%r14), %r13
movq %r14, %rbx
cmpq %r14, %r13
je 0x4f81
leaq -0x58(%rbp), %r15
leaq -0x38(%rbp), %r14
movb 0x10(%r13), %al
movb %al, -0x90(%rbp)
leaq -0x78(%rbp), %rax
movq %rax, -0x88(%rbp)
movq 0x18(%r13), %rsi
movq 0x20(%r13), %rdx
addq %rsi, %rdx
leaq -0x88(%rbp), %rdi
callq 0x4baa
movq %r15, -0x68(%rbp)
movq 0x38(%r13), %rsi
movq 0x40(%r13), %rdx
addq %rsi, %rdx
leaq -0x68(%rbp), %rdi
callq 0x4baa
movq %r14, -0x48(%rbp)
movq 0x58(%r13), %rsi
movq 0x60(%r13), %rdx
addq %rsi, %rdx
leaq -0x48(%rbp), %rdi
callq 0x4baa
leaq -0x90(%rbp), %rdi
movq %r12, %rsi
callq 0x4d52
movq -0x48(%rbp), %rdi
cmpq %r14, %rdi
je 0x4f51
callq 0x3230
movq -0x68(%rbp), %rdi
cmpq %r15, %rdi
je 0x4f5f
callq 0x3230
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x4f74
callq 0x3230
movq (%r13), %r13
cmpq %rbx, %r13
jne 0x4ed8
leaq 0x11146(%rip), %rsi     # 0x160ce
movl $0x6, %edx
movq %r12, %rdi
callq 0x32b0
movq 0x18(%rbx), %rsi
movq %r12, %rdi
callq 0x31d0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x3240
movsbl %al, %esi
movq %r15, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3180
leaq 0x11103(%rip), %rsi     # 0x160d5
movl $0x7, %edx
movq %r12, %rdi
callq 0x32b0
movq 0x20(%rbx), %rsi
movq %r12, %rdi
callq 0x31d0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3240
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3180
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x503a
movq %rax, %rbx
movq -0x68(%rbp), %rdi
cmpq %r15, %rdi
je 0x503a
callq 0x3230
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x5060
callq 0x3230
jmp 0x5060
movq %rax, %rbx
leaq -0x90(%rbp), %rdi
callq 0x7d56
movq %rbx, %rdi
callq 0x3470
// File: /workspace/github_cpp_makefile_star2_O1/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), %r15
xorps %xmm0, %xmm0
movaps %xmm0, 0x8(%r15)
movaps %xmm0, 0x18(%r15)
movaps %xmm0, -0x8(%r15)
movq %r15, 0x10(%r15)
movq %r15, 0x18(%r15)
movq $0x0, 0x20(%r15)
leaq 0x1a2b8(%rip), %rdi     # 0x1f360
callq 0x7fe4
movq 0x8(%r15), %rax
testq %rax, %rax
je 0x50f9
movl -0x48(%rbp), %ecx
movl %ecx, 0x1a2a9(%rip)     # 0x1f368
leaq 0x1a2a2(%rip), %rcx     # 0x1f368
movq %rax, 0x1a2a3(%rip)     # 0x1f370
movups -0x38(%rbp), %xmm0
movups %xmm0, 0x1a2a0(%rip)    # 0x1f378
movq %rcx, 0x8(%rax)
movq -0x28(%rbp), %rax
movq %rax, 0x1a2a1(%rip)     # 0x1f388
xorl %eax, %eax
movq %rax, -0x40(%rbp)
movq %r15, -0x38(%rbp)
movq %r15, -0x30(%rbp)
movq %rax, -0x28(%rbp)
leaq -0x50(%rbp), %rdi
callq 0x7f8c
leaq 0x10fd4(%rip), %rsi     # 0x160dd
movl $0x9, %edx
movq %rbx, %rdi
callq 0x32b0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3240
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3180
leaq 0x10fa3(%rip), %rsi     # 0x160e7
movl $0xb, %edx
movq %rbx, %rdi
callq 0x32b0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3240
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3180
leaq 0x10f74(%rip), %rsi     # 0x160f3
movl $0x25, %edx
movq %rbx, %rdi
callq 0x32b0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3240
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3180
movq (%r14), %r15
cmpq %r14, %r15
je 0x51cc
movq 0x10(%r15), %rdi
movq %rbx, %rsi
callq 0x5212
movq (%r15), %r15
jmp 0x51b6
leaq 0x112d9(%rip), %rsi     # 0x164ac
movl $0x1, %edx
movq %rbx, %rdi
callq 0x32b0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3240
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3180
addq $0x38, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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
testl %edx, %edx
jle 0x57bd
leaq 0x10b8a(%rip), %r12     # 0x1632f
movl %ebx, %r13d
movl $0x2, %edx
movq %r14, %rdi
movq %r12, %rsi
callq 0x32b0
decl %r13d
jne 0x57a8
movzbl 0x28(%r15), %eax
cmpl $0x52, %eax
jle 0x57e4
cmpl $0x53, %eax
je 0x57da
cmpl $0x56, %eax
je 0x57da
cmpl $0x66, %eax
jne 0x58a6
movq 0x30(%r15), %rsi
movq 0x38(%r15), %rdx
jmp 0x5805
cmpl $0x43, %eax
je 0x5895
cmpl $0x4e, %eax
jne 0x58a6
movb 0x29(%r15), %al
leaq -0x29(%rbp), %rsi
movb %al, (%rsi)
movl $0x1, %edx
movq %r14, %rdi
callq 0x32b0
movq %rax, %r12
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x3240
movsbl %al, %esi
movq %r12, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3180
movq (%r15), %rdi
testq %rdi, %rdi
je 0x584b
leal 0x1(%rbx), %edx
movq %r14, %rsi
callq 0x5784
movq 0x8(%r15), %rdi
testq %rdi, %rdi
je 0x585f
leal 0x1(%rbx), %edx
movq %r14, %rsi
callq 0x5784
movq 0x10(%r15), %r12
addq $0x10, %r15
cmpq %r15, %r12
je 0x5886
incl %ebx
movq 0x10(%r12), %rdi
movq %r14, %rsi
movl %ebx, %edx
callq 0x5784
movq (%r12), %r12
cmpq %r15, %r12
jne 0x586e
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl 0x2c(%r15), %esi
movq %r14, %rdi
callq 0x3450
jmp 0x580d
movq 0x19723(%rip), %r12     # 0x1efd0
leaq 0x1087e(%rip), %rsi     # 0x16132
movl $0x1c, %edx
movq %r12, %rdi
callq 0x32b0
movb 0x28(%r15), %al
leaq -0x2a(%rbp), %rsi
movb %al, (%rsi)
movl $0x1, %edx
movq %r12, %rdi
callq 0x32b0
leaq -0x2b(%rbp), %rsi
movb $0x27, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x32b0
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x3240
movsbl %al, %esi
movq %r12, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3180
leaq 0x10832(%rip), %rsi     # 0x1614f
movl $0xe, %edx
movq %r14, %rdi
callq 0x32b0
movq %r14, %r12
jmp 0x5810
// File: /workspace/github_cpp_makefile_star2_O1/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, %r12
movl $0x50, %edi
callq 0x3260
movq %rax, %r14
leaq 0x10(%rax), %r15
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq %r15, 0x18(%rax)
movq %r15, 0x10(%rax)
xorl %eax, %eax
movq %rax, 0x20(%r14)
movb $0x66, %r13b
movb %r13b, 0x28(%r14)
leaq 0x30(%r14), %rdi
leaq 0x40(%r14), %rcx
movq %rcx, 0x30(%r14)
movq %rax, 0x38(%r14)
movb $0x0, 0x40(%r14)
movq %r12, %rsi
callq 0x3150
movb %r13b, 0x29(%r14)
cmpq %rbx, %r15
je 0x5b48
movq (%rbx), %rsi
movq %r15, %rdi
movq %rbx, %rdx
callq 0x824e
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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
subq $0x18, %rsp
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, -0x38(%rbp)
testl %edx, %edx
jle 0x5bf9
leaq 0x1074e(%rip), %r12     # 0x1632f
movl %ebx, %r15d
movl $0x2, %edx
movq %r14, %rdi
movq %r12, %rsi
callq 0x32b0
decl %r15d
jne 0x5be4
leaq 0x1055e(%rip), %rsi     # 0x1615e
movl $0xa, %edx
movq %r14, %rdi
callq 0x32b0
movq -0x38(%rbp), %r15
movb 0x30(%r15), %al
leaq -0x29(%rbp), %rsi
movb %al, (%rsi)
movl $0x1, %edx
movq %r14, %rdi
callq 0x32b0
movq %rax, %r12
leaq 0x1215d(%rip), %rsi     # 0x17d8f
movl $0x1, %edx
movq %rax, %rdi
callq 0x32b0
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x3240
movsbl %al, %esi
movq %r12, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3180
movq (%r15), %r13
movq 0x8(%r15), %r15
cmpq %r15, %r13
je 0x5c8f
leal 0x1(%rbx), %r12d
movq (%r13), %rdi
movq %r14, %rsi
movl %r12d, %edx
callq 0x5784
addq $0x8, %r13
cmpq %r15, %r13
jne 0x5c77
movq -0x38(%rbp), %rax
movq 0x18(%rax), %r12
movq 0x20(%rax), %r15
cmpq %r15, %r12
je 0x5cb9
incl %ebx
movq (%r12), %rdi
movq %r14, %rsi
movl %ebx, %edx
callq 0x5bbc
addq $0x8, %r12
cmpq %r15, %r12
jne 0x5ca2
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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)
movl $0x38, %edi
callq 0x3260
movq %rax, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x20(%rax)
movb $0x41, 0x30(%rax)
leaq -0x38(%rbp), %r15
movq %r15, -0x10(%r15)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq -0x48(%rbp), %r14
movq %r14, %rdi
callq 0x4baa
movq %r14, %rdi
callq 0x59d8
movq %rax, -0x28(%rbp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x5d39
movq %rax, (%rsi)
addq $0x8, 0x8(%rbx)
jmp 0x5d45
leaq -0x28(%rbp), %rdx
movq %rbx, %rdi
callq 0x840a
movq -0x48(%rbp), %rdi
cmpq %r15, %rdi
je 0x5d53
callq 0x3230
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x5d6b
movq -0x20(%rbp), %rax
movq %rax, (%rsi)
addq $0x8, 0x8(%rbx)
jmp 0x5d77
leaq -0x20(%rbp), %rdx
movq %rbx, %rdi
callq 0x8544
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r15, %rdi
je 0x5d96
callq 0x3230
movq %rbx, %rdi
callq 0x3470
// File: /workspace/github_cpp_makefile_star2_O1/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 %rbx
subq $0x18, %rsp
movq %rdi, %r15
movq %rdi, -0x30(%rbp)
movq %rsi, -0x28(%rbp)
movq %rdx, -0x20(%rbp)
movl $0x38, %edi
callq 0x3260
movq %rax, %r14
movq %rax, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x20(%rax)
movb $0x49, 0x30(%rax)
movq 0x8(%rax), %rsi
cmpq 0x10(%rax), %rsi
je 0x5df0
movq %r15, (%rsi)
addq $0x8, 0x8(%rbx)
jmp 0x5dfc
leaq -0x30(%rbp), %rdx
movq %rbx, %rdi
callq 0x8544
addq $0x18, %r14
movq 0x20(%rbx), %rsi
cmpq 0x28(%rbx), %rsi
je 0x5e18
movq -0x28(%rbp), %rax
movq %rax, (%rsi)
addq $0x8, 0x20(%rbx)
jmp 0x5e24
leaq -0x28(%rbp), %rdx
movq %r14, %rdi
callq 0x861a
movq 0x20(%rbx), %rsi
cmpq 0x28(%rbx), %rsi
je 0x5e3c
movq -0x20(%rbp), %rax
movq %rax, (%rsi)
addq $0x8, 0x20(%rbx)
jmp 0x5e48
leaq -0x20(%rbp), %rdx
movq %r14, %rdi
callq 0x861a
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movl $0x38, %edi
callq 0x3260
movq %rax, %r15
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x20(%rax)
movb $0x53, 0x30(%rax)
testq %rbx, %rbx
je 0x5ecd
movq %r15, %r12
addq $0x18, %r12
shlq $0x3, %rbx
xorl %r13d, %r13d
movq (%r14,%r13), %rax
movq %rax, -0x30(%rbp)
movq 0x20(%r15), %rsi
cmpq 0x28(%r15), %rsi
je 0x5eb8
movq %rax, (%rsi)
addq $0x8, 0x20(%r15)
jmp 0x5ec4
movq %r12, %rdi
leaq -0x30(%rbp), %rdx
callq 0x861a
addq $0x8, %r13
cmpq %r13, %rbx
jne 0x5e9c
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_O1/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 %rbx
subq $0x28, %rsp
movq %rdi, %r15
movq %rdi, -0x38(%rbp)
movq %rsi, -0x30(%rbp)
movq %rdx, -0x28(%rbp)
movq %rcx, -0x20(%rbp)
movl $0x38, %edi
callq 0x3260
movq %rax, %rbx
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rax)
movups %xmm0, (%rax)
movups %xmm0, 0x10(%rax)
movb $0x4c, 0x30(%rax)
leaq 0x18(%rax), %r14
movq 0x20(%rax), %rsi
cmpq 0x28(%rax), %rsi
je 0x5f36
movq %r15, (%rsi)
addq $0x8, 0x20(%rbx)
jmp 0x5f42
leaq -0x38(%rbp), %rdx
movq %r14, %rdi
callq 0x861a
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x5f5a
movq -0x30(%rbp), %rax
movq %rax, (%rsi)
addq $0x8, 0x8(%rbx)
jmp 0x5f66
leaq -0x30(%rbp), %rdx
movq %rbx, %rdi
callq 0x8544
movq 0x20(%rbx), %rsi
cmpq 0x28(%rbx), %rsi
je 0x5f7e
movq -0x28(%rbp), %rax
movq %rax, (%rsi)
addq $0x8, 0x20(%rbx)
jmp 0x5f8a
leaq -0x28(%rbp), %rdx
movq %r14, %rdi
callq 0x861a
movq 0x20(%rbx), %rsi
cmpq 0x28(%rbx), %rsi
je 0x5fa2
movq -0x20(%rbp), %rax
movq %rax, (%rsi)
addq $0x8, 0x20(%rbx)
jmp 0x5fae
leaq -0x20(%rbp), %rdx
movq %r14, %rdi
callq 0x861a
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movl $0x38, %edi
callq 0x3260
movq %rax, %r15
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x20(%rax)
movb $0x53, %r12b
movb %r12b, 0x30(%rax)
movl $0x38, %edi
callq 0x3260
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x20(%rax)
movb %r12b, 0x30(%rax)
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
movq %rax, %rcx
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x5edf
// File: /workspace/github_cpp_makefile_star2_O1/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
subq $0x10, %rsp
movq %rdi, -0x10(%rbp)
movl $0x38, %edi
callq 0x3260
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x20(%rax)
movb $0x52, 0x30(%rax)
movq %rax, -0x8(%rbp)
movq 0x20(%rax), %rsi
cmpq 0x28(%rax), %rsi
je 0x63e1
movq %rax, (%rsi)
addq $0x8, 0x20(%rax)
jmp 0x63f1
addq $0x18, %rax
leaq -0x8(%rbp), %rdx
movq %rax, %rdi
callq 0x861a
movq -0x8(%rbp), %rdi
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x640d
movq -0x10(%rbp), %rax
movq %rax, (%rsi)
addq $0x8, 0x8(%rdi)
jmp 0x6416
leaq -0x10(%rbp), %rdx
callq 0x8544
movq -0x8(%rbp), %rax
addq $0x10, %rsp
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %r15
movq %rdi, %r14
movq %rdx, -0x38(%rbp)
movl $0x38, %edi
callq 0x3260
movq %rax, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x20(%rax)
movb $0x46, 0x30(%rax)
leaq -0x50(%rbp), %r13
movq %r13, -0x10(%r13)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq -0x60(%rbp), %r14
movq %r14, %rdi
callq 0x4baa
movq %r14, %rdi
callq 0x5a7a
movq %rax, %r12
movq %rbx, %r14
movq -0x60(%rbp), %rdi
cmpq %r13, %rdi
je 0x6494
callq 0x3230
movq %r12, -0x40(%rbp)
movq 0x8(%r14), %rsi
cmpq 0x10(%r14), %rsi
je 0x64ac
movq %r12, (%rsi)
addq $0x8, 0x8(%r14)
jmp 0x64b8
leaq -0x40(%rbp), %rdx
movq %r14, %rdi
callq 0x8544
movl $0x38, %edi
callq 0x3260
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x20(%rax)
movb $0x45, 0x30(%rax)
movq %rax, -0x30(%rbp)
movq %rax, %rdi
movq %r15, %rsi
callq 0x7da8
addq $0x18, %rbx
movq 0x20(%r14), %rsi
cmpq 0x28(%r14), %rsi
je 0x64ff
movq -0x30(%rbp), %rax
movq %rax, (%rsi)
addq $0x8, 0x20(%r14)
jmp 0x650b
leaq -0x30(%rbp), %rdx
movq %rbx, %rdi
callq 0x861a
movq 0x20(%r14), %rsi
cmpq 0x28(%r14), %rsi
je 0x6523
movq -0x38(%rbp), %rax
movq %rax, (%rsi)
addq $0x8, 0x20(%r14)
jmp 0x652f
leaq -0x38(%rbp), %rdx
movq %rbx, %rdi
callq 0x861a
movq %r14, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x60(%rbp), %rdi
cmpq %r13, %rdi
je 0x6552
callq 0x3230
movq %rbx, %rdi
callq 0x3470
// File: /workspace/github_cpp_makefile_star2_O1/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
movl $0x38, %edi
callq 0x3260
movq %rax, %r14
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x20(%rax)
movb $0x72, 0x30(%rax)
movq (%rbx), %r12
cmpq %rbx, %r12
je 0x65c8
leaq -0x28(%rbp), %r15
movq 0x10(%r12), %rax
movq %rax, -0x28(%rbp)
movq 0x8(%r14), %rsi
cmpq 0x10(%r14), %rsi
je 0x65b4
movq %rax, (%rsi)
addq $0x8, 0x8(%r14)
jmp 0x65bf
movq %r14, %rdi
movq %r15, %rdx
callq 0x8544
movq (%r12), %r12
cmpq %rbx, %r12
jne 0x6597
movq %r14, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 %r14
pushq %rbx
subq $0x40, %rsp
movq %rdx, %r14
movq %rsi, %rax
movq %rdi, %rbx
movq %rsi, -0x18(%rbp)
leaq -0x40(%rbp), %rcx
movl $0x0, (%rcx)
xorl %edx, %edx
movq %rdx, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rdx, 0x20(%rcx)
leaq -0x48(%rbp), %rsi
movq %rax, %rdi
callq 0x6744
movq -0x18(%rbp), %rdi
leaq -0x48(%rbp), %rsi
movq %r14, %rdx
callq 0x696b
leaq -0x48(%rbp), %rdi
leaq -0x18(%rbp), %rsi
callq 0x7e80
leaq 0x10(%rbx), %rcx
movq %rcx, (%rbx)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x4baa
leaq -0x48(%rbp), %rdi
callq 0x808e
movq %rbx, %rax
addq $0x40, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
leaq -0x48(%rbp), %rdi
callq 0x808e
movq %rbx, %rdi
callq 0x3470