LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/klyushinmisha[P]GBEmu/./src/Memory.cpp
// Function: Memory::LoadCartridge(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void Memory::LoadCartridge(std::string path)
{
	std::fstream is;
    is.open(path, std::fstream::in);

    long int length = is.tellg();
    is.seekg(0, is.end);
    length = (long int)is.tellg() - length;
    is.seekg(0, is.beg);

    try
    {
        if (length % 0x8000 != 0)
            throw new std::exception();
        is.read((char*)RAM, 0x8000);
        
        if (length == 0x8000)
        {
            is.close();
            return;
        }

        cartridgeData = new byte*[length % 0x8000 - 1];

        // проверить??? 0x8000?
        for (int i = 0; i < length % 0x8000 - 1; i++)
        {
            cartridgeData[i] = new byte[0x8000];
            is.read((char*)cartridgeData[i], 0x8000);
        }
    }
    catch (std::exception e)
    {
        std::cout << "Incorrect format" << std::endl;
    }

    
    is.close();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x218, %rsp            # imm = 0x218
movq %rsi, %r14
movq %rdi, %rbx
leaq -0x230(%rbp), %r15
movq %r15, %rdi
callq 0x2230
movq %r15, %rdi
movq %r14, %rsi
movl $0x8, %edx
callq 0x2280
leaq -0x230(%rbp), %rdi
callq 0x22e0
movq %rax, %r14
leaq -0x230(%rbp), %rdi
xorl %esi, %esi
movl $0x2, %edx
callq 0x2270
leaq -0x230(%rbp), %rdi
callq 0x22e0
movq %rax, %r15
leaq -0x230(%rbp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x2270
subq %r14, %r15
movq %r15, %rax
shlq $0x31, %rax
jne 0x5504
movq 0x28(%rbx), %rsi
leaq -0x230(%rbp), %rdi
movl $0x8000, %edx           # imm = 0x8000
callq 0x2250
cmpq $0x8000, %r15           # imm = 0x8000
jne 0x54ce
leaq -0x230(%rbp), %rdi
callq 0x2070
jmp 0x54ea
movq $-0x1, %rdi
callq 0x2040
movq %rax, 0x20(%rbx)
leaq -0x230(%rbp), %rdi
callq 0x2070
leaq -0x230(%rbp), %rdi
callq 0x20a0
addq $0x218, %rsp            # imm = 0x218
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl $0x8, %edi
callq 0x2110
movq %rax, %r14
movl $0x8, %edi
callq 0x21f0
movq 0x4aae(%rip), %rcx      # 0x9fd0
addq $0x10, %rcx
movq %rcx, (%rax)
movq %rax, (%r14)
leaq 0x484d(%rip), %rsi      # 0x9d80
movq %r14, %rdi
xorl %edx, %edx
callq 0x22d0
movq %rdx, %r15
movq %rax, %rbx
movq %r14, %rdi
callq 0x2170
jmp 0x555f
jmp 0x55d8
jmp 0x55d8
jmp 0x55d8
movq %rdx, %r15
movq %rax, %rbx
cmpl $0x1, %r15d
jne 0x55db
movq %rbx, %rdi
callq 0x2240
movq 0x4a5c(%rip), %rax      # 0x9fd0
addq $0x10, %rax
movq %rax, -0x20(%rbp)
movq %rbx, %rdi
callq 0x20d0
movq 0x4a4d(%rip), %rdi      # 0x9fd8
leaq 0x1348(%rip), %rsi      # 0x68da
movl $0x10, %edx
callq 0x2220
movq 0x4a35(%rip), %rdi      # 0x9fd8
callq 0x2100
leaq -0x20(%rbp), %rdi
callq 0x2320
callq 0x22c0
jmp 0x54de
jmp 0x55d8
movq %rax, %rbx
leaq -0x20(%rbp), %rdi
callq 0x2320
callq 0x22c0
jmp 0x55db
movq %rax, %rdi
callq 0x594c
movq %rax, %rbx
leaq -0x230(%rbp), %rdi
callq 0x20a0
movq %rbx, %rdi
callq 0x22f0
nop
// File: /workspace/github_cpp_makefile_star2_O1/klyushinmisha[P]GBEmu/./src/Memory.cpp
// Function: Memory::Memory()
Memory::Memory()
{
    //Init all components
    this->gb = GameBoy::getInstance();
    this->RAM = gb->getRAM();
    RAMBank = 0;
    
    
    //Clear this item
    //because 0 means all keys down
    RAM[0xFF00] = 0xFF;

    //Switch to ROM bank on start
    //Copys data from boot.bin to ROM
    isBooting = true;
    std::fstream fs;
    try
    {
        fs.open("boot.bin", std::fstream::in);
        char* tmpR = new char[256];
        fs.read(tmpR, 256);
        ROM = (byte*)tmpR;
    }
    catch (std::exception e)
    {
        std::cout << "Can't find boot.gb" << std::endl;
    }
    
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x220, %rsp            # imm = 0x220
movq %rdi, %rbx
callq 0x2726
movq %rax, (%rbx)
movq 0x48(%rax), %rax
movq %rax, 0x28(%rbx)
movb $0x0, 0x1d(%rbx)
movb $-0x1, 0xff00(%rax)
movb $0x1, 0x1a(%rbx)
leaq -0x228(%rbp), %r14
movq %r14, %rdi
callq 0x2230
leaq 0x12b5(%rip), %rsi      # 0x68eb
movq %r14, %rdi
movl $0x8, %edx
callq 0x21d0
movl $0x100, %edi            # imm = 0x100
callq 0x2040
movq %rax, %r14
leaq -0x228(%rbp), %rdi
movl $0x100, %edx            # imm = 0x100
movq %rax, %rsi
callq 0x2250
movq %r14, 0x8(%rbx)
leaq -0x228(%rbp), %rdi
callq 0x20a0
addq $0x220, %rsp            # imm = 0x220
popq %rbx
popq %r14
popq %rbp
retq
jmp 0x5682
movq %rax, %rbx
cmpl $0x1, %edx
jne 0x56f3
movq %rbx, %rdi
callq 0x2240
movq 0x4937(%rip), %rax      # 0x9fd0
addq $0x10, %rax
movq %rax, -0x18(%rbp)
movq %rbx, %rdi
callq 0x20d0
movq 0x4928(%rip), %rdi      # 0x9fd8
leaq 0x123d(%rip), %rsi      # 0x68f4
movl $0x12, %edx
callq 0x2220
movq 0x4910(%rip), %rdi      # 0x9fd8
callq 0x2100
leaq -0x18(%rbp), %rdi
callq 0x2320
callq 0x22c0
jmp 0x5668
movq %rax, %rbx
jmp 0x56f3
movq %rax, %rbx
leaq -0x18(%rbp), %rdi
callq 0x2320
callq 0x22c0
leaq -0x228(%rbp), %rdi
callq 0x20a0
movq %rbx, %rdi
callq 0x22f0
movq %rax, %rdi
callq 0x594c
nop
// File: /workspace/github_cpp_makefile_star2_O1/klyushinmisha[P]GBEmu/./src/Memory.cpp
// Function: Memory::Read(int)
byte Memory::Read(int addr)
{
    gb->Sync();
    
    
    //Reads from ROM
    if (isBooting & (addr < 256))
    {
        return ROM[addr];
    }

    //Reads from external RAM
    if ((addr > 0x9FFF) & (addr < 0xBFFF) & (RAMBank != 0))
        return cartridgeData[RAMBank - 1][addr - 0x8000];

    //Reads from RAM
    int x = RAM[addr];
    
    if (addr >= 0xC192 && addr < 0xC200)
        x = x;
    
    return x;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl %esi, %r14d
movq %rdi, %rbx
movq (%rdi), %rdi
callq 0x2bb8
cmpl $0xff, %r14d
jg 0x573d
cmpb $0x0, 0x1a(%rbx)
je 0x573d
movslq %r14d, %rax
addq 0x8(%rbx), %rax
jmp 0x5778
leal -0xa000(%r14), %eax
cmpl $0x1fff, %eax           # imm = 0x1FFF
setae %cl
movzbl 0x1d(%rbx), %eax
testq %rax, %rax
sete %dl
orb %cl, %dl
jne 0x5771
movq 0x20(%rbx), %rcx
movq -0x8(%rcx,%rax,8), %rax
movl %r14d, %ecx
addq %rcx, %rax
addq $-0x8000, %rax          # imm = 0x8000
jmp 0x5778
movslq %r14d, %rax
addq 0x28(%rbx), %rax
movb (%rax), %al
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/klyushinmisha[P]GBEmu/./src/Memory.cpp
// Function: Memory::ReadWord(int)
ushort Memory::ReadWord(int addr)
{
    ushort temp;
    temp = Read(addr + 1);
    temp <<= 8;
    temp |= Read(addr);
    return temp;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
leal 0x1(%rbx), %esi
callq 0x5710
movzbl %al, %r15d
shll $0x8, %r15d
movq %r14, %rdi
movl %ebx, %esi
callq 0x5710
movzbl %al, %eax
orl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/klyushinmisha[P]GBEmu/./src/Memory.cpp
// Function: Memory::Write(int, unsigned char)
void Memory::Write(int addr, byte value)
{
    gb->Sync();

    if (addr < 0x8000)
        return;
    //    CheckMBC(addr, value);

    //Checks writing to special registers
    //which have unusual behaviour
    switch (addr)
    {
        case 0xFF00:
            //INPUT
            RAM[0xFF00] &= 0b11001111;
            RAM[0xFF00] |= (byte)(value & 0b110000);
            return;

        case 0xFF04:
            //DIV
            RAM[0xFF04] = 0;
            return;

        case 0xFF41:
            //STAT
            value &= 0b11111000;
            RAM[0xFF41] &= 7;
            RAM[0xFF41] |= value;
            return;

        case 0xFF44:
            //LYCounter
            RAM[0xFF44] = 0;
            return;

        case 0xFF46:
            gb->DMATransfer = true;
            break;
    }

    //This space copys value to C000-DE00
    if ((addr >= 0xE000) & (addr < 0xFE00))
    {
        RAM[addr] = value;
        addr -= 0x2000;
    }

    //Writing to external RAM
    if ((addr > 0x9FFF) & (addr < 0xBFFF) & (RAMBank != 0))
        cartridgeData[RAMBank - 1][addr - 0x8000] = value;
    else if (addr > 0x7FFF)
        RAM[addr] = value;

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebx
movl %esi, %r15d
movq %rdi, %r14
movq (%rdi), %rdi
callq 0x2bb8
cmpl $0x8000, %r15d          # imm = 0x8000
jge 0x57e8
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
cmpl $0xff40, %r15d          # imm = 0xFF40
jle 0x581d
cmpl $0xff41, %r15d          # imm = 0xFF41
je 0x5895
cmpl $0xff44, %r15d          # imm = 0xFF44
je 0x58b2
cmpl $0xff46, %r15d          # imm = 0xFF46
jne 0x5840
movq (%r14), %rax
movb $0x1, 0x58(%rax)
jmp 0x5840
cmpl $0xff00, %r15d          # imm = 0xFF00
je 0x58c2
cmpl $0xff04, %r15d          # imm = 0xFF04
jne 0x5840
movq 0x28(%r14), %rax
movb $0x0, 0xff04(%rax)
jmp 0x57dd
leal -0xe000(%r15), %eax
cmpl $0x1dff, %eax           # imm = 0x1DFF
ja 0x585f
movq 0x28(%r14), %rax
movl %r15d, %ecx
movb %bl, (%rax,%rcx)
addl $0xffffe000, %r15d      # imm = 0xFFFFE000
leal -0xa000(%r15), %eax
cmpl $0x1fff, %eax           # imm = 0x1FFF
setae %cl
movzbl 0x1d(%r14), %eax
testq %rax, %rax
sete %dl
orb %cl, %dl
jne 0x58df
movq 0x20(%r14), %rcx
movq -0x8(%rcx,%rax,8), %rax
movl %r15d, %ecx
movb %bl, -0x8000(%rax,%rcx)
jmp 0x57dd
andb $-0x8, %bl
movq 0x28(%r14), %rax
andb $0x7, 0xff41(%rax)
movq 0x28(%r14), %rax
orb %bl, 0xff41(%rax)
jmp 0x57dd
movq 0x28(%r14), %rax
movb $0x0, 0xff44(%rax)
jmp 0x57dd
movq 0x28(%r14), %rax
andb $-0x31, 0xff00(%rax)
andb $0x30, %bl
movq 0x28(%r14), %rax
orb %bl, 0xff00(%rax)
jmp 0x57dd
cmpl $0x8000, %r15d          # imm = 0x8000
jl 0x57dd
movq 0x28(%r14), %rax
movl %r15d, %ecx
movb %bl, (%rax,%rcx)
jmp 0x57dd
nop
// File: /workspace/github_cpp_makefile_star2_O1/klyushinmisha[P]GBEmu/./src/Timer.cpp
// Function: Timer::Inc()
void Timer::Inc()
{
    //Syncronization of DIV register
    systemCounter += 4;
    if (systemCounter == 0)
        //DIV
        RAM[0xFF04]++;
   
    //Checks timer (enabled or not)
    enabled = (RAM[0xFF07] & 4) == 4;

    //Sets timer frequency
    switch (RAM[0xFF07] & 3)
    {
        case 0:
            frequency = 1024;
            break;
        case 1:
            frequency = 16;
            break;
        case 2:
            frequency = 64;
            break;
        case 4:
            frequency = 256;
            break;
    }

    if (enabled) {
        //Syncronization of TIMA register
        internalCounter += 4;
        if (internalCounter == frequency) {
            //TIMA
            RAM[0xFF05]++;
            //Checks TIMA overflow
            if (RAM[0xFF05] == 0)
            {
                //copy TMA to TIMA
                RAM[0xFF05] = RAM[0xFF06];
                RAM[0xFF0F] |= 4;
            }
        }
        internalCounter = internalCounter % frequency;
    }

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
addb $0x4, (%rdi)
jne 0x5997
movq 0x8(%rdi), %rax
incb 0xff04(%rax)
movq 0x8(%rdi), %rax
movb 0xff07(%rax), %cl
shrb $0x2, %cl
movl %ecx, %edx
andb $0x1, %dl
movb %dl, 0x10(%rdi)
movzbl 0xff07(%rax), %edx
andl $0x3, %edx
leaq 0xf4b(%rip), %rsi       # 0x6908
movslq (%rsi,%rdx,4), %rdx
addq %rsi, %rdx
jmpq *%rdx
movl $0x400, %edx            # imm = 0x400
jmp 0x59d9
movl $0x10, %edx
jmp 0x59d9
movl $0x40, %edx
movl %edx, 0x14(%rdi)
testb $0x1, %cl
je 0x5a23
movl 0x4(%rdi), %ecx
addl $0x4, %ecx
movl %ecx, 0x4(%rdi)
cmpl 0x14(%rdi), %ecx
jne 0x5a19
incb 0xff05(%rax)
movq 0x8(%rdi), %rax
cmpb $0x0, 0xff05(%rax)
jne 0x5a19
movb 0xff06(%rax), %cl
movb %cl, 0xff05(%rax)
movq 0x8(%rdi), %rax
orb $0x4, 0xff0f(%rax)
movl 0x4(%rdi), %eax
cltd
idivl 0x14(%rdi)
movl %edx, 0x4(%rdi)
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_cpp_makefile_star2_O1/klyushinmisha[P]GBEmu/./src/Interrupts.cpp
// Function: Interrupts::Interrupts()
Interrupts::Interrupts()
{
    interruptCounter = 0;
    this->gb = GameBoy::getInstance();
    this->RAM = gb->getRAM();
    gb->Halt = false; gb->Stop = false;
    gb->IME = true;
    gb->DMATransfer = false;
    IE = RAM + 0xFFFF;
    IF = RAM + 0xFF0F;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x0, 0x10(%rdi)
callq 0x2726
movq %rax, (%rbx)
movq 0x48(%rax), %rcx
movq %rcx, 0x8(%rbx)
movl $0x100, 0x58(%rax)      # imm = 0x100
leaq 0xffff(%rcx), %rax
movq %rax, 0x18(%rbx)
addq $0xff0f, %rcx           # imm = 0xFF0F
movq %rcx, 0x20(%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/klyushinmisha[P]GBEmu/./src/Interrupts.cpp
// Function: Interrupts::Manager()
void Interrupts::Manager()
{
    if (gb->Stop)
        return;
    if ((*IE & *IF) != 0)
    {
        gb->Halt = false;
        if (gb->IME)
        {
            gb->IME = false;
            byte interrupts = (byte)(*IE & *IF);
            byte interrupt = 0;
            *IF &= (byte)(~interrupts);
            while (((interrupts >> interrupt) & 1) != 1)
                interrupt++;
            switch (interrupt)
            {
                case 0:
                    gb->Interrupt(0x40);
                    break;
                case 1:
                    gb->Interrupt(0x48);
                    break;
                case 2:
                    gb->Interrupt(0x50);
                    break;
                case 4:
                    gb->Interrupt(0x60);
                    break;
            }
        }
    }

    if (gb->Halt)
        gb->Sync();
    else
        gb->Clock();
}

// Assembly:
movq (%rdi), %rcx
cmpb $0x0, 0x5b(%rcx)
je 0x5a80
retq
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x18(%rdi), %rdx
movq 0x20(%rdi), %rax
movb (%rax), %sil
testb %sil, (%rdx)
je 0x5ae1
movb $0x0, 0x5a(%rcx)
cmpb $0x1, 0x59(%rcx)
jne 0x5ae1
movb $0x0, 0x59(%rcx)
movzbl (%rdx), %ecx
movzbl (%rax), %edx
andl %edx, %ecx
xorl %ecx, %edx
movb %dl, (%rax)
movb $-0x1, %dl
incb %dl
movzbl %dl, %eax
btl %eax, %ecx
jae 0x5ab5
cmpb $0x4, %dl
ja 0x5ae1
movl $0x17, %ecx
btl %eax, %ecx
jae 0x5ae1
leaq 0xe53(%rip), %rcx       # 0x6928
movzwl (%rcx,%rax,2), %esi
movq (%rbx), %rdi
callq 0x2c40
movq (%rbx), %rdi
cmpb $0x1, 0x5a(%rdi)
leaq 0x8(%rsp), %rsp
popq %rbx
popq %rbp
je 0x2bb8
jmp 0x2c4e
// File: /workspace/github_cpp_makefile_star2_O1/klyushinmisha[P]GBEmu/./src/Interrupts.cpp
// Function: Interrupts::EnterHALTMode()
bool Interrupts::EnterHALTMode() {
    gb->Halt = true;
    if (gb->IME && !(*IE & *IF)) {
        gb->Halt = false;
    }
    return gb->Halt;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq (%rdi), %rax
movb $0x1, 0x5a(%rax)
cmpb $0x1, 0x59(%rax)
jne 0x5d23
movq 0x18(%rdi), %rcx
movq 0x20(%rdi), %rdx
movb (%rdx), %dl
testb %dl, (%rcx)
jne 0x5d23
movb $0x0, 0x5a(%rax)
movb 0x5a(%rax), %al
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/klyushinmisha[P]GBEmu/./src/main.cpp
// Function: main
int main(int argc, char** argv)
{
	GameBoy* gb = GameBoy::getInstance();
	gb->LoadCartridge(argv[1]);
    gb->Run();
	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rsi, %r14
callq 0x2726
movq %rax, %rbx
movq 0x8(%r14), %rsi
leaq -0x38(%rbp), %r14
leaq -0x11(%rbp), %rdx
movq %r14, %rdi
callq 0x5db2
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2818
leaq -0x28(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5d7a
movq -0x28(%rbp), %rsi
incq %rsi
callq 0x2200
movq %rbx, %rdi
callq 0x2896
xorl %eax, %eax
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
leaq -0x28(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5da9
movq -0x28(%rbp), %rsi
incq %rsi
callq 0x2200
movq %rbx, %rdi
callq 0x22f0
nop
// File: /workspace/github_cpp_makefile_star2_O1/PrzemekWirkus[P]functional-workshop/src/utest.h
// Function: bool CHECK_EQUAL<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>(char const*, 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 CHECK_EQUAL(const char *str, T1 t1, T2 t2) {
    using namespace std;

    bool result = true;
    if (__NOT equal(begin(t1), end(t1), begin(t2))) {
        auto mypair = 
            mismatch(begin(t1), end(t1), begin(t2));
        cout << __FILE__ << ": Array mismatch: " << endl;
        for_each(begin(t1), end(t1), [] (typename T1::value_type i) { cout << i << " "; });
        cout << endl;
        for_each(begin(t2), end(t2), [] (typename T1::value_type i) { cout << i << " "; });
        cout << endl;
        result = false;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, %r15
movq %rsi, %r13
movq %rdi, %r14
movq 0x8(%rsi), %rdx
testq %rdx, %rdx
je 0x164d
movq (%r15), %rsi
movq (%r13), %rdi
callq 0x10b0
testl %eax, %eax
sete %bl
jmp 0x164f
movb $0x1, %bl
testb %bl, %bl
je 0x165f
leaq 0x9d0(%rip), %r15       # 0x202a
jmp 0x172c
movq 0x2972(%rip), %r12      # 0x3fd8
leaq 0x997(%rip), %rsi       # 0x2004
movl $0xb, %edx
movq %r12, %rdi
callq 0x10c0
leaq 0xa56(%rip), %rsi       # 0x20d7
movl $0x12, %edx
movq %r12, %rdi
callq 0x10c0
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x10a0
movsbl %al, %esi
movq %r12, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1050
movq (%r13), %rdi
movq 0x8(%r13), %rsi
addq %rdi, %rsi
callq 0x1860
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x10a0
movsbl %al, %esi
movq %r12, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1050
movq (%r15), %rdi
movq 0x8(%r15), %rsi
addq %rdi, %rsi
callq 0x18c8
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x10a0
movsbl %al, %esi
movq %r12, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1050
leaq 0x901(%rip), %r15       # 0x202d
testq %r14, %r14
je 0x174d
movq %r14, %rdi
callq 0x1040
movq 0x2898(%rip), %rdi      # 0x3fd8
movq %r14, %rsi
movq %rax, %rdx
callq 0x10c0
jmp 0x176b
movq 0x2884(%rip), %rax      # 0x3fd8
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
leaq (%rax,%rcx), %rdi
movl 0x20(%rax,%rcx), %esi
orl $0x1, %esi
callq 0x10e0
movq 0x2866(%rip), %r14      # 0x3fd8
leaq 0x8af(%rip), %rsi       # 0x2028
movl $0x1, %edx
movq %r14, %rdi
callq 0x10c0
movq %r15, %rdi
callq 0x1040
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x10c0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x10a0
movsbl %al, %esi
movq %r14, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1050
movl %ebx, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/eschwabe[P]interview-practice/src/libds_btree.cpp
// Function: BinaryTree::Insert(int const&)
void BinaryTree::Insert(const int& value) {
  if(!root_) {
    root_.reset(new Node());
    root_->value = value;
    return;
  }
  Node* current = root_.get();
  while(current != nullptr) {
    if(current->value >= value) {
      if(!current->left) {
        current->left.reset(new Node());
        current->left->value = value;
        break;
      }
      current = current->left.get();
    } else {
      if(!current->right) {
        current->right.reset(new Node());
        current->right->value = value;
        break;
      }
      current = current->right.get();
    }
  }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq (%rdi), %rcx
testq %rcx, %rcx
je 0x124f
movl (%rbx), %eax
movq %rcx, %r14
cmpl %eax, 0x10(%rcx)
jge 0x1241
movq 0x8(%r14), %rcx
testq %rcx, %rcx
jne 0x122e
jmp 0x124b
movq (%r14), %rcx
testq %rcx, %rcx
jne 0x122e
jmp 0x124f
addq $0x8, %r14
movl $0x18, %edi
callq 0x1070
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq $0x0, 0x10(%rax)
movq %r14, %rdi
movq %rax, %rsi
callq 0x18b2
movl (%rbx), %eax
movq (%r14), %rcx
movl %eax, 0x10(%rcx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/eschwabe[P]interview-practice/src/libds_btree.cpp
// Function: BinaryTree::Remove(int const&)
bool BinaryTree::Remove(const int& value) {
  Node* current = root_.get();
  if(current->value == value) {
    NodePtr right_tmp(std::move(current->right));
    root_ = std::move(current->left);
    InsertNode(right_tmp);
    return true;
  }
  while(current != nullptr) {
    if(current->value >= value) {
      if(current->left && current->left->value == value) {
        NodePtr right_tmp(std::move(current->left->right));
        current->left = std::move(current->left->left);
        InsertNode(right_tmp);
        return true;
      }
      current = current->left.get();
    } else {
      if(current->right && current->right->value == value) {
        NodePtr right_tmp(std::move(current->right->right));
        current->right = std::move(current->right->left);
        InsertNode(right_tmp);
        return true;
      }
      current = current->right.get();
    }
  }
  return false;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %rdi
movl (%rsi), %eax
cmpl %eax, 0x10(%rdi)
jne 0x1309
movq 0x8(%rdi), %rax
movq %rsp, %r14
movq %rax, (%r14)
movq (%rdi), %rsi
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq %rbx, %rdi
callq 0x18b2
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1282
movq %r14, %rdi
callq 0x1876
movb $0x1, %al
jmp 0x133a
testq %rdi, %rdi
je 0x1338
cmpl %eax, 0x10(%rdi)
jge 0x1323
movq 0x8(%rdi), %rcx
testq %rcx, %rcx
je 0x1330
cmpl %eax, 0x10(%rcx)
jne 0x1330
jmp 0x1360
movq (%rdi), %rcx
testq %rcx, %rcx
je 0x1330
cmpl %eax, 0x10(%rcx)
je 0x1342
movq %rcx, %rdi
testq %rcx, %rcx
jne 0x130e
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq (%rdi), %rax
movq 0x8(%rax), %rcx
movq %rsp, %r14
movq %rcx, (%r14)
xorl %ecx, %ecx
movq %rcx, 0x8(%rax)
movq (%rdi), %rax
movq (%rax), %rsi
movq %rcx, (%rax)
jmp 0x12ed
movq 0x8(%rcx), %rax
movq %rsp, %r14
movq %rax, (%r14)
xorl %eax, %eax
movq %rax, 0x8(%rcx)
movq 0x8(%rdi), %rcx
addq $0x8, %rdi
movq (%rcx), %rsi
movq %rax, (%rcx)
jmp 0x12ed
nop
// File: /workspace/github_cpp_makefile_star2_O1/eschwabe[P]interview-practice/src/libds_btree.cpp
// Function: BinaryTree::Find(int const&)
bool BinaryTree::Find(const int& value) {
  Node* current = root_.get();
  while(current != nullptr) {
    if(current->value == value) {
      return true;
    }
    else if(current->value >= value) {
      current = current->left.get();
    } else {
      current = current->right.get();
    }
  }
  return false;
}

// Assembly:
movq (%rdi), %rcx
testq %rcx, %rcx
setne %al
je 0x13ab
movl (%rsi), %edx
movl 0x10(%rcx), %esi
cmpl %edx, %esi
je 0x13ab
xorl %eax, %eax
cmpl %edx, %esi
setl %al
movq (%rcx,%rax,8), %rcx
testq %rcx, %rcx
setne %al
jne 0x1391
retq
// File: /workspace/github_cpp_makefile_star2_O1/eschwabe[P]interview-practice/src/libds_btree.cpp
// Function: BinaryTree::PrintPreOrder(BinaryTree::Node*, std::ostream&)
void BinaryTree::PrintPreOrder(Node* root, std::ostream& stream) {
  if(root) {
    PrintPreOrder(root->left.get(), stream);
    stream << root->value << " ";
    PrintPreOrder(root->right.get(), stream);
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
leaq 0xc11(%rip), %r12       # 0x200d
testq %r14, %r14
je 0x1431
movq (%r14), %rsi
movq %r15, %rdi
movq %rbx, %rdx
callq 0x13e4
movl 0x10(%r14), %esi
movq %rbx, %rdi
callq 0x10c0
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x1090
movq 0x8(%r14), %r14
jmp 0x13fc
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/kdungs[P]codecon/src/base_arithmetic.cc
// Function: main
int main() {
  auto line = std::string{};
  getline(std::cin, line);
  auto x = bestConversion(line);
  getline(std::cin, line);
  auto y = bestConversion(line);
  std::cout << x + y << '\n';
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x30, %rsp
leaq 0x20(%rsp), %r15
movq %r15, -0x10(%r15)
movq $0x0, -0x8(%r15)
movb $0x0, (%r15)
movq 0x2c6e(%rip), %rdi      # 0x3fe0
movq (%rdi), %rax
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x10a0
movsbl %al, %edx
movq 0x2c53(%rip), %r14      # 0x3fe0
leaq 0x10(%rsp), %rsi
movq %r14, %rdi
callq 0x1100
leaq 0x10(%rsp), %rdi
callq 0x12c9
movq %rax, %rbx
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x10a0
movsbl %al, %edx
movq 0x2c1b(%rip), %rdi      # 0x3fe0
leaq 0x10(%rsp), %rsi
callq 0x1100
leaq 0x10(%rsp), %rdi
callq 0x12c9
addq %rax, %rbx
movq 0x2bed(%rip), %rdi      # 0x3fd0
movq %rbx, %rsi
callq 0x1060
leaq 0xf(%rsp), %rsi
movb $0xa, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x10c0
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x1417
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x10b0
xorl %eax, %eax
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
retq
jmp 0x1427
jmp 0x1427
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x1441
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x10b0
movq %rbx, %rdi
callq 0x10f0
// File: /workspace/github_cpp_makefile_star2_O1/iZhangHui[P]CppPrimer/CH16_TemplatesAndGenericProgramming/examples/./Blob.h
// Function: std::ostream& operator<<<int>(std::ostream&, Blob<int>)
std::ostream& operator<<(std::ostream &os, const Blob<T> a)
{
	os << "< ";
	for (size_t i = 0; i < a.size(); ++i)
		os << a[i] << " ";
	os << " >";
	return os;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x2165(%rip), %rsi      # 0x5100
movl $0x2, %edx
callq 0x2140
movq (%r14), %rax
movq 0x8(%rax), %rcx
cmpq (%rax), %rcx
je 0x2ff6
xorl %r15d, %r15d
leaq 0x2146(%rip), %r12      # 0x5101
movq %r14, %rdi
movq %r15, %rsi
callq 0x3590
movl (%rax), %esi
movq %rbx, %rdi
callq 0x21c0
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x2140
incq %r15
movq (%r14), %rax
movq 0x8(%rax), %rcx
subq (%rax), %rcx
sarq $0x2, %rcx
cmpq %rcx, %r15
jb 0x2fbb
leaq 0x2106(%rip), %rsi      # 0x5103
movl $0x2, %edx
movq %rbx, %rdi
callq 0x2140
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/siolag161[P]louvain-original/main_community.cpp
// Function: parse_args(int, char**)
void
parse_args(int argc, char **argv) {
  if (argc<2)
    usage(argv[0], "Bad arguments number\n");

  for (int i = 1; i < argc; i++) {
    if(argv[i][0] == '-') {
      switch(argv[i][1]) {
      case 'w':
	type = WEIGHTED;
        filename_w = argv[i+1];
	i++;
	break;
      case 'p':
        filename_part = argv[i+1];
	i++;
	break;
      case 'q':
	precision = atof(argv[i+1]);
	i++;
	break;
      case 'l':
	display_level = atoi(argv[i+1]);
	i++;
	break;
      case 'k':
	k1 = atoi(argv[i+1]);
	i++;
	break;
      case 'v':
	verbose=true;
	break;
      default:
	usage(argv[0], "Unknown option\n");
      }
    } else {
      if (filename==NULL)
        filename = argv[i];
      else
        usage(argv[0], "More than one filename\n");
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
cmpl $0x2, %edi
jl 0x60c7
movl %edi, %ebp
movl $0x1, %r12d
movq 0x420c(%rip), %r15      # 0xa1e8
leaq 0x12c9(%rip), %r14      # 0x72ac
movslq %r12d, %rax
movq (%rbx,%rax,8), %rcx
cmpb $0x2d, (%rcx)
jne 0x601e
movzbl 0x1(%rcx), %ecx
addl $-0x6b, %ecx
cmpl $0xc, %ecx
ja 0x60b8
movslq (%r14,%rcx,4), %rcx
addq %r14, %rcx
jmpq *%rcx
leal 0x1(%rax), %r12d
movq 0x8(%rbx,%rax,8), %rdi
callq 0x22c0
movl %eax, 0x41b8(%rip)      # 0xa1d4
jmp 0x6031
testq %r15, %r15
jne 0x60a9
movq %rcx, 0x41ba(%rip)      # 0xa1e8
movq %rcx, %r15
incl %r12d
cmpl %ebp, %r12d
jl 0x5fe3
jmp 0x60a0
movb $0x1, 0x41c2(%rip)      # 0xa204
jmp 0x6031
leal 0x1(%rax), %r12d
movq 0x8(%rbx,%rax,8), %rdi
callq 0x22c0
movl %eax, 0x4178(%rip)      # 0xa1d0
jmp 0x6031
movl $0x0, 0x415c(%rip)      # 0xa1c0
leal 0x1(%rax), %r12d
movq 0x8(%rbx,%rax,8), %rax
movq %rax, 0x417c(%rip)      # 0xa1f0
jmp 0x6031
leal 0x1(%rax), %r12d
movq 0x8(%rbx,%rax,8), %rax
movq %rax, 0x4172(%rip)      # 0xa1f8
jmp 0x6031
leal 0x1(%rax), %r12d
movq 0x8(%rbx,%rax,8), %rdi
callq 0x2250
movsd %xmm0, 0x412a(%rip)     # 0xa1c8
jmp 0x6031
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq (%rbx), %rdi
leaq 0x153b(%rip), %rsi      # 0x75ee
callq 0x5e94
movq (%rbx), %rdi
leaq 0x151c(%rip), %rsi      # 0x75de
callq 0x5e94
movq (%rbx), %rdi
leaq 0x14f7(%rip), %rsi      # 0x75c8
callq 0x5e94
// File: /workspace/github_cpp_makefile_star2_O1/chlunde[P]qtar/./linux_getdents.h
// Function: us_dirent::stat()
struct stat& stat() {
		if (! st_initialized) {
			std::string name = fq();
			st_initialized = true;
			if (lstat(name.c_str(), &st) < 0)
				err(EXIT_FAILURE, "stat %s failed", name.c_str());
			if (d_ino == 0)
				d_ino = st.st_ino;
		}

		return st;
	}

// Assembly:
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
cmpb $0x0, 0xe0(%rdi)
jne 0x3426
leaq 0x8(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x3d9c
movb $0x1, 0xe0(%rbx)
movq (%r14), %rdi
leaq 0x50(%rbx), %rsi
callq 0x23f0
testl %eax, %eax
js 0x3435
cmpq $0x0, (%rbx)
jne 0x340b
movq 0x58(%rbx), %rax
movq %rax, (%rbx)
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3426
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2250
addq $0x50, %rbx
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r14
retq
movq 0x8(%rsp), %rdx
leaq 0x4c04(%rip), %rsi      # 0x8045
movl $0x1, %edi
xorl %eax, %eax
callq 0x2220
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x346b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2250
movq %rbx, %rdi
callq 0x2390
nop
// File: /workspace/github_cpp_makefile_star2_O1/chlunde[P]qtar/qtar.cc
// Function: CScan<us_dirent>::pop()
T pop() {
		typename std::set<T>::iterator it;
		T bound;
		bound.d_ino = last_position;

		it = elevator.lower_bound(bound);
		if (it == elevator.end()) {
			if (last_position == 0)
				throw new std::exception();//"pop on empty queue");
			last_position = 0;
			return pop();
		}

		T ret = *it;
		elevator.erase(it);
		last_position = ret.d_ino;
		return ret;
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movq %rsi, %r14
movq %rdi, %rbx
xorl %eax, %eax
leaq 0x18(%rsp), %rcx
movq %rax, -0x18(%rcx)
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x38(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq %rax, -0x8(%rbp)
movb %al, (%rbp)
movb %al, 0x10(%rbp)
movb %al, 0xa8(%rbp)
movq 0x30(%rsi), %rax
movq %rax, -0x38(%rbp)
movq 0x10(%rsi), %rdx
leaq 0x8(%rsi), %rcx
movq %rcx, %r15
testq %rdx, %rdx
je 0x34ec
movq %rcx, %r15
xorl %esi, %esi
cmpq %rax, 0x20(%rdx)
setb %sil
cmovaeq %rdx, %r15
movq 0x10(%rdx,%rsi,8), %rdx
testq %rdx, %rdx
jne 0x34d4
cmpq %rcx, %r15
je 0x3559
movq 0x20(%r15), %rax
movq %rax, (%rbx)
leaq 0x8(%rbx), %r12
leaq 0x18(%rbx), %r13
movq %r13, 0x8(%rbx)
movq 0x28(%r15), %rsi
movq 0x30(%r15), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0x3e7a
leaq 0x28(%rbx), %rdi
leaq 0x38(%rbx), %rax
movq %rax, 0x28(%rbx)
movq 0x48(%r15), %rsi
movq 0x50(%r15), %rdx
addq %rsi, %rdx
callq 0x3e7a
leaq 0x48(%rbx), %rdi
leaq 0x68(%r15), %rsi
movl $0x99, %edx
callq 0x2200
movq %r14, %rdi
movq %r15, %rsi
callq 0x40fe
movq (%rbx), %rax
movq %rax, 0x30(%r14)
jmp 0x3571
testq %rax, %rax
je 0x35b9
movq $0x0, 0x30(%r14)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3474
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x3588
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2250
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x35a4
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2250
movq %rbx, %rax
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x8, %edi
callq 0x2140
movq %rax, %r14
movl $0x8, %edi
callq 0x2240
movq 0x79f9(%rip), %rcx      # 0xafd0
addq $0x10, %rcx
movq %rcx, (%rax)
movq %rax, (%r14)
leaq 0x7798(%rip), %rsi      # 0xad80
movq %r14, %rdi
xorl %edx, %edx
callq 0x2370
movq %rax, %rbx
movq %r14, %rdi
callq 0x21c0
jmp 0x361c
movq %rax, %rbx
movq (%r12), %rdi
cmpq %r13, %rdi
je 0x361c
movq (%r13), %rsi
incq %rsi
callq 0x2250
jmp 0x361c
movq %rax, %rbx
movq %rsp, %rdi
callq 0x31ac
movq %rbx, %rdi
callq 0x2390
// File: /workspace/github_cpp_makefile_star2_O1/chlunde[P]qtar/qtar.cc
// Function: Traverser<CScan>::lookup_uname[abi:cxx11](unsigned int)
std::string lookup_uname(uid_t uid) {
		std::map<uid_t, std::string>::iterator it = uidcache.find(uid);
		if (it == uidcache.end()) {
			struct passwd *pwent = getpwuid(uid);
			std::string uname;
			if (pwent)
				uname = pwent->pw_name;

			uidcache.insert(std::pair<uid_t, std::string>(uid, uname));

			return uname;
		}

		return (*it).second;
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x30, %rsp
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
movq 0xa8(%rsi), %rdx
leaq 0xa0(%rsi), %rax
movq %rax, %rcx
testq %rdx, %rdx
je 0x5582
movq %rax, %rcx
xorl %esi, %esi
cmpl %ebp, 0x20(%rdx)
setb %sil
cmovaeq %rdx, %rcx
movq 0x10(%rdx,%rsi,8), %rdx
testq %rdx, %rdx
jne 0x556b
movq %rax, %rdx
cmpq %rax, %rcx
je 0x5594
cmpl %ebp, 0x20(%rcx)
cmovaq %rax, %rcx
movq %rcx, %rdx
leaq 0x10(%rbx), %r12
cmpq %rax, %rdx
je 0x55b8
movq %r12, (%rbx)
movq 0x28(%rdx), %rsi
movq 0x30(%rdx), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x3e7a
jmp 0x563b
movl %ebp, %edi
callq 0x22a0
movq %r12, (%rbx)
movq $0x0, 0x8(%rbx)
movb $0x0, 0x10(%rbx)
testq %rax, %rax
je 0x55f0
movq (%rax), %r15
movq %r15, %rdi
callq 0x2130
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
movq %r15, %rcx
movq %rax, %r8
callq 0x2330
leaq 0x10(%rsp), %rdi
movl %ebp, -0x8(%rdi)
leaq 0x20(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
callq 0x3e7a
addq $0x98, %r14
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x57d2
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x563b
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2250
movq %rbx, %rax
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x5669
movq %rax, %r14
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x566c
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2250
jmp 0x566c
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r12, %rdi
je 0x5680
movq (%r12), %rsi
incq %rsi
callq 0x2250
movq %r14, %rdi
callq 0x2390
// File: /workspace/github_cpp_makefile_star2_O1/chlunde[P]qtar/qtar.cc
// Function: Traverser<CScan>::lookup_gname[abi:cxx11](unsigned int)
std::string lookup_gname(gid_t gid) {
		std::map<gid_t, std::string>::iterator it = gidcache.find(gid);
		if (it == gidcache.end()) {
			struct group *grent = getgrgid(gid);
			std::string gname;
			if (grent)
				gname = grent->gr_name;

			gidcache.insert(std::pair<gid_t, std::string>(gid, gname));

			return gname;
		}

		return (*it).second;
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x30, %rsp
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
movq 0xd8(%rsi), %rdx
leaq 0xd0(%rsi), %rax
movq %rax, %rcx
testq %rdx, %rdx
je 0x56cc
movq %rax, %rcx
xorl %esi, %esi
cmpl %ebp, 0x20(%rdx)
setb %sil
cmovaeq %rdx, %rcx
movq 0x10(%rdx,%rsi,8), %rdx
testq %rdx, %rdx
jne 0x56b5
movq %rax, %rdx
cmpq %rax, %rcx
je 0x56de
cmpl %ebp, 0x20(%rcx)
cmovaq %rax, %rcx
movq %rcx, %rdx
leaq 0x10(%rbx), %r12
cmpq %rax, %rdx
je 0x5702
movq %r12, (%rbx)
movq 0x28(%rdx), %rsi
movq 0x30(%rdx), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x3e7a
jmp 0x5785
movl %ebp, %edi
callq 0x2360
movq %r12, (%rbx)
movq $0x0, 0x8(%rbx)
movb $0x0, 0x10(%rbx)
testq %rax, %rax
je 0x573a
movq (%rax), %r15
movq %r15, %rdi
callq 0x2130
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
movq %r15, %rcx
movq %rax, %r8
callq 0x2330
leaq 0x10(%rsp), %rdi
movl %ebp, -0x8(%rdi)
leaq 0x20(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
callq 0x3e7a
addq $0xc8, %r14
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x57d2
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x5785
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2250
movq %rbx, %rax
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x57b3
movq %rax, %r14
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x57b6
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2250
jmp 0x57b6
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r12, %rdi
je 0x57ca
movq (%r12), %rsi
incq %rsi
callq 0x2250
movq %r14, %rdi
callq 0x2390
// File: /workspace/github_cpp_makefile_star2_O1/chlunde[P]qtar/firstblock.cc
// Function: firstblock(char const*)
uint64_t firstblock(const char *fname)
{
	int ret, fd;
	struct fiemap *fiemap;
	struct fiemap_extent *extent;
	unsigned long block = 0;
	char buf[sizeof(struct fiemap) + sizeof(struct fiemap_extent)] = {0};

	fd = open(fname, O_RDONLY);
	if (fd == -1) {
		printf("Open failed: %s: %s\n", fname, strerror(errno));
		return 0;
	}

	if (use_fibmap) {
		ret = ioctl(fd, FIBMAP, &block);
		if (ret == 0) {
			close(fd);
			return block;
		}
		printf("FIBMAP failed: %s: %s\n", fname, strerror(errno));
		use_fibmap = 0;
	}

	fiemap = (struct fiemap *)buf;

	fiemap->fm_start = 0;
	fiemap->fm_length = 4096;
	fiemap->fm_flags = 0;
	fiemap->fm_extent_count = 1;

	ret = ioctl(fd, FS_IOC_FIEMAP, fiemap);
	if (ret == -1) {
		if (errno == EBADR) {
			printf("Kernel does not the flags: 0x%x\n",
				fiemap->fm_flags);
			close(fd);
			return -1;
		}
		printf("fiemap error %d: \"%s\"\n", errno,
			strerror(errno));
		close(fd);
		return 0;
	}


	close(fd);

	if (fiemap->fm_extent_count == 0 || fiemap->fm_mapped_extents == 0) {
#if 0
		printf("extent_count == 0: %s\n", fname);
#endif
		return 0;
	}
	extent = &fiemap->fm_extents[0];
	return extent->fe_physical >> 4;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x68, %rsp
movq %rdi, %r14
xorl %eax, %eax
movq %rax, 0x8(%rsp)
movq %rax, 0x60(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x50(%rsp)
movaps %xmm0, 0x40(%rsp)
movaps %xmm0, 0x30(%rsp)
movaps %xmm0, 0x20(%rsp)
movaps %xmm0, 0x10(%rsp)
xorl %esi, %esi
xorl %eax, %eax
callq 0x21d0
cmpl $-0x1, %eax
je 0x72e3
movl %eax, %ebx
cmpb $0x0, 0x3ff0(%rip)      # 0xb22c
jne 0x7280
leaq 0x8(%rsp), %rdx
movl $0x1, %esi
movl %ebx, %edi
xorl %eax, %eax
callq 0x22e0
testl %eax, %eax
je 0x7336
callq 0x2040
movl (%rax), %edi
callq 0x20f0
leaq 0xea9(%rip), %rdi       # 0x8115
movq %r14, %rsi
movq %rax, %rdx
xorl %eax, %eax
callq 0x2050
movb $0x1, 0x3fac(%rip)      # 0xb22c
leaq 0x10(%rsp), %rdx
movq $0x0, (%rdx)
movq $0x1000, 0x8(%rdx)      # imm = 0x1000
movl $0x0, 0x10(%rdx)
movl $0x1, 0x18(%rdx)
movl $0xc020660b, %esi       # imm = 0xC020660B
movl %ebx, %edi
xorl %eax, %eax
callq 0x22e0
cmpl $-0x1, %eax
je 0x7308
movl %ebx, %edi
callq 0x2410
xorl %r15d, %r15d
cmpl $0x0, 0x28(%rsp)
je 0x7368
cmpl $0x0, 0x24(%rsp)
je 0x7368
movq 0x38(%rsp), %r15
shrq $0x4, %r15
jmp 0x7368
callq 0x2040
movl (%rax), %edi
callq 0x20f0
leaq 0xe0a(%rip), %rdi       # 0x8100
xorl %r15d, %r15d
movq %r14, %rsi
movq %rax, %rdx
xorl %eax, %eax
callq 0x2050
jmp 0x7368
callq 0x2040
movl (%rax), %ebp
cmpl $0x35, %ebp
jne 0x7344
movl 0x20(%rsp), %esi
leaq 0xe0d(%rip), %rdi       # 0x812c
xorl %eax, %eax
callq 0x2050
movl %ebx, %edi
callq 0x2410
movq $-0x1, %r15
jmp 0x7368
movl %ebx, %edi
callq 0x2410
movq 0x8(%rsp), %r15
jmp 0x7368
movl %ebp, %edi
callq 0x20f0
leaq 0xdfb(%rip), %rdi       # 0x814d
xorl %r15d, %r15d
movl %ebp, %esi
movq %rax, %rdx
xorl %eax, %eax
callq 0x2050
movl %ebx, %edi
callq 0x2410
movq %r15, %rax
addq $0x68, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/j-faria[P]kima/examples/arbitrary_units/kima_setup.cpp
// Function: main
int main(int argc, char** argv)
{
    datafile = "HD128621_rhk.rdb";

    load(datafile, "arb", 2);

    Sampler<RVmodel> sampler = setup<RVmodel>(argc, argv);
    sampler.run(50);

    return 0;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x6c0, %rsp            # imm = 0x6C0
movq %rsi, %rbx
movl %edi, %ebp
movq 0x32621(%rip), %rdx     # 0x53548
leaq 0x32612(%rip), %r14     # 0x53540
leaq 0x2445c(%rip), %rcx     # 0x45391
movl $0x10, %r8d
movq %r14, %rdi
xorl %esi, %esi
callq 0x6600
leaq 0x8(%rsp), %rdx
movl $0x2, (%rdx)
leaq 0x2444b(%rip), %rsi     # 0x453a2
movq %r14, %rdi
callq 0x2114f
leaq 0x8(%rsp), %r14
movq %r14, %rdi
movl %ebp, %esi
movq %rbx, %rdx
callq 0x21252
movq %r14, %rdi
movl $0x32, %esi
callq 0x21324
leaq 0x8(%rsp), %rdi
callq 0x21502
xorl %eax, %eax
addq $0x6c0, %rsp            # imm = 0x6C0
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x21502
movq %rbx, %rdi
callq 0x6710
nop
// File: /workspace/github_cpp_makefile_star2_O1/kylegranger[P]ImageScaling/filter16.cpp
// Function: DownfilterX(color_t*, color_t*)
void DownfilterX(color_t *src, color_t *dst)
{
	// we mix four source pixels into one destination pixel
	// All on same scanline.
	dst->r = ((src[0].r + 3 * (src[1].r + src[2].r) + src[3].r + 4) >> 3);
	dst->g = ((src[0].g + 3 * (src[1].g + src[2].g) + src[3].g + 4) >> 3);
	dst->b = ((src[0].b + 3 * (src[1].b + src[2].b) + src[3].b + 4) >> 3);
	dst->a = ((src[0].a + 3 * (src[1].a + src[2].a) + src[3].a + 4) >> 3);
}

// Assembly:
movzwl 0x4(%rdi), %eax
movzwl 0xc(%rdi), %ecx
movzwl 0x14(%rdi), %edx
addl %ecx, %edx
leal (%rdx,%rdx,2), %ecx
movzwl 0x1c(%rdi), %edx
addl %eax, %edx
leal (%rdx,%rcx), %eax
addl $0x4, %eax
shrl $0x3, %eax
movw %ax, 0x4(%rsi)
movzwl 0x2(%rdi), %eax
movzwl 0xa(%rdi), %ecx
movzwl 0x12(%rdi), %edx
addl %ecx, %edx
leal (%rdx,%rdx,2), %ecx
movzwl 0x1a(%rdi), %edx
addl %eax, %edx
leal (%rdx,%rcx), %eax
addl $0x4, %eax
shrl $0x3, %eax
movw %ax, 0x2(%rsi)
movzwl (%rdi), %eax
movzwl 0x8(%rdi), %ecx
movzwl 0x10(%rdi), %edx
addl %ecx, %edx
leal (%rdx,%rdx,2), %ecx
movzwl 0x18(%rdi), %edx
addl %eax, %edx
leal (%rdx,%rcx), %eax
addl $0x4, %eax
shrl $0x3, %eax
movw %ax, (%rsi)
movzwl 0x6(%rdi), %eax
movzwl 0xe(%rdi), %ecx
movzwl 0x16(%rdi), %edx
addl %ecx, %edx
leal (%rdx,%rdx,2), %ecx
movzwl 0x1e(%rdi), %edx
addl %eax, %edx
leal (%rdx,%rcx), %eax
addl $0x4, %eax
shrl $0x3, %eax
movw %ax, 0x6(%rsi)
retq
// File: /workspace/github_cpp_makefile_star2_O1/kylegranger[P]ImageScaling/filter16.cpp
// Function: DownfilterXLeft(color_t*, color_t*)
void DownfilterXLeft(color_t *src, color_t *dst)
{
	// we mix three source pixels into one destination pixel
	// All on same scanline.
	dst->r = ((3 * (src[1].r + src[2].r) + src[3].r + 3) / 7);
	dst->g = ((3 * (src[1].g + src[2].g) + src[3].g + 3) / 7);
	dst->b = ((3 * (src[1].b + src[2].b) + src[3].b + 3) / 7);
	dst->a = ((3 * (src[1].a + src[2].a) + src[3].a + 3) / 7);
}

// Assembly:
movzwl 0xc(%rdi), %eax
movzwl 0x14(%rdi), %ecx
addl %eax, %ecx
leal (%rcx,%rcx,2), %eax
movzwl 0x1c(%rdi), %ecx
addl %ecx, %eax
addl $0x3, %eax
imulq $0x24924925, %rax, %rax # imm = 0x24924925
shrq $0x20, %rax
movw %ax, 0x4(%rsi)
movzwl 0xa(%rdi), %eax
movzwl 0x12(%rdi), %ecx
addl %eax, %ecx
leal (%rcx,%rcx,2), %eax
movzwl 0x1a(%rdi), %ecx
addl %ecx, %eax
addl $0x3, %eax
imulq $0x24924925, %rax, %rax # imm = 0x24924925
shrq $0x20, %rax
movw %ax, 0x2(%rsi)
movzwl 0x8(%rdi), %eax
movzwl 0x10(%rdi), %ecx
addl %eax, %ecx
leal (%rcx,%rcx,2), %eax
movzwl 0x18(%rdi), %ecx
addl %ecx, %eax
addl $0x3, %eax
imulq $0x24924925, %rax, %rax # imm = 0x24924925
shrq $0x20, %rax
movw %ax, (%rsi)
movzwl 0xe(%rdi), %eax
movzwl 0x16(%rdi), %ecx
addl %eax, %ecx
leal (%rcx,%rcx,2), %eax
movzwl 0x1e(%rdi), %ecx
addl %ecx, %eax
addl $0x3, %eax
imulq $0x24924925, %rax, %rax # imm = 0x24924925
shrq $0x20, %rax
movw %ax, 0x6(%rsi)
retq
// File: /workspace/github_cpp_makefile_star2_O1/kylegranger[P]ImageScaling/filter16.cpp
// Function: DownfilterXRight(color_t*, color_t*)
void DownfilterXRight(color_t *src, color_t *dst)
{
	// we mix three source pixels into one destination pixel
	// All on same scanline.
	dst->r = ((src[0].r + 3 * (src[1].r + src[2].r) + 3) / 7);
	dst->g = ((src[0].g + 3 * (src[1].g + src[2].g) + 3) / 7);
	dst->b = ((src[0].b + 3 * (src[1].b + src[2].b) + 3) / 7);
	dst->a = ((src[0].a + 3 * (src[1].a + src[2].a) + 3) / 7);
}

// Assembly:
movzwl 0x4(%rdi), %eax
movzwl 0xc(%rdi), %ecx
movzwl 0x14(%rdi), %edx
addl %ecx, %edx
leal (%rdx,%rdx,2), %ecx
addl %ecx, %eax
addl $0x3, %eax
imulq $0x24924925, %rax, %rax # imm = 0x24924925
shrq $0x20, %rax
movw %ax, 0x4(%rsi)
movzwl 0x2(%rdi), %eax
movzwl 0xa(%rdi), %ecx
movzwl 0x12(%rdi), %edx
addl %ecx, %edx
leal (%rdx,%rdx,2), %ecx
addl %ecx, %eax
addl $0x3, %eax
imulq $0x24924925, %rax, %rax # imm = 0x24924925
shrq $0x20, %rax
movw %ax, 0x2(%rsi)
movzwl (%rdi), %eax
movzwl 0x8(%rdi), %ecx
movzwl 0x10(%rdi), %edx
addl %ecx, %edx
leal (%rdx,%rdx,2), %ecx
addl %ecx, %eax
addl $0x3, %eax
imulq $0x24924925, %rax, %rax # imm = 0x24924925
shrq $0x20, %rax
movw %ax, (%rsi)
movzwl 0x6(%rdi), %eax
movzwl 0xe(%rdi), %ecx
movzwl 0x16(%rdi), %edx
addl %ecx, %edx
leal (%rdx,%rdx,2), %ecx
addl %ecx, %eax
addl $0x3, %eax
imulq $0x24924925, %rax, %rax # imm = 0x24924925
shrq $0x20, %rax
movw %ax, 0x6(%rsi)
retq
// File: /workspace/github_cpp_makefile_star2_O1/kylegranger[P]ImageScaling/filter16.cpp
// Function: DownfilterY(color_t*, color_t*, color_t*, color_t*, color_t*)
void DownfilterY(color_t *src1, color_t *src2, color_t *src3, color_t *src4, color_t *dst)
{
	// we mix four source pixels into one destination pixel
	// All within same column.
	dst->r = ((src1->r + 3 * (src2->r + src3->r) + src4->r + 4) >> 3);
	dst->g = ((src1->g + 3 * (src2->g + src3->g) + src4->g + 4) >> 3);
	dst->b = ((src1->b + 3 * (src2->b + src3->b) + src4->b + 4) >> 3);
	dst->a = ((src1->a + 3 * (src2->a + src3->a) + src4->a + 4) >> 3);
}

// Assembly:
movzwl 0x4(%rdi), %eax
movzwl 0x4(%rsi), %r9d
movzwl 0x4(%rdx), %r10d
addl %r9d, %r10d
leal (%r10,%r10,2), %r9d
movzwl 0x4(%rcx), %r10d
addl %eax, %r10d
leal (%r10,%r9), %eax
addl $0x4, %eax
shrl $0x3, %eax
movw %ax, 0x4(%r8)
movzwl 0x2(%rdi), %eax
movzwl 0x2(%rsi), %r9d
movzwl 0x2(%rdx), %r10d
addl %r9d, %r10d
leal (%r10,%r10,2), %r9d
movzwl 0x2(%rcx), %r10d
addl %eax, %r10d
leal (%r10,%r9), %eax
addl $0x4, %eax
shrl $0x3, %eax
movw %ax, 0x2(%r8)
movzwl (%rdi), %eax
movzwl (%rsi), %r9d
movzwl (%rdx), %r10d
addl %r9d, %r10d
leal (%r10,%r10,2), %r9d
movzwl (%rcx), %r10d
addl %eax, %r10d
leal (%r10,%r9), %eax
addl $0x4, %eax
shrl $0x3, %eax
movw %ax, (%r8)
movzwl 0x6(%rdi), %eax
movzwl 0x6(%rsi), %esi
movzwl 0x6(%rdx), %edx
addl %esi, %edx
leal (%rdx,%rdx,2), %edx
movzwl 0x6(%rcx), %ecx
addl %eax, %ecx
leal (%rcx,%rdx), %eax
addl $0x4, %eax
shrl $0x3, %eax
movw %ax, 0x6(%r8)
retq
// File: /workspace/github_cpp_makefile_star2_O1/kylegranger[P]ImageScaling/filter16.cpp
// Function: DownfilterY(color_t*, color_t*, color_t*, color_t*)
void DownfilterY(color_t *src2, color_t *src3, color_t *src4, color_t *dst)
{
	// we mix four source pixels into one destination pixel
	// All within same column.
	dst->r = ((3 * (src2->r + src3->r) + src4->r + 3) / 7);
	dst->g = ((3 * (src2->g + src3->g) + src4->g + 3) / 7);
	dst->b = ((3 * (src2->b + src3->b) + src4->b + 3) / 7);
	dst->a = ((3 * (src2->a + src3->a) + src4->a + 3) / 7);
}

// Assembly:
movzwl 0x4(%rdi), %eax
movzwl 0x4(%rsi), %r8d
addl %eax, %r8d
leal (%r8,%r8,2), %eax
movzwl 0x4(%rdx), %r8d
addl %r8d, %eax
addl $0x3, %eax
imulq $0x24924925, %rax, %rax # imm = 0x24924925
shrq $0x20, %rax
movw %ax, 0x4(%rcx)
movzwl 0x2(%rdi), %eax
movzwl 0x2(%rsi), %r8d
addl %eax, %r8d
leal (%r8,%r8,2), %eax
movzwl 0x2(%rdx), %r8d
addl %r8d, %eax
addl $0x3, %eax
imulq $0x24924925, %rax, %rax # imm = 0x24924925
shrq $0x20, %rax
movw %ax, 0x2(%rcx)
movzwl (%rdi), %eax
movzwl (%rsi), %r8d
addl %eax, %r8d
leal (%r8,%r8,2), %eax
movzwl (%rdx), %r8d
addl %r8d, %eax
addl $0x3, %eax
imulq $0x24924925, %rax, %rax # imm = 0x24924925
shrq $0x20, %rax
movw %ax, (%rcx)
movzwl 0x6(%rdi), %eax
movzwl 0x6(%rsi), %esi
addl %eax, %esi
leal (%rsi,%rsi,2), %eax
movzwl 0x6(%rdx), %edx
addl %edx, %eax
addl $0x3, %eax
imulq $0x24924925, %rax, %rax # imm = 0x24924925
shrq $0x20, %rax
movw %ax, 0x6(%rcx)
retq