// File: /workspace/github_cpp_makefile_star2_O3/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 0xac95
movb $0x7c, %bpl
leaq 0x10(%rsp), %r14
movb %bpl, (%r14)
movq 0x119ce(%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 0x8508(%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 0x84c6(%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 0x8704(%rip), %rsi      # 0x1bdba
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 0x86b9(%rip), %rsi      # 0x1bdc0
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 0x8671(%rip), %rsi      # 0x1bdc3
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 0x862a(%rip), %rsi      # 0x1bdc8
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 0x85e8(%rip), %rsi      # 0x1bdd1
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 0x85a5(%rip), %rsi      # 0x1bdd9
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 0x8564(%rip), %rsi      # 0x1bde3
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 0x8525(%rip), %rsi      # 0x1bdef
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 0xac95
movq %rbx, %rdi
callq 0x186fc
movq 0x8(%rax), %r15
movl 0x10(%rbx), %edi
callq 0xac67
movl %eax, %ebp
movl 0xac(%rbx), %edi
callq 0xac67
movl %eax, 0x44(%rsp)
movq %rbx, %rdi
callq 0x186f0
movl %eax, %edi
callq 0xac67
movl %eax, 0x40(%rsp)
movl 0x94(%rbx), %edi
callq 0xac67
movl %eax, 0x3c(%rsp)
movl 0x98(%rbx), %edi
callq 0xac67
movl %eax, 0x38(%rsp)
cvttsd2si 0xa0(%rbx), %edi
callq 0xac67
movl %eax, 0x34(%rsp)
movl 0xa8(%rbx), %edi
callq 0xac67
movl %eax, 0xc(%rsp)
movq 0x48(%rbx), %rsi
testq %rsi, %rsi
je 0x139b2
leaq 0x10(%rsp), %rdi
callq 0x1a7d8
jmp 0x139d3
leaq 0x20(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x843a(%rip), %rsi      # 0x1bdfc
leaq 0x8437(%rip), %rdx      # 0x1be00
leaq 0x10(%rsp), %rdi
callq 0x654a
movq 0x50(%rbx), %rsi
testq %rsi, %rsi
je 0x139e8
leaq 0x48(%rsp), %rdi
callq 0x1a7d8
jmp 0x13a09
leaq 0x58(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x8404(%rip), %rsi      # 0x1bdfc
leaq 0x8401(%rip), %rdx      # 0x1be00
leaq 0x48(%rsp), %rdi
callq 0x654a
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 0x11581(%rip), %rdi     # 0x24fc0
movl $0x1, %edx
callq 0x42f0
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rax
shlq $0x1f, %r15
movabsq $0x900000000, %rcx      # imm = 0x900000000
addq %r15, %rcx
sarq $0x20, %rcx
movq %rcx, 0x10(%r12,%rax)
movq %rbx, %rdi
callq 0x186fc
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq %r12, %rdi
callq 0x42f0
movabsq $-0x100000000, %rcx     # imm = 0xFFFFFFFF00000000
andq %rcx, %r15
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movabsq $0x800000000, %rdx      # imm = 0x800000000
subq %r15, %rdx
sarq $0x20, %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 0x186f0
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 0xac95
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x13e3f
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x13e5a
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x42a0
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x13e6b
movq %rax, %rbx
jmp 0x13e8e
movq %rax, %rbx
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x13e8e
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x13ea9
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x42a0
movq %rbx, %rdi
callq 0x4430
nop