// File: /workspace/github_cpp_makefile_star2_O1/king1600[P]cordpp/src/http.cc
// Function: cordpp::RestClient::request(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer> const&, std::function<void (nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer> const&)> const&)
void RestClient::request(const std::string &method, const std::string &endpoint,
  const std::string &audit, const Json &data, const JsonAction &action)
{
  Request request{data, method, endpoint, audit};
  RestTask task{request, action};
  if (!conn->is_connected())
    tasks.push_back(task);
  else
    perform_task(task);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %r9, %r14
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %rbx
leaq 0x8(%rsp), %rdi
movq %r8, %rsi
callq 0x1c3a8
leaq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%r13), %rsi
movq 0x8(%r13), %rdx
addq %rsi, %rdx
callq 0xcd56
leaq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%r12), %rsi
movq 0x8(%r12), %rdx
addq %rsi, %rdx
callq 0xcd56
leaq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
callq 0xcd56
leaq 0x78(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x24342
leaq 0xe8(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x24408
movq 0x128(%rbx), %rdi
callq 0x26278
testb %al, %al
je 0x216e5
leaq 0x78(%rsp), %rsi
movq %rbx, %rdi
callq 0x21c30
jmp 0x216f9
addq $0xd8, %rbx
leaq 0x78(%rsp), %rsi
movq %rbx, %rdi
callq 0x244d2
movq 0xf8(%rsp), %rax
testq %rax, %rax
je 0x21713
movq %r15, %rdi
movq %r15, %rsi
movl $0x3, %edx
callq *%rax
leaq 0xd8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x21734
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0xa5d0
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x21755
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0xa5d0
leaq 0x98(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x21776
movq 0x98(%rsp), %rsi
incq %rsi
callq 0xa5d0
leaq 0x78(%rsp), %rdi
callq 0xf20e
leaq 0x80(%rsp), %rdi
movzbl -0x8(%rdi), %esi
callq 0xf2b0
movq 0x58(%rsp), %rdi
cmpq %r12, %rdi
je 0x217a8
movq 0x68(%rsp), %rsi
incq %rsi
callq 0xa5d0
movq 0x38(%rsp), %rdi
cmpq %r13, %rdi
je 0x217bf
movq 0x48(%rsp), %rsi
incq %rsi
callq 0xa5d0
movq 0x18(%rsp), %rdi
cmpq %rbp, %rdi
je 0x217d6
movq 0x28(%rsp), %rsi
incq %rsi
callq 0xa5d0
leaq 0x8(%rsp), %rdi
callq 0xf20e
leaq 0x10(%rsp), %rdi
movzbl -0x8(%rdi), %esi
callq 0xf2b0
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rdi
callq 0xd3bb
movq %rax, %rbx
leaq 0x78(%rsp), %rdi
callq 0x2446e
jmp 0x21870
movq %rax, %rbx
jmp 0x21870
movq %rax, %rbx
movq 0x38(%rsp), %rdi
cmpq %r13, %rdi
je 0x2183b
movq 0x48(%rsp), %rsi
incq %rsi
callq 0xa5d0
jmp 0x2183b
movq %rax, %rbx
movq 0x18(%rsp), %rdi
cmpq %rbp, %rdi
je 0x21857
movq 0x28(%rsp), %rsi
incq %rsi
callq 0xa5d0
jmp 0x21857
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0xd48e
jmp 0x2187a
movq %rax, %rbx
leaq 0x78(%rsp), %rdi
callq 0x2450c
leaq 0x8(%rsp), %rdi
callq 0x2446e
movq %rbx, %rdi
callq 0xaa30