// File: /workspace/github_cpp_makefile_star2_O3/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, %rbx
movq 0x68(%rdi), %r14
testq %r14, %r14
je 0x783c
movl 0x8(%r14), %eax
testl %eax, %eax
je 0x7807
leal 0x1(%rax), %ecx
lock
cmpxchgl %ecx, 0x8(%r14)
jne 0x71ac
movl 0x8(%r14), %eax
testl %eax, %eax
setne %al
movq 0x60(%rbx), %rdx
testq %rdx, %rdx
setne %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x77ff
movq %rdx, -0xb8(%rbp)
leaq -0xa0(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movl (%rbx), %r15d
movl %r15d, %r12d
negl %r12d
cmovsl %r15d, %r12d
movl $0x1, %r13d
cmpl $0xa, %r12d
jb 0x725d
movl $0x4, %r13d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r12d, %ecx
cmpl $0x63, %ecx
jbe 0x7254
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x725a
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x725d
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r13d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x7221
addl $-0x3, %r13d
jmp 0x725d
addl $-0x2, %r13d
jmp 0x725d
decl %r13d
movq %rbx, -0x30(%rbp)
shrl $0x1f, %r15d
leal (%r15,%r13), %esi
leaq -0xc8(%rbp), %rax
movq %rax, -0x10(%rax)
leaq -0xd8(%rbp), %rdi
movl $0x2d, %edx
callq 0x33f0
leaq -0xd8(%rbp), %rbx
addq (%rbx), %r15
movq %r15, %rdi
movl %r13d, %esi
movl %r12d, %edx
callq 0x78f0
leaq 0x3fb9(%rip), %rcx      # 0xb25d
movl $0x9, %r8d
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x33d0
leaq -0xe8(%rbp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x72e3
movq %rdx, -0xf8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xe8(%rbp)
jmp 0x72ea
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq -0xf8(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x3f56(%rip), %rsi      # 0xb265
callq 0x35b0
leaq -0x60(%rbp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x7338
movq %rdx, -0x70(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x60(%rbp)
jmp 0x733e
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq -0x30(%rbp), %r8
movq 0x8(%rax), %rdx
leaq -0x70(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x8(%r8), %rsi
movq 0x10(%r8), %rdx
callq 0x3130
leaq -0x80(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x7391
movq %rdx, -0x90(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x80(%rbp)
jmp 0x7397
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
leaq -0x90(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x3eab(%rip), %rsi      # 0xb267
callq 0x35b0
leaq -0x40(%rbp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x73e5
movq %rdx, -0x50(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x40(%rbp)
jmp 0x73eb
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, -0x48(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
leaq -0xb0(%rbp), %rdi
callq 0x3130
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x742f
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x3380
movq -0x90(%rbp), %rdi
cmpq %rbx, %rdi
je 0x7447
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x3380
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %r8
cmpq %r8, %rdi
je 0x7464
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x3380
leaq -0x60(%rbp), %r8
movq -0xf8(%rbp), %rdi
cmpq %r15, %rdi
je 0x7483
movq -0xe8(%rbp), %rsi
incq %rsi
callq 0x3380
leaq -0x60(%rbp), %r8
movq -0xd8(%rbp), %rdi
leaq -0xc8(%rbp), %rax
cmpq %rax, %rdi
je 0x74a9
movq -0xc8(%rbp), %rsi
incq %rsi
callq 0x3380
leaq -0x60(%rbp), %r8
movq -0x30(%rbp), %rax
movq 0x28(%rax), %r13
movq 0x30(%rax), %r12
cmpq %r12, %r13
je 0x7601
leaq -0x70(%rbp), %r15
movq %r8, -0x70(%rbp)
movq (%r13), %rsi
movq 0x8(%r13), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x3f36
movq %r15, %rdi
leaq 0x3b55(%rip), %rsi      # 0xb038
callq 0x35b0
movq 0x20(%r13), %rsi
movq 0x28(%r13), %rdx
movq %r15, %rdi
callq 0x3130
movq %rbx, -0x90(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x751e
movq %rdx, -0x90(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x80(%rbp)
jmp 0x7524
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
movq %rdx, -0x88(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq -0x90(%rbp), %rdi
leaq 0x3d1b(%rip), %rsi      # 0xb267
callq 0x35b0
leaq -0x40(%rbp), %rsi
movq %rsi, -0x50(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x7575
movq %rdx, -0x50(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x40(%rbp)
jmp 0x757b
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, -0x48(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
leaq -0xb0(%rbp), %rdi
callq 0x3130
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x75bf
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x3380
movq -0x90(%rbp), %rdi
cmpq %rbx, %rdi
je 0x75d7
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x3380
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %r8
cmpq %r8, %rdi
je 0x75f4
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x3380
leaq -0x60(%rbp), %r8
addq $0x40, %r13
cmpq %r12, %r13
jne 0x74c2
movq -0x30(%rbp), %rax
movq 0x48(%rax), %r15
movl $0x1, %esi
cmpq $0xa, %r15
jb 0x7663
movl $0x4, %esi
movabsq $0x346dc5d63886594b, %rdi # imm = 0x346DC5D63886594B
movq %r15, %rcx
cmpq $0x63, %rcx
jbe 0x765c
cmpq $0x3e7, %rcx            # imm = 0x3E7
jbe 0x7661
cmpq $0x2710, %rcx           # imm = 0x2710
jb 0x7663
movq %rcx, %rax
mulq %rdi
shrq $0xb, %rdx
addl $0x4, %esi
cmpq $0x1869f, %rcx          # imm = 0x1869F
movq %rdx, %rcx
ja 0x7626
addl $-0x3, %esi
jmp 0x7663
addl $-0x2, %esi
jmp 0x7663
decl %esi
movl %esi, %esi
leaq -0x70(%rbp), %rdi
movq %r8, (%rdi)
xorl %edx, %edx
callq 0x33f0
leaq -0x70(%rbp), %r13
movq (%r13), %rdi
movl 0x8(%r13), %esi
movq %r15, %rdx
callq 0x7962
leaq 0x3bdc(%rip), %rcx      # 0xb26a
movl $0x10, %r8d
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x33d0
movq %rbx, -0x90(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x76c6
movq %rdx, -0x90(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x80(%rbp)
jmp 0x76cc
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
leaq -0x90(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x3b76(%rip), %rsi      # 0xb267
callq 0x35b0
leaq -0x40(%rbp), %rdx
movq %rdx, -0x50(%rbp)
movq (%rax), %rsi
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rsi
je 0x771a
movq %rsi, -0x50(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x40(%rbp)
jmp 0x7723
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rdx, %rsi
movq 0x8(%rax), %rdx
movq %rdx, -0x48(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq -0xb0(%rbp), %rdi
callq 0x3130
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x775f
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x3380
movq -0x90(%rbp), %rdi
cmpq %rbx, %rdi
je 0x7777
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x3380
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x7790
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x3380
leaq 0x3ad0(%rip), %rsi      # 0xb267
leaq -0xb0(%rbp), %rdi
callq 0x35b0
movq -0x30(%rbp), %rax
movq 0x40(%rax), %rsi
movq 0x48(%rax), %rdx
leaq -0xb0(%rbp), %rdi
callq 0x3130
movq -0xb8(%rbp), %r12
movq %r12, %rdi
addq $0x8, %rdi
leaq -0xb0(%rbp), %r15
movq %r15, %rsi
callq 0x3400
movb $0x1, (%r12)
movq (%r15), %rdi
leaq -0xa0(%rbp), %rax
cmpq %rax, %rdi
je 0x77fb
movq -0xa0(%rbp), %rsi
incq %rsi
callq 0x3380
movq -0x30(%rbp), %rbx
movq %r14, %rdi
callq 0x79e2
movq 0x68(%rbx), %rdi
testq %rdi, %rdi
je 0x783c
movq 0x77a1(%rip), %rax      # 0xefb8
cmpb $0x0, (%rax)
je 0x7827
movl 0xc(%rdi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0xc(%rdi)
jmp 0x7831
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
lock
xaddl %eax, 0xc(%rdi)
cmpl $0x1, %eax
jne 0x783c
movq (%rdi), %rax
callq *0x18(%rax)
movq 0x40(%rbx), %rdi
leaq 0x50(%rbx), %rax
cmpq %rax, %rdi
je 0x7854
movq (%rax), %rsi
incq %rsi
callq 0x3380
leaq 0x28(%rbx), %rdi
callq 0x78b2
movq 0x8(%rbx), %rdi
addq $0x18, %rbx
cmpq %rbx, %rdi
je 0x7875
movq (%rbx), %rsi
incq %rsi
callq 0x3380
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x78a7
movq %rax, %rbx
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x78aa
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x3380
jmp 0x78aa
movq %rax, %rbx
movq %rbx, %rdi
callq 0x3e8a