// File: /workspace/github_cpp_makefile_star2_O1/nurseiit[P]cpp-server/./include/asio/detail/reactive_socket_send_op.hpp
// Function: asio::detail::reactive_socket_send_op<asio::const_buffers_1, asio::detail::write_op<asio::basic_stream_socket<asio::ip::tcp, asio::executor>, asio::const_buffers_1, asio::const_buffer const*, asio::detail::transfer_all_t, Session::read_next_line(std::shared_ptr<Session>)::'lambda'(std::error_code const&, unsigned long)::operator()(std::error_code const&, unsigned long) const::'lambda'(std::error_code const&, unsigned long)>, asio::detail::io_object_executor<asio::executor>>::do_complete(void*, asio::detail::scheduler_operation*, std::error_code const&, unsigned long)
static void do_complete(void* owner, operation* base,
      const asio::error_code& /*ec*/,
      std::size_t /*bytes_transferred*/)
  {
    // Take ownership of the handler object.
    reactive_socket_send_op* o(static_cast<reactive_socket_send_op*>(base));
    ptr p = { asio::detail::addressof(o->handler_), o, o };
    handler_work<Handler, IoExecutor> w(o->handler_, o->io_executor_);

    ASIO_HANDLER_COMPLETION((*o));

    // Make a copy of the handler so that the memory can be deallocated before
    // the upcall is made. Even if we're not about to make an upcall, a
    // sub-object of the handler may be the true owner of the memory associated
    // with the handler. Consequently, a local copy of the handler is required
    // to ensure that any owning sub-object remains valid until after we have
    // deallocated the memory here.
    detail::binder2<Handler, asio::error_code, std::size_t>
      handler(o->handler_, o->ec_, o->bytes_transferred_);
    p.h = asio::detail::addressof(handler.handler_);
    p.reset();

    // Make the upcall if required.
    if (owner)
    {
      fenced_block b(fenced_block::half);
      ASIO_HANDLER_INVOCATION_BEGIN((handler.arg1_, handler.arg2_));
      w.complete(handler, handler.handler_);
      ASIO_HANDLER_INVOCATION_END;
    }
  }

// Assembly:
pushq %r14
pushq %rbx
subq $0xa8, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x58(%rsi), %rax
movq %rax, 0x30(%rsp)
movq %rsi, 0x38(%rsp)
movq %rsi, 0x40(%rsp)
movq 0xa0(%rsi), %rdi
testq %rdi, %rdi
je 0xeee6
movq (%rdi), %rax
callq *(%rax)
jmp 0xeee8
xorl %eax, %eax
movq %rax, 0x10(%rsp)
movb 0xa8(%r14), %cl
movb %cl, 0x18(%rsp)
testq %rax, %rax
je 0xef07
movq (%rax), %rcx
movq %rax, %rdi
callq *(%rcx)
jmp 0xef09
xorl %eax, %eax
movq %rax, 0x20(%rsp)
movb 0x18(%rsp), %al
movb %al, 0x28(%rsp)
movq 0x58(%r14), %rax
leaq 0x48(%rsp), %rcx
movq %rax, (%rcx)
movups 0x60(%r14), %xmm0
movups %xmm0, 0x8(%rcx)
movq 0x70(%r14), %rax
movq %rax, 0x18(%rcx)
movl 0x78(%r14), %eax
movl %eax, 0x20(%rcx)
movq 0x80(%r14), %rax
movq %rax, 0x28(%rcx)
xorl %eax, %eax
movq %rax, 0x30(%rcx)
movq 0x88(%r14), %rdx
movq %rax, 0x88(%r14)
movq %rdx, 0x30(%rcx)
movq %rax, 0x80(%r14)
movq 0x90(%r14), %rdx
movq %rdx, 0x38(%rcx)
movq %rax, 0x40(%rcx)
movq 0x98(%r14), %rdx
movq %rax, 0x98(%r14)
movq %rdx, 0x40(%rcx)
movq %rax, 0x90(%r14)
movups 0x18(%r14), %xmm0
movups %xmm0, 0x48(%rcx)
movq 0x28(%r14), %rax
movq %rax, 0x58(%rcx)
leaq 0x30(%rsp), %rdi
movq %rcx, (%rdi)
callq 0xf090
testq %rbx, %rbx
je 0xefc3
leaq 0x20(%rsp), %rdi
leaq 0x48(%rsp), %rsi
leaq 0xf(%rsp), %rdx
callq 0xf1c0
movq 0x88(%rsp), %rdi
testq %rdi, %rdi
je 0xefd5
callq 0x7026
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
je 0xefe4
callq 0x7026
leaq 0x10(%rsp), %rdi
callq 0xf12c
leaq 0x30(%rsp), %rdi
callq 0xf090
addq $0xa8, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
jmp 0xf00d
jmp 0xf033
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0xf108
leaq 0x10(%rsp), %rdi
callq 0xf12c
leaq 0x30(%rsp), %rdi
callq 0xf090
movq %rbx, %rdi
callq 0x55d0
movq %rax, %rdi
callq 0x6e80
nop