// File: /workspace/github_cpp_makefile_star2_O1/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 0x69f1
cmpq $0x0, -0xa8(%rbp)
je 0x6672
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 0x66dd
movl $0x4, %r12d
movl %r15d, %eax
cmpl $0x63, %eax
jbe 0x66d4
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0x66da
cmpl $0x2710, %eax           # imm = 0x2710
jb 0x66dd
movl %eax, %ecx
imulq %rbx, %rcx
shrq $0x2d, %rcx
addl $0x4, %r12d
cmpl $0x1869f, %eax          # imm = 0x1869F
movl %ecx, %eax
ja 0x6636
addl $-0x3, %r12d
jmp 0x66dd
movl %r13d, %r15d
negl %r15d
cmovsl %r13d, %r15d
movl $0x1, %r12d
cmpl $0xa, %r15d
jb 0x6882
movl $0x4, %r12d
movl %r15d, %eax
cmpl $0x63, %eax
jbe 0x6879
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0x687f
cmpl $0x2710, %eax           # imm = 0x2710
jb 0x6882
movl %eax, %ecx
imulq %rbx, %rcx
shrq $0x2d, %rcx
addl $0x4, %r12d
cmpl $0x1869f, %eax          # imm = 0x1869F
movl %ecx, %eax
ja 0x6695
addl $-0x3, %r12d
jmp 0x6882
addl $-0x2, %r12d
jmp 0x66dd
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 0x32a0
addq -0xd0(%rbp), %r13
movq %r13, %rdi
movl %r12d, %esi
movl %r15d, %edx
callq 0x6b5d
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 0x3270
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 0x6775
movq %rdx, -0x68(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x58(%rbp)
jmp 0x677d
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 0x907(%rip), %rsi       # 0x70a2
callq 0x3420
movq %rbx, -0x88(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x67c6
movq %rdx, -0x88(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x78(%rbp)
jmp 0x67cc
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 0x32d0
movq -0x88(%rbp), %rdi
cmpq %rbx, %rdi
je 0x680b
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x3240
movq -0x68(%rbp), %rdi
cmpq %r12, %rdi
movl $0xd1b71759, %ebx       # imm = 0xD1B71759
je 0x6825
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x3240
movq -0xd0(%rbp), %rdi
leaq -0xc0(%rbp), %rax
cmpq %rax, %rdi
je 0x6847
movq -0xc0(%rbp), %rsi
incq %rsi
callq 0x3240
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
leaq -0xb0(%rbp), %rdi
callq 0x30b0
movq -0x48(%rbp), %rdi
cmpq %r15, %rdi
je 0x69f1
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x3240
jmp 0x69f1
addl $-0x2, %r12d
jmp 0x6882
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 0x32a0
addq -0x68(%rbp), %r13
movq %r13, %rdi
movl %r12d, %esi
movl %r15d, %edx
callq 0x6b5d
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 0x3270
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 0x6910
movq %rdx, -0x88(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x78(%rbp)
jmp 0x6918
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 0x765(%rip), %rsi       # 0x70a2
callq 0x3420
movq %r15, -0x48(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x6962
movq %rdx, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0x6969
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 0x32d0
movq -0x48(%rbp), %rdi
cmpq %r15, %rdi
je 0x69a5
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x3240
movq -0x88(%rbp), %rdi
cmpq %r13, %rdi
je 0x69bd
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x3240
movq -0x68(%rbp), %rdi
cmpq %rbx, %rdi
je 0x69d2
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x3240
movq -0xb0(%rbp), %rsi
movq -0xa8(%rbp), %rdx
movq 0x35f1(%rip), %rdi      # 0x9fd8
callq 0x3280
movl $0xd1b71759, %ebx       # imm = 0xD1B71759
incq %r14
cmpq $0x5, %r14
jne 0x65df
movq -0xb0(%rbp), %rsi
movq -0xa8(%rbp), %rdx
movq 0x35c5(%rip), %rdi      # 0x9fd8
callq 0x3280
movq -0xa8(%rbp), %r14
leaq 0x1(%r14), %rdi
callq 0x3030
movq %rax, %rbx
movq -0xb0(%rbp), %r15
testq %r14, %r14
je 0x6a45
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x31d0
movb $0x0, (%rbx,%r14)
leaq -0xa0(%rbp), %rax
cmpq %rax, %r15
je 0x6a68
movq -0xa0(%rbp), %rsi
incq %rsi
movq %r15, %rdi
callq 0x3240
movq %rbx, %rax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x6ab6
jmp 0x6ab6
jmp 0x6ab6
movq %rax, %r14
movq -0x88(%rbp), %rdi
cmpq %r13, %rdi
je 0x6aa3
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x3240
jmp 0x6aa3
movq %rax, %r14
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x6b1a
movq -0x58(%rbp), %rsi
jmp 0x6b12
movq %rax, %r14
jmp 0x6b1a
movq %rax, %r14
jmp 0x6adf
jmp 0x6ac2
movq %rax, %r14
jmp 0x6b01
movq %rax, %r14
movq -0x68(%rbp), %rdi
cmpq %r12, %rdi
je 0x6adf
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x3240
movq -0xd0(%rbp), %rdi
leaq -0xc0(%rbp), %rax
cmpq %rax, %rdi
je 0x6b01
movq -0xc0(%rbp), %rsi
incq %rsi
callq 0x3240
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x6b1a
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x3240
movq -0xb0(%rbp), %rdi
leaq -0xa0(%rbp), %rax
cmpq %rax, %rdi
je 0x6b3c
movq -0xa0(%rbp), %rsi
incq %rsi
callq 0x3240
movq %r14, %rdi
callq 0x33f0