// File: /workspace/github_cpp_makefile_star2_O3/alibakhtiar[P]ExampleHTTPServer/./HttpServer.hh
// Function: SimpleHttpServer::Response::send()
virtual bool send(void)
	{
		ssize_t sendLen;
		std::string head;

		this->headers["Content-Length"] = std::to_string(this->body.length());
		this->headers["Conection"] = "close";

		head = "HTTP/1.";
		head += this->req->httpMinorVersion == 0 ? '0' : '1';
		head += " ";
		head += std::to_string(this->statusCode);
		head += " ";
		head += httpStatusMessage(this->statusCode);
		head += "\r\n";

		for (auto const &h : this->headers) {
			head += h.first;
			head += ": ";
			head += h.second;
			head += "\r\n";
		}

		head += "\r\n";

		sendLen = this->write(head.c_str(), head.length());
		if (sendLen < 0) {
			head.clear();
			APPERROR(_STRERR, _FUNC, _LINE);
			return false;
		}

		sendLen = this->write(this->body.c_str(), this->body.length());
		if (sendLen < 0) {
			head.clear();
			APPERROR(_STRERR, _FUNC, _LINE);
			return false;
		}

		head.clear();
		return true;
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdi, %rbx
leaq 0x38(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq 0x58(%rdi), %r14
movl $0x1, %esi
cmpq $0xa, %r14
jb 0x3c79
movl $0x4, %esi
movabsq $0x346dc5d63886594b, %rdi # imm = 0x346DC5D63886594B
movq %r14, %rcx
cmpq $0x63, %rcx
jbe 0x3c72
cmpq $0x3e7, %rcx            # imm = 0x3E7
jbe 0x3c77
cmpq $0x2710, %rcx           # imm = 0x2710
jb 0x3c79
movq %rcx, %rax
mulq %rdi
shrq $0xb, %rdx
addl $0x4, %esi
cmpq $0x1869f, %rcx          # imm = 0x1869F
movq %rdx, %rcx
ja 0x3c3c
addl $-0x3, %esi
jmp 0x3c79
addl $-0x2, %esi
jmp 0x3c79
decl %esi
movl %esi, %esi
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x8(%rsp), %rdi
xorl %edx, %edx
callq 0x2210
movq 0x8(%rsp), %rdi
movl 0x10(%rsp), %esi
movq %r14, %rdx
callq 0x41d4
leaq 0x58(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x160b(%rip), %rsi      # 0x52bd
leaq 0x1612(%rip), %rdx      # 0x52cb
leaq 0x48(%rsp), %rdi
callq 0x483c
leaq 0x20(%rbx), %r14
leaq 0x48(%rsp), %rsi
movq %r14, %rdi
callq 0x4158
leaq 0x8(%rsp), %rsi
movq %rax, %rdi
callq 0x2220
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0x3cf8
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x3d0f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21d0
leaq 0x8(%rsp), %rdi
movq %r12, (%rdi)
leaq 0x15b4(%rip), %rsi      # 0x52d2
leaq 0x15b6(%rip), %rdx      # 0x52db
callq 0x483c
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x4158
movq 0x8(%rax), %rdx
leaq 0x158a(%rip), %rcx      # 0x52cc
movl $0x5, %r8d
movq %rax, %rdi
xorl %esi, %esi
callq 0x2270
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x3d69
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21d0
leaq 0x28(%rsp), %rdi
movq 0x8(%rdi), %rdx
leaq 0x1563(%rip), %rcx      # 0x52dc
movl $0x7, %r8d
xorl %esi, %esi
callq 0x2270
movq 0x10(%rbx), %rax
cmpl $0x1, 0x84(%rax)
movl $0x31, %esi
sbbl $0x0, %esi
leaq 0x28(%rsp), %rdi
callq 0x2180
leaq 0x15d5(%rip), %rsi      # 0x537f
leaq 0x28(%rsp), %rdi
callq 0x22f0
movl 0x18(%rbx), %r14d
movl %r14d, %ebp
negl %ebp
cmovsl %r14d, %ebp
movl $0x1, %r15d
cmpl $0xa, %ebp
jb 0x3e15
movl $0x4, %r15d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x3e0c
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x3e12
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x3e15
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r15d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x3dd9
addl $-0x3, %r15d
jmp 0x3e15
addl $-0x2, %r15d
jmp 0x3e15
decl %r15d
shrl $0x1f, %r14d
leal (%r15,%r14), %esi
leaq 0x8(%rsp), %rdi
movq %r12, (%rdi)
movl $0x2d, %edx
callq 0x2210
addq 0x8(%rsp), %r14
movq %r14, %rdi
movl %r15d, %esi
movl %ebp, %edx
callq 0x40eb
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
leaq 0x28(%rsp), %rdi
callq 0x20b0
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x3e6c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21d0
leaq 0x150c(%rip), %rsi      # 0x537f
leaq 0x28(%rsp), %rdi
callq 0x22f0
movl 0x18(%rbx), %ecx
cmpl $0xc8, %ecx
jne 0x3e91
leaq 0x3ce1(%rip), %rax      # 0x7b70
jmp 0x3eb5
xorl %esi, %esi
leaq 0x3cd6(%rip), %rax      # 0x7b70
xorl %edi, %edi
leaq 0x10(%rdi), %rdx
cmpq $0x130, %rdx            # imm = 0x130
je 0x3eb9
cmpl %ecx, 0x10(%rdi,%rax)
movq %rdx, %rdi
jne 0x3e9c
addq %rdx, %rax
movq 0x8(%rax), %rsi
leaq 0x28(%rsp), %rdi
callq 0x22f0
leaq 0x141a(%rip), %rsi      # 0x52e4
leaq 0x28(%rsp), %rdi
callq 0x22f0
movq 0x38(%rbx), %r14
leaq 0x28(%rbx), %rbp
cmpq %rbp, %r14
je 0x3f3a
leaq 0x28(%rsp), %r15
leaq 0x1491(%rip), %r12      # 0x537e
leaq 0x13f0(%rip), %r13      # 0x52e4
movq 0x20(%r14), %rsi
movq 0x28(%r14), %rdx
movq %r15, %rdi
callq 0x20b0
movq %r15, %rdi
movq %r12, %rsi
callq 0x22f0
movq 0x40(%r14), %rsi
movq 0x48(%r14), %rdx
movq %r15, %rdi
callq 0x20b0
movq %r15, %rdi
movq %r13, %rsi
callq 0x22f0
movq %r14, %rdi
callq 0x2150
movq %rax, %r14
cmpq %rbp, %rax
jne 0x3ef4
leaq 0x13a3(%rip), %rsi      # 0x52e4
leaq 0x28(%rsp), %rdi
callq 0x22f0
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x18(%rax)
testq %rax, %rax
js 0x3fb9
movq (%rbx), %rax
movq 0x50(%rbx), %rsi
movq 0x58(%rbx), %rdx
movq %rbx, %rdi
callq *0x18(%rax)
movq $0x0, 0x30(%rsp)
movq 0x28(%rsp), %rcx
movb $0x0, (%rcx)
movb $0x1, %bl
testq %rax, %rax
js 0x3fd1
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x3fa8
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x21d0
movl %ebx, %eax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq $0x0, 0x30(%rsp)
movq 0x28(%rsp), %rax
movb $0x0, (%rax)
movl $0xba, %edi
jmp 0x3fd6
movl $0xc1, %edi
callq 0x2448
xorl %ebx, %ebx
jmp 0x3f8c
jmp 0x4005
jmp 0x4023
jmp 0x4023
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0x4008
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x21d0
jmp 0x4008
jmp 0x4005
jmp 0x4023
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x4026
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21d0
jmp 0x4026
jmp 0x4023
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x4042
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x21d0
movq %rbx, %rdi
callq 0x22c0