// File: 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
movq %rsp, %rbp
subq $0x690, %rsp            # imm = 0x690
movq %r8, -0x5f0(%rbp)
movq %rcx, -0x5e8(%rbp)
movq %rdi, -0x5e0(%rbp)
movq %rdi, %rax
movq %rax, -0x5d8(%rbp)
movb 0x10(%rbp), %al
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movl %r9d, -0x2c(%rbp)
andb $0x1, %al
movb %al, -0x2d(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x5d0(%rbp)
leaq -0x1b8(%rbp), %rdi
callq 0x2120
leaq -0x340(%rbp), %rdi
callq 0x2120
jmp 0x3e9e
movl $0x27, -0x350(%rbp)
cmpl $0x2, -0x14(%rbp)
jne 0x3efd
movl $0x1f, -0x350(%rbp)
leaq -0x330(%rbp), %rdi
leaq 0x217c(%rip), %rsi      # 0x6042
callq 0x21f0
jmp 0x3ecd
jmp 0x3efd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x348(%rbp)
movl %eax, -0x34c(%rbp)
jmp 0x47b8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x348(%rbp)
movl %eax, -0x34c(%rbp)
jmp 0x47ac
cmpl $0x0, -0x14(%rbp)
jne 0x3f24
movl $0x25, -0x350(%rbp)
leaq -0x330(%rbp), %rdi
leaq 0x212e(%rip), %rsi      # 0x6049
callq 0x21f0
jmp 0x3f22
jmp 0x3f24
cmpl $0x1, -0x14(%rbp)
jne 0x3f4b
movl $0x21, -0x350(%rbp)
leaq -0x330(%rbp), %rdi
leaq 0x210e(%rip), %rsi      # 0x6050
callq 0x21f0
jmp 0x3f49
jmp 0x3f4b
leaq -0x1a8(%rbp), %rax
movq %rax, -0x608(%rbp)
movl -0x350(%rbp), %eax
movl %eax, -0x5fc(%rbp)
leaq -0x391(%rbp), %rdi
movq %rdi, -0x5f8(%rbp)
callq 0x23b0
movq -0x5f8(%rbp), %rdx
leaq 0x20d1(%rip), %rsi      # 0x6057
leaq -0x390(%rbp), %rdi
callq 0x2c00
jmp 0x3f94
leaq -0x3b8(%rbp), %rdi
leaq -0x340(%rbp), %rsi
callq 0x21e0
jmp 0x3fa9
movl -0x5fc(%rbp), %edx
movq -0x5d0(%rbp), %rsi
movzbl -0x2d(%rbp), %ecx
andl $0x1, %ecx
movq %rsp, %rax
movl %ecx, (%rax)
leaq -0x370(%rbp), %rdi
movl $0x1, %ecx
leaq -0x390(%rbp), %r8
leaq -0x3b8(%rbp), %r9
callq 0x47d0
jmp 0x3fe3
movq -0x608(%rbp), %rdi
leaq -0x370(%rbp), %rsi
callq 0x21b0
jmp 0x3ff8
leaq -0x370(%rbp), %rdi
callq 0x20e0
leaq -0x3b8(%rbp), %rdi
callq 0x20e0
leaq -0x390(%rbp), %rdi
callq 0x20e0
leaq -0x391(%rbp), %rdi
callq 0x2250
leaq -0x3c0(%rbp), %rdi
movq %rdi, -0x628(%rbp)
callq 0x21d0
movq -0x628(%rbp), %rdi
callq 0x2140
movq %rax, -0x3c8(%rbp)
movq -0x3c8(%rbp), %rcx
leaq 0x1ffd(%rip), %rdx      # 0x6059
leaq -0x3f0(%rbp), %rdi
movl $0x1e, %esi
callq 0x2180
leaq -0x1a8(%rbp), %rax
movq %rax, -0x620(%rbp)
movl -0x350(%rbp), %eax
movl %eax, -0x614(%rbp)
leaq -0x431(%rbp), %rdi
movq %rdi, -0x610(%rbp)
callq 0x23b0
movq -0x610(%rbp), %rdx
leaq 0x1faf(%rip), %rsi      # 0x6057
leaq -0x430(%rbp), %rdi
callq 0x2c00
jmp 0x40b6
leaq -0x459(%rbp), %rdi
movq %rdi, -0x630(%rbp)
callq 0x23b0
movq -0x630(%rbp), %rdx
leaq -0x458(%rbp), %rdi
leaq -0x3f0(%rbp), %rsi
callq 0x2c00
jmp 0x40e5
movl -0x614(%rbp), %edx
movq -0x5d0(%rbp), %rsi
movzbl -0x2d(%rbp), %ecx
andl $0x1, %ecx
movq %rsp, %rax
movl %ecx, (%rax)
leaq -0x410(%rbp), %rdi
xorl %ecx, %ecx
leaq -0x430(%rbp), %r8
leaq -0x458(%rbp), %r9
callq 0x47d0
jmp 0x411c
movq -0x620(%rbp), %rdi
leaq -0x410(%rbp), %rsi
callq 0x21b0
jmp 0x4131
leaq -0x410(%rbp), %rdi
callq 0x20e0
leaq -0x458(%rbp), %rdi
callq 0x20e0
leaq -0x459(%rbp), %rdi
callq 0x2250
leaq -0x430(%rbp), %rdi
callq 0x20e0
leaq -0x431(%rbp), %rdi
callq 0x2250
movq -0x5e8(%rbp), %rdi
movl $0x0, -0x460(%rbp)
callq 0x2340
subq $0x1, %rax
movl %eax, -0x464(%rbp)
cmpl $0x0, -0x464(%rbp)
jle 0x43a1
movq -0x5e8(%rbp), %rsi
movslq -0x464(%rbp), %rdx
leaq -0x488(%rbp), %rdi
movl $0x1, %ecx
callq 0x2220
jmp 0x41bb
leaq -0x4a9(%rbp), %rdi
movq %rdi, -0x638(%rbp)
callq 0x23b0
movq -0x638(%rbp), %rdx
leaq 0x1e8f(%rip), %rsi      # 0x606b
leaq -0x4a8(%rbp), %rdi
callq 0x2c00
jmp 0x41ea
leaq -0x488(%rbp), %rdi
leaq -0x4a8(%rbp), %rsi
callq 0x4940
movb %al, -0x639(%rbp)
leaq -0x4a8(%rbp), %rdi
callq 0x20e0
leaq -0x4a9(%rbp), %rdi
callq 0x2250
leaq -0x488(%rbp), %rdi
callq 0x20e0
movb -0x639(%rbp), %al
testb $0x1, %al
jne 0x4236
jmp 0x438b
movl -0x464(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x460(%rbp)
jmp 0x43a1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x348(%rbp)
movl %eax, -0x34c(%rbp)
jmp 0x42bc
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x348(%rbp)
movl %eax, -0x34c(%rbp)
jmp 0x42b0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x348(%rbp)
movl %eax, -0x34c(%rbp)
jmp 0x42a4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x348(%rbp)
movl %eax, -0x34c(%rbp)
leaq -0x370(%rbp), %rdi
callq 0x20e0
leaq -0x3b8(%rbp), %rdi
callq 0x20e0
leaq -0x390(%rbp), %rdi
callq 0x20e0
leaq -0x391(%rbp), %rdi
callq 0x2250
jmp 0x47ac
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x348(%rbp)
movl %eax, -0x34c(%rbp)
jmp 0x434b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x348(%rbp)
movl %eax, -0x34c(%rbp)
jmp 0x4333
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x348(%rbp)
movl %eax, -0x34c(%rbp)
jmp 0x4327
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x348(%rbp)
movl %eax, -0x34c(%rbp)
leaq -0x410(%rbp), %rdi
callq 0x20e0
leaq -0x458(%rbp), %rdi
callq 0x20e0
leaq -0x459(%rbp), %rdi
callq 0x2250
leaq -0x430(%rbp), %rdi
callq 0x20e0
leaq -0x431(%rbp), %rdi
callq 0x2250
jmp 0x47ac
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x348(%rbp)
movl %eax, -0x34c(%rbp)
leaq -0x4a9(%rbp), %rdi
callq 0x2250
leaq -0x488(%rbp), %rdi
callq 0x20e0
jmp 0x47ac
jmp 0x438d
movl -0x464(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x464(%rbp)
jmp 0x418d
movq -0x5e8(%rbp), %rdi
movslq -0x460(%rbp), %rax
movq %rax, -0x648(%rbp)
callq 0x2340
movq -0x5e8(%rbp), %rsi
movq -0x648(%rbp), %rdx
movq %rax, %rcx
movslq -0x460(%rbp), %rax
subq %rax, %rcx
leaq -0x4d0(%rbp), %rdi
callq 0x2220
jmp 0x43e4
movq -0x5e8(%rbp), %rdi
leaq -0x4d0(%rbp), %rsi
movq %rsi, -0x660(%rbp)
callq 0x22b0
movq -0x660(%rbp), %rdi
callq 0x20e0
leaq -0x1a8(%rbp), %rax
movq %rax, -0x658(%rbp)
leaq -0x511(%rbp), %rdi
movq %rdi, -0x650(%rbp)
callq 0x23b0
movq -0x650(%rbp), %rdx
leaq 0x1c34(%rip), %rsi      # 0x606d
leaq -0x510(%rbp), %rdi
callq 0x2c00
jmp 0x4447
movq -0x5e8(%rbp), %r9
movq -0x5d0(%rbp), %rsi
movzbl -0x2d(%rbp), %ecx
andl $0x1, %ecx
movq %rsp, %rax
movl %ecx, (%rax)
leaq -0x4f0(%rbp), %rdi
movl $0x23, %edx
xorl %ecx, %ecx
leaq -0x510(%rbp), %r8
callq 0x47d0
jmp 0x447d
movq -0x658(%rbp), %rdi
leaq -0x4f0(%rbp), %rsi
callq 0x21b0
jmp 0x4492
leaq -0x4f0(%rbp), %rdi
callq 0x20e0
leaq -0x510(%rbp), %rdi
callq 0x20e0
leaq -0x511(%rbp), %rdi
callq 0x2250
leaq -0x1a8(%rbp), %rax
movq %rax, -0x670(%rbp)
leaq -0x559(%rbp), %rdi
movq %rdi, -0x668(%rbp)
callq 0x23b0
movq -0x668(%rbp), %rdx
leaq 0x1b88(%rip), %rsi      # 0x606d
leaq -0x558(%rbp), %rdi
callq 0x2c00
jmp 0x44f3
movl -0x2c(%rbp), %esi
leaq -0x580(%rbp), %rdi
callq 0x49d0
jmp 0x4504
movq -0x5d0(%rbp), %rsi
movzbl -0x2d(%rbp), %ecx
andl $0x1, %ecx
movq %rsp, %rax
movl %ecx, (%rax)
leaq -0x538(%rbp), %rdi
movl $0x20, %edx
movl $0x1, %ecx
leaq -0x558(%rbp), %r8
leaq -0x580(%rbp), %r9
callq 0x47d0
jmp 0x453d
movq -0x670(%rbp), %rdi
leaq -0x538(%rbp), %rsi
callq 0x21b0
jmp 0x4552
leaq -0x538(%rbp), %rdi
callq 0x20e0
leaq -0x580(%rbp), %rdi
callq 0x20e0
leaq -0x558(%rbp), %rdi
callq 0x20e0
leaq -0x559(%rbp), %rdi
callq 0x2250
leaq -0x1a8(%rbp), %rax
movq %rax, -0x680(%rbp)
leaq -0x5c1(%rbp), %rdi
movq %rdi, -0x678(%rbp)
callq 0x23b0
movq -0x678(%rbp), %rdx
leaq 0x1aa6(%rip), %rsi      # 0x6057
leaq -0x5c0(%rbp), %rdi
callq 0x2c00
jmp 0x45bf
movq -0x5f0(%rbp), %r9
movq -0x5d0(%rbp), %rsi
movzbl -0x2d(%rbp), %ecx
andl $0x1, %ecx
movq %rsp, %rax
movl %ecx, (%rax)
leaq -0x5a0(%rbp), %rdi
movl $0x24, %edx
xorl %ecx, %ecx
leaq -0x5c0(%rbp), %r8
callq 0x47d0
jmp 0x45f5
movq -0x680(%rbp), %rdi
leaq -0x5a0(%rbp), %rsi
callq 0x21b0
jmp 0x460a
leaq -0x5a0(%rbp), %rdi
callq 0x20e0
leaq -0x5c0(%rbp), %rdi
callq 0x20e0
leaq -0x5c1(%rbp), %rdi
callq 0x2250
movq -0x5e0(%rbp), %rdi
leaq -0x1b8(%rbp), %rsi
callq 0x21e0
jmp 0x4643
leaq -0x340(%rbp), %rdi
callq 0x2150
leaq -0x1b8(%rbp), %rdi
callq 0x2150
movq -0x5d8(%rbp), %rax
addq $0x690, %rsp            # imm = 0x690
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x348(%rbp)
movl %eax, -0x34c(%rbp)
jmp 0x46bd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x348(%rbp)
movl %eax, -0x34c(%rbp)
jmp 0x46b1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x348(%rbp)
movl %eax, -0x34c(%rbp)
leaq -0x4f0(%rbp), %rdi
callq 0x20e0
leaq -0x510(%rbp), %rdi
callq 0x20e0
leaq -0x511(%rbp), %rdi
callq 0x2250
jmp 0x47ac
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x348(%rbp)
movl %eax, -0x34c(%rbp)
jmp 0x4740
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x348(%rbp)
movl %eax, -0x34c(%rbp)
jmp 0x4734
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x348(%rbp)
movl %eax, -0x34c(%rbp)
jmp 0x4728
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x348(%rbp)
movl %eax, -0x34c(%rbp)
leaq -0x538(%rbp), %rdi
callq 0x20e0
leaq -0x580(%rbp), %rdi
callq 0x20e0
leaq -0x558(%rbp), %rdi
callq 0x20e0
leaq -0x559(%rbp), %rdi
callq 0x2250
jmp 0x47ac
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x348(%rbp)
movl %eax, -0x34c(%rbp)
jmp 0x47a0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x348(%rbp)
movl %eax, -0x34c(%rbp)
jmp 0x4794
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x348(%rbp)
movl %eax, -0x34c(%rbp)
leaq -0x5a0(%rbp), %rdi
callq 0x20e0
leaq -0x5c0(%rbp), %rdi
callq 0x20e0
leaq -0x5c1(%rbp), %rdi
callq 0x2250
leaq -0x340(%rbp), %rdi
callq 0x2150
leaq -0x1b8(%rbp), %rdi
callq 0x2150
movq -0x348(%rbp), %rdi
callq 0x23a0