// File: /workspace/github_cpp_makefile_star2_O1/ixchow[P]http-tweak/./http.hpp
// Function: http::response::~response()
inline response::~response() {
	//does the message slot still exist?
	std::shared_ptr< message > shared_message = weak_message.lock();
	if (!shared_message) return;

	//if so, build the message:
	std::string message;
	message += "HTTP/1.1 " + std::to_string(status.code) + " " + status.message + "\r\n";
	for (auto const &kv : headers) {
		message += kv.first + ": " + kv.second + "\r\n";
	}
	message += "Content-Length: " + std::to_string(body.size()) + "\r\n";
	message += "\r\n";
	message += body;

	{ //mark ready to send:
		shared_message->data = std::move(message);
		shared_message->ready.store(true, std::memory_order_release);
	}

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %rdi, %r12
movq 0x68(%rdi), %rdi
testq %rdi, %rdi
je 0x7225
movl 0x8(%rdi), %eax
testl %eax, %eax
je 0x7223
leal 0x1(%rax), %ecx
lock
cmpxchgl %ecx, 0x8(%rdi)
jne 0x7213
jmp 0x7225
xorl %edi, %edi
testq %rdi, %rdi
je 0x7234
movl 0x8(%rdi), %eax
testl %eax, %eax
sete %al
jmp 0x7236
movb $0x1, %al
movq 0x60(%r12), %rdx
testq %rdx, %rdx
sete %cl
orb %al, %cl
jne 0x7879
movq %rdx, -0xb8(%rbp)
leaq -0xa0(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movl (%r12), %ebx
movl %ebx, %r14d
negl %r14d
cmovsl %ebx, %r14d
movl $0x1, %r15d
cmpl $0xa, %r14d
jb 0x72ca
movl $0x4, %r15d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r14d, %ecx
cmpl $0x63, %ecx
jbe 0x72c1
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x72c7
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x72ca
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r15d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x728e
addl $-0x3, %r15d
jmp 0x72ca
addl $-0x2, %r15d
jmp 0x72ca
decl %r15d
movq %rdi, -0xc0(%rbp)
shrl $0x1f, %ebx
leal (%r15,%rbx), %esi
leaq -0xf0(%rbp), %r13
movq %r13, -0x10(%r13)
leaq -0x100(%rbp), %rdi
movl $0x2d, %edx
callq 0x33f0
movq %r12, -0x90(%rbp)
leaq -0x100(%rbp), %r12
addq (%r12), %rbx
movq %rbx, %rdi
movl %r15d, %esi
movl %r14d, %edx
callq 0x7972
leaq 0x3f42(%rip), %rcx      # 0xb25d
movl $0x9, %r8d
movq %r12, %rdi
movq -0x90(%rbp), %r14
xorl %esi, %esi
xorl %edx, %edx
callq 0x33d0
leaq -0xd0(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x7361
movq %rdx, -0xe0(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xd0(%rbp)
jmp 0x7367
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
leaq -0xe0(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x3ed9(%rip), %rsi      # 0xb265
callq 0x35b0
leaq -0x58(%rbp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x73b5
movq %rdx, -0x68(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x58(%rbp)
jmp 0x73bb
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
leaq -0x68(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rdx
callq 0x3130
leaq -0x78(%rbp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x740a
movq %rdx, -0x88(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x78(%rbp)
jmp 0x7411
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq -0x88(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x3e31(%rip), %rsi      # 0xb267
callq 0x35b0
leaq -0x38(%rbp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x745f
movq %rdx, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0x7465
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, -0x40(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
leaq -0xb0(%rbp), %rdi
callq 0x3130
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x74a9
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x3380
movq -0x88(%rbp), %rdi
cmpq %r15, %rdi
je 0x74c1
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x3380
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %r8
cmpq %r8, %rdi
je 0x74de
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x3380
leaq -0x58(%rbp), %r8
movq -0xe0(%rbp), %rdi
cmpq %rbx, %rdi
je 0x74fd
movq -0xd0(%rbp), %rsi
incq %rsi
callq 0x3380
leaq -0x58(%rbp), %r8
movq %r15, %rbx
movq -0x100(%rbp), %rdi
cmpq %r13, %rdi
je 0x751f
movq -0xf0(%rbp), %rsi
incq %rsi
callq 0x3380
leaq -0x58(%rbp), %r8
movq 0x28(%r14), %r13
movq 0x30(%r14), %r12
cmpq %r12, %r13
je 0x7673
leaq -0x68(%rbp), %r15
leaq -0xb0(%rbp), %r14
movq %r8, -0x68(%rbp)
movq (%r13), %rsi
movq 0x8(%r13), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x3f44
movq %r15, %rdi
leaq 0x3adc(%rip), %rsi      # 0xb038
callq 0x35b0
movq 0x20(%r13), %rsi
movq 0x28(%r13), %rdx
movq %r15, %rdi
callq 0x3130
movq %rbx, -0x88(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x7597
movq %rdx, -0x88(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x78(%rbp)
jmp 0x759d
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
movq %rdx, -0x80(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq -0x88(%rbp), %rdi
leaq 0x3ca5(%rip), %rsi      # 0xb267
callq 0x35b0
leaq -0x38(%rbp), %rsi
movq %rsi, -0x48(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x75eb
movq %rdx, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0x75f1
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, -0x40(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq %r14, %rdi
callq 0x3130
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x7631
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x3380
movq -0x88(%rbp), %rdi
cmpq %rbx, %rdi
je 0x7649
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x3380
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %r8
cmpq %r8, %rdi
je 0x7666
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x3380
leaq -0x58(%rbp), %r8
addq $0x40, %r13
cmpq %r12, %r13
jne 0x753b
movq -0x90(%rbp), %r12
movq 0x48(%r12), %r15
movl $0x1, %esi
cmpq $0xa, %r15
jb 0x76d9
movl $0x4, %esi
movabsq $0x346dc5d63886594b, %rdi # imm = 0x346DC5D63886594B
movq %r15, %rcx
cmpq $0x63, %rcx
jbe 0x76d2
cmpq $0x3e7, %rcx            # imm = 0x3E7
jbe 0x76d7
cmpq $0x2710, %rcx           # imm = 0x2710
jb 0x76d9
movq %rcx, %rax
mulq %rdi
shrq $0xb, %rdx
addl $0x4, %esi
cmpq $0x1869f, %rcx          # imm = 0x1869F
movq %rdx, %rcx
ja 0x769c
addl $-0x3, %esi
jmp 0x76d9
addl $-0x2, %esi
jmp 0x76d9
decl %esi
movl %esi, %esi
leaq -0x68(%rbp), %rdi
movq %r8, (%rdi)
xorl %edx, %edx
callq 0x33f0
leaq -0x68(%rbp), %r14
movq (%r14), %rdi
movl 0x8(%r14), %esi
movq %r15, %rdx
callq 0x79e4
leaq 0x3b67(%rip), %rcx      # 0xb26a
movl $0x10, %r8d
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x33d0
movq %rbx, -0x88(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x773b
movq %rdx, -0x88(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x78(%rbp)
jmp 0x7741
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
leaq -0x88(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x3b01(%rip), %rsi      # 0xb267
callq 0x35b0
leaq -0x38(%rbp), %rsi
movq %rsi, -0x48(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x778f
movq %rdx, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0x7795
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, -0x40(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
leaq -0xb0(%rbp), %rdi
callq 0x3130
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x77d9
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x3380
movq -0x88(%rbp), %rdi
cmpq %rbx, %rdi
je 0x77f1
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x3380
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x780a
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x3380
leaq 0x3a56(%rip), %rsi      # 0xb267
leaq -0xb0(%rbp), %rdi
callq 0x35b0
movq 0x40(%r12), %rsi
movq 0x48(%r12), %rdx
leaq -0xb0(%rbp), %rdi
callq 0x3130
movq -0xb8(%rbp), %r14
movq %r14, %rdi
addq $0x8, %rdi
leaq -0xb0(%rbp), %rbx
movq %rbx, %rsi
callq 0x3400
movb $0x1, (%r14)
movq (%rbx), %rdi
leaq -0xa0(%rbp), %rax
cmpq %rax, %rdi
je 0x7872
movq -0xa0(%rbp), %rsi
incq %rsi
callq 0x3380
movq -0xc0(%rbp), %rdi
testq %rdi, %rdi
je 0x7883
callq 0x7a64
movq 0x68(%r12), %rdi
testq %rdi, %rdi
je 0x78b9
movq 0x7724(%rip), %rax      # 0xefb8
cmpb $0x0, (%rax)
je 0x78a4
movl 0xc(%rdi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0xc(%rdi)
jmp 0x78ae
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
lock
xaddl %eax, 0xc(%rdi)
cmpl $0x1, %eax
jne 0x78b9
movq (%rdi), %rax
callq *0x18(%rax)
movq 0x40(%r12), %rdi
leaq 0x50(%r12), %rax
cmpq %rax, %rdi
je 0x78d3
movq (%rax), %rsi
incq %rsi
callq 0x3380
leaq 0x28(%r12), %rdi
callq 0x7934
movq 0x8(%r12), %rdi
addq $0x18, %r12
cmpq %r12, %rdi
je 0x78f7
movq (%r12), %rsi
incq %rsi
callq 0x3380
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x7929
movq %rax, %rbx
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x792c
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x3380
jmp 0x792c
movq %rax, %rbx
movq %rbx, %rdi
callq 0x3e9c