// File: /workspace/github_cpp_makefile_star2_O2/tbonelaforge[P]gradebook/Main.cpp
// Function: displayMenu(int, Gradebook&, bool)
void displayMenu(int state, Gradebook& gradebook, bool idMode) {
    switch (state) {
    case 0:
        cout << "WELCOME TO GRADEBOOK!" << endl;
        cout << "Type 'S' to setup a new semester." << endl;
        cout << "Type 'Q' to quit." << endl;
        break;
    case 1:
        cout << "GRADEBOOK MENU" << endl;
        cout << "Type 'S' to re-initialize the semester (all grades will be lost)." << endl;
        cout << "Type 'A' to add a new student." << endl;
        if (gradebook.getNumStudents() > 0) {
            cout << "Type 'P' to enter a program grade for all students." << endl;
            cout << "Type 'T' to enter a test grade for all students." << endl;          if (gradebook.getNumFinals() > 0) {
                cout << "Type 'F' to enter a final exam grade for all students." << endl;
            }
        }
        cout << "Type 'C' to change a grade for one student." << endl;
        cout << "Type 'G' to calculate and store the final grade for all students." << endl;
        cout << "Type 'O' to output the grade data." << endl;
        cout << "Type 'M' to toggle the output mode (currently " << ((idMode) ? "by Id)" : "by Name)") << endl;
        cout << "Type 'Q' to quit" << endl;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
cmpl $0x1, %edi
je 0x3c57
testl %edi, %edi
jne 0x3db7
movq 0x73a3(%rip), %rbx      # 0xafc8
leaq 0x3b7a(%rip), %rsi      # 0x77a6
movq %rbx, %rdi
callq 0x2170
movq %rax, %rdi
callq 0x20b0
leaq 0x3b79(%rip), %rsi      # 0x77bc
movq %rbx, %rdi
callq 0x2170
leaq 0x3b8c(%rip), %rbx      # 0x77de
jmp 0x3d8e
movl %edx, %ebx
movq %rsi, %r14
movq 0x7365(%rip), %r15      # 0xafc8
leaq 0x3b86(%rip), %rsi      # 0x77f0
movq %r15, %rdi
callq 0x2170
movq %rax, %rdi
callq 0x20b0
leaq 0x3b7e(%rip), %rsi      # 0x77ff
movq %r15, %rdi
callq 0x2170
movq %rax, %rdi
callq 0x20b0
leaq 0x3ba9(%rip), %rsi      # 0x7841
movq %r15, %rdi
callq 0x2170
movq %rax, %rdi
callq 0x20b0
movq %r14, %rdi
callq 0x459e
testl %eax, %eax
jle 0x3d10
movq 0x730d(%rip), %r15      # 0xafc8
leaq 0x3b9e(%rip), %rsi      # 0x7860
movq %r15, %rdi
callq 0x2170
movq %rax, %rdi
callq 0x20b0
leaq 0x3bbb(%rip), %rsi      # 0x7894
movq %r15, %rdi
callq 0x2170
movq %rax, %rdi
callq 0x20b0
movq %r14, %rdi
callq 0x41e8
testl %eax, %eax
jle 0x3d10
movq 0x72cc(%rip), %rdi      # 0xafc8
leaq 0x3bc2(%rip), %rsi      # 0x78c5
callq 0x2170
movq %rax, %rdi
callq 0x20b0
movq 0x72b1(%rip), %r14      # 0xafc8
leaq 0x3bde(%rip), %rsi      # 0x78fc
movq %r14, %rdi
callq 0x2170
movq %rax, %rdi
callq 0x20b0
leaq 0x3bf3(%rip), %rsi      # 0x7928
movq %r14, %rdi
callq 0x2170
movq %rax, %rdi
callq 0x20b0
leaq 0x3c1e(%rip), %rsi      # 0x796a
movq %r14, %rdi
callq 0x2170
movq %rax, %rdi
callq 0x20b0
leaq 0x3c2a(%rip), %rsi      # 0x798d
movq %r14, %rdi
callq 0x2170
leaq 0x3c4a(%rip), %rcx      # 0x79bc
leaq 0x3c4a(%rip), %rsi      # 0x79c3
testb %bl, %bl
cmovneq %rcx, %rsi
movq %rax, %rdi
callq 0x2170
leaq 0x3c3e(%rip), %rbx      # 0x79cc
movq %rax, %rdi
callq 0x20b0
movq 0x722b(%rip), %rdi      # 0xafc8
movq %rbx, %rsi
callq 0x2170
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x20b0
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq