// File: /workspace/github_cpp_makefile_star2_O3/menhits[P]phplus/src/msclStringFuncs.cpp
// Function: loadEntireFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool)
string loadEntireFile(string inName, bool printOutput)
{
	std::fstream inFile;
	
	if (printOutput)
		cout << "attempting to open '" << inName << "'..." << endl;
	
	inFile.open(inName);
	
	if (!inFile.is_open())
	{
		if (printOutput)
			cout << "'" << inName << "' failed to open :(" << endl;
		return "";
	}
	else
	{
		if (printOutput)
			cout << "file opended, reading file..." << endl;
		
		stringstream strStream;
		strStream << inFile.rdbuf();//read the file
		string out = strStream.str();//str holds the content of the file
		inFile.close();
		
		if (printOutput)
			cout << "file reading done, '" << inName << "' closed" << endl;
		
		return out;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x398, %rsp            # imm = 0x398
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x188(%rsp), %rdi
callq 0xa340
testl %ebp, %ebp
je 0x5e4ab
movq 0x3bb67(%rip), %rdi     # 0x99fb0
leaq 0x1ddbb(%rip), %rsi     # 0x7c20b
movl $0x14, %edx
callq 0xa320
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq 0x3bb48(%rip), %rdi     # 0x99fb0
callq 0xa320
movq %rax, %r15
leaq 0x1dda9(%rip), %rsi     # 0x7c220
movl $0x4, %edx
movq %rax, %rdi
callq 0xa320
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0xa2c0
movsbl %al, %esi
movq %r15, %rdi
callq 0xa030
movq %rax, %rdi
callq 0xa200
leaq 0x188(%rsp), %rdi
movq %r14, %rsi
movl $0x18, %edx
callq 0xa3c0
leaq 0x208(%rsp), %rdi
callq 0xa0c0
testb %al, %al
je 0x5e5e3
testb %bpl, %bpl
je 0x5e520
movq 0x3bacf(%rip), %r15     # 0x99fb0
leaq 0x1dd51(%rip), %rsi     # 0x7c239
movl $0x1d, %edx
movq %r15, %rdi
callq 0xa320
movq (%r15), %rax
addq -0x18(%rax), %r15
movq %r15, %rdi
movl $0xa, %esi
callq 0xa2c0
movsbl %al, %esi
movq 0x3ba9d(%rip), %rdi     # 0x99fb0
callq 0xa030
movq %rax, %rdi
callq 0xa200
movq %rsp, %rdi
callq 0xa220
leaq 0x10(%rsp), %rdi
leaq 0x1a0(%rsp), %rsi
callq 0xa0a0
leaq 0x18(%rsp), %rsi
movq %rbx, %rdi
callq 0xa4a0
leaq 0x188(%rsp), %rdi
callq 0xa050
testb %bpl, %bpl
je 0x5e5c2
movq 0x3ba50(%rip), %rdi     # 0x99fb0
leaq 0x1dcf0(%rip), %rsi     # 0x7c257
movl $0x14, %edx
callq 0xa320
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq 0x3ba31(%rip), %rdi     # 0x99fb0
callq 0xa320
movq %rax, %r14
leaq 0x1dcde(%rip), %rsi     # 0x7c26c
movl $0x8, %edx
movq %rax, %rdi
callq 0xa320
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0xa2c0
movsbl %al, %esi
movq %r14, %rdi
callq 0xa030
movq %rax, %rdi
callq 0xa200
movq 0x3b9af(%rip), %rsi     # 0x99f78
movq %rsp, %rdi
callq 0xa250
leaq 0x80(%rsp), %rdi
callq 0xa120
jmp 0x5e66a
testb %bpl, %bpl
je 0x5e651
movq 0x3b9c1(%rip), %rdi     # 0x99fb0
leaq 0x1dc74(%rip), %rsi     # 0x7c26a
movl $0x1, %edx
callq 0xa320
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq 0x3b9a2(%rip), %rdi     # 0x99fb0
callq 0xa320
movq %rax, %r14
leaq 0x1dc08(%rip), %rsi     # 0x7c225
movl $0x13, %edx
movq %rax, %rdi
callq 0xa320
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0xa2c0
movsbl %al, %esi
movq %r14, %rdi
callq 0xa030
movq %rax, %rdi
callq 0xa200
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x193f0(%rip), %rdx     # 0x77a4f
movq %rbx, %rdi
movq %rdx, %rsi
callq 0xdfa8
leaq 0x188(%rsp), %rdi
callq 0xa0b0
movq %rbx, %rax
addq $0x398, %rsp            # imm = 0x398
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0x5e6c3
jmp 0x5e6c3
movq %rax, %r14
jmp 0x5e6a5
movq %rax, %r14
movq (%rbx), %rdi
addq $0x10, %rbx
cmpq %rbx, %rdi
je 0x5e6a5
callq 0xa2b0
movq 0x3b8cc(%rip), %rsi     # 0x99f78
movq %rsp, %rdi
callq 0xa250
leaq 0x80(%rsp), %rdi
callq 0xa120
jmp 0x5e6c6
movq %rax, %r14
leaq 0x188(%rsp), %rdi
callq 0xa0b0
movq %r14, %rdi
callq 0xa510