// File: /workspace/github_cpp_makefile_star2_O1/guoxuanhan[P]NetServer/httpsession.cpp
// Function: HttpSession::HttpError(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, _HttpRequestContext const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
void HttpSession::HttpError(const int err_num, const std::string short_msg, const HttpRequestContext &httprequestcontext, std::string &responsecontext)
{
    //这里string创建销毁应该会耗时间
    std::string responsebody;
    responsebody += "<html><title>出错了</title>";
    responsebody += "<head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"></head>";
    responsebody += "<style>body{background-color:#f;font-size:14px;}h1{font-size:60px;color:#eeetext-align:center;padding-top:30px;font-weight:normal;}</style>";
    responsebody += "<body bgcolor=\"ffffff\"><h1>";
    responsebody += std::to_string(err_num) + " " + short_msg;
    responsebody += "</h1><hr><em> GuoJ's NetServer</em>\n</body></html>";

    std::string httpversion;
    if(httprequestcontext.version.empty())
    {
        httpversion = "HTTP/1.1";
    }
    else
    {
        httpversion = httprequestcontext.version;
    }

    responsecontext += httpversion + " " + std::to_string(err_num) + " " + short_msg + "\r\n";
    responsecontext += "Server: GuoJ's NetServer/0.1\r\n";
    responsecontext += "Content-Type: text/html\r\n";
    responsecontext += "Connection: Keep-Alive\r\n";
    responsecontext += "Content-Length: " + std::to_string(responsebody.size()) + "\r\n";
    responsecontext += "\r\n";
    responsecontext += responsebody;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x118, %rsp            # imm = 0x118
movq %r8, 0x88(%rsp)
movq %rcx, %r13
movq %rdx, 0x90(%rsp)
movl %esi, %r15d
leaq 0x78(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x6c6c(%rip), %rsi      # 0x10bd4
leaq 0x68(%rsp), %rdi
callq 0x45f0
leaq 0x6c7a(%rip), %rsi      # 0x10bf3
leaq 0x68(%rsp), %rdi
callq 0x45f0
leaq 0x6cba(%rip), %rsi      # 0x10c44
leaq 0x68(%rsp), %rdi
callq 0x45f0
leaq 0x6d35(%rip), %rsi      # 0x10cd0
leaq 0x68(%rsp), %rdi
callq 0x45f0
movl %r15d, %ebp
negl %ebp
cmovsl %r15d, %ebp
movl $0x1, %ebx
cmpl $0xa, %ebp
jb 0x9ffc
movl $0x4, %ebx
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x9ff5
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x9ffa
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x9ffc
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %ebx
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x9fc4
addl $-0x3, %ebx
jmp 0x9ffc
addl $-0x2, %ebx
jmp 0x9ffc
decl %ebx
shrl $0x1f, %r15d
leal (%rbx,%r15), %esi
leaq 0x38(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x28(%rsp), %rdi
movl $0x2d, %edx
callq 0x43c0
movl %r15d, %r12d
leaq 0x28(%rsp), %r14
movq (%r14), %rdi
addq %r12, %rdi
movl %ebx, %esi
movl %ebp, %edx
callq 0xa9a6
leaq 0x63f9(%rip), %rsi      # 0x10433
movq %r14, %rdi
callq 0x45f0
leaq 0x18(%rsp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xa069
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0xa06f
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
leaq 0x8(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x90(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
callq 0x40f0
leaq 0x58(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xa0c6
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0xa0cd
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
movq %rdx, 0x50(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
leaq 0x68(%rsp), %rdi
callq 0x40f0
movq 0x48(%rsp), %rdi
cmpq %r14, %rdi
je 0xa108
callq 0x4310
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0xa11c
callq 0x4310
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0xa130
callq 0x4310
leaq 0x6bb5(%rip), %rsi      # 0x10cec
leaq 0x68(%rsp), %rdi
callq 0x45f0
movq %r14, 0x48(%rsp)
movq $0x0, 0x50(%rsp)
movb $0x0, 0x58(%rsp)
cmpq $0x0, 0x48(%r13)
je 0xa16e
addq $0x40, %r13
leaq 0x48(%rsp), %rdi
movq %r13, %rsi
callq 0x41e0
jmp 0xa189
leaq 0x69aa(%rip), %rcx      # 0x10b1f
leaq 0x48(%rsp), %rdi
movl $0x8, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x44b0
leaq 0xe8(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
addq %rsi, %rdx
leaq 0xd8(%rsp), %rdi
callq 0x7ab4
leaq 0x627d(%rip), %rsi      # 0x10433
leaq 0xd8(%rsp), %rdi
callq 0x45f0
movl $0x1, %ebx
cmpl $0xa, %ebp
jb 0xa211
movl $0x4, %ebx
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0xa20a
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0xa20f
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0xa211
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %ebx
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0xa1d9
addl $-0x3, %ebx
jmp 0xa211
addl $-0x2, %ebx
jmp 0xa211
decl %ebx
addl %ebx, %r15d
leaq 0xc8(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0xb8(%rsp), %rdi
movq %r15, %rsi
movl $0x2d, %edx
callq 0x43c0
addq 0xb8(%rsp), %r12
movq %r12, %rdi
movl %ebx, %esi
movl %ebp, %edx
callq 0xa9a6
movq 0xd8(%rsp), %rcx
movq 0xe0(%rsp), %r8
movq 0xc0(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r14, %rcx
je 0xa277
movq 0xe8(%rsp), %rsi
cmpq %rsi, %rax
leaq 0x38(%rsp), %rbx
jbe 0xa29d
movl $0xf, %esi
cmpq %r13, 0xb8(%rsp)
je 0xa298
movq 0xc8(%rsp), %rsi
cmpq %rsi, %rax
jbe 0xa2b4
movq 0xb8(%rsp), %rsi
leaq 0xd8(%rsp), %rdi
callq 0x40f0
jmp 0xa2c5
leaq 0xb8(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4390
leaq 0xa8(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0xa2f2
movq %rsi, 0x98(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xa8(%rsp)
jmp 0xa2f8
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0xa0(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x6114(%rip), %rsi      # 0x10433
leaq 0x98(%rsp), %rdi
callq 0x45f0
leaq 0x108(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xa35c
movq %rdx, 0xf8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x108(%rsp)
jmp 0xa363
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq 0xf8(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x90(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
callq 0x40f0
movq %rbx, 0x28(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xa3b9
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0xa3bf
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
leaq 0x28(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x6677(%rip), %rsi      # 0x10a59
callq 0x45f0
leaq 0x18(%rsp), %rsi
movq %rsi, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xa40f
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0xa415
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq 0x88(%rsp), %rdi
callq 0x40f0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0xa458
callq 0x4310
movq 0x28(%rsp), %rdi
cmpq %rbx, %rdi
je 0xa467
callq 0x4310
movq 0xf8(%rsp), %rdi
cmpq %r15, %rdi
je 0xa479
callq 0x4310
leaq 0xa8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa48f
callq 0x4310
movq 0xb8(%rsp), %rdi
cmpq %r13, %rdi
je 0xa4a1
callq 0x4310
movq 0xd8(%rsp), %rdi
cmpq %r14, %rdi
movq 0x88(%rsp), %r12
je 0xa4bb
callq 0x4310
leaq 0x669b(%rip), %rsi      # 0x10b5d
movq %r12, %rdi
callq 0x45f0
leaq 0x684e(%rip), %rsi      # 0x10d1f
movq %r12, %rdi
callq 0x45f0
leaq 0x6859(%rip), %rsi      # 0x10d39
movq %r12, %rdi
callq 0x45f0
movq 0x70(%rsp), %rbx
movl $0x1, %esi
cmpq $0xa, %rbx
jb 0xa547
movl $0x4, %esi
movabsq $0x346dc5d63886594b, %rdi # imm = 0x346DC5D63886594B
movq %rbx, %rcx
cmpq $0x63, %rcx
jbe 0xa540
cmpq $0x3e7, %rcx            # imm = 0x3E7
jbe 0xa545
cmpq $0x2710, %rcx           # imm = 0x2710
jb 0xa547
movq %rcx, %rax
mulq %rdi
shrq $0xb, %rdx
addl $0x4, %esi
cmpq $0x1869f, %rcx          # imm = 0x1869F
movq %rdx, %rcx
ja 0xa50a
addl $-0x3, %esi
jmp 0xa547
addl $-0x2, %esi
jmp 0xa547
decl %esi
movl %esi, %esi
leaq 0xf8(%rsp), %rdi
movq %r15, (%rdi)
xorl %edx, %edx
callq 0x43c0
leaq 0xf8(%rsp), %r14
movq (%r14), %rdi
movl 0x8(%r14), %esi
movq %rbx, %rdx
callq 0xa92b
leaq 0x6631(%rip), %rcx      # 0x10baa
movl $0x10, %r8d
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4390
leaq 0x38(%rsp), %rsi
movq %rsi, 0x28(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
leaq 0x18(%rsp), %r14
je 0xa5b8
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0xa5be
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
leaq 0x58(%rsp), %rbx
movq 0x8(%rax), %rdx
leaq 0x28(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x6473(%rip), %rsi      # 0x10a59
callq 0x45f0
movq %r14, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xa60e
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0xa615
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %r12, %rdi
callq 0x40f0
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0xa64e
callq 0x4310
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0xa662
callq 0x4310
movq 0xf8(%rsp), %rdi
cmpq %r15, %rdi
je 0xa674
callq 0x4310
leaq 0x63de(%rip), %rsi      # 0x10a59
movq %r12, %rdi
callq 0x45f0
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rdx
movq %r12, %rdi
callq 0x40f0
movq 0x48(%rsp), %rdi
cmpq %rbx, %rdi
je 0xa6a4
callq 0x4310
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0xa6b8
callq 0x4310
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0xa6e1
callq 0x4310
jmp 0xa6e1
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0xa6fa
callq 0x4310
jmp 0xa6fa
movq %rax, %rbx
movq 0xf8(%rsp), %rdi
cmpq %r15, %rdi
jne 0xa7a2
jmp 0xa7f1
jmp 0xa7ee
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0xa731
callq 0x4310
jmp 0xa731
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0xa74a
callq 0x4310
jmp 0xa74a
movq %rax, %rbx
movq 0xf8(%rsp), %rdi
cmpq %r15, %rdi
je 0xa761
callq 0x4310
jmp 0xa761
movq %rax, %rbx
leaq 0xa8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa77c
callq 0x4310
jmp 0xa77c
movq %rax, %rbx
movq 0xb8(%rsp), %rdi
cmpq %r13, %rdi
je 0xa795
callq 0x4310
jmp 0xa795
jmp 0xa792
movq %rax, %rbx
movq 0xd8(%rsp), %rdi
cmpq %r14, %rdi
je 0xa7f1
callq 0x4310
jmp 0xa7f1
jmp 0xa7ee
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r14, %rdi
je 0xa7c2
callq 0x4310
jmp 0xa7c2
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0xa7db
callq 0x4310
jmp 0xa7db
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
jmp 0xa7fb
jmp 0xa7e9
movq %rax, %rbx
jmp 0xa805
movq %rax, %rbx
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0xa805
callq 0x4310
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0xa819
callq 0x4310
movq %rbx, %rdi
callq 0x45a0
nop