// File: /workspace/github_cpp_makefile_star2_O1/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
xorps %xmm0, %xmm0
movaps %xmm0, -0x40(%rbp)
xorl %eax, %eax
movq %rax, -0x30(%rbp)
leaq -0x50(%rbp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb $0x0, (%rcx)
leaq 0x31fe(%rip), %rsi      # 0x61b3
leaq -0x268(%rbp), %rbx
movq %rbx, %rdi
movl $0x8, %edx
callq 0x2350
leaq -0x1f0(%rbp), %rdi
callq 0x2080
testb %al, %al
je 0x3022
leaq -0x60(%rbp), %r14
leaq -0x40(%rbp), %r15
movq -0x268(%rbp), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2360
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x3022
movq %r15, %rdi
movq %r14, %rsi
callq 0x3474
jmp 0x2fe1
leaq -0x268(%rbp), %rdi
callq 0x2070
movq 0x5fab(%rip), %r13      # 0x8fe0
movq %r13, %rdi
callq 0x2340
movq -0x40(%rbp), %r15
movq $-0x140, %rcx           # imm = 0xFEC0
movq -0x38(%rbp), %rax
addq %rcx, %rax
cmpq %rax, %r15
je 0x3181
movq 0x5f71(%rip), %r14      # 0x8fd0
leaq 0x316c(%rip), %rbx      # 0x61d2
movl $0x1, %edx
movq %r14, %rdi
leaq 0x315b(%rip), %rsi      # 0x61d0
callq 0x2260
movl $0xa, %edi
callq 0x342f
movl $0x28, %edx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2260
movl $0x28, %edx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2260
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
movq %r13, %rbx
xorl %r12d, %r12d
movq (%r15,%r12), %rsi
movq 0x8(%r15,%r12), %rdx
movq %r14, %rdi
callq 0x2260
movq %rax, %r13
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq %r13, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
addq $0x20, %r12
cmpl $0x140, %r12d           # imm = 0x140
jne 0x30d1
movl $0x2e, %edx
movq %r14, %rdi
leaq 0x30d3(%rip), %rsi      # 0x61fb
callq 0x2260
movq %rbx, %r13
movq %r14, %rdi
callq 0x2150
movq %r13, %rdi
movabsq $0x7fffffffffffffff, %rsi # imm = 0x7FFFFFFFFFFFFFFF
movl $0xa, %edx
callq 0x2120
movq (%r13), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x20(%r13,%rax)
leaq 0x306e(%rip), %rbx      # 0x61d2
jne 0x31c1
addq $0x20, %r15
movq -0x38(%rbp), %rax
movq $-0x140, %rcx           # imm = 0xFEC0
addq %rcx, %rax
cmpq %rax, %r15
jne 0x3066
leaq -0x268(%rbp), %rdi
callq 0x2090
movq -0x60(%rbp), %rdi
leaq -0x50(%rbp), %rax
cmpq %rax, %rdi
je 0x31a6
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x2220
leaq -0x40(%rbp), %rdi
callq 0x34c0
addq $0x248, %rsp            # imm = 0x248
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x5e08(%rip), %rdi      # 0x8fd0
callq 0x20e0
movq 0x5dfc(%rip), %rdi      # 0x8fd0
leaq 0x304f(%rip), %rsi      # 0x622a
movl $0x1d, %edx
callq 0x2260
movq 0x5de4(%rip), %rdi      # 0x8fd0
callq 0x20e0
xorl %edi, %edi
callq 0x2280
movq %rax, %rbx
jmp 0x3216
jmp 0x3207
jmp 0x3207
jmp 0x3207
jmp 0x3207
jmp 0x3207
movq %rax, %rbx
leaq -0x268(%rbp), %rdi
callq 0x2090
movq -0x60(%rbp), %rdi
leaq -0x50(%rbp), %rax
cmpq %rax, %rdi
je 0x322f
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x2220
leaq -0x40(%rbp), %rdi
callq 0x34c0
movq %rbx, %rdi
callq 0x2320