// File: /workspace/github_cpp_makefile_star2_O3/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 0x1bedc
leaq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%r13), %rsi
movq 0x8(%r13), %rdx
addq %rsi, %rdx
callq 0xcd6e
leaq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%r12), %rsi
movq 0x8(%r12), %rdx
addq %rsi, %rdx
callq 0xcd6e
leaq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
callq 0xcd6e
leaq 0x78(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x23dfa
leaq 0xe8(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x23ec0
movq 0x128(%rbx), %rdi
callq 0x25cee
testb %al, %al
je 0x211e9
leaq 0x78(%rsp), %rsi
movq %rbx, %rdi
callq 0x21734
jmp 0x211fd
addq $0xd8, %rbx
leaq 0x78(%rsp), %rsi
movq %rbx, %rdi
callq 0x23f82
movq 0xf8(%rsp), %rax
testq %rax, %rax
je 0x21217
movq %r15, %rdi
movq %r15, %rsi
movl $0x3, %edx
callq *%rax
leaq 0xd8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x21238
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0xa5d0
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x21259
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0xa5d0
leaq 0x98(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2127a
movq 0x98(%rsp), %rsi
incq %rsi
callq 0xa5d0
leaq 0x78(%rsp), %rdi
callq 0xf13a
leaq 0x80(%rsp), %rdi
movzbl -0x8(%rdi), %esi
callq 0xf1dc
movq 0x58(%rsp), %rdi
cmpq %r12, %rdi
je 0x212ac
movq 0x68(%rsp), %rsi
incq %rsi
callq 0xa5d0
movq 0x38(%rsp), %rdi
cmpq %r13, %rdi
je 0x212c3
movq 0x48(%rsp), %rsi
incq %rsi
callq 0xa5d0
movq 0x18(%rsp), %rdi
cmpq %rbp, %rdi
je 0x212da
movq 0x28(%rsp), %rsi
incq %rsi
callq 0xa5d0
leaq 0x8(%rsp), %rdi
callq 0xf13a
leaq 0x10(%rsp), %rdi
movzbl -0x8(%rdi), %esi
callq 0xf1dc
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rdi
callq 0xd3a3
movq %rax, %rbx
leaq 0x78(%rsp), %rdi
callq 0x23f1e
jmp 0x21374
movq %rax, %rbx
jmp 0x21374
movq %rax, %rbx
movq 0x38(%rsp), %rdi
cmpq %r13, %rdi
je 0x2133f
movq 0x48(%rsp), %rsi
incq %rsi
callq 0xa5d0
jmp 0x2133f
movq %rax, %rbx
movq 0x18(%rsp), %rdi
cmpq %rbp, %rdi
je 0x2135b
movq 0x28(%rsp), %rsi
incq %rsi
callq 0xa5d0
jmp 0x2135b
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0xd47e
jmp 0x2137e
movq %rax, %rbx
leaq 0x78(%rsp), %rdi
callq 0x23fbc
leaq 0x8(%rsp), %rdi
callq 0x23f1e
movq %rbx, %rdi
callq 0xaa30