// File: /workspace/github_cpp_makefile_star2_O3/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 0x54e9(%rip), %r14      # 0xafd8
leaq 0x1a28(%rip), %rsi      # 0x751e
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 0x19e3(%rip), %rsi      # 0x753a
leaq 0x19fe(%rip), %rdx      # 0x755c
leaq 0x30(%rsp), %rdi
callq 0x28b2
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 0x5c54
movq (%rsp), %rax
movq 0x8(%rsp), %rsi
cmpq %rax, %rsi
je 0x5bc1
movq %rax, 0x8(%rsp)
movq %rax, %rsi
movsd 0x20(%rsp), %xmm0
divsd 0x1441(%rip), %xmm0     # 0x7010
movsd %xmm0, 0x28(%rsp)
cmpq 0x10(%rsp), %rsi
je 0x5beb
movsd %xmm0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%rsp)
jmp 0x5bf6
movq %r12, %rdi
movq %r13, %rdx
callq 0x67e4
movl $0x9, %ebp
movq %r14, %rdi
movq %r15, %rsi
callq 0x20b0
movsd 0x20(%rsp), %xmm0
divsd 0x13fc(%rip), %xmm0     # 0x7010
movsd %xmm0, 0x28(%rsp)
movq 0x8(%rsp), %rsi
cmpq 0x10(%rsp), %rsi
je 0x5c35
movsd %xmm0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%rsp)
jmp 0x5c40
movq %r12, %rdi
movq %r13, %rdx
callq 0x67e4
decl %ebp
jne 0x5bfb
movq %rbx, %rdi
movq %r12, %rsi
callq 0x62ea
jmp 0x5b8e
movq 0x8(%rbx), %rax
subq (%rbx), %rax
shrq $0x3, %rax
imull $0xaaaaaaab, %eax, %eax # imm = 0xAAAAAAAB
movl %eax, 0x5505(%rip)      # 0xb170
movq 0x5366(%rip), %r14      # 0xafd8
leaq 0x18e4(%rip), %rsi      # 0x755d
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 0x5334(%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 0x5cd7
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x2180
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x5ced
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 0x5d21
movq %rax, %r14
jmp 0x5d3d
jmp 0x5d14
jmp 0x5d14
jmp 0x5d14
jmp 0x5d14
movq %rax, %r14
leaq 0x50(%rsp), %rdi
callq 0x2040
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x5d3d
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x2180
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x5d53
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x2180
movq %rbx, %rdi
callq 0x532c
movq %r14, %rdi
callq 0x2260