// File: /workspace/github_cpp_makefile_star2_O3/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 %rbp
pushq %r14
pushq %rbx
subq $0xa0, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, 0x30(%rsp)
movq %rsi, 0x38(%rsp)
movq 0xa0(%rsi), %rdi
testq %rdi, %rdi
je 0xecd0
movq (%rdi), %rax
callq *(%rax)
movq %rax, 0x8(%rsp)
movb 0xa8(%r14), %bpl
movb %bpl, 0x10(%rsp)
testq %rax, %rax
je 0xece5
movq (%rax), %rcx
movq %rax, %rdi
callq *(%rcx)
jmp 0xece7
movq $0x0, 0x8(%rsp)
movb 0xa8(%r14), %bpl
movb %bpl, 0x10(%rsp)
xorl %eax, %eax
movq %rax, 0x18(%rsp)
movb %bpl, 0x20(%rsp)
movq 0x58(%r14), %rax
leaq 0x40(%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)
movups 0x80(%r14), %xmm0
xorl %eax, %eax
movq %rax, 0x88(%r14)
movups %xmm0, 0x28(%rcx)
movq %rax, 0x80(%r14)
movups 0x90(%r14), %xmm0
movq %rax, 0x98(%r14)
movups %xmm0, 0x38(%rcx)
movq %rax, 0x90(%r14)
movups 0x18(%r14), %xmm0
movups %xmm0, 0x48(%rcx)
movq 0x28(%r14), %rax
movq %rax, 0x58(%rcx)
leaq 0x28(%rsp), %rdi
movq %rcx, (%rdi)
callq 0xee50
testq %rbx, %rbx
je 0xed82
leaq 0x18(%rsp), %rdi
leaq 0x40(%rsp), %rsi
leaq 0x7(%rsp), %rdx
callq 0xef84
movq 0x80(%rsp), %rdi
testq %rdi, %rdi
je 0xed94
callq 0x7000
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0xeda3
callq 0x7000
leaq 0x8(%rsp), %rdi
callq 0xeeec
leaq 0x28(%rsp), %rdi
callq 0xee50
addq $0xa0, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
jmp 0xedcd
jmp 0xedf3
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0xeec8
leaq 0x8(%rsp), %rdi
callq 0xeeec
leaq 0x28(%rsp), %rdi
callq 0xee50
movq %rbx, %rdi
callq 0x55d0
movq %rax, %rdi
callq 0x6e5b
nop