// File: /workspace/github_cpp_makefile_star2_O2/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 0x8ee5
movq 0x11e9f(%rip), %rdi     # 0x20fc0
pushq $0x7c
popq %rbp
movl %ebp, %esi
callq 0x42c0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
pushq $0xa
popq %r15
movq %r15, 0x10(%rax,%rcx)
leaq 0x69d0(%rip), %rsi      # 0x15b12
movq %rax, %rdi
callq 0x4250
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movq $0x7, 0x10(%rax,%rcx)
movq %rax, %rdi
movl %ebp, %esi
callq 0x42c0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
pushq $0x6
popq %r12
movq %r12, 0x10(%rax,%rcx)
leaq 0x69a6(%rip), %rsi      # 0x15b21
movq %rax, %rdi
callq 0x4250
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movq $0x2, 0x10(%rax,%rcx)
movq %rax, %rdi
movl %ebp, %esi
callq 0x42c0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movq %r12, 0x10(%rax,%rcx)
leaq 0x6bfa(%rip), %rsi      # 0x15daa
movq %rax, %rdi
callq 0x4250
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
pushq $0x3
popq %r14
movq %r14, 0x10(%rax,%rcx)
movq %rax, %rdi
movl %ebp, %esi
callq 0x42c0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movq $0x5, 0x10(%rax,%rcx)
leaq 0x6bc7(%rip), %rsi      # 0x15db0
movq %rax, %rdi
callq 0x4250
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movq $0x4, 0x10(%rax,%rcx)
movq %rax, %rdi
movl %ebp, %esi
callq 0x42c0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movq %r12, 0x10(%rax,%rcx)
leaq 0x6b95(%rip), %rsi      # 0x15db3
movq %rax, %rdi
callq 0x4250
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movq %r14, 0x10(%rax,%rcx)
movq %rax, %rdi
movl %ebp, %esi
callq 0x42c0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movq %r15, 0x10(%rax,%rcx)
leaq 0x6b69(%rip), %rsi      # 0x15db8
movq %rax, %rdi
callq 0x4250
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movq %r14, 0x10(%rax,%rcx)
movq %rax, %rdi
movl %ebp, %esi
callq 0x42c0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movq $0x9, 0x10(%rax,%rcx)
leaq 0x6b3d(%rip), %rsi      # 0x15dc1
movq %rax, %rdi
callq 0x4250
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movq %r14, 0x10(%rax,%rcx)
movq %rax, %rdi
movl %ebp, %esi
callq 0x42c0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movq $0xb, 0x10(%rax,%rcx)
leaq 0x6b10(%rip), %rsi      # 0x15dc9
movq %rax, %rdi
callq 0x4250
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movq %r14, 0x10(%rax,%rcx)
movq %rax, %rdi
movl %ebp, %esi
callq 0x42c0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movq $0xd, 0x10(%rax,%rcx)
leaq 0x6ae5(%rip), %rsi      # 0x15dd3
movq %rax, %rdi
callq 0x4250
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movq %r14, 0x10(%rax,%rcx)
movq %rax, %rdi
movl %ebp, %esi
callq 0x42c0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movq $0xe, 0x10(%rax,%rcx)
leaq 0x6abc(%rip), %rsi      # 0x15ddf
movq %rax, %rdi
callq 0x4250
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movq %r14, 0x10(%rax,%rcx)
movq %rax, %rdi
movl %ebp, %esi
callq 0x42c0
movq %rax, %rdi
callq 0x4120
callq 0x8ee5
movq %rbx, %rdi
callq 0x12a64
movq 0x8(%rax), %r15
movl 0x10(%rbx), %edi
callq 0x8ec9
movl %eax, %r12d
movl 0xac(%rbx), %edi
callq 0x8ec9
movl %eax, 0x1c(%rsp)
movq %rbx, %rdi
callq 0x12a58
movl %eax, %edi
callq 0x8ec9
movl %eax, 0x18(%rsp)
movl 0x94(%rbx), %edi
callq 0x8ec9
movl %eax, %r13d
movl 0x98(%rbx), %edi
callq 0x8ec9
movl %eax, %ebp
cvttsd2si 0xa0(%rbx), %edi
callq 0x8ec9
movl %eax, %r14d
movl 0xa8(%rbx), %edi
callq 0x8ec9
movl %eax, 0xc(%rsp)
movq 0x48(%rbx), %rsi
testq %rsi, %rsi
je 0xf3d6
leaq 0x48(%rsp), %rdi
callq 0x14584
jmp 0xf3ec
leaq 0x6a0f(%rip), %rsi      # 0x15dec
leaq 0x48(%rsp), %rdi
leaq 0x28(%rsp), %rdx
callq 0x578c
movq 0x50(%rbx), %rsi
testq %rsi, %rsi
movl %ebp, 0x10(%rsp)
movl %r13d, 0x14(%rsp)
je 0xf40a
leaq 0x28(%rsp), %rdi
callq 0x14584
jmp 0xf420
leaq 0x69db(%rip), %rsi      # 0x15dec
leaq 0x28(%rsp), %rdi
leaq 0xb(%rsp), %rdx
callq 0x578c
movq 0x50(%rsp), %r13
shrq %r13
cmpq $0x0, 0x48(%rbx)
pushq $0x2
popq %rcx
cmovel %ecx, %r13d
movq 0x30(%rsp), %rax
shrq %rax
cmpq $0x0, 0x50(%rbx)
cmovel %ecx, %eax
movq %rax, 0x20(%rsp)
movq 0x11b70(%rip), %rdi     # 0x20fc0
pushq $0x7c
popq %rsi
callq 0x42c0
movq %rax, %rbp
movq (%rax), %rax
movq -0x18(%rax), %rax
shlq $0x1f, %r15
movabsq $0x900000000, %rcx      # imm = 0x900000000
addq %r15, %rcx
sarq $0x20, %rcx
movq %rcx, 0x10(%rbp,%rax)
movq %rbx, %rdi
callq 0x12a64
movq %rbp, %rdi
movq %rax, %rsi
callq 0x4220
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)
pushq $0x7c
popq %rsi
movq %rax, %rdi
callq 0x42c0
movq %rax, %rdi
movl %r12d, %eax
cltd
pushq $0x2
popq %rcx
idivl %ecx
movl %eax, %r12d
leal 0x4(%r12), %eax
movq (%rdi), %rcx
movq -0x18(%rcx), %rcx
cltq
movq %rax, 0x10(%rdi,%rcx)
movl 0x10(%rbx), %esi
callq 0x4400
pushq $0x4
popq %rbp
movl %ebp, %ecx
subl %r12d, %ecx
movq (%rax), %rdx
movq -0x18(%rdx), %rdx
movslq %ecx, %r15
movq %r15, 0x10(%rax,%rdx)
pushq $0x7c
popq %rsi
movq %rax, %rdi
callq 0x42c0
movq %rax, %rdi
movl 0x1c(%rsp), %eax
cltd
pushq $0x2
popq %rcx
idivl %ecx
addl $0x4, %eax
movq (%rdi), %rcx
movq -0x18(%rcx), %rcx
cltq
movq %rax, 0x10(%rdi,%rcx)
movl 0xac(%rbx), %esi
callq 0x4400
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movq %r15, 0x10(%rax,%rcx)
pushq $0x7c
popq %rsi
movq %rax, %rdi
callq 0x42c0
movq %rax, %r12
movl 0x18(%rsp), %eax
cltd
pushq $0x2
popq %rcx
idivl %ecx
movl %eax, %r15d
leal 0x5(%r15), %eax
movq (%r12), %rcx
movq -0x18(%rcx), %rcx
cltq
movq %rax, 0x10(%r12,%rcx)
movq %rbx, %rdi
callq 0x12a58
movq %r12, %rdi
movl %eax, %esi
callq 0x4400
subl %r15d, %ebp
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movslq %ebp, %rdx
movq %rdx, 0x10(%rax,%rcx)
pushq $0x7c
popq %rsi
movq %rax, %rdi
callq 0x42c0
movq %rax, %rdi
movl 0x14(%rsp), %eax
cltd
pushq $0x2
popq %rcx
idivl %ecx
movl %eax, %r15d
leal 0x4(%r15), %eax
movq (%rdi), %rcx
movq -0x18(%rcx), %rcx
cltq
movq %rax, 0x10(%rdi,%rcx)
movl 0x94(%rbx), %esi
callq 0x4400
pushq $0x5
popq %rcx
subl %r15d, %ecx
movq (%rax), %rdx
movq -0x18(%rdx), %rdx
movslq %ecx, %rcx
movq %rcx, 0x10(%rax,%rdx)
pushq $0x7c
popq %rsi
movq %rax, %rdi
callq 0x42c0
movq %rax, %rdi
movl 0x10(%rsp), %eax
cltd
pushq $0x2
popq %rcx
idivl %ecx
movl %eax, %r15d
leal 0x7(%r15), %eax
movq (%rdi), %rcx
movq -0x18(%rcx), %rcx
cltq
movq %rax, 0x10(%rdi,%rcx)
movl 0x98(%rbx), %esi
callq 0x4400
pushq $0x6
popq %rbp
movl %ebp, %ecx
subl %r15d, %ecx
movq (%rax), %rdx
movq -0x18(%rdx), %rdx
movslq %ecx, %rcx
movq %rcx, 0x10(%rax,%rdx)
pushq $0x7c
popq %rsi
movq %rax, %rdi
callq 0x42c0
movq %rax, %rdi
addl $0x2, %r14d
movl %r14d, %eax
cltd
pushq $0x2
popq %rcx
idivl %ecx
movl %eax, %r14d
leal 0x6(%r14), %eax
movq (%rdi), %rcx
movq -0x18(%rcx), %rdx
cltq
movq %rax, 0x10(%rdi,%rdx)
movq -0x18(%rcx), %rax
movq $0x2, 0x8(%rdi,%rax)
movsd 0xa0(%rbx), %xmm0
callq 0x43b0
subl %r14d, %ebp
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movslq %ebp, %rdx
movq %rdx, 0x10(%rax,%rcx)
pushq $0x7c
popq %rsi
movq %rax, %rdi
callq 0x42c0
movq %rax, %rdi
movl 0xc(%rsp), %eax
cltd
pushq $0x2
popq %rcx
idivl %ecx
addl $0x7, %eax
movq (%rdi), %rcx
movq -0x18(%rcx), %rcx
cltq
movq %rax, 0x10(%rdi,%rcx)
movl 0xa8(%rbx), %esi
callq 0x4400
pushq $0x9
popq %rcx
subl 0xc(%rsp), %ecx
movq (%rax), %rdx
movq -0x18(%rdx), %rdx
movslq %ecx, %rcx
movq %rcx, 0x10(%rax,%rdx)
pushq $0x7c
popq %rsi
movq %rax, %rdi
callq 0x42c0
leal 0x8(%r13), %ecx
movq (%rax), %rdx
movq -0x18(%rdx), %rdx
movslq %ecx, %rcx
movq %rcx, 0x10(%rax,%rdx)
leaq 0x48(%rsp), %rsi
movq %rax, %rdi
callq 0x4220
pushq $0x8
popq %rbx
movl %ebx, %ecx
subl %r13d, %ecx
movq (%rax), %rdx
movq -0x18(%rdx), %rdx
movslq %ecx, %rcx
movq %rcx, 0x10(%rax,%rdx)
pushq $0x7c
popq %rsi
movq %rax, %rdi
callq 0x42c0
movq 0x20(%rsp), %rcx
addl $0x9, %ecx
movq (%rax), %rdx
movq -0x18(%rdx), %rdx
movslq %ecx, %rcx
movq %rcx, 0x10(%rax,%rdx)
leaq 0x28(%rsp), %rsi
movq %rax, %rdi
callq 0x4220
subl 0x20(%rsp), %ebx
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movslq %ebx, %rdx
movq %rdx, 0x10(%rax,%rcx)
pushq $0x7c
popq %rsi
movq %rax, %rdi
callq 0x42c0
movq %rax, %rdi
callq 0x4120
callq 0x8ee5
leaq 0x28(%rsp), %rdi
callq 0x4470
leaq 0x48(%rsp), %rdi
callq 0x4470
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xf79a
movq %rax, %rbx
jmp 0xf7ac
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x4470
leaq 0x48(%rsp), %rdi
callq 0x4470
movq %rbx, %rdi
callq 0x4410