// File: /workspace/github_cpp_makefile_star2_O1/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 0x3c7b
movl $0x4, %esi
movabsq $0x346dc5d63886594b, %rdi # imm = 0x346DC5D63886594B
movq %r14, %rcx
cmpq $0x63, %rcx
jbe 0x3c74
cmpq $0x3e7, %rcx            # imm = 0x3E7
jbe 0x3c79
cmpq $0x2710, %rcx           # imm = 0x2710
jb 0x3c7b
movq %rcx, %rax
mulq %rdi
shrq $0xb, %rdx
addl $0x4, %esi
cmpq $0x1869f, %rcx          # imm = 0x1869F
movq %rdx, %rcx
ja 0x3c3e
addl $-0x3, %esi
jmp 0x3c7b
addl $-0x2, %esi
jmp 0x3c7b
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 0x41d6
leaq 0x58(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x1609(%rip), %rsi      # 0x52bd
leaq 0x1610(%rip), %rdx      # 0x52cb
leaq 0x48(%rsp), %rdi
callq 0x4848
leaq 0x20(%rbx), %r14
leaq 0x48(%rsp), %rsi
movq %r14, %rdi
callq 0x415a
leaq 0x8(%rsp), %rsi
movq %rax, %rdi
callq 0x2220
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0x3cfa
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x3d11
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21d0
leaq 0x8(%rsp), %rdi
movq %r12, (%rdi)
leaq 0x15b2(%rip), %rsi      # 0x52d2
leaq 0x15b4(%rip), %rdx      # 0x52db
callq 0x4848
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x415a
movq 0x8(%rax), %rdx
leaq 0x1588(%rip), %rcx      # 0x52cc
movl $0x5, %r8d
movq %rax, %rdi
xorl %esi, %esi
callq 0x2270
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x3d6b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21d0
leaq 0x28(%rsp), %rdi
movq 0x8(%rdi), %rdx
leaq 0x1561(%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 0x15d3(%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 0x3e17
movl $0x4, %r15d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x3e0e
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x3e14
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x3e17
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r15d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x3ddb
addl $-0x3, %r15d
jmp 0x3e17
addl $-0x2, %r15d
jmp 0x3e17
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 0x40ed
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
leaq 0x28(%rsp), %rdi
callq 0x20b0
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x3e6e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21d0
leaq 0x150a(%rip), %rsi      # 0x537f
leaq 0x28(%rsp), %rdi
callq 0x22f0
movl 0x18(%rbx), %ecx
cmpl $0xc8, %ecx
jne 0x3e93
leaq 0x3cdf(%rip), %rax      # 0x7b70
jmp 0x3eb7
xorl %esi, %esi
leaq 0x3cd4(%rip), %rax      # 0x7b70
xorl %edi, %edi
leaq 0x10(%rdi), %rdx
cmpq $0x130, %rdx            # imm = 0x130
je 0x3ebb
cmpl %ecx, 0x10(%rdi,%rax)
movq %rdx, %rdi
jne 0x3e9e
addq %rdx, %rax
movq 0x8(%rax), %rsi
leaq 0x28(%rsp), %rdi
callq 0x22f0
leaq 0x1418(%rip), %rsi      # 0x52e4
leaq 0x28(%rsp), %rdi
callq 0x22f0
movq 0x38(%rbx), %r14
leaq 0x28(%rbx), %rbp
cmpq %rbp, %r14
je 0x3f3c
leaq 0x28(%rsp), %r15
leaq 0x148f(%rip), %r12      # 0x537e
leaq 0x13ee(%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 0x3ef6
leaq 0x13a1(%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 0x3fbb
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 0x3fd3
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x3faa
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 0x3fd8
movl $0xc1, %edi
callq 0x2448
xorl %ebx, %ebx
jmp 0x3f8e
jmp 0x4007
jmp 0x4025
jmp 0x4025
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0x400a
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x21d0
jmp 0x400a
jmp 0x4007
jmp 0x4025
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x4028
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21d0
jmp 0x4028
jmp 0x4025
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x4044
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x21d0
movq %rbx, %rdi
callq 0x22c0