LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/thunlp[P]KB2E/TransR/Test_TransR.cpp
// Function: vec_output(std::vector<double, std::allocator<double>>)
void vec_output(vector<double> a)
{
	for (int i=0; i<a.size(); i++)
	{
		cout<<a[i]<<"\t";
		if (i%5==4)
			cout<<endl;
	}
	cout<<"-------------------------"<<endl;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
pushq $0x4
popq %rbp
xorl %r14d, %r14d
movq 0x983f(%rip), %r15      # 0xbfd8
leaq 0x58d5(%rip), %r12      # 0x8075
movl %r14d, %eax
xorl %edx, %edx
pushq $0x5
popq %rcx
divl %ecx
movq (%rbx), %rcx
movq 0x8(%rbx), %rdx
subq %rcx, %rdx
sarq $0x3, %rdx
cmpq %r14, %rdx
jbe 0x27f1
leal (%rax,%rax,4), %r13d
addl %ebp, %r13d
movsd (%rcx,%r14,8), %xmm0
movq %r15, %rdi
callq 0x2200
movq %rax, %rdi
movq %r12, %rsi
callq 0x2150
testl %r13d, %r13d
jne 0x27ea
movq %r15, %rdi
callq 0x20a0
incq %r14
decl %ebp
jmp 0x27a0
movq 0x97e0(%rip), %rdi      # 0xbfd8
leaq 0x5878(%rip), %rsi      # 0x8077
callq 0x2150
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x20a0
// File: /workspace/github_cpp_makefile_star2_O2/thunlp[P]KB2E/TransR/Test_TransR.cpp
// Function: Test::calc_sum(int, int, int)
double calc_sum(int e1,int e2,int rel)
    {
        vector<double> e1_vec;
        e1_vec.resize(m);
        vector<double> e2_vec;
        e2_vec.resize(m);
        for (int ii=0; ii<m; ii++)
            for (int jj=0; jj<n; jj++)
            {
                e1_vec[ii]+=A[rel][jj][ii]*entity_vec[e1][jj];
                e2_vec[ii]+=A[rel][jj][ii]*entity_vec[e2][jj];
            }
        double sum=0;
        for (int ii=0; ii<m; ii++)
            sum+=-fabs(e2_vec[ii]-e1_vec[ii]-relation_vec[rel][ii]);
        return sum;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %ecx, %r15d
movl %edx, %ebp
movl %esi, %r14d
movq %rdi, %rbx
xorpd %xmm0, %xmm0
leaq 0x30(%rsp), %rdi
movapd %xmm0, (%rdi)
andq $0x0, 0x10(%rdi)
movslq 0x72ec(%rip), %rsi      # 0xc160
callq 0x4dda
leaq 0x10(%rsp), %rdi
xorpd %xmm0, %xmm0
movapd %xmm0, (%rdi)
andq $0x0, 0x10(%rdi)
movslq 0x72ce(%rip), %rsi      # 0xc160
callq 0x4dda
movl 0x72c3(%rip), %eax      # 0xc160
movl 0x72c1(%rip), %edx      # 0xc164
movslq %r15d, %rcx
xorl %esi, %esi
testl %edx, %edx
cmovlel %esi, %edx
movslq %r14d, %rdi
testl %eax, %eax
cmovlel %esi, %eax
movslq %ebp, %r8
imulq $0x18, %rcx, %rcx
imulq $0x18, %rdi, %rdi
movq %rdi, 0x8(%rsp)
imulq $0x18, %r8, %r8
cmpq %rax, %rsi
je 0x4f49
movq 0xd8(%rbx), %r9
addq %rcx, %r9
movq 0x18(%rbx), %r10
movq 0x8(%rsp), %rdi
leaq (%r10,%rdi), %r11
movq 0x30(%rsp), %r14
addq %r8, %r10
movq 0x10(%rsp), %r15
xorl %r12d, %r12d
xorl %r13d, %r13d
cmpq %r13, %rdx
je 0x4f44
movq (%r9), %rbp
movq (%rbp,%r12), %rbp
movsd (%rbp,%rsi,8), %xmm0
movq (%r11), %rdi
mulsd (%rdi,%r13,8), %xmm0
addsd (%r14,%rsi,8), %xmm0
movsd %xmm0, (%r14,%rsi,8)
movsd (%rbp,%rsi,8), %xmm0
movq (%r10), %rdi
mulsd (%rdi,%r13,8), %xmm0
addsd (%r15,%rsi,8), %xmm0
movsd %xmm0, (%r15,%rsi,8)
incq %r13
addq $0x18, %r12
jmp 0x4ef8
incq %rsi
jmp 0x4ec9
movq 0x10(%rsp), %rdx
addq (%rbx), %rcx
movq 0x30(%rsp), %rsi
xorpd %xmm2, %xmm2
xorl %edi, %edi
movapd 0x30ec(%rip), %xmm0     # 0x8050
cmpq %rdi, %rax
je 0x4f89
movsd (%rdx,%rdi,8), %xmm1
subsd (%rsi,%rdi,8), %xmm1
movq (%rcx), %r8
subsd (%r8,%rdi,8), %xmm1
andpd %xmm0, %xmm1
subsd %xmm1, %xmm2
incq %rdi
jmp 0x4f64
leaq 0x10(%rsp), %rdi
movsd %xmm2, 0x8(%rsp)
callq 0x47de
leaq 0x30(%rsp), %rdi
callq 0x47de
movsd 0x8(%rsp), %xmm0
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x47de
jmp 0x4fca
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x47de
movq %rbx, %rdi
callq 0x2240
// File: /workspace/github_cpp_makefile_star2_O2/lunasorcery[P]succ/main.cpp
// Function: replaceTabsWithSpaces(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
static std::string replaceTabsWithSpaces(const std::string& str)
{
	const std::string tabAsSpaces = repeatChar(' ', kTabWidth);

	std::string result;
	for (const auto& c : str) {
		if (c == '\t') {
			result += tabAsSpaces;
		} else {
			result += c;
		}
	}
	return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r15
movq %rdi, %rbx
leaq -0x48(%rbp), %r14
pushq $0x20
popq %rsi
pushq $0x4
popq %rdx
movq %r14, %rdi
callq 0x5074
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
andq $0x0, 0x8(%rbx)
movb $0x0, 0x10(%rbx)
movq (%r15), %r12
movq 0x8(%r15), %r15
xorl %r13d, %r13d
cmpq %r13, %r15
je 0x503d
movb (%r12,%r13), %al
cmpb $0x9, %al
jne 0x502d
movq %rbx, %rdi
movq %r14, %rsi
callq 0x12740
jmp 0x5038
movsbl %al, %esi
movq %rbx, %rdi
callq 0x7456
incq %r13
jmp 0x5013
leaq -0x48(%rbp), %rdi
callq 0x516c
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x516c
leaq -0x48(%rbp), %rdi
callq 0x516c
movq %r14, %rdi
callq 0x43b0
// File: /workspace/github_cpp_makefile_star2_O2/lunasorcery[P]succ/main.cpp
// Function: repeatChar[abi:cxx11](char, unsigned long)
static std::string repeatChar(char c, size_t count)
{
	std::string buffer;
	buffer.resize(count);
	memset(buffer.data(), c ? c : ' ', count);
	return buffer;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
movl %esi, %r15d
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, (%rdi)
andq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movq %rdx, %rsi
callq 0x127c6
movq (%rbx), %rdi
movzbl %r15b, %esi
movq %r14, %rdx
callq 0x4140
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x516c
movq %r14, %rdi
callq 0x43b0
// File: /workspace/github_cpp_makefile_star2_O2/lunasorcery[P]succ/main.cpp
// Function: computePositionAccountingForTabs(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned long)
static size_t computePositionAccountingForTabs(const std::string& str, size_t pos)
{
	size_t adjustedPosition = 0;
	for (size_t i = 0; i < pos; ++i) {
		if (str[i] == '\t') {
			adjustedPosition += kTabWidth;
		} else {
			adjustedPosition++;
		}
	}
	return adjustedPosition;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq (%rdi), %rcx
xorl %eax, %eax
xorl %edx, %edx
cmpq %rdx, %rsi
je 0x50f8
xorl %edi, %edi
cmpb $0x9, (%rcx,%rdx)
sete %dil
leaq (%rdi,%rdi,2), %rdi
addq %rdi, %rax
incq %rax
incq %rdx
jmp 0x50da
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/canzarlab[P]Trajan/src/match.cpp
// Function: path_tree(array2d&, tree const&, tree const&, int, int, int)
int path_tree(array2d& dp, const tree& t1, const tree& t2, const int lx, int x, int y)
{
    // trivial case: empty path
    if (x == lx)
        return 0;

    // memoization
    int& sol = dp(x, y);
    if (sol != NINF)
        return sol;

    // TODO: select the correct child
    // x's only child
    int w = t1.adj[x].front();

    // delete path node
    sol = max(sol, path_tree(dp, t1, t2, lx, w, y));
    for (int z : t2.adj[y])
    {
        // match x and y
        sol = max(sol, 1 + path_tree(dp, t1, t2, lx, w, z));
        // delete tree node
        sol = max(sol, path_tree(dp, t1, t2, lx, x, z));
    }
    return sol;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, 0x30(%rsp)
movq %rsi, 0x28(%rsp)
movq %rdi, 0x8(%rsp)
xorl %eax, %eax
movl %r8d, (%rsp)
movl %ecx, 0x4(%rsp)
cmpl %ecx, %r8d
je 0x3762
movl %r9d, %ebp
movq 0x8(%rsp), %rcx
movl 0x4(%rcx), %eax
imull (%rsp), %eax
addl %r9d, %eax
cltq
movq 0x8(%rcx), %rcx
movq %rax, 0x20(%rsp)
movq %rcx, 0x18(%rsp)
movl (%rcx,%rax,4), %eax
movl %eax, %ecx
negl %ecx
jno 0x3762
movslq (%rsp), %rax
imulq $0x18, %rax, %rax
movq 0x28(%rsp), %rsi
movq 0x48(%rsi,%rax), %rax
movl (%rax), %r8d
movq 0x8(%rsp), %rdi
movq 0x30(%rsp), %rbx
movq %rbx, %rdx
movl 0x4(%rsp), %ecx
movl %r8d, 0x10(%rsp)
movl %ebp, %r9d
callq 0x361c
movq 0x20(%rsp), %rdx
movq 0x18(%rsp), %rsi
movl (%rsi,%rdx,4), %ecx
cmpl %eax, %ecx
cmovgl %ecx, %eax
movl %eax, (%rsi,%rdx,4)
movslq %ebp, %rcx
imulq $0x18, %rcx, %rcx
movq 0x48(%rbx,%rcx), %rdx
movq 0x50(%rbx,%rcx), %rcx
movq %rcx, 0x38(%rsp)
movq 0x8(%rsp), %r15
movq 0x28(%rsp), %r13
movq 0x30(%rsp), %rbp
movl 0x4(%rsp), %r12d
movq 0x20(%rsp), %r14
movq 0x18(%rsp), %rbx
cmpq 0x38(%rsp), %rdx
je 0x3762
movl (%rdx), %r9d
movl %r9d, 0x14(%rsp)
movq %r15, %rdi
movq %r13, %rsi
movq %rdx, 0x40(%rsp)
movq %rbp, %rdx
movl %r12d, %ecx
movl 0x10(%rsp), %r8d
callq 0x361c
incl %eax
movl (%rbx,%r14,4), %ecx
cmpl %eax, %ecx
cmovgl %ecx, %eax
movl %eax, (%rbx,%r14,4)
movq %r15, %rdi
movq %r13, %rsi
movq %rbp, %rdx
movl %r12d, %ecx
movl (%rsp), %r8d
movl 0x14(%rsp), %r9d
callq 0x361c
movq 0x40(%rsp), %rdx
movl (%rbx,%r14,4), %ecx
cmpl %eax, %ecx
cmovgl %ecx, %eax
movl %eax, (%rbx,%r14,4)
addq $0x4, %rdx
jmp 0x36f7
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/canzarlab[P]Trajan/src/match.cpp
// Function: bipartite(array2d const&, array2d&, array2d&, int, unsigned long long)
int bipartite(const array2d& D, array2d& dp, array2d& pdp, int k, mask m)
{
    // nothing left to match
    if (k == D.n || m == 0)
        return 0;

    // memoization
    int& sol = dp(k, m);
    if (sol != NINF)
        return sol;

    // don't match kth tree with anyone
    sol = bipartite(D, dp, pdp, k + 1, m);

    // try to match kth tree in t1 with any avaliable tree in t2
    for (mask mi = m; mi != 0; mi -= ls(mi))
    {
        int nsol = D(k, tz(mi)) + bipartite(D, dp, pdp, k + 1, m ^ ls(mi));
        if (nsol > sol)
            sol = nsol, pdp(k, m) = tz(mi);
    }
    return sol;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdx, 0x18(%rsp)
movq %rsi, 0x10(%rsp)
xorl %eax, %eax
movq %r8, 0x8(%rsp)
testq %r8, %r8
je 0x3a79
movl %ecx, %ebp
cmpl %ecx, (%rdi)
je 0x3a79
movq 0x10(%rsp), %rcx
movl 0x4(%rcx), %eax
imull %ebp, %eax
addl 0x8(%rsp), %eax
movslq %eax, %r15
movq 0x8(%rcx), %r14
movl (%r14,%r15,4), %eax
movl %eax, %ecx
negl %ecx
jno 0x3a79
leal 0x1(%rbp), %ecx
movq %rdi, 0x28(%rsp)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movl %ecx, 0x24(%rsp)
movq 0x8(%rsp), %r12
movq %r12, %r8
callq 0x396f
movl %eax, (%r14,%r15,4)
testq %r12, %r12
je 0x3a75
bsfq %r12, %rcx
movq 0x28(%rsp), %rdi
movl 0x4(%rdi), %eax
imull %ebp, %eax
movq %rcx, 0x30(%rsp)
addl %ecx, %eax
cltq
movq 0x8(%rdi), %rcx
movq %r15, %r13
movq %rbp, %r15
movl (%rcx,%rax,4), %ebp
movq %r12, %rbx
negq %rbx
andq %r12, %rbx
movq %rbx, %r8
xorq 0x8(%rsp), %r8
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movl 0x24(%rsp), %ecx
callq 0x396f
addl %ebp, %eax
movq %r15, %rbp
movq %r13, %r15
cmpl (%r14,%r13,4), %eax
jle 0x3a6d
movl %eax, (%r14,%r15,4)
movq 0x18(%rsp), %rcx
movl 0x4(%rcx), %eax
imull %ebp, %eax
addl 0x8(%rsp), %eax
cltq
movq 0x8(%rcx), %rcx
movq 0x30(%rsp), %rdx
movl %edx, (%rcx,%rax,4)
subq %rbx, %r12
jmp 0x39ec
movl (%r14,%r15,4), %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/canzarlab[P]Trajan/src/match.cpp
// Function: recover_matching_aux(tree const&, tree const&, std::vector<std::pair<int, int>, std::allocator<std::pair<int, int>>>&, array2d const&, int, int, int, int)
void recover_matching_aux(const tree& t1, const tree& t2, vector<pair<int, int>>& matching, const array2d& tdp, const int lx, const int ly, int x, int y)
{
    if (x == lx || y == ly)
        return;

    switch (tdp(x, y))
    {
        case DEL_1:
            recover_matching_aux(t1, t2, matching, tdp, lx, ly, t1.par[x], y);
            break;
        case DEL_2:
            recover_matching_aux(t1, t2, matching, tdp, lx, ly, x, t2.par[y]);
            break;
        case MATCH:
            matching.emplace_back(x, y);
            recover_matching_aux(t1, t2, matching, tdp, lx, ly, t1.par[x], t2.par[y]);
            break;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r9d, %ebx
movl %r8d, %ebp
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r13
movl 0x48(%rsp), %eax
movl 0x40(%rsp), %edx
movl 0x4(%rcx), %ecx
movq 0x8(%r14), %rsi
movl %ecx, %edi
imull %edx, %edi
movl %edx, 0x4(%rsp)
movl %eax, (%rsp)
cmpl %ebp, %edx
je 0x45c1
cmpl %ebx, %eax
je 0x45c1
leal (%rdi,%rax), %r8d
movslq %r8d, %r8
movl (%rsi,%r8,4), %r8d
cmpl $0x1, %r8d
jne 0x455f
cltq
movl 0x5f14(%r12,%rax,4), %eax
jmp 0x452f
cmpl $0x2, %r8d
je 0x4577
testl %r8d, %r8d
jne 0x45c1
movslq %edx, %rdx
movl 0x5f14(%r13,%rdx,4), %edx
jmp 0x452a
leaq 0x4(%rsp), %rsi
movq %rsp, %rdx
movq %r15, %rdi
callq 0x53d8
leaq 0x4(%rsp), %rax
movslq (%rax), %rax
movl 0x5f14(%r13,%rax,4), %eax
movq %rsp, %rcx
movslq (%rcx), %rcx
movl 0x5f14(%r12,%rcx,4), %r10d
movq %r13, %rdi
movq %r12, %rsi
movq %r15, %rdx
movq %r14, %rcx
movl %ebp, %r8d
movl %ebx, %r9d
pushq %r10
pushq %rax
callq 0x44fe
popq %rax
popq %rcx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/canzarlab[P]Trajan/src/match.cpp
// Function: array2d::transpose() const
array2d transpose() const
    {
        array2d D(m, n);
        for (int i = 0; i < n; ++i)
            for (int j = 0; j < m; ++j)
                D(j, i) = (*this)(i, j);
        return D;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movl (%rsi), %edx
movl 0x4(%rsi), %esi
movl $0x80000000, %ecx       # imm = 0x80000000
callq 0x517e
xorl %eax, %eax
cmpl (%r14), %eax
jge 0x5157
movq 0x8(%r14), %rcx
movq 0x8(%rbx), %rdx
xorl %esi, %esi
movl 0x4(%r14), %edi
cmpl %edi, %esi
jge 0x5153
imull %eax, %edi
addl %esi, %edi
movslq %edi, %rdi
movl (%rcx,%rdi,4), %edi
movl 0x4(%rbx), %r8d
imull %esi, %r8d
addl %eax, %r8d
movslq %r8d, %r8
movl %edi, (%rdx,%r8,4)
incl %esi
jmp 0x512a
incl %eax
jmp 0x511b
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O2/canzarlab[P]Trajan/src/read_csv.cpp
// Function: CSVReader::getStringData[abi:cxx11](int, int)
std::vector<std::vector<std::string> > CSVReader::getStringData(int from_row, int to_row)
{
	std::ifstream file(fileName);

	std::vector<std::vector<std::string> > dataList;

	std::string line = "";
	// Iterate through each line and split the content using delimeter
    int count = 0;
	while (getline(file, line))
	{
        if (count >= to_row) {
            break;
        }
		std::vector<std::string> vec;
        if (count >= from_row){
            boost::algorithm::split(vec, line, boost::is_any_of(delimeter));
            dataList.push_back(vec);
        }
        count ++;
	}
	// Close the File
	file.close();

	return dataList;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x268, %rsp            # imm = 0x268
movl %ecx, %ebp
movl %edx, %r14d
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x60(%rsp), %rdi
pushq $0x8
popq %rdx
callq 0x3360
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq %rbx, (%rsp)
andq $0x0, 0x10(%rbx)
leaq 0x2619(%rip), %rsi      # 0xa068
leaq 0x28(%rsp), %rdi
leaq 0x10(%rsp), %rdx
callq 0x5a0c
addq $0x20, %r15
movq %r15, 0x8(%rsp)
xorl %r12d, %r12d
leaq 0x28(%rsp), %r13
leaq 0x10(%rsp), %rbx
leaq 0x48(%rsp), %r15
leaq 0x60(%rsp), %rdi
movq %r13, %rsi
callq 0x3070
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x7aeb
cmpl %ebp, %r12d
jge 0x7aeb
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
andq $0x0, 0x20(%rsp)
cmpl %r14d, %r12d
jl 0x7ade
movq %r15, %rdi
movq 0x8(%rsp), %rsi
callq 0x8024
movq %rbx, %rdi
movq %r13, %rsi
movq %r15, %rdx
pushq $0x1
popq %rcx
callq 0x7fa0
movq %r15, %rdi
callq 0x804e
movq (%rsp), %rdi
movq %rbx, %rsi
callq 0x8062
incl %r12d
movq %rbx, %rdi
callq 0x5f7a
jmp 0x7a79
leaq 0x60(%rsp), %rdi
callq 0x3080
leaq 0x28(%rsp), %rdi
callq 0x3100
leaq 0x60(%rsp), %rdi
callq 0x3090
movq (%rsp), %rax
addq $0x268, %rsp            # imm = 0x268
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x7b44
movq %rax, %rbx
jmp 0x7b51
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x804e
jmp 0x7b38
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x5f7a
jmp 0x7b47
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x3100
movq (%rsp), %rdi
callq 0x808e
leaq 0x60(%rsp), %rdi
callq 0x3090
movq %rbx, %rdi
callq 0x33e0
// File: /workspace/github_cpp_makefile_star2_O2/canzarlab[P]Trajan/src/read_csv.cpp
// Function: CSVReader::getDoubleFromStringData(int, int)
std::vector<std::vector<double> > CSVReader::getDoubleFromStringData(int from_row, int to_row) {
    vector<vector<double> > data;
    std::vector<std::vector<string> > dataList = getStringData();
    for (int i = from_row; i < std::min(to_row, (int) dataList.size()); ++i)
    {
        vector<double> temp;
        for (const auto & u: dataList.at(i))
        {
            temp.push_back(std::stod(u));
        }
        data.push_back(temp);
    }
    return data;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %ecx, %ebp
movl %edx, %r14d
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq %rdi, 0x8(%rsp)
andq $0x0, 0x10(%rdi)
leaq 0x18(%rsp), %rdi
xorl %edx, %edx
movl $0xf4240, %ecx          # imm = 0xF4240
callq 0x7a10
movslq %r14d, %r14
leaq 0x30(%rsp), %r12
leaq 0x10(%rsp), %r13
movq 0x20(%rsp), %rax
subq 0x18(%rsp), %rax
cqto
pushq $0x18
popq %rcx
idivq %rcx
cmpl %ebp, %eax
cmovgel %ebp, %eax
cltq
cmpq %rax, %r14
jge 0x7c2d
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
andq $0x0, 0x40(%rsp)
leaq 0x18(%rsp), %rdi
movq %r14, %rsi
callq 0x80b0
movq (%rax), %r15
movq 0x8(%rax), %rbx
cmpq %rbx, %r15
je 0x7c13
movq %r15, %rdi
xorl %esi, %esi
callq 0x80ce
movsd %xmm0, 0x10(%rsp)
movq %r12, %rdi
movq %r13, %rsi
callq 0x9b56
addq $0x20, %r15
jmp 0x7bed
movq 0x8(%rsp), %rdi
movq %r12, %rsi
callq 0x80e8
movq %r12, %rdi
callq 0x79a8
incq %r14
jmp 0x7bad
leaq 0x18(%rsp), %rdi
callq 0x808e
movq 0x8(%rsp), %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0x7c6b
jmp 0x7c54
jmp 0x7c54
movq %rax, %r14
leaq 0x30(%rsp), %rdi
callq 0x79a8
leaq 0x18(%rsp), %rdi
callq 0x808e
movq 0x8(%rsp), %rdi
callq 0x5a94
movq %r14, %rdi
callq 0x33e0
nop
// File: /workspace/github_cpp_makefile_star2_O2/kipa00[P]AplusB-mc/compiler/main.cpp
// Function: traverse_world(world const&, std::function<void (int, int, int)>)
void traverse_world(const world &w, std::function<void(int, int, int)> f) {
	int cx, cy, cz;
	for (cz=0; cz<32; ++cz) {
		for (cx=0; cx<32; ++cx) {
			for (cy=0; cy<16; ++cy) {
				if (w.has_world_data(cx, cy, cz)) {
					int x, y, z;
					for (z=0; z<16; ++z) {
						for (x=0; x<16; ++x) {
							for (y=0; y<16; ++y) {
								f((cx << 4) | x, (cy << 4) | y, (cz << 4) | z);
							}
						}
					}
				}
			}
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %rbx
movq %rdi, 0x20(%rsp)
xorl %ecx, %ecx
cmpl $0x20, %ecx
je 0x2440
movl %ecx, %eax
shll $0x4, %eax
movl %eax, 0x14(%rsp)
xorl %esi, %esi
movl %ecx, 0x8(%rsp)
cmpl $0x20, %esi
je 0x2439
movl %esi, %eax
shll $0x4, %eax
movl %eax, 0x1c(%rsp)
xorl %r12d, %r12d
xorl %edx, %edx
movl %esi, 0xc(%rsp)
cmpl $0x10, %edx
je 0x2432
movq 0x20(%rsp), %rdi
movl %edx, 0x10(%rsp)
callq 0x4e7c
testb %al, %al
je 0x241e
xorl %r13d, %r13d
cmpl $0x10, %r13d
je 0x241e
movl %r13d, 0x18(%rsp)
orl 0x14(%rsp), %r13d
xorl %ebp, %ebp
cmpl $0x10, %ebp
je 0x2414
movl %ebp, %r14d
orl 0x1c(%rsp), %r14d
xorl %r15d, %r15d
cmpl $0x10, %r15d
je 0x2410
leal (%r12,%r15), %edx
movq %rbx, %rdi
movl %r14d, %esi
movl %r13d, %ecx
callq 0x2f9a
incl %r15d
jmp 0x23f3
incl %ebp
jmp 0x23e3
movl 0x18(%rsp), %r13d
incl %r13d
jmp 0x23d1
movl 0x10(%rsp), %edx
incl %edx
addl $0x10, %r12d
movl 0x8(%rsp), %ecx
movl 0xc(%rsp), %esi
jmp 0x23b7
incl %esi
jmp 0x239c
incl %ecx
jmp 0x2384
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/kipa00[P]AplusB-mc/compiler/main.cpp
// Function: write_int(_IO_FILE*, unsigned int)
void write_int(FILE *fp, u32 x) {
	write_byte(fp, x >> 24);
	write_byte(fp, (x >> 16) & 255);
	write_byte(fp, (x >> 8) & 255);
	write_byte(fp, x & 255);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %esi, %ebx
movq %rdi, %r14
shrl $0x18, %esi
callq 0x244f
movl %ebx, %esi
shrl $0x10, %esi
movl $0xff, %ebp
andl %ebp, %esi
movq %r14, %rdi
callq 0x244f
movl %ebx, %esi
shrl $0x8, %esi
andl %ebp, %esi
movq %r14, %rdi
callq 0x244f
andl %ebp, %ebx
movq %r14, %rdi
movl %ebx, %esi
popq %rbx
popq %r14
popq %rbp
jmp 0x244f
// File: /workspace/github_cpp_makefile_star2_O2/kipa00[P]AplusB-mc/compiler/chunk.cpp
// Function: need_progress(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
int need_progress(int stage, string name) {
	if (stage == 0 && name == "") return 1;
	else if (stage == 1 && name == "Level") return 2;
	else if (stage == 2 && name == "Sections") return 3;
	else if (stage == 3 && name == "Palette") return 4;
	else if (stage == 4 && name == "Properties") return 5;
	return stage;
}

// Assembly:
pushq %rbx
movl %edi, %ebx
cmpl $0x4, %edi
ja 0x3a53
movl %ebx, %eax
leaq 0x4917(%rip), %rcx      # 0x82e0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x4b7b(%rip), %rax      # 0x8554
movq %rsi, %rdi
movq %rax, %rsi
callq 0x49b9
testb %al, %al
je 0x3a53
pushq $0x1
jmp 0x3a52
leaq 0x49a4(%rip), %rax      # 0x8397
movq %rsi, %rdi
movq %rax, %rsi
callq 0x49b9
testb %al, %al
je 0x3a53
pushq $0x5
jmp 0x3a52
leaq 0x4979(%rip), %rax      # 0x8386
movq %rsi, %rdi
movq %rax, %rsi
callq 0x49b9
testb %al, %al
je 0x3a53
pushq $0x3
jmp 0x3a52
leaq 0x4968(%rip), %rax      # 0x838f
movq %rsi, %rdi
movq %rax, %rsi
callq 0x49b9
testb %al, %al
je 0x3a53
pushq $0x4
jmp 0x3a52
leaq 0x493f(%rip), %rax      # 0x8380
movq %rsi, %rdi
movq %rax, %rsi
callq 0x49b9
testb %al, %al
je 0x3a53
pushq $0x2
popq %rbx
movl %ebx, %eax
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/kipa00[P]AplusB-mc/compiler/chunk.cpp
// Function: chunk::init()
void chunk::init() {
	this->block = 0;
	this->y = 255;
	this->palette.clear();
	this->world_data = new byte *[16];
	this->attr = 0;
	memset(this->world_data, 0, sizeof(byte *) * 16);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
andl $0x0, 0xc(%rdi)
movl $0xff, 0x4(%rdi)
movq 0x18(%rdi), %rax
cmpq %rax, 0x20(%rdi)
je 0x4155
movq %rax, 0x20(%rbx)
movl $0x80, %edi
callq 0x2030
movq %rax, 0x30(%rbx)
andl $0x0, 0x10(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x70(%rax)
movups %xmm0, 0x60(%rax)
movups %xmm0, 0x50(%rax)
movups %xmm0, 0x40(%rax)
movups %xmm0, 0x30(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, (%rax)
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/kipa00[P]AplusB-mc/compiler/chunk.cpp
// Function: chunk::flush_section()
void chunk::flush_section() {
	if (0 <= this->y && this->y < 16) {
		if (!this->br.init_needed()) {
			if (this->world_data[this->y]) {
				fprintf(stderr, "Error: duplicate section y = %d; did you edit the world using hex editor?\n", this->y);
				throw DUPLICATE_Y_SECTION_ERROR;
			}
			this->world_data[this->y] = new byte[4096];
			const int needed_bit = this->palette.size() < 2U ? 4 : std::max(4, 32 - __builtin_clz((int)this->palette.size() - 1));
			for (int i=0; i<4096; ++i) {
				int x = this->br.read(needed_bit);
				this->world_data[this->y][i] = this->palette[x];
			}
		}
	}
	this->block = 0;
	this->y = 255;
	this->palette.clear();
	this->br.init(nullptr);
#ifdef CHUNK_DEBUG
	printf("section end\n");
#endif
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
cmpl $0xf, 0x4(%rdi)
ja 0x41b9
leaq 0x38(%rbx), %r14
movq %r14, %rdi
callq 0x4ac2
testb %al, %al
je 0x41ea
andl $0x0, 0xc(%rbx)
movl $0xff, 0x4(%rbx)
movq 0x18(%rbx), %rax
cmpq %rax, 0x20(%rbx)
je 0x41d2
movq %rax, 0x20(%rbx)
addq $0x38, %rbx
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x4ab8
movq 0x30(%rbx), %r12
movslq 0x4(%rbx), %r15
cmpq $0x0, (%r12,%r15,8)
jne 0x426a
movl $0x1000, %edi           # imm = 0x1000
callq 0x2030
movq %rax, (%r12,%r15,8)
movq 0x20(%rbx), %rax
subq 0x18(%rbx), %rax
sarq $0x2, %rax
cmpq $0x2, %rax
jae 0x421e
pushq $0x4
popq %rbp
jmp 0x4232
decl %eax
bsrl %eax, %eax
xorl $-0x20, %eax
addl $0x21, %eax
cmpl $0x5, %eax
pushq $0x4
popq %rbp
cmovael %eax, %ebp
xorl %r15d, %r15d
cmpq $0x1000, %r15           # imm = 0x1000
je 0x41b9
movq %r14, %rdi
movl %ebp, %esi
callq 0x4a2c
cltq
movq 0x18(%rbx), %rcx
movq 0x30(%rbx), %rdx
movb (%rcx,%rax,4), %al
movslq 0x4(%rbx), %rcx
movq (%rdx,%rcx,8), %rcx
movb %al, (%rcx,%r15)
incq %r15
jmp 0x4235
movq 0x7d6f(%rip), %rax      # 0xbfe0
movq (%rax), %rdi
leaq 0x42da(%rip), %rsi      # 0x8555
movl %r15d, %edx
xorl %eax, %eax
callq 0x21f0
pushq $0x4
popq %rdi
callq 0x20b0
movl $0xfffffffd, (%rax)     # imm = 0xFFFFFFFD
movq 0x7d2e(%rip), %rsi      # 0xbfc8
movq %rax, %rdi
xorl %edx, %edx
callq 0x2230
// File: /workspace/github_cpp_makefile_star2_O2/kipa00[P]AplusB-mc/compiler/chunk.cpp
// Function: chunk::flush_block()
void chunk::flush_block() {
	this->palette.push_back(this->block);
	// attribute validation
	const int attributes[] = {
		0, 0, 0, 0, ATTR_POWER | ATTR_EAST | ATTR_WEST | ATTR_SOUTH | ATTR_NORTH /* wire */,
		ATTR_LIT /* torch */, ATTR_LIT | ATTR_FACING /* wall torch */,
		ATTR_FACING | ATTR_MODE | ATTR_POWERED /* comparator */,
		ATTR_DELAY | ATTR_FACING | ATTR_LOCKED | ATTR_POWERED,
		ATTR_DELAY | ATTR_FACING | ATTR_LOCKED | ATTR_POWERED /* repeater */,
		ATTR_LIT /* lamp */, ATTR_FACE | ATTR_FACING | ATTR_POWERED /* lever */, 0
	};
	if (attributes[this->block >> 4] != this->attr) {
		fprintf(stderr, "Error: block has missing or extra attribute; did you edit the world using hex editor?\n");
		throw ATTR_MISMATCH_ERROR;
	}
#ifdef CHUNK_DEBUG
	printf("block = %02X\n", this->block);
#endif
	this->block = 0;
	this->attr = 0;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
addq $0x18, %rdi
leaq 0xc(%rbx), %rsi
callq 0x300a
movl 0xc(%rbx), %eax
sarl $0x4, %eax
cltq
leaq 0x406c(%rip), %rcx      # 0x8330
movl (%rcx,%rax,4), %eax
cmpl 0x10(%rbx), %eax
jne 0x42d3
andq $0x0, 0xc(%rbx)
popq %rbx
retq
movq 0x7d06(%rip), %rax      # 0xbfe0
movq (%rax), %rcx
leaq 0x42bc(%rip), %rdi      # 0x85a0
pushq $0x56
popq %rsi
pushq $0x1
popq %rdx
callq 0x2260
pushq $0x4
popq %rdi
callq 0x20b0
movl $0xfffffff8, (%rax)     # imm = 0xFFFFFFF8
movq 0x7cc4(%rip), %rsi      # 0xbfc8
movq %rax, %rdi
xorl %edx, %edx
callq 0x2230
// File: /workspace/github_cpp_makefile_star2_O2/kipa00[P]AplusB-mc/compiler/chunk.cpp
// Function: chunk::~chunk()
chunk::~chunk() {
	if (this->world_data) {
		int i;
		for (i=0; i<16; ++i) {
			if (this->world_data[i]) {
				delete [](this->world_data[i]);
			}
		}
		delete []this->world_data;
		this->world_data = nullptr;
	}
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpq $0x0, 0x30(%rdi)
je 0x488d
xorl %r14d, %r14d
movq 0x30(%rbx), %rdi
cmpq $0x10, %r14
je 0x487e
movq (%rdi,%r14,8), %rdi
testq %rdi, %rdi
je 0x4879
callq 0x21d0
incq %r14
jmp 0x4861
testq %rdi, %rdi
je 0x4888
callq 0x21d0
andq $0x0, 0x30(%rbx)
addq $0x18, %rbx
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x3050
// File: /workspace/github_cpp_makefile_star2_O2/kipa00[P]AplusB-mc/compiler/chunk.cpp
// Function: chunk::getXYZ(int, int, int)
byte chunk::getXYZ(int x, int y, int z) {
	if (!this->world_data) return AIR;
	int idx = y >> 4;
	if (!this->world_data[idx]) return AIR;
	return this->world_data[idx][((y & 15) << 8) | ((z & 15) << 4) | (x & 15)];
}

// Assembly:
movq 0x30(%rdi), %rax
testq %rax, %rax
je 0x48d1
movl %edx, %edi
sarl $0x4, %edi
movslq %edi, %rdi
movq (%rax,%rdi,8), %rax
testq %rax, %rax
je 0x48d1
andl $0xf, %edx
shll $0x8, %edx
shll $0x4, %ecx
movzbl %cl, %ecx
andl $0xf, %esi
orl %edx, %esi
orl %ecx, %esi
movb (%rax,%rsi), %al
retq
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O2/kipa00[P]AplusB-mc/compiler/chunk.cpp
// Function: chunk::troubleshoot(int, int)
bool chunk::troubleshoot(int x, int z) {
	const int target = (int)this->palette.size();
	if (0 <= this->y && this->y < 16 && !this->br.init_needed()) {
		for (int i=0; i<4096; ++i) {
			int x = this->br.read(this->troubleshoot_bit);
			if (x == target) {
				const int y_coord = (this->y << 4) | (i >> 8);
				if (0 <= y_coord && y_coord < 256) {
					fprintf(stderr, "exact location might be (%d, %d, %d)\n", (x << 4) | (i & 15), y_coord, (z << 4) | ((i >> 4) & 15));
				} else {
					fprintf(stderr, "exact location might be (%d, ?, %d)\n", (x << 4) | (i & 15), (z << 4) | ((i >> 4) & 15));
				}
				return true;
			}
		}
	}
	return false;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
cmpl $0xf, 0x4(%rdi)
ja 0x493e
movl %edx, %ebp
movq %rdi, %r14
movq 0x20(%rdi), %r12
subq 0x18(%rdi), %r12
leaq 0x38(%rdi), %r15
movq %r15, %rdi
callq 0x4ac2
xorl %ebx, %ebx
testb %al, %al
jne 0x4940
shrq $0x2, %r12
cmpl $0x1000, %ebx           # imm = 0x1000
je 0x493e
movl 0x14(%r14), %esi
movq %r15, %rdi
callq 0x4a2c
cmpl %r12d, %eax
je 0x494b
incl %ebx
jmp 0x4921
xorl %ebx, %ebx
movl %ebx, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl 0x4(%r14), %eax
shll $0x4, %eax
movl %ebx, %ecx
shrl $0x8, %ecx
orl %eax, %ecx
testl %eax, %eax
setns %al
cmpl $0x100, %ecx            # imm = 0x100
setl %sil
andb %al, %sil
movq 0x766e(%rip), %rax      # 0xbfe0
movq (%rax), %rdi
shll $0x4, %r12d
movl %ebx, %edx
andl $0xf, %edx
orl %r12d, %edx
shll $0x4, %ebp
shrl $0x4, %ebx
andl $0xf, %ebx
orl %ebp, %ebx
cmpb $0x1, %sil
jne 0x49a5
leaq 0x3c7b(%rip), %rsi      # 0x8614
movl %ebx, %r8d
xorl %eax, %eax
callq 0x21f0
jmp 0x49b5
leaq 0x3c8e(%rip), %rsi      # 0x863a
movl %ebx, %ecx
xorl %eax, %eax
callq 0x21f0
movb $0x1, %bl
jmp 0x4940
// File: /workspace/github_cpp_makefile_star2_O2/kipa00[P]AplusB-mc/compiler/predicate.cpp
// Function: bytes_to_string[abi:cxx11](unsigned char const*, int)
string bytes_to_string(const byte *data, int len) {
	char *str = new char[len + 1];
	memcpy(str, data, len);
	str[len] = 0;
	string res(str);
	delete []str;
	return res;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
leal 0x1(%rbx), %eax
movslq %eax, %rdi
callq 0x2030
movq %rax, %r12
movslq %ebx, %rbx
movq %rax, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x2110
movb $0x0, (%r12,%rbx)
leaq 0x7(%rsp), %rdx
movq %r15, %rdi
movq %r12, %rsi
callq 0x2fce
movq %r12, %rdi
callq 0x21d0
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/kipa00[P]AplusB-mc/compiler/bitstream.cpp
// Function: bitreader::read(int)
int bitreader::read(int bit) {
	int x = 0, u = 0;
	if (this->remaining < bit) {
		x = this->temp;
		bit -= this->remaining;
		u = this->remaining;
		this->remaining = 64;
		this->temp = 0;
		for (int i=0; i<8; ++i) {
			(this->temp <<= 8) |= this->data[this->pos++];
		}
	}
	x |= (this->temp & ((1ULL << bit) - 1)) << u;
	this->temp >>= bit;
	this->remaining -= bit;
	return x;
}

// Assembly:
movl 0xc(%rdi), %r9d
movl %esi, %ecx
movq 0x10(%rdi), %r8
subl %r9d, %ecx
jle 0x4a7d
movl $0x40, 0xc(%rdi)
andq $0x0, 0x10(%rdi)
movl %r9d, %edx
movslq 0x8(%rdi), %rsi
leal 0x1(%rsi), %eax
addq (%rdi), %rsi
xorl %r9d, %r9d
xorl %r10d, %r10d
cmpl $0x8, %r9d
je 0x4a83
leal (%rax,%r9), %r11d
movl %r11d, 0x8(%rdi)
movzbl (%rsi,%r9), %r11d
shlq $0x8, %r10
orq %r11, %r10
movq %r10, 0x10(%rdi)
incq %r9
jmp 0x4a5a
xorl %eax, %eax
xorl %edx, %edx
jmp 0x4a8f
movslq %r8d, %rax
pushq $0x40
popq %r9
movq %r10, %r8
movl %ecx, %esi
pushq $-0x1
popq %r10
movl %esi, %ecx
shlq %cl, %r10
notl %r10d
andl %r8d, %r10d
movl %edx, %ecx
shlq %cl, %r10
orl %r10d, %eax
movl %esi, %ecx
shrq %cl, %r8
movq %r8, 0x10(%rdi)
subl %esi, %r9d
movl %r9d, 0xc(%rdi)
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/kipa00[P]AplusB-mc/compiler/world.cpp
// Function: world::getXYZ(int, int, int) const
byte world::getXYZ(int x, int y, int z) const {
	if (!(0 <= x && x < 512 && 0 <= y && y < 255 && 0 <= z && z < 512)) return AIR;
	if (!this->world_data) return AIR;
	int idx = ((x >> 4) & 31) | (((z >> 4) & 31) << 5);
	if (!this->world_data[idx]) return AIR;
	return this->world_data[idx]->getXYZ(x, y, z);
}

// Assembly:
cmpl $0xff, %edx
setae %al
movl %ecx, %r8d
orl %esi, %r8d
cmpl $0x200, %r8d            # imm = 0x200
setae %r8b
orb %al, %r8b
jne 0x4e19
movq (%rdi), %rax
testq %rax, %rax
je 0x4e19
movl %esi, %edi
shrl $0x4, %edi
movl %ecx, %r8d
andl $0x1f0, %r8d            # imm = 0x1F0
leal (%rdi,%r8,2), %edi
movq (%rax,%rdi,8), %rdi
testq %rdi, %rdi
jne 0x48a0
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O2/kipa00[P]AplusB-mc/compiler/world.cpp
// Function: world::~world()
world::~world() {
	if (this->world_data) {
		int i;
		for (i=0; i<1024; ++i) {
			if (this->world_data[i]) {
				delete this->world_data[i];
			}
		}
		delete []this->world_data;
		this->world_data = nullptr;
	}
}

// Assembly:
cmpq $0x0, (%rdi)
je 0x4e7a
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorl %r12d, %r12d
pushq $0x50
popq %r14
movq (%rbx), %rdi
cmpq $0x400, %r12            # imm = 0x400
je 0x4e61
movq (%rdi,%r12,8), %r15
testq %r15, %r15
je 0x4e5c
movq %r15, %rdi
callq 0x4850
movq %r15, %rdi
movq %r14, %rsi
callq 0x2160
incq %r12
jmp 0x4e34
testq %rdi, %rdi
je 0x4e6b
callq 0x21d0
andq $0x0, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/kipa00[P]AplusB-mc/compiler/world.cpp
// Function: world::has_world_data(int, int, int) const
bool world::has_world_data(int cx, int cy, int cz) const {
	if (!(0 <= cx && cx < 32 && 0 <= cy && cy < 16 && 0 <= cz && cz < 32)) return false;
	if (!this->world_data) return false;
	if (!this->world_data[(cz << 5) | cx]) return false;
	return this->world_data[(cz << 5) | cx]->has_world_data(cy);
}

// Assembly:
cmpl $0x10, %edx
setae %al
movl %ecx, %r8d
orl %esi, %r8d
cmpl $0x20, %r8d
setae %r8b
orb %al, %r8b
jne 0x4eb2
movq (%rdi), %rax
testq %rax, %rax
je 0x4eb2
shll $0x5, %ecx
orl %esi, %ecx
movq (%rax,%rcx,8), %rdi
testq %rdi, %rdi
je 0x4eb2
movl %edx, %esi
jmp 0x48d4
xorl %eax, %eax
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/kipa00[P]AplusB-mc/compiler/analyze.cpp
// Function: test_facing(world const&, int, int, int, std::function<bool (world const&, int, int, int)>)
bool test_facing(const world &w, int x, int y, int z, std::function<bool(const world &, int, int, int)> f) {
	byte b = w.getXYZ(x, y, z);
	switch (b & 3) {
		case EAST:
			++x;
			break;
		case WEST:
			--x;
			break;
		case SOUTH:
			++z;
			break;
		case NORTH:
			--z;
			break;
	}
	return f(w, x, y, z);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %r8, %r14
movl %ecx, %ebx
movl %edx, %ebp
movl %esi, %r15d
movq %rdi, %r12
callq 0x4dd2
andb $0x3, %al
movzbl %al, %eax
leaq 0x3796(%rip), %rcx      # 0x86f0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
incl %r15d
jmp 0x4f73
incl %ebx
jmp 0x4f73
decl %r15d
jmp 0x4f73
decl %ebx
movq %r14, %rdi
movq %r12, %rsi
movl %r15d, %edx
movl %ebp, %ecx
movl %ebx, %r8d
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x6da8
// File: /workspace/github_cpp_makefile_star2_O2/kipa00[P]AplusB-mc/compiler/check.cpp
// Function: is_redstone_component(world const&, int, int, int)
bool is_redstone_component(const world &w, int x, int y, int z) {
	byte fetched = w.getXYZ(x, y, z);
	if ((fetched & BLOCK_ONLY) == REDSTONE_WALL_TORCH || (fetched & BLOCK_ONLY) == LEVER) {
		switch (fetched & 3) {
			case EAST: --x; break;
			case WEST: ++x; break;
			case SOUTH: --z; break;
			case NORTH: ++z; break;
		}
		if (!is_opaque(w.getXYZ(x, y, z))) {
			throw NO_SUPPORTING_BLOCK_ERROR;
		}
		return true;
	} else if ((fetched & BLOCK_ONLY) == REDSTONE_WIRE || (fetched & BLOCK_ONLY) == REDSTONE_TORCH || is_repeater(fetched) || (fetched & BLOCK_ONLY) == COMPARATOR) {
		if (!is_opaque(w.getXYZ(x, y-1, z))) {
			throw NO_SUPPORTING_BLOCK_ERROR;
		}
		return true;
	}
	return (fetched & BLOCK_ONLY) == REDSTONE_LAMP;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %ecx, %ebx
movl %edx, %ebp
movl %esi, %r14d
movq %rdi, %r15
callq 0x4dd2
movzbl %al, %edi
leal -0x40(%rdi), %eax
shrl $0x4, %eax
cmpl $0x2, %eax
jb 0x6f34
cmpl $0x7, %eax
je 0x6f03
cmpl $0x2, %eax
jne 0x6f1b
andl $0x3, %edi
leaq 0x1cfb(%rip), %rax      # 0x8c08
movslq (%rax,%rdi,4), %rcx
addq %rax, %rcx
jmpq *%rcx
decl %r14d
jmp 0x6f36
movl %edi, %r12d
andl $-0x10, %r12d
callq 0x707f
xorb $0x1, %al
cmpl $0x70, %r12d
setne %cl
testb %al, %cl
jne 0x6f6b
decl %ebp
movq %r15, %rdi
movl %r14d, %esi
movl %ebp, %edx
movl %ebx, %ecx
callq 0x4dd2
movzbl %al, %edi
callq 0x708a
movl %eax, %ecx
movb $0x1, %al
testb %cl, %cl
je 0x6f77
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
decl %ebx
jmp 0x6f36
incl %r14d
jmp 0x6f36
incl %ebx
jmp 0x6f36
cmpl $0xa0, %r12d
sete %al
jmp 0x6f55
pushq $0x4
popq %rdi
callq 0x20b0
movl $0xfffffffa, (%rax)     # imm = 0xFFFFFFFA
movq 0x503c(%rip), %rsi      # 0xbfc8
movq %rax, %rdi
xorl %edx, %edx
callq 0x2230
nop
// File: /workspace/github_cpp_makefile_star2_O2/kipa00[P]AplusB-mc/compiler/block.cpp
// Function: block_to_string[abi:cxx11](unsigned char)
string block_to_string(byte block) {
	switch (block & BLOCK_ONLY) {
		case AIR: return "air";
		case BEDROCK: return "bedrock";
		case STONE: return "stone";
		case SANDSTONE: return "sandstone";
		case REDSTONE_WIRE: return "redstone_wire";
		case REDSTONE_TORCH:
		case REDSTONE_WALL_TORCH: return "redstone_torch";
		case COMPARATOR: return "comparator";
		case REPEATER:
		case REPEATER | 16: return "repeater";
		case REDSTONE_LAMP: return "redstone_lamp";
		case LEVER: return "lever";
		case CONCRETE: return "concrete";
	}
	return "unknown";
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
shrb $0x4, %sil
cmpb $0xc, %sil
ja 0x7038
movzbl %sil, %eax
leaq 0x1c5f(%rip), %rcx      # 0x8c18
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x143f(%rip), %rsi      # 0x8408
leaq 0xa(%rsp), %rdx
jmp 0x706e
leaq 0x1465(%rip), %rsi      # 0x843f
leaq 0x8(%rsp), %rdx
jmp 0x706e
leaq 0x1494(%rip), %rsi      # 0x847f
leaq 0x6(%rsp), %rdx
jmp 0x706e
leaq 0x1498(%rip), %rsi      # 0x8491
leaq 0x5(%rsp), %rdx
jmp 0x706e
leaq 0x13e9(%rip), %rsi      # 0x83f0
leaq 0xb(%rsp), %rdx
jmp 0x706e
leaq 0x143d(%rip), %rsi      # 0x8452
leaq 0x9(%rsp), %rdx
jmp 0x706e
leaq 0x13a9(%rip), %rsi      # 0x83cc
leaq 0xd(%rsp), %rdx
jmp 0x706e
leaq 0x13ab(%rip), %rsi      # 0x83dc
leaq 0xc(%rsp), %rdx
jmp 0x706e
leaq 0x1c0d(%rip), %rsi      # 0x8c4c
leaq 0x4(%rsp), %rdx
jmp 0x706e
leaq 0x135f(%rip), %rsi      # 0x83ac
leaq 0xf(%rsp), %rdx
jmp 0x706e
leaq 0x135f(%rip), %rsi      # 0x83ba
leaq 0xe(%rsp), %rdx
jmp 0x706e
leaq 0x13fe(%rip), %rsi      # 0x8467
leaq 0x7(%rsp), %rdx
movq %rbx, %rdi
callq 0x2fce
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O2/kipa00[P]AplusB-mc/compiler/color.cpp
// Function: color_to_int(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
int color_to_int(string s) {
	if (s == "white") return 0;
	else if (s == "orange") return 1;
	else if (s == "magenta") return 2;
	else if (s == "light_blue") return 3;
	else if (s == "yellow") return 4;
	else if (s == "lime") return 5;
	else if (s == "pink") return 6;
	else if (s == "gray") return 7;
	else if (s == "light_gray") return 8;
	else if (s == "cyan") return 9;
	else if (s == "purple") return 10;
	else if (s == "blue") return 11;
	else if (s == "brown") return 12;
	else if (s == "green") return 13;
	else if (s == "red") return 14;
	else if (s == "black") return 15;
	return -1;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
leaq 0x1ba1(%rip), %rsi      # 0x8c54
callq 0x49b9
movl %eax, %ecx
xorl %eax, %eax
testb %cl, %cl
jne 0x721d
leaq 0x1b8f(%rip), %rsi      # 0x8c5a
movq %rbx, %rdi
callq 0x49b9
testb %al, %al
je 0x70de
pushq $0x1
jmp 0x721c
leaq 0x1b7c(%rip), %rsi      # 0x8c61
movq %rbx, %rdi
callq 0x49b9
testb %al, %al
je 0x70f8
pushq $0x2
jmp 0x721c
leaq 0x1b6a(%rip), %rsi      # 0x8c69
movq %rbx, %rdi
callq 0x49b9
testb %al, %al
je 0x7112
pushq $0x3
jmp 0x721c
leaq 0x1b5b(%rip), %rsi      # 0x8c74
movq %rbx, %rdi
callq 0x49b9
testb %al, %al
je 0x712c
pushq $0x4
jmp 0x721c
leaq 0x1b48(%rip), %rsi      # 0x8c7b
movq %rbx, %rdi
callq 0x49b9
testb %al, %al
je 0x7146
pushq $0x5
jmp 0x721c
leaq 0x1b33(%rip), %rsi      # 0x8c80
movq %rbx, %rdi
callq 0x49b9
testb %al, %al
je 0x7160
pushq $0x6
jmp 0x721c
leaq 0x1b24(%rip), %rsi      # 0x8c8b
movq %rbx, %rdi
callq 0x49b9
testb %al, %al
je 0x717a
pushq $0x7
jmp 0x721c
leaq 0x1b04(%rip), %rsi      # 0x8c85
movq %rbx, %rdi
callq 0x49b9
testb %al, %al
je 0x7194
pushq $0x8
jmp 0x721c
leaq 0x1af5(%rip), %rsi      # 0x8c90
movq %rbx, %rdi
callq 0x49b9
testb %al, %al
je 0x71ab
pushq $0x9
jmp 0x721c
leaq 0x1ae3(%rip), %rsi      # 0x8c95
movq %rbx, %rdi
callq 0x49b9
testb %al, %al
je 0x71c2
pushq $0xa
jmp 0x721c
leaq 0x1aa6(%rip), %rsi      # 0x8c6f
movq %rbx, %rdi
callq 0x49b9
testb %al, %al
je 0x71d9
pushq $0xb
jmp 0x721c
leaq 0x1abc(%rip), %rsi      # 0x8c9c
movq %rbx, %rdi
callq 0x49b9
testb %al, %al
je 0x71f0
pushq $0xc
jmp 0x721c
leaq 0x1aab(%rip), %rsi      # 0x8ca2
movq %rbx, %rdi
callq 0x49b9
testb %al, %al
je 0x7207
pushq $0xd
jmp 0x721c
leaq 0x12e4(%rip), %rsi      # 0x84f2
movq %rbx, %rdi
callq 0x49b9
testb %al, %al
je 0x721f
pushq $0xe
popq %rax
popq %rbx
retq
leaq 0x1a82(%rip), %rsi      # 0x8ca8
movq %rbx, %rdi
callq 0x49b9
movzbl %al, %eax
decl %eax
orl $0xf, %eax
jmp 0x721d
// File: /workspace/github_cpp_makefile_star2_O2/smuething[P]dune-cxx11/17-unique_ptr.cc
// Function: main
int main()
{
  std::shared_ptr<int> p1(new int(3));
  std::shared_ptr<int> p2(std::move(p1));
  assert(*p2 == 3);
  return 0;
}

// Assembly:
pushq %rbx
subq $0x20, %rsp
pushq $0x4
popq %rdi
callq 0x1060
movl $0x3, (%rax)
leaq 0x10(%rsp), %rbx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x12ac
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
movq %rax, (%rsp)
movq %rcx, 0x8(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
cmpl $0x3, (%rax)
jne 0x1209
leaq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rbx
callq 0x1226
movq %rbx, %rdi
callq 0x1226
xorl %eax, %eax
addq $0x20, %rsp
popq %rbx
retq
leaq 0xdf4(%rip), %rdi       # 0x2004
leaq 0xdf6(%rip), %rsi       # 0x200d
leaq 0xe00(%rip), %rcx       # 0x201e
pushq $0x8
popq %rdx
callq 0x1050
// File: /workspace/github_cpp_makefile_star2_O2/zhjw1998[P]Merkle-Tree/src/../include/picosha2.h
// Function: void picosha2::hash256_hex_string<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>(__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, __gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
void hash256_hex_string(InIter first, InIter last, std::string& hex_str) {
    byte_t hashed[k_digest_size];
    hash256(first, last, hashed, hashed + k_digest_size);
    std::ostringstream oss;
    output_hex(hashed, hashed + k_digest_size, oss);
    hex_str.assign(oss.str());
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x1b8, %rsp            # imm = 0x1B8
movq %rdx, %rbx
leaq 0x20(%rsp), %r14
movq %rsp, %r15
movq %r15, %rdx
movq %r14, %rcx
movl $0x100000, %r8d         # imm = 0x100000
callq 0x335e
leaq 0x40(%rsp), %r12
movq %r12, %rdi
callq 0x2260
movq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x32e2
leaq 0x48(%rsp), %rsi
leaq 0x20(%rsp), %rdi
callq 0x22b0
leaq 0x20(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2230
movq %r14, %rdi
callq 0x20b0
leaq 0x40(%rsp), %rdi
callq 0x2040
addq $0x1b8, %rsp            # imm = 0x1B8
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0x32c2
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x2040
movq %rbx, %rdi
callq 0x2300
// File: /workspace/github_cpp_makefile_star2_O2/zhjw1998[P]Merkle-Tree/src/../include/picosha2.h
// Function: void picosha2::output_hex<unsigned char*>(unsigned char*, unsigned char*, std::ostream&)
void output_hex(InIter first, InIter last, std::ostream& os) {
    os.setf(std::ios::hex, std::ios::basefield);
    while (first != last) {
        os.width(2);
        os.fill('0');
        os << static_cast<unsigned int>(*first);
        ++first;
    }
    os.setf(std::ios::dec, std::ios::basefield);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq (%rdx), %rax
movq -0x18(%rax), %rax
movl 0x18(%rdx,%rax), %ecx
andl $-0x4b, %ecx
orl $0x8, %ecx
movl %ecx, 0x18(%rdx,%rax)
movq (%rbx), %rcx
movq -0x18(%rcx), %rax
cmpq %r14, %r15
je 0x3344
movq $0x2, 0x10(%rbx,%rax)
movq -0x18(%rcx), %r12
leaq (%rbx,%r12), %rdi
callq 0x20c0
movb $0x30, 0xe0(%rbx,%r12)
movzbl (%r15), %esi
movq %rbx, %rdi
callq 0x2120
incq %r15
jmp 0x3308
movl 0x18(%rbx,%rax), %ecx
andl $-0x4b, %ecx
orl $0x2, %ecx
movl %ecx, 0x18(%rbx,%rax)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/zhjw1998[P]Merkle-Tree/src/../include/picosha2.h
// Function: void picosha2::impl::hash256_impl<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, unsigned char*>(__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, __gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, unsigned char*, unsigned char*, int, std::random_access_iterator_tag)
void hash256_impl(RaIter first, RaIter last, OutIter first2, OutIter last2, int,
                  std::random_access_iterator_tag) {
    hash256_one_by_one hasher;
    // hasher.init();
    hasher.process(first, last);
    hasher.finish();
    hasher.get_hash_bytes(first2, last2);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x80, %rsp
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
leaq 0x8(%rsp), %r13
movq %r13, %rdi
callq 0x33e0
movq %r13, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x3412
leaq 0x8(%rsp), %rdi
callq 0x3480
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x3530
movq %r15, %rdi
callq 0x35be
addq $0x80, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x35be
movq %rbx, %rdi
callq 0x2300
// File: /workspace/github_cpp_makefile_star2_O2/zhjw1998[P]Merkle-Tree/src/../include/picosha2.h
// Function: void picosha2::hash256_one_by_one::process<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>(__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, __gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>)
void process(RaIter first, RaIter last) {
        add_to_data_length(std::distance(first, last));
        std::copy(first, last, std::back_inserter(buffer_));
        std::size_t i = 0;
        for (; i + 64 <= buffer_.size(); i += 64) {
            detail::hash256_block(h_, buffer_.begin() + i,
                                  buffer_.begin() + i + 64);
        }
        buffer_.erase(buffer_.begin(), buffer_.begin() + i);
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movq %rdx, %rsi
subq %r15, %rsi
callq 0x35ea
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x37e6
leaq 0x38(%rbx), %r14
pushq $0x40
popq %r15
movq (%rbx), %rdx
movq 0x8(%rbx), %rcx
subq %rdx, %rcx
leaq (%rdx,%r15), %rax
addq $-0x40, %rax
cmpq %rcx, %r15
ja 0x346c
addq %r15, %rdx
movq %r14, %rdi
movq %rax, %rsi
callq 0x361d
addq $0x40, %r15
jmp 0x3441
movq %rbx, %rdi
movq %rdx, %rsi
movq %rax, %rdx
popq %rbx
popq %r14
popq %r15
jmp 0x37e0
nop