// File: /workspace/github_cpp_makefile_star2_O1/Matteo-Grellier[P]RPG/Menu.cpp
// Function: Menu::targetListing[abi:cxx11]()
string Menu::targetListing() {
    string buffStr = "";
    int buffInt = 0;

    for (Character* c : Character::charactersList) {

        if(c->getCurrentHp() != 0) {
            buffStr += to_string(buffInt) + ". " + c->name + " | ";
        }

        buffInt++;

    }

    return buffStr;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
leaq 0x10(%rdi), %rax
movq %rax, -0x58(%rbp)
movq %rax, (%rdi)
leaq 0x14f8(%rip), %rdx      # 0x9532
movq %rdi, -0x30(%rbp)
movq %rdx, %rsi
callq 0x340c
leaq 0x5143(%rip), %rax      # 0xd190
movq (%rax), %r15
movq 0x8(%rax), %rax
movq %rax, -0xc0(%rbp)
cmpq %rax, %r15
je 0x82a1
xorl %ebx, %ebx
movl $0xd1b71759, %r14d      # imm = 0xD1B71759
movq (%r15), %r12
movq %r12, %rdi
callq 0x3d64
testl %eax, %eax
je 0x828e
movl $0x1, %r13d
cmpl $0xa, %ebx
jb 0x80cb
movl $0x4, %r13d
movl %ebx, %eax
cmpl $0x63, %eax
jbe 0x80c2
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0x80c8
cmpl $0x2710, %eax           # imm = 0x2710
jb 0x80cb
movl %eax, %ecx
imulq %r14, %rcx
shrq $0x2d, %rcx
addl $0x4, %r13d
cmpl $0x1869f, %eax          # imm = 0x1869F
movl %ecx, %eax
ja 0x8092
addl $-0x3, %r13d
jmp 0x80cb
addl $-0x2, %r13d
jmp 0x80cb
decl %r13d
movl %r13d, %esi
leaq -0xa8(%rbp), %rax
movq %rax, -0xb8(%rbp)
leaq -0xb8(%rbp), %r14
movq %r14, %rdi
movl $0x2d, %edx
callq 0x21f0
movq -0xb8(%rbp), %rdi
movl %r13d, %esi
movl %ebx, %edx
callq 0x4cc2
movq %r14, %rdi
leaq 0x1425(%rip), %rsi      # 0x9530
callq 0x2290
leaq -0x68(%rbp), %r13
movq %r13, -0x78(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
movl $0xd1b71759, %r14d      # imm = 0xD1B71759
je 0x813a
movq %rdx, -0x78(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x68(%rbp)
jmp 0x8142
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
movq %rdx, -0x70(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x8(%r12), %rsi
movq 0x10(%r12), %rdx
leaq -0x78(%rbp), %rdi
callq 0x2080
leaq -0x88(%rbp), %r12
movq %r12, -0x98(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x819c
movq %rdx, -0x98(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x88(%rbp)
jmp 0x81a4
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, -0x90(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq -0x98(%rbp), %rdi
leaq 0x1333(%rip), %rsi      # 0x94ff
callq 0x2290
leaq -0x40(%rbp), %rsi
movq %rsi, -0x50(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x81f5
movq %rdx, -0x50(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x40(%rbp)
jmp 0x81fb
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, -0x48(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
movq -0x30(%rbp), %rdi
callq 0x2080
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x823c
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x21c0
movq -0x98(%rbp), %rdi
cmpq %r12, %rdi
je 0x8257
movq -0x88(%rbp), %rsi
incq %rsi
callq 0x21c0
movq -0x78(%rbp), %rdi
cmpq %r13, %rdi
je 0x826c
movq -0x68(%rbp), %rsi
incq %rsi
callq 0x21c0
movq -0xb8(%rbp), %rdi
leaq -0xa8(%rbp), %rax
cmpq %rax, %rdi
je 0x828e
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x21c0
incl %ebx
addq $0x8, %r15
cmpq -0xc0(%rbp), %r15
jne 0x806c
movq -0x30(%rbp), %rax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x82e4
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x21c0
jmp 0x82e4
jmp 0x8343
movq %rax, %r14
jmp 0x831f
movq %rax, %r14
jmp 0x8306
movq %rax, %r14
movq -0x98(%rbp), %rdi
leaq -0x88(%rbp), %rax
cmpq %rax, %rdi
je 0x8306
movq -0x88(%rbp), %rsi
incq %rsi
callq 0x21c0
movq -0x78(%rbp), %rdi
leaq -0x68(%rbp), %rax
cmpq %rax, %rdi
je 0x831f
movq -0x68(%rbp), %rsi
incq %rsi
callq 0x21c0
movq -0xb8(%rbp), %rdi
leaq -0xa8(%rbp), %rax
cmpq %rax, %rdi
je 0x8346
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x21c0
jmp 0x8346
movq %rax, %r14
movq -0x30(%rbp), %rax
movq (%rax), %rdi
cmpq -0x58(%rbp), %rdi
je 0x8362
movq -0x58(%rbp), %rax
movq (%rax), %rsi
incq %rsi
callq 0x21c0
movq %r14, %rdi
callq 0x2270