// File: /workspace/github_cpp_makefile_star2_O2/Shenggan[P]SnowFlake/test/../utils/lightlog.h
// Function: llog::Message::logHeader(int, 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, bool)
std::string logHeader(int level, std::string file, std::string function, int linenumber, bool if_color = true) {
        std::stringstream ss;
        std::stringstream st;
        int color = 39;
        if (level==2) { color = COLOR_ERRO; st << "[ERRO]"; }
		if (level==0) { color = COLOR_INFO; st << "[INFO]"; }
		if (level==1) { color = COLOR_WARN; st << "[WARN]"; }
        ss << colorStr(color,1,DELIMITER,st.str(), if_color);

        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, if_color);

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

        return ss.str();
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x3d8, %rsp            # imm = 0x3D8
movl %r9d, %ebp
movq %r8, %r14
movq %rcx, %r13
movl %edx, %ebx
movq %rsi, %r12
movq %rdi, %r15
leaq 0x250(%rsp), %rdi
callq 0x20c0
leaq 0xc8(%rsp), %rdi
callq 0x20c0
testl %ebx, %ebx
movq %r14, 0x80(%rsp)
je 0x2fec
cmpl $0x1, %ebx
je 0x2fd4
cmpl $0x2, %ebx
jne 0x3004
leaq 0xd8(%rsp), %rdi
leaq 0x1077(%rip), %rsi      # 0x4042
callq 0x2170
pushq $0x1f
jmp 0x3006
leaq 0xd8(%rsp), %rdi
leaq 0x106d(%rip), %rsi      # 0x4050
callq 0x2170
pushq $0x21
jmp 0x3006
leaq 0xd8(%rsp), %rdi
leaq 0x104e(%rip), %rsi      # 0x4049
callq 0x2170
pushq $0x25
jmp 0x3006
pushq $0x27
popq %r14
leaq 0x1048(%rip), %rsi      # 0x4057
leaq 0x38(%rsp), %rdi
leaq 0xa0(%rsp), %rdx
callq 0x2764
leaq 0xe0(%rsp), %rsi
leaq 0x60(%rsp), %rdi
callq 0x2260
movzbl 0x410(%rsp), %ebx
movl %ebx, (%rsp)
leaq 0x18(%rsp), %rdi
pushq $0x1
popq %rcx
leaq 0x38(%rsp), %r8
leaq 0x60(%rsp), %r9
movq %r12, %rsi
movl %r14d, %edx
callq 0x33f2
movl %ebx, 0x14(%rsp)
leaq 0x260(%rsp), %rdi
leaq 0x18(%rsp), %rsi
callq 0x2140
leaq 0x18(%rsp), %rdi
callq 0x2080
leaq 0x60(%rsp), %rdi
callq 0x2080
leaq 0x38(%rsp), %rdi
callq 0x2080
leaq 0x98(%rsp), %rbx
movq %rbx, %rdi
callq 0x2160
movq %rbx, %rdi
callq 0x20e0
leaq 0xfab(%rip), %rdx       # 0x4059
leaq 0xa0(%rsp), %rdi
pushq $0x1e
popq %rsi
movq %rax, %rcx
callq 0x2110
leaq 0xf8f(%rip), %rsi       # 0x4057
leaq 0x38(%rsp), %rdi
leaq 0x12(%rsp), %rdx
callq 0x2764
leaq 0x60(%rsp), %rdi
leaq 0xa0(%rsp), %rsi
leaq 0x13(%rsp), %rdx
callq 0x2764
movl 0x14(%rsp), %eax
movl %eax, (%rsp)
leaq 0x18(%rsp), %rdi
leaq 0x38(%rsp), %r8
leaq 0x60(%rsp), %r9
movq %r12, %rsi
movl %r14d, %edx
xorl %ecx, %ecx
callq 0x33f2
movl %ebp, 0x5c(%rsp)
movq %r12, 0x88(%rsp)
movq %r15, 0x90(%rsp)
leaq 0x18(%rsp), %rsi
leaq 0x260(%rsp), %rdi
callq 0x2140
leaq 0x18(%rsp), %r14
movq %r14, %rdi
callq 0x2080
leaq 0x60(%rsp), %rdi
callq 0x2080
leaq 0x38(%rsp), %r12
movq %r12, %rdi
callq 0x2080
movl 0x8(%r13), %ebx
leaq 0xf05(%rip), %rbp       # 0x406b
decq %rbx
testl %ebx, %ebx
jle 0x31be
movl %ebx, %edx
andl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
movq %r14, %rdi
movq %r13, %rsi
pushq $0x1
popq %rcx
callq 0x21a0
movq %r12, %rdi
movq %rbp, %rsi
leaq 0x60(%rsp), %rdx
callq 0x2764
movq %r14, %rdi
movq %r12, %rsi
callq 0x34d6
movl %eax, %r15d
movq %r12, %rdi
callq 0x2080
movq %r14, %rdi
callq 0x2080
testb %r15b, %r15b
je 0x3166
incq %rbx
movq %rbx, %rdx
jmp 0x31c0
xorl %edx, %edx
movq 0x8(%r13), %rcx
subq %rdx, %rcx
leaq 0x18(%rsp), %rdi
movq %r13, %rsi
callq 0x21a0
movq 0x90(%rsp), %r14
movq 0x88(%rsp), %r15
movl 0x5c(%rsp), %ebp
leaq 0x260(%rsp), %r12
leaq 0x18(%rsp), %rbx
movq %r13, %rdi
movq %rbx, %rsi
callq 0x21f0
movq %rbx, %rdi
callq 0x2080
leaq 0xe5e(%rip), %rsi       # 0x406d
leaq 0x38(%rsp), %rdi
leaq 0x60(%rsp), %rdx
callq 0x2764
movl 0x14(%rsp), %ebx
movl %ebx, (%rsp)
leaq 0x18(%rsp), %rdi
pushq $0x23
popq %rdx
leaq 0x38(%rsp), %r8
movq %r15, %rsi
xorl %ecx, %ecx
movq %r13, %r9
callq 0x33f2
leaq 0x18(%rsp), %rsi
movq %r12, %rdi
callq 0x2140
leaq 0x18(%rsp), %rdi
callq 0x2080
leaq 0x38(%rsp), %rdi
callq 0x2080
leaq 0xe06(%rip), %rsi       # 0x406d
leaq 0x38(%rsp), %rdi
leaq 0x12(%rsp), %rdx
callq 0x2764
leaq 0x60(%rsp), %rdi
movl %ebp, %esi
callq 0x34ff
movl %ebx, (%rsp)
leaq 0x18(%rsp), %rdi
pushq $0x20
popq %rdx
pushq $0x1
popq %rcx
leaq 0x38(%rsp), %r8
leaq 0x60(%rsp), %r9
movq %r15, %rsi
callq 0x33f2
leaq 0x18(%rsp), %rsi
movq %r12, %rdi
callq 0x2140
leaq 0x18(%rsp), %rdi
callq 0x2080
leaq 0x60(%rsp), %rdi
callq 0x2080
leaq 0x38(%rsp), %rdi
callq 0x2080
leaq 0xd83(%rip), %rsi       # 0x4057
leaq 0x38(%rsp), %rdi
leaq 0x60(%rsp), %rdx
callq 0x2764
movl %ebx, (%rsp)
leaq 0x18(%rsp), %rdi
pushq $0x24
popq %rdx
leaq 0x38(%rsp), %r8
movq %r15, %rsi
xorl %ecx, %ecx
movq 0x80(%rsp), %r9
callq 0x33f2
leaq 0x18(%rsp), %rsi
movq %r12, %rdi
callq 0x2140
leaq 0x18(%rsp), %rdi
callq 0x2080
leaq 0x38(%rsp), %rdi
callq 0x2080
leaq 0x268(%rsp), %rsi
movq %r14, %rdi
callq 0x2260
leaq 0xc8(%rsp), %rdi
callq 0x20f0
leaq 0x250(%rsp), %rdi
callq 0x20f0
movq %r14, %rax
addq $0x3d8, %rsp            # imm = 0x3D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x33be
jmp 0x33be
jmp 0x3377
jmp 0x33ad
jmp 0x33be
jmp 0x338f
jmp 0x339e
jmp 0x33ad
jmp 0x33be
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
jmp 0x33a6
jmp 0x33ad
jmp 0x33be
jmp 0x33be
jmp 0x338f
jmp 0x339e
jmp 0x33ad
jmp 0x33be
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x2080
jmp 0x33a1
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
callq 0x2080
jmp 0x33b0
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
jmp 0x33cb
jmp 0x33be
movq %rax, %rbx
jmp 0x33dd
movq %rax, %rbx
jmp 0x33d0
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x2080
leaq 0xc8(%rsp), %rdi
callq 0x20f0
leaq 0x250(%rsp), %rdi
callq 0x20f0
movq %rbx, %rdi
callq 0x22a0