// File: /workspace/github_cpp_makefile_star2_O2/WilstonOreo[P]Log/./log/Log.hpp
// Function: Log::logHeader(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
string logHeader(string& file, string& function, 
			int linenumber, int _level, string& type)
	{
#ifdef LOGGING
		stringstream ss; 
		int color = 39;
#ifdef OUTPUT_COLOR				    //former "default" values	
		if (type=="ERR") color = COLOR_ERR; //31;  
		if (type=="MSG") color = COLOR_MSG; //37; 
		if (type=="WRN") color = COLOR_WRN; //33;
#endif 

#ifdef OUTPUT_COUNTER
		ss << colorStr(color,0,DELIMITER,counter);
		counter++;
#endif 

#ifdef OUTPUT_TIME
		time_t rawtime;
		struct tm * timeinfo;
		char timeBuffer[30];
		time(&rawtime);
		timeinfo = localtime(&rawtime);
		strftime(timeBuffer,30,"%Y/%m/%d-%H:%M:%S",timeinfo); 
		ss << colorStr(color,0,DELIMITER,timeBuffer);		
#endif
#ifdef OUTPUT_TIMER
		timespec newTime;
		clock_gettime(CLOCK_REALTIME,&newTime);
		timespec difference;
		/* Add and two values. */ 
		difference.tv_sec 	= newTime.tv_sec - ts.tv_sec; 
		difference.tv_nsec 	= newTime.tv_nsec- ts.tv_nsec; /* Return the normalized difference. */ 
		timespec_normalize(&difference);
		double diff = difference.tv_sec + difference.tv_nsec/1000000000.0;
		ss << colorStr(color,0,DELIMITER,diff);
#endif 

#ifdef OUTPUT_MSG
		stringstream st; st << type << _level;
		ss << colorStr(color,1,DELIMITER,st.str());
#endif

#ifdef OUTPUT_SRC
		int pPos = 0;
		for (int i = file.length()-1; i > 0; i--)
			if (file.substr(i,1)==string("/"))
			{ pPos = i+1; break; }
		file = file.substr(pPos,file.length()-pPos);
		ss << colorStr(COLOR_FILE,0,':',file); //35
		ss << colorStr(COLOR_LINE,1,':',linenumber); //32
		ss << colorStr(COLOR_FUNC,0,DELIMITER,function); //36
#endif

		return ss.str();
#endif
#ifndef LOGGING		
		return string();
#endif
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x3b8, %rsp            # imm = 0x3B8
movl %r9d, %ebp
movq %rcx, 0x50(%rsp)
movq %rdx, 0x40(%rsp)
movq %rsi, %r13
movq %rdi, %r12
movq 0x3f0(%rsp), %r14
movl %r8d, 0x3c(%rsp)
leaq 0x230(%rsp), %rdi
callq 0x20e0
leaq 0x1234(%rip), %rsi      # 0x4061
movq %r14, %rdi
callq 0x31b7
xorb $0x1, %al
movzbl %al, %eax
leal 0x1f(,%rax,8), %ebx
leaq 0x11cd(%rip), %rsi      # 0x4015
movq %r14, %rdi
callq 0x31b7
testb %al, %al
pushq $0x25
popq %r15
cmovel %ebx, %r15d
leaq 0x11f2(%rip), %rsi      # 0x4053
movq %r14, %rdi
callq 0x31b7
testb %al, %al
pushq $0x21
popq %rbx
cmovel %r15d, %ebx
leaq 0x8(%r13), %r9
leaq 0xa8(%rsp), %rdi
pushq $0x7c
popq %r8
movq %r13, 0x10(%rsp)
movq %r13, %rsi
movl %ebx, %edx
xorl %ecx, %ecx
callq 0x31c4
leaq 0x240(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
callq 0x2160
leaq 0xa8(%rsp), %rdi
callq 0x2090
movq 0x10(%rsp), %r13
incl 0x8(%r13)
leaq 0x78(%rsp), %r15
movq %r15, %rdi
callq 0x2170
movq %r15, %rdi
callq 0x2100
leaq 0x1191(%rip), %rdx      # 0x406b
leaq 0x80(%rsp), %r15
pushq $0x1e
popq %rsi
movq %r15, %rdi
movq %rax, %rcx
callq 0x2130
leaq 0xa8(%rsp), %rdi
pushq $0x7c
popq %r8
movq %r13, %rsi
movl %ebx, %edx
xorl %ecx, %ecx
movq %r15, %r9
callq 0x32b6
leaq 0xa8(%rsp), %rsi
leaq 0x240(%rsp), %r15
movq %r15, %rdi
callq 0x2160
movq 0x40(%rsp), %r13
leaq 0xa8(%rsp), %rdi
callq 0x2090
leaq 0xa8(%rsp), %rdi
callq 0x20e0
leaq 0xb8(%rsp), %rdi
movq %r14, %rsi
callq 0x2160
movq %rax, %rdi
movl %ebp, %esi
callq 0x2230
leaq 0xc0(%rsp), %rsi
leaq 0x58(%rsp), %rdi
callq 0x2210
leaq 0x18(%rsp), %rdi
pushq $0x1
popq %rcx
pushq $0x7c
popq %r8
leaq 0x58(%rsp), %r9
movq 0x10(%rsp), %rsi
movl %ebx, %edx
callq 0x33a8
movq %r12, 0x48(%rsp)
leaq 0x18(%rsp), %rsi
movq %r15, %rdi
callq 0x2160
leaq 0x18(%rsp), %r14
movq %r14, %rdi
callq 0x2090
leaq 0x58(%rsp), %rbp
movq %rbp, %rdi
callq 0x2090
movl 0x8(%r13), %r12d
leaq 0x10bb(%rip), %r15      # 0x407d
leaq 0xf(%rsp), %rbx
decq %r12
testl %r12d, %r12d
jle 0x3024
movl %r12d, %edx
andl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
movq %r14, %rdi
movq %r13, %rsi
pushq $0x1
popq %rcx
callq 0x21b0
movq %rbp, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x2b44
movq %r14, %rdi
movq %rbp, %rsi
callq 0x349a
movl %eax, %r13d
movq %rbp, %rdi
callq 0x2090
movq %r14, %rdi
callq 0x2090
testb %r13b, %r13b
movq 0x40(%rsp), %r13
je 0x2fc7
incq %r12
movq %r12, %rdx
jmp 0x3026
xorl %edx, %edx
movq 0x8(%r13), %rcx
subq %rdx, %rcx
leaq 0x18(%rsp), %rdi
movq %r13, %rsi
callq 0x21b0
movq 0x48(%rsp), %r14
leaq 0x240(%rsp), %r15
leaq 0x18(%rsp), %rbx
movq %r13, %rdi
movq %rbx, %rsi
callq 0x21d0
movq %rbx, %rdi
callq 0x2090
leaq 0x18(%rsp), %rdi
pushq $0x23
popq %rdx
pushq $0x3a
popq %r8
movq 0x10(%rsp), %rsi
xorl %ecx, %ecx
movq %r13, %r9
callq 0x33a8
leaq 0x18(%rsp), %rsi
movq %r15, %rdi
callq 0x2160
leaq 0x18(%rsp), %rdi
callq 0x2090
leaq 0x18(%rsp), %rdi
pushq $0x20
popq %rdx
pushq $0x1
popq %rcx
pushq $0x3a
popq %r8
leaq 0x3c(%rsp), %r9
movq 0x10(%rsp), %rsi
callq 0x31c4
leaq 0x18(%rsp), %rsi
movq %r15, %rdi
callq 0x2160
leaq 0x18(%rsp), %rdi
callq 0x2090
leaq 0x18(%rsp), %rdi
pushq $0x24
popq %rdx
pushq $0x7c
popq %r8
movq 0x10(%rsp), %rsi
xorl %ecx, %ecx
movq 0x50(%rsp), %r9
callq 0x33a8
leaq 0x18(%rsp), %rsi
movq %r15, %rdi
callq 0x2160
leaq 0x18(%rsp), %rdi
callq 0x2090
leaq 0x248(%rsp), %rsi
movq %r14, %rdi
callq 0x2210
leaq 0xa8(%rsp), %rdi
callq 0x2110
leaq 0x230(%rsp), %rdi
callq 0x2110
movq %r14, %rax
addq $0x3b8, %rsp            # imm = 0x3B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3183
jmp 0x3188
jmp 0x3183
jmp 0x3188
jmp 0x3183
jmp 0x3188
jmp 0x3183
jmp 0x3183
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x2090
jmp 0x315b
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
jmp 0x3190
jmp 0x3183
jmp 0x317c
jmp 0x316a
jmp 0x317c
movq %rax, %rbx
leaq 0xa8(%rsp), %rdi
callq 0x2090
jmp 0x31a2
movq %rax, %rbx
jmp 0x31a2
jmp 0x3183
movq %rax, %rbx
jmp 0x3195
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x2090
leaq 0xa8(%rsp), %rdi
callq 0x2110
leaq 0x230(%rsp), %rdi
callq 0x2110
movq %rbx, %rdi
callq 0x2240