LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/meh[P]ela/tests/custom.cpp
// Function: main
int
main (void)
{
	return amirite("custom", {
		{"access", []{
			RGB<float> a(1.0, 0.5, 0.0);

			amiequal(1.0, a[0]);
			amiequal(0.5, a[1]);
			amiequal(0.0, a[2]);
		}},

		{"assign", []{
			ela::column_vector<float, 3> a { 1.0, 0.5, 0.0 };
			RGB<float> b = a * 2;

			amiequal(2.0, b[0]);
			amiequal(1.0, b[1]);
			amiequal(0.0, b[2]);
		}},
	});
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc0, %rsp
leaq 0x30(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x2e0e(%rip), %rsi      # 0x607f
movl $0x6, %ebx
leaq (%rsi,%rbx), %rdx
leaq 0x20(%rsp), %rdi
callq 0x5182
leaq 0x50(%rsp), %rax
movq %rax, -0x10(%rax)
movl $0x65636361, (%rax)     # imm = 0x65636361
movw $0x7373, 0x4(%rax)      # imm = 0x7373
movq %rbx, -0x8(%rax)
xorl %ecx, %ecx
movb %cl, 0x6(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
leaq 0x136(%rip), %rdx       # 0x33e6
movq %rdx, 0x28(%rax)
leaq 0x3f5(%rip), %rdx       # 0x36b0
movq %rdx, 0x20(%rax)
leaq 0x90(%rsp), %r15
movq %r15, -0x10(%r15)
movl $0x69737361, (%r15)     # imm = 0x69737361
movw $0x6e67, 0x4(%r15)      # imm = 0x6E67
movq %rbx, -0x8(%r15)
movb %cl, 0x6(%r15)
movups %xmm0, 0x10(%r15)
leaq 0x3db(%rip), %rax       # 0x36c8
movq %rax, 0x28(%r15)
leaq 0x7c6(%rip), %rax       # 0x3abe
movq %rax, 0x20(%r15)
leaq 0x8(%rsp), %rdi
leaq 0x40(%rsp), %rsi
leaq 0x7(%rsp), %rcx
movl $0x2, %edx
callq 0x408a
leaq 0x20(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x2f04
movl %eax, %ebx
leaq 0x8(%rsp), %rdi
callq 0x3fca
leaq 0xa0(%rsp), %r12
xorl %r13d, %r13d
movq 0xb0(%rsp,%r13), %rax
testq %rax, %rax
je 0x3356
leaq (%r12,%r13), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0x80(%rsp,%r13), %rdi
leaq (%r15,%r13), %rax
cmpq %rdi, %rax
je 0x336c
callq 0x2180
addq $-0x40, %r13
cmpq $-0x80, %r13
jne 0x333b
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0x3385
callq 0x2180
movl %ebx, %eax
addq $0xc0, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x3fca
jmp 0x33aa
movq %rax, %rbx
movl $0x40, %r15d
leaq (%rsp,%r15), %rdi
addq $0x40, %rdi
callq 0x40cc
addq $-0x40, %r15
cmpq $-0x40, %r15
jne 0x33b0
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0x33d6
callq 0x2180
movq %rbx, %rdi
callq 0x2290
movq %rax, %rdi
callq 0x3e4f
// File: /workspace/github_cpp_makefile_star2_O3/dhruvbhargava[P]microTP/src/Parser.cpp
// Function: split(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char)
std::vector<std::string> split(std::string input, char split_token)
{
    std::stringstream inp(input);
    std::string temp;
    std::vector<std::string> tokenized_out;
    while (std::getline(inp, temp, split_token))
    {
        tokenized_out.push_back(temp);
    }
    return tokenized_out;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x1b0, %rsp            # imm = 0x1B0
movl %edx, %ebp
movq %rdi, %rbx
leaq 0x28(%rsp), %r14
movq %r14, %rdi
movl $0x18, %edx
callq 0x22d0
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
xorl %eax, %eax
movq %rax, -0x8(%r12)
movb $0x0, (%r12)
movq %rax, 0x10(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movsbl %bpl, %ebp
leaq 0x8(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
movl %ebp, %edx
callq 0x2330
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x2ebb
movq %rbx, %rdi
movq %r15, %rsi
callq 0x349e
jmp 0x2e93
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x2ed2
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2210
movq 0x30df(%rip), %rsi      # 0x5fb8
leaq 0x28(%rsp), %rdi
callq 0x2190
leaq 0xa8(%rsp), %rdi
callq 0x20d0
movq %rbx, %rax
addq $0x1b0, %rsp            # imm = 0x1B0
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x34dc
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x2f25
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2210
movq 0x308c(%rip), %rsi      # 0x5fb8
leaq 0x28(%rsp), %rdi
callq 0x2190
leaq 0xa8(%rsp), %rdi
callq 0x20d0
movq %r14, %rdi
callq 0x2310
// File: /workspace/github_cpp_makefile_star2_O3/dhruvbhargava[P]microTP/src/Parser.cpp
// Function: stripLower(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
std::string stripLower(std::string str)
{
    //strips spaces
    str.erase(remove(str.begin(), str.end(), ' '), str.end());
    //converts every thing to lower case
    std::transform(str.begin(), str.end(), str.begin(), ::tolower);
    return str;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq (%rsi), %rdi
movq 0x8(%rsi), %rsi
addq %rdi, %rsi
leaq 0xf(%rsp), %rdx
movb $0x20, (%rdx)
callq 0x3811
movq %rax, %rcx
subq (%rbx), %rcx
movq %rcx, 0x8(%rbx)
movb $0x0, (%rax)
movq (%rbx), %r15
movq 0x8(%rbx), %r12
testq %r12, %r12
je 0x2faa
xorl %r13d, %r13d
movsbl (%r15,%r13), %edi
callq 0x2280
movb %al, (%r15,%r13)
incq %r13
cmpq %r13, %r12
jne 0x2f91
movq (%rbx), %r15
leaq 0x10(%r14), %rcx
movq %rcx, (%r14)
leaq 0x10(%rbx), %rax
cmpq %rax, %r15
je 0x2fc6
movq %r15, (%r14)
movq (%rax), %rcx
movq %rcx, 0x10(%r14)
jmp 0x2fcc
movups (%rax), %xmm0
movups %xmm0, (%rcx)
movq 0x8(%rbx), %rcx
movq %rcx, 0x8(%r14)
movq %rax, (%rbx)
movq $0x0, 0x8(%rbx)
movb $0x0, 0x10(%rbx)
movq %r14, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/dhruvbhargava[P]microTP/src/Server.cpp
// Function: HttpServer::HttpServer(char*, char*)
HttpServer::HttpServer(char *port, char *project_root)
{
    PORT_NUMBER = atoi(port);
    PROJECT_ROOT = project_root;
    std::cout << PORT_NUMBER << std::endl;
    socket_listen_fd = socket(AF_INET, SOCK_STREAM, 0);
    if (socket_listen_fd < 0)
    {
        std::cout << "couldn't open a socket!"
                  << "\n";
    }
    std::cout << "opened socket \n";
    bzero((char *)&server_addr, sizeof(server_addr));
    server_addr.sin_family = AF_INET;
    server_addr.sin_addr.s_addr = INADDR_ANY;
    server_addr.sin_port = htons(PORT_NUMBER);

    if (bind(socket_listen_fd, (sockaddr *)&server_addr, sizeof(server_addr)) < 0)
    {
        std::cout << "Binding Failed! "
                  << "\n";
        exit(1);
    }
    std::cout << "socket binded!" << std::endl;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x22b0
movl %eax, 0x4(%rbx)
movq %r14, 0x30(%rbx)
movq 0x26cc(%rip), %rdi      # 0x5fd8
movl %eax, %esi
callq 0x2300
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2170
movl $0x2, %edi
movl $0x1, %esi
xorl %edx, %edx
callq 0x2060
movl %eax, (%rbx)
testl %eax, %eax
jns 0x3983
movq 0x267d(%rip), %r14      # 0x5fd8
leaq 0x891(%rip), %rsi       # 0x41f3
movl $0x17, %edx
movq %r14, %rdi
callq 0x2230
leaq 0x6aa(%rip), %rsi       # 0x4020
movl $0x1, %edx
movq %r14, %rdi
callq 0x2230
movq 0x264e(%rip), %r14      # 0x5fd8
leaq 0x87a(%rip), %rsi       # 0x420b
movl $0xf, %edx
movq %r14, %rdi
callq 0x2230
leaq 0xc(%rbx), %rsi
movq $0x0, 0x14(%rbx)
movw $0x2, 0xc(%rbx)
movl $0x0, 0x10(%rbx)
movzwl 0x4(%rbx), %eax
rolw $0x8, %ax
movw %ax, 0xe(%rbx)
movl (%rbx), %edi
movl $0x10, %edx
callq 0x2040
testl %eax, %eax
js 0x3a15
leaq 0x852(%rip), %rsi       # 0x422c
movl $0xe, %edx
movq %r14, %rdi
callq 0x2230
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x2170
movq 0x25bc(%rip), %rdi      # 0x5fd8
leaq 0x7f8(%rip), %rsi       # 0x421b
callq 0x21f0
leaq 0x5f1(%rip), %rsi       # 0x4020
movq %rax, %rdi
callq 0x21f0
movl $0x1, %edi
callq 0x2250
nop
// File: /workspace/github_cpp_makefile_star2_O3/dhruvbhargava[P]microTP/src/Server.cpp
// Function: HttpServer::startListen()
void HttpServer::startListen()
{
    socklen_t clielen = sizeof(client_addr);
    std::cout << "started Listening for requests\n";
    listen(socket_listen_fd, 5); //a waiting queue size of 5 will suffice since each client is being served by a different process
    pid_t pid = 1;
    while (1)
    {
        new_socket_fd = accept(socket_listen_fd, (sockaddr *)&client_addr, &clielen);
        pid = fork();
        if (pid == 0)
        {
            break;
        }
        std::cout << "Parent" << std::endl;
    }
    if (pid == 0)
    {
        while (1)
        {
            std::string requestBuffer = feedBuffer();
            requestResolver(requestBuffer);
        }
        close(new_socket_fd);
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x50, %rsp
movq %rdi, %rbx
leaq 0xc(%rsp), %r12
movl $0x10, (%r12)
movq 0x2572(%rip), %r14      # 0x5fd8
leaq 0x7ce(%rip), %rsi       # 0x423b
movl $0x1f, %edx
movq %r14, %rdi
callq 0x2230
movl (%rbx), %edi
movl $0x5, %esi
callq 0x2220
leaq 0x1c(%rbx), %r15
movl (%rbx), %edi
movq %r15, %rsi
movq %r12, %rdx
callq 0x20c0
movl %eax, 0x8(%rbx)
callq 0x2080
testl %eax, %eax
je 0x3aff
leaq 0x7b1(%rip), %r12       # 0x425b
leaq 0xc(%rsp), %r13
movl $0x6, %edx
movq %r14, %rdi
movq %r12, %rsi
callq 0x2230
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2170
movl (%rbx), %edi
movq %r15, %rsi
movq %r13, %rdx
callq 0x20c0
movl %eax, 0x8(%rbx)
callq 0x2080
testl %eax, %eax
jne 0x3aaf
leaq 0x40(%rsp), %r13
leaq 0x20(%rsp), %r12
leaq 0x10(%rsp), %r14
leaq 0x30(%rsp), %r15
movq %r14, %rdi
movq %rbx, %rsi
callq 0x3bb2
movq %r13, 0x30(%rsp)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x2d18
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3c2a
movq 0x30(%rsp), %rdi
cmpq %r13, %rdi
je 0x3b5a
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x2210
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0x3b13
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2210
jmp 0x3b13
movq %rax, %rbx
movq 0x30(%rsp), %rdi
cmpq %r13, %rdi
je 0x3b92
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x2210
jmp 0x3b92
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0x3ba9
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2210
movq %rbx, %rdi
callq 0x2310
nop
// File: /workspace/github_cpp_makefile_star2_O3/dhruvbhargava[P]microTP/src/Server.cpp
// Function: HttpServer::feedBuffer[abi:cxx11]()
std::string HttpServer::feedBuffer()
{
    char requestBuffer[62000];
    int index = 0;
    // std::cout << "buffer contains" << std::endl;
    // std::cout<<requestBuffer<<std::endl;
    while (true)
    {
        read(new_socket_fd, requestBuffer + index, 1);
        if (index > 2 && requestBuffer[index] == '\r' && requestBuffer[index - 2] == '\r')
        {

            break;
        }
        index++;
    }
    std::string reqBuff = requestBuffer;
    return reqBuff;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xf238, %rsp           # imm = 0xF238
movq %rsi, %r14
movq %rdi, %rbx
xorl %r12d, %r12d
movl 0x8(%r14), %edi
leaq (%rsp,%r12), %r15
movl $0x1, %edx
movq %r15, %rsi
callq 0x2270
cmpq $0x3, %r12
jb 0x3bf2
cmpb $0xd, (%r15)
jne 0x3bf2
cmpb $0xd, -0x2(%rsp,%r12)
je 0x3bf7
incq %r12
jmp 0x3bc9
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
movq %rsp, %r14
movq %r14, %rdi
callq 0x2110
leaq (%rsp,%rax), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2dae
movq %rbx, %rax
addq $0xf238, %rsp           # imm = 0xF238
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/dhruvbhargava[P]microTP/src/Server.cpp
// Function: HttpServer::requestResolver(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void HttpServer::requestResolver(std::string requestBuffer)
{
    std::cout << std::endl;
    Request Header = parse(requestBuffer);
    std::cout << Header.request_method << std::endl;
    if (Header.request_method.compare("GET") == 0)
    {
        const char *req = Header.url.c_str();
        GET(req, false);
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x100, %rsp            # imm = 0x100
movq %rsi, %r14
movq %rdi, %rbx
movq 0x2395(%rip), %r15      # 0x5fd8
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2170
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
movq %rsp, %r14
movq %r14, %rdi
callq 0x2d18
leaq 0x20(%rsp), %rdi
movq %r14, %rsi
callq 0x2ff4
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x3cab
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2210
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq 0x231c(%rip), %rdi      # 0x5fd8
callq 0x2230
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2170
leaq 0x570(%rip), %rsi       # 0x4262
leaq 0x20(%rsp), %rdi
callq 0x20a0
testl %eax, %eax
jne 0x3d0f
movq 0x40(%rsp), %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x26ec
leaq 0x20(%rsp), %rdi
callq 0x353a
addq $0x100, %rsp            # imm = 0x100
popq %rbx
popq %r14
popq %r15
retq
jmp 0x3d43
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x3d50
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2210
jmp 0x3d50
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x353a
movq %rbx, %rdi
callq 0x2310
// File: /workspace/github_cpp_makefile_star2_O3/dhruvbhargava[P]microTP/src/main.cpp
// Function: main
int main(int argc, char *argv[])
{
	if (argc<3){
		std::cout<<"no files to host"<<std::endl;
		exit(1);
	}
	char* port,*project_root;
	port = argv[1];
	project_root = argv[2];
	HttpServer server = HttpServer(port,project_root);
	server.startListen();

}

// Assembly:
pushq %rbx
subq $0x140, %rsp            # imm = 0x140
cmpl $0x2, %edi
jle 0x3d8e
movq 0x8(%rsi), %rax
movq 0x10(%rsi), %rdx
movq %rsp, %rbx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x38ec
movq %rbx, %rdi
callq 0x3a42
xorl %eax, %eax
addq $0x140, %rsp            # imm = 0x140
popq %rbx
retq
movq 0x2243(%rip), %rdi      # 0x5fd8
leaq 0x4ca(%rip), %rsi       # 0x4266
callq 0x21f0
movq %rax, %rdi
callq 0x2120
movl $0x1, %edi
callq 0x2250
// File: /workspace/github_cpp_makefile_star2_O3/fieryzig[P]GameServer/./Common/utils/FileUtils.h
// Function: fieryzig::GetStringFromFile[abi:cxx11](char const*)
string GetStringFromFile(const char* filename) {
    string ret = "";
    string line;
    ifstream file(filename,ios::in);
    if (!file.is_open()) {
        return ret;
    }
    while (!file.eof()) {
        getline(file,line);
        ret.append(line + '\n');
    }
    return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x258, %rsp            # imm = 0x258
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, -0x50(%rbp)
movq %rax, (%rdi)
leaq 0x6d2c(%rip), %rdx      # 0x9b54
movq %rdx, %rsi
callq 0x3f78
leaq -0x60(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq -0x278(%rbp), %rdi
movq %r14, %rsi
movl $0x8, %edx
callq 0x23a0
leaq -0x200(%rbp), %rdi
callq 0x2070
testb %al, %al
je 0x2f28
movq -0x278(%rbp), %rax
movq -0x18(%rax), %rax
testb $0x2, -0x258(%rbp,%rax)
jne 0x2f28
leaq (%rax,%rbp), %rdi
addq $-0x278, %rdi           # imm = 0xFD88
leaq -0x38(%rbp), %r13
leaq -0x278(%rbp), %r14
leaq -0x70(%rbp), %r15
leaq -0x48(%rbp), %r12
movl $0xa, %esi
callq 0x2230
movsbl %al, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x23b0
movq %r13, -0x48(%rbp)
movq -0x70(%rbp), %rsi
movq -0x68(%rbp), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0x3eda
movq -0x40(%rbp), %rsi
movl $0x1, %ecx
movq %r12, %rdi
xorl %edx, %edx
movl $0xa, %r8d
callq 0x23c0
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq %rbx, %rdi
callq 0x20c0
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
je 0x2f08
callq 0x2220
movq -0x278(%rbp), %rax
movq -0x18(%rax), %rax
leaq (%rax,%rbp), %rdi
addq $-0x278, %rdi           # imm = 0xFD88
testb $0x2, 0x20(%rdi)
je 0x2ea2
leaq -0x278(%rbp), %rdi
callq 0x2090
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x2f46
callq 0x2220
movq %rbx, %rax
addq $0x258, %rsp            # imm = 0x258
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0x2f86
jmp 0x2f77
jmp 0x2f64
movq %rax, %r14
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
je 0x2f7a
callq 0x2220
jmp 0x2f7a
movq %rax, %r14
leaq -0x278(%rbp), %rdi
callq 0x2090
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x2f98
callq 0x2220
movq (%rbx), %rdi
cmpq -0x50(%rbp), %rdi
je 0x2fa6
callq 0x2220
movq %r14, %rdi
callq 0x2370
// File: /workspace/github_cpp_makefile_star2_O3/fieryzig[P]GameServer/GateServer/GateServer.cpp
// Function: fieryzig::GateServer::Run()
void GateServer::Run()
{
    int n = epoll_wait(epfd, events, 20, 500);
	for (int i = 0; i < n; i++) {
	    if (events[i].data.fd == listenfd) {
		    acceptConnect();
	    }
        else if (events[i].events & EPOLLERR) {
            close(((Client*)events[i].data.ptr)->fd);
        }
	    else {
            Client *cli = (Client*)events[i].data.ptr;
            int ret = cli->Recv();
            PacketInfo pi; string content = "";
            while ( cli->hasMsg(&pi,content) ) {
                Dispatch(cli, &pi, content);
            }
	    }
	}

	set<Client*>::iterator it;

	for (it = Clients.begin(); it != Clients.end(); it++) {
	    (*it)->SendRemain();
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdi, %rbx
movl 0x10(%rdi), %edi
leaq 0x28(%rbx), %r14
movq %r14, %rsi
movl $0x14, %edx
movl $0x1f4, %ecx            # imm = 0x1F4
callq 0x2140
testl %eax, %eax
jle 0x30cc
movl %eax, %eax
movq %rax, -0x58(%rbp)
xorl %r12d, %r12d
leaq -0x90(%rbp), %r13
leaq -0x78(%rbp), %r15
movq %r14, -0x30(%rbp)
leaq (%r12,%r12,2), %rax
movl 0x4(%r14,%rax,4), %ecx
cmpl 0x14(%rbx), %ecx
jne 0x3017
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x18(%rax)
jmp 0x30bf
leaq (%r14,%rax,4), %rax
testb $0x8, (%rax)
movq 0x4(%rax), %r14
jne 0x309b
movq %r14, %rdi
callq 0x6234
leaq -0x40(%rbp), %rax
movq %rax, -0x50(%rbp)
leaq -0x50(%rbp), %rdi
leaq 0x6b15(%rip), %rdx      # 0x9b54
movq %rdx, %rsi
callq 0x3f78
movq %r14, %rdi
movq %r13, %rsi
leaq -0x50(%rbp), %rdx
callq 0x62ca
testb %al, %al
je 0x30a9
leaq -0x68(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x3eda
movq (%rbx), %rax
movq %rbx, %rdi
movq %r14, %rsi
movq %r13, %rdx
movq %r15, %rcx
callq *0x10(%rax)
movq -0x78(%rbp), %rdi
leaq -0x68(%rbp), %rax
cmpq %rax, %rdi
je 0x3047
callq 0x2220
jmp 0x3047
movl 0x2020(%r14), %edi
callq 0x23e0
jmp 0x30bb
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x30bb
callq 0x2220
movq -0x30(%rbp), %r14
incq %r12
cmpq -0x58(%rbp), %r12
jne 0x2ffb
movq 0x168(%rbx), %r14
addq $0x158, %rbx            # imm = 0x158
cmpq %rbx, %r14
je 0x30f8
movq 0x20(%r14), %rdi
callq 0x6772
movq %r14, %rdi
callq 0x22a0
movq %rax, %r14
cmpq %rbx, %rax
jne 0x30df
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x78(%rbp), %rdi
leaq -0x68(%rbp), %rax
cmpq %rax, %rdi
je 0x3121
callq 0x2220
jmp 0x3121
movq %rax, %rbx
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x3133
callq 0x2220
movq %rbx, %rdi
callq 0x2370
nop
// File: /workspace/github_cpp_makefile_star2_O3/fieryzig[P]GameServer/./Common/rapidjson/include/rapidjson/internal/stack.h
// Function: rapidjson::GenericValue<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>>* rapidjson::internal::Stack<rapidjson::CrtAllocator>::PushUnsafe<rapidjson::GenericValue<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>>>(unsigned long)
RAPIDJSON_FORCEINLINE T* PushUnsafe(size_t count = 1) {
        RAPIDJSON_ASSERT(stackTop_);
        RAPIDJSON_ASSERT(stackTop_ + sizeof(T) * count <= stackEnd_);
        T* ret = reinterpret_cast<T*>(stackTop_);
        stackTop_ += sizeof(T) * count;
        return ret;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq 0x18(%rdi), %rax
testq %rax, %rax
je 0x4be6
shlq $0x4, %rsi
addq %rax, %rsi
cmpq 0x20(%rdi), %rsi
ja 0x4c05
movq %rsi, 0x18(%rdi)
popq %rbp
retq
leaq 0x291c(%rip), %rdi      # 0x7509
leaq 0x2728(%rip), %rsi      # 0x731c
leaq 0x2918(%rip), %rcx      # 0x7513
movl $0x81, %edx
callq 0x2190
leaq 0x29a8(%rip), %rdi      # 0x75b4
leaq 0x2709(%rip), %rsi      # 0x731c
leaq 0x28f9(%rip), %rcx      # 0x7513
movl $0x82, %edx
callq 0x2190
// File: /workspace/github_cpp_makefile_star2_O3/fieryzig[P]GameServer/./Common/rapidjson/include/rapidjson/document.h
// Function: rapidjson::GenericValue<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>>::SetObjectRaw(rapidjson::GenericMember<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>>*, unsigned int, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>&)
void SetObjectRaw(Member* members, SizeType count, Allocator& allocator) {
        data_.f.flags = kObjectFlag;
        if (count) {
            Member* m = static_cast<Member*>(allocator.Malloc(count * sizeof(Member)));
            SetMembersPointer(m);
            std::memcpy(m, members, count * sizeof(Member));
        }
        else
            SetMembersPointer(0);
        data_.o.size = data_.o.capacity = count;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebx
movq %rdi, %r14
movabsq $-0x1000000000000, %r13 # imm = 0xFFFF000000000000
movw $0x3, 0xe(%rdi)
testl %edx, %edx
je 0x552b
movq %rsi, %r15
movl %ebx, %r12d
shlq $0x5, %r12
movq %rcx, %rdi
movq %r12, %rsi
callq 0x534c
andq 0x8(%r14), %r13
orq %rax, %r13
movq %r13, 0x8(%r14)
movq %rax, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x21f0
jmp 0x552f
andq %r13, 0x8(%r14)
movl %ebx, 0x4(%r14)
movl %ebx, (%r14)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/fieryzig[P]GameServer/./Common/rapidjson/include/rapidjson/internal/stack.h
// Function: rapidjson::internal::Stack<rapidjson::CrtAllocator>::ShrinkToFit()
void ShrinkToFit() { 
        if (Empty()) {
            // If the stack is empty, completely deallocate the memory.
            Allocator::Free(stack_);
            stack_ = 0;
            stackTop_ = 0;
            stackEnd_ = 0;
        }
        else
            Resize(GetSize());
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x10(%rdi), %rdi
movq 0x18(%rbx), %rsi
subq %rdi, %rsi
je 0x56ce
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x4c8c
addq $0x10, %rbx
callq 0x22b0
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq $0x0, 0x10(%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/fieryzig[P]GameServer/GateServer/main.cpp
// Function: main
int main()
{
    GateServer *gateServer = new GateServer();
    gateServer->SetConfig("gateConfig.json");
    gateServer->InitServer();
    while(1)
    {
        gateServer->Run();
    }
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl $0x198, %edi            # imm = 0x198
callq 0x2250
movq %rax, %rbx
xorl %r14d, %r14d
movl $0x160, %edx            # imm = 0x160
movq %rax, %rdi
xorl %esi, %esi
callq 0x2170
leaq 0x6c8b(%rip), %rax      # 0xcd60
addq $0x10, %rax
movq %rax, (%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x138(%rbx)
movq %r14, 0x148(%rbx)
leaq 0x158(%rbx), %rax
movq %r14, 0x160(%rbx)
movq %rax, 0x168(%rbx)
movq %rax, 0x170(%rbx)
movups %xmm0, 0x178(%rbx)
movups %xmm0, 0x188(%rbx)
leaq 0x3a0a(%rip), %rsi      # 0x9b28
movq %rbx, %rdi
callq 0x33d2
movq %rbx, %rdi
callq 0x613c
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x8(%rax)
jmp 0x612e
nopl (%rax)
// File: /workspace/github_cpp_makefile_star2_O3/fieryzig[P]GameServer/Common/BaseServer/BaseServer.cpp
// Function: fieryzig::BaseServer::InitServer()
void BaseServer::InitServer()
    {
        epfd = epoll_create(256);
        listenfd = socket(AF_INET, SOCK_STREAM, 0);

        ev.data.fd = listenfd;
        ev.events = EPOLLIN;
        epoll_ctl(epfd, EPOLL_CTL_ADD, listenfd, &ev);

        memset(&serveraddr, 0, sizeof(serveraddr));
        inet_aton(config->ip.c_str(), &(serveraddr.sin_addr));
        serveraddr.sin_port = htons(config->port);
        
        SetSocketOpt(listenfd);

        if (bind(listenfd, (sockaddr*)&serveraddr, sizeof(struct sockaddr)) == -1) {
            cout << "bind failed" << endl;
            exit(1);
        }
        listen(listenfd, 10);
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x100, %edi            # imm = 0x100
callq 0x23d0
movl %eax, 0x10(%rbx)
movl $0x1, %r15d
movl $0x2, %edi
movl $0x1, %esi
xorl %edx, %edx
callq 0x2080
movl %eax, 0x14(%rbx)
leaq 0x1c(%rbx), %rcx
movl %eax, 0x20(%rbx)
movl %r15d, 0x1c(%rbx)
movl 0x10(%rbx), %edi
movl $0x1, %esi
movl %eax, %edx
callq 0x22e0
leaq 0x128(%rbx), %r14
xorps %xmm0, %xmm0
movups %xmm0, 0x128(%rbx)
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rdi
leaq 0x12c(%rbx), %rsi
callq 0x21d0
movq 0x8(%rbx), %rax
movzwl 0x28(%rax), %eax
rolw $0x8, %ax
movw %ax, 0x12a(%rbx)
movl 0x14(%rbx), %edi
leaq -0x1c(%rbp), %rcx
movl %r15d, (%rcx)
movl $0x1, %esi
movl $0x2, %edx
movl $0x4, %r8d
callq 0x2380
movl 0x14(%rbx), %edi
movq %r14, %rsi
movl $0x10, %edx
callq 0x2050
cmpl $-0x1, %eax
je 0x620e
movl 0x14(%rbx), %edi
movl $0xa, %esi
callq 0x2280
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq 0x6dc3(%rip), %rdi      # 0xcfd8
leaq 0x391c(%rip), %rsi      # 0x9b38
callq 0x2240
movq %rax, %rdi
callq 0x2150
movl $0x1, %edi
callq 0x22c0
nop
// File: /workspace/github_cpp_makefile_star2_O3/fieryzig[P]GameServer/Common/Client/Client.cpp
// Function: fieryzig::Client::Recv()
int Client::Recv() 
{
//    if (recvbuf.remain() < 4) return 0;
    int ret = ::read(fd, recvbuf.getTail(), min(recvbuf.remain(),BUFSIZE-recvbuf.tail));
    if (ret == -1) return ret;
    recvbuf.push(ret);
    return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movslq 0x1008(%rdi), %rax
cmpq $0x1000, %rax           # imm = 0x1000
jge 0x62ab
movq %rdi, %rbx
movl 0x2020(%rdi), %edi
movq %rax, %rsi
addq %rbx, %rsi
movl $0x1000, %ecx           # imm = 0x1000
movl $0x1000, %edx           # imm = 0x1000
subl 0x100c(%rbx), %edx
subl %eax, %ecx
cmpl %edx, %ecx
cmovgel %edx, %ecx
movslq %ecx, %rdx
callq 0x2300
cmpl $-0x1, %eax
je 0x62a4
movl 0x1008(%rbx), %ecx
leal (%rcx,%rax), %edx
addl $0xfff, %edx            # imm = 0xFFF
addl %eax, %ecx
cmovnsl %ecx, %edx
andl $0xfffff000, %edx       # imm = 0xFFFFF000
subl %edx, %ecx
movl %ecx, 0x1008(%rbx)
addl %eax, 0x100c(%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
leaq 0x38c1(%rip), %rdi      # 0x9b73
leaq 0x38c6(%rip), %rsi      # 0x9b7f
leaq 0x38d6(%rip), %rcx      # 0x9b96
movl $0x2a, %edx
callq 0x2190
// File: /workspace/github_cpp_makefile_star2_O3/fieryzig[P]GameServer/Common/Client/Client.cpp
// Function: fieryzig::Client::debugPrint(char*, int)
void Client::debugPrint(char* ch, int sz)
{
    cout << "+++++++" << sz << "+++++++" << endl;
    for (int i = 0; i < sz; i++) {
        printf("%02x",*(ch+i)&0xFF);
        if ( i % 64 == 63 ) puts("");
    }
    cout << endl << "----------------" << endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %r15d
movq %rsi, %r14
movq 0x67b5(%rip), %rbx      # 0xcfd8
leaq 0x332b(%rip), %r12      # 0x9b55
movl $0x7, %edx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x2290
movq %rbx, %rdi
movl %r15d, %esi
callq 0x2360
movq %rax, %r13
movl $0x7, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x2290
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x2230
movsbl %al, %esi
movq %r13, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x21b0
testl %r15d, %r15d
jle 0x68bc
movl %r15d, %r12d
leaq 0x32ce(%rip), %r15      # 0x9b5d
xorl %r13d, %r13d
movzbl (%r14,%r13), %esi
movq %r15, %rdi
xorl %eax, %eax
callq 0x2040
movl %r13d, %eax
notl %eax
testb $0x3f, %al
jne 0x68b4
movl $0xa, %edi
callq 0x22f0
incq %r13
cmpq %r13, %r12
jne 0x6892
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2230
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x21b0
movq %rax, %rbx
leaq 0x3275(%rip), %rsi      # 0x9b62
movl $0x10, %edx
movq %rax, %rdi
callq 0x2290
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2230
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x21b0
// File: /workspace/github_cpp_makefile_star2_O3/tetsuok[P]kernel-pa/./learner.h
// Function: kernel::Learner::Margin(std::vector<std::pair<unsigned int, float>, std::allocator<std::pair<unsigned int, float>>> const&)
float Margin(const fv& x) {
    margin_.assign(margin_.size(), 0.0f);

    for (const auto& p : x) {
      const unsigned int id = p.first;
      const float v = p.second;
      if (id >= sv_index_.size()) {
        continue;
      }
      const fv& s = sv_index_[id];
      for (const auto& p2 : s) {
        margin_[p2.first] += p2.second * v;
      }
    }

    return Polynomial();
  }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq 0x48(%rdi), %rsi
subq 0x40(%rdi), %rsi
addq $0x40, %rdi
sarq $0x2, %rsi
leaq 0x4(%rsp), %rdx
movl $0x0, (%rdx)
callq 0x2bea
movq (%r14), %rax
movq 0x8(%r14), %rcx
cmpq %rcx, %rax
je 0x2bd9
movq 0x28(%rbx), %rdx
movq 0x30(%rbx), %rdi
subq %rdx, %rdi
sarq $0x3, %rdi
movabsq $-0x5555555555555555, %rsi # imm = 0xAAAAAAAAAAAAAAAB
imulq %rdi, %rsi
movq 0x40(%rbx), %rdi
movl (%rax), %r8d
cmpq %r8, %rsi
jbe 0x2bd0
leaq (%r8,%r8,2), %r9
movq (%rdx,%r9,8), %r8
movq 0x8(%rdx,%r9,8), %r9
cmpq %r9, %r8
je 0x2bd0
movss 0x4(%rax), %xmm0
movl (%r8), %r10d
movss 0x4(%r8), %xmm1
mulss %xmm0, %xmm1
addss (%rdi,%r10,4), %xmm1
movss %xmm1, (%rdi,%r10,4)
addq $0x8, %r8
cmpq %r9, %r8
jne 0x2bae
addq $0x8, %rax
cmpq %rcx, %rax
jne 0x2b8f
movq %rbx, %rdi
callq 0x3eb2
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/tetsuok[P]kernel-pa/learner.cc
// Function: kernel::Learner::Polynomial() const
float Learner::Polynomial() const {
  float r = 0.0f;

  if (d_ == 1) {
    for (size_t i = 0; i < margin_.size(); ++i) {
      r += margin_[i] * alpha_[i];
    }
  } else if (d_ == 2) {
    for (size_t i = 0; i < margin_.size(); ++i) {
      r += (margin_[i] * margin_[i]) * alpha_[i];
    }
  } else if (d_ == 3) {
    for (size_t i = 0; i < margin_.size(); ++i) {
      r += (margin_[i] * margin_[i] * margin_[i]) * alpha_[i];
    }
  } else if (d_ == 4) {
    for (size_t i = 0; i < margin_.size(); ++i) {
      r += (margin_[i] * margin_[i] * margin_[i] * margin_[i]) * alpha_[i];
    }
  }
  return r;
}

// Assembly:
movl 0xc(%rdi), %eax
xorps %xmm0, %xmm0
decl %eax
cmpl $0x3, %eax
ja 0x3fd6
leaq 0x228e(%rip), %rcx      # 0x6158
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x40(%rdi), %rax
movq 0x48(%rdi), %rcx
subq %rax, %rcx
je 0x3fd6
sarq $0x2, %rcx
movq 0x10(%rdi), %rdx
cmpq $0x1, %rcx
adcq $0x0, %rcx
xorl %esi, %esi
movss (%rax,%rsi,4), %xmm1
mulss (%rdx,%rsi,4), %xmm1
addss %xmm1, %xmm0
incq %rsi
cmpq %rsi, %rcx
jne 0x3ef6
jmp 0x3fd6
movq 0x40(%rdi), %rax
movq 0x48(%rdi), %rcx
subq %rax, %rcx
je 0x3fd6
sarq $0x2, %rcx
movq 0x10(%rdi), %rdx
cmpq $0x1, %rcx
adcq $0x0, %rcx
xorl %esi, %esi
movss (%rax,%rsi,4), %xmm1
movaps %xmm1, %xmm2
mulss %xmm1, %xmm2
mulss %xmm1, %xmm2
mulss (%rdx,%rsi,4), %xmm2
addss %xmm2, %xmm0
incq %rsi
cmpq %rsi, %rcx
jne 0x3f34
jmp 0x3fd6
movq 0x40(%rdi), %rax
movq 0x48(%rdi), %rcx
subq %rax, %rcx
je 0x3fd6
sarq $0x2, %rcx
movq 0x10(%rdi), %rdx
cmpq $0x1, %rcx
adcq $0x0, %rcx
xorl %esi, %esi
movss (%rax,%rsi,4), %xmm1
movaps %xmm1, %xmm2
mulss %xmm1, %xmm2
mulss %xmm1, %xmm2
mulss %xmm1, %xmm2
mulss (%rdx,%rsi,4), %xmm2
addss %xmm2, %xmm0
incq %rsi
cmpq %rsi, %rcx
jne 0x3f76
jmp 0x3fd6
movq 0x40(%rdi), %rax
movq 0x48(%rdi), %rcx
subq %rax, %rcx
je 0x3fd6
sarq $0x2, %rcx
movq 0x10(%rdi), %rdx
cmpq $0x1, %rcx
adcq $0x0, %rcx
xorl %esi, %esi
movss (%rax,%rsi,4), %xmm1
mulss %xmm1, %xmm1
mulss (%rdx,%rsi,4), %xmm1
addss %xmm1, %xmm0
incq %rsi
cmpq %rsi, %rcx
jne 0x3fbc
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/tetsuok[P]kernel-pa/tokenizer.cc
// Function: kernel::Tokenize(char const*, std::vector<std::pair<unsigned int, float>, std::allocator<std::pair<unsigned int, float>>>*, short*, unsigned long*)
bool Tokenize(const char *line, fv *fv, short *y, std::size_t *maxid) {
  *y = static_cast<short>(atoi(line));
  if (*y != 1 && *y != -1) {
    LOG(ERROR) << "Invalid label. A label must be +1 or -1.";
    return false;
  }

  while (!isspace(*line) && *line) line++;
  while (isspace(*line) && *line) line++;
  while (1) {
    const char *begin = line;
    unsigned int index = std::atol(begin);
    while (*line != ':' && *line) line++;
    float val = std::atof(++line);

    while (*line != ' ' && *line) line++;
    fv->push_back(std::make_pair(index, val));
    if (index > *maxid) *maxid = index;
    if (*line++ == 0) break;
  }
  return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %rbx
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %r15
callq 0x2220
movw %ax, (%r12)
cmpw $-0x1, %ax
je 0x514a
movzwl %ax, %eax
cmpl $0x1, %eax
jne 0x51f6
addq $-0x2, %r15
movsbl 0x2(%r15), %ebp
movl %ebp, %edi
callq 0x2060
incq %r15
testl %ebp, %ebp
je 0x516b
testl %eax, %eax
je 0x514e
jmp 0x516b
testl %eax, %eax
je 0x517e
movsbl 0x1(%r15), %ebp
incq %r15
movl %ebp, %edi
callq 0x2060
testl %ebp, %ebp
jne 0x5167
leaq 0x10(%rsp), %r12
movq %r15, %rdi
callq 0x2190
movq %rax, %r13
leaq 0x1(%r15), %rdi
addq $0x2, %r15
movzbl -0x1(%rdi), %eax
testl %eax, %eax
je 0x51ab
cmpl $0x3a, %eax
je 0x51ab
incq %rdi
incq %r15
jmp 0x5196
callq 0x21b0
cvtsd2ss %xmm0, %xmm0
movzbl -0x1(%r15), %eax
testb $-0x21, %al
je 0x51c2
incq %r15
jmp 0x51b4
movd %xmm0, %eax
shlq $0x20, %rax
movl %r13d, %r13d
orq %r13, %rax
movq %rax, 0x10(%rsp)
movq %r14, %rdi
movq %r12, %rsi
callq 0x42ea
cmpq %r13, (%rbx)
jae 0x51e8
movq %r13, (%rbx)
cmpb $0x0, -0x1(%r15)
jne 0x5183
movb $0x1, %al
jmp 0x52be
movl $0x2, 0xc(%rsp)
movq 0x3deb(%rip), %rdi      # 0x8ff0
leaq 0xe63(%rip), %rsi       # 0x606f
movl $0x4, %edx
callq 0x2180
movq 0x3dd3(%rip), %rdi      # 0x8ff0
leaq 0xe50(%rip), %rsi       # 0x6074
movl $0x5, %edx
callq 0x2180
movq 0x3dbb(%rip), %rdi      # 0x8ff0
leaq 0xe3e(%rip), %rsi       # 0x607a
movl $0x3, %edx
callq 0x2180
movq 0x3da3(%rip), %rdi      # 0x8ff0
leaq 0x1008(%rip), %rsi      # 0x625c
movl $0xc, %edx
callq 0x2180
movq 0x3d8b(%rip), %rdi      # 0x8ff0
leaq 0xe06(%rip), %rsi       # 0x6072
movl $0x1, %edx
callq 0x2180
movq 0x3d73(%rip), %rdi      # 0x8ff0
movl $0xd, %esi
callq 0x2260
movq %rax, %rbx
leaq 0xe03(%rip), %rsi       # 0x6094
movl $0x2, %edx
movq %rax, %rdi
callq 0x2180
leaq 0xfc4(%rip), %rsi       # 0x6269
movl $0x28, %edx
movq %rbx, %rdi
callq 0x2180
leaq 0xc(%rsp), %rdi
callq 0x2ae0
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0xc(%rsp), %rdi
callq 0x2ae0
movq %rbx, %rdi
callq 0x2270
// File: /workspace/github_cpp_makefile_star2_O3/drummyfish[P]flowchart/src/lodepng.cpp
// Function: sort_coins(Coin*, unsigned long)
static void sort_coins(Coin* data, size_t amount)
{
  size_t gap = amount;
  unsigned char swapped = 0;
  while((gap > 1) || swapped)
  {
    size_t i;
    gap = (gap * 10) / 13; /*shrink factor 1.3*/
    if(gap == 9 || gap == 10) gap = 11; /*combsort11*/
    if(gap < 1) gap = 1;
    swapped = 0;
    for(i = 0; i < amount - gap; i++)
    {
      size_t j = i + gap;
      if(data[j].weight < data[i].weight)
      {
        float temp = data[j].weight; data[j].weight = data[i].weight; data[i].weight = temp;
        uivector_swap(&data[i].symbols, &data[j].symbols);
        swapped = 1;
      }
    }
  }
}

// Assembly:
cmpq $0x2, %rsi
jb 0x2c5a
pushq %rbx
movabsq $0x4ec4ec4ec4ec4ec5, %rcx # imm = 0x4EC4EC4EC4EC4EC5
movl $0xb, %r8d
movq %rsi, %r9
addq %r9, %r9
leaq (%r9,%r9,4), %rax
mulq %rcx
leaq (%r9,%r9,4), %rax
addq $-0x75, %rax
shrq $0x2, %rdx
cmpq $0x1, %rdx
adcq $0x0, %rdx
cmpq $0x1a, %rax
movq %rdx, %r9
cmovbq %r8, %r9
movq %rsi, %rax
subq %r9, %rax
jne 0x2be5
xorl %eax, %eax
jmp 0x2c47
movq %r9, %rdx
shlq $0x5, %rdx
xorl %r11d, %r11d
movq %rdi, %r10
movss 0x18(%r10,%rdx), %xmm0
movss 0x18(%r10), %xmm1
ucomiss %xmm0, %xmm1
jbe 0x2c38
movss %xmm1, 0x18(%r10,%rdx)
movss %xmm0, 0x18(%r10)
movups 0x8(%r10), %xmm0
movups 0x8(%r10,%rdx), %xmm1
movups %xmm1, 0x8(%r10)
movups %xmm0, 0x8(%r10,%rdx)
movq (%r10), %r11
movq (%r10,%rdx), %rbx
movq %rbx, (%r10)
movq %r11, (%r10,%rdx)
movb $0x1, %r11b
addq $0x20, %r10
decq %rax
jne 0x2bf2
testb %r11b, %r11b
setne %al
cmpq $0x2, %r9
setae %dl
orb %al, %dl
testb $0x1, %dl
jne 0x2bb0
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O3/drummyfish[P]flowchart/src/lodepng.cpp
// Function: lodepng_crc32(unsigned char const*, unsigned long)
static unsigned Crc32_update_crc(const unsigned char* buf, unsigned crc, size_t len)
{
  unsigned c = crc;
  size_t n;

  if(!Crc32_crc_table_computed) Crc32_make_crc_table();
  for(n = 0; n < len; n++)
  {
    c = Crc32_crc_table[(c ^ buf[n]) & 0xff] ^ (c >> 8);
  }
  return c;
}

// Assembly:
cmpb $0x0, 0x12add(%rip)     # 0x181f0
jne 0x575b
xorl %eax, %eax
leaq 0x12ae2(%rip), %rcx     # 0x18200
movl $0x8, %edx
movl %eax, %r8d
movl %r8d, %r9d
shrl %r9d
movl %r9d, %r10d
xorl $0xedb88320, %r10d      # imm = 0xEDB88320
testb $0x1, %r8b
movl %r10d, %r8d
cmovel %r9d, %r8d
decl %edx
jne 0x5726
movl %r8d, (%rcx,%rax,4)
incq %rax
cmpq $0x100, %rax            # imm = 0x100
jne 0x571e
movb $0x1, 0x12a95(%rip)     # 0x181f0
testq %rsi, %rsi
je 0x578b
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
xorl %ecx, %ecx
leaq 0x12a92(%rip), %rdx     # 0x18200
movb (%rdi,%rcx), %r8b
xorb %al, %r8b
movzbl %r8b, %r8d
shrl $0x8, %eax
xorl (%rdx,%r8,4), %eax
incq %rcx
cmpq %rcx, %rsi
jne 0x576e
notl %eax
retq
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O3/drummyfish[P]flowchart/src/lodepng.cpp
// Function: lodepng_chunk_append(unsigned char**, unsigned long*, unsigned char const*)
unsigned lodepng_chunk_append(unsigned char** out, size_t* outlength, const unsigned char* chunk)
{
  unsigned i;
  unsigned total_chunk_length = lodepng_chunk_length(chunk) + 12;
  unsigned char *chunk_start, *new_buffer;
  size_t new_length = (*outlength) + total_chunk_length;
  if(new_length < total_chunk_length || new_length < (*outlength)) return 77; /*integer overflow happened*/

  new_buffer = (unsigned char*)myrealloc(*out, new_length);
  if(!new_buffer) return 83; /*alloc fail*/
  (*out) = new_buffer;
  (*outlength) = new_length;
  chunk_start = &(*out)[new_length - total_chunk_length];

  for(i = 0; i < total_chunk_length; i++) chunk_start[i] = chunk[i];

  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, %rbx
movzbl (%rdx), %r13d
shll $0x18, %r13d
movzbl 0x1(%rdx), %r15d
shll $0x10, %r15d
leal (%r15,%r13), %eax
movzbl 0x2(%rdx), %r14d
shll $0x8, %r14d
orl %r14d, %eax
movzbl 0x3(%rdx), %ecx
leal (%rcx,%rax), %ebp
addl $0xc, %ebp
movq (%rsi), %rax
movq %rbp, %r12
movl $0x4d, %edx
addq %rax, %r12
jb 0x5940
movq %rax, 0x8(%rsp)
movq %rcx, 0x10(%rsp)
movq %rsi, 0x20(%rsp)
movq %rdi, 0x18(%rsp)
movq (%rdi), %rdi
movq %r12, %rsi
callq 0x2320
testq %rax, %rax
je 0x593b
movq 0x18(%rsp), %rcx
movq %rax, (%rcx)
movq 0x20(%rsp), %rcx
movq %r12, (%rcx)
xorl %edx, %edx
testl %ebp, %ebp
je 0x5940
addq 0x8(%rsp), %rax
orl %r15d, %r13d
orl %r14d, %r13d
movq 0x10(%rsp), %rcx
leal (%rcx,%r13), %edx
addl $0xb, %edx
incq %rdx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x2150
xorl %edx, %edx
jmp 0x5940
movl $0x53, %edx
movl %edx, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/drummyfish[P]flowchart/src/lodepng.cpp
// Function: lodepng_chunk_create(unsigned char**, unsigned long*, unsigned int, char const*, unsigned char const*)
unsigned lodepng_chunk_create(unsigned char** out, size_t* outlength, unsigned length,
                              const char* type, const unsigned char* data)
{
  unsigned i;
  unsigned char *chunk, *new_buffer;
  size_t new_length = (*outlength) + length + 12;
  if(new_length < length + 12 || new_length < (*outlength)) return 77; /*integer overflow happened*/
  new_buffer = (unsigned char*)myrealloc(*out, new_length);
  if(!new_buffer) return 83; /*alloc fail*/
  (*out) = new_buffer;
  (*outlength) = new_length;
  chunk = &(*out)[(*outlength) - length - 12];

  /*1: length*/
  lodepng_set32bitInt(chunk, (unsigned)length);

  /*2: chunk name (4 letters)*/
  chunk[4] = type[0];
  chunk[5] = type[1];
  chunk[6] = type[2];
  chunk[7] = type[3];

  /*3: the data*/
  for(i = 0; i < length; i++) chunk[8 + i] = data[i];

  /*4: CRC (of the chunkname characters and the data)*/
  lodepng_chunk_generate_crc(chunk);

  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %r14d
movq %rsi, %r15
movl %edx, %r13d
leaq 0xc(%r13), %rbp
addq (%rsi), %rbp
setb %al
leal 0xc(%r14), %esi
cmpq %rsi, %rbp
setb %sil
orb %al, %sil
movl $0x4d, %eax
jne 0x5a0e
movq %r8, %rbx
movq %rdi, %r12
movq %rcx, (%rsp)
movq (%rdi), %rdi
movq %rbp, %rsi
callq 0x2320
testq %rax, %rax
je 0x5a09
movq %rax, (%r12)
movq %rbp, (%r15)
subq %r13, %rbp
leaq (%rax,%rbp), %rdi
addq $-0xc, %rdi
movq %r14, %rdx
movl %edx, %ecx
shrl $0x18, %ecx
movb %cl, -0xc(%rax,%rbp)
movl %edx, %ecx
shrl $0x10, %ecx
movb %cl, -0xb(%rax,%rbp)
movb %dh, -0xa(%rax,%rbp)
movb %dl, -0x9(%rax,%rbp)
movq (%rsp), %rcx
movl (%rcx), %ecx
movl %ecx, -0x8(%rax,%rbp)
testl %edx, %edx
je 0x5a00
negq %r13
movl $0x8, %eax
movb -0x8(%rbx,%rax), %cl
movl %eax, %edx
movb %cl, (%rdi,%rdx)
leaq (%rax,%r13), %rcx
incq %rcx
incq %rax
cmpq $0x8, %rcx
jne 0x59e7
callq 0x584b
xorl %eax, %eax
jmp 0x5a0e
movl $0x53, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/drummyfish[P]flowchart/src/lodepng.cpp
// Function: lodepng_color_mode_copy(LodePNGColorMode*, LodePNGColorMode const*)
unsigned lodepng_color_mode_copy(LodePNGColorMode* dest, const LodePNGColorMode* source)
{
  size_t i;
  lodepng_color_mode_cleanup(dest);
  *dest = *source;
  if(source->palette)
  {
    dest->palette = (unsigned char*)mymalloc(source->palettesize * 4);
    if(!dest->palette && source->palettesize) return 83; /*alloc fail*/
    for(i = 0; i < source->palettesize * 4; i++) dest->palette[i] = source->palette[i];
  }
  return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0x8(%rdi), %rdi
testq %rdi, %rdi
je 0x5a8a
callq 0x2220
movq $0x0, 0x10(%r14)
movq 0x20(%rbx), %rax
movq %rax, 0x20(%r14)
movups (%rbx), %xmm0
movups 0x10(%rbx), %xmm1
movups %xmm1, 0x10(%r14)
movups %xmm0, (%r14)
xorl %eax, %eax
cmpq $0x0, 0x8(%rbx)
je 0x5b0c
movq 0x10(%rbx), %r12
leaq (,%r12,4), %r15
movq %r15, %rdi
callq 0x2270
movq %rax, 0x8(%r14)
testq %rax, %rax
sete %cl
testq %r12, %r12
setne %dl
movl $0x53, %eax
testb %cl, %dl
jne 0x5b0c
movl $0x0, %eax
testq %r15, %r15
je 0x5b0c
xorl %eax, %eax
xorl %ecx, %ecx
movq 0x8(%rbx), %rdx
movb (%rdx,%rcx), %dl
movq 0x8(%r14), %rsi
movb %dl, (%rsi,%rcx)
incq %rcx
movq 0x10(%rbx), %rdx
shlq $0x2, %rdx
cmpq %rdx, %rcx
jb 0x5aee
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/drummyfish[P]flowchart/src/lodepng.cpp
// Function: lodepng_palette_add(LodePNGColorMode*, unsigned char, unsigned char, unsigned char, unsigned char)
unsigned lodepng_palette_add(LodePNGColorMode* info,
                             unsigned char r, unsigned char g, unsigned char b, unsigned char a)
{
  unsigned char* data;
  /*the same resize technique as C++ std::vectors is used, and here it's made so that for a palette with
  the max of 256 colors, it'll have the exact alloc size*/
  if(!(info->palettesize & (info->palettesize - 1))) /*if palettesize is 0 or a power of two*/
  {
    /*allocated data must be at least 4* palettesize (for 4 color bytes)*/
    size_t alloc_size = info->palettesize == 0 ? 4 : info->palettesize * 4 * 2;
    data = (unsigned char*)myrealloc(info->palette, alloc_size);
    if(!data) return 83; /*alloc fail*/
    else info->palette = data;
  }
  info->palette[4 * info->palettesize + 0] = r;
  info->palette[4 * info->palettesize + 1] = g;
  info->palette[4 * info->palettesize + 2] = b;
  info->palette[4 * info->palettesize + 3] = a;
  info->palettesize++;
  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %r8d, %ebx
movl %ecx, %ebp
movl %edx, %r15d
movl %esi, %r12d
movq %rdi, %r14
movq 0x10(%rdi), %rcx
leaq -0x1(%rcx), %rax
testq %rax, %rcx
jne 0x5b67
leaq (,%rcx,8), %rax
testq %rcx, %rcx
movl $0x4, %esi
cmovneq %rax, %rsi
movq 0x8(%r14), %rdi
callq 0x2320
testq %rax, %rax
je 0x5ba4
movq %rax, 0x8(%r14)
movq 0x10(%r14), %rcx
jmp 0x5b6b
movq 0x8(%r14), %rax
movb %r12b, (%rax,%rcx,4)
movq 0x8(%r14), %rax
movq 0x10(%r14), %rcx
movb %r15b, 0x1(%rax,%rcx,4)
movq 0x8(%r14), %rax
movq 0x10(%r14), %rcx
movb %bpl, 0x2(%rax,%rcx,4)
movq 0x8(%r14), %rax
movq 0x10(%r14), %rcx
movb %bl, 0x3(%rax,%rcx,4)
incq 0x10(%r14)
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl $0x53, %eax
jmp 0x5b9b
// File: /workspace/github_cpp_makefile_star2_O3/drummyfish[P]flowchart/src/lodepng.cpp
// Function: LodePNGText_cleanup(LodePNGInfo*)
static void LodePNGText_cleanup(LodePNGInfo* info)
{
  size_t i;
  for(i = 0; i < info->text_num; i++)
  {
    string_cleanup(&info->text_keys[i]);
    string_cleanup(&info->text_strings[i]);
  }
  myfree(info->text_keys);
  myfree(info->text_strings);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpq $0x0, 0x48(%rdi)
je 0x5ce5
xorl %r14d, %r14d
xorl %r15d, %r15d
movq 0x50(%rbx), %r12
movq (%r12,%r15,8), %rdi
callq 0x2220
movq %r14, (%r12,%r15,8)
movq 0x58(%rbx), %r12
movq (%r12,%r15,8), %rdi
callq 0x2220
movq %r14, (%r12,%r15,8)
incq %r15
cmpq 0x48(%rbx), %r15
jb 0x5cba
movq 0x50(%rbx), %rdi
callq 0x2220
movq 0x58(%rbx), %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x2220
// File: /workspace/github_cpp_makefile_star2_O3/drummyfish[P]flowchart/src/lodepng.cpp
// Function: lodepng_add_text(LodePNGInfo*, char const*, char const*)
unsigned lodepng_add_text(LodePNGInfo* info, const char* key, const char* str)
{
  char** new_keys = (char**)(myrealloc(info->text_keys, sizeof(char*) * (info->text_num + 1)));
  char** new_strings = (char**)(myrealloc(info->text_strings, sizeof(char*) * (info->text_num + 1)));
  if(!new_keys || !new_strings)
  {
    myfree(new_keys);
    myfree(new_strings);
    return 83; /*alloc fail*/
  }

  info->text_num++;
  info->text_keys = new_keys;
  info->text_strings = new_strings;

  string_init(&info->text_keys[info->text_num - 1]);
  string_set(&info->text_keys[info->text_num - 1], key);

  string_init(&info->text_strings[info->text_num - 1]);
  string_set(&info->text_strings[info->text_num - 1], str);

  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
movq 0x48(%rdi), %rax
movq 0x50(%rdi), %rdi
leaq 0x8(,%rax,8), %rsi
callq 0x2320
movq %rax, %r12
movq 0x48(%r14), %rax
movq 0x58(%r14), %rdi
leaq 0x8(,%rax,8), %rsi
callq 0x2320
movq %rax, %r13
testq %r12, %r12
setne %al
testq %r13, %r13
setne %cl
testb %cl, %al
je 0x5de1
movq %rbx, (%rsp)
movq 0x48(%r14), %rbx
leaq 0x1(%rbx), %rbp
movq %rbp, 0x48(%r14)
movq %r12, 0x50(%r14)
movq %r13, 0x58(%r14)
movq $0x0, (%r12,%rbx,8)
movl $0x1, %edi
callq 0x2270
testq %rax, %rax
je 0x5d90
movb $0x0, (%rax)
movq %rax, (%r12,%rbx,8)
leaq (%r12,%rbp,8), %rdi
addq $-0x8, %rdi
movq %r15, %rsi
callq 0x5e05
movq 0x48(%r14), %rbx
movq 0x58(%r14), %r15
movq $0x0, -0x8(%r15,%rbx,8)
movl $0x1, %edi
callq 0x2270
testq %rax, %rax
je 0x5dc8
movb $0x0, (%rax)
movq %rax, -0x8(%r15,%rbx,8)
movq 0x58(%r14), %rax
leaq (%rax,%rbx,8), %rdi
addq $-0x8, %rdi
movq (%rsp), %rsi
callq 0x5e05
xorl %eax, %eax
jmp 0x5df6
movq %r12, %rdi
callq 0x2220
movq %r13, %rdi
callq 0x2220
movl $0x53, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq