// File: UTAP[P]APHTTP/utils/response.cpp
// Function: Response::print[abi:cxx11](int&)
string Response::print(int &size) {
  string header = "";
  header += "HTTP/1.0 " + to_string(code) + " " + phrase + "\r\n";
  header += "Server: " + SERVER_NAME + " \r\n";
  header += "Content-Length: " + to_string(body.size()) + "\r\n";
  for (auto it = headers.begin(); !headers.empty() && it != headers.end(); it++)
    header += it->first + ": " + it->second + "\r\n";
  header += "\r\n";
  size = header.size() + body.size();
  return header + body;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x250, %rsp            # imm = 0x250
movq %rdi, -0x228(%rbp)
movq %rdi, %rax
movq %rax, -0x220(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x218(%rbp)
leaq -0x39(%rbp), %rdi
movq %rdi, -0x210(%rbp)
callq 0x46c0
movq -0x210(%rbp), %rdx
leaq 0x15e94(%rip), %rsi     # 0x21595
leaq -0x38(%rbp), %rdi
callq 0x4550
jmp 0xb70c
leaq -0x39(%rbp), %rdi
callq 0x4440
movq -0x218(%rbp), %rax
movl (%rax), %esi
leaq -0xf0(%rbp), %rdi
callq 0x98c0
jmp 0xb72c
leaq 0x15c78(%rip), %rsi     # 0x213ab
leaq -0xd0(%rbp), %rdi
leaq -0xf0(%rbp), %rdx
callq 0x9a70
jmp 0xb748
leaq 0x1635b(%rip), %rdx     # 0x21aaa
leaq -0xb0(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
callq 0xd310
jmp 0xb764
movq -0x218(%rbp), %rdx
addq $0x8, %rdx
leaq -0x90(%rbp), %rdi
leaq -0xb0(%rbp), %rsi
callq 0xd360
jmp 0xb784
leaq 0x16034(%rip), %rdx     # 0x217bf
leaq -0x70(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0xd310
jmp 0xb79d
leaq -0x38(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0x44e0
jmp 0xb7ac
leaq -0x70(%rbp), %rdi
callq 0x4768
leaq -0x90(%rbp), %rdi
callq 0x4768
leaq -0xb0(%rbp), %rdi
callq 0x4768
leaq -0xd0(%rbp), %rdi
callq 0x4768
leaq -0xf0(%rbp), %rdi
callq 0x4768
leaq 0x15bc9(%rip), %rsi     # 0x213b5
leaq 0x22205(%rip), %rdx     # 0x2d9f8
leaq -0x130(%rbp), %rdi
callq 0xd3b0
jmp 0xb801
leaq 0x15bb6(%rip), %rdx     # 0x213be
leaq -0x110(%rbp), %rdi
leaq -0x130(%rbp), %rsi
callq 0xd310
jmp 0xb81d
leaq -0x38(%rbp), %rdi
leaq -0x110(%rbp), %rsi
callq 0x44e0
jmp 0xb82f
leaq -0x110(%rbp), %rdi
callq 0x4768
leaq -0x130(%rbp), %rdi
callq 0x4768
movq -0x218(%rbp), %rdi
addq $0x28, %rdi
callq 0x4300
movq %rax, %rsi
leaq -0x190(%rbp), %rdi
callq 0xd4c0
jmp 0xb868
leaq 0x15b53(%rip), %rsi     # 0x213c2
leaq -0x170(%rbp), %rdi
leaq -0x190(%rbp), %rdx
callq 0x9a70
jmp 0xb884
leaq 0x15f34(%rip), %rdx     # 0x217bf
leaq -0x150(%rbp), %rdi
leaq -0x170(%rbp), %rsi
callq 0xd310
jmp 0xb8a0
leaq -0x38(%rbp), %rdi
leaq -0x150(%rbp), %rsi
callq 0x44e0
jmp 0xb8b2
leaq -0x150(%rbp), %rdi
callq 0x4768
leaq -0x170(%rbp), %rdi
callq 0x4768
leaq -0x190(%rbp), %rdi
callq 0x4768
movq -0x218(%rbp), %rdi
addq $0x48, %rdi
callq 0xd5a0
movq %rax, -0x198(%rbp)
movq -0x218(%rbp), %rdi
addq $0x48, %rdi
callq 0xd5d0
movb %al, %cl
xorl %eax, %eax
testb $0x1, %cl
movb %al, -0x229(%rbp)
jne 0xb93c
movq -0x218(%rbp), %rdi
addq $0x48, %rdi
callq 0xd620
movq %rax, -0x1a0(%rbp)
leaq -0x198(%rbp), %rdi
leaq -0x1a0(%rbp), %rsi
callq 0xd5f0
movb %al, -0x229(%rbp)
movb -0x229(%rbp), %al
testb $0x1, %al
jne 0xb94b
jmp 0xbb89
leaq -0x198(%rbp), %rdi
callq 0xd6d0
movq %rax, %rsi
leaq 0x1588a(%rip), %rdx     # 0x211eb
leaq -0x200(%rbp), %rdi
callq 0xd650
jmp 0xb96f
leaq -0x198(%rbp), %rdi
callq 0xd6d0
movq %rax, %rdx
addq $0x20, %rdx
leaq -0x1e0(%rbp), %rdi
leaq -0x200(%rbp), %rsi
callq 0xd360
jmp 0xb997
leaq 0x15e21(%rip), %rdx     # 0x217bf
leaq -0x1c0(%rbp), %rdi
leaq -0x1e0(%rbp), %rsi
callq 0xd310
jmp 0xb9b3
leaq -0x38(%rbp), %rdi
leaq -0x1c0(%rbp), %rsi
callq 0x44e0
jmp 0xb9c5
leaq -0x1c0(%rbp), %rdi
callq 0x4768
leaq -0x1e0(%rbp), %rdi
callq 0x4768
leaq -0x200(%rbp), %rdi
callq 0x4768
leaq -0x198(%rbp), %rdi
xorl %esi, %esi
callq 0xd6f0
movq %rax, -0x208(%rbp)
jmp 0xb8ed
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x39(%rbp), %rdi
callq 0x4440
jmp 0xbc16
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0xbc0d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0xba9f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0xba93
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0xba87
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0xba7b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x70(%rbp), %rdi
callq 0x4768
leaq -0x90(%rbp), %rdi
callq 0x4768
leaq -0xb0(%rbp), %rdi
callq 0x4768
leaq -0xd0(%rbp), %rdi
callq 0x4768
leaq -0xf0(%rbp), %rdi
callq 0x4768
jmp 0xbc0d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0xbad6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x110(%rbp), %rdi
callq 0x4768
leaq -0x130(%rbp), %rdi
callq 0x4768
jmp 0xbc0d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0xbb27
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0xbb1b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x150(%rbp), %rdi
callq 0x4768
leaq -0x170(%rbp), %rdi
callq 0x4768
leaq -0x190(%rbp), %rdi
callq 0x4768
jmp 0xbc0d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0xbb78
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0xbb6c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x1c0(%rbp), %rdi
callq 0x4768
leaq -0x1e0(%rbp), %rdi
callq 0x4768
leaq -0x200(%rbp), %rdi
callq 0x4768
jmp 0xbc0d
leaq 0x15c2f(%rip), %rsi     # 0x217bf
leaq -0x38(%rbp), %rdi
callq 0x43c0
jmp 0xbb9b
leaq -0x38(%rbp), %rdi
movq %rdi, -0x240(%rbp)
callq 0x4300
movq -0x218(%rbp), %rdi
movq %rax, -0x248(%rbp)
addq $0x28, %rdi
movq %rdi, -0x238(%rbp)
callq 0x4300
movq -0x248(%rbp), %rcx
movq -0x228(%rbp), %rdi
movq -0x240(%rbp), %rsi
movq -0x238(%rbp), %rdx
addl %eax, %ecx
movq -0x18(%rbp), %rax
movl %ecx, (%rax)
callq 0xd730
jmp 0xbbf4
leaq -0x38(%rbp), %rdi
callq 0x4768
movq -0x220(%rbp), %rax
addq $0x250, %rsp            # imm = 0x250
popq %rbp
retq
leaq -0x38(%rbp), %rdi
callq 0x4768
movq -0x48(%rbp), %rdi
callq 0x46b0
nop