// File: /workspace/github_cpp_makefile_star2_O3/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 $0xd8, %rsp
movq (%rsi), %rax
movq %rdi, %r15
movq %rsi, %rdi
movq %rsi, %rbx
callq *0x18(%rax)
movl %eax, (%r15)
movq %rbx, %rdi
movq (%rbx), %rax
callq *0x10(%rax)
movq 0x10(%r15), %r14
movq %rax, %rdi
movq %rax, %rbx
leaq 0x8(%r15), %r12
callq 0x21710
movq %r12, %rdi
xorl %esi, %esi
movq %r14, %rdx
movq %rbx, %rcx
movq %rax, %r8
callq 0x22ca0
movq $0x0, 0x30(%r15)
movq 0x28(%r15), %rax
movb $0x0, (%rax)
leaq 0x66e6(%rip), %rsi      # 0x3f98e
leaq 0x68(%rsp), %rdi
callq 0x21f10
leaq 0x78(%rsp), %rdi
leaq 0x66d7(%rip), %rsi      # 0x3f995
callq 0x21f10
leaq 0x88(%rsp), %rbx
leaq 0x68(%rsp), %rsi
movl $0x2, %edx
movl $0x1, %ecx
movl $0x2, %r8d
movq %rbx, %rdi
callq 0x214f0
leaq 0x98(%rsp), %rbx
leaq 0x669e(%rip), %rsi      # 0x3f995
leaq 0x48(%rsp), %rdi
callq 0x21f10
leaq 0x6693(%rip), %rsi      # 0x3f99b
leaq 0xa8(%rsp), %rdi
callq 0x21f10
movslq (%r15), %rax
leaq 0xa8(%rsp), %rsi
movb $0x5, 0x10(%rsi)
movq %rax, 0x18(%rsi)
leaq 0x28(%rsp), %r14
movl $0x2, %edx
movl $0x1, %ecx
movl $0x2, %r8d
movq %r14, %rdi
callq 0x214f0
leaq 0x38(%rsp), %r14
leaq 0x664f(%rip), %rsi      # 0x3f9a0
leaq 0x8(%rsp), %rdi
callq 0x21f10
movb $0x3, 0x18(%rsp)
movq %r12, %rdi
callq 0x234c0
leaq 0x8(%rsp), %rsi
movq %rax, 0x18(%rsi)
movl $0x2, %edx
movl $0x1, %ecx
movl $0x2, %r8d
movq %r14, %rdi
callq 0x214f0
leaq 0x58(%rsp), %rdi
leaq 0x28(%rsp), %rsi
movl $0x2, %edx
movl $0x1, %ecx
movl $0x2, %r8d
callq 0x214f0
leaq 0x48(%rsp), %rsi
movl $0x2, %edx
movl $0x1, %ecx
movl $0x2, %r8d
movq %rbx, %rdi
callq 0x214f0
leaq 0xc8(%rsp), %rdi
leaq 0x88(%rsp), %rsi
movl $0x2, %edx
movl $0x1, %ecx
movl $0x2, %r8d
callq 0x214f0
leaq 0xc8(%rsp), %rdi
movb 0x78(%r15), %al
movb (%rdi), %cl
movb %cl, 0x78(%r15)
movb %al, (%rdi)
movq 0x80(%r15), %rax
movq 0x8(%rdi), %rcx
movq %rcx, 0x80(%r15)
movq %rax, 0x8(%rdi)
callq 0x21a10
movl $0x10, %ebx
leaq 0x88(%rsp,%rbx), %rdi
callq 0x21a10
addq $-0x10, %rbx
cmpq $-0x10, %rbx
jne 0x3941e
movl $0x10, %ebx
leaq 0x48(%rsp,%rbx), %rdi
callq 0x21a10
addq $-0x10, %rbx
cmpq $-0x10, %rbx
jne 0x3943a
movl $0x10, %ebx
leaq 0x28(%rsp,%rbx), %rdi
callq 0x21a10
addq $-0x10, %rbx
cmpq $-0x10, %rbx
jne 0x39453
movl $0x10, %ebx
leaq 0x8(%rsp,%rbx), %rdi
callq 0x21a10
addq $-0x10, %rbx
cmpq $-0x10, %rbx
jne 0x3946c
movl $0x10, %ebx
leaq 0xa8(%rsp,%rbx), %rdi
callq 0x21a10
addq $-0x10, %rbx
cmpq $-0x10, %rbx
jne 0x39485
movl $0x10, %ebx
leaq 0x68(%rsp,%rbx), %rdi
callq 0x21a10
addq $-0x10, %rbx
cmpq $-0x10, %rbx
jne 0x394a1
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %r15d
movq %rax, (%rsp)
leaq 0x88(%rsp,%r15), %rdi
callq 0x21a10
addq $-0x10, %r15
cmpq $-0x10, %r15
jne 0x394d1
xorl %ebp, %ebp
jmp 0x394f3
movq %rax, (%rsp)
movb $0x1, %bpl
movl $0x10, %r15d
leaq 0x48(%rsp,%r15), %rdi
callq 0x21a10
addq $-0x10, %r15
cmpq $-0x10, %r15
jne 0x394f9
xorl %r12d, %r12d
jmp 0x3951c
movq %rax, (%rsp)
movb $0x1, %r12b
movb $0x1, %bpl
movl $0x10, %r15d
leaq 0x28(%rsp,%r15), %rdi
callq 0x21a10
addq $-0x10, %r15
cmpq $-0x10, %r15
jne 0x39522
xorl %r13d, %r13d
jmp 0x39548
movq %rax, (%rsp)
movb $0x1, %r13b
movb $0x1, %r12b
movb $0x1, %bpl
movl $0x10, %r15d
leaq 0x8(%rsp,%r15), %rdi
callq 0x21a10
addq $-0x10, %r15
cmpq $-0x10, %r15
jne 0x3954e
jmp 0x39583
leaq 0x8(%rsp), %rdi
movq %rax, (%rsp)
callq 0x21a10
jmp 0x3957a
jmp 0x39576
movq %rax, (%rsp)
movb $0x1, %r13b
movb $0x1, %r12b
movb $0x1, %bpl
movl $0x10, %r15d
leaq 0xa8(%rsp,%r15), %rdi
callq 0x21a10
addq $-0x10, %r15
cmpq $-0x10, %r15
jne 0x39589
leaq 0x28(%rsp), %r15
cmpq %r14, %r15
setne %al
andb %al, %r13b
cmpb $0x1, %r13b
jne 0x395c5
addq $-0x10, %r14
movq %r14, %rdi
callq 0x21a10
cmpq %r15, %r14
jne 0x395b4
testb %r12b, %r12b
jne 0x395d3
jmp 0x395e8
movq %rax, (%rsp)
movb $0x1, %bpl
leaq 0x48(%rsp), %rdi
callq 0x21a10
jmp 0x395e8
jmp 0x395e1
movq %rax, (%rsp)
movb $0x1, %bpl
movl $0x10, %r14d
leaq 0x68(%rsp,%r14), %rdi
callq 0x21a10
addq $-0x10, %r14
cmpq $-0x10, %r14
jne 0x395ee
leaq 0x88(%rsp), %r14
cmpq %rbx, %r14
setne %al
andb %al, %bpl
cmpb $0x1, %bpl
jne 0x3962a
addq $-0x10, %rbx
movq %rbx, %rdi
callq 0x21a10
cmpq %r14, %rbx
jne 0x39619
movq (%rsp), %rdi
callq 0x23160
leaq 0x68(%rsp), %rdi
movq %rax, (%rsp)
callq 0x21a10
jmp 0x3962a
movq %rax, (%rsp)
jmp 0x3962a
nop