// File: /workspace/github_cpp_makefile_star2_O2/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 0x1c13(%rip), %rdi      # 0x5096
callq 0x2180
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq (%rbx), %rsi
leaq 0x20(%rsp), %rdi
pushq $0x8
popq %rdx
callq 0x2320
movq 0x5b18(%rip), %rdi      # 0x8fc8
leaq 0x1f90(%rip), %rsi      # 0x5447
callq 0x21d0
movq %rax, %rdi
callq 0x20c0
movq 0x5afd(%rip), %rdi      # 0x8fc8
pushq $0x2d
popq %rsi
callq 0x2290
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movq $0x1a, 0x10(%rax,%rcx)
leaq 0x1df3(%rip), %rsi      # 0x52dd
movq %rax, %rdi
callq 0x21d0
movq 0x5acf(%rip), %rdi      # 0x8fc8
pushq $0x20
popq %rsi
callq 0x2290
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movq $0x3, 0x10(%rax,%rcx)
leaq 0x224d(%rip), %rsi      # 0x5765
movq %rax, %rdi
callq 0x21d0
movq 0x5aa1(%rip), %rdi      # 0x8fc8
leaq 0x224a(%rip), %rsi      # 0x5778
callq 0x21d0
pushq $0x20
popq %rsi
movq %rax, %rdi
callq 0x2290
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movq $0x5, 0x10(%rax,%rcx)
leaq 0x2225(%rip), %rsi      # 0x577a
movq %rax, %rdi
callq 0x21d0
movq 0x5a64(%rip), %rdi      # 0x8fc8
leaq 0x1d72(%rip), %rsi      # 0x52dd
callq 0x21d0
xorl %ebx, %ebx
leaq 0x20(%rsp), %r14
movq %rsp, %r15
movq 0x5a47(%rip), %r12      # 0x8fc8
pushq $0x20
popq %rbp
leaq 0x21ed(%rip), %r13      # 0x5778
movq %r14, %rdi
movq %r15, %rsi
callq 0x2040
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x3609
cmpl $0x13, %ebx
ja 0x358b
movq %r12, %rdi
movl %ebp, %esi
callq 0x2290
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movq $0x7, 0x10(%rax,%rcx)
incl %ebx
movq %rax, %rdi
movl %ebx, %esi
callq 0x22f0
movq %rax, %rdi
movl %ebp, %esi
callq 0x2290
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movq $0x6, 0x10(%rax,%rcx)
movq %rax, %rdi
movq %r13, %rsi
callq 0x21d0
movq %rax, %rdi
movq %r15, %rsi
callq 0x21a0
movq %rax, %rdi
callq 0x20c0
jmp 0x358b
movq 0x59b8(%rip), %rdi      # 0x8fc8
leaq 0x1e30(%rip), %rsi      # 0x5447
callq 0x21d0
movq 0x59a5(%rip), %rdi      # 0x8fc8
pushq $0x2d
popq %rsi
callq 0x2290
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movq $0x1a, 0x10(%rax,%rcx)
leaq 0x1c9b(%rip), %rsi      # 0x52dd
movq %rax, %rdi
callq 0x21d0
movq 0x5977(%rip), %rdi      # 0x8fc8
leaq 0x2119(%rip), %rsi      # 0x5771
callq 0x21d0
leaq 0x20(%rsp), %rdi
callq 0x2050
movq %rsp, %rdi
callq 0x20b0
addq $0x228, %rsp            # imm = 0x228
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x3697
jmp 0x368a
jmp 0x368a
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x2050
movq %rsp, %rdi
callq 0x20b0
movq %rbx, %rdi
callq 0x2300
nop