// File: /workspace/github_cpp_makefile_star2_O1/alfanick[P]rest-cpp/src/rest/response.cpp
// Function: REST::Response::error(REST::HTTP::Error&)
void Response::error(HTTP::Error &error) {
  status = error.code();
  status_message = error.what();
  raw.clear();
  data = {
    { "status", "error" },
    { "error", {
      { "code", status },
      { "message", status_message }
    }}
  };
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movq %rsi, %rbx
movq %rdi, %r12
movq (%rsi), %rax
movq %rsi, %rdi
callq *0x18(%rax)
movl %eax, (%r12)
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x10(%rax)
movq %rax, %rbx
leaq 0x8(%r12), %rbp
movq 0x10(%r12), %r14
movq %rax, %rdi
callq 0x21710
movq %rbp, %rdi
xorl %esi, %esi
movq %r14, %rdx
movq %rbx, %rcx
movq %rax, %r8
callq 0x22ca0
movq $0x0, 0x30(%r12)
movq 0x28(%r12), %rax
movb $0x0, (%rax)
leaq 0x98(%rsp), %r15
leaq 0x75a1(%rip), %rsi      # 0x4098e
movq %r15, %r14
movq %r15, %rdi
callq 0x21f10
leaq 0xa8(%rsp), %r14
leaq 0x758e(%rip), %rsi      # 0x40995
movq %r14, %rdi
callq 0x21f10
leaq 0x78(%rsp), %rbx
leaq 0x98(%rsp), %rsi
movl $0x2, %edx
movq %rbx, %rdi
movl $0x1, %ecx
movl $0x2, %r8d
callq 0x214f0
leaq 0x88(%rsp), %rbx
leaq 0x7552(%rip), %rsi      # 0x40995
leaq 0x58(%rsp), %r14
movq %r14, %rdi
callq 0x21f10
leaq 0x68(%rsp), %r14
leaq 0x753f(%rip), %rsi      # 0x4099b
leaq 0xb8(%rsp), %rdi
callq 0x21f10
movslq (%r12), %rax
leaq 0xb8(%rsp), %rsi
movb $0x5, 0x10(%rsi)
movq %rax, 0x18(%rsi)
leaq 0x38(%rsp), %r13
movl $0x2, %edx
movq %r13, %rdi
movl $0x1, %ecx
movl $0x2, %r8d
callq 0x214f0
leaq 0x48(%rsp), %r13
leaq 0x18(%rsp), %rdi
leaq 0x74f5(%rip), %rsi      # 0x409a0
movq %rdi, %r15
callq 0x21f10
leaq 0x28(%rsp), %r15
movb $0x3, (%r15)
movq %rbp, %rdi
callq 0x234d0
leaq 0x18(%rsp), %rsi
movq %rax, 0x18(%rsi)
movl $0x2, %edx
movq %r13, %rdi
movl $0x1, %ecx
movl $0x2, %r8d
callq 0x214f0
leaq 0x38(%rsp), %rsi
movl $0x2, %edx
movq %r14, %rdi
movl $0x1, %ecx
movl $0x2, %r8d
callq 0x214f0
leaq 0x58(%rsp), %rsi
movl $0x2, %edx
movq %rbx, %rdi
movl $0x1, %ecx
movl $0x2, %r8d
callq 0x214f0
leaq 0xd8(%rsp), %rdi
leaq 0x78(%rsp), %rsi
movl $0x2, %edx
movl $0x1, %ecx
movl $0x2, %r8d
callq 0x214f0
movb 0x78(%r12), %al
leaq 0xd8(%rsp), %rdi
movb (%rdi), %cl
movb %cl, 0x78(%r12)
movb %al, (%rdi)
movq 0x80(%r12), %rax
movq 0x8(%rdi), %rcx
movq %rcx, 0x80(%r12)
movq %rax, 0x8(%rdi)
callq 0x21a10
movl $0x10, %ebx
leaq 0x78(%rsp,%rbx), %rdi
callq 0x21a10
addq $-0x10, %rbx
cmpq $-0x10, %rbx
jne 0x39579
movl $0x10, %ebx
leaq 0x58(%rsp,%rbx), %rdi
callq 0x21a10
addq $-0x10, %rbx
cmpq $-0x10, %rbx
jne 0x39592
movl $0x10, %ebx
leaq 0x38(%rsp,%rbx), %rdi
callq 0x21a10
addq $-0x10, %rbx
cmpq $-0x10, %rbx
jne 0x395ab
movl $0x10, %ebx
leaq 0x18(%rsp,%rbx), %rdi
callq 0x21a10
addq $-0x10, %rbx
cmpq $-0x10, %rbx
jne 0x395c4
movl $0x10, %ebx
leaq 0xb8(%rsp,%rbx), %rdi
callq 0x21a10
addq $-0x10, %rbx
cmpq $-0x10, %rbx
jne 0x395dd
movl $0x10, %ebx
leaq 0x98(%rsp,%rbx), %rdi
callq 0x21a10
addq $-0x10, %rbx
cmpq $-0x10, %rbx
jne 0x395f9
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, 0x10(%rsp)
movl $0x10, %r15d
leaq 0x78(%rsp,%r15), %rdi
callq 0x21a10
addq $-0x10, %r15
cmpq $-0x10, %r15
jne 0x3962d
movl $0x0, 0xc(%rsp)
jmp 0x39656
movq %rax, 0x10(%rsp)
movb $0x1, %al
movl %eax, 0xc(%rsp)
movl $0x10, %r15d
leaq 0x58(%rsp,%r15), %rdi
callq 0x21a10
addq $-0x10, %r15
cmpq $-0x10, %r15
jne 0x3965c
movb $0x1, %r15b
jmp 0x39683
movq %rax, 0x10(%rsp)
movb $0x1, %al
movl %eax, 0xc(%rsp)
xorl %r15d, %r15d
movl $0x10, %r12d
leaq 0x38(%rsp,%r12), %rdi
callq 0x21a10
addq $-0x10, %r12
cmpq $-0x10, %r12
jne 0x39689
xorl %r12d, %r12d
jmp 0x396b3
movq %rax, 0x10(%rsp)
movb $0x1, %r12b
xorl %r15d, %r15d
movb $0x1, %al
movl %eax, 0xc(%rsp)
movl $0x10, %ebp
leaq 0x18(%rsp,%rbp), %rdi
callq 0x21a10
addq $-0x10, %rbp
cmpq $-0x10, %rbp
jne 0x396b8
jmp 0x39744
movq %rax, 0x10(%rsp)
movb $0x1, %r12b
jmp 0x3973b
movq %rax, 0x10(%rsp)
movb $0x1, %r12b
leaq 0x38(%rsp), %r13
xorl %r15d, %r15d
movb $0x1, %al
movl %eax, 0xc(%rsp)
jmp 0x39760
movq %rax, 0x10(%rsp)
movb $0x1, %al
movl %eax, 0xc(%rsp)
xorl %r15d, %r15d
jmp 0x39783
movq %rax, 0x10(%rsp)
movb $0x1, %al
movl %eax, 0xc(%rsp)
jmp 0x397a9
movq %rax, 0x10(%rsp)
movb $0x1, %r12b
leaq 0x18(%rsp), %rax
cmpq %r15, %rax
je 0x3973b
leaq 0x18(%rsp), %rbp
addq $-0x10, %r15
movq %r15, %rdi
callq 0x21a10
cmpq %rbp, %r15
jne 0x3972a
xorl %r15d, %r15d
movb $0x1, %al
movl %eax, 0xc(%rsp)
movl $0x10, %ebp
leaq 0xb8(%rsp,%rbp), %rdi
callq 0x21a10
addq $-0x10, %rbp
cmpq $-0x10, %rbp
jne 0x39749
leaq 0x38(%rsp), %rbp
cmpq %r13, %rbp
setne %al
andb %r12b, %al
cmpb $0x1, %al
jne 0x39783
addq $-0x10, %r13
movq %r13, %rdi
callq 0x21a10
cmpq %rbp, %r13
jne 0x39772
leaq 0x58(%rsp), %rax
cmpq %r14, %rax
sete %al
orb %r15b, %al
jne 0x397a9
leaq 0x58(%rsp), %r15
addq $-0x10, %r14
movq %r14, %rdi
callq 0x21a10
cmpq %r15, %r14
jne 0x39798
movl $0x10, %r14d
leaq 0x98(%rsp,%r14), %rdi
callq 0x21a10
addq $-0x10, %r14
cmpq $-0x10, %r14
jne 0x397af
leaq 0x78(%rsp), %r14
cmpq %rbx, %r14
setne %al
andb 0xc(%rsp), %al
cmpb $0x1, %al
jne 0x397ea
addq $-0x10, %rbx
movq %rbx, %rdi
callq 0x21a10
cmpq %r14, %rbx
jne 0x397d9
movq 0x10(%rsp), %rdi
callq 0x23170
movq %rax, 0x10(%rsp)
movb $0x1, %al
movl %eax, 0xc(%rsp)
leaq 0x78(%rsp), %rbx
cmpq %r14, %r15
je 0x397c6
leaq 0x98(%rsp), %r15
addq $-0x10, %r14
movq %r14, %rdi
callq 0x21a10
cmpq %r15, %r14
jne 0x39811
jmp 0x397c6