// File: /workspace/github_cpp_makefile_star2_O2/m-wiesner[P]Jotto/Jotto.cpp
// Function: print_intro()
void print_intro()
{
    vector<string> lines;
    string line;
    ifstream infile("./text_files/jotto_intro.txt");
    if(infile.is_open())
    {
        while(getline(infile, line))
        {
            lines.push_back(line);
        }
    }

    infile.close();
    cin.ignore();
    for(vector<string>::const_iterator it = lines.begin();
        it != lines.end() - MAX_MENU_ROWS; ++it)
    {
        cout << "\r";
        clear_screen(MAX_MENU_ROWS);

        cout << "________________________________________";
        cout << "________________________________________" << endl;  
        int i = 0;
        vector<string>::const_iterator it2 = it;
        while (i < MAX_MENU_ROWS)
        {
            cout << *it2 << endl; 
            ++it2;
            ++i;
        }
        cout << "__________ Press (Enter) for next row ________" << flush;
        cin.ignore(numeric_limits<streamsize>::max(), '\n');
        if(!(cin))
        {
            cout << endl;
            cout << "Thanks for reading the rules!" << endl;
            exit (0);
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x248, %rsp            # imm = 0x248
andq $0x0, -0x30(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0x40(%rbp)
leaq -0x50(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x35a1(%rip), %rsi      # 0x61b3
leaq -0x268(%rbp), %rdi
pushq $0x8
popq %rdx
callq 0x2390
leaq -0x1f0(%rbp), %rdi
callq 0x2080
testb %al, %al
je 0x2c66
leaq -0x268(%rbp), %rbx
leaq -0x60(%rbp), %r14
leaq -0x40(%rbp), %r15
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2060
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x2c66
movq %r15, %rdi
movq %r14, %rsi
callq 0x2f60
jmp 0x2c40
leaq -0x268(%rbp), %rdi
callq 0x2070
movq 0x7367(%rip), %rbx      # 0x9fe0
movq %rbx, %rdi
callq 0x2380
movq -0x40(%rbp), %r15
movq 0x7344(%rip), %r14      # 0x9fd0
leaq 0x353f(%rip), %r13      # 0x61d2
movq -0x38(%rbp), %rax
movq $-0x140, %rcx           # imm = 0xFEC0
addq %rcx, %rax
cmpq %rax, %r15
je 0x2d75
movq %r14, %rdi
leaq 0x351c(%rip), %rsi      # 0x61d0
callq 0x2230
pushq $0xa
popq %rdi
callq 0x2ebb
movq %r14, %rdi
movq %r13, %rsi
callq 0x2230
movq %r14, %rdi
movq %r13, %rsi
callq 0x2230
movq %rax, %rdi
callq 0x2110
xorl %r12d, %r12d
cmpl $0x140, %r12d           # imm = 0x140
je 0x2d05
leaq (%r15,%r12), %rsi
movq %r14, %rdi
callq 0x2200
movq %rax, %rdi
callq 0x2110
addq $0x20, %r12
jmp 0x2ce2
movq %r14, %rdi
leaq 0x34ec(%rip), %rsi      # 0x61fb
callq 0x2230
movq %rax, %rdi
callq 0x2180
movq %rbx, %rdi
movabsq $0x7fffffffffffffff, %rsi # imm = 0x7FFFFFFFFFFFFFFF
pushq $0xa
popq %rdx
callq 0x2150
movq (%rbx), %rax
movq -0x18(%rax), %rax
addq $0x20, %r15
testb $0x5, 0x20(%rbx,%rax)
je 0x2c93
movq 0x7282(%rip), %rdi      # 0x9fd0
callq 0x2110
movq 0x7276(%rip), %rdi      # 0x9fd0
leaq 0x34c9(%rip), %rsi      # 0x622a
callq 0x2230
movq %rax, %rdi
callq 0x2110
xorl %edi, %edi
callq 0x22a0
leaq -0x268(%rbp), %rdi
callq 0x2090
leaq -0x60(%rbp), %rdi
callq 0x2100
leaq -0x40(%rbp), %rdi
callq 0x2f9c
addq $0x248, %rsp            # imm = 0x248
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x2dc3
jmp 0x2db4
jmp 0x2db4
jmp 0x2db4
jmp 0x2db4
jmp 0x2db4
movq %rax, %rbx
leaq -0x268(%rbp), %rdi
callq 0x2090
leaq -0x60(%rbp), %rdi
callq 0x2100
leaq -0x40(%rbp), %rdi
callq 0x2f9c
movq %rbx, %rdi
callq 0x2360