// File: /workspace/github_cpp_makefile_star2_O3/Teris45[P]Maze-Game/HighScore.cpp
// Function: HighScore::toStr()
char* HighScore::toStr() {
    string str;
    for(int i=0;i<5;i++){
        if(score[i]==-1) {
            continue;
        }
        else {
            if (str.empty()) {
                str = name[i].name + to_string(score[i]) + "\n";
                cout<<str;
            }
            else {
                string str2;
                str2 = name[i].name + to_string(score[i]) + "\n";
                str.append(str2);
            }
        }
    }

    cout<<str;

    char *writeable = new char[str.size() + 1];
    copy(str.begin(),str.end(),writeable);
    writeable[str.size()] = '\0';
    return writeable;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rdi, -0x90(%rbp)
leaq -0xa0(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq -0x38(%rbp), %r15
xorl %r14d, %r14d
movl $0xd1b71759, %ebx       # imm = 0xD1B71759
movq -0x90(%rbp), %rax
movl 0x34(%rax,%r14,4), %r13d
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq %rax, %r13
je 0x69fd
cmpq $0x0, -0xa8(%rbp)
je 0x667e
movq %r15, -0x48(%rbp)
movq $0x0, -0x40(%rbp)
movb $0x0, -0x38(%rbp)
movl %r13d, %r15d
negl %r15d
cmovsl %r13d, %r15d
movl $0x1, %r12d
cmpl $0xa, %r15d
jb 0x66e9
movl $0x4, %r12d
movl %r15d, %eax
cmpl $0x63, %eax
jbe 0x66e0
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0x66e6
cmpl $0x2710, %eax           # imm = 0x2710
jb 0x66e9
movl %eax, %ecx
imulq %rbx, %rcx
shrq $0x2d, %rcx
addl $0x4, %r12d
cmpl $0x1869f, %eax          # imm = 0x1869F
movl %ecx, %eax
ja 0x6642
addl $-0x3, %r12d
jmp 0x66e9
movl %r13d, %r15d
negl %r15d
cmovsl %r13d, %r15d
movl $0x1, %r12d
cmpl $0xa, %r15d
jb 0x688e
movl $0x4, %r12d
movl %r15d, %eax
cmpl $0x63, %eax
jbe 0x6885
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0x688b
cmpl $0x2710, %eax           # imm = 0x2710
jb 0x688e
movl %eax, %ecx
imulq %rbx, %rcx
shrq $0x2d, %rcx
addl $0x4, %r12d
cmpl $0x1869f, %eax          # imm = 0x1869F
movl %ecx, %eax
ja 0x66a1
addl $-0x3, %r12d
jmp 0x688e
addl $-0x2, %r12d
jmp 0x66e9
decl %r12d
shrl $0x1f, %r13d
leal (%r12,%r13), %esi
leaq -0xc0(%rbp), %rax
movq %rax, -0xd0(%rbp)
leaq -0xd0(%rbp), %rbx
movq %rbx, %rdi
movl $0x2d, %edx
callq 0x3290
addq -0xd0(%rbp), %r13
movq %r13, %rdi
movl %r12d, %esi
movl %r15d, %edx
callq 0x6b69
leaq (%r14,%r14,4), %rax
movq -0x90(%rbp), %rcx
leaq (%rcx,%rax,2), %r15
movq %r15, %rdi
callq 0x3130
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
movq %r15, %rcx
movq %rax, %r8
callq 0x3260
leaq -0x58(%rbp), %r12
movq %r12, -0x68(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
leaq -0x38(%rbp), %r15
leaq -0x78(%rbp), %rbx
leaq -0x68(%rbp), %rdi
je 0x6781
movq %rdx, -0x68(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x58(%rbp)
jmp 0x6789
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, -0x60(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x8fb(%rip), %rsi       # 0x70a2
callq 0x3410
movq %rbx, -0x88(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x67d2
movq %rdx, -0x88(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x78(%rbp)
jmp 0x67d8
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
movq %rdx, -0x80(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq -0x48(%rbp), %rdi
leaq -0x88(%rbp), %rsi
callq 0x32c0
movq -0x88(%rbp), %rdi
cmpq %rbx, %rdi
je 0x6817
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x3230
movq -0x68(%rbp), %rdi
cmpq %r12, %rdi
movl $0xd1b71759, %ebx       # imm = 0xD1B71759
je 0x6831
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x3230
movq -0xd0(%rbp), %rdi
leaq -0xc0(%rbp), %rax
cmpq %rax, %rdi
je 0x6853
movq -0xc0(%rbp), %rsi
incq %rsi
callq 0x3230
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
leaq -0xb0(%rbp), %rdi
callq 0x30b0
movq -0x48(%rbp), %rdi
cmpq %r15, %rdi
je 0x69fd
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x3230
jmp 0x69fd
addl $-0x2, %r12d
jmp 0x688e
decl %r12d
shrl $0x1f, %r13d
leal (%r12,%r13), %esi
leaq -0x58(%rbp), %rax
movq %rax, -0x68(%rbp)
leaq -0x68(%rbp), %rbx
movq %rbx, %rdi
movl $0x2d, %edx
callq 0x3290
addq -0x68(%rbp), %r13
movq %r13, %rdi
movl %r12d, %esi
movl %r15d, %edx
callq 0x6b69
leaq (%r14,%r14,4), %rax
movq -0x90(%rbp), %rcx
leaq (%rcx,%rax,2), %r15
movq %r15, %rdi
callq 0x3130
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
movq %r15, %rcx
movq %rax, %r8
callq 0x3260
leaq -0x78(%rbp), %r13
movq %r13, -0x88(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
leaq -0x38(%rbp), %r15
leaq -0x58(%rbp), %rbx
je 0x691c
movq %rdx, -0x88(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x78(%rbp)
jmp 0x6924
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
movq %rdx, -0x80(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq -0x88(%rbp), %rdi
leaq 0x759(%rip), %rsi       # 0x70a2
callq 0x3410
movq %r15, -0x48(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x696e
movq %rdx, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0x6975
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
movq %rdx, -0x40(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq -0xb0(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x32c0
movq -0x48(%rbp), %rdi
cmpq %r15, %rdi
je 0x69b1
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x3230
movq -0x88(%rbp), %rdi
cmpq %r13, %rdi
je 0x69c9
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x3230
movq -0x68(%rbp), %rdi
cmpq %rbx, %rdi
je 0x69de
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x3230
movq -0xb0(%rbp), %rsi
movq -0xa8(%rbp), %rdx
movq 0x35e5(%rip), %rdi      # 0x9fd8
callq 0x3270
movl $0xd1b71759, %ebx       # imm = 0xD1B71759
incq %r14
cmpq $0x5, %r14
jne 0x65eb
movq -0xb0(%rbp), %rsi
movq -0xa8(%rbp), %rdx
movq 0x35b9(%rip), %rdi      # 0x9fd8
callq 0x3270
movq -0xa8(%rbp), %r14
leaq 0x1(%r14), %rdi
callq 0x3030
movq %rax, %rbx
movq -0xb0(%rbp), %r15
testq %r14, %r14
je 0x6a51
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x31c0
movb $0x0, (%rbx,%r14)
leaq -0xa0(%rbp), %rax
cmpq %rax, %r15
je 0x6a74
movq -0xa0(%rbp), %rsi
incq %rsi
movq %r15, %rdi
callq 0x3230
movq %rbx, %rax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x6ac2
jmp 0x6ac2
jmp 0x6ac2
movq %rax, %r14
movq -0x88(%rbp), %rdi
cmpq %r13, %rdi
je 0x6aaf
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x3230
jmp 0x6aaf
movq %rax, %r14
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x6b26
movq -0x58(%rbp), %rsi
jmp 0x6b1e
movq %rax, %r14
jmp 0x6b26
movq %rax, %r14
jmp 0x6aeb
jmp 0x6ace
movq %rax, %r14
jmp 0x6b0d
movq %rax, %r14
movq -0x68(%rbp), %rdi
cmpq %r12, %rdi
je 0x6aeb
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x3230
movq -0xd0(%rbp), %rdi
leaq -0xc0(%rbp), %rax
cmpq %rax, %rdi
je 0x6b0d
movq -0xc0(%rbp), %rsi
incq %rsi
callq 0x3230
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x6b26
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x3230
movq -0xb0(%rbp), %rdi
leaq -0xa0(%rbp), %rax
cmpq %rax, %rdi
je 0x6b48
movq -0xa0(%rbp), %rsi
incq %rsi
callq 0x3230
movq %r14, %rdi
callq 0x33e0