// File: /workspace/github_cpp_makefile_star2_O3/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 0x1150f(%rip), %rsi     # 0x1b9f1
leaq 0x11517(%rip), %rdx     # 0x1ba00
movq %rsp, %rbx
movq %rbx, %rdi
callq 0x654a
leaq 0x20(%rsp), %r14
leaq 0x30(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x114f8(%rip), %rsi     # 0x1ba01
leaq 0x11502(%rip), %rdx     # 0x1ba12
movq %r14, %rdi
callq 0x654a
leaq 0x40(%rsp), %r14
leaq 0x50(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x114e6(%rip), %rsi     # 0x1ba13
leaq 0x114ef(%rip), %rdx     # 0x1ba23
movq %r14, %rdi
callq 0x654a
leaq 0x60(%rsp), %r14
leaq 0x70(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x114d3(%rip), %rsi     # 0x1ba24
leaq 0x114dd(%rip), %rdx     # 0x1ba35
movq %r14, %rdi
callq 0x654a
leaq 0x80(%rsp), %r14
leaq 0x90(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x114ba(%rip), %rsi     # 0x1ba36
leaq 0x114c3(%rip), %rdx     # 0x1ba46
movq %r14, %rdi
callq 0x654a
leaq 0x120(%rsp), %rbx
xorl %r15d, %r15d
leaq 0xa8(%rsp), %r14
leaq 0x1a1cb(%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 0xa625
movq (%r15,%r13), %rsi
movq %r14, %rdi
callq 0xa6f8
movq %r14, %rdi
callq 0x4070
addq $0x8, %r15
cmpq $0x28, %r15
jne 0xa5a5
movq $-0xa0, %rbx
movq -0x10(%r12), %rdi
cmpq %rdi, %r12
je 0xa5fd
movq (%r12), %rsi
incq %rsi
callq 0x42a0
addq $-0x20, %r12
addq $0x20, %rbx
jne 0xa5e7
leaq 0xa8(%rsp), %rdi
callq 0x4480
addq $0x2b0, %rsp            # imm = 0x2B0
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq 0x1a9bc(%rip), %rdi     # 0x24fe8
leaq 0x11414(%rip), %rsi     # 0x1ba47
movl $0x21, %edx
callq 0x42f0
movq (%rsp,%r15,4), %rsi
movq 0x8(%rsp,%r15,4), %rdx
movq 0x1a99b(%rip), %rdi     # 0x24fe8
callq 0x42f0
movq %rax, %rbx
leaq 0x1140d(%rip), %rsi     # 0x1ba69
movl $0x16, %edx
movq %rax, %rdi
callq 0x42f0
movq %rbx, %rdi
callq 0x4120
movl $0x1, %edi
callq 0x4310
jmp 0xa681
jmp 0xa681
jmp 0xa681
movq %rax, %r15
addq $-0x10, %r14
movq -0x10(%r14), %rdi
cmpq %rdi, %r14
je 0xa69c
movq (%r14), %rsi
incq %rsi
callq 0x42a0
leaq -0x20(%r14), %rax
addq $-0x10, %r14
cmpq %rbx, %r14
movq %rax, %r14
jne 0xa688
jmp 0xa6e3
movq %rax, %r15
jmp 0xa6e3
jmp 0xa6b5
movq %rax, %r15
xorl %ebx, %ebx
movq 0x80(%rsp,%rbx), %rdi
leaq (%r12,%rbx), %rax
cmpq %rdi, %rax
je 0xa6d6
movq (%rax), %rsi
incq %rsi
callq 0x42a0
addq $-0x20, %rbx
cmpq $-0xa0, %rbx
jne 0xa6ba
leaq 0xa8(%rsp), %rdi
callq 0x4480
movq %r15, %rdi
callq 0x4430