// File: /workspace/github_cpp_makefile_star2_O2/tbonelaforge[P]gradebook/GradebookPrinter.cpp
// Function: GradebookPrinter::fillStudentRow(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, Student*)
void GradebookPrinter::fillStudentRow(string * studentRow, Student * student) {
    int i, j, k;
    string grade;
    setColumn(0, studentRow, " " + to_string(student->getId()) + " ");
    setColumn(1, studentRow, " " + student->getFirstName()  + " " + student->getLastName() + " ");
    for (i = 0; i < student->getNumPrograms(); i++) {
        grade =  " " + to_string(student->getProgramGrade(i)) + " ";
        setColumn(2 + i, studentRow, grade);
    }
    for (j = 0; j < student->getNumTests(); j++) {
        grade = " " + to_string(student->getTestGrade(j)) + " ";
        setColumn(2 + i + j, studentRow, grade);
    }
    for (k = 0; k < student->getNumFinals(); k++) {
        grade = " " + to_string(student->getFinalExamGrade()) + " ";
        setColumn(2 + i + j + k, studentRow, grade);
    }
    grade = " " + to_string(student->getFinalAverage()) + " ";
    setColumn(2 + i + j + k, studentRow, grade);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x198, %rsp            # imm = 0x198
movq %rsi, -0x40(%rbp)
movq %rdi, -0x38(%rbp)
leaq -0xb0(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq %rdx, -0x30(%rbp)
movq %rdx, %rdi
callq 0x4d38
leaq -0x60(%rbp), %rdi
movl %eax, %esi
callq 0x4ace
leaq 0x1c12(%rip), %rsi      # 0x7327
leaq -0xa0(%rbp), %rdi
leaq -0x60(%rbp), %rdx
callq 0x4aa0
leaq 0x1bfb(%rip), %rdx      # 0x7327
leaq -0x160(%rbp), %rdi
leaq -0xa0(%rbp), %rsi
callq 0x4a77
leaq -0x160(%rbp), %rcx
movq -0x38(%rbp), %rdi
xorl %esi, %esi
movq -0x40(%rbp), %rdx
callq 0x5cbc
leaq -0x160(%rbp), %rdi
callq 0x2358
leaq -0xa0(%rbp), %rdi
callq 0x2358
leaq -0x60(%rbp), %rdi
callq 0x2358
leaq -0x120(%rbp), %rdi
movq -0x30(%rbp), %rsi
callq 0x4d42
leaq 0x1b9a(%rip), %rsi      # 0x7327
leaq -0x80(%rbp), %rdi
leaq -0x120(%rbp), %rdx
callq 0x4aa0
leaq 0x1b83(%rip), %rdx      # 0x7327
leaq -0x60(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0x4a77
leaq -0x100(%rbp), %rdi
movq -0x30(%rbp), %rsi
callq 0x4d5e
leaq -0xa0(%rbp), %rdi
leaq -0x60(%rbp), %rsi
leaq -0x100(%rbp), %rdx
callq 0x5d3d
leaq 0x1b48(%rip), %rdx      # 0x7327
leaq -0x140(%rbp), %rdi
leaq -0xa0(%rbp), %rsi
callq 0x4a77
pushq $0x1
popq %rsi
leaq -0x140(%rbp), %rcx
movq -0x38(%rbp), %rdi
movq -0x40(%rbp), %rdx
callq 0x5cbc
leaq -0x140(%rbp), %rdi
callq 0x2358
leaq -0xa0(%rbp), %rdi
callq 0x2358
leaq -0x100(%rbp), %rdi
callq 0x2358
leaq -0x60(%rbp), %rbx
movq %rbx, %rdi
callq 0x2358
leaq -0x80(%rbp), %r14
movq %r14, %rdi
callq 0x2358
leaq -0x120(%rbp), %rdi
callq 0x2358
pushq $0x2
popq %r12
movq -0x30(%rbp), %rdi
callq 0x4d7a
leal -0x2(%r12), %esi
cmpl %eax, %esi
jge 0x5917
movq -0x30(%rbp), %rdi
callq 0x4d98
movq %r14, %rdi
movl %eax, %esi
callq 0x4ace
movq %rbx, %rdi
leaq 0x1a9f(%rip), %r15      # 0x7327
movq %r15, %rsi
movq %r14, %r13
movq %r14, %rdx
callq 0x4aa0
movq %rbx, %r14
leaq -0xa0(%rbp), %rbx
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x4a77
leaq -0xc0(%rbp), %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x21f0
movq %rbx, %rdi
callq 0x2358
movq %r14, %rdi
callq 0x2358
movq %r13, %rdi
callq 0x2358
leaq -0x1c0(%rbp), %rdi
movq %r15, %rsi
callq 0x2240
movq %r14, %rbx
movq %r13, %r14
movq -0x38(%rbp), %rdi
movl %r12d, %esi
movq -0x40(%rbp), %rdx
leaq -0x1c0(%rbp), %r15
movq %r15, %rcx
callq 0x5cbc
movq %r15, %rdi
callq 0x2358
incl %r12d
jmp 0x5855
xorl %ebx, %ebx
leaq -0x60(%rbp), %r14
movq -0x30(%rbp), %rdi
callq 0x4d84
cmpl %eax, %ebx
jge 0x59db
movq -0x30(%rbp), %rdi
movl %ebx, %esi
callq 0x4db8
leaq -0x80(%rbp), %r13
movq %r13, %rdi
movl %eax, %esi
callq 0x4ace
movq %r14, %rdi
movq %r14, %r15
leaq 0x19d3(%rip), %r14      # 0x7327
movq %r14, %rsi
movq %r13, %rdx
callq 0x4aa0
leaq -0xa0(%rbp), %r13
movq %r13, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x4a77
leaq -0xc0(%rbp), %r14
movq %r14, %rdi
movq %r13, %rsi
callq 0x21f0
movq %r13, %rdi
callq 0x2358
movq %r15, %rdi
callq 0x2358
leaq -0x80(%rbp), %rdi
callq 0x2358
leaq -0x1a0(%rbp), %rdi
movq %r14, %rsi
callq 0x2240
movq %r15, %r14
leal (%r12,%rbx), %esi
movq -0x38(%rbp), %rdi
movq -0x40(%rbp), %rdx
leaq -0x1a0(%rbp), %r15
movq %r15, %rcx
callq 0x5cbc
movq %r15, %rdi
callq 0x2358
incl %ebx
jmp 0x591d
addl %ebx, %r12d
xorl %r15d, %r15d
leaq -0x60(%rbp), %r14
movq -0x30(%rbp), %rdi
callq 0x4d8e
cmpl %eax, %r15d
jge 0x5aa5
movq -0x30(%rbp), %rdi
callq 0x4dd8
leaq -0x80(%rbp), %r13
movq %r13, %rdi
movl %eax, %esi
callq 0x4ace
movq %r14, %rdi
movq %r14, %rbx
leaq 0x190c(%rip), %r14      # 0x7327
movq %r14, %rsi
movq %r13, %rdx
callq 0x4aa0
leaq -0xa0(%rbp), %r13
movq %r13, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x4a77
leaq -0xc0(%rbp), %r14
movq %r14, %rdi
movq %r13, %rsi
callq 0x21f0
movq %r13, %rdi
callq 0x2358
movq %rbx, %rdi
callq 0x2358
leaq -0x80(%rbp), %rdi
callq 0x2358
leaq -0x180(%rbp), %rdi
movq %r14, %rsi
callq 0x2240
movq %rbx, %r14
movq -0x38(%rbp), %rdi
movl %r12d, %esi
movq -0x40(%rbp), %rdx
leaq -0x180(%rbp), %rbx
movq %rbx, %rcx
callq 0x5cbc
movq %rbx, %rdi
callq 0x2358
incl %r15d
incl %r12d
jmp 0x59e5
movq -0x30(%rbp), %rdi
callq 0x4dec
leaq -0x80(%rbp), %rdi
callq 0x5dae
leaq 0x1869(%rip), %rsi      # 0x7327
leaq -0x60(%rbp), %rdi
leaq -0x80(%rbp), %rdx
callq 0x4aa0
leaq 0x1855(%rip), %rdx      # 0x7327
leaq -0xa0(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x4a77
leaq -0xc0(%rbp), %rbx
leaq -0xa0(%rbp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x21f0
movq %r14, %rdi
callq 0x2358
leaq -0x60(%rbp), %rdi
callq 0x2358
leaq -0x80(%rbp), %rdi
callq 0x2358
leaq -0xe0(%rbp), %rdi
movq %rbx, %rsi
callq 0x2240
leaq -0xe0(%rbp), %rcx
movq -0x38(%rbp), %rdi
movl %r12d, %esi
movq -0x40(%rbp), %rdx
callq 0x5cbc
leaq -0xe0(%rbp), %rdi
callq 0x2358
leaq -0xc0(%rbp), %rdi
callq 0x2358
addq $0x198, %rsp            # imm = 0x198
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0xe0(%rbp), %rdi
jmp 0x5c53
jmp 0x5c64
jmp 0x5c43
jmp 0x5c32
movq %rax, %rbx
leaq -0x140(%rbp), %rdi
callq 0x2358
jmp 0x5b97
movq %rax, %rbx
leaq -0xa0(%rbp), %rdi
callq 0x2358
jmp 0x5ba8
movq %rax, %rbx
leaq -0x100(%rbp), %rdi
callq 0x2358
jmp 0x5bb9
movq %rax, %rbx
leaq -0x60(%rbp), %rdi
callq 0x2358
jmp 0x5bc7
movq %rax, %rbx
leaq -0x80(%rbp), %rdi
callq 0x2358
leaq -0x120(%rbp), %rdi
jmp 0x5c53
movq %rax, %rbx
jmp 0x5bd0
jmp 0x5c64
movq %rax, %rbx
leaq -0x160(%rbp), %rdi
callq 0x2358
jmp 0x5bf7
movq %rax, %rbx
leaq -0xa0(%rbp), %rdi
callq 0x2358
jmp 0x5c08
movq %rax, %rbx
leaq -0x60(%rbp), %rdi
jmp 0x5c53
jmp 0x5c64
jmp 0x5c64
jmp 0x5c32
movq %rax, %rbx
leaq -0x180(%rbp), %rdi
jmp 0x5c53
jmp 0x5c43
jmp 0x5c32
movq %rax, %rbx
leaq -0x1a0(%rbp), %rdi
jmp 0x5c53
jmp 0x5c43
movq %rax, %rbx
jmp 0x5c4f
movq %rax, %rbx
leaq -0x1c0(%rbp), %rdi
jmp 0x5c53
movq %rax, %rbx
leaq -0x60(%rbp), %rdi
callq 0x2358
leaq -0x80(%rbp), %rdi
callq 0x2358
jmp 0x5c67
jmp 0x5c64
jmp 0x5c64
jmp 0x5c64
jmp 0x5c64
jmp 0x5c64
movq %rax, %rbx
leaq -0xc0(%rbp), %rdi
callq 0x2358
movq %rbx, %rdi
callq 0x22d0
nop