LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/tylerkaraszewski[P]Argyle/Config.cpp
// Function: Config::getString(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) const
string Config::getString(const string& key) const
{
  std::multimap<std::string, std::string>::const_iterator it = m_configValues.find(key);
  if (it == m_configValues.end())
  {
    return "";
  }
  return it->second;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x20(%rsi), %rdi
movq %rdx, %rsi
callq 0x61c0
addq $0x28, %r14
cmpq %r14, %rax
je 0x8838
addq $0x40, %rax
movq %rbx, %rdi
movq %rax, %rsi
callq 0x33d0
jmp 0x884c
leaq 0x921(%rip), %rsi       # 0x9160
leaq 0x7(%rsp), %rdx
movq %rbx, %rdi
callq 0x438c
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/PrzemekWirkus[P]functional-workshop/src/testconf.cpp
// Function: main
int main()
{
    // auto and lambda
    auto func = [] (string str) {cout << str << endl; };
    func("Lambda function call!"); // now call the function

    // some more templates
    global_address_book.push_back(string("http://www.cprogramming.com"));
    global_address_book.push_back(string("http://mbed.org"));
    global_address_book.push_back(string("http://google.com"));

    vector<string> v = findAddressesFromOrgs();

    cout << endl;
    cout << "Found .org domains:" << endl;
    for_each(v.begin(), v.end(), func);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x60, %rsp
leaq 0xc12(%rip), %rsi       # 0x2032
leaq 0x40(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0x1050
leaq 0x40(%rsp), %rdi
callq 0x15a0
leaq 0x40(%rsp), %rdi
callq 0x1070
leaq 0xbfe(%rip), %rsi       # 0x2048
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rdx
callq 0x1050
leaq 0x2c88(%rip), %rdi      # 0x40e8
leaq 0x8(%rsp), %rsi
callq 0x15ec
leaq 0x8(%rsp), %rdi
callq 0x1070
leaq 0xbe9(%rip), %rsi       # 0x2064
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rdx
callq 0x1050
leaq 0x2c57(%rip), %rdi      # 0x40e8
leaq 0x8(%rsp), %rsi
callq 0x15ec
leaq 0x8(%rsp), %rdi
callq 0x1070
leaq 0xbc8(%rip), %rsi       # 0x2074
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rdx
callq 0x1050
leaq 0x2c26(%rip), %rdi      # 0x40e8
leaq 0x8(%rsp), %rsi
callq 0x15ec
leaq 0x8(%rsp), %rdi
callq 0x1070
leaq 0x28(%rsp), %rdi
callq 0x139a
movq 0x2af1(%rip), %rdi      # 0x3fd8
callq 0x1080
movq 0x2ae5(%rip), %rdi      # 0x3fd8
leaq 0xb8c(%rip), %rsi       # 0x2086
callq 0x10e0
movq %rax, %rdi
callq 0x1080
movq 0x28(%rsp), %rbx
movq 0x30(%rsp), %r15
leaq 0x8(%rsp), %r14
cmpq %r15, %rbx
je 0x153c
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1110
movq %r14, %rdi
callq 0x15a0
movq %r14, %rdi
callq 0x1070
addq $0x20, %rbx
jmp 0x1516
leaq 0x28(%rsp), %rdi
callq 0x15c0
xorl %eax, %eax
addq $0x60, %rsp
popq %rbx
popq %r14
popq %r15
retq
jmp 0x155a
jmp 0x1575
jmp 0x155a
jmp 0x1575
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
jmp 0x156e
jmp 0x1575
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x1070
jmp 0x1598
movq %rax, %rbx
jmp 0x1598
jmp 0x157c
movq %rax, %rbx
jmp 0x158e
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x1070
leaq 0x28(%rsp), %rdi
callq 0x15c0
movq %rbx, %rdi
callq 0x1160
// File: /workspace/github_cpp_makefile_star2_O2/girdhari9[P]TEXPLORER/projectfile.cpp
// Function: main
int main(){
	getcwd(root_path,1000);
	home_path = (string)root_path;
	screen_point(0,0,1);
	list_print(home_path,1,0);
	pointer_move();
	return 0;	
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x50, %rsp
leaq 0xb935(%rip), %rbx      # 0xe290
movl $0x3e8, %esi            # imm = 0x3E8
movq %rbx, %rdi
callq 0x2130
leaq 0x30(%rsp), %r14
leaq 0xf(%rsp), %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x29f0
leaq 0xbcf4(%rip), %rbx      # 0xe678
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2300
movq %r14, %rdi
callq 0x2498
pushq $0x1
popq %rbp
xorl %edi, %edi
xorl %esi, %esi
movl %ebp, %edx
callq 0x2ac4
leaq 0x10(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2360
movq %r14, %rdi
movl %ebp, %esi
xorl %edx, %edx
callq 0x2da8
leaq 0x10(%rsp), %rdi
callq 0x2498
callq 0x3cd0
xorl %eax, %eax
addq $0x50, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x2498
movq %rbx, %rdi
callq 0x2420
// File: /workspace/github_cpp_makefile_star2_O2/girdhari9[P]TEXPLORER/screen_point.cpp
// Function: screen_point(int, int, int)
void screen_point(int x, int y, int flag){
	struct winsize size;
	ioctl(STDOUT_FILENO,TIOCGWINSZ,&size);

	vertical = size.ws_row;
	horizontal = size.ws_col;
	cmd_mod_screen_start = vertical - 10;
	cmd_mod_screen_start = vertical - 10;

	if(flag) clear_scr(1);
	fflush(stdout);
	gotoxy(cmd_mod_screen_start,0);
	for(int i=0;i<horizontal;i++)
		cout<<"=";
	gotoxy(cmd_mod_screen_start+1,0);
	if(mode)
		cout<<"Nomal Mode: ";
	else cout<<"Command Mode:";
	gotoxy(cmd_mod_screen_start+2,0);
	for(int i=0;i<horizontal;i++)
		cout<<"=";
	gotoxy(x,y);
	return;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %edx, %r14d
movl %esi, 0xc(%rsp)
movl %edi, %ebp
xorl %r12d, %r12d
pushq $0x1
popq %rdi
leaq 0x10(%rsp), %r15
movl $0x5413, %esi           # imm = 0x5413
movq %r15, %rdx
xorl %eax, %eax
callq 0x2380
movzwl (%r15), %eax
movl %eax, 0xbba5(%rip)      # 0xe6a4
movzwl 0x2(%r15), %ecx
movl %ecx, 0xbb96(%rip)      # 0xe6a0
addl $-0xa, %eax
movl %eax, 0xbb89(%rip)      # 0xe69c
testl %r14d, %r14d
je 0x2b20
pushq $0x1
popq %rdi
callq 0x2cc5
movq 0xb479(%rip), %rax      # 0xdfa0
movq (%rax), %rdi
callq 0x22d0
movq 0xb49a(%rip), %r14      # 0xdfd0
leaq 0x64f1(%rip), %rsi      # 0x902e
movq %r14, %rdi
callq 0x2230
movl 0xbb51(%rip), %esi      # 0xe69c
movq %rax, %rdi
callq 0x2410
leaq 0x64d7(%rip), %rsi      # 0x9031
movq %rax, %rdi
callq 0x2230
movq %rax, %rdi
xorl %esi, %esi
callq 0x2410
leaq 0x64c0(%rip), %rsi      # 0x9033
movq %rax, %rdi
callq 0x2230
leaq 0x64b3(%rip), %r15      # 0x9035
cmpl 0xbb17(%rip), %r12d     # 0xe6a0
jge 0x2b9b
movq %r14, %rdi
movq %r15, %rsi
callq 0x2230
incl %r12d
jmp 0x2b82
movq 0xb42e(%rip), %r14      # 0xdfd0
leaq 0x6485(%rip), %r15      # 0x902e
movq %r14, %rdi
movq %r15, %rsi
callq 0x2230
movl 0xbae2(%rip), %esi      # 0xe69c
incl %esi
movq %rax, %rdi
callq 0x2410
leaq 0x6466(%rip), %r12      # 0x9031
movq %rax, %rdi
movq %r12, %rsi
callq 0x2230
xorl %ebx, %ebx
movq %rax, %rdi
xorl %esi, %esi
callq 0x2410
leaq 0x644a(%rip), %r13      # 0x9033
movq %rax, %rdi
movq %r13, %rsi
callq 0x2230
cmpl $0x0, 0xb665(%rip)      # 0xe260
leaq 0x6442(%rip), %rax      # 0x9044
leaq 0x642e(%rip), %rsi      # 0x9037
cmoveq %rax, %rsi
movq %r14, %rdi
callq 0x2230
movq %r14, %rdi
movq %r15, %rsi
callq 0x2230
movl 0xba76(%rip), %esi      # 0xe69c
addl $0x2, %esi
movq %rax, %rdi
callq 0x2410
movq %rax, %rdi
movq %r12, %rsi
callq 0x2230
movq %rax, %rdi
xorl %esi, %esi
callq 0x2410
movq %rax, %rdi
movq %r13, %rsi
callq 0x2230
leaq 0x63dd(%rip), %r15      # 0x9035
cmpl 0xba42(%rip), %ebx      # 0xe6a0
jge 0x2c6f
movq %r14, %rdi
movq %r15, %rsi
callq 0x2230
incl %ebx
jmp 0x2c58
movq 0xb35a(%rip), %rdi      # 0xdfd0
leaq 0x63b1(%rip), %rsi      # 0x902e
callq 0x2230
movq %rax, %rdi
movl %ebp, %esi
callq 0x2410
leaq 0x639e(%rip), %rsi      # 0x9031
movq %rax, %rdi
callq 0x2230
movq %rax, %rdi
movl 0xc(%rsp), %esi
callq 0x2410
leaq 0x6385(%rip), %rsi      # 0x9033
movq %rax, %rdi
callq 0x2230
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/girdhari9[P]TEXPLORER/screen_point.cpp
// Function: clear_scr(int)
void clear_scr(int start){
	gotoxy(start,1);
	for(int i=start;i<=vertical;i++){
		for(int i=1;i<=horizontal;i++){
			cout<<" ";
		}
	}
	gotoxy(start,1);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edi, %ebx
movq 0xb2f7(%rip), %r14      # 0xdfd0
leaq 0x634e(%rip), %rsi      # 0x902e
movq %r14, %rdi
callq 0x2230
movq %rax, %rdi
movl %ebx, %esi
callq 0x2410
leaq 0x6338(%rip), %rsi      # 0x9031
movq %rax, %rdi
callq 0x2230
pushq $0x1
popq %rbp
movq %rax, %rdi
movl %ebp, %esi
callq 0x2410
leaq 0x631e(%rip), %rsi      # 0x9033
movq %rax, %rdi
callq 0x2230
leaq 0x6767(%rip), %r15      # 0x948b
movl %ebx, %r12d
cmpl 0xb976(%rip), %r12d     # 0xe6a4
jg 0x2d51
movl %ebp, %r13d
cmpl 0xb966(%rip), %r13d     # 0xe6a0
jg 0x2d4c
movq %r14, %rdi
movq %r15, %rsi
callq 0x2230
incl %r13d
jmp 0x2d33
incl %r12d
jmp 0x2d27
movq 0xb278(%rip), %rdi      # 0xdfd0
leaq 0x62cf(%rip), %rsi      # 0x902e
callq 0x2230
movq %rax, %rdi
movl %ebx, %esi
callq 0x2410
leaq 0x62bc(%rip), %rsi      # 0x9031
movq %rax, %rdi
callq 0x2230
pushq $0x1
popq %rsi
movq %rax, %rdi
callq 0x2410
leaq 0x62a4(%rip), %rsi      # 0x9033
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2230
nopl (%rax)
// File: /workspace/github_cpp_makefile_star2_O2/girdhari9[P]TEXPLORER/list_print.cpp
// Function: trim_name(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, int, int)
string trim_name(string name,int size,int flag){
	string t;
	for(int i=0;i<size;i++){
		t += name[i];
	}
	if(flag)	
		t += "...";
	return t;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %ecx, %ebp
movl %edx, %r14d
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, (%rdi)
andq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
xorl %r12d, %r12d
testl %edx, %edx
cmovlel %r12d, %r14d
cmpq %r12, %r14
je 0x35d4
movq (%r15), %rax
movsbl (%rax,%r12), %esi
movq %rbx, %rdi
callq 0x21d0
incq %r12
jmp 0x35ba
testl %ebp, %ebp
je 0x35e7
leaq 0x5abe(%rip), %rsi      # 0x909d
movq %rbx, %rdi
callq 0x2450
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x35f5
movq %rax, %r14
movq %rbx, %rdi
callq 0x2498
movq %r14, %rdi
callq 0x2420
// File: /workspace/github_cpp_makefile_star2_O2/girdhari9[P]TEXPLORER/pointer_move.cpp
// Function: init_setting()
void init_setting(){
    tcgetattr(0, &initialrsettings);
    newrsettings = initialrsettings;
    newrsettings.c_lflag &= ~ECHO;
    newrsettings.c_lflag &= ~ICANON;
    // newrsettings.c_lflag &= ~ISIG;
    tcsetattr(0, TCSANOW, &newrsettings);
}

// Assembly:
pushq %rax
leaq 0xa55c(%rip), %rsi      # 0xe790
xorl %edi, %edi
callq 0x22a0
movups 0xa54e(%rip), %xmm0     # 0xe790
movups %xmm0, 0xa583(%rip)     # 0xe7cc
movups 0xa550(%rip), %xmm0     # 0xe7a0
movups %xmm0, 0xa585(%rip)     # 0xe7dc
movups 0xa552(%rip), %xmm0     # 0xe7b0
movups %xmm0, 0xa587(%rip)     # 0xe7ec
movups 0xa550(%rip), %xmm0     # 0xe7bc
movups %xmm0, 0xa585(%rip)     # 0xe7f8
andb $-0xb, 0xa55e(%rip)     # 0xe7d8
leaq 0xa54b(%rip), %rdx      # 0xe7cc
xorl %edi, %edi
xorl %esi, %esi
popq %rax
jmp 0x2340
// File: /workspace/github_cpp_makefile_star2_O2/girdhari9[P]TEXPLORER/pointer_move.cpp
// Function: my_handler(int)
void my_handler(int s){
    map<string,string>::iterator it;
    clear_scr(1);
    re_init_setting();
    for(it = trace_map.begin();it != trace_map.end(); it++){
        string file_path = home_path + "/Trash/" + it->first;
        unlink(file_path.c_str());
    }
    trace_map.erase(trace_map.begin(),trace_map.end());
    exit(0); 
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
pushq $0x1
popq %rdi
callq 0x2cc5
callq 0x4345
leaq 0xa5c3(%rip), %rax      # 0xe870
movq 0x18(%rax), %r13
leaq 0x8(%rax), %r14
leaq 0xa3bc(%rip), %r15      # 0xe678
leaq 0x4e75(%rip), %r12      # 0x9138
leaq 0x8(%rsp), %rbp
leaq 0x28(%rsp), %rbx
cmpq %r14, %r13
je 0x4316
movq %rbp, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x36d3
leaq 0x20(%r13), %rdx
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x365f
movq %rbp, %rdi
callq 0x2498
movq 0x28(%rsp), %rdi
callq 0x2120
movq %rbx, %rdi
callq 0x2498
movq %r13, %rdi
callq 0x2180
movq %rax, %r13
jmp 0x42cd
leaq 0xa553(%rip), %rdi      # 0xe870
movq 0x18(%rdi), %rsi
movq %r14, %rdx
callq 0x4360
xorl %edi, %edi
callq 0x22f0
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x2498
movq %rbx, %rdi
callq 0x2420
// File: /workspace/github_cpp_makefile_star2_O2/girdhari9[P]TEXPLORER/cmd_functions.cpp
// Function: copy_file(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void copy_file(string file_name, string dir_name){
    int source_file, dest_file, read_size;
    char buffer[1024];
    source_file = open(file_name.c_str(), O_RDONLY);
    dest_file = open(dir_name.c_str(), O_WRONLY|O_CREAT, S_IRUSR|S_IWUSR);
    while((read_size = read(source_file,buffer,sizeof(buffer))) > 0)
        write(dest_file,buffer,read_size);
    return; 
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x400, %rsp            # imm = 0x400
movq %rsi, %r14
movq (%rdi), %rdi
xorl %esi, %esi
xorl %eax, %eax
callq 0x21a0
movl %eax, %ebx
movq (%r14), %rdi
pushq $0x41
popq %rsi
movl $0x180, %edx            # imm = 0x180
xorl %eax, %eax
callq 0x21a0
movl %eax, %ebp
movq %rsp, %r14
movl $0x400, %edx            # imm = 0x400
movl %ebx, %edi
movq %r14, %rsi
callq 0x23a0
testl %eax, %eax
jle 0x4546
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl %ebp, %edi
movq %r14, %rsi
movq %rax, %rdx
callq 0x20a0
jmp 0x451f
addq $0x400, %rsp            # imm = 0x400
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/girdhari9[P]TEXPLORER/cmd_functions.cpp
// Function: rename_file(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void rename_file(string file_old_name, string file_new_name){
    int source_file, dest_file, read_size;
    char buffer[1024];
    source_file = open(file_old_name.c_str(), O_RDONLY);
    dest_file = open(file_new_name.c_str(), O_WRONLY|O_CREAT, S_IRUSR|S_IWUSR);
    while((read_size = read(source_file,buffer,sizeof(buffer))) > 0)
        write(dest_file,buffer,read_size);
    remove(file_old_name.c_str());
    return; 
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x408, %rsp            # imm = 0x408
movq %rsi, %r14
movq %rdi, %rbx
movq (%rdi), %rdi
xorl %esi, %esi
xorl %eax, %eax
callq 0x21a0
movl %eax, %ebp
movq (%r14), %rdi
pushq $0x41
popq %rsi
movl $0x180, %edx            # imm = 0x180
xorl %eax, %eax
callq 0x21a0
movl %eax, %r14d
movq %rsp, %r15
movl $0x400, %edx            # imm = 0x400
movl %ebp, %edi
movq %r15, %rsi
callq 0x23a0
testl %eax, %eax
jle 0x48c2
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl %r14d, %edi
movq %r15, %rsi
movq %rax, %rdx
callq 0x20a0
jmp 0x489a
movq (%rbx), %rdi
addq $0x408, %rsp            # imm = 0x408
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x2440
// File: /workspace/github_cpp_makefile_star2_O2/girdhari9[P]TEXPLORER/cmd_functions.cpp
// Function: delete_dir(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void delete_dir(string dir_path){
    flag++;
    if(flag > 100) return;
    struct dirent ** dir_namelist;
    int n = scandir(dir_path.c_str(),&dir_namelist,NULL, alphasort);
    while(n--){
        if(n < 2) break;
        if(dir_namelist[n]->d_type == 4){
            string new_dir_path = dir_path + "/" + dir_namelist[n]->d_name;
            // rmdir(new_dir_path.c_str()); //If it will not work then open it
            delete_dir(new_dir_path);
            rmdir(new_dir_path.c_str());
        }
        else{
            string file_name = dir_path + "/" + dir_namelist[n]->d_name;
            remove(file_name.c_str());
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movl 0x9f29(%rip), %eax      # 0xe814
leal 0x1(%rax), %ecx
movl %ecx, 0x9f20(%rip)      # 0xe814
cmpl $0x63, %eax
jle 0x4908
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rdi, %rbx
movq (%rdi), %rdi
movq 0x96b3(%rip), %rcx      # 0xdfc8
movq %rsp, %rsi
xorl %edx, %edx
callq 0x2040
movl %eax, %ebp
leaq 0x4816(%rip), %r14      # 0x913e
leaq 0x28(%rsp), %r15
leaq 0x8(%rsp), %r12
leaq 0x48(%rsp), %r13
cmpl $0x3, %ebp
jl 0x48f9
movq (%rsp), %rax
movq -0x8(%rax,%rbp,8), %rax
cmpb $0x4, 0x12(%rax)
jne 0x49a0
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x36d3
movq (%rsp), %rax
movq -0x8(%rax,%rbp,8), %rdx
addq $0x13, %rdx
movq %r12, %rdi
movq %r15, %rsi
callq 0x36b4
movq %r15, %rdi
callq 0x2498
movq %r13, %rdi
movq %r12, %rsi
callq 0x2360
movq %r13, %rdi
callq 0x48d7
movq %r13, %rdi
callq 0x2498
movq 0x8(%rsp), %rdi
callq 0x20e0
jmp 0x49d8
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x36d3
movq (%rsp), %rax
movq -0x8(%rax,%rbp,8), %rdx
addq $0x13, %rdx
movq %r12, %rdi
movq %r15, %rsi
callq 0x36b4
movq %r15, %rdi
callq 0x2498
movq 0x8(%rsp), %rdi
callq 0x2440
movq %r12, %rdi
callq 0x2498
decq %rbp
jmp 0x4937
jmp 0x49ef
movq %rax, %rbx
jmp 0x4a06
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
jmp 0x4a0b
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x2498
leaq 0x8(%rsp), %rdi
callq 0x2498
movq %rbx, %rdi
callq 0x2420
// File: /workspace/github_cpp_makefile_star2_O2/girdhari9[P]TEXPLORER/cmd_functions.cpp
// Function: search_file(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void search_file(string current_path,string file_name){
    struct dirent ** dir_namelist;
    int n = scandir(current_path.c_str(),&dir_namelist,NULL, alphasort);
    while(n--){
        if(n < 2) break;
        if(dir_namelist[n]->d_type == 4){
            string new_current_path = current_path + "/" + dir_namelist[n]->d_name;
            search_file(new_current_path,file_name);
        }
        else if(dir_namelist[n]->d_name == file_name){
            search_v.push_back(current_path);
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rsi, %rbx
movq %rdi, 0x8(%rsp)
movq (%rdi), %rdi
movq 0x958d(%rip), %rcx      # 0xdfc8
leaq 0x10(%rsp), %rsi
xorl %edx, %edx
callq 0x2040
movl %eax, %r14d
leaq 0x58(%rsp), %r12
leaq 0x78(%rsp), %r13
leaq 0x38(%rsp), %rbp
leaq 0x18(%rsp), %r15
cmpl $0x3, %r14d
jl 0x4b11
movq 0x10(%rsp), %rax
movq -0x8(%rax,%r14,8), %rdi
cmpb $0x4, 0x12(%rdi)
jne 0x4ae8
movq %r12, %rdi
movq 0x8(%rsp), %rsi
leaq 0x46b7(%rip), %rdx      # 0x913e
callq 0x36d3
movq 0x10(%rsp), %rax
movq -0x8(%rax,%r14,8), %rdx
addq $0x13, %rdx
movq %r13, %rdi
movq %r12, %rsi
callq 0x36b4
movq %r12, %rdi
callq 0x2498
movq %rbp, %rdi
movq %r13, %rsi
callq 0x2360
movq %r15, %rdi
movq %rbx, %rsi
callq 0x2360
movq %rbp, %rdi
movq %r15, %rsi
callq 0x4a18
movq %r15, %rdi
callq 0x2498
movq %rbp, %rdi
callq 0x2498
movq %r13, %rdi
callq 0x2498
jmp 0x4b09
addq $0x13, %rdi
movq %rbx, %rsi
callq 0x4e3d
testb %al, %al
je 0x4b09
leaq 0x9d19(%rip), %rdi      # 0xe818
movq 0x8(%rsp), %rsi
callq 0x4e54
decq %r14
jmp 0x4a5e
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
jmp 0x4b53
movq %rax, %rbx
jmp 0x4b44
movq %rax, %rbx
jmp 0x4b4e
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x2498
leaq 0x38(%rsp), %rdi
callq 0x2498
leaq 0x78(%rsp), %rdi
callq 0x2498
movq %rbx, %rdi
callq 0x2420
// File: /workspace/github_cpp_makefile_star2_O2/girdhari9[P]TEXPLORER/cmd_functions.cpp
// Function: snapshot(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, _IO_FILE*)
void snapshot(string current_path,FILE *file_pointer){
    struct dirent ** dir_namelist;
    int n = scandir(current_path.c_str(),&dir_namelist,NULL, alphasort);
    int x = n;
    fprintf(file_pointer,"%s\n\n",current_path.c_str());
    while(n--){
        if(n<2) break;
        fprintf(file_pointer,"%s\t",dir_namelist[n]->d_name);
    }
    fprintf(file_pointer,"\n\n\n");
    while(x--){
        if(x<2) break;
        else if(dir_namelist[x]->d_type == 4){
            string new_current_path = current_path + "/" + dir_namelist[x]->d_name;
            snapshot(new_current_path,file_pointer);
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq (%rdi), %rdi
movq 0x944a(%rip), %rcx      # 0xdfc8
leaq 0x8(%rsp), %rsi
xorl %edx, %edx
callq 0x2040
movl %eax, %ebp
movq %r14, 0x10(%rsp)
movq (%r14), %rdx
leaq 0x45b5(%rip), %rsi      # 0x9150
movq %rbx, %rdi
xorl %eax, %eax
callq 0x2390
movl %ebp, %r14d
leaq 0x45a6(%rip), %r15      # 0x9155
movq %r14, %r12
cmpl $0x3, %r12d
jl 0x4bd8
movq 0x8(%rsp), %rax
movq -0x8(%rax,%r12,8), %rdx
decq %r12
addq $0x13, %rdx
movq %rbx, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x2390
jmp 0x4bb2
leaq 0x457a(%rip), %rdi      # 0x9159
pushq $0x3
popq %rsi
pushq $0x1
popq %rdx
movq %rbx, %rcx
callq 0x2470
leaq 0x454a(%rip), %r15      # 0x913e
leaq 0x38(%rsp), %r12
leaq 0x58(%rsp), %r13
leaq 0x18(%rsp), %rbp
cmpl $0x3, %r14d
jl 0x4c75
movq 0x8(%rsp), %rax
movq -0x8(%rax,%r14,8), %rax
cmpb $0x4, 0x12(%rax)
jne 0x4c70
movq %r12, %rdi
movq 0x10(%rsp), %rsi
movq %r15, %rdx
callq 0x36d3
movq 0x8(%rsp), %rax
movq -0x8(%rax,%r14,8), %rdx
addq $0x13, %rdx
movq %r13, %rdi
movq %r12, %rsi
callq 0x36b4
movq %r12, %rdi
callq 0x2498
movq %rbp, %rdi
movq %r13, %rsi
callq 0x2360
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x4b60
movq %rbp, %rdi
callq 0x2498
movq %r13, %rdi
callq 0x2498
decq %r14
jmp 0x4c03
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x4ca0
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
jmp 0x4ca5
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x2498
leaq 0x58(%rsp), %rdi
callq 0x2498
movq %rbx, %rdi
callq 0x2420
// File: /workspace/github_cpp_makefile_star2_O2/girdhari9[P]TEXPLORER/cmd_functions.cpp
// Function: print_search_file(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void print_search_file(vector<string> &v,string file_name){
    screen_point(0,0,1);
    for(unsigned int i = 0; i < 13 && i < v.size(); i++){
        string new_name = v[i];
        if(file_name.size() > 20)
            file_name = file_name.substr(1,19) + "...";
        cout<<"\033[21;35m "<<file_name<<"\033[0m";
        screen_point(i,30,0);
        cout<<v[i]<<"\n";
    }
    return;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rsi, %rbx
movq %rdi, 0x10(%rsp)
movq $0x0, 0x8(%rsp)
pushq $0x1
popq %rdx
xorl %edi, %edi
xorl %esi, %esi
callq 0x2ac4
leaq 0x38(%rsp), %r13
xorl %r12d, %r12d
cmpq $0xd, %r12
je 0x4de7
movq 0x10(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rax
subq %rsi, %rax
sarq $0x5, %rax
cmpq %r12, %rax
jbe 0x4de7
addq 0x8(%rsp), %rsi
leaq 0x18(%rsp), %rdi
callq 0x2360
cmpq $0x15, 0x8(%rbx)
jb 0x4d6d
movq %r13, %r15
movq %r13, %rdi
movq %rbx, %rbp
movq %rbx, %rsi
pushq $0x1
popq %rdx
pushq $0x13
popq %rcx
callq 0x2270
leaq 0x58(%rsp), %r14
movq %r14, %rdi
movq %r15, %rsi
leaq 0x4353(%rip), %rdx      # 0x909d
callq 0x36b4
movq %rbp, %rdi
movq %r14, %rsi
callq 0x2300
movq %r14, %rdi
callq 0x2498
movq %r15, %rdi
movq %rbp, %rbx
callq 0x2498
movq 0x925c(%rip), %rdi      # 0xdfd0
leaq 0x43e2(%rip), %rsi      # 0x915d
callq 0x2230
movq %rax, %rdi
movq %rbx, %rsi
callq 0x21f0
movq %rax, %rdi
leaq 0x4316(%rip), %rsi      # 0x90ab
callq 0x2230
movl %r12d, %edi
pushq $0x1e
popq %rsi
xorl %edx, %edx
callq 0x2ac4
movq 0x10(%rsp), %rax
movq (%rax), %rsi
addq 0x8(%rsp), %rsi
movq 0x9215(%rip), %rdi      # 0xdfd0
callq 0x21f0
movq %rax, %rdi
leaq 0x4391(%rip), %rsi      # 0x915b
callq 0x2230
leaq 0x18(%rsp), %rdi
callq 0x2498
incq %r12
addq $0x20, 0x8(%rsp)
jmp 0x4ce5
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x4e07
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x2498
jmp 0x4e0a
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x2498
movq %rbx, %rdi
callq 0x2420
// File: /workspace/github_cpp_makefile_star2_O2/girdhari9[P]TEXPLORER/cmd_main.cpp
// Function: tokenized(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void tokenized(string s){
    v.erase(v.begin(),v.end());
    for(unsigned int i = 0;i < s.size(); i++){
        vector<char> sub_v;
        vector<char>::iterator it;
        while(s[i] != ' ' && i < s.size()){
            if(s[i] == 92){ 
                sub_v.push_back(32);
                i += 2;
            }
            else{
                sub_v.push_back(s[i]);
                i++;
            }
        }
        string t;
        for(unsigned int j = 0; j < sub_v.size();j++)
            t += sub_v[j];
        v.push_back(t);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
movq 0x76c1(%rip), %rsi      # 0xe858
leaq 0x76ba(%rip), %rdi      # 0xe858
movq 0x76bb(%rip), %rdx      # 0xe860
callq 0x7ce0
xorl %r13d, %r13d
leaq 0x18(%rsp), %r15
movq %rsp, %r12
pushq $0x2
popq %r14
pushq $0x1
popq %rbp
movl %r13d, %eax
cmpq %rax, 0x8(%rbx)
jbe 0x727e
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
andq $0x0, 0x10(%rsp)
movl %r13d, %r13d
movq (%rbx), %rsi
movb (%rsi,%r13), %al
cmpb $0x20, %al
je 0x7215
cmpq %r13, 0x8(%rbx)
jbe 0x7215
cmpb $0x5c, %al
jne 0x7203
movb $0x20, 0x18(%rsp)
movq %r12, %rdi
movq %r15, %rsi
callq 0x830a
movl %r14d, %eax
jmp 0x7210
addq %r13, %rsi
movq %r12, %rdi
callq 0x7ce6
movl %ebp, %eax
addl %eax, %r13d
jmp 0x71d6
leaq 0x28(%rsp), %rax
movq %rax, 0x18(%rsp)
andq $0x0, 0x20(%rsp)
movb $0x0, 0x28(%rsp)
xorl %r14d, %r14d
movl %r14d, %r14d
movq (%rsp), %rax
movq 0x8(%rsp), %rcx
subq %rax, %rcx
cmpq %r14, %rcx
jbe 0x7253
movsbl (%rax,%r14), %esi
movq %r15, %rdi
callq 0x21d0
incl %r14d
jmp 0x722d
leaq 0x75fe(%rip), %rdi      # 0xe858
movq %r15, %rsi
callq 0x4e54
movq %r15, %rdi
callq 0x2498
movq %r12, %rdi
callq 0x82de
incl %r13d
pushq $0x2
popq %r14
jmp 0x71bc
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x7296
jmp 0x7291
movq %rax, %rbx
jmp 0x72a3
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x2498
movq %rsp, %rdi
callq 0x82de
movq %rbx, %rdi
callq 0x2420
// File: /workspace/github_cpp_makefile_star2_O2/andersonfernandes[P]sm-chat/src/client.cpp
// Function: main
int main() {
  init();
  create_user();

  system("clear");
  cout << endl << "> Welcome " << current_user.name <<  endl;
  cout << endl << "The chat started. To quit the app type :q" << endl << endl;

  thread receive_messages_thread(receive_messages);
  receive_messages_thread.detach();
  send_messages();

  return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
callq 0x263a
callq 0x268f
leaq 0xa8d(%rip), %rdi       # 0x3020
callq 0x20e0
movq 0x2a31(%rip), %rbx      # 0x4fd0
movq %rbx, %rdi
callq 0x2080
leaq 0xa78(%rip), %rsi       # 0x3026
movq %rax, %rdi
callq 0x2150
leaq 0x2b83(%rip), %rsi      # 0x5140
movq %rax, %rdi
callq 0x2150
movq %rax, %rdi
callq 0x2080
movq %rbx, %rdi
callq 0x2080
leaq 0xa55(%rip), %rsi       # 0x3031
movq %rax, %rdi
callq 0x2150
movq %rax, %rdi
callq 0x2080
movq %rax, %rdi
callq 0x2080
leaq 0x17d(%rip), %rsi       # 0x2778
leaq -0x10(%rbp), %rbx
movq %rbx, %rdi
callq 0x2c18
movq %rbx, %rdi
callq 0x21e0
callq 0x27d6
leaq -0x10(%rbp), %rdi
callq 0x2c86
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
movq %rax, %rbx
leaq -0x10(%rbp), %rdi
callq 0x2c86
movq %rbx, %rdi
callq 0x21f0
// File: /workspace/github_cpp_makefile_star2_O2/andersonfernandes[P]sm-chat/src/client.cpp
// Function: init()
void init() {
  srand(time(NULL));

  if ((users_shmid < 0) || (users_count_shmid < 0)) {
    perror("shmget");
    cout << "Unable to connect with the server!" << endl;

    exit(1);
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
xorl %edi, %edi
callq 0x2110
movl %eax, %edi
callq 0x2140
cmpl $0x0, 0x2ae1(%rip)      # 0x5134
js 0x2660
cmpl $0x0, 0x2adc(%rip)      # 0x5138
js 0x2660
popq %rbp
retq
leaq 0x9f4(%rip), %rdi       # 0x305b
callq 0x20d0
movq 0x295d(%rip), %rdi      # 0x4fd0
leaq 0x9e8(%rip), %rsi       # 0x3062
callq 0x2150
movq %rax, %rdi
callq 0x2080
pushq $0x1
popq %rdi
callq 0x2190
// File: /workspace/github_cpp_makefile_star2_O2/andersonfernandes[P]sm-chat/src/client.cpp
// Function: create_user()
void create_user() {
  User *users = att_users(users_shmid);
  int *users_count = att_users_count(users_count_shmid);

  User *new_user = new User();

  cout << "Username: ";
  cin.getline(new_user->name, 50);
  new_user->shmq_id = create_shmq();

  memcpy(&users[(*users_count)], new_user, sizeof(User));
  memcpy(users_count, &++(*users_count), sizeof(int));
  memcpy(&current_user, new_user, sizeof(User));

  shmdt(users);
  shmdt(users_count);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl 0x2a95(%rip), %edi      # 0x5134
callq 0x2560
movq %rax, %rbx
movl 0x2a8b(%rip), %edi      # 0x5138
callq 0x256e
movq %rax, %r14
pushq $0x38
popq %rdi
callq 0x2160
movq %rax, %r15
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movaps %xmm0, 0x10(%rax)
movaps %xmm0, 0x20(%rax)
andq $0x0, 0x30(%rax)
movq 0x28f6(%rip), %rdi      # 0x4fd0
leaq 0x9a4(%rip), %rsi       # 0x3085
callq 0x2150
leaq 0x4(%r15), %rsi
movq 0x28ef(%rip), %rdi      # 0x4fe0
pushq $0x32
popq %rdx
callq 0x2050
callq 0x29b9
movl %eax, (%r15)
movslq (%r14), %rax
imulq $0x38, %rax, %rax
movq 0x30(%r15), %rcx
movq %rcx, 0x30(%rbx,%rax)
movups 0x10(%r15), %xmm0
movups 0x20(%r15), %xmm1
movups %xmm1, 0x20(%rbx,%rax)
movups %xmm0, 0x10(%rbx,%rax)
movups (%r15), %xmm0
movups %xmm0, (%rbx,%rax)
incl (%r14)
movq 0x30(%r15), %rax
movq %rax, 0x2a31(%rip)      # 0x516c
movups (%r15), %xmm0
movups 0x10(%r15), %xmm1
movups 0x20(%r15), %xmm2
movups %xmm2, 0x2a0c(%rip)     # 0x515c
movups %xmm1, 0x29f5(%rip)     # 0x514c
movups %xmm0, 0x29de(%rip)     # 0x513c
movq %rbx, %rdi
callq 0x2200
movq %r14, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x2200
// File: /workspace/github_cpp_makefile_star2_O2/andersonfernandes[P]sm-chat/src/client.cpp
// Function: receive_messages()
void receive_messages() {
  while(true) {
    ShmQueue* shmq = att_shmq(current_user.shmq_id);
    if(!empty(shmq)) {
      Message* message = new Message();

      if(dequeue(shmq, message)) print_message(message);
    }
    shmdt(shmq);
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl 0x29b7(%rip), %edi      # 0x513c
callq 0x2550
movq %rax, %rbx
movq %rax, %rdi
callq 0x2457
testb %al, %al
jne 0x27cc
movl $0x108, %edi            # imm = 0x108
callq 0x2160
movq %rax, %r14
movl $0x108, %edx            # imm = 0x108
movq %rax, %rdi
xorl %esi, %esi
callq 0x2090
movq %rbx, %rdi
movq %r14, %rsi
callq 0x24e0
testb %al, %al
je 0x27cc
movq %r14, %rdi
callq 0x2b71
movq %rbx, %rdi
callq 0x2200
jmp 0x277f
// File: /workspace/github_cpp_makefile_star2_O2/andersonfernandes[P]sm-chat/src/client.cpp
// Function: create_shmq()
int create_shmq() {
  key_t key = rand();
  int shmq_id = shmget(key, sizeof(ShmQueue), 0666|IPC_CREAT);

  ShmQueue* shmq = att_shmq(shmq_id);
  memcpy(shmq, create_queue(), sizeof(ShmQueue));
  shmdt(shmq);

  return shmq_id;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
callq 0x2030
pushq $0x18
popq %rsi
movl %eax, %edi
movl $0x3b6, %edx            # imm = 0x3B6
callq 0x20a0
movl %eax, %ebx
movl %eax, %edi
callq 0x2550
movq %rax, %r14
callq 0x23fc
movups (%rax), %xmm0
movups %xmm0, (%r14)
movq 0x10(%rax), %rax
movq %rax, 0x10(%r14)
movq %r14, %rdi
callq 0x2200
movl %ebx, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/andersonfernandes[P]sm-chat/src/client.cpp
// Function: select_user(User*)
void select_user(User* user_to_chat) {
  User *users = att_users(users_shmid);
  int *users_count = att_users_count(users_count_shmid);

  if(*users_count == 1) {
    cout << endl << "0 Users online!" << endl;
  } else {
    users = att_users(users_shmid);

    cout << endl << "Online users:" << endl;
    for (int i = 0; i < (*users_count); i++) {
      if (users[i].shmq_id == current_user.shmq_id) continue;
      cout << i << " - " << users[i].name << endl;
    }

    int user_to_chat_index;
    cout << endl << "Select the user to chat: ";
    cin >> user_to_chat_index;

    memcpy(user_to_chat, &users[user_to_chat_index], sizeof(User));
  }

  shmdt(users);
  shmdt(users_count);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r15
movl 0x2717(%rip), %edi      # 0x5134
callq 0x2560
movq %rax, %r14
movl 0x270d(%rip), %edi      # 0x5138
callq 0x256e
movq %rax, %rbx
cmpl $0x1, (%rax)
jne 0x2a60
movq 0x2591(%rip), %rdi      # 0x4fd0
callq 0x2080
leaq 0x645(%rip), %rsi       # 0x3090
movq %rax, %rdi
callq 0x2150
movq %rax, %rdi
callq 0x2080
jmp 0x2b52
movq %r15, -0x30(%rbp)
movl 0x26ca(%rip), %edi      # 0x5134
callq 0x2560
movq %rax, %r13
movq 0x2557(%rip), %r12      # 0x4fd0
movq %r12, %rdi
callq 0x2080
leaq 0x618(%rip), %rsi       # 0x30a0
movq %rax, %rdi
callq 0x2150
movq %rax, %rdi
callq 0x2080
movq %r13, -0x38(%rbp)
addq $0x4, %r13
xorl %r15d, %r15d
leaq 0x604(%rip), %r14       # 0x30ae
movslq (%rbx), %rax
cmpq %rax, %r15
jge 0x2af0
movl -0x4(%r13), %eax
cmpl 0x2680(%rip), %eax      # 0x513c
je 0x2ae7
movq %r12, %rdi
movl %r15d, %esi
callq 0x21d0
movq %rax, %rdi
movq %r14, %rsi
callq 0x2150
movq %rax, %rdi
movq %r13, %rsi
callq 0x2150
movq %rax, %rdi
callq 0x2080
incq %r15
addq $0x38, %r13
jmp 0x2aaa
movq 0x24d9(%rip), %rdi      # 0x4fd0
callq 0x2080
leaq 0x5af(%rip), %rsi       # 0x30b2
movq %rax, %rdi
callq 0x2150
movq 0x24ce(%rip), %rdi      # 0x4fe0
leaq -0x3c(%rbp), %r14
movq %r14, %rsi
callq 0x20b0
movslq (%r14), %rax
imulq $0x38, %rax, %rax
movq -0x38(%rbp), %r14
movq 0x30(%r14,%rax), %rcx
movq -0x30(%rbp), %rdx
movq %rcx, 0x30(%rdx)
movups (%r14,%rax), %xmm0
movups 0x10(%r14,%rax), %xmm1
movups 0x20(%r14,%rax), %xmm2
movups %xmm2, 0x20(%rdx)
movups %xmm1, 0x10(%rdx)
movups %xmm0, (%rdx)
movq %r14, %rdi
callq 0x2200
movq %rbx, %rdi
callq 0x2200
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/tokuhirom[P]nanouri/t/04_unescape.cc
// Function: main
int main() {
    is_binary(nanouri::unescape_uri(std::string("hello%01%02")), std::string("hello\x01\x02"), "escape");
    is(nanouri::unescape_uri(std::string("hello%01%02")), std::string("hello\x01\x02"), "escape");

    is_binary(nanouri::unescape_uri(std::string("hi%ff")), std::string("hi\xff"), "escape");

    done_testing();
}

// Assembly:
pushq %rbx
subq $0xb0, %rsp
leaq 0x7a6(%rip), %rsi       # 0x3058
leaq 0x50(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x2a74
leaq 0x10(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x23ca
leaq 0x78d(%rip), %rsi       # 0x3064
leaq 0x30(%rsp), %rdi
leaq 0xe(%rsp), %rdx
callq 0x2a74
leaq 0x77f(%rip), %rdx       # 0x306c
leaq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x2703
leaq 0x30(%rsp), %rdi
callq 0x2090
leaq 0x10(%rsp), %rdi
callq 0x2090
leaq 0x50(%rsp), %rdi
callq 0x2090
leaq 0x737(%rip), %rsi       # 0x3058
leaq 0x10(%rsp), %rdi
leaq 0x50(%rsp), %rdx
callq 0x2a74
leaq 0x90(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x23ca
leaq 0x71b(%rip), %rsi       # 0x3064
leaq 0x70(%rsp), %rdi
leaq 0x30(%rsp), %rdx
callq 0x2a74
leaq 0x70d(%rip), %rdx       # 0x306c
leaq 0x90(%rsp), %rdi
leaq 0x70(%rsp), %rsi
callq 0x25f0
leaq 0x70(%rsp), %rdi
callq 0x2090
leaq 0x90(%rsp), %rdi
callq 0x2090
leaq 0x10(%rsp), %rdi
callq 0x2090
leaq 0x6da(%rip), %rsi       # 0x3073
leaq 0x50(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x2a74
leaq 0x10(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x23ca
leaq 0x6bb(%rip), %rsi       # 0x3079
leaq 0x30(%rsp), %rdi
leaq 0xe(%rsp), %rdx
callq 0x2a74
leaq 0x698(%rip), %rdx       # 0x306c
leaq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x2703
leaq 0x30(%rsp), %rdi
callq 0x2090
leaq 0x10(%rsp), %rdi
callq 0x2090
leaq 0x50(%rsp), %rdi
callq 0x2090
callq 0x254e
jmp 0x2a3b
jmp 0x2a4a
jmp 0x2a59
jmp 0x2a68
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0x2090
jmp 0x2a20
movq %rax, %rbx
leaq 0x90(%rsp), %rdi
callq 0x2090
jmp 0x2a32
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
jmp 0x2a61
jmp 0x2a68
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x2090
jmp 0x2a4d
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x2090
jmp 0x2a5c
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x2090
jmp 0x2a6b
movq %rax, %rbx
movq %rbx, %rdi
callq 0x21c0
nop
// File: /workspace/github_cpp_makefile_star2_O2/RegulusImpact[P]sadboy/include/jsoncpp.cpp
// Function: Json::Reader::parse(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, Json::Value&, bool)
bool
Reader::parse(const std::string& document, Value& root, bool collectComments) {
  document_.assign(document.begin(), document.end());
  const char* begin = document_.c_str();
  const char* end = begin + document_.length();
  return parse(begin, end, root, collectComments);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %ecx, %ebx
movq %rdx, %r14
movq %rdi, %r15
addq $0xa0, %rdi
movq (%rsi), %rax
movq 0x8(%rsi), %rdx
addq %rax, %rdx
movq %rax, %rsi
callq 0x10bd0
movq 0xa0(%r15), %rsi
movq 0xa8(%r15), %rdx
addq %rsi, %rdx
movq %r15, %rdi
movq %r14, %rcx
movl %ebx, %r8d
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x4afa
// File: /workspace/github_cpp_makefile_star2_O2/RegulusImpact[P]sadboy/include/jsoncpp.cpp
// Function: Json::Reader::parse(char const*, char const*, Json::Value&, bool)
bool Reader::parse(const char* beginDoc,
                   const char* endDoc,
                   Value& root,
                   bool collectComments) {
  if (!features_.allowComments_) {
    collectComments = false;
  }

  begin_ = beginDoc;
  end_ = endDoc;
  collectComments_ = collectComments;
  current_ = begin_;
  lastValueEnd_ = 0;
  lastValue_ = 0;
  commentsBefore_.clear();
  errors_.clear();
  while (!nodes_.empty())
    nodes_.pop();
  nodes_.push(&root);

  bool successful = readValue();
  Token token;
  skipCommentTokens(token);
  if (collectComments_ && !commentsBefore_.empty())
    root.setComment(commentsBefore_, commentAfter);
  if (features_.strictRoot_) {
    if (!root.isArray() && !root.isObject()) {
      // Set error location to start of doc, ideally should be first token found
      // in doc
      token.type_ = tokenError;
      token.start_ = beginDoc;
      token.end_ = endDoc;
      addError(
          "A valid JSON document must be either an array or an object value.",
          token);
      return false;
    }
  }
  return successful;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rcx, %r12
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
andb 0x108(%rdi), %r8b
movq %rsi, 0xc0(%rdi)
movq %rdx, 0xc8(%rdi)
movb %r8b, 0x10c(%rdi)
movq %rsi, 0xd0(%rdi)
leaq 0xe8(%rdi), %rax
movq %rax, -0x38(%rbp)
andq $0x0, 0xf0(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0xd8(%rdi)
movq 0xe8(%rdi), %rax
movb $0x0, (%rax)
addq $0x50, %rdi
callq 0x10bea
movq 0x30(%rbx), %rax
cmpq 0x10(%rbx), %rax
je 0x4b7e
movq %rbx, %rdi
callq 0x1244a
jmp 0x4b6a
leaq -0x58(%rbp), %rsi
movq %r12, (%rsi)
movq %rbx, %rdi
callq 0x124aa
movq %rbx, %rdi
callq 0x4cce
movl %eax, %r13d
leaq -0x70(%rbp), %rsi
movq %rbx, %rdi
callq 0x5040
cmpb $0x1, 0x10c(%rbx)
jne 0x4bc6
cmpq $0x0, 0xf0(%rbx)
je 0x4bc6
pushq $0x2
popq %rdx
movq %r12, %rdi
movq -0x38(%rbp), %rsi
callq 0x507a
cmpb $0x1, 0x109(%rbx)
jne 0x4c29
movzwl 0x8(%r12), %eax
andl $0xfe, %eax
cmpw $0x6, %ax
je 0x4c29
leaq -0x70(%rbp), %r12
movl $0xd, (%r12)
movq %r15, 0x8(%r12)
movq %r14, 0x10(%r12)
leaq 0x1493f(%rip), %rsi     # 0x1953c
leaq -0x58(%rbp), %r14
leaq -0x29(%rbp), %rdx
movq %r14, %rdi
callq 0x4130
movq %rbx, %rdi
movq %r14, %rsi
movq %r12, %rdx
xorl %ecx, %ecx
callq 0x50ac
leaq -0x58(%rbp), %rdi
callq 0x4170
xorl %r13d, %r13d
movl %r13d, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x58(%rbp), %rdi
callq 0x4170
movq %rbx, %rdi
callq 0x45a0
nop
// File: /workspace/github_cpp_makefile_star2_O2/RegulusImpact[P]sadboy/include/jsoncpp.cpp
// Function: Json::Reader::parse(std::istream&, Json::Value&, bool)
bool Reader::parse(std::istream& sin, Value& root, bool collectComments) {
  // std::istream_iterator<char> begin(sin);
  // std::istream_iterator<char> end;
  // Those would allow streamed input from a file, if parse() were a
  // template function.

  // Since JSONCPP_STRING is reference-counted, this at least does not
  // create an extra copy.
  JSONCPP_STRING doc;
  std::getline(sin, doc, (char)EOF);
  return parse(doc.data(), doc.data() + doc.size(), root, collectComments);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movl %ecx, %r14d
movq %rdx, %rbx
movq %rsi, %rax
movq %rdi, %r15
leaq -0x28(%rbp), %rcx
movq %rcx, -0x10(%rcx)
andq $0x0, -0x8(%rcx)
movb $0x0, (%rcx)
leaq -0x38(%rbp), %rsi
pushq $-0x1
popq %rdx
movq %rax, %rdi
callq 0x45f0
movq -0x38(%rbp), %rsi
movq -0x30(%rbp), %rdx
addq %rsi, %rdx
movzbl %r14b, %r8d
movq %r15, %rdi
movq %rbx, %rcx
callq 0x4afa
movl %eax, %ebx
leaq -0x38(%rbp), %rdi
callq 0x4170
movl %ebx, %eax
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x38(%rbp), %rdi
callq 0x4170
movq %rbx, %rdi
callq 0x45a0
// File: /workspace/github_cpp_makefile_star2_O2/RegulusImpact[P]sadboy/include/jsoncpp.cpp
// Function: Json::Reader::decodeString(Json::Reader::Token&)
bool Reader::decodeString(Token& token) {
  JSONCPP_STRING decoded_string;
  if (!decodeString(token, decoded_string))
    return false;
  Value decoded(decoded_string);
  currentValue().swapPayload(decoded);
  currentValue().setOffsetStart(token.start_ - begin_);
  currentValue().setOffsetLimit(token.end_ - begin_);
  return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rsi, %r14
movq %rdi, %r15
leaq -0x28(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq -0x38(%rbp), %rdx
callq 0x5ee8
movl %eax, %ebx
testb %al, %al
je 0x5890
leaq -0x60(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0xb0c2
movq 0x30(%r15), %rax
cmpq 0x38(%r15), %rax
jne 0x5826
movq 0x48(%r15), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rdi
leaq -0x60(%rbp), %rsi
callq 0x58bc
movq 0x30(%r15), %rax
movq 0x38(%r15), %rcx
movq %rax, %rsi
cmpq %rcx, %rax
jne 0x5850
movq 0x48(%r15), %rdx
movl $0x200, %esi            # imm = 0x200
addq -0x8(%rdx), %rsi
movq 0x8(%r14), %rdi
movq 0xc0(%r15), %rdx
subq %rdx, %rdi
movq -0x8(%rsi), %rsi
movq %rdi, 0x18(%rsi)
cmpq %rcx, %rax
jne 0x5878
movq 0x48(%r15), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rax
movq 0x10(%r14), %rcx
subq %rdx, %rcx
movq %rcx, 0x20(%rax)
leaq -0x60(%rbp), %rdi
callq 0xb32e
leaq -0x38(%rbp), %rdi
callq 0x4170
movl %ebx, %eax
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0x58a8
movq %rax, %rbx
leaq -0x38(%rbp), %rdi
callq 0x4170
movq %rbx, %rdi
callq 0x45a0
// File: /workspace/github_cpp_makefile_star2_O2/RegulusImpact[P]sadboy/include/jsoncpp.cpp
// Function: Json::Reader::addComment(char const*, char const*, Json::CommentPlacement)
void
Reader::addComment(Location begin, Location end, CommentPlacement placement) {
  assert(collectComments_);
  const JSONCPP_STRING& normalized = normalizeEOL(begin, end);
  if (placement == commentAfterOnSameLine) {
    assert(lastValue_ != 0);
    lastValue_->setComment(normalized, placement);
  } else {
    commentsBefore_ += normalized;
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x20, %rsp
cmpb $0x0, 0x10c(%rdi)
je 0x5df2
movl %ecx, %r14d
movq %rdi, %rbx
leaq -0x30(%rbp), %rdi
callq 0x5e44
cmpl $0x1, %r14d
jne 0x5dcd
movq 0xe0(%rbx), %rdi
testq %rdi, %rdi
je 0x5e11
leaq -0x30(%rbp), %rsi
pushq $0x1
popq %rdx
callq 0x507a
jmp 0x5de0
addq $0xe8, %rbx
leaq -0x30(%rbp), %rsi
movq %rbx, %rdi
callq 0x4660
leaq -0x30(%rbp), %rdi
callq 0x4170
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x137d8(%rip), %rdi     # 0x195d1
leaq 0x137e2(%rip), %rsi     # 0x195e2
leaq 0x137ef(%rip), %rcx     # 0x195f6
movl $0x26d, %edx            # imm = 0x26D
callq 0x4270
leaq 0x13822(%rip), %rdi     # 0x1963a
leaq 0x137c3(%rip), %rsi     # 0x195e2
leaq 0x137d0(%rip), %rcx     # 0x195f6
movl $0x270, %edx            # imm = 0x270
callq 0x4270
movq %rax, %rbx
leaq -0x30(%rbp), %rdi
callq 0x4170
movq %rbx, %rdi
callq 0x45a0
// File: /workspace/github_cpp_makefile_star2_O2/RegulusImpact[P]sadboy/include/jsoncpp.cpp
// Function: Json::Reader::pushError(Json::Value const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, Json::Value const&)
bool Reader::pushError(const Value& value, const JSONCPP_STRING& message, const Value& extra) {
  ptrdiff_t const length = end_ - begin_;
  if(value.getOffsetStart() > length
    || value.getOffsetLimit() > length
    || extra.getOffsetLimit() > length)
    return false;
  Token token;
  token.type_ = tokenError;
  token.start_ = begin_ + value.getOffsetStart();
  token.end_ = begin_ + value.getOffsetLimit();
  ErrorInfo info;
  info.token_ = token;
  info.message_ = message;
  info.extra_ = begin_ + extra.getOffsetStart();
  errors_.push_back(info);
  return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rcx, %r14
movq %rdi, %rbx
movq 0xc0(%rdi), %rdi
movq 0xc8(%rbx), %r8
subq %rdi, %r8
movq 0x18(%rsi), %rcx
cmpq %r8, %rcx
jle 0x6e03
xorl %eax, %eax
jmp 0x6e71
movq 0x20(%rsi), %rsi
xorl %eax, %eax
cmpq %r8, %rsi
jg 0x6e71
cmpq %r8, 0x20(%r14)
jg 0x6e71
addq %rdi, %rcx
addq %rdi, %rsi
leaq -0x40(%rbp), %r15
leaq -0x30(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movl $0xd, -0x28(%rax)
movq %rcx, -0x20(%rax)
movq %rsi, -0x18(%rax)
movq %r15, %rdi
movq %rdx, %rsi
callq 0x41d0
movq 0xc0(%rbx), %rax
addq 0x18(%r14), %rax
leaq -0x58(%rbp), %rsi
movq %rax, 0x38(%rsi)
addq $0x50, %rbx
movq %rbx, %rdi
callq 0x10c80
movq %r15, %rdi
callq 0x4170
movb $0x1, %al
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq %r15, %rdi
callq 0x4170
movq %rbx, %rdi
callq 0x45a0
nop
// File: /workspace/github_cpp_makefile_star2_O2/RegulusImpact[P]sadboy/include/jsoncpp.cpp
// Function: Json::OurReader::containsNewLine(char const*, char const*)
bool OurReader::containsNewLine(OurReader::Location begin, OurReader::Location end) {
  for (; begin < end; ++begin)
    if (*begin == '\n' || *begin == '\r')
      return true;
  return false;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
cmpq %rsi, %rdi
jae 0x6ecb
movzbl (%rdi), %eax
cmpl $0xa, %eax
je 0x6ecb
cmpl $0xd, %eax
je 0x6ecb
incq %rdi
jmp 0x6eb4
cmpq %rsi, %rdi
setb %al
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/RegulusImpact[P]sadboy/include/jsoncpp.cpp
// Function: Json::OurReader::normalizeEOL[abi:cxx11](char const*, char const*)
JSONCPP_STRING OurReader::normalizeEOL(OurReader::Location begin, OurReader::Location end) {
  JSONCPP_STRING normalized;
  normalized.reserve(static_cast<size_t>(end - begin));
  OurReader::Location current = begin;
  while (current != end) {
    char c = *current++;
    if (c == '\r') {
      if (current != end && *current == '\n')
         // convert dos EOL
         ++current;
      // convert Mac EOL
      normalized += '\n';
    } else {
      normalized += c;
    }
  }
  return normalized;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, (%rdi)
andq $0x0, 0x8(%rdi)
movq %rsi, %r12
movb $0x0, 0x10(%rdi)
movq %rdx, %rsi
subq %r12, %rsi
callq 0x4510
pushq $0xa
popq %r15
cmpq %r14, %r12
je 0x8480
leaq 0x1(%r12), %r13
movb (%r12), %al
cmpb $0xd, %al
jne 0x8470
cmpq %r14, %r13
je 0x8460
cmpb $0xa, 0x1(%r12)
jne 0x8460
addq $0x2, %r12
movq %r12, %r13
movq %rbx, %rdi
movl %r15d, %esi
callq 0x42e0
movq %r13, %r12
jmp 0x843a
movsbl %al, %esi
movq %rbx, %rdi
callq 0x42e0
movq %r13, %r12
jmp 0x843a
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x8494
movq %rax, %r14
movq %rbx, %rdi
callq 0x4170
movq %r14, %rdi
callq 0x45a0
nop