// File: /workspace/github_cpp_makefile_star2_O3/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), %rcx
leaq (%r14,%rcx), %r15
cmpb $0x0, 0xe1(%r14,%rcx)
jne 0x3e60
movq %r15, %rdi
movl $0x20, %esi
callq 0x21d0
movb $0x1, 0xe1(%r15)
movq (%r14), %rax
movb $0x2d, 0xe0(%r15)
movq -0x18(%rax), %rax
movq $0x1a, 0x10(%r14,%rax)
leaq 0x2461(%rip), %rsi      # 0x62dd
movl $0x1, %edx
movq %r14, %rdi
callq 0x2210
movq (%r14), %rax
movq -0x18(%rax), %rcx
leaq (%r14,%rcx), %r15
cmpb $0x0, 0xe1(%r14,%rcx)
jne 0x3eb7
movq %r15, %rdi
movl $0x20, %esi
callq 0x21d0
movb $0x1, 0xe1(%r15)
movq (%r14), %rax
movb $0x20, 0xe0(%r15)
movq -0x18(%rax), %rax
movq $0x3, 0x10(%r14,%rax)
leaq 0x2892(%rip), %rsi      # 0x6765
movl $0x12, %edx
movq %r14, %rdi
callq 0x2210
movq 0x60e1(%rip), %r14      # 0x9fc8
leaq 0x288a(%rip), %rsi      # 0x6778
movl $0x1, %edx
movq %r14, %rdi
callq 0x2210
movq (%r14), %rax
movq -0x18(%rax), %rcx
leaq (%r14,%rcx), %r15
cmpb $0x0, 0xe1(%r14,%rcx)
jne 0x3f29
movq %r15, %rdi
movl $0x20, %esi
callq 0x21d0
movb $0x1, 0xe1(%r15)
movq (%r14), %rax
movb $0x20, 0xe0(%r15)
movq -0x18(%rax), %rax
movq $0x5, 0x10(%r14,%rax)
leaq 0x2835(%rip), %rsi      # 0x677a
movl $0x14, %edx
movq %r14, %rdi
callq 0x2210
movq 0x606f(%rip), %r14      # 0x9fc8
leaq 0x237d(%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 0x409d
cmpl $0x13, %ebp
ja 0x3f72
movq (%r14), %rax
movq -0x18(%rax), %rcx
leaq (%r14,%rcx), %r12
cmpb $0x0, 0xe1(%r14,%rcx)
jne 0x3fdc
movq %r12, %rdi
movl $0x20, %esi
callq 0x21d0
movb $0x1, 0xe1(%r12)
movq (%r14), %rax
movb $0x20, 0xe0(%r12)
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), %rcx
movq %r13, %r12
addq %rcx, %r12
cmpb $0x0, 0xe1(%r13,%rcx)
jne 0x4033
movq %r12, %rdi
movl $0x20, %esi
callq 0x21d0
movb $0x1, 0xe1(%r12)
movq (%r13), %rax
movb $0x20, 0xe0(%r12)
movq -0x18(%rax), %rax
movq $0x6, 0x10(%r13,%rax)
movl $0x1, %edx
movq %r13, %rdi
leaq 0x2720(%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 0x3f72
movq 0x5f24(%rip), %rbx      # 0x9fc8
leaq 0x239c(%rip), %rsi      # 0x6447
movl $0x7, %edx
movq %rbx, %rdi
callq 0x2210
movq (%rbx), %rax
movq -0x18(%rax), %rcx
leaq (%rbx,%rcx), %r14
cmpb $0x0, 0xe1(%rbx,%rcx)
jne 0x40e5
movq %r14, %rdi
movl $0x20, %esi
callq 0x21d0
movb $0x1, 0xe1(%r14)
movq (%rbx), %rax
movb $0x2d, 0xe0(%r14)
movq -0x18(%rax), %rax
movq $0x1a, 0x10(%rbx,%rax)
leaq 0x21dc(%rip), %rsi      # 0x62dd
movl $0x1, %edx
movq %rbx, %rdi
callq 0x2210
movq 0x5eb3(%rip), %rdi      # 0x9fc8
leaq 0x2655(%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 0x414b
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 0x4173
jmp 0x4166
jmp 0x4166
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x2050
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x418e
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21f0
movq %rbx, %rdi
callq 0x22f0