// File: /workspace/github_c_makefile_star2_O0/loversmile[P]sugarcrm/sugar_stdsoap2.c
// Function: soap_init
SOAP_FMAC2
soap_init(struct soap *soap)
{ soap->state = SOAP_INIT;
#ifdef SOAP_MEM_DEBUG
  soap_init_mht(soap);
#endif
#if !defined(WITH_LEAN) || defined(SOAP_DEBUG)
  soap_init_logs(soap);
#endif
#ifdef SOAP_DEBUG
  soap_set_test_logfile(soap, "TEST.log");
  soap_set_sent_logfile(soap, "SENT.log");
  soap_set_recv_logfile(soap, "RECV.log");
#endif
  soap->version = 0;
  soap_imode(soap, SOAP_IO_DEFAULT);
  soap_omode(soap, SOAP_IO_DEFAULT);
  soap->plugins = NULL;
  soap->user = NULL;
  soap->userid = NULL;
  soap->passwd = NULL;
#ifndef WITH_NOHTTP
  soap->fpost = http_post;
  soap->fget = http_get;
  soap->fput = http_405;
  soap->fdel = http_405;
  soap->fhead = http_405;
  soap->fform = NULL;
  soap->fposthdr = http_post_header;
  soap->fresponse = http_response;
  soap->fparse = http_parse;
  soap->fparsehdr = http_parse_header;
#endif
  soap->fheader = NULL;
  soap->fconnect = NULL;
  soap->fdisconnect = NULL;
#ifndef WITH_NOIO
  soap->ipv6_multicast_if = 0;
  soap->ipv4_multicast_if = NULL;
#ifndef WITH_IPV6
  soap->fresolve = tcp_gethost;
#else
  soap->fresolve = NULL;
#endif
  soap->faccept = tcp_accept;
  soap->fopen = tcp_connect;
  soap->fclose = tcp_disconnect;
  soap->fclosesocket = tcp_closesocket;
  soap->fshutdownsocket = tcp_shutdownsocket;
  soap->fsend = fsend;
  soap->frecv = frecv;
  soap->fpoll = soap_poll;
#else
  soap->fopen = NULL;
  soap->fclose = NULL;
  soap->fpoll = NULL;
#endif
  soap->fseterror = NULL;
  soap->fignore = NULL;
  soap->fserveloop = NULL;
  soap->fplugin = fplugin;
  soap->fmalloc = NULL;
#ifndef WITH_LEANER
  soap->fprepareinitsend = NULL;
  soap->fprepareinitrecv = NULL;
  soap->fpreparesend = NULL;
  soap->fpreparerecv = NULL;
  soap->fpreparefinalsend = NULL;
  soap->fpreparefinalrecv = NULL;
  soap->fdimereadopen = NULL;
  soap->fdimewriteopen = NULL;
  soap->fdimereadclose = NULL;
  soap->fdimewriteclose = NULL;
  soap->fdimeread = NULL;
  soap->fdimewrite = NULL;
  soap->fmimereadopen = NULL;
  soap->fmimewriteopen = NULL;
  soap->fmimereadclose = NULL;
  soap->fmimewriteclose = NULL;
  soap->fmimeread = NULL;
  soap->fmimewrite = NULL;
#endif
  soap->float_format = "%.9G"; /* Alternative: use "%G" */
  soap->double_format = "%.17lG"; /* Alternative: use "%lG" */
  soap->dime_id_format = "cid:id%d"; /* default DIME id format */
  soap->http_version = "1.1";
  soap->proxy_http_version = "1.0";
  soap->http_content = NULL;
  soap->actor = NULL;
  soap->lang = "en";
  soap->keep_alive = 0;
  soap->tcp_keep_alive = 0;
  soap->tcp_keep_idle = 0;
  soap->tcp_keep_intvl = 0;
  soap->tcp_keep_cnt = 0;
  soap->max_keep_alive = SOAP_MAXKEEPALIVE;
  soap->recv_timeout = 0;
  soap->send_timeout = 0;
  soap->connect_timeout = 0;
  soap->accept_timeout = 0;
  soap->socket_flags = 0;
  soap->connect_flags = 0;
  soap->bind_flags = 0;
  soap->accept_flags = 0;
  soap->linger_time = 0;
  soap->ip = 0;
  soap->labbuf = NULL;
  soap->lablen = 0;
  soap->labidx = 0;
  soap->encodingStyle = SOAP_STR_EOS;
#ifndef WITH_NONAMESPACES
  soap->namespaces = namespaces;
#else
  soap->namespaces = NULL;
#endif
  soap->local_namespaces = NULL;
  soap->nlist = NULL;
  soap->blist = NULL;
  soap->clist = NULL;
  soap->alist = NULL;
  soap->attributes = NULL;
  soap->header = NULL;
  soap->fault = NULL;
  soap->master = SOAP_INVALID_SOCKET;
  soap->socket = SOAP_INVALID_SOCKET;
  soap->os = NULL;
  soap->is = NULL;
#ifndef WITH_LEANER
  soap->dom = NULL;
  soap->dime.list = NULL;
  soap->dime.first = NULL;
  soap->dime.last = NULL;
  soap->mime.list = NULL;
  soap->mime.first = NULL;
  soap->mime.last = NULL;
  soap->mime.boundary = NULL;
  soap->mime.start = NULL;
  soap->xlist = NULL;
#endif
#ifndef UNDER_CE
  soap->recvfd = 0;
  soap->sendfd = 1;
#else
  soap->recvfd = stdin;
  soap->sendfd = stdout;
#endif 
  soap->host[0] = '\0';
  soap->port = 0;
  soap->action = NULL;
  soap->proxy_host = NULL;
  soap->proxy_port = 8080;
  soap->proxy_userid = NULL;
  soap->proxy_passwd = NULL;
  soap->authrealm = NULL;
  soap->prolog = NULL;
#ifdef WITH_ZLIB
  soap->zlib_state = SOAP_ZLIB_NONE;
  soap->zlib_in = SOAP_ZLIB_NONE;
  soap->zlib_out = SOAP_ZLIB_NONE;
  soap->d_stream = (z_stream*)SOAP_MALLOC(soap, sizeof(z_stream));
  soap->d_stream->zalloc = Z_NULL;
  soap->d_stream->zfree = Z_NULL;
  soap->d_stream->opaque = Z_NULL;
  soap->z_buf = NULL;
  soap->z_level = 6;
  soap->z_dict = NULL;
  soap->z_dict_len = 0;
#endif
#ifndef WITH_LEAN
  soap->wsuid = NULL;
  soap->c14nexclude = NULL;
  soap->cookies = NULL;
  soap->cookie_domain = NULL;
  soap->cookie_path = NULL;
  soap->cookie_max = 32;
#endif
#ifdef WMW_RPM_IO
  soap->rpmreqid = NULL;
#endif
#ifdef PALM
  palmNetLibOpen();
#endif
#ifndef WITH_NOIDREF
  soap_init_iht(soap);
  soap_init_pht(soap);
#endif
#ifdef WITH_OPENSSL
  if (!soap_ssl_init_done)
    soap_ssl_init();
  soap->fsslauth = ssl_auth_init;
  soap->fsslverify = ssl_verify_callback;
  soap->bio = NULL;
  soap->ssl = NULL;
  soap->ctx = NULL;
  soap->ssl_flags = SOAP_SSL_DEFAULT;
  soap->keyfile = NULL;
  soap->password = NULL;
  soap->dhfile = NULL;
  soap->cafile = NULL;
  soap->capath = NULL;
  soap->crlfile = NULL;
  soap->randfile = NULL;
  soap->session = NULL;
#endif
#ifdef WITH_C_LOCALE
  soap->c_locale = newlocale(LC_ALL_MASK, "C", NULL);
#else
  soap->c_locale = NULL;
#endif
  soap->buflen = 0;
  soap->bufidx = 0;
#ifndef WITH_LEANER
  soap->dime.chunksize = 0;
  soap->dime.buflen = 0;
#endif
  soap->null = 0;
  soap->position = 0;
  soap->encoding = 0;
  soap->mustUnderstand = 0;
  soap->ns = 0;
  soap->part = SOAP_END;
  soap->alloced = 0;
  soap->count = 0;
  soap->length = 0;
  soap->cdata = 0;
  soap->peeked = 0;
  soap->ahead = 0;
  soap->idnum = 0;
  soap->level = 0;
  soap->endpoint[0] = '\0';
  soap->error = SOAP_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movw $0x1, (%rax)
movq -0x8(%rbp), %rdi
callq 0x5e780
movq -0x8(%rbp), %rax
movw $0x0, 0x2(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0x8(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0x4(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0xc(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0x4(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x5f50(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x5f48(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x5f58(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x5f60(%rax)
movq -0x8(%rbp), %rax
leaq -0x8ceb(%rip), %rcx     # 0x55e10
movq %rcx, 0x5f68(%rax)
movq -0x8(%rbp), %rax
leaq -0x86ed(%rip), %rcx     # 0x56420
movq %rcx, 0x5f70(%rax)
movq -0x8(%rbp), %rax
leaq -0x86ef(%rip), %rcx     # 0x56430
movq %rcx, 0x5f78(%rax)
movq -0x8(%rbp), %rax
leaq -0x8701(%rip), %rcx     # 0x56430
movq %rcx, 0x5f80(%rax)
movq -0x8(%rbp), %rax
leaq -0x8713(%rip), %rcx     # 0x56430
movq %rcx, 0x5f88(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x5f90(%rax)
movq -0x8(%rbp), %rax
leaq -0x8724(%rip), %rcx     # 0x56440
movq %rcx, 0x5f98(%rax)
movq -0x8(%rbp), %rax
leaq -0x8686(%rip), %rcx     # 0x564f0
movq %rcx, 0x5fa0(%rax)
movq -0x8(%rbp), %rax
leaq -0x8248(%rip), %rcx     # 0x56940
movq %rcx, 0x5fa8(%rax)
movq -0x8(%rbp), %rax
leaq -0x791a(%rip), %rcx     # 0x57280
movq %rcx, 0x5fb0(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x5fb8(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x5fc8(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x5fd0(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0x1b314(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x1b318(%rax)
movq -0x8(%rbp), %rax
leaq -0x7326(%rip), %rcx     # 0x578d0
movq %rcx, 0x5fc0(%rax)
movq -0x8(%rbp), %rax
leaq -0x7278(%rip), %rcx     # 0x57990
movq %rcx, 0x5ff0(%rax)
movq -0x8(%rbp), %rax
leaq -0x724a(%rip), %rcx     # 0x579d0
movq %rcx, 0x5fe8(%rax)
movq -0x8(%rbp), %rax
leaq -0x64fc(%rip), %rcx     # 0x58730
movq %rcx, 0x5ff8(%rax)
movq -0x8(%rbp), %rax
leaq -0x648e(%rip), %rcx     # 0x587b0
movq %rcx, 0x5fd8(%rax)
movq -0x8(%rbp), %rax
leaq -0x6480(%rip), %rcx     # 0x587d0
movq %rcx, 0x5fe0(%rax)
movq -0x8(%rbp), %rax
leaq -0x6462(%rip), %rcx     # 0x58800
movq %rcx, 0x6000(%rax)
movq -0x8(%rbp), %rax
leaq -0x6074(%rip), %rcx     # 0x58c00
movq %rcx, 0x6008(%rax)
movq -0x8(%rbp), %rax
leaq -0x5dc6(%rip), %rcx     # 0x58ec0
movq %rcx, 0x6010(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x6018(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x6020(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x6028(%rax)
movq -0x8(%rbp), %rax
leaq -0x8f35(%rip), %rcx     # 0x55d90
movq %rcx, 0x6030(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x6038(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x6040(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x6048(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x6050(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x6058(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x6060(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x6068(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x6070(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x6078(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x6080(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x6088(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x6090(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x6098(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x60a0(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x60a8(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x60b0(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x60b8(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x60c0(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x60c8(%rax)
movq -0x8(%rbp), %rax
leaq 0x1bad3(%rip), %rcx     # 0x7a8c7
movq %rcx, 0x10(%rax)
movq -0x8(%rbp), %rax
leaq 0x1bac9(%rip), %rcx     # 0x7a8cc
movq %rcx, 0x18(%rax)
movq -0x8(%rbp), %rax
leaq 0x1bac1(%rip), %rcx     # 0x7a8d3
movq %rcx, 0x20(%rax)
movq -0x8(%rbp), %rax
leaq 0x1babb(%rip), %rcx     # 0x7a8dc
movq %rcx, 0x28(%rax)
movq -0x8(%rbp), %rax
leaq 0x1bab0(%rip), %rcx     # 0x7a8e0
movq %rcx, 0x191e0(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x30(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x40(%rax)
movq -0x8(%rbp), %rax
leaq 0x1d0c8(%rip), %rcx     # 0x7bf22
movq %rcx, 0x48(%rax)
movq -0x8(%rbp), %rax
movw $0x0, 0x191cc(%rax)
movq -0x8(%rbp), %rax
movw $0x0, 0x191ce(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0x191d0(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0x191d4(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0x191d8(%rax)
movq -0x8(%rbp), %rax
movl $0x64, 0x191dc(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0x50(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0x54(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0x58(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0x5c(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0x60(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0x64(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0x68(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0x6c(%rax)
movq -0x8(%rbp), %rax
movw $0x0, 0x70(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x191c0(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x6120(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x6128(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x6130(%rax)
movq -0x8(%rbp), %rax
leaq 0x1b528(%rip), %rcx     # 0x7a481
movq %rcx, 0x38(%rax)
movq -0x8(%rbp), %rax
leaq 0x30308(%rip), %rcx     # 0x8f270
movq %rcx, 0x78(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x80(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x88(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x90(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x98(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0xa0(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x18580(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x5f30(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x5f38(%rax)
movq -0x8(%rbp), %rax
movl $0xffffffff, 0x60d0(%rax) # imm = 0xFFFFFFFF
movq -0x8(%rbp), %rax
movl $0xffffffff, 0x60d4(%rax) # imm = 0xFFFFFFFF
movq -0x8(%rbp), %rax
movq $0x0, 0x60d8(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x60e0(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x19220(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x19270(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x19278(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x19280(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x19298(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x192a0(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x192a8(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x19288(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x19290(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x192b0(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0x60ec(%rax)
movq -0x8(%rbp), %rax
movl $0x1, 0x60e8(%rax)
movq -0x8(%rbp), %rax
movb $0x0, 0x18da8(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0x191c8(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x191a8(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x191e8(%rax)
movq -0x8(%rbp), %rax
movl $0x1f90, 0x191f0(%rax)  # imm = 0x1F90
movq -0x8(%rbp), %rax
movq $0x0, 0x191f8(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x19200(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x191b0(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x191b8(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x1b2e8(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x1b2f0(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x1b2f8(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x1b300(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x1b308(%rax)
movq -0x8(%rbp), %rax
movl $0x20, 0x1b310(%rax)
movq -0x8(%rbp), %rdi
callq 0x5e7d0
movq -0x8(%rbp), %rdi
callq 0x5e810
movq -0x8(%rbp), %rax
movq $0x0, 0x1b7b8(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x60f8(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x60f0(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x19238(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x19240(%rax)
movq -0x8(%rbp), %rax
movw $0x0, 0x1858c(%rax)
movq -0x8(%rbp), %rax
movw $0x0, 0x1853a(%rax)
movq -0x8(%rbp), %rax
movw $0x0, 0x18588(%rax)
movq -0x8(%rbp), %rax
movw $0x0, 0x1858a(%rax)
movq -0x8(%rbp), %rax
movw $0x0, 0x1858e(%rax)
movq -0x8(%rbp), %rax
movw $0x9, 0x18590(%rax)
movq -0x8(%rbp), %rax
movw $0x0, 0x18592(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x6110(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x6118(%rax)
movq -0x8(%rbp), %rax
movw $0x0, 0x6104(%rax)
movq -0x8(%rbp), %rax
movw $0x0, 0x18594(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0x6100(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0x5f40(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0x6108(%rax)
movq -0x8(%rbp), %rax
movb $0x0, 0x185a8(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0x19214(%rax)
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)