LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: meirdev[P]HexViewer/./CLI11.hpp
// Function: CLI::FormatterBase::get_label(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>) const
std::string get_label(std::string key) const {
        if(labels_.find(key) == labels_.end())
            return key;
        else
            return labels_.at(key);
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdx, -0x48(%rbp)
movq %rsi, %rax
movq -0x48(%rbp), %rsi
movq %rdi, -0x40(%rbp)
movq %rdi, %rcx
movq %rcx, -0x38(%rbp)
movq %rdi, -0x8(%rbp)
movq %rax, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movq %rdi, -0x30(%rbp)
addq $0x10, %rdi
callq 0x31b20
movq -0x30(%rbp), %rdi
movq %rax, -0x20(%rbp)
addq $0x10, %rdi
callq 0x31b50
movq %rax, -0x28(%rbp)
leaq -0x20(%rbp), %rdi
leaq -0x28(%rbp), %rsi
callq 0x31af0
testb $0x1, %al
jne 0x31753
jmp 0x31762
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdi
callq 0x6250
jmp 0x3177f
movq -0x48(%rbp), %rsi
movq -0x30(%rbp), %rdi
addq $0x10, %rdi
callq 0x31b80
movq -0x40(%rbp), %rdi
movq %rax, %rsi
callq 0x61d0
movq -0x38(%rbp), %rax
addq $0x50, %rsp
popq %rbp
retq
nopl (%rax)
// File: meirdev[P]HexViewer/./CLI11.hpp
// Function: CLI::detail::format_help(std::ostream&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, unsigned long)
inline std::ostream &format_help(std::ostream &out, std::string name, std::string description, size_t wid) {
    name = "  " + name;
    out << std::setw(static_cast<int>(wid)) << std::left << name;
    if(!description.empty()) {
        if(name.length() >= wid)
            out << "\n" << std::setw(static_cast<int>(wid)) << "";
        out << description;
    }
    out << "\n";
    return out;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdx, %rax
movq %rsi, %rdx
movq %rdx, -0x58(%rbp)
movq %rax, -0x50(%rbp)
movq %rdi, -0x8(%rbp)
movq %rdx, -0x10(%rbp)
movq %rax, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
leaq -0x40(%rbp), %rdi
leaq 0xefb3(%rip), %rsi      # 0x41984
callq 0xebd0
movq -0x58(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x6520
leaq -0x40(%rbp), %rdi
callq 0x6280
movq -0x8(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x20(%rbp), %rax
movl %eax, %edi
callq 0x32ae0
movq -0x60(%rbp), %rdi
movl %eax, -0x44(%rbp)
movl -0x44(%rbp), %esi
callq 0x64d0
movq %rax, %rdi
leaq 0xe8(%rip), %rsi        # 0x32b00
callq 0x6140
movq -0x58(%rbp), %rsi
movq %rax, %rdi
callq 0x6390
movq -0x50(%rbp), %rdi
callq 0x66e0
testb $0x1, %al
jne 0x32a8f
movq -0x58(%rbp), %rdi
callq 0x6640
cmpq -0x20(%rbp), %rax
jb 0x32a82
movq -0x8(%rbp), %rdi
leaq 0xef31(%rip), %rsi      # 0x41981
callq 0x63d0
movq %rax, -0x68(%rbp)
movq -0x20(%rbp), %rax
movl %eax, %edi
callq 0x32ae0
movq -0x68(%rbp), %rdi
movl %eax, -0x48(%rbp)
movl -0x48(%rbp), %esi
callq 0x64d0
movq %rax, %rdi
leaq 0xef05(%rip), %rsi      # 0x41982
callq 0x63d0
movq -0x50(%rbp), %rsi
movq -0x8(%rbp), %rdi
callq 0x6390
movq -0x8(%rbp), %rdi
leaq 0xeee7(%rip), %rsi      # 0x41981
callq 0x63d0
movq -0x8(%rbp), %rax
addq $0x70, %rsp
popq %rbp
retq
nopl (%rax)
// File: meirdev[P]HexViewer/./CLI11.hpp
// Function: CLI::detail::find_and_replace(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
inline std::string find_and_replace(std::string str, std::string from, std::string to) {

    size_t start_pos = 0;

    while((start_pos = str.find(from, start_pos)) != std::string::npos) {
        str.replace(start_pos, from.length(), to);
        start_pos += to.length();
    }

    return str;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rcx, -0x50(%rbp)
movq %rdx, -0x48(%rbp)
movq %rsi, -0x40(%rbp)
movq %rdi, -0x38(%rbp)
movq %rdi, %rax
movq %rax, -0x30(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq $0x0, -0x28(%rbp)
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdi
movq -0x28(%rbp), %rdx
callq 0x6840
movq %rax, -0x28(%rbp)
cmpq $-0x1, %rax
je 0x32cca
movq -0x48(%rbp), %rdi
movq -0x28(%rbp), %rax
movq %rax, -0x58(%rbp)
callq 0x6640
movq -0x40(%rbp), %rdi
movq -0x58(%rbp), %rsi
movq -0x50(%rbp), %rcx
movq %rax, %rdx
callq 0x6160
movq -0x50(%rbp), %rdi
callq 0x6640
addq -0x28(%rbp), %rax
movq %rax, -0x28(%rbp)
jmp 0x32c77
movq -0x40(%rbp), %rsi
movq -0x38(%rbp), %rdi
callq 0x6250
movq -0x30(%rbp), %rax
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax,%rax)
// File: meirdev[P]HexViewer/./CLI11.hpp
// Function: CLI::detail::split(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, char)
inline std::vector<std::string> split(const std::string &s, char delim) {
    std::vector<std::string> elems;
    // Check to see if empty string, give consistent result
    if(s.empty())
        elems.emplace_back("");
    else {
        std::stringstream ss;
        ss.str(s);
        std::string item;
        while(std::getline(ss, item, delim)) {
            elems.push_back(item);
        }
    }
    return elems;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x1f0, %rsp            # imm = 0x1F0
movq %rdi, -0x1e0(%rbp)
movb %dl, %al
movq %rdi, %rcx
movq %rcx, -0x1d8(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movb %al, -0x11(%rbp)
movb $0x0, -0x12(%rbp)
callq 0x15e10
movq -0x10(%rbp), %rdi
callq 0x66e0
testb $0x1, %al
jne 0x34a81
jmp 0x34aac
movq -0x1e0(%rbp), %rdi
leaq 0xcef3(%rip), %rsi      # 0x41982
callq 0x36040
jmp 0x34a96
jmp 0x34b89
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
jmp 0x34baf
leaq -0x1b0(%rbp), %rdi
callq 0x62e0
jmp 0x34aba
movq -0x10(%rbp), %rsi
leaq -0x1b0(%rbp), %rdi
callq 0x64c0
jmp 0x34acc
leaq -0x1d0(%rbp), %rdi
callq 0x65f0
movsbl -0x11(%rbp), %edx
leaq -0x1b0(%rbp), %rdi
leaq -0x1d0(%rbp), %rsi
callq 0x67b0
movq %rax, -0x1e8(%rbp)
jmp 0x34af8
movq -0x1e8(%rbp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
addq %rax, %rdi
callq 0x6550
movb %al, -0x1e9(%rbp)
jmp 0x34b16
movb -0x1e9(%rbp), %al
testb $0x1, %al
jne 0x34b22
jmp 0x34b61
movq -0x1e0(%rbp), %rdi
leaq -0x1d0(%rbp), %rsi
callq 0x173f0
jmp 0x34b37
jmp 0x34ad8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
jmp 0x34b7b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
leaq -0x1d0(%rbp), %rdi
callq 0x6280
jmp 0x34b7b
leaq -0x1d0(%rbp), %rdi
callq 0x6280
leaq -0x1b0(%rbp), %rdi
callq 0x6320
jmp 0x34b89
leaq -0x1b0(%rbp), %rdi
callq 0x6320
jmp 0x34baf
movb $0x1, -0x12(%rbp)
testb $0x1, -0x12(%rbp)
jne 0x34b9f
movq -0x1e0(%rbp), %rdi
callq 0x8710
movq -0x1d8(%rbp), %rax
addq $0x1f0, %rsp            # imm = 0x1F0
popq %rbp
retq
movq -0x1e0(%rbp), %rdi
callq 0x8710
movq -0x20(%rbp), %rdi
callq 0x6750
nopw %cs:(%rax,%rax)
nop
// File: meirdev[P]HexViewer/./CLI11.hpp
// Function: bool CLI::detail::lexical_cast<int, (CLI::detail::enabler)0>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, int&)
bool lexical_cast(std::string input, T &output) {
    try {
        size_t n = 0;
        long long output_ll = std::stoll(input, &n, 0);
        output = static_cast<T>(output_ll);
        return n == input.size() && static_cast<long long>(output) == output_ll;
    } catch(const std::invalid_argument &) {
        return false;
    } catch(const std::out_of_range &) {
        return false;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x58(%rbp)
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq $0x0, -0x20(%rbp)
leaq -0x20(%rbp), %rsi
xorl %edx, %edx
callq 0x38780
movq %rax, -0x50(%rbp)
jmp 0x386bd
movq -0x58(%rbp), %rdi
movq -0x50(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movl %eax, %ecx
movq -0x18(%rbp), %rax
movl %ecx, (%rax)
movq -0x20(%rbp), %rax
movq %rax, -0x68(%rbp)
callq 0x62d0
movq -0x68(%rbp), %rcx
movq %rax, %rdx
xorl %eax, %eax
cmpq %rdx, %rcx
movb %al, -0x59(%rbp)
jne 0x38704
movq -0x18(%rbp), %rax
movslq (%rax), %rax
cmpq -0x28(%rbp), %rax
sete %al
movb %al, -0x59(%rbp)
movb -0x59(%rbp), %al
andb $0x1, %al
movb %al, -0x1(%rbp)
jmp 0x38763
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
movl -0x34(%rbp), %eax
movl %eax, -0x6c(%rbp)
movl $0x2, %ecx
cmpl %ecx, %eax
jne 0x38741
movq -0x30(%rbp), %rdi
callq 0x61a0
movq %rax, -0x48(%rbp)
movb $0x0, -0x1(%rbp)
callq 0x66d0
jmp 0x38763
movl -0x6c(%rbp), %eax
movl $0x1, %ecx
cmpl %ecx, %eax
jne 0x3876e
movq -0x30(%rbp), %rdi
callq 0x61a0
movq %rax, -0x40(%rbp)
movb $0x0, -0x1(%rbp)
callq 0x66d0
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x70, %rsp
popq %rbp
retq
movq -0x30(%rbp), %rdi
callq 0x6750
nopw (%rax,%rax)
// File: meirdev[P]HexViewer/./CLI11.hpp
// Function: bool CLI::detail::lexical_cast<unsigned long, (CLI::detail::enabler)0>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, unsigned long&)
bool lexical_cast(std::string input, T &output) {
    if(!input.empty() && input.front() == '-')
        return false; // std::stoull happily converts negative values to junk without any errors.

    try {
        size_t n = 0;
        unsigned long long output_ll = std::stoull(input, &n, 0);
        output = static_cast<T>(output_ll);
        return n == input.size() && static_cast<unsigned long long>(output) == output_ll;
    } catch(const std::invalid_argument &) {
        return false;
    } catch(const std::out_of_range &) {
        return false;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x50(%rbp)
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
callq 0x66e0
testb $0x1, %al
jne 0x38e27
movq -0x50(%rbp), %rdi
callq 0x6110
movsbl (%rax), %eax
cmpl $0x2d, %eax
jne 0x38e27
movb $0x0, -0x1(%rbp)
jmp 0x38ee9
movq -0x50(%rbp), %rdi
movq $0x0, -0x20(%rbp)
leaq -0x20(%rbp), %rsi
xorl %edx, %edx
callq 0x38f00
movq %rax, -0x58(%rbp)
jmp 0x38e44
movq -0x50(%rbp), %rdi
movq -0x58(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movq -0x20(%rbp), %rax
movq %rax, -0x68(%rbp)
callq 0x62d0
movq -0x68(%rbp), %rcx
movq %rax, %rdx
xorl %eax, %eax
cmpq %rdx, %rcx
movb %al, -0x59(%rbp)
jne 0x38e8a
movq -0x18(%rbp), %rax
movq (%rax), %rax
cmpq -0x28(%rbp), %rax
sete %al
movb %al, -0x59(%rbp)
movb -0x59(%rbp), %al
andb $0x1, %al
movb %al, -0x1(%rbp)
jmp 0x38ee9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
movl -0x34(%rbp), %eax
movl %eax, -0x6c(%rbp)
movl $0x2, %ecx
cmpl %ecx, %eax
jne 0x38ec7
movq -0x30(%rbp), %rdi
callq 0x61a0
movq %rax, -0x48(%rbp)
movb $0x0, -0x1(%rbp)
callq 0x66d0
jmp 0x38ee9
movl -0x6c(%rbp), %eax
movl $0x1, %ecx
cmpl %ecx, %eax
jne 0x38ef4
movq -0x30(%rbp), %rdi
callq 0x61a0
movq %rax, -0x40(%rbp)
movb $0x0, -0x1(%rbp)
callq 0x66d0
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x70, %rsp
popq %rbp
retq
movq -0x30(%rbp), %rdi
callq 0x6750
nopl (%rax)
// File: meirdev[P]HexViewer/HexViewer.cpp
// Function: HexViewer::setStyle(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, bool)
void HexViewer::setStyle(const std::string& _style, bool _colors)
{
    if (_style == "hexyl")
    {
        m_style = new Hexyl(_colors);
    }
    else if (_style == "hexdump")
    {
        m_style = new HexDump;
    }
    else
    {
        throw std::runtime_error("Can't load theme");
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movb %dl, %al
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
andb $0x1, %al
movb %al, -0x11(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rdi
leaq 0x7b31(%rip), %rsi      # 0x4128b
callq 0x1be30
testb $0x1, %al
jne 0x39765
jmp 0x397b6
movl $0x28, %edi
callq 0x63e0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x38(%rbp)
movzbl -0x11(%rbp), %esi
andl $0x1, %esi
callq 0x3b8a0
jmp 0x39787
movq -0x30(%rbp), %rax
movq -0x38(%rbp), %rcx
movq %rcx, (%rax)
jmp 0x39862
movq -0x38(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
movl $0x28, %esi
callq 0x63f0
jmp 0x39868
movq -0x10(%rbp), %rdi
leaq 0x8ff2(%rip), %rsi      # 0x427b3
callq 0x1be30
testb $0x1, %al
jne 0x397cc
jmp 0x39810
movl $0x38, %edi
callq 0x63e0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x40(%rbp)
callq 0x3a130
jmp 0x397e7
movq -0x30(%rbp), %rax
movq -0x40(%rbp), %rcx
movq %rcx, (%rax)
jmp 0x39860
movq -0x40(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
movl $0x38, %esi
callq 0x63f0
jmp 0x39868
movl $0x10, %edi
callq 0x6200
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x48(%rbp)
leaq 0x8f90(%rip), %rsi      # 0x427bb
callq 0x6190
jmp 0x39832
movq -0x48(%rbp), %rdi
movq 0x247b3(%rip), %rsi     # 0x5dff0
movq 0x24764(%rip), %rdx     # 0x5dfa8
callq 0x6700
movq -0x48(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
callq 0x6310
jmp 0x39868
jmp 0x39862
addq $0x50, %rsp
popq %rbp
retq
movq -0x20(%rbp), %rdi
callq 0x6750
nopw %cs:(%rax,%rax)
// File: meirdev[P]HexViewer/HexViewer.cpp
// Function: HexViewer::print(int, unsigned long)
void HexViewer::print(int _offset, size_t _length)
{
    DataProcessing dataProcessing(*m_printer, *m_style, *m_file);

    if (_offset)
    {
        dataProcessing.setOffset(_offset);
    }

    if (_length)
    {
        dataProcessing.setLength(_length);
    }

    dataProcessing.process();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rsi
movq (%rax), %rdx
movq 0x10(%rax), %rcx
leaq -0x60(%rbp), %rdi
callq 0x3e780
cmpl $0x0, -0xc(%rbp)
je 0x399b8
movl -0xc(%rbp), %esi
leaq -0x60(%rbp), %rdi
callq 0x3e820
jmp 0x3999f
jmp 0x399b8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
leaq -0x60(%rbp), %rdi
callq 0x39a00
jmp 0x399ea
cmpq $0x0, -0x18(%rbp)
je 0x399d0
movq -0x18(%rbp), %rsi
leaq -0x60(%rbp), %rdi
callq 0x3e880
jmp 0x399ce
jmp 0x399d0
leaq -0x60(%rbp), %rdi
callq 0x3e8a0
jmp 0x399db
leaq -0x60(%rbp), %rdi
callq 0x39a00
addq $0x70, %rsp
popq %rbp
retq
movq -0x68(%rbp), %rdi
callq 0x6750
nopw %cs:(%rax,%rax)
nopl (%rax)
// File: meirdev[P]HexViewer/StringBuffer/StringBuffer.cpp
// Function: StringBuffer::inputString(char const*, unsigned long)
StringBuffer& StringBuffer::inputString(const char* _string, size_t _size)
{
    if (_size >= m_size)
    {
        std::cout << _string;
        
        return *this;
    }
    
    if (_size+m_position > m_size)
    {
        std::cout << m_buffer;

        m_position = 0;
    }
    
    std::copy(_string, _string+_size, m_buffer+m_position);

    m_position          += _size;
    m_buffer[m_position] = 0;

    return *this;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x10(%rbp), %rcx
movq %rcx, -0x28(%rbp)
movq -0x20(%rbp), %rax
cmpq 0x10(%rcx), %rax
jb 0x39d30
movq -0x18(%rbp), %rsi
movq 0x24297(%rip), %rdi     # 0x5dfb8
callq 0x63d0
movq -0x28(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x39d9c
movq -0x28(%rbp), %rcx
movq -0x20(%rbp), %rax
addq 0x8(%rcx), %rax
cmpq 0x10(%rcx), %rax
jbe 0x39d61
movq -0x28(%rbp), %rax
movq (%rax), %rsi
movq 0x24268(%rip), %rdi     # 0x5dfb8
callq 0x63d0
movq -0x28(%rbp), %rax
movq $0x0, 0x8(%rax)
movq -0x28(%rbp), %rax
movq -0x18(%rbp), %rdi
movq -0x18(%rbp), %rsi
addq -0x20(%rbp), %rsi
movq (%rax), %rdx
addq 0x8(%rax), %rdx
callq 0x39e90
movq -0x28(%rbp), %rax
movq -0x20(%rbp), %rcx
addq 0x8(%rax), %rcx
movq %rcx, 0x8(%rax)
movq (%rax), %rcx
movq 0x8(%rax), %rdx
movb $0x0, (%rcx,%rdx)
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: meirdev[P]HexViewer/Style/HexDump/HexDump.cpp
// Function: HexDump::row(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<unsigned short, std::allocator<unsigned short>> const&)
std::string HexDump::row(const std::string& _position, const std::vector<unsigned short>& _bytes)
{
    m_rowBuffer.clear();

    m_rowBuffer << _position << "  ";
    
    for (size_t i = 0; i < 16; ++i)
    {
        if (i)
        {
            if (i % 8 == 0)
            {
                m_rowBuffer << "  ";
            }
            else
            {
                m_rowBuffer << " ";
            }
        }

        m_rowBuffer << getByte(_bytes[i]);
    }
    
    m_rowBuffer << "  |";
    
    for (size_t i = 0; i < 16; ++i)
    {
        m_rowBuffer << getText(_bytes[i]);
    }

    m_rowBuffer << "|" << "\n";

    return m_rowBuffer.get();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movq %rdi, -0x60(%rbp)
movq %rdi, %rax
movq %rax, -0x58(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x10(%rbp), %rdi
movq %rdi, -0x50(%rbp)
addq $0x20, %rdi
callq 0x39e40
movq -0x50(%rbp), %rdi
addq $0x20, %rdi
movq -0x18(%rbp), %rsi
callq 0x39db0
movq %rax, %rdi
leaq 0x7352(%rip), %rsi      # 0x41984
callq 0x39cb0
movq $0x0, -0x28(%rbp)
cmpq $0x10, -0x28(%rbp)
jae 0x3a6cd
cmpq $0x0, -0x28(%rbp)
je 0x3a68b
movq -0x28(%rbp), %rax
andq $0x7, %rax
cmpq $0x0, %rax
jne 0x3a675
movq -0x50(%rbp), %rdi
addq $0x20, %rdi
leaq 0x7316(%rip), %rsi      # 0x41984
callq 0x39cb0
jmp 0x3a689
movq -0x50(%rbp), %rdi
addq $0x20, %rdi
leaq 0x7301(%rip), %rsi      # 0x41985
callq 0x39cb0
jmp 0x3a68b
movq -0x50(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x68(%rbp)
movq -0x20(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0x3ac30
movq -0x50(%rbp), %rdi
movzwl (%rax), %esi
callq 0x3ac00
movq -0x68(%rbp), %rdi
movq %rax, %rsi
callq 0x39db0
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
jmp 0x3a63f
movq -0x50(%rbp), %rdi
addq $0x20, %rdi
leaq 0x80f8(%rip), %rsi      # 0x427d4
callq 0x39cb0
movq $0x0, -0x30(%rbp)
cmpq $0x10, -0x30(%rbp)
jae 0x3a72f
movq -0x50(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x70(%rbp)
movq -0x20(%rbp), %rdi
movq -0x30(%rbp), %rsi
callq 0x3ac30
movq -0x50(%rbp), %rdi
movzwl (%rax), %esi
callq 0x3ac50
movq -0x70(%rbp), %rdi
movq %rax, %rsi
callq 0x39db0
movq -0x30(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x30(%rbp)
jmp 0x3a6e9
movq -0x50(%rbp), %rdi
addq $0x20, %rdi
movq %rdi, -0x88(%rbp)
leaq 0x8091(%rip), %rsi      # 0x427d6
callq 0x39cb0
movq %rax, %rdi
leaq 0x722d(%rip), %rsi      # 0x41981
callq 0x39cb0
movq -0x88(%rbp), %rdi
callq 0x39e70
movq %rax, -0x80(%rbp)
leaq -0x31(%rbp), %rdi
movq %rdi, -0x78(%rbp)
callq 0x6770
movq -0x60(%rbp), %rdi
movq -0x80(%rbp), %rsi
movq -0x78(%rbp), %rdx
callq 0x8eb0
jmp 0x3a789
leaq -0x31(%rbp), %rdi
callq 0x6460
movq -0x58(%rbp), %rax
addq $0x90, %rsp
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x31(%rbp), %rdi
callq 0x6460
movq -0x40(%rbp), %rdi
callq 0x6750
nopl (%rax)
// File: meirdev[P]HexViewer/Style/Hexyl/Hexyl.cpp
// Function: Repeat(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned long)
static std::string Repeat(const std::string& _string, size_t _length)
{
    std::stringstream fs;

    for (size_t i = 0; i < _length; ++i)
    {
        fs << _string;
    }

    return fs.str();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x1d0, %rsp            # imm = 0x1D0
movq %rdi, -0x1c8(%rbp)
movq %rdi, %rax
movq %rax, -0x1c0(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
leaq -0x1a0(%rbp), %rdi
callq 0x62e0
movq $0x0, -0x1a8(%rbp)
movq -0x1a8(%rbp), %rax
cmpq -0x18(%rbp), %rax
jae 0x3cc14
leaq -0x190(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x6390
jmp 0x3cbde
jmp 0x3cbe0
movq -0x1a8(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x1a8(%rbp)
jmp 0x3cbbf
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1b0(%rbp)
movl %eax, -0x1b4(%rbp)
leaq -0x1a0(%rbp), %rdi
callq 0x6320
jmp 0x3cc45
movq -0x1c8(%rbp), %rdi
leaq -0x1a0(%rbp), %rsi
callq 0x63c0
jmp 0x3cc29
leaq -0x1a0(%rbp), %rdi
callq 0x6320
movq -0x1c0(%rbp), %rax
addq $0x1d0, %rsp            # imm = 0x1D0
popq %rbp
retq
movq -0x1b0(%rbp), %rdi
callq 0x6750
nopw %cs:(%rax,%rax)
nopl (%rax,%rax)
// File: meirdev[P]HexViewer/Style/Hexyl/Hexyl.cpp
// Function: Hexyl::position[abi:cxx11](unsigned long)
inline std::string Hexyl::position(size_t _position)
{
    std::stringstream position;

    if (m_colourful)
    {
        position << "\x1b[38;5;242m" << std::setfill('0') << std::setw(8) << std::hex << _position << "\x1b[0m";
    }
    else
    {
        position << std::setfill('0') << std::setw(8) << std::hex << _position;
    }

    return position.str();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x240, %rsp            # imm = 0x240
movq %rdi, -0x1d8(%rbp)
movq %rdi, %rax
movq %rax, -0x1d0(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x1c8(%rbp)
leaq -0x1a0(%rbp), %rdi
callq 0x62e0
movq -0x1c8(%rbp), %rax
testb $0x1, 0x20(%rax)
je 0x3cec1
leaq -0x190(%rbp), %rdi
leaq 0x5a3b(%rip), %rsi      # 0x42809
callq 0x63d0
movq %rax, -0x1e0(%rbp)
jmp 0x3cddc
movl $0x30, %edi
callq 0x3a800
movb %al, -0x1e1(%rbp)
jmp 0x3cdee
movq -0x1e0(%rbp), %rdi
movb -0x1e1(%rbp), %al
movb %al, -0x1ad(%rbp)
movzbl -0x1ad(%rbp), %esi
callq 0x6680
movq %rax, -0x1f0(%rbp)
jmp 0x3ce16
movl $0x8, %edi
callq 0x32ae0
movl %eax, -0x1f4(%rbp)
jmp 0x3ce28
movq -0x1f0(%rbp), %rdi
movl -0x1f4(%rbp), %eax
movl %eax, -0x1b4(%rbp)
movl -0x1b4(%rbp), %esi
callq 0x64d0
movq %rax, -0x200(%rbp)
jmp 0x3ce4f
movq -0x200(%rbp), %rdi
leaq -0x263d(%rip), %rsi     # 0x3a820
callq 0x6140
movq %rax, -0x208(%rbp)
jmp 0x3ce6b
movq -0x208(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x60d0
movq %rax, -0x210(%rbp)
jmp 0x3ce84
movq -0x210(%rbp), %rdi
leaq 0x5972(%rip), %rsi      # 0x42804
callq 0x63d0
jmp 0x3ce99
jmp 0x3cf72
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1a8(%rbp)
movl %eax, -0x1ac(%rbp)
leaq -0x1a0(%rbp), %rdi
callq 0x6320
jmp 0x3cfa3
leaq -0x190(%rbp), %rax
movq %rax, -0x220(%rbp)
movl $0x30, %edi
callq 0x3a800
movb %al, -0x211(%rbp)
jmp 0x3cee1
movq -0x220(%rbp), %rdi
movb -0x211(%rbp), %al
movb %al, -0x1b5(%rbp)
movzbl -0x1b5(%rbp), %esi
callq 0x6680
movq %rax, -0x228(%rbp)
jmp 0x3cf09
movl $0x8, %edi
callq 0x32ae0
movl %eax, -0x22c(%rbp)
jmp 0x3cf1b
movq -0x228(%rbp), %rdi
movl -0x22c(%rbp), %eax
movl %eax, -0x1bc(%rbp)
movl -0x1bc(%rbp), %esi
callq 0x64d0
movq %rax, -0x238(%rbp)
jmp 0x3cf42
movq -0x238(%rbp), %rdi
leaq -0x2730(%rip), %rsi     # 0x3a820
callq 0x6140
movq %rax, -0x240(%rbp)
jmp 0x3cf5e
movq -0x240(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x60d0
jmp 0x3cf70
jmp 0x3cf72
movq -0x1d8(%rbp), %rdi
leaq -0x1a0(%rbp), %rsi
callq 0x63c0
jmp 0x3cf87
leaq -0x1a0(%rbp), %rdi
callq 0x6320
movq -0x1d0(%rbp), %rax
addq $0x240, %rsp            # imm = 0x240
popq %rbp
retq
movq -0x1a8(%rbp), %rdi
callq 0x6750
nop
// File: meirdev[P]HexViewer/FileStream/LocalFile/LocalFile.cpp
// Function: LocalFile::size()
inline size_t LocalFile::size()
{
    size_t currentPosition = tell();

    m_file.seekg(0, std::ios_base::end);

    size_t fileSize = tell();

    m_file.seekg(currentPosition, std::ios_base::beg);

    return fileSize;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x20(%rbp)
movq (%rdi), %rax
callq *0x20(%rax)
movq -0x20(%rbp), %rdi
movq %rax, -0x10(%rbp)
addq $0x8, %rdi
xorl %eax, %eax
movl %eax, %esi
movl $0x2, %edx
callq 0x65d0
movq -0x20(%rbp), %rdi
movq (%rdi), %rax
callq *0x20(%rax)
movq -0x20(%rbp), %rdi
movq %rax, -0x18(%rbp)
addq $0x8, %rdi
movq -0x10(%rbp), %rsi
xorl %edx, %edx
callq 0x65d0
movq -0x18(%rbp), %rax
addq $0x20, %rsp
popq %rbp
retq
nop
// File: meirdev[P]HexViewer/DataProcessing/DataProcessing.cpp
// Function: DataProcessing::setOffset(int)
void DataProcessing::setOffset(int _offset)
{
    if (_offset < 0)
    {
        _offset = static_cast<int>(m_file.size())+_offset;

        if (_offset < 0)
        {
            _offset = 0;
        }
    }

    m_offset = _offset;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x18(%rbp)
cmpl $0x0, -0xc(%rbp)
jge 0x3e860
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rdi
movq (%rdi), %rax
callq *0x30(%rax)
addl -0xc(%rbp), %eax
movl %eax, -0xc(%rbp)
cmpl $0x0, -0xc(%rbp)
jge 0x3e85e
movl $0x0, -0xc(%rbp)
jmp 0x3e860
movq -0x18(%rbp), %rax
movslq -0xc(%rbp), %rcx
movq %rcx, (%rax)
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: meirdev[P]HexViewer/DataProcessing/DataProcessing.cpp
// Function: DataProcessing::printByte(unsigned char)
inline void DataProcessing::printByte(unsigned char _byte)
{
    m_bytes.push_back(_byte);

    size_t size = m_bytes.size();

    if (size && (size % m_blockSize == 0))
    {
        printRow();
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movb %sil, %al
movq %rdi, -0x8(%rbp)
movb %al, -0x9(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x20(%rbp)
addq $0x28, %rdi
movzbl -0x9(%rbp), %eax
movw %ax, -0xc(%rbp)
leaq -0xc(%rbp), %rsi
callq 0x3ecd0
movq -0x20(%rbp), %rdi
addq $0x28, %rdi
callq 0x3ed00
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x3eb64
movq -0x20(%rbp), %rcx
movq -0x18(%rbp), %rax
xorl %edx, %edx
divq 0x40(%rcx)
cmpq $0x0, %rdx
jne 0x3eb64
movq -0x20(%rbp), %rdi
callq 0x3ed20
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: meirdev[P]HexViewer/DataProcessing/DataProcessing.cpp
// Function: DataProcessing::printEnd()
inline void DataProcessing::printEnd()
{
    size_t size = m_bytes.size();

    if (size && (size != m_blockSize))
    {
        m_bytes.insert(m_bytes.begin()+size, m_blockSize-size, 256);
    }

    printRow();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x40(%rbp)
addq $0x28, %rdi
callq 0x3ed00
movq %rax, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x3ec07
movq -0x40(%rbp), %rcx
movq -0x10(%rbp), %rax
cmpq 0x40(%rcx), %rax
je 0x3ec07
movq -0x40(%rbp), %rdi
movq %rdi, %rax
addq $0x28, %rax
movq %rax, -0x48(%rbp)
addq $0x28, %rdi
callq 0x3f1e0
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rsi
leaq -0x28(%rbp), %rdi
callq 0x3f700
movq %rax, -0x20(%rbp)
leaq -0x18(%rbp), %rdi
leaq -0x20(%rbp), %rsi
callq 0x3f740
movq -0x40(%rbp), %rax
movq -0x48(%rbp), %rdi
movq 0x40(%rax), %rdx
subq -0x10(%rbp), %rdx
movw $0x100, -0x2a(%rbp)     # imm = 0x100
movq -0x18(%rbp), %rsi
leaq -0x2a(%rbp), %rcx
callq 0x3f660
movq %rax, -0x38(%rbp)
movq -0x40(%rbp), %rdi
callq 0x3ed20
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: JoshCplusplus[P]Chemistry-Atom-Simulator-/main.cc
// Function: print_board()
void print_board(){
	for(int i = 0; i < x_size*y_size; i++){
		if(i % 31 == 0 && i > 0) cout << endl;
		cout << board[i];
	}
	cout << endl;
	usleep(300000);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movl $0x0, -0x4(%rbp)
cmpl $0x1d1, -0x4(%rbp)      # imm = 0x1D1
jge 0x460a
movl -0x4(%rbp), %eax
movl $0x1f, %ecx
cltd
idivl %ecx
cmpl $0x0, %edx
jne 0x45e1
cmpl $0x0, -0x4(%rbp)
jle 0x45e1
movq 0xc9fb(%rip), %rdi      # 0x10fd0
movq 0xc9e4(%rip), %rsi      # 0x10fc0
callq 0x21c0
movslq -0x4(%rbp), %rax
leaq 0xd094(%rip), %rsi      # 0x11680
shlq $0x5, %rax
addq %rax, %rsi
movq 0xc9d6(%rip), %rdi      # 0x10fd0
callq 0x2170
movl -0x4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
jmp 0x45af
movq 0xc9bf(%rip), %rdi      # 0x10fd0
movq 0xc9a8(%rip), %rsi      # 0x10fc0
callq 0x21c0
movl $0x493e0, %edi          # imm = 0x493E0
callq 0x2270
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax)
// File: JoshCplusplus[P]Chemistry-Atom-Simulator-/main.cc
// Function: find_mol(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
molecule find_mol(string x, string y){
	molecule temp;
	auto i = allmol.find(make_pair(x,y));
	auto j = allmol.find(make_pair(y,x));
	if(i != allmol.end()) return i->second;
	else if(j != allmol.end()) return i->second;
	else return temp;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x190, %rsp            # imm = 0x190
movq %rdx, -0x160(%rbp)
movq %rsi, -0x168(%rbp)
movq %rdi, -0x178(%rbp)
movq %rdi, %rax
movq %rax, -0x170(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
leaq -0xa0(%rbp), %rdi
callq 0x5cc0
movq -0x168(%rbp), %rsi
movq -0x160(%rbp), %rdx
leaq -0xe8(%rbp), %rdi
callq 0x5d90
jmp 0x468e
leaq 0x10a4b(%rip), %rdi     # 0x150e0
leaq -0xe8(%rbp), %rsi
callq 0x5d60
movq %rax, -0x180(%rbp)
jmp 0x46aa
movq -0x180(%rbp), %rax
movq %rax, -0xa8(%rbp)
leaq -0xe8(%rbp), %rdi
callq 0x5950
movq -0x160(%rbp), %rsi
movq -0x168(%rbp), %rdx
leaq -0x140(%rbp), %rdi
callq 0x5d90
jmp 0x46e0
leaq 0x109f9(%rip), %rdi     # 0x150e0
leaq -0x140(%rbp), %rsi
callq 0x5d60
movq %rax, -0x188(%rbp)
jmp 0x46fc
movq -0x188(%rbp), %rax
movq %rax, -0x100(%rbp)
leaq -0x140(%rbp), %rdi
callq 0x5950
leaq 0x109c3(%rip), %rdi     # 0x150e0
callq 0x5ba0
movq %rax, -0x148(%rbp)
leaq -0xa8(%rbp), %rdi
leaq -0x148(%rbp), %rsi
callq 0x5bd0
testb $0x1, %al
jne 0x4745
jmp 0x47d2
leaq -0xa8(%rbp), %rdi
callq 0x5dd0
movq -0x178(%rbp), %rdi
movq %rax, %rsi
addq $0x40, %rsi
callq 0x5e00
jmp 0x4766
movl $0x1, -0x14c(%rbp)
jmp 0x4848
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xf0(%rbp)
movl %eax, -0xf4(%rbp)
jmp 0x4864
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xf0(%rbp)
movl %eax, -0xf4(%rbp)
leaq -0xe8(%rbp), %rdi
callq 0x5950
jmp 0x4864
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xf0(%rbp)
movl %eax, -0xf4(%rbp)
leaq -0x140(%rbp), %rdi
callq 0x5950
jmp 0x4864
leaq 0x10907(%rip), %rdi     # 0x150e0
callq 0x5ba0
movq %rax, -0x158(%rbp)
leaq -0x100(%rbp), %rdi
leaq -0x158(%rbp), %rsi
callq 0x5bd0
testb $0x1, %al
jne 0x47fe
jmp 0x482b
leaq -0xa8(%rbp), %rdi
callq 0x5dd0
movq -0x178(%rbp), %rdi
movq %rax, %rsi
addq $0x40, %rsi
callq 0x5e00
jmp 0x481f
movl $0x1, -0x14c(%rbp)
jmp 0x4848
movq -0x178(%rbp), %rdi
leaq -0xa0(%rbp), %rsi
callq 0x5eb0
movl $0x1, -0x14c(%rbp)
leaq -0xa0(%rbp), %rdi
callq 0x56f0
movq -0x170(%rbp), %rax
addq $0x190, %rsp            # imm = 0x190
popq %rbp
retq
leaq -0xa0(%rbp), %rdi
callq 0x56f0
movq -0xf0(%rbp), %rdi
callq 0x22d0
nopl (%rax)
// File: JoshCplusplus[P]Chemistry-Atom-Simulator-/./atom.h
// Function: molecule::molecule(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, double, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
molecule(string name1, string atom1, string atom2, double energy1,string newmessage){
		name = name1;
		madeof = make_pair(atom1,atom2);
		energy = energy1;
		message = newmessage;
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
movq %rsi, -0xb8(%rbp)
movq %rdx, -0xb0(%rbp)
movq %rcx, -0xa8(%rbp)
movq %r8, -0xa0(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movsd %xmm0, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x90(%rbp)
movq %rdi, %rax
movq %rax, -0x98(%rbp)
callq 0x2260
movq -0x90(%rbp), %rdi
addq $0x20, %rdi
movq %rdi, -0x88(%rbp)
callq 0x6170
jmp 0x5603
movq -0x98(%rbp), %rdi
addq $0x68, %rdi
movq %rdi, -0xc0(%rbp)
callq 0x2260
movq -0x98(%rbp), %rdi
movq -0xb8(%rbp), %rsi
callq 0x2030
jmp 0x562f
movq -0xa8(%rbp), %rdx
movq -0xb0(%rbp), %rsi
leaq -0x80(%rbp), %rdi
callq 0x5d90
jmp 0x5648
movq -0x98(%rbp), %rdi
addq $0x20, %rdi
leaq -0x80(%rbp), %rsi
movq %rsi, -0xc8(%rbp)
callq 0x61a0
movq -0xc8(%rbp), %rdi
callq 0x5950
movq -0x98(%rbp), %rdi
movq -0xa0(%rbp), %rsi
movsd -0x28(%rbp), %xmm0
movsd %xmm0, 0x60(%rdi)
addq $0x68, %rdi
callq 0x2030
jmp 0x5692
addq $0xd0, %rsp
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0x56cd
movq -0xc0(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
callq 0x2100
movq -0x88(%rbp), %rdi
callq 0x5950
movq -0x90(%rbp), %rdi
callq 0x2100
movq -0x38(%rbp), %rdi
callq 0x22d0
nopw %cs:(%rax,%rax)
nopl (%rax)
// File: ivanzamanov[P]kmeans/src/extractor/extractor.cpp
// Function: main
int main(int argc, char** argv) {
	if(argc < 3) {
		printf("Not enough arguments\n");
		printf("Usage: %s <input_file> <output_dir> <output_count_offset>\n", argv[0]);
		return 1;
	}

	char* inputPath = argv[1];
	int inputFD = open(inputPath, O_RDONLY);
	if(inputFD < 0) {
		printf("Cannot open file %s\n", inputPath);
		return 1;
	}

	struct stat fileStat;
	if(fstat(inputFD, &fileStat) != 0) {
		printf("Cannot stat file %s\n", inputPath);
		return 1;
	}

	outputDir = argv[2];
	articleCount = 0;
	articleIndexOffset = strtol(argv[3], NULL, 0);
	
	processFile(inputFD, &fileStat);

	printf("Articles parsed: %d\n", articleCount);
}

// Assembly:
subq $0xb8, %rsp
movl $0x0, 0xb4(%rsp)
movl %edi, 0xb0(%rsp)
movq %rsi, 0xa8(%rsp)
cmpl $0x3, 0xb0(%rsp)
jge 0x1272
leaq 0xdc2(%rip), %rdi       # 0x2004
movb $0x0, %al
callq 0x1040
movq 0xa8(%rsp), %rax
movq (%rax), %rsi
leaq 0xdbf(%rip), %rdi       # 0x201a
movb $0x0, %al
callq 0x1040
movl $0x1, 0xb4(%rsp)
jmp 0x1366
movq 0xa8(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0xa0(%rsp)
movq 0xa0(%rsp), %rdi
xorl %esi, %esi
movb $0x0, %al
callq 0x1090
movl %eax, 0x9c(%rsp)
cmpl $0x0, 0x9c(%rsp)
jge 0x12ce
movq 0xa0(%rsp), %rsi
leaq 0xd9e(%rip), %rdi       # 0x2055
movb $0x0, %al
callq 0x1040
movl $0x1, 0xb4(%rsp)
jmp 0x1366
movl 0x9c(%rsp), %edi
leaq 0x8(%rsp), %rsi
callq 0x10e0
cmpl $0x0, %eax
je 0x1307
movq 0xa0(%rsp), %rsi
leaq 0xd77(%rip), %rdi       # 0x206a
movb $0x0, %al
callq 0x1040
movl $0x1, 0xb4(%rsp)
jmp 0x1366
movq 0xa8(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x2d8e(%rip)      # 0x40a8
movl $0x0, 0x2d94(%rip)      # 0x40b8
movq 0xa8(%rsp), %rax
movq 0x18(%rax), %rdi
xorl %eax, %eax
movl %eax, %esi
xorl %edx, %edx
callq 0x10c0
movl %eax, 0x2d7b(%rip)      # 0x40bc
movl 0x9c(%rsp), %edi
leaq 0x8(%rsp), %rsi
callq 0x1380
movl 0x2d60(%rip), %esi      # 0x40b8
leaq 0xd20(%rip), %rdi       # 0x207f
movb $0x0, %al
callq 0x1040
movl 0xb4(%rsp), %eax
addq $0xb8, %rsp
retq
nopw %cs:(%rax,%rax)
// File: ivanzamanov[P]kmeans/src/extractor/extractor.cpp
// Function: processFile(int, stat*)
void processFile(int inputFD, struct stat* const fileStat) {
	char* fullData = 0;
	readFullData(inputFD, &fullData);

	matcher* startMarker;
	matcher* endMarker;
	build_matcher("<BODY>", startMarker);
	build_matcher("</BODY>", endMarker);
	article_match* lastArticleMatch = 0;
	int lastArticleEndPos = 0;

	// Read articles while found
	do {
		char* offsetData = fullData + lastArticleEndPos;
		// Try to find an article
		lastArticleMatch = get_match(offsetData, *startMarker, *endMarker);
		if(lastArticleMatch != 0) {
			// Found an article, save it
			save_article(lastArticleMatch, offsetData, articleCount + articleIndexOffset);
			articleCount++;
			// Move offset after the article's end.
			lastArticleEndPos = lastArticleEndPos + lastArticleMatch->end;
			delete lastArticleMatch;
		}
	} while(lastArticleMatch != 0);

	delete fullData;
}

// Assembly:
subq $0x58, %rsp
movl %edi, 0x54(%rsp)
movq %rsi, 0x48(%rsp)
movq $0x0, 0x40(%rsp)
movl 0x54(%rsp), %edi
leaq 0x40(%rsp), %rsi
callq 0x1df0
leaq 0xce9(%rip), %rdi       # 0x2094
leaq 0x38(%rsp), %rsi
callq 0x1710
leaq 0xcdf(%rip), %rdi       # 0x209b
leaq 0x30(%rsp), %rsi
callq 0x1710
movq $0x0, 0x28(%rsp)
movl $0x0, 0x24(%rsp)
movq 0x40(%rsp), %rax
movslq 0x24(%rsp), %rcx
addq %rcx, %rax
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rdi
movq 0x38(%rsp), %rsi
movq 0x30(%rsp), %rdx
callq 0x1490
movq %rax, 0x28(%rsp)
cmpq $0x0, 0x28(%rsp)
je 0x1460
movq 0x28(%rsp), %rdi
movq 0x18(%rsp), %rsi
movl 0x2c9e(%rip), %edx      # 0x40b8
addl 0x2c9c(%rip), %edx      # 0x40bc
callq 0x1580
movl 0x2c8d(%rip), %eax      # 0x40b8
addl $0x1, %eax
movl %eax, 0x2c84(%rip)      # 0x40b8
movl 0x24(%rsp), %eax
movq 0x28(%rsp), %rcx
addl 0x4(%rcx), %eax
movl %eax, 0x24(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0x10(%rsp)
cmpq $0x0, %rax
je 0x145e
movq 0x10(%rsp), %rdi
callq 0x10a0
jmp 0x1460
jmp 0x1462
cmpq $0x0, 0x28(%rsp)
jne 0x13d7
movq 0x40(%rsp), %rax
movq %rax, 0x8(%rsp)
cmpq $0x0, %rax
je 0x1488
movq 0x8(%rsp), %rdi
callq 0x10a0
addq $0x58, %rsp
retq
nopl (%rax)
// File: ivanzamanov[P]kmeans/src/extractor/extractor.cpp
// Function: get_match(char const*, matcher const&, matcher const&)
article_match* get_match(const char* data, const matcher& startMarker, const matcher& endMarker) {
	// Search for the start marker
	int start = search(data, startMarker);
	int end = -1;
	if(start >= 0) {
			// Search for the end marker after the start
			end = search(data + start, endMarker);
			end = end + start;
			if(end > start) {
				// Found, return a reference
				article_match* result = new article_match(start + startMarker.n, end);
				return result;
			}
	}
	return 0;
}

// Assembly:
subq $0x48, %rsp
movq %rdi, 0x38(%rsp)
movq %rsi, 0x30(%rsp)
movq %rdx, 0x28(%rsp)
movq 0x38(%rsp), %rdi
movq 0x30(%rsp), %rsi
callq 0x1a80
movl %eax, 0x24(%rsp)
movl $0xffffffff, 0x20(%rsp) # imm = 0xFFFFFFFF
cmpl $0x0, 0x24(%rsp)
jl 0x1557
movq 0x38(%rsp), %rdi
movslq 0x24(%rsp), %rax
addq %rax, %rdi
movq 0x28(%rsp), %rsi
callq 0x1a80
movl %eax, 0x20(%rsp)
movl 0x20(%rsp), %eax
addl 0x24(%rsp), %eax
movl %eax, 0x20(%rsp)
movl 0x20(%rsp), %eax
cmpl 0x24(%rsp), %eax
jle 0x1555
movl $0x8, %edi
callq 0x10b0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, (%rsp)
movl 0x24(%rsp), %esi
movq 0x30(%rsp), %rax
movl 0x8(%rax), %eax
addl %eax, %esi
movl 0x20(%rsp), %edx
callq 0x16f0
jmp 0x1527
movq (%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x40(%rsp)
jmp 0x1560
movq (%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x10(%rsp)
movl %eax, 0xc(%rsp)
callq 0x10a0
jmp 0x156a
jmp 0x1557
movq $0x0, 0x40(%rsp)
movq 0x40(%rsp), %rax
addq $0x48, %rsp
retq
movq 0x10(%rsp), %rdi
callq 0x10f0
nopw %cs:(%rax,%rax)
// File: ivanzamanov[P]kmeans/src/extractor/extractor.cpp
// Function: save_article(article_match*, char const*, int)
void save_article(article_match* match, const char* data, int articleIndex) {
	int startPos = match->start;
	int endPos = match->end;
	int length = endPos - startPos;
	char* articleData = new char[length + 1];
	articleData[length] = 0;
	for (int i = 0; i < length; i++) {
		articleData[i] = data[startPos + i];
	}
	
	char* outputFile = new char[strlen(outputDir) + 100];
	int pathLength = sprintf(outputFile, "%s/article-%05d", outputDir, articleIndex);
	outputFile[pathLength] = 0;
	int fd = open(outputFile, O_CREAT | O_WRONLY, 0644);
	write(fd, articleData, length);
	close(fd);
	delete articleData;
	delete outputFile;
}

// Assembly:
subq $0x58, %rsp
movq %rdi, 0x50(%rsp)
movq %rsi, 0x48(%rsp)
movl %edx, 0x44(%rsp)
movq 0x50(%rsp), %rax
movl (%rax), %eax
movl %eax, 0x40(%rsp)
movq 0x50(%rsp), %rax
movl 0x4(%rax), %eax
movl %eax, 0x3c(%rsp)
movl 0x3c(%rsp), %eax
subl 0x40(%rsp), %eax
movl %eax, 0x38(%rsp)
movl 0x38(%rsp), %eax
addl $0x1, %eax
movslq %eax, %rdi
movq $-0x1, %rax
cmpq $0x0, %rdi
cmovlq %rax, %rdi
callq 0x1030
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rax
movslq 0x38(%rsp), %rcx
movb $0x0, (%rax,%rcx)
movl $0x0, 0x2c(%rsp)
movl 0x2c(%rsp), %eax
cmpl 0x38(%rsp), %eax
jge 0x1625
movq 0x48(%rsp), %rax
movl 0x40(%rsp), %ecx
addl 0x2c(%rsp), %ecx
movslq %ecx, %rcx
movb (%rax,%rcx), %dl
movq 0x30(%rsp), %rax
movslq 0x2c(%rsp), %rcx
movb %dl, (%rax,%rcx)
movl 0x2c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x2c(%rsp)
jmp 0x15ee
movq 0x2a7c(%rip), %rdi      # 0x40a8
callq 0x1070
movq %rax, %rdi
addq $0x64, %rdi
callq 0x1030
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rdi
movq 0x2a5a(%rip), %rdx      # 0x40a8
movl 0x44(%rsp), %ecx
leaq 0xa4a(%rip), %rsi       # 0x20a3
movb $0x0, %al
callq 0x1050
movl %eax, 0x1c(%rsp)
movq 0x20(%rsp), %rax
movslq 0x1c(%rsp), %rcx
movb $0x0, (%rax,%rcx)
movq 0x20(%rsp), %rdi
movl $0x41, %esi
movl $0x1a4, %edx            # imm = 0x1A4
movb $0x0, %al
callq 0x1090
movl %eax, 0x18(%rsp)
movl 0x18(%rsp), %edi
movq 0x30(%rsp), %rsi
movslq 0x38(%rsp), %rdx
callq 0x1060
movl 0x18(%rsp), %edi
callq 0x1100
movq 0x30(%rsp), %rax
movq %rax, 0x10(%rsp)
cmpq $0x0, %rax
je 0x16c2
movq 0x10(%rsp), %rdi
callq 0x10a0
movq 0x20(%rsp), %rax
movq %rax, 0x8(%rsp)
cmpq $0x0, %rax
je 0x16dc
movq 0x8(%rsp), %rdi
callq 0x10a0
addq $0x58, %rsp
retq
nopw %cs:(%rax,%rax)
nopl (%rax,%rax)
// File: ivanzamanov[P]kmeans/src/common/matcher.cpp
// Function: search(char const*, matcher const&)
int search(char const* string, const matcher& matcher) {
	unsigned int i = 0;
	unsigned int n = 0;
	while(*string != 0) {
		i++;
		int c = (int)*string;
		string++;
		if(c < matcher.min_char || c > matcher.max_char) {
			n = 0;
			continue;
		}
		n = matcher.table[n][c - matcher.min_char];
		if(n == matcher.n) {
			return i - n;
		}
	}
	return -1;
}

// Assembly:
movq %rdi, -0x10(%rsp)
movq %rsi, -0x18(%rsp)
movl $0x0, -0x1c(%rsp)
movl $0x0, -0x20(%rsp)
movq -0x10(%rsp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
je 0x1b47
movl -0x1c(%rsp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rsp)
movq -0x10(%rsp), %rax
movsbl (%rax), %eax
movl %eax, -0x24(%rsp)
movq -0x10(%rsp), %rax
addq $0x1, %rax
movq %rax, -0x10(%rsp)
movl -0x24(%rsp), %eax
movq -0x18(%rsp), %rcx
movsbl 0xc(%rcx), %ecx
cmpl %ecx, %eax
jl 0x1af2
movl -0x24(%rsp), %eax
movq -0x18(%rsp), %rcx
movsbl 0xd(%rcx), %ecx
cmpl %ecx, %eax
jle 0x1afc
movl $0x0, -0x20(%rsp)
jmp 0x1a9a
movq -0x18(%rsp), %rax
movq 0x10(%rax), %rax
movl -0x20(%rsp), %ecx
movq (%rax,%rcx,8), %rax
movl -0x24(%rsp), %ecx
movq -0x18(%rsp), %rdx
movsbl 0xc(%rdx), %edx
subl %edx, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0x20(%rsp)
movl -0x20(%rsp), %eax
movq -0x18(%rsp), %rcx
cmpl 0x8(%rcx), %eax
jne 0x1b42
movl -0x1c(%rsp), %eax
subl -0x20(%rsp), %eax
movl %eax, -0x4(%rsp)
jmp 0x1b4f
jmp 0x1a9a
movl $0xffffffff, -0x4(%rsp) # imm = 0xFFFFFFFF
movl -0x4(%rsp), %eax
retq
nopw %cs:(%rax,%rax)
nop
// File: akitsu-sanae[P]adtpp/src/adt.cpp
// Function: convert_to_dtor_name(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
std::string convert_to_dtor_name(std::string str) {
    // remove template parameter
    // ex) std::vector<double> ==> std::vector
    while (true) {
        int temp_count = 0;
        auto temp_start = std::string::npos;
        auto temp_end = std::string::npos;
        for (auto it=std::begin(str); it!=std::end(str); it++) {
            if (*it == '<') {
                if (temp_count == 0)
                    temp_start = it - std::begin(str);
                temp_count++;
            }
            if (*it == '>') {
                temp_count--;
                if (temp_count == 0)
                    temp_end = it - std::begin(str);
            }
        }
        if (temp_start == std::string::npos)
            break;
        if (temp_end == std::string::npos)
                break;
        str.erase(temp_start, temp_end);
    }

    // remove namespace
    // ex) std::vector ==> vector
    auto found = str.find_last_of(':');
    if (found != std::string::npos)
        str.erase(0, found+1);
    return str;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rsi, -0x70(%rbp)
movq %rdi, -0x68(%rbp)
movq %rdi, %rax
movq %rax, -0x60(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x70(%rbp), %rdi
movl $0x0, -0x14(%rbp)
movq $-0x1, -0x20(%rbp)
movq $-0x1, -0x28(%rbp)
callq 0x7480
movq %rax, -0x30(%rbp)
movq -0x70(%rbp), %rdi
callq 0x74b0
movq %rax, -0x38(%rbp)
leaq -0x30(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x74e0
testb $0x1, %al
jne 0x36c6
jmp 0x375a
leaq -0x30(%rbp), %rdi
callq 0x7520
movsbl (%rax), %eax
cmpl $0x3c, %eax
jne 0x3704
cmpl $0x0, -0x14(%rbp)
jne 0x36fb
movq -0x70(%rbp), %rdi
callq 0x7480
movq %rax, -0x40(%rbp)
leaq -0x30(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x7540
movq %rax, -0x20(%rbp)
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x7520
movsbl (%rax), %eax
cmpl $0x3e, %eax
jne 0x3744
movl -0x14(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x14(%rbp)
cmpl $0x0, -0x14(%rbp)
jne 0x3742
movq -0x70(%rbp), %rdi
callq 0x7480
movq %rax, -0x48(%rbp)
leaq -0x30(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x7540
movq %rax, -0x28(%rbp)
jmp 0x3744
jmp 0x3746
leaq -0x30(%rbp), %rdi
xorl %esi, %esi
callq 0x7580
movq %rax, -0x50(%rbp)
jmp 0x36a3
cmpq $-0x1, -0x20(%rbp)
jne 0x3763
jmp 0x3782
cmpq $-0x1, -0x28(%rbp)
jne 0x376c
jmp 0x3782
movq -0x70(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x28(%rbp), %rdx
callq 0x3070
jmp 0x367f
movq -0x70(%rbp), %rdi
movl $0x3a, %esi
movq $-0x1, %rdx
callq 0x33c0
movq %rax, -0x58(%rbp)
cmpq $-0x1, -0x58(%rbp)
je 0x37b7
movq -0x70(%rbp), %rdi
movq -0x58(%rbp), %rdx
addq $0x1, %rdx
xorl %eax, %eax
movl %eax, %esi
callq 0x3070
movq -0x70(%rbp), %rsi
movq -0x68(%rbp), %rdi
callq 0x3130
movq -0x60(%rbp), %rax
addq $0x70, %rsp
popq %rbp
retq
nop
// File: akitsu-sanae[P]adtpp/src/main.cpp
// Function: trim(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
void trim(std::string& input) {
    auto start = std::begin(input);
    while (std::isspace(*start))
        start++;
    auto last = std::end(input);
    while (std::isspace(*(last-1)))
        last--;
    input = std::string{start, last};
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
callq 0x7480
movq %rax, -0x10(%rbp)
leaq -0x10(%rbp), %rdi
callq 0x7520
movsbl (%rax), %edi
callq 0x3040
cmpl $0x0, %eax
je 0x8a63
leaq -0x10(%rbp), %rdi
xorl %esi, %esi
callq 0x7580
movq %rax, -0x18(%rbp)
jmp 0x8a3c
movq -0x8(%rbp), %rdi
callq 0x74b0
movq %rax, -0x20(%rbp)
leaq -0x20(%rbp), %rdi
movl $0x1, %esi
callq 0x9360
movq %rax, -0x28(%rbp)
leaq -0x28(%rbp), %rdi
callq 0x7520
movsbl (%rax), %edi
callq 0x3040
cmpl $0x0, %eax
je 0x8aa9
leaq -0x20(%rbp), %rdi
xorl %esi, %esi
callq 0x93a0
movq %rax, -0x30(%rbp)
jmp 0x8a70
movq -0x10(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x60(%rbp)
leaq -0x61(%rbp), %rdi
movq %rdi, -0x80(%rbp)
callq 0x3390
movq -0x80(%rbp), %rcx
movq -0x58(%rbp), %rsi
movq -0x60(%rbp), %rdx
leaq -0x50(%rbp), %rdi
callq 0x93e0
jmp 0x8add
movq -0x8(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x32c0
leaq -0x50(%rbp), %rdi
callq 0x3140
leaq -0x61(%rbp), %rdi
callq 0x3290
addq $0x80, %rsp
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
leaq -0x61(%rbp), %rdi
callq 0x3290
movq -0x70(%rbp), %rdi
callq 0x3380
nopw %cs:(%rax,%rax)