// File: /workspace/github_cpp_makefile_star2_O3/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, %r15d
movq %r8, %r14
movq %rcx, 0x70(%rsp)
movl %edx, %ebp
movq %rsi, %r13
movq %rdi, %rbx
leaq 0x250(%rsp), %rdi
callq 0x20c0
leaq 0xc8(%rsp), %rdi
callq 0x20c0
testl %ebp, %ebp
je 0x3338
cmpl $0x1, %ebp
je 0x3317
movl $0x27, %r12d
cmpl $0x2, %ebp
jne 0x3357
movl $0x1f, %r12d
leaq 0xd8(%rsp), %rdi
leaq 0xd37(%rip), %rsi       # 0x4042
movl $0x6, %edx
callq 0x21b0
jmp 0x3357
movl $0x21, %r12d
leaq 0xd8(%rsp), %rdi
leaq 0xd24(%rip), %rsi       # 0x4050
movl $0x6, %edx
callq 0x21b0
jmp 0x3357
movl $0x25, %r12d
leaq 0xd8(%rsp), %rdi
leaq 0xcfc(%rip), %rsi       # 0x4049
movl $0x6, %edx
callq 0x21b0
leaq 0x38(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0xcf0(%rip), %rsi       # 0x4057
leaq 0xcea(%rip), %rdx       # 0x4058
leaq 0x28(%rsp), %rdi
callq 0x3bce
leaq 0xe0(%rsp), %rsi
leaq 0x48(%rsp), %rdi
callq 0x2240
movzbl 0x410(%rsp), %eax
movl %eax, 0x6c(%rsp)
movl %eax, (%rsp)
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %r8
leaq 0x48(%rsp), %r9
movq %r13, %rsi
movl %r12d, %edx
movl $0x1, %ecx
callq 0x3a9e
leaq 0x260(%rsp), %rbp
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbp, %rdi
callq 0x21b0
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x33ed
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2180
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3408
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2180
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x3424
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2180
movq %r15, 0x90(%rsp)
movq %r14, 0x78(%rsp)
movq %rbx, 0x80(%rsp)
leaq 0x98(%rsp), %r14
movq %r14, %rdi
callq 0x2160
movq %r14, %rdi
callq 0x20f0
leaq 0xc01(%rip), %rdx       # 0x4059
leaq 0xa0(%rsp), %rdi
movl $0x1e, %esi
movq %rax, %rcx
callq 0x2110
leaq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
movq %rax, (%rdi)
leaq 0xbd6(%rip), %rsi       # 0x4057
leaq 0xbd0(%rip), %rdx       # 0x4058
callq 0x3bce
leaq 0x48(%rsp), %r14
leaq 0x58(%rsp), %rax
movq %rax, (%r14)
leaq 0xa0(%rsp), %r15
movq %r15, %rdi
callq 0x2080
leaq (%rsp,%rax), %rdx
addq $0xa0, %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0x3bce
movq 0x70(%rsp), %rbx
movl 0x6c(%rsp), %eax
movl %eax, (%rsp)
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %r8
leaq 0x48(%rsp), %r9
movq %r13, %rsi
movl %r12d, %edx
xorl %ecx, %ecx
callq 0x3a9e
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbp, %rdi
callq 0x21b0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x3516
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2180
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x3532
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2180
movq %r13, 0x88(%rsp)
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x3556
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2180
movl 0x8(%rbx), %ebx
leaq 0xb0b(%rip), %r15       # 0x406b
leaq 0xb05(%rip), %r13       # 0x406c
leaq 0x28(%rsp), %rbp
decq %rbx
testl %ebx, %ebx
jle 0x362a
movl %ebx, %edx
andl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
movl $0x1, %ecx
leaq 0x8(%rsp), %rdi
movq 0x70(%rsp), %rsi
callq 0x21a0
leaq 0x38(%rsp), %rax
movq %rax, 0x28(%rsp)
movq %rbp, %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x3bce
movq 0x10(%rsp), %rdx
cmpq 0x30(%rsp), %rdx
jne 0x35d6
movq 0x28(%rsp), %r12
testq %rdx, %rdx
je 0x35e0
movq 0x8(%rsp), %rdi
movq %r12, %rsi
callq 0x2190
testl %eax, %eax
sete %r14b
jmp 0x35e3
movq 0x28(%rsp), %r12
xorl %r14d, %r14d
jmp 0x35e3
movb $0x1, %r14b
leaq 0x38(%rsp), %rax
cmpq %rax, %r12
je 0x35fd
movq 0x38(%rsp), %rsi
incq %rsi
movq %r12, %rdi
callq 0x2180
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x3619
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2180
testb %r14b, %r14b
je 0x356c
incq %rbx
movq %rbx, %rdx
jmp 0x362c
xorl %edx, %edx
movq 0x70(%rsp), %rbx
movq 0x8(%rbx), %rcx
subq %rdx, %rcx
leaq 0x8(%rsp), %rdi
movq %rbx, %rsi
callq 0x21a0
movq 0x88(%rsp), %r12
movq 0x90(%rsp), %r15
leaq 0x260(%rsp), %r13
movl 0x6c(%rsp), %ebp
leaq 0x8(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x21f0
movq (%r14), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x368b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2180
leaq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
movq %rax, (%rdi)
leaq 0x9ce(%rip), %rsi       # 0x406d
leaq 0x9c8(%rip), %rdx       # 0x406e
callq 0x3bce
movl %ebp, (%rsp)
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %r8
movq %r12, %rsi
movl $0x23, %edx
xorl %ecx, %ecx
movq %rbx, %r9
callq 0x3a9e
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %r13, %rdi
callq 0x21b0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x36f8
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2180
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x3714
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2180
leaq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
movq %rax, (%rdi)
leaq 0x945(%rip), %rsi       # 0x406d
leaq 0x93f(%rip), %rdx       # 0x406e
callq 0x3bce
movl %r15d, %ebx
negl %ebx
cmovsl %r15d, %ebx
movl $0x1, %r14d
cmpl $0xa, %ebx
jb 0x3791
movl $0x4, %r14d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebx, %ecx
cmpl $0x63, %ecx
jbe 0x3788
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x378e
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x3791
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r14d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x3755
addl $-0x3, %r14d
jmp 0x3791
addl $-0x2, %r14d
jmp 0x3791
decl %r14d
shrl $0x1f, %r15d
leal (%r14,%r15), %esi
leaq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
movq %rax, (%rdi)
movl $0x2d, %edx
callq 0x21c0
movl %r15d, %edi
leaq 0x48(%rsp), %r15
addq (%r15), %rdi
movl %r14d, %esi
movl %ebx, %edx
callq 0x3c63
movl %ebp, (%rsp)
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %r8
movq %r12, %rsi
movl $0x20, %edx
movl $0x1, %ecx
movq %r15, %r9
callq 0x3a9e
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %r13, %rdi
callq 0x21b0
movq 0x80(%rsp), %r15
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x381d
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2180
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x3839
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2180
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x3855
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2180
leaq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
movq %rax, (%rdi)
leaq 0x7ee(%rip), %rsi       # 0x4057
leaq 0x7e8(%rip), %rdx       # 0x4058
callq 0x3bce
movl %ebp, (%rsp)
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %r8
movq %r12, %rsi
movl $0x24, %edx
xorl %ecx, %ecx
movq 0x78(%rsp), %r9
callq 0x3a9e
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %r13, %rdi
callq 0x21b0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x38c4
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2180
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x38e0
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2180
leaq 0x268(%rsp), %rsi
movq %r15, %rdi
callq 0x2240
movq 0x26c1(%rip), %rbx      # 0x5fb8
leaq 0xc8(%rsp), %r12
movq %r12, %rdi
movq %rbx, %rsi
callq 0x20e0
movl $0x80, %r14d
addq %r14, %r12
movq %r12, %rdi
callq 0x2060
leaq 0x250(%rsp), %r12
movq %r12, %rdi
movq %rbx, %rsi
callq 0x20e0
addq %r14, %r12
movq %r12, %rdi
callq 0x2060
movq %r15, %rax
addq $0x3d8, %rsp            # imm = 0x3D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3a2f
jmp 0x3a2f
jmp 0x3972
jmp 0x3a0f
jmp 0x3a2f
jmp 0x399b
jmp 0x39bc
jmp 0x3a0f
jmp 0x3a2f
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x3a12
movq 0x18(%rsp), %rsi
jmp 0x3a05
jmp 0x3a0f
jmp 0x3a2f
jmp 0x3a2f
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x39bf
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2180
jmp 0x39bf
movq %rax, %rbx
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
jmp 0x39fb
jmp 0x3a0f
jmp 0x3a2f
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x39f2
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2180
jmp 0x39f2
movq %rax, %rbx
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3a12
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2180
jmp 0x3a12
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x3a53
movq 0x38(%rsp), %rsi
jmp 0x3a4b
jmp 0x3a2f
movq %rax, %rbx
jmp 0x3a74
movq %rax, %rbx
jmp 0x3a53
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x3a53
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2180
movq 0x255e(%rip), %rsi      # 0x5fb8
leaq 0xc8(%rsp), %rdi
callq 0x20e0
leaq 0x148(%rsp), %rdi
callq 0x2060
movq 0x253d(%rip), %rsi      # 0x5fb8
leaq 0x250(%rsp), %rdi
callq 0x20e0
leaq 0x2d0(%rsp), %rdi
callq 0x2060
movq %rbx, %rdi
callq 0x2280
nop