// File: /workspace/github_cpp_makefile_star2_O2/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)
leaq 0x8(%r15), %r12
movq %rax, %rsi
movq %r12, %rdi
callq 0x33930
andq $0x0, 0x30(%r15)
movq 0x28(%r15), %rax
movb $0x0, (%rax)
leaq 0x5d60(%rip), %rsi      # 0x4c8be
leaq 0x68(%rsp), %rdi
callq 0x31860
leaq 0x78(%rsp), %rdi
leaq 0x5d51(%rip), %rsi      # 0x4c8c5
callq 0x31860
leaq 0x88(%rsp), %rbx
leaq 0x68(%rsp), %rsi
pushq $0x2
popq %rdx
pushq $0x1
popq %rcx
pushq $0x2
popq %r8
movq %rbx, %rdi
callq 0x30850
leaq 0x98(%rsp), %rbx
leaq 0x5d1e(%rip), %rsi      # 0x4c8c5
leaq 0x48(%rsp), %rdi
callq 0x31860
leaq 0x5d13(%rip), %rsi      # 0x4c8cb
leaq 0xa8(%rsp), %rdi
callq 0x31860
movslq (%r15), %rax
leaq 0xa8(%rsp), %rsi
movb $0x5, 0x10(%rsi)
movq %rax, 0x18(%rsi)
leaq 0x28(%rsp), %r14
pushq $0x2
popq %rdx
pushq $0x1
popq %rcx
pushq $0x2
popq %r8
movq %r14, %rdi
callq 0x30850
leaq 0x38(%rsp), %r14
leaq 0x5cd5(%rip), %rsi      # 0x4c8d0
leaq 0x8(%rsp), %rdi
callq 0x31860
movb $0x3, 0x18(%rsp)
movq %r12, %rdi
callq 0x33a80
leaq 0x8(%rsp), %rsi
movq %rax, 0x18(%rsi)
pushq $0x2
popq %rdx
pushq $0x1
popq %rcx
pushq $0x2
popq %r8
movq %r14, %rdi
callq 0x30850
leaq 0x58(%rsp), %rdi
leaq 0x28(%rsp), %rsi
pushq $0x2
popq %rdx
pushq $0x1
popq %rcx
pushq $0x2
popq %r8
callq 0x30850
leaq 0x48(%rsp), %rsi
pushq $0x2
popq %rdx
pushq $0x1
popq %rcx
pushq $0x2
popq %r8
movq %rbx, %rdi
callq 0x30850
leaq 0xc8(%rsp), %rdi
leaq 0x88(%rsp), %rsi
pushq $0x2
popq %rdx
pushq $0x1
popq %rcx
pushq $0x2
popq %r8
callq 0x30850
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 0x310a0
pushq $0x10
popq %rbx
leaq 0x88(%rsp,%rbx), %rdi
callq 0x310a0
addq $-0x10, %rbx
cmpq $-0x10, %rbx
jne 0x46cae
pushq $0x10
popq %rbx
leaq 0x48(%rsp,%rbx), %rdi
callq 0x310a0
addq $-0x10, %rbx
cmpq $-0x10, %rbx
jne 0x46cc8
pushq $0x10
popq %rbx
leaq 0x28(%rsp,%rbx), %rdi
callq 0x310a0
addq $-0x10, %rbx
cmpq $-0x10, %rbx
jne 0x46cdf
pushq $0x10
popq %rbx
leaq 0x8(%rsp,%rbx), %rdi
callq 0x310a0
addq $-0x10, %rbx
cmpq $-0x10, %rbx
jne 0x46cf6
pushq $0x10
popq %rbx
leaq 0xa8(%rsp,%rbx), %rdi
callq 0x310a0
addq $-0x10, %rbx
cmpq $-0x10, %rbx
jne 0x46d0d
pushq $0x10
popq %rbx
leaq 0x68(%rsp,%rbx), %rdi
callq 0x310a0
addq $-0x10, %rbx
cmpq $-0x10, %rbx
jne 0x46d27
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, (%rsp)
pushq $0x10
popq %r15
leaq 0x88(%rsp,%r15), %rdi
callq 0x310a0
addq $-0x10, %r15
cmpq $-0x10, %r15
jne 0x46d55
xorl %ebp, %ebp
jmp 0x46d77
movq %rax, (%rsp)
movb $0x1, %bpl
pushq $0x10
popq %r15
leaq 0x48(%rsp,%r15), %rdi
callq 0x310a0
addq $-0x10, %r15
cmpq $-0x10, %r15
jne 0x46d7b
xorl %r12d, %r12d
jmp 0x46d9e
movq %rax, (%rsp)
movb $0x1, %r12b
movb $0x1, %bpl
pushq $0x10
popq %r15
leaq 0x28(%rsp,%r15), %rdi
callq 0x310a0
addq $-0x10, %r15
cmpq $-0x10, %r15
jne 0x46da2
xorl %r13d, %r13d
jmp 0x46dc8
movq %rax, (%rsp)
movb $0x1, %r13b
movb $0x1, %r12b
movb $0x1, %bpl
pushq $0x10
popq %r15
leaq 0x8(%rsp,%r15), %rdi
callq 0x310a0
addq $-0x10, %r15
cmpq $-0x10, %r15
jne 0x46dcc
jmp 0x46e01
leaq 0x8(%rsp), %rdi
movq %rax, (%rsp)
callq 0x310a0
jmp 0x46df8
jmp 0x46df4
movq %rax, (%rsp)
movb $0x1, %r13b
movb $0x1, %r12b
movb $0x1, %bpl
pushq $0x10
popq %r15
leaq 0xa8(%rsp,%r15), %rdi
callq 0x310a0
addq $-0x10, %r15
cmpq $-0x10, %r15
jne 0x46e05
leaq 0x28(%rsp), %r15
cmpq %r14, %r15
setne %al
andb %al, %r13b
cmpb $0x1, %r13b
jne 0x46e41
addq $-0x10, %r14
movq %r14, %rdi
callq 0x310a0
cmpq %r15, %r14
jne 0x46e30
testb %r12b, %r12b
jne 0x46e4f
jmp 0x46e64
movq %rax, (%rsp)
movb $0x1, %bpl
leaq 0x48(%rsp), %rdi
callq 0x310a0
jmp 0x46e64
jmp 0x46e5d
movq %rax, (%rsp)
movb $0x1, %bpl
pushq $0x10
popq %r14
leaq 0x68(%rsp,%r14), %rdi
callq 0x310a0
addq $-0x10, %r14
cmpq $-0x10, %r14
jne 0x46e68
leaq 0x88(%rsp), %r14
cmpq %rbx, %r14
setne %al
andb %al, %bpl
cmpb $0x1, %bpl
jne 0x46ea4
addq $-0x10, %rbx
movq %rbx, %rdi
callq 0x310a0
cmpq %r14, %rbx
jne 0x46e93
movq (%rsp), %rdi
callq 0x33510
leaq 0x68(%rsp), %rdi
movq %rax, (%rsp)
callq 0x310a0
jmp 0x46ea4
movq %rax, (%rsp)
jmp 0x46ea4
nop