// File: /workspace/github_cpp_makefile_star2_O1/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 0x5d78e
movq 0x3b884(%rip), %rdi     # 0x98fb0
leaq 0x1db18(%rip), %rsi     # 0x7b24b
movl $0x14, %edx
callq 0xa320
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq 0x3b865(%rip), %rdi     # 0x98fb0
callq 0xa320
movq %rax, %r15
leaq 0x1db06(%rip), %rsi     # 0x7b260
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 0x5d8c6
testb %bpl, %bpl
je 0x5d803
movq 0x3b7ec(%rip), %r15     # 0x98fb0
leaq 0x1daae(%rip), %rsi     # 0x7b279
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 0x3b7ba(%rip), %rdi     # 0x98fb0
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 0x5d8a5
movq 0x3b76d(%rip), %rdi     # 0x98fb0
leaq 0x1da4d(%rip), %rsi     # 0x7b297
movl $0x14, %edx
callq 0xa320
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq 0x3b74e(%rip), %rdi     # 0x98fb0
callq 0xa320
movq %rax, %r14
leaq 0x1da3b(%rip), %rsi     # 0x7b2ac
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 0x3b6cc(%rip), %rsi     # 0x98f78
movq %rsp, %rdi
callq 0xa250
leaq 0x80(%rsp), %rdi
callq 0xa120
jmp 0x5d94d
testb %bpl, %bpl
je 0x5d934
movq 0x3b6de(%rip), %rdi     # 0x98fb0
leaq 0x1d9d1(%rip), %rsi     # 0x7b2aa
movl $0x1, %edx
callq 0xa320
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq 0x3b6bf(%rip), %rdi     # 0x98fb0
callq 0xa320
movq %rax, %r14
leaq 0x1d965(%rip), %rsi     # 0x7b265
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 0x1910d(%rip), %rdx     # 0x76a4f
movq %rbx, %rdi
movq %rdx, %rsi
callq 0xdf6a
leaq 0x188(%rsp), %rdi
callq 0xa0b0
movq %rbx, %rax
addq $0x398, %rsp            # imm = 0x398
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0x5d9a6
jmp 0x5d9a6
movq %rax, %r14
jmp 0x5d988
movq %rax, %r14
movq (%rbx), %rdi
addq $0x10, %rbx
cmpq %rbx, %rdi
je 0x5d988
callq 0xa2b0
movq 0x3b5e9(%rip), %rsi     # 0x98f78
movq %rsp, %rdi
callq 0xa250
leaq 0x80(%rsp), %rdi
callq 0xa120
jmp 0x5d9a9
movq %rax, %r14
leaq 0x188(%rsp), %rdi
callq 0xa0b0
movq %r14, %rdi
callq 0xa510