// File: /workspace/github_cpp_makefile_star2_O1/FabienBounoir[P]JustePrix-CLI/ihm.cpp
// Function: Ihm::afficherMeilleursScores(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void Ihm::afficherMeilleursScores(string nomFichier)
{
    system("clear");

    string ligneFichierScore;
    ifstream fichierScore(nomFichier.c_str());
    int i = 0;

    cout << "\033[1;36m" << endl;
    cout << setfill('-') << setw(26) << "\n";
    cout << setfill(' ') << setw(3) << " classement \033[1;0m"; 
    cout << "|" << setfill(' ') << setw(5) << "\033[1;36m scores\033[1;0m"; 
    cout << "\n";

    while(getline(fichierScore, ligneFichierScore)) 
    {
        if(i < 20)
        {
            cout << setfill(' ') << setw(7) << ++i  << setfill(' ') << setw(6) << "|" <<  ligneFichierScore  <<endl;
        }
    }
    cout << "\033[1;36m";
    cout << setfill('-') << setw(26) << "\n";
    cout << "\033[1;0m";
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x228, %rsp            # imm = 0x228
movq %rsi, %rbx
leaq 0x22db(%rip), %rdi      # 0x6096
callq 0x2190
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq (%rbx), %rsi
leaq 0x20(%rsp), %rbx
movq %rbx, %rdi
movl $0x8, %edx
callq 0x2310
movq 0x61d8(%rip), %r14      # 0x9fc8
leaq 0x2650(%rip), %rsi      # 0x6447
movl $0x7, %edx
movq %r14, %rdi
callq 0x2210
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq 0x61a6(%rip), %r14      # 0x9fc8
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2100
movq (%r14), %rax
movq -0x18(%rax), %rax
leaq (%r14,%rax), %r15
cmpb $0x0, 0xe1(%r14,%rax)
jne 0x3e64
movq %r15, %rdi
movl $0x20, %esi
callq 0x21d0
movb %al, 0xe0(%r15)
movb $0x1, 0xe1(%r15)
movb $0x2d, 0xe0(%r15)
movq (%r14), %rax
movq -0x18(%rax), %rax
movq $0x1a, 0x10(%r14,%rax)
leaq 0x245a(%rip), %rsi      # 0x62dd
movl $0x1, %edx
movq %r14, %rdi
callq 0x2210
movq (%r14), %rax
movq -0x18(%rax), %rax
leaq (%r14,%rax), %r15
cmpb $0x0, 0xe1(%r14,%rax)
jne 0x3ec2
movq %r15, %rdi
movl $0x20, %esi
callq 0x21d0
movb %al, 0xe0(%r15)
movb $0x1, 0xe1(%r15)
movb $0x20, 0xe0(%r15)
movq (%r14), %rax
movq -0x18(%rax), %rax
movq $0x3, 0x10(%r14,%rax)
leaq 0x2884(%rip), %rsi      # 0x6765
movl $0x12, %edx
movq %r14, %rdi
callq 0x2210
movq 0x60d3(%rip), %r14      # 0x9fc8
leaq 0x287c(%rip), %rsi      # 0x6778
movl $0x1, %edx
movq %r14, %rdi
callq 0x2210
movq (%r14), %rax
movq -0x18(%rax), %rax
leaq (%r14,%rax), %r15
cmpb $0x0, 0xe1(%r14,%rax)
jne 0x3f3b
movq %r15, %rdi
movl $0x20, %esi
callq 0x21d0
movb %al, 0xe0(%r15)
movb $0x1, 0xe1(%r15)
movb $0x20, 0xe0(%r15)
movq (%r14), %rax
movq -0x18(%rax), %rax
movq $0x5, 0x10(%r14,%rax)
leaq 0x2820(%rip), %rsi      # 0x677a
movl $0x14, %edx
movq %r14, %rdi
callq 0x2210
movq 0x605a(%rip), %r14      # 0x9fc8
leaq 0x2368(%rip), %rsi      # 0x62dd
movl $0x1, %edx
movq %r14, %rdi
callq 0x2210
xorl %ebp, %ebp
movq %rsp, %r15
movq 0x20(%rsp), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2320
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x40c2
cmpl $0x13, %ebp
ja 0x3f87
movq (%r14), %rax
movq -0x18(%rax), %rax
leaq (%r14,%rax), %r12
cmpb $0x0, 0xe1(%r14,%rax)
jne 0x3ff6
movq %r12, %rdi
movl $0x20, %esi
callq 0x21d0
movb %al, 0xe0(%r12)
movb $0x1, 0xe1(%r12)
movb $0x20, 0xe0(%r12)
movq (%r14), %rax
movq -0x18(%rax), %rax
movq $0x7, 0x10(%r14,%rax)
incl %ebp
movq %r14, %rdi
movl %ebp, %esi
callq 0x22e0
movq %rax, %r13
movq (%rax), %rax
movq -0x18(%rax), %rax
movq %r13, %r12
addq %rax, %r12
cmpb $0x0, 0xe1(%r13,%rax)
jne 0x4054
movq %r12, %rdi
movl $0x20, %esi
callq 0x21d0
movb %al, 0xe0(%r12)
movb $0x1, 0xe1(%r12)
movb $0x20, 0xe0(%r12)
movq (%r13), %rax
movq -0x18(%rax), %rax
movq $0x6, 0x10(%r13,%rax)
movl $0x1, %edx
movq %r13, %rdi
leaq 0x26fb(%rip), %rsi      # 0x6778
callq 0x2210
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %r13, %rdi
callq 0x2210
movq %rax, %r13
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq %r13, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2100
jmp 0x3f87
movq 0x5eff(%rip), %rbx      # 0x9fc8
leaq 0x2377(%rip), %rsi      # 0x6447
movl $0x7, %edx
movq %rbx, %rdi
callq 0x2210
movq (%rbx), %rax
movq -0x18(%rax), %rax
leaq (%rbx,%rax), %r14
cmpb $0x0, 0xe1(%rbx,%rax)
jne 0x410e
movq %r14, %rdi
movl $0x20, %esi
callq 0x21d0
movb %al, 0xe0(%r14)
movb $0x1, 0xe1(%r14)
movb $0x2d, 0xe0(%r14)
movq (%rbx), %rax
movq -0x18(%rax), %rax
movq $0x1a, 0x10(%rbx,%rax)
leaq 0x21b0(%rip), %rsi      # 0x62dd
movl $0x1, %edx
movq %rbx, %rdi
callq 0x2210
movq 0x5e87(%rip), %rdi      # 0x9fc8
leaq 0x2629(%rip), %rsi      # 0x6771
movl $0x6, %edx
callq 0x2210
leaq 0x20(%rsp), %rdi
callq 0x2050
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x4177
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21f0
addq $0x228, %rsp            # imm = 0x228
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x419f
jmp 0x4192
jmp 0x4192
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x2050
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x41ba
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21f0
movq %rbx, %rdi
callq 0x22f0