// File: /workspace/github_cpp_makefile_star2_O1/arisKoutsou[P]oopproj/./src/items/Weapon.cpp
// Function: Weapon::getInfo() const
void Weapon :: getInfo() const {
  size_t nameLength = getName().length();
  int priceDigits = getDigits(buyFor());
  int minLevelDigits = getDigits(unlocksInLevel());
  int damageDigits = getDigits(damage);
  string twoHanded = (requiresBothHands) ? "YES" : "NO";
  printWeaponFrame();
  cout << '|'
       << setw(12 + nameLength/2) << getName() << setw(13 - nameLength/2) << '|'
       << setw(3 + priceDigits/2) << buyFor() << setw(5 - priceDigits/2)<< '|'
       << setw(6 + minLevelDigits/2) << unlocksInLevel() << setw(6 - minLevelDigits/2) << '|'
       << setw(4 + damageDigits/2) << damage << setw(5 - damageDigits/2) << '|'
       << setw(6 + twoHanded.length()/2) << twoHanded << setw(7 - twoHanded.length()/2) << '|'
       << endl;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
leaq 0x8(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1a714
movq (%r14), %rdi
movq 0x8(%r14), %r13
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x199af
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42a0
movq %rbx, %rdi
callq 0x1a73c
movl %eax, %edi
callq 0xabfc
movl %eax, %r15d
movq %rbx, %rdi
callq 0x1a740
movl %eax, %edi
callq 0xabfc
movl %eax, %r14d
movl 0x40(%rbx), %edi
callq 0xabfc
movzbl 0x44(%rbx), %ecx
leaq 0x2a14(%rip), %rdx      # 0x1c3fa
leaq 0x2a11(%rip), %rsi      # 0x1c3fe
testq %rcx, %rcx
cmovneq %rdx, %rsi
movl %eax, %ebp
leaq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
movq %rax, (%rdi)
leaq (%rsi,%rcx), %rdx
addq $0x2, %rdx
callq 0x6520
callq 0xb548
leaq 0x28(%rsp), %rsi
movb $0x7c, (%rsi)
movq 0xb59c(%rip), %rdi      # 0x24fc0
movl $0x1, %edx
callq 0x42f0
movq %rax, %r12
shrq %r13
movq (%rax), %rax
movq -0x18(%rax), %rax
leal 0xc(%r13), %ecx
movslq %ecx, %rcx
movq %rcx, 0x10(%r12,%rax)
leaq 0x28(%rsp), %rdi
movq %rbx, %rsi
callq 0x1a714
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
movq %r12, %rdi
callq 0x42f0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movl $0xd, %edx
subl %r13d, %edx
movslq %edx, %rdx
movq %rdx, 0x10(%rax,%rcx)
leaq 0x7(%rsp), %rsi
movb $0x7c, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x42f0
movq %rax, %r12
movl %r15d, %r13d
shrl $0x1f, %r13d
addl %r15d, %r13d
sarl %r13d
leal 0x3(%r13), %eax
movq (%r12), %rcx
movq -0x18(%rcx), %rcx
cltq
movq %rax, 0x10(%r12,%rcx)
movq %rbx, %rdi
callq 0x1a73c
movq %r12, %rdi
movl %eax, %esi
callq 0x4420
movl $0x5, %ecx
subl %r13d, %ecx
movq (%rax), %rdx
movq -0x18(%rdx), %rdx
movslq %ecx, %rcx
movq %rcx, 0x10(%rax,%rdx)
leaq 0x7(%rsp), %rsi
movb $0x7c, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x42f0
movq %rax, %r15
movl %r14d, %r12d
shrl $0x1f, %r12d
addl %r14d, %r12d
sarl %r12d
leal 0x6(%r12), %eax
movq (%r15), %rcx
movq -0x18(%rcx), %rcx
cltq
movq %rax, 0x10(%r15,%rcx)
movq %rbx, %rdi
callq 0x1a740
movq %r15, %rdi
movl %eax, %esi
callq 0x4420
movl $0x6, %ecx
subl %r12d, %ecx
movq (%rax), %rdx
movq -0x18(%rdx), %rdx
movslq %ecx, %rcx
movq %rcx, 0x10(%rax,%rdx)
leaq 0x7(%rsp), %rsi
movb $0x7c, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x42f0
movl %ebp, %r14d
shrl $0x1f, %r14d
addl %ebp, %r14d
sarl %r14d
leal 0x4(%r14), %ecx
movq (%rax), %rdx
movq -0x18(%rdx), %rdx
movslq %ecx, %rcx
movq %rcx, 0x10(%rax,%rdx)
movl 0x40(%rbx), %esi
movq %rax, %rdi
callq 0x4420
movl $0x5, %ecx
subl %r14d, %ecx
movq (%rax), %rdx
movq -0x18(%rdx), %rdx
movslq %ecx, %rcx
movq %rcx, 0x10(%rax,%rdx)
leaq 0x7(%rsp), %rsi
movb $0x7c, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x42f0
movq 0x10(%rsp), %rdx
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movq %rdx, %rsi
shlq $0x1f, %rsi
movabsq $0x600000000, %rdi      # imm = 0x600000000
addq %rsi, %rdi
sarq $0x20, %rdi
movq %rdi, 0x10(%rax,%rcx)
movq 0x8(%rsp), %rsi
movq %rax, %rdi
callq 0x42f0
movq 0x10(%rsp), %rcx
movq (%rax), %rdx
movq -0x18(%rdx), %rdx
andq $-0x2, %rcx
shlq $0x1f, %rcx
movabsq $0x700000000, %rsi      # imm = 0x700000000
subq %rcx, %rsi
sarq $0x20, %rsi
movq %rsi, 0x10(%rax,%rdx)
leaq 0x7(%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
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x19c65
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x42a0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x19c81
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42a0
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x19c92
movq %rax, %rbx
jmp 0x19cb5
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x19cb5
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x42a0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x19cd1
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42a0
movq %rbx, %rdi
callq 0x4430
nop