// File: /workspace/github_cpp_makefile_star2_O3/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, %r13
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), %rbx
movq %rbx, -0x10(%rbx)
movq %rax, -0x8(%rbx)
movb $0x0, (%rbx)
leaq 0xc0(%rsp), %r15
leaq 0x30(%rsp), %r12
movq 0xc0(%rsp), %rax
movq -0x18(%rax), %rax
cmpl $0x0, 0xe0(%rsp,%rax)
jne 0x3320
leaq (%rsp,%rax), %rdi
addq $0xc0, %rdi
movl $0xa, %esi
callq 0x2250
movsbl %al, %edx
movq %r15, %rdi
movq %r12, %rsi
callq 0x23b0
movq 0x30(%rsp), %rax
movq 0x38(%rsp), %rcx
movb $0x0, (%rax,%rcx)
movq %r14, %rdi
movq %r12, %rsi
callq 0x3ca0
jmp 0x32cc
leaq 0xc0(%rsp), %rdi
callq 0x20b0
movq %r13, 0x90(%rsp)
leaq 0x80(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x5d05(%rip), %rsi      # 0x904d
leaq 0x5d02(%rip), %rdx      # 0x9051
leaq 0x70(%rsp), %rdi
callq 0x41b0
xorps %xmm0, %xmm0
movaps %xmm0, 0x50(%rsp)
movq $0x0, 0x60(%rsp)
movq 0xa0(%rsp), %r13
movq 0xa8(%rsp), %rbp
cmpq %rbp, %r13
je 0x34a5
leaq 0x20(%rsp), %rbx
leaq 0x10(%rsp), %r14
leaq 0x50(%rsp), %r15
leaq 0x70(%rsp), %r12
movq %rbx, 0x10(%rsp)
movq (%r13), %rsi
movq 0x8(%r13), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0x411a
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x25cc
movq 0x10(%rsp), %rdi
cmpq %rbx, %rdi
je 0x33d4
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2270
addq $0x20, %r13
cmpq %rbp, %r13
jne 0x3397
movq 0x50(%rsp), %r12
movq 0x58(%rsp), %r14
cmpq %r14, %r12
je 0x34a5
movq %rbx, 0x10(%rsp)
movq (%r12), %rsi
movq 0x8(%r12), %rdx
addq %rsi, %rdx
leaq 0x10(%rsp), %rdi
callq 0x411a
movq 0x10(%rsp), %rbp
callq 0x2060
movq %rax, %r13
movl (%rax), %r15d
movl $0x0, (%rax)
movq %rbp, %rdi
leaq 0x98(%rsp), %rsi
callq 0x22d0
cmpq %rbp, 0x98(%rsp)
je 0x3519
movl (%r13), %eax
testl %eax, %eax
je 0x3451
cmpl $0x22, %eax
jne 0x3455
jmp 0x3525
movl %r15d, (%r13)
movss %xmm0, 0xc(%rsp)
movq 0x90(%rsp), %rdi
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x347b
movss %xmm0, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rdi)
jmp 0x3485
leaq 0xc(%rsp), %rdx
callq 0x46de
movq 0x10(%rsp), %rdi
cmpq %rbx, %rdi
je 0x349c
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2270
addq $0x20, %r12
jmp 0x33e7
leaq 0x50(%rsp), %rdi
callq 0x3d74
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x34d1
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x2270
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x34ed
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x2270
leaq 0xa0(%rsp), %rdi
callq 0x3d74
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 0x5c5a(%rip), %rdi      # 0x917a
callq 0x2170
leaq 0x5c4e(%rip), %rdi      # 0x917a
callq 0x2300
movq %rax, %r14
jmp 0x359f
jmp 0x35a6
movq %rax, %r14
jmp 0x35cd
jmp 0x3559
jmp 0x3554
movq %rax, %r14
cmpl $0x0, (%r13)
jne 0x355c
movl %r15d, (%r13)
jmp 0x355c
movq %rax, %r14
jmp 0x3573
movq %rax, %r14
movq 0x10(%rsp), %rdi
cmpq %rbx, %rdi
je 0x3573
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2270
leaq 0x50(%rsp), %rdi
callq 0x3d74
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x359f
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x2270
leaq 0x40(%rsp), %rbx
jmp 0x35a9
movq %rax, %r14
movq 0x30(%rsp), %rdi
cmpq %rbx, %rdi
je 0x35c0
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x2270
leaq 0xa0(%rsp), %rdi
callq 0x3d74
leaq 0xc0(%rsp), %rdi
callq 0x20c0
movq %r14, %rdi
callq 0x2390