// File: 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 %rbp
movq %rsp, %rbp
subq $0x3b0, %rsp            # imm = 0x3B0
leaq -0x208(%rbp), %rdi
callq 0x53a0
movq 0x2f6b2(%rip), %rax     # 0x3f790
movq %rax, -0x210(%rbp)
movaps 0x2f694(%rip), %xmm0    # 0x3f780
movaps %xmm0, -0x220(%rbp)
movaps 0x2f676(%rip), %xmm0    # 0x3f770
movaps %xmm0, -0x230(%rbp)
movb $0x1, -0x2f1(%rbp)
leaq -0x2d0(%rbp), %rax
movq %rax, -0x310(%rbp)
movq %rax, -0x2d8(%rbp)
leaq -0x2d9(%rbp), %rdi
movq %rdi, -0x308(%rbp)
callq 0x5560
movq -0x310(%rbp), %rdi
movq -0x308(%rbp), %rdx
leaq 0x1e88c(%rip), %rsi     # 0x2e9d1
callq 0x7d20
jmp 0x1014c
leaq -0x2b0(%rbp), %rax
movq %rax, -0x320(%rbp)
movq %rax, -0x2d8(%rbp)
leaq -0x2ed(%rbp), %rdi
movq %rdi, -0x318(%rbp)
callq 0x5560
movq -0x320(%rbp), %rdi
movq -0x318(%rbp), %rdx
leaq 0x1e858(%rip), %rsi     # 0x2e9e1
callq 0x7d20
jmp 0x10190
leaq -0x290(%rbp), %rax
movq %rax, -0x330(%rbp)
movq %rax, -0x2d8(%rbp)
leaq -0x2ee(%rbp), %rdi
movq %rdi, -0x328(%rbp)
callq 0x5560
movq -0x330(%rbp), %rdi
movq -0x328(%rbp), %rdx
leaq 0x1e826(%rip), %rsi     # 0x2e9f3
callq 0x7d20
jmp 0x101d4
leaq -0x270(%rbp), %rax
movq %rax, -0x340(%rbp)
movq %rax, -0x2d8(%rbp)
leaq -0x2ef(%rbp), %rdi
movq %rdi, -0x338(%rbp)
callq 0x5560
movq -0x340(%rbp), %rdi
movq -0x338(%rbp), %rdx
leaq 0x1e7f3(%rip), %rsi     # 0x2ea04
callq 0x7d20
jmp 0x10218
leaq -0x250(%rbp), %rax
movq %rax, -0x350(%rbp)
movq %rax, -0x2d8(%rbp)
leaq -0x2f0(%rbp), %rdi
movq %rdi, -0x348(%rbp)
callq 0x5560
movq -0x350(%rbp), %rdi
movq -0x348(%rbp), %rdx
leaq 0x1e7c1(%rip), %rsi     # 0x2ea16
callq 0x7d20
jmp 0x1025c
movb $0x0, -0x2f1(%rbp)
leaq -0x2f0(%rbp), %rdi
callq 0x5350
leaq -0x2ef(%rbp), %rdi
callq 0x5350
leaq -0x2ee(%rbp), %rdi
callq 0x5350
leaq -0x2ed(%rbp), %rdi
callq 0x5350
leaq -0x2d9(%rbp), %rdi
callq 0x5350
movq $0x0, -0x300(%rbp)
cmpq $0x5, -0x300(%rbp)
je 0x104fe
movq -0x300(%rbp), %rax
shlq $0x5, %rax
leaq -0x2d0(%rbp,%rax), %rdi
callq 0x5110
movq %rax, %rsi
leaq -0x208(%rbp), %rdi
movl $0x8, %edx
callq 0x51c0
jmp 0x102e6
leaq -0x208(%rbp), %rdi
callq 0x54f0
movb %al, -0x351(%rbp)
jmp 0x102fa
movb -0x351(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
jne 0x104ba
movq 0x2fcdb(%rip), %rdi     # 0x3fff0
leaq 0x1e70b(%rip), %rsi     # 0x2ea27
callq 0x52f0
movq %rax, -0x360(%rbp)
jmp 0x1032a
movq -0x360(%rbp), %rdi
movq -0x300(%rbp), %rax
shlq $0x5, %rax
leaq -0x2d0(%rbp,%rax), %rsi
callq 0x52a0
movq %rax, -0x368(%rbp)
jmp 0x10352
movq -0x368(%rbp), %rdi
leaq 0x1e6e9(%rip), %rsi     # 0x2ea49
callq 0x52f0
movq %rax, -0x370(%rbp)
jmp 0x1036e
movq -0x370(%rbp), %rdi
movq 0x2fc24(%rip), %rsi     # 0x3ffa0
callq 0x5330
jmp 0x10383
movl $0x1, %edi
callq 0x53e0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x2e8(%rbp)
movl %eax, -0x2ec(%rbp)
jmp 0x1041f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x2e8(%rbp)
movl %eax, -0x2ec(%rbp)
jmp 0x10413
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x2e8(%rbp)
movl %eax, -0x2ec(%rbp)
jmp 0x10407
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x2e8(%rbp)
movl %eax, -0x2ec(%rbp)
jmp 0x103fb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x2e8(%rbp)
movl %eax, -0x2ec(%rbp)
leaq -0x2f0(%rbp), %rdi
callq 0x5350
leaq -0x2ef(%rbp), %rdi
callq 0x5350
leaq -0x2ee(%rbp), %rdi
callq 0x5350
leaq -0x2ed(%rbp), %rdi
callq 0x5350
leaq -0x2d9(%rbp), %rdi
callq 0x5350
testb $0x1, -0x2f1(%rbp)
jne 0x10436
jmp 0x10483
movq -0x2d8(%rbp), %rax
leaq -0x2d0(%rbp), %rcx
cmpq %rax, %rcx
movq %rax, -0x378(%rbp)
je 0x10481
movq -0x378(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x380(%rbp)
callq 0x55d0
movq -0x380(%rbp), %rax
leaq -0x2d0(%rbp), %rcx
cmpq %rcx, %rax
movq %rax, -0x378(%rbp)
jne 0x10450
jmp 0x10483
jmp 0x10592
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x2e8(%rbp)
movl %eax, -0x2ec(%rbp)
leaq -0x2d0(%rbp), %rax
movq %rax, -0x390(%rbp)
addq $0xa0, %rax
movq %rax, -0x388(%rbp)
jmp 0x1055f
movq -0x300(%rbp), %rax
movq -0x230(%rbp,%rax,8), %rsi
leaq -0x208(%rbp), %rdi
callq 0x105b0
jmp 0x104d7
leaq -0x208(%rbp), %rdi
callq 0x5080
jmp 0x104e5
jmp 0x104e7
movq -0x300(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x300(%rbp)
jmp 0x102aa
leaq -0x2d0(%rbp), %rax
movq %rax, -0x3a0(%rbp)
addq $0xa0, %rax
movq %rax, -0x398(%rbp)
movq -0x398(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x3a8(%rbp)
callq 0x55d0
movq -0x3a0(%rbp), %rcx
movq -0x3a8(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x398(%rbp)
jne 0x10519
leaq -0x208(%rbp), %rdi
callq 0x55c0
addq $0x3b0, %rsp            # imm = 0x3B0
popq %rbp
retq
movq -0x388(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x3b0(%rbp)
callq 0x55d0
movq -0x390(%rbp), %rcx
movq -0x3b0(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x388(%rbp)
jne 0x1055f
jmp 0x10592
leaq -0x208(%rbp), %rdi
callq 0x55c0
movq -0x2e8(%rbp), %rdi
callq 0x5550
nopw (%rax,%rax)