// File: /workspace/github_c_makefile_star2_O0/loversmile[P]sugarcrm/sugar_stdsoap2.c
// Function: soap_copy_stream
SOAP_FMAC2
soap_copy_stream(struct soap *copy, struct soap *soap)
{ copy->mode = soap->mode;
  copy->imode = soap->imode;
  copy->omode = soap->omode;
  copy->socket = soap->socket;
  copy->recv_timeout = soap->recv_timeout;
  copy->send_timeout = soap->send_timeout;
#if defined(__cplusplus) && !defined(WITH_LEAN)
  copy->os = soap->os;
  copy->is = soap->is;
#endif
  copy->sendfd = soap->sendfd;
  copy->recvfd = soap->recvfd;
  copy->bufidx = soap->bufidx;
  copy->buflen = soap->buflen;
  copy->ahead = soap->ahead;
  copy->cdata = soap->cdata;
  copy->chunksize = soap->chunksize;
  copy->chunkbuflen = soap->chunkbuflen;
  copy->keep_alive = soap->keep_alive;
  copy->tcp_keep_alive = soap->tcp_keep_alive;
  copy->tcp_keep_idle = soap->tcp_keep_idle;
  copy->tcp_keep_intvl = soap->tcp_keep_intvl;
  copy->tcp_keep_cnt = soap->tcp_keep_cnt;
  copy->max_keep_alive = soap->max_keep_alive;
#ifndef WITH_NOIO
  copy->peer = soap->peer;
  copy->peerlen = soap->peerlen;
#endif
#ifdef WITH_OPENSSL
  copy->bio = soap->bio;
  copy->ssl = soap->ssl;
  copy->ctx = soap->ctx;
#endif
#ifdef WITH_ZLIB
  copy->zlib_state = soap->zlib_state;
  copy->zlib_in = soap->zlib_in;
  copy->zlib_out = soap->zlib_out;
  copy->d_stream = (z_stream*)SOAP_MALLOC(copy, sizeof(z_stream));
  memcpy(copy->d_stream, soap->d_stream, sizeof(z_stream));
  copy->z_crc = soap->z_crc;
  copy->z_ratio_in = soap->z_ratio_in;
  copy->z_ratio_out = soap->z_ratio_out;
  copy->z_buf = NULL;
  copy->z_buflen = soap->z_buflen;
  copy->z_level = soap->z_level;
  if (soap->z_buf && soap->zlib_state != SOAP_ZLIB_NONE)
  { copy->z_buf = (char*)SOAP_MALLOC(copy, SOAP_BUFLEN);
    memcpy(copy->z_buf, soap->z_buf, sizeof(soap->z_buf));
  }
  copy->z_dict = soap->z_dict;
  copy->z_dict_len = soap->z_dict_len;
#endif
  memcpy(copy->buf, soap->buf, sizeof(soap->buf));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movl 0x4(%rax), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x4(%rax)
movq -0x10(%rbp), %rax
movl 0x8(%rax), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x8(%rax)
movq -0x10(%rbp), %rax
movl 0xc(%rax), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0xc(%rax)
movq -0x10(%rbp), %rax
movl 0x60d4(%rax), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x60d4(%rax)
movq -0x10(%rbp), %rax
movl 0x50(%rax), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x50(%rax)
movq -0x10(%rbp), %rax
movl 0x54(%rax), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x54(%rax)
movq -0x10(%rbp), %rax
movl 0x60e8(%rax), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x60e8(%rax)
movq -0x10(%rbp), %rax
movl 0x60ec(%rax), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x60ec(%rax)
movq -0x10(%rbp), %rax
movq 0x60f0(%rax), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x60f0(%rax)
movq -0x10(%rbp), %rax
movq 0x60f8(%rax), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x60f8(%rax)
movq -0x10(%rbp), %rax
movl 0x6100(%rax), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x6100(%rax)
movq -0x10(%rbp), %rax
movw 0x6104(%rax), %cx
movq -0x8(%rbp), %rax
movw %cx, 0x6104(%rax)
movq -0x10(%rbp), %rax
movq 0x18598(%rax), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x18598(%rax)
movq -0x10(%rbp), %rax
movq 0x185a0(%rax), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x185a0(%rax)
movq -0x10(%rbp), %rax
movw 0x191cc(%rax), %cx
movq -0x8(%rbp), %rax
movw %cx, 0x191cc(%rax)
movq -0x10(%rbp), %rax
movw 0x191ce(%rax), %cx
movq -0x8(%rbp), %rax
movw %cx, 0x191ce(%rax)
movq -0x10(%rbp), %rax
movl 0x191d0(%rax), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x191d0(%rax)
movq -0x10(%rbp), %rax
movl 0x191d4(%rax), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x191d4(%rax)
movq -0x10(%rbp), %rax
movl 0x191d8(%rax), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x191d8(%rax)
movq -0x10(%rbp), %rax
movl 0x191dc(%rax), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x191dc(%rax)
movq -0x8(%rbp), %rax
movq -0x10(%rbp), %rcx
movq 0x1b324(%rcx), %rdx
movq %rdx, 0x1b324(%rax)
movq 0x1b32c(%rcx), %rcx
movq %rcx, 0x1b32c(%rax)
movq -0x10(%rbp), %rax
movq 0x1b338(%rax), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x1b338(%rax)
movq -0x8(%rbp), %rdi
addq $0x6138, %rdi           # imm = 0x6138
movq -0x10(%rbp), %rsi
addq $0x6138, %rsi           # imm = 0x6138
movl $0x10000, %edx          # imm = 0x10000
callq 0x3240
addq $0x10, %rsp
popq %rbp
retq