// File: /workspace/github_cpp_makefile_star2_O1/mlugo2[P]SunshineGPU/inc/main.h
// Function: constant_file_interface(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::vector<float, std::allocator<float>>*)
void constant_file_interface(std::string fileName,
	std::vector<float> *constants)
{
	// Opening file
	std::ifstream myFile;
	myFile.open(fileName.data());

	// Read file into vector for easier processing
	std::vector<std::string> data;
	std::string line;
	while( myFile.good() )
	{
		getline(myFile, line);
		line[line.length()] = '\0';
		data.push_back(line);
	}

	myFile.close();

	// Tokenize data
	std::string delims = " \t\n,";
	std::vector<std::string> tempData;

	// Store tokenized data into tempData
	for ( auto i : data )
	{
		tokenize(i, tempData, delims);
	}

	for ( auto i : tempData )
	{
		constants->push_back(std::stof(i));
	}		
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2c8, %rsp            # imm = 0x2C8
movq %rsi, %rbx
movq %rdi, %r14
leaq 0xc0(%rsp), %r15
movq %r15, %rdi
callq 0x2290
movq (%r14), %rsi
movq %r15, %rdi
movl $0x8, %edx
callq 0x2180
xorps %xmm0, %xmm0
leaq 0xa0(%rsp), %r14
movaps %xmm0, (%r14)
xorl %eax, %eax
movq %rax, 0x10(%r14)
leaq 0x40(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb $0x0, (%rcx)
leaq 0xc0(%rsp), %r15
leaq 0x30(%rsp), %r12
movq 0xc0(%rsp), %rax
movq -0x18(%rax), %rax
cmpl $0x0, 0xe0(%rsp,%rax)
jne 0x331f
leaq (%rsp,%rax), %rdi
addq $0xc0, %rdi
movl $0xa, %esi
callq 0x2250
movsbl %al, %edx
movq %r15, %rdi
movq %r12, %rsi
callq 0x23c0
movq 0x30(%rsp), %rax
movq 0x38(%rsp), %rcx
movb $0x0, (%rax,%rcx)
movq %r14, %rdi
movq %r12, %rsi
callq 0x3cb2
jmp 0x32cb
leaq 0xc0(%rsp), %rdi
callq 0x20b0
leaq 0x80(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x5d0e(%rip), %rsi      # 0x904d
leaq 0x5d0b(%rip), %rdx      # 0x9051
leaq 0x70(%rsp), %rdi
callq 0x41c0
xorps %xmm0, %xmm0
movaps %xmm0, 0x50(%rsp)
movq $0x0, 0x60(%rsp)
movq 0xa0(%rsp), %r13
movq 0xa8(%rsp), %r15
cmpq %r15, %r13
je 0x33cd
leaq 0x20(%rsp), %rbp
leaq 0x10(%rsp), %r14
leaq 0x70(%rsp), %r12
movq %rbp, 0x10(%rsp)
movq (%r13), %rsi
movq 0x8(%r13), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0x4130
movq %r14, %rdi
leaq 0x50(%rsp), %rsi
movq %r12, %rdx
callq 0x25ac
movq 0x10(%rsp), %rdi
cmpq %rbp, %rdi
je 0x33c4
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2270
addq $0x20, %r13
cmpq %r15, %r13
jne 0x3385
movq 0x50(%rsp), %r14
movq 0x58(%rsp), %rax
movq %rax, 0x90(%rsp)
cmpq %rax, %r14
je 0x34ad
leaq 0x20(%rsp), %rbp
movq %rbp, %r15
movq %rbp, 0x10(%rsp)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x10(%rsp), %rdi
callq 0x4130
movq 0x10(%rsp), %rbp
callq 0x2060
movq %rax, %r13
movl (%rax), %r12d
movl $0x0, (%rax)
movq %rbp, %rdi
leaq 0x98(%rsp), %rsi
callq 0x22d0
cmpq %rbp, 0x98(%rsp)
je 0x3521
movl (%r13), %eax
testl %eax, %eax
je 0x3452
cmpl $0x22, %eax
movq %r15, %rbp
jne 0x3459
jmp 0x352d
movl %r12d, (%r13)
movq %r15, %rbp
movss %xmm0, 0xc(%rsp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x3477
movss %xmm0, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x3484
movq %rbx, %rdi
leaq 0xc(%rsp), %rdx
callq 0x4714
movq 0x10(%rsp), %rdi
cmpq %rbp, %rdi
je 0x349b
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2270
addq $0x20, %r14
cmpq 0x90(%rsp), %r14
jne 0x33ed
leaq 0x50(%rsp), %rdi
callq 0x3d86
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x34d9
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x2270
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x34f5
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x2270
leaq 0xa0(%rsp), %rdi
callq 0x3d86
leaq 0xc0(%rsp), %rdi
callq 0x20c0
addq $0x2c8, %rsp            # imm = 0x2C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x5c52(%rip), %rdi      # 0x917a
callq 0x2170
leaq 0x5c46(%rip), %rdi      # 0x917a
callq 0x2300
jmp 0x35b3
jmp 0x35b3
movq %rax, %rbx
jmp 0x35df
movq %rax, %rbx
jmp 0x356e
jmp 0x354c
movq %rax, %rbx
jmp 0x3585
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %rbp, %rdi
jne 0x3578
jmp 0x3585
movq %rax, %rbx
cmpl $0x0, (%r13)
jne 0x356e
movl %r12d, (%r13)
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x3585
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2270
leaq 0x50(%rsp), %rdi
callq 0x3d86
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x35b6
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x2270
jmp 0x35b6
movq %rax, %rbx
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x35d2
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x2270
leaq 0xa0(%rsp), %rdi
callq 0x3d86
leaq 0xc0(%rsp), %rdi
callq 0x20c0
movq %rbx, %rdi
callq 0x2390