LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/Jacobious52[P]Tanks/TextureTools.cpp
// Function: TextureTools::_init_map[abi:cxx11]()
std::map<std::string, std::string> TextureTools::_init_map()
{
    std::map<std::string, std::string> map;
    // add a hard coded test value
    map["debug"] = "___________\n***DEBUG***\n-----------";
    return map;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0x8(%rdi), %rax
movl $0x0, 0x8(%rdi)
xorl %ecx, %ecx
movq %rcx, 0x10(%rdi)
movq %rax, 0x18(%rdi)
movq %rax, 0x20(%rdi)
movq %rcx, 0x28(%rdi)
leaq -0x28(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0x429f(%rip), %rsi      # 0xc363
leaq 0x429d(%rip), %rdx      # 0xc368
leaq -0x38(%rbp), %rdi
callq 0x5744
leaq -0x38(%rbp), %rsi
movq %rbx, %rdi
callq 0x852c
movq 0x8(%rax), %rdx
leaq 0x414e(%rip), %rcx      # 0xc239
movl $0x23, %r8d
movq %rax, %rdi
xorl %esi, %esi
callq 0x3390
movq -0x38(%rbp), %rdi
cmpq %r15, %rdi
je 0x8109
callq 0x3240
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0x812d
movq %rax, %r14
movq -0x38(%rbp), %rdi
cmpq %r15, %rdi
je 0x812d
callq 0x3240
movq 0x10(%rbx), %rsi
movq %rbx, %rdi
callq 0x864a
movq %r14, %rdi
callq 0x3440
movq %rax, %rdi
callq 0x3ad6
nop
// File: /workspace/github_cpp_makefile_star2_O1/Jacobious52[P]Tanks/TextureTools.cpp
// Function: TextureTools::get_texture(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
std::string TextureTools::get_texture(std::string key)
{
    if (_texture_map.find(key) != _texture_map.end())
    {
        return _texture_map[key];
    }
    else
    {
        return "$NO KEY";
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x8dc2(%rip), %rdi      # 0x11280
callq 0x8a80
leaq 0x8dbe(%rip), %rcx      # 0x11288
cmpq %rcx, %rax
je 0x84f9
leaq 0x8daa(%rip), %rdi      # 0x11280
movq %r14, %rsi
callq 0x852c
leaq 0x10(%rbx), %rcx
movq %rcx, (%rbx)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x3b70
jmp 0x8516
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x3d58(%rip), %rsi      # 0xc25f
leaq 0x3d58(%rip), %rdx      # 0xc266
movq %rbx, %rdi
callq 0x5744
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/Jacobious52[P]Tanks/Timer.cpp
// Function: Timer::start()
bool Timer::tick()
{
    // GET OUT OF THERE!!
    if (_force_break == true)
        return false;

    // tick if not reached count or override on
    if (get_tick_count() < get_ticks() || get_tick_overide() == true)
    {
        _wait();
        return true;
    }
    return false;
}

// Assembly:
cmpb $0x0, 0x19(%rdi)
jne 0x8bac
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl 0x14(%rbx), %eax
cmpl 0x10(%rbx), %eax
jl 0x8b85
cmpb $0x1, 0x18(%rbx)
jne 0x8ba6
movq %rbx, %rdi
callq 0x8b2a
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x8ba0
movl 0x14(%rbx), %edx
movq (%rdi), %rax
movq %rbx, %rsi
callq *(%rax)
cmpb $0x1, 0x19(%rbx)
jne 0x8b77
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/Jacobious52[P]Tanks/Timer.cpp
// Function: Timer::_wait()
void Timer::_wait()
{
    const std::clock_t start_time = std::clock();
    while ((static_cast<double>((clock() - start_time))/CLOCKS_PER_SEC) < get_delay())
    {
        // wait
    }
    ++_tick_counter;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
callq 0x3170
movq %rax, %r14
callq 0x3170
subq %r14, %rax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
divsd 0x3714(%rip), %xmm0     # 0xc268
movsd 0x8(%rbx), %xmm1
ucomisd %xmm0, %xmm1
ja 0x8b3c
incl 0x14(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/Jacobious52[P]Tanks/Bullet.cpp
// Function: Bullet::_init()
void Bullet::_init()
{
    _fcolor = ConsoleTools::yellow;
    // set inital velocity
    _velocity = Point<float>(_power*cosf(_angle), -_power*std::abs(sinf(_angle)));
    _launched = false;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movl $0x21, 0x58(%rdi)
movss 0x68(%rdi), %xmm0
movss 0x6c(%rdi), %xmm1
movss %xmm1, -0xc(%rbp)
callq 0x31c0
mulss -0xc(%rbp), %xmm0
movss %xmm0, -0xc(%rbp)
movss 0x6c(%rbx), %xmm0
xorps 0x35af(%rip), %xmm0     # 0xc200
movaps %xmm0, -0x20(%rbp)
movss 0x68(%rbx), %xmm0
callq 0x3200
andps 0x343a(%rip), %xmm0     # 0xc0a0
mulss -0x20(%rbp), %xmm0
movss -0xc(%rbp), %xmm1
movss %xmm1, 0x60(%rbx)
movss %xmm0, 0x64(%rbx)
movb $0x0, 0x70(%rbx)
addq $0x18, %rsp
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/Jacobious52[P]Tanks/Bullet.cpp
// Function: Bullet::fire()
void Bullet::fire()
{
    _init();
    _launched = true;
    _position = _start_pos;
    ConsoleTools::play_music("fire.wav");
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rdi, %rbx
movl $0x21, 0x58(%rdi)
movss 0x68(%rdi), %xmm0
movss 0x6c(%rdi), %xmm1
movss %xmm1, -0x14(%rbp)
callq 0x31c0
mulss -0x14(%rbp), %xmm0
movss %xmm0, -0x14(%rbp)
movss 0x6c(%rbx), %xmm0
xorps 0x353b(%rip), %xmm0     # 0xc200
movaps %xmm0, -0x30(%rbp)
movss 0x68(%rbx), %xmm0
callq 0x3200
andps 0x33c6(%rip), %xmm0     # 0xc0a0
mulss -0x30(%rbp), %xmm0
movss -0x14(%rbp), %xmm1
movss %xmm1, 0x60(%rbx)
movss %xmm0, 0x64(%rbx)
movb $0x1, 0x70(%rbx)
movq 0x74(%rbx), %rax
movq %rax, 0x18(%rbx)
leaq -0x40(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x358f(%rip), %rsi      # 0xc298
leaq 0x3590(%rip), %rdx      # 0xc2a0
leaq -0x50(%rbp), %rbx
movq %rbx, %rdi
callq 0x5744
movq %rbx, %rdi
callq 0x39ae
movq -0x50(%rbp), %rdi
cmpq %r14, %rdi
je 0x8d32
callq 0x3240
addq $0x40, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
movq -0x50(%rbp), %rdi
cmpq %r14, %rdi
je 0x8d4c
callq 0x3240
movq %rbx, %rdi
callq 0x3440
// File: /workspace/github_cpp_makefile_star2_O1/Jacobious52[P]Tanks/View.cpp
// Function: View::update(int)
void View::update(int t)
{
    LOOPV(i, this)
    {
        get_child(i)->update(t);
        // remove child if requested by child
        if (get_child(i)->should_remove_from_parent() == true)
        {
            delete get_children()->remove(i);
            --i;
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq 0x10(%rdi), %rax
cmpq $0x0, 0x8(%rax)
je 0x99f4
movl %esi, %ebx
movq %rdi, %r14
xorl %r15d, %r15d
movq (%rax), %rax
movq (%rax,%r15,8), %rdi
movq (%rdi), %rax
movl %ebx, %esi
callq *0x10(%rax)
movq 0x10(%r14), %rax
movq (%rax), %rcx
movq (%rcx,%r15,8), %rcx
cmpb $0x1, 0x30(%rcx)
jne 0x99e7
movq 0x8(%rax), %rcx
cmpq %r15, %rcx
jbe 0x99d7
movq (%rax), %rdx
movq (%rdx,%r15,8), %rdi
movq %r15, %rdx
movq (%rax), %rsi
movq 0x8(%rsi,%rdx,8), %r8
movq %r8, (%rsi,%rdx,8)
leaq 0x1(%rdx), %rsi
movq %rsi, %rdx
cmpq %rsi, %rcx
jne 0x99b6
decq %rcx
movq %rcx, 0x8(%rax)
jmp 0x99d9
xorl %edi, %edi
testq %rdi, %rdi
je 0x99e4
movq (%rdi), %rax
callq *0x8(%rax)
decq %r15
incq %r15
movq 0x10(%r14), %rax
cmpq 0x8(%rax), %r15
jb 0x9983
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/Jacobious52[P]Tanks/Tank.cpp
// Function: Tank::_init()
void Tank::_init()
{
    // add a name above the tank
    Sprite *name_plate = new Sprite(_name);
    name_plate->set_position(Point<int>(-name_plate->get_size().x/4, -2));
    name_plate->set_fcolor(_fcolor);
    name_plate->set_bcolor(ConsoleTools::white);
    add_child(name_plate);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %r14
movl $0x60, %edi
callq 0x3270
movq %rax, %rbx
leaq -0x28(%rbp), %r15
movq %r15, -0x10(%r15)
movq 0x60(%r14), %rsi
movq 0x68(%r14), %rdx
addq %rsi, %rdx
leaq -0x38(%rbp), %rdi
callq 0x3b70
leaq -0x38(%rbp), %rsi
movq %rbx, %rdi
callq 0x4ee6
movq -0x38(%rbp), %rdi
cmpq %r15, %rdi
je 0x9b73
callq 0x3240
movq %rbx, %rdi
callq 0x9a56
leal 0x3(%rax), %ecx
testl %eax, %eax
cmovnsl %eax, %ecx
sarl $0x2, %ecx
negl %ecx
movabsq $-0x200000000, %rsi     # imm = 0xFFFFFFFE00000000
orq %rcx, %rsi
movq %rbx, %rdi
callq 0x9a4c
movl 0x58(%r14), %esi
movq %rbx, %rdi
callq 0x68ea
movq %rbx, %rdi
movl $0x25, %esi
callq 0x68fe
movq %r14, %rdi
movq %rbx, %rsi
callq 0x98f2
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq -0x38(%rbp), %rdi
cmpq %r15, %rdi
je 0x9be2
callq 0x3240
jmp 0x9be2
movq %rax, %r14
movq %rbx, %rdi
callq 0x3240
movq %r14, %rdi
callq 0x3440
// File: /workspace/github_cpp_makefile_star2_O1/Jacobious52[P]Tanks/DebugView.cpp
// Function: DebugView::draw()
void DebugView::draw()
{
    // don't draw if not in debug mode
    if (show == false)
    {
        return;
    }

    ConsoleTools::set_bcolor(ConsoleTools::magneta);
    int i = 0;
    for (map_iter it = _deb_map.begin(); it != _deb_map.end(); ++it)
    {
        ConsoleTools::set_cursor(_position.x, _position.y + i++);
        printf("%s\t:\t%0.3f\n", it->first.c_str(), it->second);
    }
    ConsoleTools::end_color();

    View::draw();
}

// Assembly:
cmpb $0x0, 0x31(%rdi)
je 0x9d57
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x23, %edi
callq 0x3868
movq 0x50(%rbx), %r14
leaq 0x40(%rbx), %r12
cmpq %r12, %r14
je 0x9d3c
xorl %esi, %esi
leaq 0x2636(%rip), %r15      # 0xc339
movl 0x18(%rbx), %edi
leal 0x1(%rsi), %r13d
addl 0x1c(%rbx), %esi
callq 0x38fc
movq 0x20(%r14), %rsi
xorps %xmm0, %xmm0
cvtss2sd 0x40(%r14), %xmm0
movq %r15, %rdi
movb $0x1, %al
callq 0x3060
movq %r14, %rdi
callq 0x3190
movq %rax, %r14
movl %r13d, %esi
cmpq %r12, %rax
jne 0x9d03
callq 0x3898
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x9a0a
retq
// File: /workspace/github_cpp_makefile_star2_O1/Jacobious52[P]Tanks/Game.cpp
// Function: signal_handler(int)
void signal_handler(int signum)
{
    ConsoleTools::stop_music();
    ConsoleTools::end_color();
    ConsoleTools::clear_screen();
    std::exit(0);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
callq 0x3992
callq 0x3898
callq 0x38d6
xorl %edi, %edi
callq 0x32f0
// File: /workspace/github_cpp_makefile_star2_O1/Jacobious52[P]Tanks/Game.cpp
// Function: Game::~Game()
~Game()
    {
        // cleanup
        current_view = 0;

        if (intro_view != 0)
        {
            delete intro_view;
        }

        if (game_view != 0)
        {
            delete game_view;
        }

        if (end_view != 0)
        {
            delete end_view;
        }

        ConsoleTools::end_color();
        ConsoleTools::clear_screen();

        ConsoleTools::stop_music();
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x637c(%rip), %rax      # 0x10d88
movq %rax, (%rdi)
movq $0x0, 0x8(%rdi)
movq 0x10(%rdi), %rdi
testq %rdi, %rdi
je 0xaa26
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x18(%rbx), %rdi
testq %rdi, %rdi
je 0xaa35
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x20(%rbx), %rdi
testq %rdi, %rdi
je 0xaa44
movq (%rdi), %rax
callq *0x8(%rax)
callq 0x3898
callq 0x38d6
callq 0x3992
movq $0x0, 0x28(%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
movq $0x0, 0x28(%rbx)
movq %rax, %rdi
callq 0x3440
// File: /workspace/github_cpp_makefile_star2_O1/tbonelaforge[P]gradebook/Main.cpp
// Function: saveGrades(Gradebook&)
void saveGrades(Gradebook &gradebook) {
    ofstream saveFile;
    saveFile.open("Grades.dat");
    gradebook.serialize(saveFile);
    
    transLog << "Saved to Grades.dat" << endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x200, %rsp            # imm = 0x200
movq %rdi, %rbx
leaq -0x210(%rbp), %r14
movq %r14, %rdi
callq 0x22e0
leaq 0x6ad5(%rip), %rsi      # 0x9068
movq %r14, %rdi
movl $0x10, %edx
callq 0x2050
leaq -0x210(%rbp), %rsi
movq %rbx, %rdi
callq 0x5876
leaq 0xac32(%rip), %rbx      # 0xd1e8
leaq 0x6aa2(%rip), %rsi      # 0x905f
movl $0x13, %edx
movq %rbx, %rdi
callq 0x2210
movq 0xac17(%rip), %rax      # 0xd1e8
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x21b0
movsbl %al, %esi
leaq 0xabfc(%rip), %rdi      # 0xd1e8
callq 0x2040
movq %rax, %rdi
callq 0x2130
movq 0xa9c0(%rip), %rax      # 0xcfc0
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq -0x208(%rbp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, -0x210(%rbp,%rcx)
callq 0x2170
leaq -0x118(%rbp), %rdi
callq 0x2090
addq $0x200, %rsp            # imm = 0x200
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
leaq -0x210(%rbp), %rdi
callq 0x2378
movq %rbx, %rdi
callq 0x2310
// File: /workspace/github_cpp_makefile_star2_O1/tbonelaforge[P]gradebook/Main.cpp
// Function: handleQuit(int&, Gradebook&)
void handleQuit(int &state, Gradebook &gradebook) {
    //program hangs if no semester (student) data and no prior Grades.dat
    if (state == 0) {
        transLog << "Quit" << endl;
        return;
    }
    
    cout << "Saving grades and exiting..." << endl;
    saveGrades(gradebook);
    state = 2;
    
    transLog << "Quit" << endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
cmpl $0x0, (%rdi)
je 0x2d95
movq %rsi, %r14
movq %rdi, %rbx
movq 0xa27c(%rip), %r15      # 0xcfc8
leaq 0x64cf(%rip), %rsi      # 0x9222
movl $0x1c, %edx
movq %r15, %rdi
callq 0x2210
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x21b0
movsbl %al, %esi
movq %r15, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2130
movq %r14, %rdi
callq 0x256c
movl $0x2, (%rbx)
leaq 0xa44c(%rip), %rbx      # 0xd1e8
leaq 0x647a(%rip), %rsi      # 0x921d
movl $0x4, %edx
movq %rbx, %rdi
callq 0x2210
movq 0xa431(%rip), %rax      # 0xd1e8
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21b0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x2130
// File: /workspace/github_cpp_makefile_star2_O1/tbonelaforge[P]gradebook/Main.cpp
// Function: handleOutputGrades(Gradebook&, bool)
void handleOutputGrades(Gradebook &gradebook, bool idMode) {
    ofstream outfile;
    outfile.open("Grades.out");
    GradebookPrinter::printGradebook(gradebook, cout, idMode);
    cout << "\nOutputing the complete gradebook to Grades.out..." << endl;
    GradebookPrinter::printGradebook(gradebook, outfile, idMode);
    cout << endl;
    
    transLog << "Output grades to Grades.out" << endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x208, %rsp            # imm = 0x208
movl %esi, %r14d
movq %rdi, %rbx
leaq -0x218(%rbp), %r15
movq %r15, %rdi
callq 0x22e0
leaq 0x63a3(%rip), %rsi      # 0x92aa
movq %r15, %rdi
movl $0x10, %edx
callq 0x2050
movzbl %r14b, %r14d
movq 0xa0a9(%rip), %rsi      # 0xcfc8
movq %rbx, %rdi
movl %r14d, %edx
callq 0x64d4
movq 0xa097(%rip), %r15      # 0xcfc8
leaq 0x632e(%rip), %rsi      # 0x9266
movl $0x32, %edx
movq %r15, %rdi
callq 0x2210
movq (%r15), %rax
addq -0x18(%rax), %r15
movq %r15, %rdi
movl $0xa, %esi
callq 0x21b0
movsbl %al, %esi
movq 0xa065(%rip), %r15      # 0xcfc8
movq %r15, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2130
leaq -0x218(%rbp), %rsi
movq %rbx, %rdi
movl %r14d, %edx
callq 0x64d4
movq (%r15), %rax
addq -0x18(%rax), %r15
movq %r15, %rdi
movl $0xa, %esi
callq 0x21b0
movsbl %al, %esi
movq 0xa025(%rip), %rdi      # 0xcfc8
callq 0x2040
movq %rax, %rdi
callq 0x2130
leaq 0xa231(%rip), %rbx      # 0xd1e8
leaq 0x62db(%rip), %rsi      # 0x9299
movl $0x1b, %edx
movq %rbx, %rdi
callq 0x2210
movq 0xa216(%rip), %rax      # 0xd1e8
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x21b0
movsbl %al, %esi
leaq 0xa1fb(%rip), %rdi      # 0xd1e8
callq 0x2040
movq %rax, %rdi
callq 0x2130
movq 0x9fbf(%rip), %rax      # 0xcfc0
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq -0x210(%rbp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, -0x218(%rbp,%rcx)
callq 0x2170
leaq -0x120(%rbp), %rdi
callq 0x2090
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x218(%rbp), %rdi
callq 0x2378
movq %rbx, %rdi
callq 0x2310
// File: /workspace/github_cpp_makefile_star2_O1/tbonelaforge[P]gradebook/Main.cpp
// Function: handleCalculateGrades(Gradebook&, bool)
void handleCalculateGrades(Gradebook &gradebook, bool idMode) {
    cout << "Calculating the final grades for every student..." << endl;
    Student * student = gradebook.getHead();
    while (student != NULL) {
        student->calculateFinalAverage(
                                       gradebook.getProgramsWeight(),
                                       gradebook.getTestsWeight(),
                                       gradebook.getFinalExamWeight()
                                       );
        saveGrades(gradebook);
        student = student->next;
    }
    transLog << "Final grades calculated" << endl;
    
    handleOutputGrades(gradebook, idMode);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %r14d
movq %rdi, %rbx
movq 0x8e14(%rip), %r15      # 0xcfc8
leaq 0x543e(%rip), %rsi      # 0x95f9
movl $0x31, %edx
movq %r15, %rdi
callq 0x2210
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x21b0
movsbl %al, %esi
movq %r15, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2130
movq %rbx, %rdi
callq 0x5862
testq %rax, %rax
je 0x423d
movq %rax, %r15
movq %rbx, %rdi
callq 0x5eec
movl %eax, %r12d
movq %rbx, %rdi
callq 0x5ef6
movl %eax, %r13d
movq %rbx, %rdi
callq 0x5f00
movq %r15, %rdi
movl %r12d, %esi
movl %r13d, %edx
movl %eax, %ecx
callq 0x64c6
movq %rbx, %rdi
callq 0x256c
movq (%r15), %r15
testq %r15, %r15
jne 0x41ff
leaq 0x8fa4(%rip), %r15      # 0xd1e8
leaq 0x53e0(%rip), %rsi      # 0x962b
movl $0x17, %edx
movq %r15, %rdi
callq 0x2210
movq 0x8f89(%rip), %rax      # 0xd1e8
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x21b0
movsbl %al, %esi
movq %r15, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2130
movzbl %r14b, %esi
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2edb
// File: /workspace/github_cpp_makefile_star2_O1/tbonelaforge[P]gradebook/Gradebook.cpp
// Function: Gradebook::makeEmpty()
void Gradebook::makeEmpty() {
    numPrograms = -1;
    programRecorded = NULL;
    numTests = -1;
    testRecorded = NULL;
    numFinals = -1;
    finalExamRecorded = false;
    programsWeight = -1;
    testsWeight = -1;
    finalExamWeight = -1;
    deleteStudents();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %eax, (%rdi)
xorl %ecx, %ecx
movq %rcx, 0x8(%rdi)
movl %eax, 0x10(%rdi)
movq %rcx, 0x18(%rdi)
movl %eax, 0x20(%rdi)
movb $0x0, 0x24(%rdi)
movq $-0x1, 0x28(%rdi)
movl %eax, 0x30(%rdi)
popq %rbp
jmp 0x51c4
// File: /workspace/github_cpp_makefile_star2_O1/tbonelaforge[P]gradebook/Gradebook.cpp
// Function: Gradebook::deleteStudents()
void Gradebook::deleteStudents() {
    while (head != NULL) {
        Student * next = head->next;
        delete head;
        head = next;
    }
    while (index != NULL) {
        Node * next = index->next;
        delete index;
        index = next;
    }
    numStudents = 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x38(%rdi), %r14
testq %r14, %r14
je 0x51fe
movq (%r14), %r15
movq %r14, %rdi
callq 0x6214
movl $0x78, %esi
movq %r14, %rdi
callq 0x21d0
movq %r15, 0x38(%rbx)
movq %r15, %r14
testq %r15, %r15
jne 0x51da
movq 0x40(%rbx), %rdi
testq %rdi, %rdi
je 0x5221
movq 0x8(%rdi), %r14
movl $0x10, %esi
callq 0x21d0
movq %r14, 0x40(%rbx)
movq %r14, %rdi
testq %r14, %r14
jne 0x5207
movl $0x0, 0x48(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/tbonelaforge[P]gradebook/Gradebook.cpp
// Function: Gradebook::initialize(int, int, int, int, int, int)
void Gradebook::initialize(int p, int t, int f, int pw, int tw, int fw) {
    makeEmpty();
    numPrograms = p;
    programRecorded = new bool[numPrograms];
    for (int i = 0; i < numPrograms; i++) {
        programRecorded[i] = false;
    }
    numTests = t;
    testRecorded = new bool[numTests];
    for (int i = 0; i < numTests; i++) {
        testRecorded[i] = false;
    }
    numFinals = f;
    finalExamRecorded = false;
    programsWeight = pw;
    testsWeight = tw;
    if (numFinals > 0) {
        finalExamWeight = fw;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r9d, -0x30(%rbp)
movl %r8d, -0x2c(%rbp)
movl %ecx, %r15d
movl %edx, %r13d
movl %esi, %r14d
movq %rdi, %rbx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %eax, (%rdi)
xorl %ecx, %ecx
movq %rcx, 0x8(%rdi)
movl %eax, 0x10(%rdi)
movq %rcx, 0x18(%rdi)
movl %eax, 0x20(%rdi)
movb $0x0, 0x24(%rdi)
movq $-0x1, 0x28(%rdi)
movl %eax, 0x30(%rdi)
callq 0x51c4
movl %r14d, (%rbx)
movslq %r14d, %r12
movq %r12, %rdi
callq 0x2030
movq %rax, 0x8(%rbx)
testl %r12d, %r12d
jle 0x52a5
movl %r14d, %edx
movq %rax, %rdi
xorl %esi, %esi
callq 0x2100
movl %r13d, 0x10(%rbx)
movslq %r13d, %r14
movq %r14, %rdi
callq 0x2030
movq %rax, 0x18(%rbx)
testl %r14d, %r14d
jle 0x52ca
movl %r13d, %edx
movq %rax, %rdi
xorl %esi, %esi
callq 0x2100
movl %r15d, 0x20(%rbx)
movb $0x0, 0x24(%rbx)
movl -0x2c(%rbp), %eax
movl %eax, 0x28(%rbx)
movl -0x30(%rbp), %eax
movl %eax, 0x2c(%rbx)
testl %r15d, %r15d
jle 0x52e9
movl 0x10(%rbp), %eax
movl %eax, 0x30(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/tbonelaforge[P]gradebook/Gradebook.cpp
// Function: Gradebook::addToIndex(Student*)
void Gradebook::addToIndex(Student * newStudent) {
    Node * current = index;
    Node * previous = NULL;
    while (current != NULL) {
        if (current->student->getLastName() > newStudent->getLastName()) {
            break;
        }
        previous = current;
        current = current->next;
    }
    Node * newNode = new Node();
    newNode->student = newStudent;
    newNode->next = NULL;
    if (previous != NULL) {
        previous->next = newNode;
    } else {
        index = newNode;
    }
    newNode->next = current;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rsi, -0x30(%rbp)
movq %rdi, -0x58(%rbp)
movq 0x40(%rdi), %r13
xorl %r15d, %r15d
testq %r13, %r13
je 0x564b
movq %r13, %rbx
movq (%r13), %rsi
leaq -0x50(%rbp), %rdi
callq 0x62d4
leaq -0x78(%rbp), %rdi
movq -0x30(%rbp), %rsi
callq 0x62d4
movq -0x48(%rbp), %r12
movq -0x70(%rbp), %r14
cmpq %r12, %r14
movq %r12, %rdx
cmovbq %r14, %rdx
testq %rdx, %rdx
je 0x55d9
movq -0x78(%rbp), %rsi
movq -0x50(%rbp), %rdi
callq 0x20c0
movl %eax, %r13d
jmp 0x55dc
xorl %r13d, %r13d
testl %r13d, %r13d
jne 0x5605
subq %r14, %r12
cmpq $-0x7fffffff, %r12      # imm = 0x80000001
movq $-0x80000000, %rax      # imm = 0x80000000
cmovlq %rax, %r12
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
cmpq %rax, %r12
cmovgeq %rax, %r12
movl %r12d, %r13d
movq -0x78(%rbp), %rdi
leaq -0x68(%rbp), %rax
cmpq %rax, %rdi
je 0x561e
movq -0x68(%rbp), %rsi
incq %rsi
callq 0x21d0
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x5637
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x21d0
testl %r13d, %r13d
jg 0x5648
movq 0x8(%rbx), %r13
movq %rbx, %r15
jmp 0x558a
movq %rbx, %r13
movq -0x58(%rbp), %rbx
addq $0x40, %rbx
movl $0x10, %edi
callq 0x21c0
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movq -0x30(%rbp), %rcx
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
leaq 0x8(%r15), %rcx
testq %r15, %r15
cmoveq %rbx, %rcx
movq %rax, (%rcx)
movq %r13, 0x8(%rax)
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x56af
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x21d0
movq %rbx, %rdi
callq 0x2310
nop
// File: /workspace/github_cpp_makefile_star2_O1/tbonelaforge[P]gradebook/Gradebook.cpp
// Function: Gradebook::findStudentById(int)
Student * Gradebook::findStudentById(int id) {
    Student * current = head;
    while (current != NULL) {
        if (current->getId() == id) {
            return current;
        }
        current = current->next;
    }
    return NULL;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl %esi, %r14d
movq %rdi, %rbx
addq $0x38, %rbx
movq (%rbx), %rbx
testq %rbx, %rbx
je 0x56e0
movq %rbx, %rdi
callq 0x629c
cmpl %r14d, %eax
jne 0x56c9
jmp 0x56e2
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/tbonelaforge[P]gradebook/Gradebook.cpp
// Function: Gradebook::printStudents(std::ostream&) const
void Gradebook::printStudents(std::ostream& out) const {
    Student * current = head;
    while (current != NULL) {
        out << "Student " << current->getId() << ": " << current->getFirstName() << " " << current->getLastName() << endl;
        current = current->next;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq 0x38(%rdi), %r14
testq %r14, %r14
je 0x5805
movq %rsi, %rbx
leaq 0x3c15(%rip), %r15      # 0x9327
leaq -0x48(%rbp), %r12
movl $0x8, %edx
movq %rbx, %rdi
leaq 0x436f(%rip), %rsi      # 0x9a94
callq 0x2210
movq %r14, %rdi
callq 0x629c
movq %rbx, %rdi
movl %eax, %esi
callq 0x2300
movq %rax, %r13
movl $0x2, %edx
movq %rax, %rdi
leaq 0x39a0(%rip), %rsi      # 0x90ee
callq 0x2210
leaq -0x68(%rbp), %rdi
movq %r14, %rsi
callq 0x62a6
movq -0x68(%rbp), %rsi
movq -0x60(%rbp), %rdx
movq %r13, %rdi
callq 0x2210
movq %rax, %r13
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x2210
movq %r12, %rdi
movq %r14, %rsi
callq 0x62d4
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq %r13, %rdi
callq 0x2210
movq %rax, %r13
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x21b0
movsbl %al, %esi
movq %r13, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2130
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x57e0
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x21d0
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x57f9
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x21d0
movq (%r14), %r14
testq %r14, %r14
jne 0x5716
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x5816
movq %rax, %rbx
jmp 0x5837
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x5837
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x21d0
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x5850
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x21d0
movq %rbx, %rdi
callq 0x2310
// File: /workspace/github_cpp_makefile_star2_O1/tbonelaforge[P]gradebook/Student.cpp
// Function: Student::Student(int, int, int)
Student::Student(int np, int nt, int nf) {
    numPrograms = np;
    numTests = nt;
    numFinals = nf;
    programGrades = new int[numPrograms];
    for (int i = 0; i < numPrograms; i++) {
        programGrades[i] = -1;
    }
    testGrades = new int[numTests];
    for (int i = 0; i < numTests; i++) {
        testGrades[i] = -1;
    } 
    finalExamGrade = -1;
    finalAverage = -1.0;
    next = NULL;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %r14d
movq %rdi, %rbx
leaq 0x20(%rdi), %r15
movq %r15, 0x10(%rdi)
xorl %eax, %eax
movq %rax, 0x18(%rdi)
movb %al, 0x20(%rdi)
leaq 0x40(%rdi), %rdx
movq %rdx, 0x30(%rdi)
movq %rax, 0x38(%rdi)
movb %al, 0x40(%rdi)
movl %esi, 0x50(%rdi)
movl %r14d, 0x54(%rdi)
movl %ecx, 0x58(%rdi)
movslq %esi, %rax
leaq (,%rax,4), %rcx
testl %eax, %eax
movq $-0x1, %rdi
cmovnsq %rcx, %rdi
callq 0x2030
movq %rax, 0x60(%rbx)
movslq 0x50(%rbx), %rdx
testq %rdx, %rdx
jle 0x619d
shlq $0x2, %rdx
movq %rax, %rdi
movl $0xff, %esi
callq 0x2100
movslq %r14d, %rax
shlq $0x2, %rax
testl %r14d, %r14d
movq $-0x1, %rdi
cmovnsq %rax, %rdi
callq 0x2030
movq %rax, 0x68(%rbx)
movslq 0x54(%rbx), %rdx
testq %rdx, %rdx
jle 0x61d5
shlq $0x2, %rdx
movq %rax, %rdi
movl $0xff, %esi
callq 0x2100
movabsq $-0x407fffff00000001, %rax # imm = 0xBF800000FFFFFFFF
movq %rax, 0x70(%rbx)
movq $0x0, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq 0x10(%rbx), %rdi
cmpq %r15, %rdi
je 0x620c
movq (%r15), %rsi
incq %rsi
callq 0x21d0
movq %r14, %rdi
callq 0x2310
// File: /workspace/github_cpp_makefile_star2_O1/tbonelaforge[P]gradebook/Student.cpp
// Function: Student::serialize(std::ostream&)
void Student::serialize(ostream& out) {
    out << id << " ";
    out << firstName << " ";
    out << lastName << " ";
    for (int i = 0; i < numPrograms; i++) {
        out << programGrades[i] << " ";
    }
    for (int i = 0; i < numTests; i++) {
        out << testGrades[i] << " ";
    }
    for (int i = 0; i < numFinals; i++) {
        out << finalExamGrade << " ";
    }
    out << finalAverage;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movl 0x8(%rdi), %esi
movq %rbx, %rdi
callq 0x2300
leaq 0x2f78(%rip), %r15      # 0x9327
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x2210
movq 0x10(%r14), %rsi
movq 0x18(%r14), %rdx
movq %rbx, %rdi
callq 0x2210
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x2210
movq 0x30(%r14), %rsi
movq 0x38(%r14), %rdx
movq %rbx, %rdi
callq 0x2210
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x2210
cmpl $0x0, 0x50(%r14)
jle 0x643c
xorl %r12d, %r12d
leaq 0x2f17(%rip), %r15      # 0x9327
movq 0x60(%r14), %rax
movl (%rax,%r12,4), %esi
movq %rbx, %rdi
callq 0x2300
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x2210
incq %r12
movslq 0x50(%r14), %rax
cmpq %rax, %r12
jl 0x6410
cmpl $0x0, 0x54(%r14)
jle 0x6479
xorl %r12d, %r12d
leaq 0x2eda(%rip), %r15      # 0x9327
movq 0x68(%r14), %rax
movl (%rax,%r12,4), %esi
movq %rbx, %rdi
callq 0x2300
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x2210
incq %r12
movslq 0x54(%r14), %rax
cmpq %rax, %r12
jl 0x644d
cmpl $0x0, 0x58(%r14)
jle 0x64af
xorl %r12d, %r12d
leaq 0x2e9d(%rip), %r15      # 0x9327
movl 0x70(%r14), %esi
movq %rbx, %rdi
callq 0x2300
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x2210
incl %r12d
cmpl 0x58(%r14), %r12d
jl 0x648a
cvtss2sd 0x74(%r14), %xmm0
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x22b0
nop
// File: /workspace/github_cpp_makefile_star2_O1/tbonelaforge[P]gradebook/GradebookPrinter.cpp
// Function: GradebookPrinter::print(std::ostream&)
void GradebookPrinter::print(ostream& out) {
    fillHeaders();
    fillStudentData();
    for (int i = 0; i < numRows; i++) {
        for (int j = 0; j < numColumns; j++) {
            out << centerString(cellContents[i][j], columnWidths[j]);
            if (j < numColumns - 1) {
                out << '|';
            }
        }
        out << endl;
        if (i < numRows - 1) {
            printRowSeparator(out);
            out << endl;
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %rbx
movq %rdi, %r14
callq 0x68cc
movq %r14, %rdi
callq 0x6f6a
cmpl $0x0, 0x8(%r14)
jle 0x66a2
movq $0x0, -0x30(%rbp)
cmpl $0x0, 0xc(%r14)
jle 0x6624
movl $0x8, %r13d
xorl %r15d, %r15d
movq 0x10(%r14), %rax
movq -0x30(%rbp), %rcx
movq (%rax,%rcx,8), %rax
leaq -0x60(%rbp), %rcx
movq %rcx, -0x70(%rbp)
movq -0x8(%rax,%r13), %rsi
movq (%rax,%r13), %rdx
addq %rsi, %rdx
leaq -0x70(%rbp), %r12
movq %r12, %rdi
callq 0x508c
movq 0x18(%r14), %rax
movl (%rax,%r15,4), %edx
leaq -0x50(%rbp), %rdi
movq %r12, %rsi
callq 0x6ff2
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
movq %rbx, %rdi
callq 0x2210
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x65d6
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x21d0
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x65ef
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x21d0
movslq 0xc(%r14), %rax
decq %rax
cmpq %rax, %r15
jge 0x6610
movb $0x7c, -0x50(%rbp)
movl $0x1, %edx
movq %rbx, %rdi
leaq -0x50(%rbp), %rsi
callq 0x2210
incq %r15
movslq 0xc(%r14), %rax
addq $0x20, %r13
cmpq %rax, %r15
jl 0x656d
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21b0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2130
movslq 0x8(%r14), %rax
decq %rax
cmpq %rax, -0x30(%rbp)
jge 0x668a
movq %r14, %rdi
movq %rbx, %rsi
callq 0x71d8
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21b0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2130
movq -0x30(%rbp), %rdx
incq %rdx
movslq 0x8(%r14), %rax
movq %rdx, -0x30(%rbp)
cmpq %rax, %rdx
jl 0x6559
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x66d2
movq %rax, %rbx
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x66d2
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x21d0
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x66eb
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x21d0
movq %rbx, %rdi
callq 0x2310
nop
// File: /workspace/github_cpp_makefile_star2_O1/tbonelaforge[P]gradebook/GradebookPrinter.cpp
// Function: GradebookPrinter::GradebookPrinter(Gradebook&, bool)
GradebookPrinter::GradebookPrinter(Gradebook& gradebook, bool idMode) : gradebook(gradebook), idMode(idMode) {
    numRows = gradebook.getNumStudents() + 1; // Extra row for table header
    numColumns = gradebook.getNumPrograms() + gradebook.getNumTests() + gradebook.getNumFinals() + 3;
    cellContents = new string*[numRows];
    for (int i = 0; i < numRows; i++) {
        cellContents[i] = new string[numColumns];
    }
    columnWidths = new int[numColumns];
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, (%rdi)
movb %dl, 0x20(%rdi)
movq %rsi, %rdi
callq 0x5858
incl %eax
movl %eax, 0x8(%rbx)
movq %r14, %rdi
callq 0x52f8
movl %eax, %r15d
movq %r14, %rdi
callq 0x5300
movl %eax, %r12d
addl %r15d, %r12d
movq %r14, %rdi
callq 0x530a
movl %r12d, %ecx
addl %eax, %ecx
movl %ecx, -0x2c(%rbp)
leal (%rax,%r12), %r14d
addl $0x3, %r14d
movl %r14d, 0xc(%rbx)
movslq 0x8(%rbx), %r12
leaq (,%r12,8), %rdi
testq %r12, %r12
movq $-0x1, %rax
cmovsq %rax, %rdi
callq 0x2030
movq %rax, 0x10(%rbx)
movslq %r14d, %r14
testq %r12, %r12
jle 0x67e4
movq %r14, %rax
shlq $0x5, %rax
movq %rax, -0x38(%rbp)
leaq 0x8(%rax), %r15
cmpl $-0x3, -0x2c(%rbp)
movq $-0x1, %rax
cmovlq %rax, %r15
xorl %r13d, %r13d
movq %r15, %rdi
callq 0x2030
movq %r14, (%rax)
testl %r14d, %r14d
je 0x67d0
leaq 0x18(%rax), %rcx
movq -0x38(%rbp), %rdx
movq %rcx, -0x10(%rcx)
movq $0x0, -0x8(%rcx)
movb $0x0, (%rcx)
addq $0x20, %rcx
addq $-0x20, %rdx
jne 0x67b7
addq $0x8, %rax
movq 0x10(%rbx), %rcx
movq %rax, (%rcx,%r13,8)
incq %r13
cmpq %r12, %r13
jne 0x679f
shlq $0x2, %r14
cmpl $-0x3, -0x2c(%rbp)
movq $-0x1, %rax
cmovlq %rax, %r14
movq %r14, %rdi
callq 0x2030
movq %rax, 0x18(%rbx)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/tbonelaforge[P]gradebook/GradebookPrinter.cpp
// Function: GradebookPrinter::~GradebookPrinter()
GradebookPrinter::~GradebookPrinter() {
    for (int i = 0; i < numRows; i++) {
        delete[] cellContents[i];
    }
    delete[] cellContents;
    delete[] columnWidths;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpl $0x0, 0x8(%rdi)
jle 0x6897
xorl %r12d, %r12d
movq %rbx, -0x30(%rbp)
movq 0x10(%rbx), %rax
movq (%rax,%r12,8), %r14
testq %r14, %r14
je 0x688b
movq -0x8(%r14), %rbx
testq %rbx, %rbx
je 0x6870
leaq -0x10(%r14), %r13
movq %rbx, %r15
shlq $0x5, %r15
leaq (%r15,%r13), %rax
movq -0x10(%r13,%r15), %rdi
cmpq %rdi, %rax
je 0x686a
movq (%rax), %rsi
incq %rsi
callq 0x21d0
addq $-0x20, %r15
jne 0x6851
addq $-0x8, %r14
shlq $0x5, %rbx
orq $0x8, %rbx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2350
movq -0x30(%rbp), %rbx
incq %r12
movslq 0x8(%rbx), %rax
cmpq %rax, %r12
jl 0x6830
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x68a5
callq 0x2260
movq 0x18(%rbx), %rdi
addq $0x8, %rsp
testq %rdi, %rdi
je 0x68c1
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2260
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/tbonelaforge[P]gradebook/GradebookPrinter.cpp
// Function: GradebookPrinter::fillStudentData()
void GradebookPrinter::fillStudentData() {
    int i = 0;
    Student * student;
    string * studentRow;
    if (idMode) {
        student = gradebook.getHead();
        while (student != NULL) {
            studentRow = cellContents[1 + i];
            fillStudentRow(studentRow, student);
            i += 1;
            student = student->next;
        }
    } else {
        Node * current = gradebook.getIndex();
        while (current != NULL) {
            student = current->student;
            studentRow = cellContents[1 + i];
            fillStudentRow(studentRow, student);
            i += 1;
            current = current->next;
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %rdi
cmpb $0x1, 0x20(%rbx)
jne 0x6fb4
callq 0x5862
testq %rax, %rax
je 0x6fe7
movq %rax, %r14
movl $0x8, %r15d
movq 0x10(%rbx), %rax
movq (%rax,%r15), %rsi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x7268
movq (%r14), %r14
addq $0x8, %r15
testq %r14, %r14
jne 0x6f93
jmp 0x6fe7
callq 0x586c
testq %rax, %rax
je 0x6fe7
movq %rax, %r14
movl $0x8, %r15d
movq (%r14), %rdx
movq 0x10(%rbx), %rax
movq (%rax,%r15), %rsi
movq %rbx, %rdi
callq 0x7268
movq 0x8(%r14), %r14
addq $0x8, %r15
testq %r14, %r14
jne 0x6fc7
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/tbonelaforge[P]gradebook/GradebookPrinter.cpp
// Function: GradebookPrinter::centerString(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, int)
string GradebookPrinter::centerString(string data, int columnWidth) {
    int blanksNeeded = columnWidth - data.length();
    int lb = blanksNeeded / 2;
    int rb = blanksNeeded - lb;
    string lbs = "";
    string rbs = "";
    for (int i = 0; i < lb; i++) {
        lbs += " ";
    }
    for (int i = 0; i < rb; i++) {
        rbs += " ";
    }
    return lbs + data + rbs;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movl %edx, %r15d
movq %rdi, -0x78(%rbp)
movq %rsi, -0x70(%rbp)
subl 0x8(%rsi), %r15d
leaq -0x58(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x24ae(%rip), %r12      # 0x94cf
leaq -0x68(%rbp), %rdi
movq %r12, %rsi
movq %r12, %rdx
callq 0x844a
leaq -0x38(%rbp), %rax
movq %rax, -0x10(%rax)
leaq -0x48(%rbp), %rdi
movq %r12, %rsi
movq %r12, %rdx
callq 0x844a
movl %r15d, %ebx
shrl $0x1f, %ebx
addl %r15d, %ebx
sarl %ebx
cmpl $0x2, %r15d
jl 0x7076
leaq 0x22c8(%rip), %r12      # 0x9327
leaq -0x68(%rbp), %r13
movl %ebx, %r14d
movq %r13, %rdi
movq %r12, %rsi
callq 0x2340
decl %r14d
jne 0x7066
subl %ebx, %r15d
testl %r15d, %r15d
movq -0x78(%rbp), %rbx
jle 0x70a3
xorl %r14d, %r14d
leaq 0x229b(%rip), %r12      # 0x9327
leaq -0x48(%rbp), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x2340
incl %r14d
cmpl %r15d, %r14d
jl 0x7090
leaq -0x98(%rbp), %rdi
leaq -0x68(%rbp), %rsi
movq -0x70(%rbp), %rdx
callq 0x8335
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
leaq -0x98(%rbp), %rdi
callq 0x2080
leaq 0x10(%rbx), %rdx
movq %rdx, (%rbx)
movq (%rax), %rsi
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rsi
je 0x70ed
movq %rsi, (%rbx)
movq (%rcx), %rdx
movq %rdx, 0x10(%rbx)
jmp 0x70f3
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rbx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq -0x88(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7129
movq -0x88(%rbp), %rsi
incq %rsi
callq 0x21d0
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x7142
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x21d0
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x715b
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x21d0
movq %rbx, %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x88(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x719d
movq -0x88(%rbp), %rsi
incq %rsi
callq 0x21d0
jmp 0x719d
jmp 0x719a
movq %rax, %rbx
jmp 0x71b6
jmp 0x719a
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x71b6
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x21d0
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x71cf
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x21d0
movq %rbx, %rdi
callq 0x2310
nop
// File: /workspace/github_cpp_makefile_star2_O1/tbonelaforge[P]gradebook/GradebookPrinter.cpp
// Function: GradebookPrinter::printRowSeparator(std::ostream&)
void GradebookPrinter::printRowSeparator(ostream& out) {
    for (int j = 0; j < numColumns; j++) {
        for (int k = 0; k < columnWidths[j]; k++) {
            out << '-';
        }
        if (j < numColumns - 1) {
            out << '-';
        }
    }
}

// Assembly:
cmpl $0x0, 0xc(%rdi)
jle 0x7267
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
xorl %r13d, %r13d
leaq -0x29(%rbp), %r15
movq 0x18(%r14), %rax
cmpl $0x0, (%rax,%r13,4)
jle 0x722c
xorl %r12d, %r12d
movb $0x2d, -0x29(%rbp)
movl $0x1, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2210
incl %r12d
movq 0x18(%r14), %rax
cmpl (%rax,%r13,4), %r12d
jl 0x720b
movslq 0xc(%r14), %rax
decq %rax
cmpq %rax, %r13
jge 0x724d
movb $0x2d, -0x2a(%rbp)
movl $0x1, %edx
movq %rbx, %rdi
leaq -0x2a(%rbp), %rsi
callq 0x2210
incq %r13
movslq 0xc(%r14), %rax
cmpq %rax, %r13
jl 0x71fd
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/tplinderoth[P]introDist/introDist.cpp
// Function: mainInfo()
void mainInfo () {
	int w = 12;
	std::cerr << "\nintroDist [function] [-function_inputs]\n"
	<< "\nFunctions:\n"
	<< std::setw(w) << std::left << "comp2Dist" << std::setw(w) << "Find regions where the genetic distance between an individual and a population is less than expected\n"
	<< std::setw(w) << std::left << "comp3Dist" << std::setw(w) << "Distance between 2 individuals and their respective populations, weighted by distance between the individuals\n"
	<< std::setw(w) << std::left << "avgDist" << std::setw(w) << "Genome-wide distance between populations or an individual and a population\n"
	<< "\n";
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq 0xaa0d(%rip), %rbx      # 0xdff0
leaq 0x6f74(%rip), %rsi      # 0xa55e
movl $0x29, %edx
movq %rbx, %rdi
callq 0x3250
leaq 0x6f8a(%rip), %rsi      # 0xa588
movl $0xc, %r14d
movl $0xc, %edx
movq %rbx, %rdi
callq 0x3250
movq (%rbx), %rax
movq -0x18(%rax), %rcx
movq %r14, 0x10(%rbx,%rcx)
movq -0x18(%rax), %rax
movl $0xffffff4f, %r15d      # imm = 0xFFFFFF4F
movl 0x18(%rbx,%rax), %ecx
andl %r15d, %ecx
orl $0x20, %ecx
movl %ecx, 0x18(%rbx,%rax)
leaq 0x6a34(%rip), %rsi      # 0xa070
movl $0x9, %edx
movq %rbx, %rdi
callq 0x3250
movq (%rbx), %rax
movq -0x18(%rax), %rax
movq %r14, 0x10(%rbx,%rax)
leaq 0x6f39(%rip), %rsi      # 0xa595
movl $0x65, %edx
movq %rbx, %rdi
callq 0x3250
movq (%rbx), %rax
movq -0x18(%rax), %rcx
movq %r14, 0x10(%rbx,%rcx)
movq -0x18(%rax), %rax
movl 0x18(%rbx,%rax), %ecx
andl %r15d, %ecx
orl $0x20, %ecx
movl %ecx, 0x18(%rbx,%rax)
leaq 0x69ec(%rip), %rsi      # 0xa07a
movl $0x9, %edx
movq %rbx, %rdi
callq 0x3250
movq (%rbx), %rax
movq -0x18(%rax), %rax
movq %r14, 0x10(%rbx,%rax)
leaq 0x6f4d(%rip), %rsi      # 0xa5fb
movl $0x6e, %edx
movq %rbx, %rdi
callq 0x3250
movq (%rbx), %rax
movq -0x18(%rax), %rcx
movq %r14, 0x10(%rbx,%rcx)
movq -0x18(%rax), %rax
andl 0x18(%rbx,%rax), %r15d
orl $0x20, %r15d
movl %r15d, 0x18(%rbx,%rax)
leaq 0x69a4(%rip), %rsi      # 0xa084
movl $0x7, %edx
movq %rbx, %rdi
callq 0x3250
movq (%rbx), %rax
movq -0x18(%rax), %rax
movq %r14, 0x10(%rbx,%rax)
leaq 0x6f6a(%rip), %rsi      # 0xa66a
movl $0x4b, %edx
movq %rbx, %rdi
callq 0x3250
leaq 0x749e(%rip), %rsi      # 0xabb2
movl $0x1, %edx
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x3250
// File: /workspace/github_cpp_makefile_star2_O1/tplinderoth[P]introDist/introDist.cpp
// Function: comp2Dist(std::basic_fstream<char, std::char_traits<char>>&, std::basic_fstream<char, std::char_traits<char>>&, unsigned int, unsigned int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, double const*)
int comp2Dist (std::fstream &freqfile, std::fstream &genofile, unsigned int window, unsigned int step, int useAvg, std::string* genofname, const double* distance) {
	int comp2return = 0;

	switch (useAvg) {
		case 0 :
			std::cerr << "Using window-wide distance between populations\n";
			comp2return = comp2DistReg(freqfile, genofile, window, step);
			break;
		case 1 :
			std::cerr << "Using genome-wide distance between populations\n";
			comp2return = comp2DistPopAvg(freqfile, genofile, window, step, genofname, distance);
			break;
		case 2 :
			std::cerr << "Using genome-wide distance between individual and population 2\n";
			comp2return = comp2DistIndAvg(freqfile, genofile, window, step, genofname, distance);
			break;
		default :
			std::cerr << "Need to specify -useAvg 0, 1, or 2 in call to comp2Dist\n";
			comp2return = -1;
	}

	return comp2return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %r13
movl %edx, %r14d
movq %rsi, %r15
movq %rdi, %r12
movq 0x10(%rbp), %rbx
movq 0xa205(%rip), %rdi      # 0xdff0
cmpl $0x2, %r8d
je 0x3e6a
cmpl $0x1, %r8d
je 0x3e31
testl %r8d, %r8d
jne 0x3ea3
leaq 0x6571(%rip), %rsi      # 0xa378
movl $0x2f, %edx
movl %ecx, %ebx
callq 0x3250
movq %r12, %rdi
movq %r15, %rsi
movl %r14d, %edx
movl %ebx, %ecx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x5d50
leaq 0x6570(%rip), %rsi      # 0xa3a8
movl $0x2f, %edx
movl %ecx, -0x2c(%rbp)
callq 0x3250
movq %r12, %rdi
movq %r15, %rsi
movl %r14d, %edx
movl -0x2c(%rbp), %ecx
movq %r13, %r8
movq %rbx, %r9
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x6788
leaq 0x6567(%rip), %rsi      # 0xa3d8
movl $0x3f, %edx
movl %ecx, -0x2c(%rbp)
callq 0x3250
movq %r12, %rdi
movq %r15, %rsi
movl %r14d, %edx
movl -0x2c(%rbp), %ecx
movq %r13, %r8
movq %rbx, %r9
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x737e
leaq 0x656e(%rip), %rsi      # 0xa418
movl $0x38, %edx
callq 0x3250
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/tplinderoth[P]introDist/introDist.cpp
// Function: avgDist(std::basic_fstream<char, std::char_traits<char>>&, std::basic_fstream<char, std::char_traits<char>>&, int)
int avgDist (std::fstream &freqfile, std::fstream &genofile, int avgtype) {
	int distreturn = 0;

	switch (avgtype) {
		case 0 :
			std::cerr << "Calculating expected distance between populations\n";
			distreturn = avg2PopDist(freqfile);
			break;
		case 1 :
			std::cerr << "Calculating distance between individual and population\n";
			distreturn = avgIndPopDist(freqfile, genofile);
			break;
		default:
			std::cerr << "Need to specify -distance 0 or 1 in call to -avgDist\n";
			distreturn = -1;
	}

	return distreturn;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
cmpl $0x1, %edx
je 0x49db
movq 0x9636(%rip), %rdi      # 0xdff0
testl %edx, %edx
jne 0x4a05
leaq 0x584b(%rip), %rsi      # 0xa210
movl $0x32, %edx
callq 0x3250
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x540f
movq %rsi, %r14
movq 0x960b(%rip), %rdi      # 0xdff0
leaq 0x5857(%rip), %rsi      # 0xa243
movl $0x37, %edx
callq 0x3250
movq %rbx, %rdi
movq %r14, %rsi
popq %rbx
popq %r14
popq %rbp
jmp 0x575d
leaq 0x586f(%rip), %rsi      # 0xa27b
movl $0x35, %edx
callq 0x3250
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
popq %rbx
popq %r14
popq %rbp
retq