// File: tbonelaforge[P]gradebook/GradebookPrinter.cpp
// Function: GradebookPrinter::fillHeaders()
void GradebookPrinter::fillHeaders() {
    int i, j, k;
    string * headers = cellContents[0];
    headers[0] = " ID ";
    columnWidths[0] = headers[0].length();
    headers[1] = " Name ";
    columnWidths[1] = headers[1].length();
    for (i = 0; i < gradebook.getNumPrograms(); i++) {
        fillHeader(2 + i, " Program " + to_string(i + 1) + " ");
    }
    for (j = 0; j < gradebook.getNumTests(); j++) {
        fillHeader(2 + i + j, " Test " + to_string(j + 1) + " ");
    }
    for (k = 0; k < gradebook.getNumFinals(); k++) {
        fillHeader(2 + i + j + k, " Final Exam ");
    }
    fillHeader(2 + i + j + k, " Final Grade ");
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x190, %rsp            # imm = 0x190
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x148(%rbp)
movq 0x10(%rax), %rax
movq (%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdi
leaq 0x2c00(%rip), %rsi      # 0xab60
callq 0x3340
movq -0x20(%rbp), %rdi
callq 0x3380
movq %rax, %rcx
movq -0x148(%rbp), %rax
movq 0x18(%rax), %rax
movl %ecx, (%rax)
movq -0x20(%rbp), %rdi
addq $0x20, %rdi
leaq 0x2bd8(%rip), %rsi      # 0xab65
callq 0x3340
movq -0x20(%rbp), %rdi
addq $0x20, %rdi
callq 0x3380
movq %rax, %rcx
movq -0x148(%rbp), %rax
movq 0x18(%rax), %rax
movl %ecx, 0x4(%rax)
movl $0x0, -0xc(%rbp)
movq -0x148(%rbp), %rax
movl -0xc(%rbp), %ecx
movl %ecx, -0x14c(%rbp)
movq (%rax), %rdi
callq 0x6100
movl %eax, %ecx
movl -0x14c(%rbp), %eax
cmpl %ecx, %eax
jge 0x80c9
movl -0xc(%rbp), %esi
movl %esi, %eax
addl $0x2, %eax
movl %eax, -0x15c(%rbp)
incl %esi
leaq -0x80(%rbp), %rdi
movq %rdi, -0x158(%rbp)
callq 0x6f70
movq -0x158(%rbp), %rdx
leaq 0x2b5f(%rip), %rsi      # 0xab6c
leaq -0x60(%rbp), %rdi
callq 0x6f20
jmp 0x8018
leaq 0x2308(%rip), %rdx      # 0xa327
leaq -0x40(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x6ed0
jmp 0x802e
movl -0x15c(%rbp), %esi
movq -0x148(%rbp), %rdi
leaq -0x40(%rbp), %rdx
callq 0x9130
jmp 0x8046
leaq -0x40(%rbp), %rdi
callq 0x3498
leaq -0x60(%rbp), %rdi
callq 0x3498
leaq -0x80(%rbp), %rdi
callq 0x3498
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0x7fb7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x88(%rbp)
movl %eax, -0x8c(%rbp)
jmp 0x80bb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x88(%rbp)
movl %eax, -0x8c(%rbp)
jmp 0x80b2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x88(%rbp)
movl %eax, -0x8c(%rbp)
leaq -0x40(%rbp), %rdi
callq 0x3498
leaq -0x60(%rbp), %rdi
callq 0x3498
leaq -0x80(%rbp), %rdi
callq 0x3498
jmp 0x83c6
movl $0x0, -0x10(%rbp)
movq -0x148(%rbp), %rax
movl -0x10(%rbp), %ecx
movl %ecx, -0x160(%rbp)
movq (%rax), %rdi
callq 0x6110
movl %eax, %ecx
movl -0x160(%rbp), %eax
cmpl %ecx, %eax
jge 0x8209
movl -0xc(%rbp), %edx
movl -0x10(%rbp), %esi
movl %esi, %ecx
movl %edx, %eax
leal 0x2(%rax,%rcx), %eax
movl %eax, -0x16c(%rbp)
incl %esi
leaq -0xf0(%rbp), %rdi
movq %rdi, -0x168(%rbp)
callq 0x6f70
movq -0x168(%rbp), %rdx
leaq 0x224b(%rip), %rsi      # 0xa37a
leaq -0xd0(%rbp), %rdi
callq 0x6f20
jmp 0x813d
leaq 0x21e3(%rip), %rdx      # 0xa327
leaq -0xb0(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
callq 0x6ed0
jmp 0x8159
movl -0x16c(%rbp), %esi
movq -0x148(%rbp), %rdi
leaq -0xb0(%rbp), %rdx
callq 0x9130
jmp 0x8174
leaq -0xb0(%rbp), %rdi
callq 0x3498
leaq -0xd0(%rbp), %rdi
callq 0x3498
leaq -0xf0(%rbp), %rdi
callq 0x3498
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0x80d0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x88(%rbp)
movl %eax, -0x8c(%rbp)
jmp 0x81f8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x88(%rbp)
movl %eax, -0x8c(%rbp)
jmp 0x81ec
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x88(%rbp)
movl %eax, -0x8c(%rbp)
leaq -0xb0(%rbp), %rdi
callq 0x3498
leaq -0xd0(%rbp), %rdi
callq 0x3498
leaq -0xf0(%rbp), %rdi
callq 0x3498
jmp 0x83c6
movl $0x0, -0x14(%rbp)
movq -0x148(%rbp), %rax
movl -0x14(%rbp), %ecx
movl %ecx, -0x170(%rbp)
movq (%rax), %rdi
callq 0x6130
movl %eax, %ecx
movl -0x170(%rbp), %eax
cmpl %ecx, %eax
jge 0x8304
movl -0xc(%rbp), %edx
movl -0x10(%rbp), %eax
addl %eax, %edx
movl -0x14(%rbp), %ecx
movl %ecx, %eax
movl %edx, %ecx
leal 0x2(%rax,%rcx), %eax
movl %eax, -0x17c(%rbp)
leaq -0x111(%rbp), %rdi
movq %rdi, -0x178(%rbp)
callq 0x3400
movq -0x178(%rbp), %rdx
leaq 0x2904(%rip), %rsi      # 0xab76
leaq -0x110(%rbp), %rdi
callq 0x9230
jmp 0x8280
movl -0x17c(%rbp), %esi
movq -0x148(%rbp), %rdi
leaq -0x110(%rbp), %rdx
callq 0x9130
jmp 0x829b
leaq -0x110(%rbp), %rdi
callq 0x3498
leaq -0x111(%rbp), %rdi
callq 0x3270
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x8210
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x88(%rbp)
movl %eax, -0x8c(%rbp)
jmp 0x82f3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x88(%rbp)
movl %eax, -0x8c(%rbp)
leaq -0x110(%rbp), %rdi
callq 0x3498
leaq -0x111(%rbp), %rdi
callq 0x3270
jmp 0x83c6
movl -0xc(%rbp), %edx
movl -0x10(%rbp), %eax
addl %eax, %edx
movl -0x14(%rbp), %ecx
movl %ecx, %eax
movl %edx, %ecx
leal 0x2(%rax,%rcx), %eax
movl %eax, -0x18c(%rbp)
leaq -0x139(%rbp), %rdi
movq %rdi, -0x188(%rbp)
callq 0x3400
movq -0x188(%rbp), %rdx
leaq 0x2845(%rip), %rsi      # 0xab83
leaq -0x138(%rbp), %rdi
callq 0x9230
jmp 0x834c
movl -0x18c(%rbp), %esi
movq -0x148(%rbp), %rdi
leaq -0x138(%rbp), %rdx
callq 0x9130
jmp 0x8367
leaq -0x138(%rbp), %rdi
callq 0x3498
leaq -0x139(%rbp), %rdi
callq 0x3270
addq $0x190, %rsp            # imm = 0x190
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x88(%rbp)
movl %eax, -0x8c(%rbp)
jmp 0x83ba
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x88(%rbp)
movl %eax, -0x8c(%rbp)
leaq -0x138(%rbp), %rdi
callq 0x3498
leaq -0x139(%rbp), %rdi
callq 0x3270
movq -0x88(%rbp), %rdi
callq 0x33f0
nopw %cs:(%rax,%rax)