// File: 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
movq %rsp, %rbp
subq $0x580, %rsp            # imm = 0x580
movq %rdi, -0x4f8(%rbp)
movq %rdi, %rax
movq %rax, -0x4f0(%rbp)
movq 0x10(%rbp), %rax
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movl %r8d, -0x24(%rbp)
movl %r9d, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x4e8(%rbp)
leaq -0x1b0(%rbp), %rdi
callq 0x2120
movl $0x27, -0x1b4(%rbp)
movq 0x10(%rbp), %rdi
leaq 0x27ed(%rip), %rsi      # 0x6061
callq 0x3ed0
movb %al, -0x4d9(%rbp)
jmp 0x3881
movb -0x4d9(%rbp), %al
testb $0x1, %al
jne 0x388d
jmp 0x38b0
movl $0x1f, -0x1b4(%rbp)
jmp 0x38b0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1c0(%rbp)
movl %eax, -0x1c4(%rbp)
jmp 0x3ea9
movq 0x10(%rbp), %rdi
leaq 0x275a(%rip), %rsi      # 0x6015
callq 0x3ed0
movb %al, -0x4f9(%rbp)
jmp 0x38c8
movb -0x4f9(%rbp), %al
testb $0x1, %al
jne 0x38d4
jmp 0x38de
movl $0x25, -0x1b4(%rbp)
movq 0x10(%rbp), %rdi
leaq 0x276a(%rip), %rsi      # 0x6053
callq 0x3ed0
movb %al, -0x4fa(%rbp)
jmp 0x38f6
movb -0x4fa(%rbp), %al
testb $0x1, %al
jne 0x3902
jmp 0x390c
movl $0x21, -0x1b4(%rbp)
movq -0x4e8(%rbp), %rsi
leaq -0x1a0(%rbp), %rax
movq %rax, -0x508(%rbp)
movl -0x1b4(%rbp), %edx
movq %rsi, %r9
addq $0x8, %r9
leaq -0x1e8(%rbp), %rdi
xorl %ecx, %ecx
movl $0x7c, %r8d
callq 0x3f00
jmp 0x3944
movq -0x508(%rbp), %rdi
leaq -0x1e8(%rbp), %rsi
callq 0x21b0
jmp 0x3959
leaq -0x1e8(%rbp), %rdi
callq 0x20d0
movq -0x4e8(%rbp), %rax
movl 0x8(%rax), %ecx
incl %ecx
movl %ecx, 0x8(%rax)
leaq -0x1f0(%rbp), %rdi
movq %rdi, -0x520(%rbp)
callq 0x21c0
movq -0x520(%rbp), %rdi
callq 0x2140
movq %rax, -0x1f8(%rbp)
movq -0x1f8(%rbp), %rcx
leaq 0x26c3(%rip), %rdx      # 0x606b
leaq -0x220(%rbp), %rdi
movq %rdi, -0x518(%rbp)
movl $0x1e, %esi
callq 0x2180
movq -0x4e8(%rbp), %rsi
movq -0x518(%rbp), %r9
leaq -0x1a0(%rbp), %rax
movq %rax, -0x510(%rbp)
movl -0x1b4(%rbp), %edx
leaq -0x240(%rbp), %rdi
xorl %ecx, %ecx
movl $0x7c, %r8d
callq 0x40a0
jmp 0x39f8
movq -0x510(%rbp), %rdi
leaq -0x240(%rbp), %rsi
callq 0x21b0
jmp 0x3a0d
leaq -0x240(%rbp), %rdi
callq 0x20d0
leaq -0x3c8(%rbp), %rdi
callq 0x2120
jmp 0x3a27
leaq -0x3b8(%rbp), %rdi
movq 0x10(%rbp), %rsi
callq 0x21b0
movq %rax, -0x528(%rbp)
jmp 0x3a40
movq -0x528(%rbp), %rdi
movl -0x28(%rbp), %esi
callq 0x2310
jmp 0x3a51
leaq -0x1a0(%rbp), %rax
movq %rax, -0x538(%rbp)
movl -0x1b4(%rbp), %eax
movl %eax, -0x52c(%rbp)
leaq -0x408(%rbp), %rdi
leaq -0x3c8(%rbp), %rsi
callq 0x21d0
jmp 0x3a80
movl -0x52c(%rbp), %edx
movq -0x4e8(%rbp), %rsi
leaq -0x3e8(%rbp), %rdi
movl $0x1, %ecx
movl $0x7c, %r8d
leaq -0x408(%rbp), %r9
callq 0x4240
jmp 0x3aad
movq -0x538(%rbp), %rdi
leaq -0x3e8(%rbp), %rsi
callq 0x21b0
jmp 0x3ac2
leaq -0x3e8(%rbp), %rdi
callq 0x20d0
leaq -0x408(%rbp), %rdi
callq 0x20d0
movl $0x0, -0x40c(%rbp)
movq -0x18(%rbp), %rdi
callq 0x22e0
subq $0x1, %rax
movl %eax, -0x410(%rbp)
cmpl $0x0, -0x410(%rbp)
jle 0x3c96
movq -0x18(%rbp), %rsi
movslq -0x410(%rbp), %rdx
leaq -0x430(%rbp), %rdi
movl $0x1, %ecx
callq 0x2210
jmp 0x3b22
leaq -0x451(%rbp), %rdi
movq %rdi, -0x540(%rbp)
callq 0x2330
movq -0x540(%rbp), %rdx
leaq 0x253a(%rip), %rsi      # 0x607d
leaq -0x450(%rbp), %rdi
callq 0x3260
jmp 0x3b51
leaq -0x430(%rbp), %rdi
leaq -0x450(%rbp), %rsi
callq 0x43e0
movb %al, -0x541(%rbp)
leaq -0x450(%rbp), %rdi
callq 0x20d0
leaq -0x451(%rbp), %rdi
callq 0x2240
leaq -0x430(%rbp), %rdi
callq 0x20d0
movb -0x541(%rbp), %al
testb $0x1, %al
jne 0x3b9d
jmp 0x3c80
movl -0x410(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x40c(%rbp)
jmp 0x3c96
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1c0(%rbp)
movl %eax, -0x1c4(%rbp)
leaq -0x1e8(%rbp), %rdi
callq 0x20d0
jmp 0x3ea9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1c0(%rbp)
movl %eax, -0x1c4(%rbp)
leaq -0x240(%rbp), %rdi
callq 0x20d0
jmp 0x3ea9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1c0(%rbp)
movl %eax, -0x1c4(%rbp)
jmp 0x3e9d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1c0(%rbp)
movl %eax, -0x1c4(%rbp)
jmp 0x3c40
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1c0(%rbp)
movl %eax, -0x1c4(%rbp)
leaq -0x3e8(%rbp), %rdi
callq 0x20d0
leaq -0x408(%rbp), %rdi
callq 0x20d0
jmp 0x3e9d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1c0(%rbp)
movl %eax, -0x1c4(%rbp)
leaq -0x451(%rbp), %rdi
callq 0x2240
leaq -0x430(%rbp), %rdi
callq 0x20d0
jmp 0x3e9d
jmp 0x3c82
movl -0x410(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x410(%rbp)
jmp 0x3af7
movq -0x18(%rbp), %rdi
movq %rdi, -0x558(%rbp)
movslq -0x40c(%rbp), %rax
movq %rax, -0x550(%rbp)
callq 0x22e0
movq -0x558(%rbp), %rsi
movq -0x550(%rbp), %rdx
movq %rax, %rcx
movslq -0x40c(%rbp), %rax
subq %rax, %rcx
leaq -0x478(%rbp), %rdi
callq 0x2210
jmp 0x3cdd
movq -0x18(%rbp), %rdi
leaq -0x478(%rbp), %rsi
movq %rsi, -0x568(%rbp)
callq 0x2290
movq -0x568(%rbp), %rdi
callq 0x20d0
movq -0x4e8(%rbp), %rsi
leaq -0x1a0(%rbp), %rax
movq %rax, -0x560(%rbp)
movq -0x18(%rbp), %r9
leaq -0x498(%rbp), %rdi
movl $0x23, %edx
xorl %ecx, %ecx
movl $0x3a, %r8d
callq 0x4240
jmp 0x3d34
movq -0x560(%rbp), %rdi
leaq -0x498(%rbp), %rsi
callq 0x21b0
jmp 0x3d49
leaq -0x498(%rbp), %rdi
callq 0x20d0
movq -0x4e8(%rbp), %rsi
leaq -0x1a0(%rbp), %rax
movq %rax, -0x570(%rbp)
leaq -0x4b8(%rbp), %rdi
movl $0x20, %edx
movl $0x1, %ecx
movl $0x3a, %r8d
leaq -0x24(%rbp), %r9
callq 0x3f00
jmp 0x3d8c
movq -0x570(%rbp), %rdi
leaq -0x4b8(%rbp), %rsi
callq 0x21b0
jmp 0x3da1
leaq -0x4b8(%rbp), %rdi
callq 0x20d0
movq -0x4e8(%rbp), %rsi
leaq -0x1a0(%rbp), %rax
movq %rax, -0x578(%rbp)
movq -0x20(%rbp), %r9
leaq -0x4d8(%rbp), %rdi
movl $0x24, %edx
xorl %ecx, %ecx
movl $0x7c, %r8d
callq 0x4240
jmp 0x3de1
movq -0x578(%rbp), %rdi
leaq -0x4d8(%rbp), %rsi
callq 0x21b0
jmp 0x3df6
leaq -0x4d8(%rbp), %rdi
callq 0x20d0
movq -0x4f8(%rbp), %rdi
leaq -0x1b0(%rbp), %rsi
callq 0x21d0
jmp 0x3e17
leaq -0x3c8(%rbp), %rdi
callq 0x2150
leaq -0x1b0(%rbp), %rdi
callq 0x2150
movq -0x4f0(%rbp), %rax
addq $0x580, %rsp            # imm = 0x580
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1c0(%rbp)
movl %eax, -0x1c4(%rbp)
leaq -0x498(%rbp), %rdi
callq 0x20d0
jmp 0x3e9d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1c0(%rbp)
movl %eax, -0x1c4(%rbp)
leaq -0x4b8(%rbp), %rdi
callq 0x20d0
jmp 0x3e9d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1c0(%rbp)
movl %eax, -0x1c4(%rbp)
leaq -0x4d8(%rbp), %rdi
callq 0x20d0
leaq -0x3c8(%rbp), %rdi
callq 0x2150
leaq -0x1b0(%rbp), %rdi
callq 0x2150
movq -0x1c0(%rbp), %rdi
callq 0x2320
nopw %cs:(%rax,%rax)
nopl (%rax,%rax)