// File: /workspace/github_cpp_makefile_star2_O1/arisKoutsou[P]oopproj/./src/game_utils.cpp
// Function: readData()
void readData(void) {
  ifstream inputStream;
  vector<string>* dataVectors[5] = {
    &names, &weapons, &armors,
    &potions, &spells
  };
  string inputNames[5] = {
    "input/names.txt",
    "input/weapons.txt",
    "input/armors.txt",
    "input/potions.txt",
    "input/spells.txt"
  };
  for (size_t i = 0U; i != 5U; ++i) {
    inputStream.open(inputNames[i].c_str());
    if (inputStream.is_open() == false) {
      cerr << "There was an error while opening "
	   << inputNames[i] << " file. Exiting game..."
	   << endl;
      exit(EXIT_FAILURE);
      
    }
    readSpecificData(inputStream, *dataVectors[i]);
    inputStream.close();
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2b0, %rsp            # imm = 0x2B0
leaq 0xa8(%rsp), %rdi
callq 0x42e0
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x1159f(%rip), %rsi     # 0x1b9f1
leaq 0x115a7(%rip), %rdx     # 0x1ba00
movq %rsp, %r15
movq %r15, %rdi
callq 0x6520
leaq 0x20(%rsp), %rbx
leaq 0x30(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x11588(%rip), %rsi     # 0x1ba01
leaq 0x11592(%rip), %rdx     # 0x1ba12
movq %rbx, %rdi
callq 0x6520
leaq 0x40(%rsp), %rbx
leaq 0x50(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x11576(%rip), %rsi     # 0x1ba13
leaq 0x1157f(%rip), %rdx     # 0x1ba23
movq %rbx, %rdi
callq 0x6520
leaq 0x60(%rsp), %rbx
leaq 0x70(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x11563(%rip), %rsi     # 0x1ba24
leaq 0x1156d(%rip), %rdx     # 0x1ba35
movq %rbx, %rdi
callq 0x6520
leaq 0x80(%rsp), %rbx
leaq 0x90(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x1154a(%rip), %rsi     # 0x1ba36
leaq 0x11553(%rip), %rdx     # 0x1ba46
movq %rbx, %rdi
callq 0x6520
leaq 0x120(%rsp), %rbx
xorl %r15d, %r15d
leaq 0xa8(%rsp), %r14
leaq 0x1a25b(%rip), %r13     # 0x24770
movq (%rsp,%r15,4), %rsi
movq %r14, %rdi
movl $0x8, %edx
callq 0x4170
movq %rbx, %rdi
callq 0x40a0
testb %al, %al
je 0xa595
movq (%r15,%r13), %rsi
movq %r14, %rdi
callq 0xa673
movq %r14, %rdi
callq 0x4070
addq $0x8, %r15
cmpq $0x28, %r15
jne 0xa515
movq $-0xa0, %rbx
movq -0x10(%r12), %rdi
cmpq %rdi, %r12
je 0xa56d
movq (%r12), %rsi
incq %rsi
callq 0x42a0
addq $-0x20, %r12
addq $0x20, %rbx
jne 0xa557
leaq 0xa8(%rsp), %rdi
callq 0x4480
addq $0x2b0, %rsp            # imm = 0x2B0
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq 0x1aa4c(%rip), %rdi     # 0x24fe8
leaq 0x114a4(%rip), %rsi     # 0x1ba47
movl $0x21, %edx
callq 0x42f0
movq (%rsp,%r15,4), %rsi
movq 0x8(%rsp,%r15,4), %rdx
movq 0x1aa2b(%rip), %rdi     # 0x24fe8
callq 0x42f0
movq %rax, %rbx
leaq 0x1149d(%rip), %rsi     # 0x1ba69
movl $0x16, %edx
movq %rax, %rdi
callq 0x42f0
movq %rbx, %rdi
callq 0x4120
movl $0x1, %edi
callq 0x4310
jmp 0xa5f1
jmp 0xa5f1
jmp 0xa5f1
movq %rax, %r14
jmp 0xa5fc
movq %rax, %r14
movq %r15, %rbx
cmpq %rbx, %r15
je 0xa65e
addq $-0x10, %rbx
movq %rsp, %r15
movq -0x10(%rbx), %rdi
cmpq %rdi, %rbx
je 0xa61c
movq (%rbx), %rsi
incq %rsi
callq 0x42a0
leaq -0x20(%rbx), %rax
addq $-0x10, %rbx
cmpq %r15, %rbx
movq %rax, %rbx
jne 0xa608
jmp 0xa65e
jmp 0xa630
movq %rax, %r14
xorl %ebx, %ebx
movq 0x80(%rsp,%rbx), %rdi
leaq (%r12,%rbx), %rax
cmpq %rdi, %rax
je 0xa651
movq (%rax), %rsi
incq %rsi
callq 0x42a0
addq $-0x20, %rbx
cmpq $-0xa0, %rbx
jne 0xa635
leaq 0xa8(%rsp), %rdi
callq 0x4480
movq %r14, %rdi
callq 0x4430