LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/jasperandrew[P]cs350-project2/./classes.cpp
// Function: WriteBuffer::WriteBuffer()
WriteBuffer::WriteBuffer(){
    num_blocks = 0;
    inode_counter = 0;
    for(int i = 0; i < 8; i++){
        seg_summary[i] = new Block(3);
        addBlock(seg_summary[i]);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq $0x0, 0x2000(%rdi)
movl $0x401, %r15d           # imm = 0x401
movl $0x1f10, %edi           # imm = 0x1F10
callq 0x21f0
movq %rax, %r14
movl $0x3, (%rax)
leaq 0xb08(%rax), %rdi
movl $0x408, %edx            # imm = 0x408
xorl %esi, %esi
callq 0x2100
movq %r14, (%rbx,%r15,8)
movslq 0x2000(%rbx), %rax
leal 0x1(%rax), %ecx
movl %ecx, 0x2000(%rbx)
movq %r14, (%rbx,%rax,8)
cmpl $0x400, %ecx            # imm = 0x400
jne 0x4570
movq %rbx, %rdi
callq 0x45b4
incq %r15
cmpq $0x409, %r15            # imm = 0x409
jne 0x4522
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/jasperandrew[P]cs350-project2/./lab7.h
// Function: Block::writeToSegment()
void writeToSegment(){
            if(type == 0)
                memcpy(mem_segment+(mem_segment_idx++ * BLOCK_SZ), data, BLOCK_SZ);
            else if(type == 1)
                memcpy(mem_segment+(mem_segment_idx++ * BLOCK_SZ), &inode_data, sizeof(inode));
            else if(type == 2)
                memcpy(mem_segment+(mem_segment_idx++ * BLOCK_SZ), block_data, BLOCK_SZ);
            else if(type ==3)
                memcpy(mem_segment+(mem_segment_idx++ * BLOCK_SZ), seg_sum_arr, BLOCK_SZ);
        }

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl (%rdi), %eax
cmpq $0x3, %rax
ja 0x5408
movq %rdi, %rsi
leaq 0xcac(%rip), %rcx       # 0x6004
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movslq 0x103ed8(%rip), %rax    # 0x109240
leal 0x1(%rax), %ecx
movl %ecx, 0x103ecf(%rip)    # 0x109240
shlq $0xa, %rax
leaq 0x3ec4(%rip), %rdi      # 0x9240
addq %rax, %rdi
addq $0x4, %rsi
jmp 0x53d1
movslq 0x103eb4(%rip), %rax    # 0x109240
leal 0x1(%rax), %ecx
movl %ecx, 0x103eab(%rip)    # 0x109240
shlq $0xa, %rax
leaq 0x3ea0(%rip), %rdi      # 0x9240
addq %rax, %rdi
addq $0x708, %rsi            # imm = 0x708
jmp 0x53d1
movslq 0x103e8d(%rip), %rax    # 0x109240
leal 0x1(%rax), %ecx
movl %ecx, 0x103e84(%rip)    # 0x109240
shlq $0xa, %rax
leaq 0x3e79(%rip), %rdi      # 0x9240
addq %rax, %rdi
addq $0xb0c, %rsi            # imm = 0xB0C
movl $0x400, %edx            # imm = 0x400
jmp 0x5402
movslq 0x103e61(%rip), %rax    # 0x109240
leal 0x1(%rax), %ecx
movl %ecx, 0x103e58(%rip)    # 0x109240
shlq $0xa, %rax
leaq 0x3e4d(%rip), %rdi      # 0x9240
addq %rax, %rdi
addq $0x404, %rsi            # imm = 0x404
movl $0x304, %edx            # imm = 0x304
popq %rbp
jmp 0x2170
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x2df2(%rip), %rsi      # 0x6067
movl $0x6, %ebx
leaq (%rsi,%rbx), %rdx
leaq 0x20(%rsp), %rdi
callq 0x515e
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       # 0x33ea
movq %rdx, 0x28(%rax)
leaq 0x3f5(%rip), %rdx       # 0x36b4
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       # 0x36cc
movq %rax, 0x28(%r15)
leaq 0x7c8(%rip), %rax       # 0x3ac4
movq %rax, 0x20(%r15)
leaq 0x8(%rsp), %rdi
leaq 0x40(%rsp), %rsi
leaq 0x7(%rsp), %rcx
movl $0x2, %edx
callq 0x4090
leaq 0x20(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x2f08
movl %eax, %ebx
leaq 0x8(%rsp), %rdi
callq 0x3fd0
leaq 0xa0(%rsp), %r12
xorl %r13d, %r13d
movq 0xb0(%rsp,%r13), %rax
testq %rax, %rax
je 0x335a
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 0x3370
callq 0x2180
addq $-0x40, %r13
cmpq $-0x80, %r13
jne 0x333f
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0x3389
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 0x3fd0
jmp 0x33ae
movq %rax, %rbx
movl $0x40, %r15d
leaq (%rsp,%r15), %rdi
addq $0x40, %rdi
callq 0x40d2
addq $-0x40, %r15
cmpq $-0x40, %r15
jne 0x33b4
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0x33da
callq 0x2180
movq %rbx, %rdi
callq 0x2290
movq %rax, %rdi
callq 0x3e55
// File: /workspace/github_cpp_makefile_star2_O1/dhruvbhargava[P]microTP/src/HttpMethods.cpp
// Function: format(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, int)
std::string format(std::string http_template, int value)
{
    std::string val = std::to_string(value);
    std::string http_template_end = HTTP_OK_KEEP_ALIVE_END;
    std::string http_string = http_template+val+http_template_end;
    return http_string;
    
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movl %edx, %r15d
movq %rsi, %r14
movq %rdi, %rbx
movl %edx, %ebp
negl %ebp
cmovsl %edx, %ebp
movl $0x1, %r12d
cmpl $0xa, %ebp
jb 0x256e
movl $0x4, %r12d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x2565
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x256b
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x256e
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r12d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x2532
addl $-0x3, %r12d
jmp 0x256e
addl $-0x2, %r12d
jmp 0x256e
decl %r12d
shrl $0x1f, %r15d
leal (%r12,%r15), %esi
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x8(%rsp), %r13
movq %r13, %rdi
movl $0x2d, %edx
callq 0x2240
addq (%r13), %r15
movq %r15, %rdi
movl %r12d, %esi
movl %ebp, %edx
callq 0x2cab
leaq 0x38(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x1a52(%rip), %rsi      # 0x4004
leaq 0x1a68(%rip), %rdx      # 0x4021
leaq 0x28(%rsp), %rdi
callq 0x2da8
leaq 0x48(%rsp), %rdi
leaq 0x8(%rsp), %rdx
movq %r14, %rsi
callq 0x2c51
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
leaq 0x48(%rsp), %rdi
callq 0x20b0
leaq 0x10(%rbx), %rdx
movq %rdx, (%rbx)
movq (%rax), %rsi
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rsi
je 0x260b
movq %rsi, (%rbx)
movq (%rcx), %rdx
movq %rdx, 0x10(%rbx)
jmp 0x2611
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rbx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2643
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2210
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x265a
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2210
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x2676
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2210
movq %rbx, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x26ab
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2210
jmp 0x26ab
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x26c7
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2210
jmp 0x26c7
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x26e3
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2210
movq %rbx, %rdi
callq 0x2310
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x2eaf
movq %rbx, %rdi
movq %r15, %rsi
callq 0x349e
jmp 0x2e87
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x2ec6
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2210
movq 0x30eb(%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 0x2f19
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2210
movq 0x3098(%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_O1/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 0x3847
movq %rax, %rcx
subq (%rbx), %rcx
movq %rcx, 0x8(%rbx)
movb $0x0, (%rax)
movq 0x8(%rbx), %r15
testq %r15, %r15
je 0x2f9b
movq (%rbx), %r12
xorl %r13d, %r13d
movsbl (%r12,%r13), %edi
callq 0x2280
movb %al, (%r12,%r13)
incq %r13
cmpq %r13, %r15
jne 0x2f85
leaq 0x10(%r14), %rcx
movq %rcx, (%r14)
movq (%rbx), %rdx
leaq 0x10(%rbx), %rax
cmpq %rax, %rdx
je 0x2fba
movq %rdx, (%r14)
movq (%rax), %rcx
movq %rcx, 0x10(%r14)
jmp 0x2fc0
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_O1/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 0x269c(%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 0x39b3
movq 0x264d(%rip), %r14      # 0x5fd8
leaq 0x861(%rip), %rsi       # 0x41f3
movl $0x17, %edx
movq %r14, %rdi
callq 0x2230
leaq 0x67a(%rip), %rsi       # 0x4020
movl $0x1, %edx
movq %r14, %rdi
callq 0x2230
movq 0x261e(%rip), %r14      # 0x5fd8
leaq 0x84a(%rip), %rsi       # 0x420b
movl $0xf, %edx
movq %r14, %rdi
callq 0x2230
leaq 0xc(%rbx), %rsi
xorps %xmm0, %xmm0
movups %xmm0, 0xc(%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 0x3a44
leaq 0x823(%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 0x258d(%rip), %rdi      # 0x5fd8
leaq 0x7c9(%rip), %rsi       # 0x421b
callq 0x21f0
leaq 0x5c2(%rip), %rsi       # 0x4020
movq %rax, %rdi
callq 0x21f0
movl $0x1, %edi
callq 0x2250
// File: /workspace/github_cpp_makefile_star2_O1/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 0x2544(%rip), %r14      # 0x5fd8
leaq 0x7a0(%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 0x3b2d
leaq 0x783(%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 0x3add
leaq 0x40(%rsp), %r13
leaq 0x20(%rsp), %r12
leaq 0x10(%rsp), %r14
leaq 0x30(%rsp), %r15
movq %r14, %rdi
movq %rbx, %rsi
callq 0x3be0
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 0x3c52
movq 0x30(%rsp), %rdi
cmpq %r13, %rdi
je 0x3b88
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x2210
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0x3b41
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2210
jmp 0x3b41
movq %rax, %rbx
movq 0x30(%rsp), %rdi
cmpq %r13, %rdi
je 0x3bc0
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x2210
jmp 0x3bc0
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0x3bd7
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2210
movq %rbx, %rdi
callq 0x2310
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 %rbx
subq $0xf230, %rsp           # imm = 0xF230
movq %rsi, %r14
movq %rdi, %rbx
xorl %r15d, %r15d
movl 0x8(%r14), %edi
leaq (%rsp,%r15), %rsi
movl $0x1, %edx
callq 0x2270
cmpq $0x3, %r15
jb 0x3c1c
cmpb $0xd, (%rsp,%r15)
jne 0x3c1c
cmpb $0xd, -0x2(%rsp,%r15)
je 0x3c21
incq %r15
jmp 0x3bf5
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 0x2da8
movq %rbx, %rax
addq $0xf230, %rsp           # imm = 0xF230
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x236d(%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 0x2fe8
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x3cd3
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2210
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq 0x22f4(%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 0x548(%rip), %rsi       # 0x4262
leaq 0x20(%rsp), %rdi
callq 0x20a0
testl %eax, %eax
jne 0x3d37
movq 0x40(%rsp), %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x26ec
leaq 0x20(%rsp), %rdi
callq 0x3538
addq $0x100, %rsp            # imm = 0x100
popq %rbx
popq %r14
popq %r15
retq
jmp 0x3d6b
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x3d78
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2210
jmp 0x3d78
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x3538
movq %rbx, %rdi
callq 0x2310
// File: /workspace/github_cpp_makefile_star2_O1/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 0x3db6
movq 0x8(%rsi), %rax
movq 0x10(%rsi), %rdx
movq %rsp, %rbx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x391c
movq %rbx, %rdi
callq 0x3a70
xorl %eax, %eax
addq $0x140, %rsp            # imm = 0x140
popq %rbx
retq
movq 0x221b(%rip), %rdi      # 0x5fd8
leaq 0x4a2(%rip), %rsi       # 0x4266
callq 0x21f0
movq %rax, %rdi
callq 0x2120
movl $0x1, %edi
callq 0x2250
// File: /workspace/github_cpp_makefile_star2_O1/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 0x721c(%rip), %rdx      # 0x9b54
movq %rdx, %rsi
callq 0x3a96
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 0x2a38
movq -0x278(%rbp), %rax
movq -0x18(%rax), %rax
testb $0x2, -0x258(%rbp,%rax)
jne 0x2a38
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 0x39fc
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 0x2a18
callq 0x2220
movq -0x278(%rbp), %rax
movq -0x18(%rax), %rax
leaq (%rax,%rbp), %rdi
addq $-0x278, %rdi           # imm = 0xFD88
testb $0x2, 0x20(%rdi)
je 0x29b2
leaq -0x278(%rbp), %rdi
callq 0x2090
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x2a56
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 0x2a96
jmp 0x2a87
jmp 0x2a74
movq %rax, %r14
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
je 0x2a8a
callq 0x2220
jmp 0x2a8a
movq %rax, %r14
leaq -0x278(%rbp), %rdi
callq 0x2090
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x2aa8
callq 0x2220
movq (%rbx), %rdi
cmpq -0x50(%rbp), %rdi
je 0x2ab6
callq 0x2220
movq %r14, %rdi
callq 0x2370
// File: /workspace/github_cpp_makefile_star2_O1/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 0x2bdc
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 0x2b27
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x18(%rax)
jmp 0x2bcf
leaq (%r14,%rax,4), %rax
testb $0x8, (%rax)
movq 0x4(%rax), %r14
jne 0x2bab
movq %r14, %rdi
callq 0x6474
leaq -0x40(%rbp), %rax
movq %rax, -0x50(%rbp)
leaq -0x50(%rbp), %rdi
leaq 0x7005(%rip), %rdx      # 0x9b54
movq %rdx, %rsi
callq 0x3a96
movq %r14, %rdi
movq %r13, %rsi
leaq -0x50(%rbp), %rdx
callq 0x650a
testb %al, %al
je 0x2bb9
leaq -0x68(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x39fc
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 0x2b57
callq 0x2220
jmp 0x2b57
movl 0x2020(%r14), %edi
callq 0x23e0
jmp 0x2bcb
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x2bcb
callq 0x2220
movq -0x30(%rbp), %r14
incq %r12
cmpq -0x58(%rbp), %r12
jne 0x2b0b
movq 0x168(%rbx), %r14
addq $0x158, %rbx            # imm = 0x158
cmpq %rbx, %r14
je 0x2c08
movq 0x20(%r14), %rdi
callq 0x69ba
movq %r14, %rdi
callq 0x22a0
movq %rax, %r14
cmpq %rbx, %rax
jne 0x2bef
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 0x2c31
callq 0x2220
jmp 0x2c31
movq %rax, %rbx
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x2c43
callq 0x2220
movq %rbx, %rdi
callq 0x2370
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x4e84
shlq $0x4, %rsi
addq %rax, %rsi
cmpq 0x20(%rdi), %rsi
ja 0x4ea3
movq %rsi, 0x18(%rdi)
popq %rbp
retq
leaq 0x267e(%rip), %rdi      # 0x7509
leaq 0x248a(%rip), %rsi      # 0x731c
leaq 0x267a(%rip), %rcx      # 0x7513
movl $0x81, %edx
callq 0x2190
leaq 0x270a(%rip), %rdi      # 0x75b4
leaq 0x246b(%rip), %rsi      # 0x731c
leaq 0x265b(%rip), %rcx      # 0x7513
movl $0x82, %edx
callq 0x2190
// File: /workspace/github_cpp_makefile_star2_O1/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 0x5771
movq %rsi, %r15
movl %ebx, %r12d
shlq $0x5, %r12
movq %rcx, %rdi
movq %r12, %rsi
callq 0x5590
andq 0x8(%r14), %r13
orq %rax, %r13
movq %r13, 0x8(%r14)
movq %rax, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x21f0
jmp 0x5775
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_O1/fieryzig[P]GameServer/./Common/rapidjson/include/rapidjson/document.h
// Function: rapidjson::GenericValue<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>>::SetArrayRaw(rapidjson::GenericValue<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>>*, unsigned int, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>&)
void SetArrayRaw(GenericValue* values, SizeType count, Allocator& allocator) {
        data_.f.flags = kArrayFlag;
        if (count) {
            GenericValue* e = static_cast<GenericValue*>(allocator.Malloc(count * sizeof(GenericValue)));
            SetElementsPointer(e);
            std::memcpy(e, values, count * sizeof(GenericValue));
        }
        else
            SetElementsPointer(0);
        data_.a.size = data_.a.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 $0x4, 0xe(%rdi)
testl %edx, %edx
je 0x5867
movq %rsi, %r15
movl %ebx, %r12d
shlq $0x4, %r12
movq %rcx, %rdi
movq %r12, %rsi
callq 0x5590
andq 0x8(%r14), %r13
orq %rax, %r13
movq %r13, 0x8(%r14)
movq %rax, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x21f0
jmp 0x586b
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_O1/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 0x5916
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x4f30
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_O1/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 $0x198, %edx            # imm = 0x198
movq %rax, %rdi
xorl %esi, %esi
callq 0x2170
movq %r14, 0x8(%rbx)
leaq 0x6a23(%rip), %rax      # 0xcd30
addq $0x10, %rax
movq %rax, (%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x138(%rbx)
movq %r14, 0x148(%rbx)
leaq 0x158(%rbx), %rax
movl $0x0, 0x158(%rbx)
movq %r14, 0x160(%rbx)
movq %rax, 0x168(%rbx)
movq %rax, 0x170(%rbx)
movups %xmm0, 0x178(%rbx)
movups %xmm0, 0x188(%rbx)
leaq 0x37c8(%rip), %rsi      # 0x9b28
movq %rbx, %rdi
callq 0x2edc
movq %rbx, %rdi
callq 0x637c
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x8(%rax)
jmp 0x6370
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x644e
movl 0x14(%rbx), %edi
movl $0xa, %esi
callq 0x2280
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq 0x6b83(%rip), %rdi      # 0xcfd8
leaq 0x36dc(%rip), %rsi      # 0x9b38
callq 0x2240
movq %rax, %rdi
callq 0x2150
movl $0x1, %edi
callq 0x22c0
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x64eb
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 0x64e4
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 0x3681(%rip), %rdi      # 0x9b73
leaq 0x3686(%rip), %rsi      # 0x9b7f
leaq 0x3696(%rip), %rcx      # 0x9b96
movl $0x2a, %edx
callq 0x2190
// File: /workspace/github_cpp_makefile_star2_O1/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 0x6569(%rip), %rbx      # 0xcfd8
leaq 0x30df(%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 0x6b08
movl %r15d, %r12d
leaq 0x3082(%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 0x6b00
movl $0xa, %edi
callq 0x22f0
incq %r13
cmpq %r13, %r12
jne 0x6ade
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 0x3029(%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_O1/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 0x2be2
movq (%r14), %rax
movq 0x8(%r14), %rcx
cmpq %rcx, %rax
je 0x2bd1
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 0x2bc8
leaq (%r8,%r8,2), %r9
movq (%rdx,%r9,8), %r8
movq 0x8(%rdx,%r9,8), %r9
cmpq %r9, %r8
je 0x2bc8
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 0x2ba6
addq $0x8, %rax
cmpq %rcx, %rax
jne 0x2b87
movq %rbx, %rdi
callq 0x3a9e
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x3bc2
leaq 0x1672(%rip), %rcx      # 0x5128
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x40(%rdi), %rax
movq 0x48(%rdi), %rcx
subq %rax, %rcx
je 0x3bc2
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 0x3ae2
jmp 0x3bc2
movq 0x40(%rdi), %rax
movq 0x48(%rdi), %rcx
subq %rax, %rcx
je 0x3bc2
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 0x3b20
jmp 0x3bc2
movq 0x40(%rdi), %rax
movq 0x48(%rdi), %rcx
subq %rax, %rcx
je 0x3bc2
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 0x3b62
jmp 0x3bc2
movq 0x40(%rdi), %rax
movq 0x48(%rdi), %rcx
subq %rax, %rcx
je 0x3bc2
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 0x3ba8
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x4972
movzwl %ax, %eax
cmpl $0x1, %eax
jne 0x4a1e
addq $-0x2, %r15
movsbl 0x2(%r15), %ebp
movl %ebp, %edi
callq 0x2060
incq %r15
testl %ebp, %ebp
je 0x4993
testl %eax, %eax
je 0x4976
jmp 0x4993
testl %eax, %eax
je 0x49a6
movsbl 0x1(%r15), %ebp
incq %r15
movl %ebp, %edi
callq 0x2060
testl %ebp, %ebp
jne 0x498f
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 0x49d3
cmpl $0x3a, %eax
je 0x49d3
incq %rdi
incq %r15
jmp 0x49be
callq 0x21b0
cvtsd2ss %xmm0, %xmm0
movzbl -0x1(%r15), %eax
testb $-0x21, %al
je 0x49ea
incq %r15
jmp 0x49dc
movd %xmm0, %eax
shlq $0x20, %rax
movl %r13d, %r13d
orq %r13, %rax
movq %rax, 0x10(%rsp)
movq %r14, %rdi
movq %r12, %rsi
callq 0x3ec6
cmpq %r13, (%rbx)
jae 0x4a10
movq %r13, (%rbx)
cmpb $0x0, -0x1(%r15)
jne 0x49ab
movb $0x1, %al
jmp 0x4ae6
movl $0x2, 0xc(%rsp)
movq 0x35c3(%rip), %rdi      # 0x7ff0
leaq 0x607(%rip), %rsi       # 0x503b
movl $0x4, %edx
callq 0x2180
movq 0x35ab(%rip), %rdi      # 0x7ff0
leaq 0x5f4(%rip), %rsi       # 0x5040
movl $0x5, %edx
callq 0x2180
movq 0x3593(%rip), %rdi      # 0x7ff0
leaq 0x5e2(%rip), %rsi       # 0x5046
movl $0x3, %edx
callq 0x2180
movq 0x357b(%rip), %rdi      # 0x7ff0
leaq 0x7b0(%rip), %rsi       # 0x522c
movl $0xc, %edx
callq 0x2180
movq 0x3563(%rip), %rdi      # 0x7ff0
leaq 0x5aa(%rip), %rsi       # 0x503e
movl $0x1, %edx
callq 0x2180
movq 0x354b(%rip), %rdi      # 0x7ff0
movl $0xd, %esi
callq 0x2260
movq %rax, %rbx
leaq 0x5a7(%rip), %rsi       # 0x5060
movl $0x2, %edx
movq %rax, %rdi
callq 0x2180
leaq 0x76c(%rip), %rsi       # 0x5239
movl $0x28, %edx
movq %rbx, %rdi
callq 0x2180
leaq 0xc(%rsp), %rdi
callq 0x2ad8
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 0x2ad8
movq %rbx, %rdi
callq 0x2270
// File: /workspace/github_cpp_makefile_star2_O1/drummyfish[P]flowchart/src/lodepng.cpp
// Function: append_symbol_coins(Coin*, unsigned int const*, unsigned int, unsigned long)
static unsigned append_symbol_coins(Coin* coins, const unsigned* frequencies, unsigned numcodes, size_t sum)
{
  unsigned i;
  unsigned j = 0; /*index of present symbols*/
  for(i = 0; i < numcodes; i++)
  {
    if(frequencies[i] != 0) /*only include symbols that are present*/
    {
      coins[j].weight = frequencies[i] / (float)sum;
      uivector_push_back(&coins[j].symbols, i);
      j++;
    }
  }
  return 0;
}

// Assembly:
testl %edx, %edx
je 0x2b91
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
testq %rcx, %rcx
js 0x2b0d
cvtsi2ss %rcx, %xmm0
jmp 0x2b22
movq %rcx, %rax
shrq %rax
andl $0x1, %ecx
orq %rax, %rcx
cvtsi2ss %rcx, %xmm0
addss %xmm0, %xmm0
movss %xmm0, 0x4(%rsp)
movl %edx, %r12d
xorl %r13d, %r13d
xorl %ebp, %ebp
movl (%rbx,%r13,4), %eax
testl %eax, %eax
je 0x2b7b
movl %eax, %eax
xorps %xmm0, %xmm0
cvtsi2ss %rax, %xmm0
divss 0x4(%rsp), %xmm0
movl %ebp, %eax
shlq $0x5, %rax
leaq (%r14,%rax), %r15
movss %xmm0, 0x18(%r14,%rax)
movq 0x8(%r14,%rax), %rsi
incq %rsi
movq %r15, %rdi
callq 0xbdaf
testl %eax, %eax
je 0x2b79
movq (%r15), %rax
movq 0x8(%r15), %rcx
movl %r13d, -0x4(%rax,%rcx,4)
incl %ebp
incq %r13
cmpq %r13, %r12
jne 0x2b30
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x2c6c
pushq %rbx
addq $0x18, %rdi
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 0x2be9
xorl %eax, %eax
jmp 0x2c59
movq %r9, %rdx
shlq $0x5, %rdx
xorl %r11d, %r11d
movq %rdi, %r10
movss (%r10,%rdx), %xmm0
movss (%r10), %xmm1
ucomiss %xmm0, %xmm1
jbe 0x2c4a
movss %xmm1, (%r10,%rdx)
movss %xmm0, (%r10)
movq -0x10(%r10), %r11
movq -0x10(%r10,%rdx), %rbx
movq %rbx, -0x10(%r10)
movq %r11, -0x10(%r10,%rdx)
movq -0x8(%r10), %r11
movq -0x8(%r10,%rdx), %rbx
movq %rbx, -0x8(%r10)
movq %r11, -0x8(%r10,%rdx)
movq -0x18(%r10), %r11
movq -0x18(%r10,%rdx), %rbx
movq %rbx, -0x18(%r10)
movq %r11, -0x18(%r10,%rdx)
movb $0x1, %r11b
addq $0x20, %r10
decq %rax
jne 0x2bf6
testb %r11b, %r11b
setne %al
cmpq $0x2, %r9
setae %dl
orb %al, %dl
testb $0x1, %dl
jne 0x2bb4
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/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, 0x12c94(%rip)     # 0x181f0
jne 0x55a4
xorl %eax, %eax
leaq 0x12c99(%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 0x556f
movl %r8d, (%rcx,%rax,4)
incq %rax
cmpq $0x100, %rax            # imm = 0x100
jne 0x5567
movb $0x1, 0x12c4c(%rip)     # 0x181f0
testq %rsi, %rsi
je 0x55d4
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
xorl %ecx, %ecx
leaq 0x12c49(%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 0x55b7
notl %eax
retq
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x5789
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 0x5784
movq 0x18(%rsp), %rcx
movq %rax, (%rcx)
movq 0x20(%rsp), %rcx
movq %r12, (%rcx)
xorl %edx, %edx
testl %ebp, %ebp
je 0x5789
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 0x5789
movl $0x53, %edx
movl %edx, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq