// File: Serfati[P]Heroes-of-Might-and-Magic-3/Army.cpp
// Function: Army::showArmy[abi:cxx11]()
string Army::showArmy() {
    string showArmy = "",t = " \t\r\f\v";
    Creature c;
    for (int i = 5; i >= 0; i --) {
        if ( armyList[i] != 0 ) {
            showArmy += std::to_string(armyList[i]);
            showArmy += " " + c.creaType(i) + " ";
        }
    }
    showArmy.erase(showArmy.find_last_not_of(t) + 1);
    showArmy += ".";
    return showArmy;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x120, %rsp            # imm = 0x120
movq %rdi, -0x100(%rbp)
movq %rdi, %rax
movq %rax, -0x110(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x108(%rbp)
movb $0x0, -0x11(%rbp)
leaq -0x12(%rbp), %rdi
movq %rdi, -0xf8(%rbp)
callq 0x4530
movq -0x100(%rbp), %rdi
movq -0xf8(%rbp), %rdx
leaq 0x7393(%rip), %rsi      # 0x1352b
callq 0x4c10
jmp 0xc19f
leaq -0x12(%rbp), %rdi
callq 0x4360
leaq -0x49(%rbp), %rdi
movq %rdi, -0x118(%rbp)
callq 0x4530
movq -0x118(%rbp), %rdx
leaq 0x7360(%rip), %rsi      # 0x13526
leaq -0x48(%rbp), %rdi
callq 0x4c10
jmp 0xc1d1
leaq -0x49(%rbp), %rdi
callq 0x4360
leaq -0x68(%rbp), %rdi
callq 0x11b00
jmp 0xc1e5
movl $0x5, -0x6c(%rbp)
cmpl $0x0, -0x6c(%rbp)
jl 0xc3ac
movq -0x108(%rbp), %rdi
movslq -0x6c(%rbp), %rsi
callq 0xcde0
cmpl $0x0, (%rax)
je 0xc39c
movq -0x108(%rbp), %rdi
movslq -0x6c(%rbp), %rsi
callq 0xcde0
movl (%rax), %esi
leaq -0x90(%rbp), %rdi
callq 0xcee0
jmp 0xc22f
movq -0x100(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0x43f0
jmp 0xc244
leaq -0x90(%rbp), %rdi
callq 0x4200
movl -0x6c(%rbp), %edx
leaq -0xf0(%rbp), %rdi
leaq -0x68(%rbp), %rsi
callq 0x11d20
jmp 0xc265
leaq 0x7541(%rip), %rsi      # 0x137ad
leaq -0xd0(%rbp), %rdi
leaq -0xf0(%rbp), %rdx
callq 0xd000
jmp 0xc281
leaq 0x7525(%rip), %rdx      # 0x137ad
leaq -0xb0(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
callq 0x8920
jmp 0xc29d
movq -0x100(%rbp), %rdi
leaq -0xb0(%rbp), %rsi
callq 0x43f0
jmp 0xc2b2
leaq -0xb0(%rbp), %rdi
callq 0x4200
leaq -0xd0(%rbp), %rdi
callq 0x4200
leaq -0xf0(%rbp), %rdi
callq 0x4200
jmp 0xc39c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
leaq -0x12(%rbp), %rdi
callq 0x4360
jmp 0xc454
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
leaq -0x49(%rbp), %rdi
callq 0x4360
jmp 0xc448
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
jmp 0xc421
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
jmp 0xc418
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
leaq -0x90(%rbp), %rdi
callq 0x4200
jmp 0xc418
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
jmp 0xc38e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
jmp 0xc382
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
leaq -0xb0(%rbp), %rdi
callq 0x4200
leaq -0xd0(%rbp), %rdi
callq 0x4200
leaq -0xf0(%rbp), %rdi
callq 0x4200
jmp 0xc418
jmp 0xc39e
movl -0x6c(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x6c(%rbp)
jmp 0xc1ec
movq -0x100(%rbp), %rdi
leaq -0x48(%rbp), %rsi
movq $-0x1, %rdx
movq %rdx, -0x120(%rbp)
callq 0x4580
movq -0x100(%rbp), %rdi
movq -0x120(%rbp), %rdx
movq %rax, %rsi
incq %rsi
callq 0x40a0
jmp 0xc3e5
movq -0x100(%rbp), %rdi
leaq 0x6ca8(%rip), %rsi      # 0x1309b
callq 0x4300
jmp 0xc3fa
movb $0x1, -0x11(%rbp)
leaq -0x68(%rbp), %rdi
callq 0x8a20
leaq -0x48(%rbp), %rdi
callq 0x4200
testb $0x1, -0x11(%rbp)
jne 0xc438
jmp 0xc42c
leaq -0x68(%rbp), %rdi
callq 0x8a20
leaq -0x48(%rbp), %rdi
callq 0x4200
jmp 0xc448
movq -0x100(%rbp), %rdi
callq 0x4200
movq -0x110(%rbp), %rax
addq $0x120, %rsp            # imm = 0x120
popq %rbp
retq
movq -0x100(%rbp), %rdi
callq 0x4200
movq -0x20(%rbp), %rdi
callq 0x4520
nopl (%rax)