// File: /workspace/github_cpp_makefile_star2_O1/gkosae[P]ArduinoNeuralNet/main.cpp
// Function: createInputSamples()
vector<vector<double>> createInputSamples() {

  cout << "Entering createInputSamples" << endl;

  vector<vector<double>> samples{};
  vector<double> buffer{};
  double temp = 0;

  string input_data_file = "training_data/processed_inputs.dat";

  ifstream ifs{input_data_file};

  while(ifs >> temp) {

      buffer.clear();
      buffer.push_back(temp/NORMALIZER);

      for(auto i = 0; i < 9; ++i) {
        ifs >> temp;
        buffer.push_back(temp/NORMALIZER);
      }
   samples.push_back(buffer);
 }

  number_of_samples = samples.size();
  cout << "Leaving createInputSamples" << endl;
  return samples;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x258, %rsp            # imm = 0x258
movq %rdi, %rbx
movq 0x55a6(%rip), %r14      # 0xafd8
leaq 0x1a95(%rip), %rsi      # 0x74ce
movl $0x1b, %edx
movq %r14, %rdi
callq 0x2190
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2160
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20d0
xorpd %xmm0, %xmm0
movupd %xmm0, (%rbx)
xorl %eax, %eax
movq %rax, 0x10(%rbx)
movq %rax, 0x10(%rsp)
movapd %xmm0, (%rsp)
movq %rax, 0x20(%rsp)
leaq 0x40(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x1a50(%rip), %rsi      # 0x74ea
leaq 0x1a6b(%rip), %rdx      # 0x750c
leaq 0x30(%rsp), %rdi
callq 0x2850
leaq 0x50(%rsp), %rdi
leaq 0x30(%rsp), %rsi
movl $0x8, %edx
callq 0x2210
leaq 0x50(%rsp), %r14
leaq 0x20(%rsp), %r15
movq %rsp, %r12
leaq 0x28(%rsp), %r13
movq %r14, %rdi
movq %r15, %rsi
callq 0x20b0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x5b96
movq (%rsp), %rax
cmpq %rax, 0x8(%rsp)
je 0x5afe
movq %rax, 0x8(%rsp)
movsd 0x20(%rsp), %xmm0
divsd 0x1504(%rip), %xmm0     # 0x7010
movsd %xmm0, 0x28(%rsp)
movq 0x8(%rsp), %rsi
cmpq 0x10(%rsp), %rsi
je 0x5b2d
movsd %xmm0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%rsp)
jmp 0x5b38
movq %r12, %rdi
movq %r13, %rdx
callq 0x6756
movl $0x9, %ebp
movq %r14, %rdi
movq %r15, %rsi
callq 0x20b0
movsd 0x20(%rsp), %xmm0
divsd 0x14ba(%rip), %xmm0     # 0x7010
movsd %xmm0, 0x28(%rsp)
movq 0x8(%rsp), %rsi
cmpq 0x10(%rsp), %rsi
je 0x5b77
movsd %xmm0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%rsp)
jmp 0x5b82
movq %r12, %rdi
movq %r13, %rdx
callq 0x6756
decl %ebp
jne 0x5b3d
movq %rbx, %rdi
movq %r12, %rsi
callq 0x624c
jmp 0x5ad1
movq 0x8(%rbx), %rax
subq (%rbx), %rax
shrq $0x3, %rax
imull $0xaaaaaaab, %eax, %eax # imm = 0xAAAAAAAB
movl %eax, 0x55c3(%rip)      # 0xb170
movq 0x5424(%rip), %r14      # 0xafd8
leaq 0x1952(%rip), %rsi      # 0x750d
movl $0x1a, %edx
movq %r14, %rdi
callq 0x2190
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x2160
movsbl %al, %esi
movq 0x53f2(%rip), %rdi      # 0xafd8
callq 0x2030
movq %rax, %rdi
callq 0x20d0
leaq 0x50(%rsp), %rdi
callq 0x2040
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x5c19
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x2180
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x5c2f
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x2180
movq %rbx, %rax
addq $0x258, %rsp            # imm = 0x258
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0x5c63
movq %rax, %r14
jmp 0x5c7f
jmp 0x5c56
jmp 0x5c56
jmp 0x5c56
jmp 0x5c56
movq %rax, %r14
leaq 0x50(%rsp), %rdi
callq 0x2040
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x5c7f
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x2180
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x5c95
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x2180
movq %rbx, %rdi
callq 0x5268
movq %r14, %rdi
callq 0x2260