LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/hyp1231[P]FMSS/filesystem.cpp
// Function: FileSystem::Help()
void FileSystem::Help() {
	cout << "* ------------------------------------ *" << endl;
    cout << "[cd]:      go to the aimed directory" << endl;
    cout << "[mv]:      move file from inside to inside" << endl;
    cout << "[cp]:      copy file from inside/outside to inside/outside" << endl;
    cout << "           path starting with ':' indicates outside path" << endl;
    cout << "[rm]:      delete file" << endl;
    cout << "           [-r] to delete recursively" << endl;
    cout << "[ls]:      list files and directories in cur directory" << endl;
    cout << "           [-a] to show hidden files" << endl;
    cout << "           [-l] to show detailed information of files" << endl;
    cout << "[cat]:     print file" << endl;
	cout << "[help]:    get help list" << endl;
	cout << "[exit]:    exit the system" << endl;
    cout << "[echo]:    write something into file" << endl;
    cout << "[touch]:   create file" << endl;
    cout << "[mkdir]:   create a new directory" << endl;
	cout << "* ------------------------------------ *" << endl;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq 0x8227(%rip), %rbx      # 0xafd0
leaq 0x4401(%rip), %r14      # 0x71b1
movq %rbx, %rdi
movq %r14, %rsi
callq 0x21d0
movq %rax, %rdi
callq 0x20f0
leaq 0x4410(%rip), %rsi      # 0x71da
movq %rbx, %rdi
callq 0x21d0
movq %rax, %rdi
callq 0x20f0
leaq 0x441e(%rip), %rsi      # 0x71ff
movq %rbx, %rdi
callq 0x21d0
movq %rax, %rdi
callq 0x20f0
leaq 0x4432(%rip), %rsi      # 0x722a
movq %rbx, %rdi
callq 0x21d0
movq %rax, %rdi
callq 0x20f0
leaq 0x4456(%rip), %rsi      # 0x7265
movq %rbx, %rdi
callq 0x21d0
movq %rax, %rdi
callq 0x20f0
leaq 0x4478(%rip), %rsi      # 0x729e
movq %rbx, %rdi
callq 0x21d0
movq %rax, %rdi
callq 0x20f0
leaq 0x4478(%rip), %rsi      # 0x72b5
movq %rbx, %rdi
callq 0x21d0
movq %rax, %rdi
callq 0x20f0
leaq 0x4487(%rip), %rsi      # 0x72db
movq %rbx, %rdi
callq 0x21d0
movq %rax, %rdi
callq 0x20f0
leaq 0x44a7(%rip), %rsi      # 0x7312
movq %rbx, %rdi
callq 0x21d0
movq %rax, %rdi
callq 0x20f0
leaq 0x44b5(%rip), %rsi      # 0x7337
movq %rbx, %rdi
callq 0x21d0
movq %rax, %rdi
callq 0x20f0
leaq 0x44d4(%rip), %rsi      # 0x736d
movq %rbx, %rdi
callq 0x21d0
movq %rax, %rdi
callq 0x20f0
leaq 0x44d3(%rip), %rsi      # 0x7383
movq %rbx, %rdi
callq 0x21d0
movq %rax, %rdi
callq 0x20f0
leaq 0x44d5(%rip), %rsi      # 0x739c
movq %rbx, %rdi
callq 0x21d0
movq %rax, %rdi
callq 0x20f0
leaq 0x44d9(%rip), %rsi      # 0x73b7
movq %rbx, %rdi
callq 0x21d0
movq %rax, %rdi
callq 0x20f0
leaq 0x44e7(%rip), %rsi      # 0x73dc
movq %rbx, %rdi
callq 0x21d0
movq %rax, %rdi
callq 0x20f0
leaq 0x44e7(%rip), %rsi      # 0x73f3
movq %rbx, %rdi
callq 0x21d0
movq %rax, %rdi
callq 0x20f0
movq %rbx, %rdi
movq %r14, %rsi
callq 0x21d0
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x20f0
// File: /workspace/github_cpp_makefile_star2_O2/hyp1231[P]FMSS/filesystem.cpp
// Function: FileSystem::Get_dir_inodeNum_from_path(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>>>>&)
int FileSystem::Get_dir_inodeNum_from_path(vector<string>& path) {
    int p = 0, inode_num;

    if(path.empty()) {
    	cout << "[Error] empty path!" << endl;
        return -1;
    }

    // initialization
    if(path[0] == "/") {
        ++p;
        inode_num = root_dir_inodeNum;
    } else {
        inode_num = cur_dir_inodeNum;
    }

    while(p < (int)path.size()) {
    	inode_num = Get_file_inodeNum_from_dir(inode_num, path[p]);

    	// if not found
    	if(inode_num == -1) {
    		cout << "[Error] Cannot find file: " << path[p] << endl;
    		return -1;
    	}
    	++p;
    }

    return inode_num;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
movq (%rsi), %rdi
cmpq 0x8(%rsi), %rdi
je 0x2fc8
movq %rsi, %rbx
leaq 0x415a(%rip), %rsi      # 0x70ae
callq 0x54ac
movzbl %al, %r15d
xorb $0x1, %al
movzbl %al, %eax
movl 0x30(%r14,%rax,4), %eax
leaq -0x1(%r15), %r12
shll $0x5, %r15d
movq (%rbx), %rdx
movq 0x8(%rbx), %rcx
subq %rdx, %rcx
shrq $0x5, %rcx
movslq %ecx, %rcx
incq %r12
cmpq %rcx, %r12
jge 0x2fe6
addq %r15, %rdx
addq $0x20, %r15
movq %r14, %rdi
movl %eax, %esi
xorl %ecx, %ecx
callq 0x2ff2
cmpl $-0x1, %eax
jne 0x2f6f
movq 0x8029(%rip), %rdi      # 0xafd0
leaq 0x447b(%rip), %rsi      # 0x7429
callq 0x21d0
movq (%rbx), %rcx
leaq (%rcx,%r15), %rsi
addq $-0x20, %rsi
movq %rax, %rdi
callq 0x21b0
jmp 0x2fdb
movq 0x8001(%rip), %rdi      # 0xafd0
leaq 0x443f(%rip), %rsi      # 0x7415
callq 0x21d0
movq %rax, %rdi
callq 0x20f0
pushq $-0x1
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/hyp1231[P]FMSS/filesystem.cpp
// Function: FileSystem::Get_inode_from_inodeNum(char*, int)
bool FileSystem::Get_inode_from_inodeNum(char buf[], int inodeNum) {
	char BLKbuf[BLKsize];

	// get inode table
	D.Getblk(BLKbuf, Get_actual_inodeBLKnumber(inodeNum));

	// get inode
	for(int i = 0; i < 64; ++i) {
		buf[i] = BLKbuf[i + (inodeNum % 16) * 64];
	}

	return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %eax
movq %rsi, %rbx
movl (%rdi), %ecx
movq %rsp, %r14
addq $0xf, %rcx
andq $-0x10, %rcx
subq %rcx, %r14
movq %r14, %rsp
pushq $0x10
popq %rcx
cltd
idivl %ecx
movl %edx, %r15d
addq $0x8, %rdi
leal 0x1(%rax), %edx
movq %r14, %rsi
callq 0x2648
shll $0x6, %r15d
movslq %r15d, %rax
addq %r14, %rax
xorl %ecx, %ecx
cmpq $0x40, %rcx
je 0x31cd
movb (%rax,%rcx), %dl
movb %dl, (%rbx,%rcx)
incq %rcx
jmp 0x31bc
movb $0x1, %al
leaq -0x18(%rbp), %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/hyp1231[P]FMSS/filesystem.cpp
// Function: FileSystem::Find_empty_inodeNum()
int FileSystem::Find_empty_inodeNum() {
	for(int i = 0; i < 10; ++i) {
		// find a byte
		if((int)inode_bitmap[i] != -1) {
			// m -> mask
			for(int j = 0, m = 1; j < 8; ++j, m <<= 1) {
				// find a bit
				if((inode_bitmap[i] & m) == 0) {
					return i * 8 + j;
				}
			}
		}
	}
	return -1;
}

// Assembly:
xorl %ecx, %ecx
pushq $-0x1
popq %rax
pushq $0x1
popq %rdx
xorl %esi, %esi
cmpq $0xa, %rsi
je 0x321d
movsbl 0x50(%rdi,%rsi), %r8d
cmpl $-0x1, %r8d
je 0x320f
xorl %r9d, %r9d
movl %edx, %r10d
cmpl $0x8, %r9d
je 0x320f
testl %r8d, %r10d
je 0x3217
incl %r9d
addl %r10d, %r10d
jmp 0x31fc
incq %rsi
addl $-0x8, %ecx
jmp 0x31e4
subl %ecx, %r9d
movl %r9d, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O2/hyp1231[P]FMSS/filesystem.cpp
// Function: FileSystem::Find_empty_dataBLKNum()
int FileSystem::Find_empty_dataBLKNum() {
	for(int i = 0; i < 80; ++i) {
		// find a byte
		if((int)data_block_bitmap[i] != -1) {
			// m -> mask
			for(int j = 0, m = 1; j < 8; ++j, m <<= 1) {
				// find a bit
				if((data_block_bitmap[i] & m) == 0) {
					return i * 8 + j;
				}
			}
		}
	}
	return -1;
}

// Assembly:
xorl %ecx, %ecx
pushq $-0x1
popq %rax
pushq $0x1
popq %rdx
xorl %esi, %esi
cmpq $0x50, %rsi
je 0x3261
movsbl 0x5a(%rdi,%rsi), %r8d
cmpl $-0x1, %r8d
je 0x3253
xorl %r9d, %r9d
movl %edx, %r10d
cmpl $0x8, %r9d
je 0x3253
testl %r8d, %r10d
je 0x325b
incl %r9d
addl %r10d, %r10d
jmp 0x3240
incq %rsi
addl $-0x8, %ecx
jmp 0x3228
subl %ecx, %r9d
movl %r9d, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O2/hyp1231[P]FMSS/filesystem.cpp
// Function: FileSystem::Save_superBLK()
void FileSystem::Save_superBLK() {
	char buf[BLKsize];
	D.Getblk(buf, 0);

	// save inode bitmap
    for(int i = 3; i <= 12; ++i) {
        buf[i] = inode_bitmap[i - 3];
    }

    // save data block bitmap
    for(int i = 13; i <= 92; ++i) {
        buf[i] = data_block_bitmap[i - 13];
    }

    D.Putblk(buf, 0);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
movl (%rdi), %eax
movq %rsp, %r14
addq $0xf, %rax
andq $-0x10, %rax
subq %rax, %r14
movq %r14, %rsp
leaq 0x8(%rdi), %r15
xorl %r12d, %r12d
movq %r15, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x2648
cmpq $0xa, %r12
je 0x3314
movb 0x50(%rbx,%r12), %al
movb %al, 0x3(%r14,%r12)
incq %r12
jmp 0x32ff
pushq $0xd
popq %rax
cmpq $0x5d, %rax
je 0x332a
movb 0x4d(%rbx,%rax), %cl
movb %cl, (%r14,%rax)
incq %rax
jmp 0x3317
movq %r15, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x271c
leaq -0x20(%rbp), %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/hyp1231[P]FMSS/filesystem.cpp
// Function: FileSystem::FindEOF(char*)
int FileSystem::FindEOF(char buf[]) {
    for (int i = 0; i < BLKsize - 1; i++) {
        int num = byte2int(buf, i, i + 2);
        if (num == -1)
            return i;
    }
    return -1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %r12
xorl %r15d, %r15d
pushq $-0x1
popq %rbx
movl (%r12), %eax
decl %eax
cmpl %eax, %r15d
jge 0x337f
leal 0x2(%r15), %edx
movq %r14, %rdi
movl %r15d, %esi
callq 0x2917
cmpl $-0x1, %eax
je 0x337c
incl %r15d
jmp 0x3358
movl %r15d, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/hyp1231[P]FMSS/filesystem.cpp
// Function: FileSystem::Analysis_path(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
int FileSystem::Analysis_path(const string& filepath, string& filename) {
	vector<string> path;
    int dir_inodeNum;
    if(!Decomposition_path(filepath, path)) {
        cout << "[Error] Illegal path!" << endl;
        return -1;
    }

    if(path.empty()) {
        cout << "[Error] Empty path!" << endl;
        return -1;
    }

    if((int)path.size() >= 2) {
        filename = path[path.size() - 1];
    } else {
        filename = path[0]; // omit path
    }
    path.pop_back();
    
    if((int)filename.size() > 8) {
    	cout << "[Error] filename is too long" << endl;
    	return -1;
    }

    if((int)path.size() >= 1) {
        dir_inodeNum = Get_dir_inodeNum_from_path(path);
    } else {
        dir_inodeNum = cur_dir_inodeNum;    // omit path -> cur dir
    }

    return dir_inodeNum;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rdx, %r14
movq %rdi, %rbx
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
andq $0x0, 0x10(%rsp)
leaq 0x20(%rsp), %rdi
callq 0x22b0
leaq 0x20(%rsp), %rdi
movq %rsp, %rsi
callq 0x29e2
movl %eax, %ebp
leaq 0x20(%rsp), %rdi
callq 0x20e0
testb %bpl, %bpl
je 0x3d17
movq (%rsp), %rax
movq 0x8(%rsp), %rsi
cmpq %rsi, %rax
je 0x3d20
movq %rsi, %rcx
subq %rax, %rcx
shrq $0x5, %rcx
addq $-0x20, %rsi
cmpl $0x2, %ecx
cmovlq %rax, %rsi
movq %r14, %rdi
callq 0x2110
movq 0x8(%rsp), %rdi
addq $-0x20, %rdi
movq %rdi, 0x8(%rsp)
callq 0x20e0
cmpl $0x9, 0x8(%r14)
jl 0x3d51
leaq 0x374c(%rip), %rsi      # 0x7461
jmp 0x3d27
leaq 0x37ae(%rip), %rsi      # 0x74cc
jmp 0x3d27
leaq 0x37bb(%rip), %rsi      # 0x74e2
movq 0x72a2(%rip), %rdi      # 0xafd0
callq 0x21d0
movq %rax, %rdi
callq 0x20f0
pushq $-0x1
popq %rbx
movq %rsp, %rdi
callq 0x5480
movl %ebx, %eax
addq $0x40, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq 0x8(%rsp), %rax
subq (%rsp), %rax
shrq $0x5, %rax
testl %eax, %eax
jle 0x3d71
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x2f36
movl %eax, %ebx
jmp 0x3d3e
movl 0x34(%rbx), %ebx
jmp 0x3d3e
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x20e0
jmp 0x3d88
movq %rax, %rbx
movq %rsp, %rdi
callq 0x5480
movq %rbx, %rdi
callq 0x2340
// File: /workspace/github_cpp_makefile_star2_O2/hyp1231[P]FMSS/filesystem.cpp
// Function: FileSystem::Outside_file2str(std::basic_ifstream<char, std::char_traits<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
bool FileSystem::Outside_file2str(ifstream& ifile, string& str) {
	string tmp;
	str.clear();	// start from empty
	while(getline(ifile, tmp)) {
		str += tmp + '\n';
		if((int)str.length() > 8 * BLKsize) {
			cout << "[Error] File is too large" << endl;
			return false;
		}
	}
	return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, %rbx
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movq %rsi, %r14
movq %rdi, %r15
xorl %ecx, %ecx
movb %cl, (%rax)
andq $0x0, 0x8(%rdx)
movq (%rdx), %rax
movb %cl, (%rax)
leaq 0x8(%rsp), %r12
leaq 0x28(%rsp), %r13
movq %r14, %rdi
movq %r12, %rsi
callq 0x2050
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movl 0x20(%rax,%rcx), %ebp
testb $0x5, %bpl
jne 0x4208
movq %r13, %rdi
movq %r12, %rsi
pushq $0xa
popq %rdx
callq 0x54e8
movq %rbx, %rdi
movq %r13, %rsi
callq 0x2370
movq %r13, %rdi
callq 0x20e0
movl (%r15), %eax
shll $0x3, %eax
cmpl 0x8(%rbx), %eax
jge 0x41a5
movq 0x6ddc(%rip), %rdi      # 0xafd0
leaq 0x33c6(%rip), %rsi      # 0x75c1
callq 0x21d0
movq %rax, %rdi
callq 0x20f0
testb $0x5, %bpl
setne %bl
leaq 0x8(%rsp), %rdi
callq 0x20e0
movl %ebx, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x423d
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x20e0
jmp 0x4240
jmp 0x423d
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x20e0
movq %rbx, %rdi
callq 0x2340
// File: /workspace/github_cpp_makefile_star2_O2/hyp1231[P]FMSS/filesystem.cpp
// Function: FileSystem::PutInode(char*, int)
void FileSystem::PutInode(char buf[], int inodeNum) {
	char large_buf[BLKsize];
	D.Getblk(large_buf, Get_actual_inodeBLKnumber(inodeNum));
	int st = 64 * (inodeNum % 16);
	for(int i = 0; i < 64; ++i) {
		large_buf[i + st] = buf[i];
	}
	D.Putblk(large_buf, Get_actual_inodeBLKnumber(inodeNum));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %eax
movq %rsi, %r14
movq %rdi, %rbx
movl (%rdi), %ecx
movq %rsp, %r15
addq $0xf, %rcx
andq $-0x10, %rcx
subq %rcx, %r15
movq %r15, %rsp
pushq $0x10
popq %rcx
cltd
idivl %ecx
movl %eax, %r12d
movl %edx, %r13d
addq $0x8, %rbx
incl %r12d
movq %rbx, %rdi
movq %r15, %rsi
movl %r12d, %edx
callq 0x2648
shll $0x6, %r13d
movslq %r13d, %rax
addq %r15, %rax
xorl %ecx, %ecx
cmpq $0x40, %rcx
je 0x48ae
movb (%r14,%rcx), %dl
movb %dl, (%rax,%rcx)
incq %rcx
jmp 0x489c
movq %rbx, %rdi
movq %r15, %rsi
movl %r12d, %edx
callq 0x271c
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/hyp1231[P]FMSS/filesystem.cpp
// Function: FileSystem::Inside_file2str(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
bool FileSystem::Inside_file2str(const string& filepath, string& str) {
	/*
		step 1: get dir inode number and filename
	*/
	string filename;
	int dir_inodeNum = Analysis_path(filepath, filename);
	if(dir_inodeNum == -1) {
		return false;
	}

	/*
		step 2: get file inode number and get the inode
	*/

	int file_inodeNum = Get_file_inodeNum_from_dir(dir_inodeNum, filename);
	if(file_inodeNum == -1) {
		return false;
	}

	char inode_buf[64];
	Get_inode_from_inodeNum(inode_buf, file_inodeNum);

	/*
		step 3: travel each data block, add to string until find EOF
	*/

	str.clear();
	char buf[BLKsize];
	for(int i = 42; i < 58; i += 2) {
		D.Getblk(buf, Get_actual_dataBLKnumber(byte2int(inode_buf, i, i + 2)));
		int pos = FindEOF(buf);
		if(pos == -1) {
			for(int j = 0; j < BLKsize; ++j) {
				str += buf[j];
			}
		} else {
			for(int j = 0; j < pos; ++j) {
				str += buf[j];
			}
			break;
		}
	}
	return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rdx, %rbx
movq %rdi, %r14
leaq -0x50(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq -0x60(%rbp), %rdx
callq 0x3c86
cmpl $-0x1, %eax
je 0x5094
leaq -0x60(%rbp), %rdx
movq %r14, %rdi
movl %eax, %esi
xorl %ecx, %ecx
callq 0x2ff2
cmpl $-0x1, %eax
je 0x5094
leaq -0xa0(%rbp), %rsi
movq %r14, %rdi
movl %eax, %edx
callq 0x3176
andq $0x0, 0x8(%rbx)
movq %rsp, -0x38(%rbp)
movq (%rbx), %rax
movb $0x0, (%rax)
movl (%r14), %eax
movq %rsp, %r15
addq $0xf, %rax
andq $-0x10, %rax
subq %rax, %r15
movq %r15, %rsp
leaq 0x8(%r14), %rax
movq %rax, -0x40(%rbp)
pushq $0x2a
popq %rsi
movq %r14, %r12
cmpl $0x3a, %esi
jae 0x508c
leal 0x2(%rsi), %r13d
leaq -0xa0(%rbp), %rdi
movl %r13d, %edx
callq 0x2917
addl $0x6, %eax
movq -0x40(%rbp), %rdi
movq %r15, %rsi
movl %eax, %edx
callq 0x2648
movq %r14, %rdi
movq %r15, %rsi
callq 0x3344
movl %r13d, -0x30(%rbp)
cmpl $-0x1, %eax
movl %eax, -0x2c(%rbp)
je 0x505a
testl %eax, %eax
movl $0x0, %r13d
cmovgl %eax, %r13d
xorl %r14d, %r14d
cmpq %r14, %r13
je 0x507a
movsbl (%r15,%r14), %esi
movq %rbx, %rdi
callq 0x2190
incq %r14
jmp 0x5043
xorl %r13d, %r13d
movslq (%r14), %rax
cmpq %rax, %r13
jge 0x507a
movsbl (%r15,%r13), %esi
movq %rbx, %rdi
callq 0x2190
incq %r13
movq %r12, %r14
jmp 0x505d
movl -0x30(%rbp), %eax
movl %eax, %esi
cmpl $-0x1, -0x2c(%rbp)
movq %r12, %r14
je 0x4ff0
movq -0x38(%rbp), %rsp
movb $0x1, %bl
jmp 0x5096
xorl %ebx, %ebx
leaq -0x60(%rbp), %rdi
callq 0x20e0
movl %ebx, %eax
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x50bc
jmp 0x50bc
jmp 0x50bc
jmp 0x50bc
jmp 0x50bc
jmp 0x50bc
movq %rax, %rbx
leaq -0x60(%rbp), %rdi
callq 0x20e0
movq %rbx, %rdi
callq 0x2340
// File: /workspace/github_cpp_makefile_star2_O2/hyp1231[P]FMSS/filesystem.cpp
// Function: FileSystem::MoveFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
bool FileSystem::MoveFile(string& S_filepath, string& D_filepath) {
    string filename;
    int dir_inodeNum = Analysis_path(S_filepath, filename);
    if(dir_inodeNum == -1) {
        return false;
    }
    int file_inodeNum = Get_file_inodeNum_from_dir(dir_inodeNum, filename);
    if(file_inodeNum == -1) {
        return false;
    }
    if(isDir(file_inodeNum)) {
        cout << "[Error] Source cannot be a directory" << endl;
        return false;
    }

	// convert inside file to string
	string file_data;
	if(!Inside_file2str(S_filepath, file_data)) {
		return false;
	}

	DeleteFile(S_filepath);
    str2Inside_file(file_data, D_filepath);

	return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x68, %rsp
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
leaq 0x38(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x28(%rsp), %rdx
callq 0x3c86
cmpl $-0x1, %eax
je 0x5142
leaq 0x28(%rsp), %rdx
movq %r14, %rdi
movl %eax, %esi
xorl %ecx, %ecx
callq 0x2ff2
cmpl $-0x1, %eax
je 0x5142
movq %r14, %rdi
movl %eax, %esi
callq 0x3d98
testb %al, %al
je 0x515b
movq 0x5ea2(%rip), %rdi      # 0xafd0
leaq 0x2593(%rip), %rsi      # 0x76c8
callq 0x21d0
movq %rax, %rdi
callq 0x20f0
xorl %ebp, %ebp
leaq 0x28(%rsp), %rdi
callq 0x20e0
movl %ebp, %eax
addq $0x68, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x8(%rsp), %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0x4f5c
movl %eax, %ebp
testb %al, %al
je 0x51c2
leaq 0x24a8(%rip), %rsi      # 0x7631
leaq 0x48(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x27fc
leaq 0x48(%rsp), %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0x38e0
leaq 0x48(%rsp), %rdi
callq 0x20e0
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
movq %rbx, %rdx
callq 0x48cc
leaq 0x8(%rsp), %rdi
callq 0x20e0
jmp 0x5144
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x20e0
jmp 0x51e5
jmp 0x51e2
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x20e0
jmp 0x51f6
jmp 0x51f3
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x20e0
movq %rbx, %rdi
callq 0x2340
// File: /workspace/github_cpp_makefile_star2_O2/hyp1231[P]FMSS/filesystem.cpp
// Function: FileSystem::PrintFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
bool FileSystem::PrintFile(const string& filepath) {
    string filename;
    int dir_inodeNum = Analysis_path(filepath, filename);
    if(dir_inodeNum == -1) {
        return false;
    }
    int file_inodeNum = Get_file_inodeNum_from_dir(dir_inodeNum, filename);
    if(file_inodeNum == -1) {
        cout << "[Error] Cannot find file: " << filename << endl;
        return false;
    }
    if(isDir(file_inodeNum)) {
        cout << "[Error] Target cannot be a directory" << endl;
        return false;
    }
	string file_data;
	Inside_file2str(filepath, file_data);
	cout << file_data;
	return true;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x8(%rsp), %rdx
callq 0x3c86
cmpl $-0x1, %eax
je 0x5296
leaq 0x8(%rsp), %rdx
movq %r14, %rdi
movl %eax, %esi
xorl %ecx, %ecx
callq 0x2ff2
cmpl $-0x1, %eax
je 0x526e
movq %r14, %rdi
movl %eax, %esi
callq 0x3d98
testb %al, %al
je 0x52ac
movq 0x5d70(%rip), %rdi      # 0xafd0
leaq 0x2486(%rip), %rsi      # 0x76ed
callq 0x21d0
jmp 0x528e
movq 0x5d5b(%rip), %rdi      # 0xafd0
leaq 0x21ad(%rip), %rsi      # 0x7429
callq 0x21d0
leaq 0x8(%rsp), %rsi
movq %rax, %rdi
callq 0x21b0
movq %rax, %rdi
callq 0x20f0
xorl %ebx, %ebx
leaq 0x8(%rsp), %rdi
callq 0x20e0
movl %ebx, %eax
addq $0x48, %rsp
popq %rbx
popq %r14
retq
leaq 0x38(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x28(%rsp), %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x4f5c
movq 0x5cfc(%rip), %rdi      # 0xafd0
leaq 0x28(%rsp), %rsi
callq 0x21b0
leaq 0x28(%rsp), %rdi
callq 0x20e0
movb $0x1, %bl
jmp 0x5298
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x20e0
jmp 0x5300
jmp 0x52fd
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x20e0
movq %rbx, %rdi
callq 0x2340
// File: /workspace/github_cpp_makefile_star2_O2/hyp1231[P]FMSS/filesystem.cpp
// Function: FileSystem::WriteFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
bool FileSystem::WriteFile(string& str, const string& filepath) {
    string filename;
    int dir_inodeNum = Analysis_path(filepath, filename);
    if(dir_inodeNum == -1) {
        return false;
    }
    int file_inodeNum = Get_file_inodeNum_from_dir(dir_inodeNum, filename);
    if(file_inodeNum == -1) {
        CreateFile(filepath);
    }
    if(isDir(file_inodeNum)) {
        cout << "[Error] Target cannot be a directory" << endl;
        return false;
    }

    str2Inside_file(str, filepath);
    return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x8(%rsp), %rdx
movq %rbx, %rsi
callq 0x3c86
cmpl $-0x1, %eax
je 0x5398
leaq 0x8(%rsp), %rdx
movq %r15, %rdi
movl %eax, %esi
xorl %ecx, %ecx
callq 0x2ff2
movl %eax, %ebp
cmpl $-0x1, %eax
jne 0x536b
movq %r15, %rdi
movq %rbx, %rsi
callq 0x372c
movq %r15, %rdi
movl %ebp, %esi
callq 0x3d98
movl %eax, %ebp
testb %al, %al
je 0x539c
movq 0x5c4e(%rip), %rdi      # 0xafd0
leaq 0x2364(%rip), %rsi      # 0x76ed
callq 0x21d0
movq %rax, %rdi
callq 0x20f0
jmp 0x53aa
xorl %ebp, %ebp
jmp 0x53ae
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x48cc
xorb $0x1, %bpl
leaq 0x8(%rsp), %rdi
callq 0x20e0
movl %ebp, %eax
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0x53c7
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x20e0
movq %rbx, %rdi
callq 0x2340
// File: /workspace/github_cpp_makefile_star2_O2/hyp1231[P]FMSS/filesystem.cpp
// Function: FileSystem::Print_cur_path()
void FileSystem::Print_cur_path() {
    for(int i = 0; i < (int)cur_path.size(); ++i) {
        cout << cur_path[i];
        if(i != 0 && i != (int)cur_path.size() - 1) {
            cout << "/";
        }
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
xorl %r12d, %r12d
movq 0x5bde(%rip), %r14      # 0xafd0
leaq 0x1cb5(%rip), %r15      # 0x70ae
xorl %r13d, %r13d
movq 0x38(%rbx), %rsi
movq 0x40(%rbx), %rax
subq %rsi, %rax
shrq $0x5, %rax
cltq
cmpq %rax, %r13
jge 0x5449
addq %r12, %rsi
movq %r14, %rdi
callq 0x21b0
testq %r13, %r13
je 0x5440
movq 0x40(%rbx), %rax
subq 0x38(%rbx), %rax
shrq $0x5, %rax
decl %eax
cmpq %rax, %r13
je 0x5440
movq %r14, %rdi
movq %r15, %rsi
callq 0x21d0
incq %r13
addq $0x20, %r12
jmp 0x53fc
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/hyp1231[P]FMSS/main.cpp
// Function: Replace(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
string Replace(string str) {
	string ans;
	int p;
	while((p = str.find("\\n")) != -1) {
		ans += str.substr(0, p);
		ans += '\n';
		str = str.substr(p + 2);
	}
	if(!str.empty()) {
		ans += str;
	}
	return ans;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, (%rdi)
andq $0x0, 0x8(%rdi)
movq %rsi, %r14
movb $0x0, 0x10(%rdi)
leaq 0x8(%rsp), %r12
pushq $0xa
popq %rbp
pushq $-0x1
popq %r13
movq %r14, %rdi
leaq 0x1b56(%rip), %rsi      # 0x775c
xorl %edx, %edx
callq 0x2380
movq %rax, %r15
cmpl $-0x1, %r15d
je 0x5c81
movslq %r15d, %rcx
movq %r12, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x2200
movq %rbx, %rdi
movq %r12, %rsi
callq 0x2370
movq %r12, %rdi
callq 0x20e0
movq %rbx, %rdi
movl %ebp, %esi
callq 0x2190
shlq $0x20, %r15
movabsq $0x200000000, %rax      # imm = 0x200000000
addq %rax, %r15
sarq $0x20, %r15
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %r13, %rcx
callq 0x2200
movq %r14, %rdi
movq %r12, %rsi
callq 0x2240
movq %r12, %rdi
callq 0x20e0
jmp 0x5bfc
cmpq $0x0, 0x8(%r14)
je 0x5c93
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2370
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x5cba
jmp 0x5cba
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x20e0
jmp 0x5cbd
jmp 0x5cba
movq %rax, %r14
movq %rbx, %rdi
callq 0x20e0
movq %r14, %rdi
callq 0x2340
// File: /workspace/github_cpp_makefile_star2_O2/hyp1231[P]FMSS/main.cpp
// Function: Menu()
void Menu() {				// get opts and execute them
	FileSystem S;
	vector<string> opt;
	do {
		cout << "[";
		S.Print_cur_path();
		cout << "]>>> ";
		opt.clear();
		get_opt(opt);
	} while(exec_opt(S, opt));
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd0, %rsp
leaq 0x20(%rsp), %rbx
movq %rbx, %rdi
callq 0x2c00
xorps %xmm0, %xmm0
movq %rsp, %r14
andq $0x0, 0x10(%r14)
movaps %xmm0, (%r14)
movq 0x4cd2(%rip), %r15      # 0xafd0
leaq 0x14ea(%rip), %r12      # 0x77ef
leaq 0x14e5(%rip), %r13      # 0x77f1
movq %r15, %rdi
movq %r12, %rsi
callq 0x21d0
movq %rbx, %rdi
callq 0x53dc
movq %r15, %rdi
movq %r13, %rsi
callq 0x21d0
movq %r14, %rdi
callq 0x66ae
movq %r14, %rdi
callq 0x5ccd
movq %rbx, %rdi
movq %r14, %rsi
callq 0x5fbf
testb %al, %al
jne 0x630c
movq %rsp, %rdi
callq 0x5480
leaq 0x20(%rsp), %rdi
callq 0x2d60
addq $0xd0, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0x5480
leaq 0x20(%rsp), %rdi
callq 0x2d60
movq %rbx, %rdi
callq 0x2340
// File: /workspace/github_cpp_makefile_star2_O2/iZhangHui[P]CppPrimer/CH10_GenericAlgorithms/examples/sortSI.cc
// Function: main
int main() 
{
    Sales_item trans;
    vector<Sales_item> file;

    while (std::cin >> trans)  // read the transations
        file.push_back(trans);

	for (auto i : file)        // print what was read
		cout << i << endl;
	cout << "\n\n";

	sort(file.begin(), file.end(), compareIsbn); // sort into ISBN order
	for (auto i : file)        // print in ISBN order
		cout << i << endl;

	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x80, %rsp
leaq -0x90(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
andl $0x0, 0x10(%rax)
andq $0x0, 0x18(%rax)
leaq -0x40(%rbp), %rbx
andq $0x0, 0x10(%rbx)
xorps %xmm0, %xmm0
movaps %xmm0, (%rbx)
movq 0x3adb(%rip), %r14      # 0x5fe0
leaq -0xa0(%rbp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x234c
movq (%r14), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x20(%r14,%rax)
jne 0x2533
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2684
jmp 0x250c
movq -0x40(%rbp), %rbx
movq -0x38(%rbp), %r12
leaq -0x70(%rbp), %r14
movq 0x3a8a(%rip), %r15      # 0x5fd0
cmpq %r12, %rbx
je 0x2577
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2640
movq %r15, %rdi
movq %r14, %rsi
callq 0x23e3
movq %r15, %rdi
callq 0x2080
movq %r14, %rdi
callq 0x2070
addq $0x30, %rbx
jmp 0x2546
movq 0x3a52(%rip), %rdi      # 0x5fd0
leaq 0x1a81(%rip), %rsi      # 0x4006
callq 0x20f0
movq -0x40(%rbp), %rdi
movq -0x38(%rbp), %rsi
leaq 0x126(%rip), %rdx       # 0x26bf
callq 0x2a40
movq -0x40(%rbp), %rbx
movq -0x38(%rbp), %r12
leaq -0x70(%rbp), %r14
movq 0x3a1f(%rip), %r15      # 0x5fd0
cmpq %r12, %rbx
je 0x25e2
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2640
movq %r15, %rdi
movq %r14, %rsi
callq 0x23e3
movq %r15, %rdi
callq 0x2080
movq %r14, %rdi
callq 0x2070
addq $0x30, %rbx
jmp 0x25b1
leaq -0x40(%rbp), %rdi
callq 0x2730
leaq -0xa0(%rbp), %rdi
callq 0x2070
xorl %eax, %eax
addq $0x80, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x261f
jmp 0x261f
jmp 0x261f
jmp 0x2611
movq %rax, %rbx
leaq -0x70(%rbp), %rdi
callq 0x2070
jmp 0x2622
movq %rax, %rbx
leaq -0x40(%rbp), %rdi
callq 0x2730
leaq -0xa0(%rbp), %rdi
callq 0x2070
movq %rbx, %rdi
callq 0x21b0
nop
// File: /workspace/github_cpp_makefile_star2_O2/MyHush[P]hush-seeder/bitcoin.cpp
// Function: CNode::CNode(CService const&, std::vector<CAddress, std::allocator<CAddress>>*)
CNode(const CService& ip, vector<CAddress>* vAddrIn) : you(ip), nHeaderStart(-1), nMessageStart(-1), vAddr(vAddrIn), ban(0), doneAfter(0), nVersion(0) {
    vSend.SetType(SER_NETWORK);
    vSend.SetVersion(0);
    vRecv.SetType(SER_NETWORK);
    vRecv.SetVersion(0);
    if (time(NULL) > 1329696000) {
      vSend.SetVersion(INIT_PROTO_VERSION);
      vRecv.SetVersion(INIT_PROTO_VERSION);
    }
  }

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, 0x14(%rdi)
movups %xmm0, 0x8(%rdi)
movl $0x29817, %eax          # imm = 0x29817
movl %eax, 0x2c(%rdi)
movabsq $0x100050000, %rcx      # imm = 0x100050000
movq %rcx, 0x24(%rdi)
movups %xmm0, 0x30(%rdi)
movups %xmm0, 0x3c(%rdi)
movl %eax, 0x54(%rdi)
movq %rcx, 0x4c(%rdi)
orq $-0x1, 0x58(%rdi)
leaq 0x8(%rdi), %r14
andl $0x0, 0x60(%rdi)
leaq 0x30(%rdi), %r15
leaq 0x68(%rdi), %r12
leaq 0x78(%rdi), %rax
movq %rax, 0x68(%rdi)
andq $0x0, 0x70(%rdi)
movb $0x0, 0x78(%rdi)
movq %rdx, 0x90(%rdi)
andl $0x0, 0x98(%rdi)
andq $0x0, 0xa0(%rdi)
addq $0xa8, %rdi
movzwl 0x10(%rsi), %eax
movw %ax, 0x30(%rsp)
movups (%rsi), %xmm0
movaps %xmm0, 0x20(%rsp)
movzwl 0x30(%rsp), %eax
movw %ax, 0x10(%rsp)
movaps 0x20(%rsp), %xmm0
movups %xmm0, (%rsp)
pushq $0x1
popq %r13
movq %r13, %rsi
callq 0xa268
movq %r13, 0x28(%rbx)
movq %r13, 0x50(%rbx)
xorl %edi, %edi
callq 0x33d0
cmpq $0x4f418d01, %rax       # imm = 0x4F418D01
jl 0x50af
movl $0xd1, %eax
movl %eax, 0x2c(%rbx)
movl %eax, 0x54(%rbx)
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %rbx
movq %r12, %rdi
callq 0x31d0
movq %r15, %rdi
callq 0x52b6
movq %r14, %rdi
callq 0x52b6
movq %rbx, %rdi
callq 0x3690
// File: /workspace/github_cpp_makefile_star2_O2/MyHush[P]hush-seeder/bitcoin.cpp
// Function: CNode::PushVersion()
void PushVersion() {
    int64 nTime = time(NULL);
    uint64 nLocalNonce = BITCOIN_SEED_NONCE;
    int64 nLocalServices = 0;
    CAddress me(CService("0.0.0.0"));
    BeginMessage("version");
    int nBestHeight = GetRequireHeight();
    string ver = "/hush-seeder:0.03/";
    vSend << PROTOCOL_VERSION << nLocalServices << nTime << you << me << nLocalNonce << ver << nBestHeight;
    EndMessage();
  }

// Assembly:
pushq %r14
pushq %rbx
subq $0x98, %rsp
movq %rdi, %rbx
xorl %edi, %edi
callq 0x33d0
movq %rax, 0x30(%rsp)
movabsq $0x539a019ca550825, %rax # imm = 0x539A019CA550825
movq %rax, 0x28(%rsp)
andq $0x0, 0x20(%rsp)
leaq 0xcd0b(%rip), %rsi      # 0x1208e
leaq 0x58(%rsp), %r14
movq %r14, %rdi
xorl %edx, %edx
callq 0x93ee
movzwl 0x10(%r14), %eax
movw %ax, 0x10(%rsp)
movups (%r14), %xmm0
movups %xmm0, (%rsp)
leaq 0x70(%rsp), %rdi
pushq $0x1
popq %rsi
callq 0xa268
leaq 0xccde(%rip), %rsi      # 0x12096
movq %rbx, %rdi
callq 0x57ac
andl $0x0, 0x1c(%rsp)
leaq 0xccd2(%rip), %rsi      # 0x1209e
leaq 0x38(%rsp), %rdi
leaq 0x1b(%rsp), %rdx
callq 0x3180
leaq 0x8(%rbx), %rdi
leaq 0xcef2(%rip), %rsi      # 0x122d8
callq 0x5812
leaq 0x20(%rsp), %rsi
movq %rax, %rdi
callq 0x5828
leaq 0x30(%rsp), %rsi
movq %rax, %rdi
callq 0x5828
leaq 0xa8(%rbx), %rsi
movq %rax, %rdi
callq 0x5840
leaq 0x70(%rsp), %rsi
movq %rax, %rdi
callq 0x5840
leaq 0x28(%rsp), %rsi
movq %rax, %rdi
callq 0x585a
leaq 0x38(%rsp), %rsi
movq %rax, %rdi
callq 0x5872
leaq 0x1c(%rsp), %rsi
movq %rax, %rdi
callq 0x5812
movq %rbx, %rdi
callq 0x5886
leaq 0x38(%rsp), %rdi
callq 0x31d0
addq $0x98, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x31d0
movq %rbx, %rdi
callq 0x3690
// File: /workspace/github_cpp_makefile_star2_O2/MyHush[P]hush-seeder/./db.h
// Function: CAddrInfo::GetBanTime() const
int GetBanTime() const {
    if (IsGood()) return 0;
    if (clientVersion && clientVersion < minimunClientVersion) { return 604800; }
    if (stat1M.reliability - stat1M.weight + 1.0 < 0.15 && stat1M.count > 32) { return 30*86400; }
    if (stat1W.reliability - stat1W.weight + 1.0 < 0.10 && stat1W.count > 16) { return 7*86400; }
    if (stat1D.reliability - stat1D.weight + 1.0 < 0.05 && stat1D.count > 8) { return 1*86400; }
    return 0;
  }

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0xb0c6
movl %eax, %ecx
xorl %eax, %eax
testb %cl, %cl
jne 0xb2df
movl 0x7c(%rbx), %eax
testl %eax, %eax
setne %cl
cmpl $0x29812, %eax          # imm = 0x29812
setl %dl
movl $0x93a80, %eax          # imm = 0x93A80
testb %dl, %cl
jne 0xb2df
movss 0x78(%rbx), %xmm0
subss 0x70(%rbx), %xmm0
cvtss2sd %xmm0, %xmm0
addsd 0x77dc(%rip), %xmm0     # 0x12a28
movsd 0x7824(%rip), %xmm1     # 0x12a78
ucomisd %xmm0, %xmm1
jbe 0xb26d
movss 0x74(%rbx), %xmm0
movl $0x278d00, %eax         # imm = 0x278D00
ucomiss 0x7845(%rip), %xmm0     # 0x12ab0
ja 0xb2df
movss 0x6c(%rbx), %xmm0
subss 0x64(%rbx), %xmm0
cvtss2sd %xmm0, %xmm0
addsd 0x77a5(%rip), %xmm0     # 0x12a28
movsd 0x77f5(%rip), %xmm1     # 0x12a80
ucomisd %xmm0, %xmm1
jbe 0xb2a4
movss 0x68(%rbx), %xmm0
ucomiss 0x780f(%rip), %xmm0     # 0x12aac
movl $0x93a80, %eax          # imm = 0x93A80
ja 0xb2df
movss 0x60(%rbx), %xmm0
subss 0x58(%rbx), %xmm0
movss 0x5c(%rbx), %xmm1
cvtss2sd %xmm0, %xmm0
addsd 0x7769(%rip), %xmm0     # 0x12a28
xorl %ecx, %ecx
ucomiss 0x77e0(%rip), %xmm1     # 0x12aa8
movl $0x15180, %eax          # imm = 0x15180
cmovbel %ecx, %eax
movsd 0x77b0(%rip), %xmm1     # 0x12a88
ucomisd %xmm0, %xmm1
cmovbel %ecx, %eax
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/MyHush[P]hush-seeder/main.cpp
// Function: ThreadSeeder
void* ThreadSeeder(void*) {
  //if (!fTestNet){
  //  db.Add(CService("kjy2eqzk4zwi5zd3.onion", 8888), true);
  //}
  do {
    for (int i=0; seeds[i] != ""; i++) {
      vector<CNetAddr> ips;
      LookupHost(seeds[i].c_str(), ips);
      for (vector<CNetAddr>::iterator it = ips.begin(); it != ips.end(); it++) {
        db.Add(CService(*it, GetDefaultPort()), true);
      }
    }
    Sleep(1800000);
  } while(1);
  return nullptr;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
xorl %r14d, %r14d
pushq $0x1
popq %rbp
leaq 0x48(%rsp), %r15
leaq 0x60(%rsp), %r12
pushq $0x1
popq %r13
leaq 0x10575(%rip), %rbx     # 0x1da68
movq %r14, 0x40(%rsp)
shlq $0x5, %r14
movq 0xfeed(%rip), %rdi      # 0x1d3f0
addq %r14, %rdi
leaq 0x5288(%rip), %rsi      # 0x12795
callq 0xe3ac
testb %al, %al
je 0xd59c
andq $0x0, 0x30(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
movq 0xfec1(%rip), %rax      # 0x1d3f0
movq (%rax,%r14), %rdi
leaq 0x20(%rsp), %rsi
xorl %edx, %edx
movl %ebp, %ecx
callq 0x7334
movq 0x20(%rsp), %r14
cmpq 0x28(%rsp), %r14
je 0xd5ae
cmpb $0x0, 0x1050c(%rip)     # 0x1da60
movl $0x6d7e, %edx           # imm = 0x6D7E
jne 0xd560
movl $0x466e, %edx           # imm = 0x466E
movq %r15, %rdi
movq %r14, %rsi
callq 0x92f0
movzwl 0x58(%rsp), %eax
movw %ax, 0x10(%rsp)
movups 0x48(%rsp), %xmm0
movups %xmm0, (%rsp)
movq %r12, %rdi
movq %r13, %rsi
callq 0xa268
movq %rbx, %rdi
movq %r12, %rsi
movl %ebp, %edx
callq 0xe3b6
addq $0x10, %r14
jmp 0xd546
movl $0x1b7740, %edi         # imm = 0x1B7740
callq 0xce5b
xorl %r14d, %r14d
jmp 0xd4f3
leaq 0x20(%rsp), %rdi
callq 0x9d2a
movq 0x40(%rsp), %r14
incq %r14
jmp 0xd4f3
jmp 0xd5c7
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x9d2a
movq %rbx, %rdi
callq 0x3690
// File: /workspace/github_cpp_makefile_star2_O2/ArashPartow[P]exprtk-extras/exprtk_fizzbuzz.cpp
// Function: void fizzbuzz<double>()
void fizzbuzz()
{
   typedef exprtk::symbol_table<T> symbol_table_t;
   typedef exprtk::expression<T>   expression_t;
   typedef exprtk::parser<T>       parser_t;

   const std::string fizzbuzz_program =
      " var x := 1;                              "
      " repeat                                   "
      "   var div3 := ((x % 3) == 0);            "
      "   var div5 := ((x % 5) == 0);            "
      "   [*]                                    "
      "   {                                      "
      "      case div3          : print('fizz'); "
      "      case div5          : print('buzz'); "
      "      case div3 nor div5 : print(x);      "
      "   };                                     "
      "   print('\n')                            "
      " until ((x += 1) > 100);                  ";

   exprtk::rtl::io::print<T> print;

   symbol_table_t symbol_table;
   symbol_table.add_function("print",print);

   expression_t expression;
   expression.register_symbol_table(symbol_table);

   parser_t parser;
   parser.compile(fizzbuzz_program,expression);

   expression.value();
}

// Assembly:
pushq %rbx
subq $0xb30, %rsp            # imm = 0xB30
leaq 0x12adef(%rip), %rsi    # 0x23b101
leaq 0x30(%rsp), %rdi
leaq 0x208(%rsp), %rdx
callq 0x1102c8
leaq 0x12afce(%rip), %rsi    # 0x23b2f9
leaq 0x208(%rsp), %rdi
leaq 0xb8(%rsp), %rdx
callq 0x1102c8
leaq 0x50(%rsp), %rdi
leaq 0x208(%rsp), %rsi
callq 0x11058a
leaq 0x208(%rsp), %rdi
callq 0x10e5c8
leaq 0x8(%rsp), %rdi
pushq $0x1
popq %rsi
callq 0x11061c
leaq 0x12af8d(%rip), %rsi    # 0x23b300
leaq 0x208(%rsp), %rdi
leaq 0xb8(%rsp), %rdx
callq 0x1102c8
leaq 0x8(%rsp), %rdi
leaq 0x208(%rsp), %rsi
leaq 0x50(%rsp), %rdx
callq 0x110640
leaq 0x208(%rsp), %rdi
callq 0x10e5c8
leaq 0x10(%rsp), %rdi
callq 0x110708
leaq 0x10(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x110768
leaq 0xb8(%rsp), %rdi
pushq $0x7f
popq %rsi
callq 0x1107c4
leaq 0x208(%rsp), %rdi
leaq 0xb8(%rsp), %rsi
callq 0x1108d4
leaq 0xb8(%rsp), %rdi
callq 0x110eec
leaq 0x208(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0x10(%rsp), %rdx
callq 0x110f34
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rdi
movq (%rdi), %rax
callq *0x18(%rax)
leaq 0x208(%rsp), %rdi
callq 0x1113b6
leaq 0x10(%rsp), %rdi
callq 0x1114f0
leaq 0x8(%rsp), %rdi
callq 0x111506
leaq 0x50(%rsp), %rdi
callq 0x111548
leaq 0x30(%rsp), %rdi
callq 0x10e5c8
addq $0xb30, %rsp            # imm = 0xB30
popq %rbx
retq
movq %rax, %rbx
leaq 0xb8(%rsp), %rdi
callq 0x110eec
jmp 0x1104b9
jmp 0x11046f
movq %rax, %rbx
jmp 0x1104b9
jmp 0x110488
movq %rax, %rbx
leaq 0x208(%rsp), %rdi
callq 0x10e5c8
jmp 0x1104c3
movq %rax, %rbx
jmp 0x1104c3
movq %rax, %rbx
jmp 0x1104cd
movq %rax, %rbx
leaq 0x208(%rsp), %rdi
callq 0x10e5c8
jmp 0x1104d7
movq %rax, %rbx
jmp 0x1104d7
movq %rax, %rbx
leaq 0x208(%rsp), %rdi
callq 0x1113b6
leaq 0x10(%rsp), %rdi
callq 0x1114f0
leaq 0x8(%rsp), %rdi
callq 0x111506
leaq 0x50(%rsp), %rdi
callq 0x111548
leaq 0x30(%rsp), %rdi
callq 0x10e5c8
movq %rbx, %rdi
callq 0x10e310
// File: /workspace/github_cpp_makefile_star2_O2/olahol[P]cpp-csp/examples/select.cpp
// Function: main
int main() {
  csp::Scheduler scheduler;
  csp::Channel<int> ch1, ch2;

  scheduler.spawn([&]() {
    std::chrono::milliseconds dura(100);
    for (;;) {
      int n = csp::select(ch2, ch1);
      std::cout << "got chan " << n << std::endl;
      switch (n) {
        case 0:
          ch2.get();
          std::cout << "exit" << std::endl;
          return;
        case 1:
          ch1.get();
          std::this_thread::sleep_for(dura);
          break;
      }
    }
  });

  scheduler.spawn([&]() {
    std::chrono::milliseconds dura(10);
    std::this_thread::sleep_for(dura);
    ch2.put(2);
  });

  ch1.put(1);
  ch1.put(1);
  ch1.put(1);
  ch1.put(1);

  std::cout << "join" << std::endl;
  scheduler.join();
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x190, %rsp            # imm = 0x190
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
andq $0x0, 0x20(%rsp)
leaq 0x30(%rsp), %r15
movq %r15, %rdi
callq 0x25ee
leaq 0xe0(%rsp), %rbx
movq %rbx, %rdi
callq 0x25ee
pushq $0x8
popq %rdi
callq 0x2120
movq %rax, %r14
andq $0x0, (%rax)
pushq $0x18
popq %rdi
callq 0x2120
leaq 0x39d7(%rip), %rcx      # 0x5d48
movq %rcx, (%rax)
movq %rbx, 0x8(%rax)
movq %r15, 0x10(%rax)
leaq 0x8(%rsp), %rsi
movq %rax, (%rsi)
movq %r14, %rdi
xorl %edx, %edx
callq 0x2100
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x239e
movq (%rdi), %rax
callq *0x8(%rax)
leaq 0x28(%rsp), %rsi
movq %r14, (%rsi)
leaq 0x10(%rsp), %rdi
callq 0x29e6
pushq $0x8
popq %rdi
callq 0x2120
movq %rax, %r14
andq $0x0, (%rax)
pushq $0x10
popq %rdi
callq 0x2120
leaq 0x39ba(%rip), %rcx      # 0x5d88
movq %rcx, (%rax)
movq %rbx, 0x8(%rax)
leaq 0x8(%rsp), %rsi
movq %rax, (%rsi)
movq %r14, %rdi
xorl %edx, %edx
callq 0x2100
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x23f7
movq (%rdi), %rax
callq *0x8(%rax)
leaq 0x28(%rsp), %rsi
movq %r14, (%rsi)
leaq 0x10(%rsp), %rdi
callq 0x29e6
leaq 0x30(%rsp), %rdi
pushq $0x1
popq %rsi
callq 0x2618
leaq 0x30(%rsp), %rdi
pushq $0x1
popq %rsi
callq 0x2618
leaq 0x30(%rsp), %rdi
pushq $0x1
popq %rsi
callq 0x2618
leaq 0x30(%rsp), %rdi
pushq $0x1
popq %rsi
callq 0x2618
movq 0x3b94(%rip), %rdi      # 0x5fd8
leaq 0x1bb9(%rip), %rsi      # 0x4004
callq 0x2110
movq %rax, %rdi
callq 0x20a0
leaq 0x10(%rsp), %rdi
callq 0x26b0
leaq 0xe0(%rsp), %rdi
callq 0x26dc
leaq 0x30(%rsp), %rdi
callq 0x26dc
leaq 0x10(%rsp), %rdi
callq 0x26f6
xorl %eax, %eax
addq $0x190, %rsp            # imm = 0x190
popq %rbx
popq %r14
popq %r15
retq
jmp 0x2496
jmp 0x24ab
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x24ae
movq (%rdi), %rax
callq *0x8(%rax)
jmp 0x24ae
movq %rax, %rbx
pushq $0x8
popq %rsi
movq %r14, %rdi
callq 0x2130
jmp 0x24c8
movq %rax, %rbx
jmp 0x24d5
movq %rax, %rbx
jmp 0x24df
movq %rax, %rbx
leaq 0xe0(%rsp), %rdi
callq 0x26dc
leaq 0x30(%rsp), %rdi
callq 0x26dc
leaq 0x10(%rsp), %rdi
callq 0x26f6
movq %rbx, %rdi
callq 0x21d0
nop
// File: /workspace/github_cpp_makefile_star2_O2/olahol[P]cpp-csp/examples/../csp.hpp
// Function: int csp::select<int, int>(csp::Channel<int>&, csp::Channel<int>&)
inline int select(Channel<TItem>&... chans) {
    int n = -1;
    while (n == -1) {
      n = which(0, chans...);
    }
    return n;
  }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
pushq $-0x1
popq %rax
cmpl $-0x1, %eax
jne 0x2a3e
xorl %edi, %edi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x2b17
jmp 0x2a2a
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O2/dwburer[P]CSCI-3232-File-System/main.cpp
// Function: main
int main() {

	bool running = true;
	string command;
	
	Directory root("/");
	FileSystem system(&root);

	cout << "Welcome to CSCI Shell Prompt!" << endl;

    while(running) {
    	cout << "prompt@CSCI-3232:" << system.getWorkingDirectory() << "$ ";
    	getline(cin, command);
    	parseCommand(command, system);
    }    
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x118, %rsp            # imm = 0x118
leaq -0x78(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x264d(%rip), %rsi      # 0x5004
leaq -0x48(%rbp), %rdi
leaq -0x68(%rbp), %rdx
callq 0x2b16
leaq -0x138(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x2e1c
leaq -0x48(%rbp), %rdi
callq 0x20d0
leaq -0xa0(%rbp), %rdi
leaq -0x138(%rbp), %rsi
callq 0x3514
movq 0x55d9(%rip), %rdi      # 0x7fd0
leaq 0x26fc(%rip), %rsi      # 0x50fa
callq 0x21a0
movq %rax, %rdi
callq 0x20e0
leaq -0x68(%rbp), %r15
leaq -0xa0(%rbp), %r12
leaq -0x88(%rbp), %r14
leaq -0xc0(%rbp), %r13
movq 0x55a5(%rip), %rdi      # 0x7fd0
leaq 0x26e6(%rip), %rsi      # 0x5118
callq 0x21a0
movq %rax, %rbx
movq %r15, %rdi
movq %r12, %rsi
callq 0x3e72
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2180
movq %rax, %rdi
leaq 0x26d0(%rip), %rsi      # 0x512a
callq 0x21a0
movq %r15, %rdi
callq 0x20d0
movq 0x5572(%rip), %rdi      # 0x7fe0
movq %r14, %rsi
callq 0x2060
movq %r13, %rdi
movq %r14, %rsi
callq 0x2230
movq %r13, %rdi
movq %r12, %rsi
callq 0x24ec
movq %r13, %rdi
callq 0x20d0
jmp 0x2a24
movq %rax, %rbx
leaq -0xc0(%rbp), %rdi
jmp 0x2aab
jmp 0x2ab4
movq %rax, %rbx
leaq -0x68(%rbp), %rdi
callq 0x20d0
jmp 0x2ab7
jmp 0x2ab4
movq %rax, %rbx
leaq -0x138(%rbp), %rdi
callq 0x2b52
jmp 0x2ad6
movq %rax, %rbx
leaq -0x48(%rbp), %rdi
callq 0x20d0
jmp 0x2ad6
movq %rax, %rbx
leaq -0x88(%rbp), %rdi
callq 0x20d0
movq %rbx, %rdi
callq 0x2290
// File: /workspace/github_cpp_makefile_star2_O2/dwburer[P]CSCI-3232-File-System/FileSystem.cpp
// Function: FileSystem::list()
void FileSystem::list() {
	cout << "Contents of " << currentDirectory->getName() <<":\n";

	map<string, Entity*>::iterator it;

	for(it = currentDirectory->children.begin(); it != currentDirectory->children.end(); it++ ) {
		if(it->second->isDirectory)
			cout << "[" + it->first + "]" << "   ";
		else
			cout << it->first << "   ";
	}

	cout << endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
movq 0x4a8f(%rip), %rdi      # 0x7fd0
leaq 0x1c29(%rip), %rsi      # 0x5171
callq 0x21a0
movq %rax, %r14
movq (%rbx), %rsi
leaq -0x48(%rbp), %r15
movq %r15, %rdi
callq 0x2d7a
movq %r14, %rdi
movq %r15, %rsi
callq 0x2180
leaq 0x1c0d(%rip), %rsi      # 0x517e
movq %rax, %rdi
callq 0x21a0
leaq -0x48(%rbp), %r14
movq %r14, %rdi
callq 0x20d0
movq (%rbx), %rax
movq 0x58(%rax), %r15
leaq -0x68(%rbp), %r12
leaq 0x1bee(%rip), %r13      # 0x5185
addq $0x48, %rax
cmpq %rax, %r15
je 0x362c
leaq 0x20(%r15), %rdx
movq 0x40(%r15), %rax
cmpb $0x1, 0x31(%rax)
jne 0x35ff
movq %r12, %rdi
leaq 0x1bc5(%rip), %rsi      # 0x5181
callq 0x3fcd
movq %r14, %rdi
movq %r12, %rsi
leaq 0x1bb5(%rip), %rdx      # 0x5183
callq 0x3fa4
movq 0x49f6(%rip), %rdi      # 0x7fd0
movq %r14, %rsi
callq 0x2180
movq %rax, %rdi
movq %r13, %rsi
callq 0x21a0
movq %r14, %rdi
callq 0x20d0
movq %r12, %rdi
callq 0x20d0
jmp 0x3619
movq 0x49ca(%rip), %rdi      # 0x7fd0
movq %rdx, %rsi
callq 0x2180
movq %rax, %rdi
movq %r13, %rsi
callq 0x21a0
movq %r15, %rdi
callq 0x2110
movq %rax, %r15
movq (%rbx), %rax
jmp 0x3597
movq 0x499d(%rip), %rdi      # 0x7fd0
callq 0x20e0
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x48(%rbp), %rdi
jmp 0x3665
movq %rax, %rbx
jmp 0x3661
movq %rax, %rbx
leaq -0x48(%rbp), %rdi
callq 0x20d0
leaq -0x68(%rbp), %rdi
callq 0x20d0
movq %rbx, %rdi
callq 0x2290
// File: /workspace/github_cpp_makefile_star2_O2/dwburer[P]CSCI-3232-File-System/FileSystem.cpp
// Function: FileSystem::makeFileSystem()
void FileSystem::makeFileSystem() {
	root->flushDirectory();
	currentDirectory = root;
	isFormatted = true;
	cout << "New file system created" << endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
callq 0x2f08
movq 0x8(%rbx), %rax
movq %rax, (%rbx)
movb $0x1, 0x10(%rbx)
movq 0x4930(%rip), %rdi      # 0x7fd0
leaq 0x1ae2(%rip), %rsi      # 0x5189
callq 0x21a0
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x20e0