// File: /workspace/github_cpp_makefile_star2_O1/arisKoutsou[P]oopproj/./src/livings/Hero.cpp
// Function: Hero::printStats() const
void Hero :: printStats() const {
  printHeroFrame();
  cout << '|'
       << setw(10) << "NAME" << setw(7) << '|'
       << setw(6) << "LEVEL" << setw(2) << '|'
	   << setw(6) << "MONEY"  << setw(3) << '|'
       << setw(5) << "HP" << setw(4) << '|'
       << setw(6) << "MANA" << setw(3) << '|'
       << setw(10) << "STRENGTH" << setw(3) << '|'
       << setw(9) << "AGILITY" << setw(3) << '|'
       << setw(11) << "DEXTERITY" << setw(3) << '|'
       << setw(13) << "LEFT WEAPON" << setw(3) << '|'
       << setw(14) << "RIGHT WEAPON" << setw(3) << '|'
       << endl;
  printHeroFrame();
  size_t nameLength = getName().length();
  int levelDigits = getDigits(level);
  int goldDigits = getDigits(getMoney());
  int hpDigits = getDigits(getHealthPower());
  int manaDigits = getDigits(getMagicPower());
  int strengthDigits = getDigits(getStrength());
  int agilityDigits = getDigits(getAgility()) + 2;
  int dexDigits = getDigits(getDexterity());
  string leftWeapon = (leftHandWeapon == NULL) ? "NONE" : leftHandWeapon->getName();
  string rightWeapon = (rightHandWeapon == NULL) ? "NONE" : rightHandWeapon->getName();
  size_t leftWeaponLength = (leftHandWeapon == NULL) ? 4 : leftWeapon.length();
  size_t rightWeaponLength = (rightHandWeapon == NULL) ? 4 : rightWeapon.length();
  cout << '|'
       << setw(9 + nameLength/2) << getName() << setw(8 - nameLength/2) << '|'
       << setw(4 + levelDigits/2) << level << setw(4 - levelDigits/2) << '|'
	   << setw(4 + goldDigits/2) << getMoney() << setw(4 - levelDigits/2) << '|'
       << setw(5 + hpDigits/2) << getHealthPower() << setw(4 - hpDigits/2) << '|'
       << setw(4 + manaDigits/2) << getMagicPower() << setw(5 - manaDigits/2) << '|'
       << setw(7 + strengthDigits/2) << getStrength() << setw(6 - strengthDigits/2) << '|'
       << setw(6 + agilityDigits/2) << setprecision(2) << getAgility() << setw(6 - agilityDigits/2) << '|'
       << setw(7 + dexDigits/2) << getDexterity() << setw(9 - dexDigits) << '|'
       << setw(8 + leftWeaponLength/2) << leftWeapon << setw(8 - leftWeaponLength/2) << '|'
       << setw(9 + rightWeaponLength/2) << rightWeapon << setw(8 - rightWeaponLength/2) << '|'
       << endl;
  printHeroFrame();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdi, %rbx
callq 0xac2a
movb $0x7c, %bpl
leaq 0x10(%rsp), %r14
movb %bpl, (%r14)
movq 0x11a36(%rip), %rdi     # 0x24fc0
movl $0x1, %edx
movq %r14, %rsi
callq 0x42f0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rax
movl $0xa, %ecx
movq %rcx, 0x10(%r15,%rax)
leaq 0x8570(%rip), %rsi      # 0x1bb22
movl $0x4, %edx
movq %r15, %rdi
callq 0x42f0
movq (%r15), %rax
movq -0x18(%rax), %rax
movq $0x7, 0x10(%r15,%rax)
movb %bpl, (%r14)
leaq 0x10(%rsp), %r14
movl $0x1, %edx
movq %r15, %rdi
movq %r14, %rsi
callq 0x42f0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rax
movl $0x6, %r13d
movq %r13, 0x10(%r15,%rax)
leaq 0x852e(%rip), %rsi      # 0x1bb31
movl $0x5, %edx
movq %r15, %rdi
callq 0x42f0
movq (%r15), %rax
movq -0x18(%rax), %rax
movq $0x2, 0x10(%r15,%rax)
movb %bpl, (%r14)
leaq 0x10(%rsp), %r14
movl $0x1, %edx
movq %r15, %rdi
movq %r14, %rsi
callq 0x42f0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rax
movq %r13, 0x10(%r15,%rax)
leaq 0x875c(%rip), %rsi      # 0x1bdaa
movl $0x5, %edx
movq %r15, %rdi
callq 0x42f0
movq (%r15), %rax
movq -0x18(%rax), %rax
movl $0x3, %r12d
movq %r12, 0x10(%r15,%rax)
movb %bpl, (%r14)
leaq 0x10(%rsp), %r14
movl $0x1, %edx
movq %r15, %rdi
movq %r14, %rsi
callq 0x42f0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rax
movq $0x5, 0x10(%r15,%rax)
leaq 0x8711(%rip), %rsi      # 0x1bdb0
movl $0x2, %edx
movq %r15, %rdi
callq 0x42f0
movq (%r15), %rax
movq -0x18(%rax), %rax
movq $0x4, 0x10(%r15,%rax)
movb %bpl, (%r14)
leaq 0x10(%rsp), %r14
movl $0x1, %edx
movq %r15, %rdi
movq %r14, %rsi
callq 0x42f0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rax
movq %r13, 0x10(%r15,%rax)
leaq 0x86c9(%rip), %rsi      # 0x1bdb3
movl $0x4, %edx
movq %r15, %rdi
callq 0x42f0
movq (%r15), %rax
movq -0x18(%rax), %rax
movq %r12, 0x10(%r15,%rax)
movb %bpl, (%r14)
leaq 0x10(%rsp), %r14
movl $0x1, %edx
movq %r15, %rdi
movq %r14, %rsi
callq 0x42f0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rax
movl $0xa, %ecx
movq %rcx, 0x10(%r15,%rax)
leaq 0x8682(%rip), %rsi      # 0x1bdb8
movl $0x8, %edx
movq %r15, %rdi
callq 0x42f0
movq (%r15), %rax
movq -0x18(%rax), %rax
movq %r12, 0x10(%r15,%rax)
movb %bpl, (%r14)
leaq 0x10(%rsp), %r14
movl $0x1, %edx
movq %r15, %rdi
movq %r14, %rsi
callq 0x42f0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rax
movq $0x9, 0x10(%r15,%rax)
leaq 0x8640(%rip), %rsi      # 0x1bdc1
movl $0x7, %edx
movq %r15, %rdi
callq 0x42f0
movq (%r15), %rax
movq -0x18(%rax), %rax
movq %r12, 0x10(%r15,%rax)
movb %bpl, (%r14)
leaq 0x10(%rsp), %r14
movl $0x1, %edx
movq %r15, %rdi
movq %r14, %rsi
callq 0x42f0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rax
movq $0xb, 0x10(%r15,%rax)
leaq 0x85fd(%rip), %rsi      # 0x1bdc9
movl $0x9, %edx
movq %r15, %rdi
callq 0x42f0
movq (%r15), %rax
movq -0x18(%rax), %rax
movq %r12, 0x10(%r15,%rax)
movb %bpl, (%r14)
leaq 0x10(%rsp), %r14
movl $0x1, %edx
movq %r15, %rdi
movq %r14, %rsi
callq 0x42f0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rax
movq $0xd, 0x10(%r15,%rax)
leaq 0x85bc(%rip), %rsi      # 0x1bdd3
movl $0xb, %edx
movq %r15, %rdi
callq 0x42f0
movq (%r15), %rax
movq -0x18(%rax), %rax
movq %r12, 0x10(%r15,%rax)
movb %bpl, (%r14)
leaq 0x10(%rsp), %r14
movl $0x1, %edx
movq %r15, %rdi
movq %r14, %rsi
callq 0x42f0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rax
movq $0xe, 0x10(%r15,%rax)
leaq 0x857d(%rip), %rsi      # 0x1bddf
movl $0xc, %edx
movq %r15, %rdi
callq 0x42f0
movq (%r15), %rax
movq -0x18(%rax), %rax
movq %r12, 0x10(%r15,%rax)
movb %bpl, (%r14)
leaq 0x10(%rsp), %rsi
movl $0x1, %edx
movq %r15, %rdi
callq 0x42f0
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x4270
movsbl %al, %esi
movq %r14, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x41b0
callq 0xac2a
movq %rbx, %rdi
callq 0x18694
movq 0x8(%rax), %r15
movl 0x10(%rbx), %edi
callq 0xabfc
movl %eax, %ebp
movl 0xac(%rbx), %edi
callq 0xabfc
movl %eax, 0x44(%rsp)
movq %rbx, %rdi
callq 0x18688
movl %eax, %edi
callq 0xabfc
movl %eax, 0x40(%rsp)
movl 0x94(%rbx), %edi
callq 0xabfc
movl %eax, 0x3c(%rsp)
movl 0x98(%rbx), %edi
callq 0xabfc
movl %eax, 0x38(%rsp)
cvttsd2si 0xa0(%rbx), %edi
callq 0xabfc
movl %eax, 0x34(%rsp)
movl 0xa8(%rbx), %edi
callq 0xabfc
movl %eax, 0xc(%rsp)
movq 0x48(%rbx), %rsi
testq %rsi, %rsi
je 0x1394a
leaq 0x10(%rsp), %rdi
callq 0x1a714
jmp 0x1396b
leaq 0x20(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x8492(%rip), %rsi      # 0x1bdec
leaq 0x848f(%rip), %rdx      # 0x1bdf0
leaq 0x10(%rsp), %rdi
callq 0x6520
movq 0x50(%rbx), %rsi
testq %rsi, %rsi
je 0x13980
leaq 0x48(%rsp), %rdi
callq 0x1a714
jmp 0x139a1
leaq 0x58(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x845c(%rip), %rsi      # 0x1bdec
leaq 0x8459(%rip), %rdx      # 0x1bdf0
leaq 0x48(%rsp), %rdi
callq 0x6520
movq 0x18(%rsp), %r14
shrq %r14
cmpq $0x0, 0x48(%rbx)
movl $0x2, %eax
cmovel %eax, %r14d
movq 0x50(%rsp), %r13
shrq %r13
cmpq $0x0, 0x50(%rbx)
cmovel %eax, %r13d
leaq 0xb(%rsp), %rsi
movb $0x7c, (%rsi)
movq 0x115e9(%rip), %rdi     # 0x24fc0
movl $0x1, %edx
callq 0x42f0
movq %rax, %r12
shrq %r15
movq (%rax), %rax
movq -0x18(%rax), %rax
leal 0x9(%r15), %ecx
movslq %ecx, %rcx
movq %rcx, 0x10(%r12,%rax)
movq %rbx, %rdi
callq 0x18694
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq %r12, %rdi
callq 0x42f0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movl $0x8, %edx
subl %r15d, %edx
movslq %edx, %rdx
movq %rdx, 0x10(%rax,%rcx)
leaq 0xb(%rsp), %rsi
movb $0x7c, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x42f0
movl %ebp, %r15d
shrl $0x1f, %r15d
addl %ebp, %r15d
sarl %r15d
leal 0x4(%r15), %ecx
movq (%rax), %rdx
movq -0x18(%rdx), %rdx
movslq %ecx, %rcx
movq %rcx, 0x10(%rax,%rdx)
movl 0x10(%rbx), %esi
movq %rax, %rdi
callq 0x4420
movl $0x4, %ecx
subl %r15d, %ecx
movq (%rax), %rdx
movq -0x18(%rdx), %rdx
movslq %ecx, %r15
movq %r15, 0x10(%rax,%rdx)
leaq 0xb(%rsp), %rsi
movb $0x7c, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x42f0
movl 0x44(%rsp), %edx
movl %edx, %ecx
shrl $0x1f, %ecx
addl %edx, %ecx
sarl %ecx
addl $0x4, %ecx
movq (%rax), %rdx
movq -0x18(%rdx), %rdx
movslq %ecx, %rcx
movq %rcx, 0x10(%rax,%rdx)
movl 0xac(%rbx), %esi
movq %rax, %rdi
callq 0x4420
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movq %r15, 0x10(%rax,%rcx)
leaq 0xb(%rsp), %rsi
movb $0x7c, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x42f0
movq %rax, %r15
movl 0x40(%rsp), %eax
movl %eax, %r12d
shrl $0x1f, %r12d
addl %eax, %r12d
sarl %r12d
leal 0x5(%r12), %eax
movq (%r15), %rcx
movq -0x18(%rcx), %rcx
cltq
movq %rax, 0x10(%r15,%rcx)
movq %rbx, %rdi
callq 0x18688
movq %r15, %rdi
movl %eax, %esi
callq 0x4420
movl $0x4, %ecx
subl %r12d, %ecx
movq (%rax), %rdx
movq -0x18(%rdx), %rdx
movslq %ecx, %rcx
movq %rcx, 0x10(%rax,%rdx)
leaq 0xb(%rsp), %rsi
movb $0x7c, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x42f0
movl 0x3c(%rsp), %ecx
movl %ecx, %r15d
shrl $0x1f, %r15d
addl %ecx, %r15d
sarl %r15d
leal 0x4(%r15), %ecx
movq (%rax), %rdx
movq -0x18(%rdx), %rdx
movslq %ecx, %rcx
movq %rcx, 0x10(%rax,%rdx)
movl 0x94(%rbx), %esi
movq %rax, %rdi
callq 0x4420
movl $0x5, %ecx
subl %r15d, %ecx
movq (%rax), %rdx
movq -0x18(%rdx), %rdx
movslq %ecx, %rcx
movq %rcx, 0x10(%rax,%rdx)
leaq 0xb(%rsp), %rsi
movb $0x7c, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x42f0
movl 0x38(%rsp), %ecx
movl %ecx, %r15d
shrl $0x1f, %r15d
addl %ecx, %r15d
sarl %r15d
leal 0x7(%r15), %ecx
movq (%rax), %rdx
movq -0x18(%rdx), %rdx
movslq %ecx, %rcx
movq %rcx, 0x10(%rax,%rdx)
movl 0x98(%rbx), %esi
movq %rax, %rdi
callq 0x4420
movl $0x6, %ecx
subl %r15d, %ecx
movq (%rax), %rdx
movq -0x18(%rdx), %rdx
movslq %ecx, %rcx
movq %rcx, 0x10(%rax,%rdx)
leaq 0xb(%rsp), %rsi
movb $0x7c, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x42f0
movl 0x34(%rsp), %ecx
addl $0x2, %ecx
movl %ecx, %r15d
shrl $0x1f, %r15d
addl %ecx, %r15d
sarl %r15d
leal 0x6(%r15), %ecx
movq (%rax), %rdx
movq -0x18(%rdx), %rsi
movslq %ecx, %rcx
movq %rcx, 0x10(%rax,%rsi)
movq -0x18(%rdx), %rcx
movq $0x2, 0x8(%rax,%rcx)
movsd 0xa0(%rbx), %xmm0
movq %rax, %rdi
callq 0x43d0
movl $0x6, %ecx
subl %r15d, %ecx
movq (%rax), %rdx
movq -0x18(%rdx), %rdx
movslq %ecx, %rcx
movq %rcx, 0x10(%rax,%rdx)
leaq 0xb(%rsp), %rsi
movb $0x7c, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x42f0
movl 0xc(%rsp), %edx
movl %edx, %ecx
shrl $0x1f, %ecx
addl %edx, %ecx
sarl %ecx
addl $0x7, %ecx
movq (%rax), %rdx
movq -0x18(%rdx), %rdx
movslq %ecx, %rcx
movq %rcx, 0x10(%rax,%rdx)
movl 0xa8(%rbx), %esi
movq %rax, %rdi
callq 0x4420
movl $0x9, %ecx
subl 0xc(%rsp), %ecx
movq (%rax), %rdx
movq -0x18(%rdx), %rdx
movslq %ecx, %rcx
movq %rcx, 0x10(%rax,%rdx)
leaq 0xb(%rsp), %rsi
movb $0x7c, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x42f0
leal 0x8(%r14), %ecx
movq (%rax), %rdx
movq -0x18(%rdx), %rdx
movslq %ecx, %rcx
movq %rcx, 0x10(%rax,%rdx)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %rax, %rdi
callq 0x42f0
movl $0x8, %ecx
subl %r14d, %ecx
movq (%rax), %rdx
movq -0x18(%rdx), %rdx
movslq %ecx, %rcx
movq %rcx, 0x10(%rax,%rdx)
leaq 0xb(%rsp), %rsi
movb $0x7c, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x42f0
leal 0x9(%r13), %ecx
movq (%rax), %rdx
movq -0x18(%rdx), %rdx
movslq %ecx, %rcx
movq %rcx, 0x10(%rax,%rdx)
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
movq %rax, %rdi
callq 0x42f0
movl $0x8, %ecx
subl %r13d, %ecx
movq (%rax), %rdx
movq -0x18(%rdx), %rdx
movslq %ecx, %rcx
movq %rcx, 0x10(%rax,%rdx)
leaq 0xb(%rsp), %rsi
movb $0x7c, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x42f0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x4270
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x41b0
callq 0xac2a
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x13db9
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x13dd4
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x42a0
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x13e06
movq %rax, %rbx
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x13e06
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x13e21
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x42a0
movq %rbx, %rdi
callq 0x4430
nop