// File: /workspace/github_cpp_makefile_star2_O1/gilecheverria[P]UP_Battle_Project/Character.cpp
// Function: Character::inputData()
void Character::inputData()
{
    // Get the max Hit Points
    HP = validatePositiveInt("max HP");
    current_HP = HP;
    // Get the max Magic Points
    MP = validatePositiveInt("max MP");
    current_MP = MP;
    // Get the speed
    speed = validatePositiveInt("speed");
    //character_class = _character_class;
    attack = validatePositiveInt("attack");
    defense = validatePositiveInt("defense");
    magic = validatePositiveInt("magic");
    attack_percent = validatePercent("attack percent");
    defense_percent = validatePercent("defense percent");
    magic_percent = validatePercent("magic percent");
    critical_percent = validatePercent("critical percent");
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x140, %rsp            # imm = 0x140
movq %rdi, %rbx
leaq 0x130(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x2a04(%rip), %rsi      # 0x500c
leaq 0x2a03(%rip), %rdx      # 0x5012
leaq 0x120(%rsp), %r14
movq %r14, %rdi
callq 0x2dba
movq %r14, %rsi
callq 0x29b0
movl %eax, (%rbx)
movq 0x120(%rsp), %rdi
cmpq %r15, %rdi
je 0x2646
movq 0x130(%rsp), %rsi
incq %rsi
callq 0x2170
movl (%rbx), %eax
movl %eax, 0x4(%rbx)
leaq 0x110(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x29b5(%rip), %rsi      # 0x5013
leaq 0x29b4(%rip), %rdx      # 0x5019
leaq 0x100(%rsp), %r14
movq %r14, %rdi
callq 0x2dba
movq %r14, %rsi
callq 0x29b0
movl %eax, 0x8(%rbx)
movq 0x100(%rsp), %rdi
cmpq %r15, %rdi
je 0x269d
movq 0x110(%rsp), %rsi
incq %rsi
callq 0x2170
movl 0x8(%rbx), %eax
movl %eax, 0xc(%rbx)
leaq 0xf0(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x2964(%rip), %rsi      # 0x501a
leaq 0x2962(%rip), %rdx      # 0x501f
leaq 0xe0(%rsp), %r14
movq %r14, %rdi
callq 0x2dba
movq %r14, %rsi
callq 0x29b0
movl %eax, 0x10(%rbx)
movq 0xe0(%rsp), %rdi
cmpq %r15, %rdi
je 0x26f5
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0x2170
leaq 0xd0(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x2918(%rip), %rsi      # 0x5020
leaq 0x2917(%rip), %rdx      # 0x5026
leaq 0xc0(%rsp), %r14
movq %r14, %rdi
callq 0x2dba
movq %r14, %rsi
callq 0x29b0
movl %eax, 0x1c(%rbx)
movq 0xc0(%rsp), %rdi
cmpq %r15, %rdi
je 0x2747
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x2170
leaq 0xb0(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x28cd(%rip), %rsi      # 0x5027
leaq 0x28cd(%rip), %rdx      # 0x502e
leaq 0xa0(%rsp), %r14
movq %r14, %rdi
callq 0x2dba
movq %r14, %rsi
callq 0x29b0
movl %eax, 0x20(%rbx)
movq 0xa0(%rsp), %rdi
cmpq %r15, %rdi
je 0x2799
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x2170
leaq 0x90(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x2883(%rip), %rsi      # 0x502f
leaq 0x2881(%rip), %rdx      # 0x5034
leaq 0x80(%rsp), %r14
movq %r14, %rdi
callq 0x2dba
movq %r14, %rsi
callq 0x29b0
movl %eax, 0x24(%rbx)
movq 0x80(%rsp), %rdi
cmpq %r15, %rdi
je 0x27eb
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x2170
leaq 0x70(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x283a(%rip), %rsi      # 0x5035
leaq 0x2841(%rip), %rdx      # 0x5043
leaq 0x60(%rsp), %r14
movq %r14, %rdi
callq 0x2dba
movq %r14, %rsi
callq 0x2a52
cvtss2sd %xmm0, %xmm0
movsd %xmm0, 0x28(%rbx)
movq 0x60(%rsp), %rdi
cmpq %r15, %rdi
je 0x2837
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x2170
leaq 0x50(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x27fd(%rip), %rsi      # 0x5044
leaq 0x2805(%rip), %rdx      # 0x5053
leaq 0x40(%rsp), %r14
movq %r14, %rdi
callq 0x2dba
movq %r14, %rsi
callq 0x2a52
cvtss2sd %xmm0, %xmm0
movsd %xmm0, 0x30(%rbx)
movq 0x40(%rsp), %rdi
cmpq %r15, %rdi
je 0x2883
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x2170
leaq 0x30(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x27c1(%rip), %rsi      # 0x5054
leaq 0x27c7(%rip), %rdx      # 0x5061
leaq 0x20(%rsp), %r14
movq %r14, %rdi
callq 0x2dba
movq %r14, %rsi
callq 0x2a52
cvtss2sd %xmm0, %xmm0
movsd %xmm0, 0x38(%rbx)
movq 0x20(%rsp), %rdi
cmpq %r15, %rdi
je 0x28cf
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x2170
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x2783(%rip), %rsi      # 0x5062
leaq 0x278c(%rip), %rdx      # 0x5072
movq %rsp, %r14
movq %r14, %rdi
callq 0x2dba
movq %r14, %rsi
callq 0x2a52
cvtss2sd %xmm0, %xmm0
movsd %xmm0, 0x40(%rbx)
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x2918
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2170
addq $0x140, %rsp            # imm = 0x140
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movq (%rsp), %rdi
jmp 0x2998
movq %rax, %rbx
movq 0x20(%rsp), %rdi
jmp 0x2998
movq %rax, %rbx
movq 0x40(%rsp), %rdi
jmp 0x2998
movq %rax, %rbx
movq 0x60(%rsp), %rdi
jmp 0x2998
movq %rax, %rbx
movq 0x80(%rsp), %rdi
jmp 0x2998
movq %rax, %rbx
movq 0xa0(%rsp), %rdi
jmp 0x2998
movq %rax, %rbx
movq 0xc0(%rsp), %rdi
jmp 0x2998
movq %rax, %rbx
movq 0xe0(%rsp), %rdi
jmp 0x2998
movq %rax, %rbx
movq 0x100(%rsp), %rdi
jmp 0x2998
movq %rax, %rbx
movq 0x120(%rsp), %rdi
cmpq %r15, %rdi
je 0x29a8
movq (%r15), %rsi
incq %rsi
callq 0x2170
movq %rbx, %rdi
callq 0x2230