// File: /workspace/github_c_makefile_star2_O0/loversmile[P]sugarcrm/sugar_stdsoap2.c
// Function: soap_envelope_begin_in
SOAP_FMAC2
soap_envelope_begin_in(struct soap *soap)
{ register struct Namespace *p;
  soap->part = SOAP_IN_ENVELOPE;
  if (soap_element_begin_in(soap, "SOAP-ENV:Envelope", 0, NULL))
  { if (soap->error == SOAP_TAG_MISMATCH
     && !soap_element_begin_in(soap, "Envelope", 0, NULL))
      soap->error = SOAP_VERSIONMISMATCH;
    else if (soap->status)
      soap->error = soap->status;
    return soap->error;
  }
  p = soap->local_namespaces;
  if (p)
  { const char *ns = p[0].out;
    if (!ns)
      ns = p[0].ns;
    if (!strcmp(ns, soap_env1))
    { soap->version = 1; /* make sure we use SOAP 1.1 */
      if (p[1].out)
        SOAP_FREE(soap, p[1].out);
      if ((p[1].out = (char*)SOAP_MALLOC(soap, sizeof(soap_enc1))))
        strcpy(p[1].out, soap_enc1);
    }
    else if (!strcmp(ns, soap_env2))
    { soap->version = 2; /* make sure we use SOAP 1.2 */
      if (p[1].out)
        SOAP_FREE(soap, p[1].out);
      if ((p[1].out = (char*)SOAP_MALLOC(soap, sizeof(soap_enc2))))
        strcpy(p[1].out, soap_enc2);
    }
  }
  return SOAP_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movw $0x2, 0x18590(%rax)
movq -0x10(%rbp), %rdi
leaq 0xfabe(%rip), %rsi      # 0x7ae02
xorl %edx, %edx
xorl %eax, %eax
movl %eax, %ecx
callq 0x53390
cmpl $0x0, %eax
je 0x6b3c1
movq -0x10(%rbp), %rax
cmpl $0x3, 0x19214(%rax)
jne 0x6b38c
movq -0x10(%rbp), %rdi
leaq 0xfa9f(%rip), %rsi      # 0x7ae0b
xorl %edx, %edx
xorl %eax, %eax
movl %eax, %ecx
callq 0x53390
cmpl $0x0, %eax
jne 0x6b38c
movq -0x10(%rbp), %rax
movl $0x27, 0x19214(%rax)
jmp 0x6b3af
movq -0x10(%rbp), %rax
cmpl $0x0, 0x19210(%rax)
je 0x6b3ad
movq -0x10(%rbp), %rax
movl 0x19210(%rax), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x19214(%rax)
jmp 0x6b3af
movq -0x10(%rbp), %rax
movl 0x19214(%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0x6b4cf
movq -0x10(%rbp), %rax
movq 0x80(%rax), %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x6b4c8
movq -0x18(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
jne 0x6b3fa
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdi
leaq 0xf08b(%rip), %rsi      # 0x7a490
callq 0x3210
cmpl $0x0, %eax
jne 0x6b45f
movq -0x10(%rbp), %rax
movw $0x1, 0x2(%rax)
movq -0x18(%rbp), %rax
cmpq $0x0, 0x38(%rax)
je 0x6b431
movq -0x18(%rbp), %rax
movq 0x38(%rax), %rdi
callq 0x3030
movl $0x2a, %edi
callq 0x3290
movq -0x18(%rbp), %rcx
movq %rax, 0x38(%rcx)
cmpq $0x0, %rax
je 0x6b45d
movq -0x18(%rbp), %rax
movq 0x38(%rax), %rdi
leaq 0xf0a8(%rip), %rsi      # 0x7a500
callq 0x3090
jmp 0x6b4c6
movq -0x20(%rbp), %rdi
leaq 0xf0c6(%rip), %rsi      # 0x7a530
callq 0x3210
cmpl $0x0, %eax
jne 0x6b4c4
movq -0x10(%rbp), %rax
movw $0x2, 0x2(%rax)
movq -0x18(%rbp), %rax
cmpq $0x0, 0x38(%rax)
je 0x6b496
movq -0x18(%rbp), %rax
movq 0x38(%rax), %rdi
callq 0x3030
movl $0x28, %edi
callq 0x3290
movq -0x18(%rbp), %rcx
movq %rax, 0x38(%rcx)
cmpq $0x0, %rax
je 0x6b4c2
movq -0x18(%rbp), %rax
movq 0x38(%rax), %rdi
leaq 0xf0a3(%rip), %rsi      # 0x7a560
callq 0x3090
jmp 0x6b4c4
jmp 0x6b4c6
jmp 0x6b4c8
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax,%rax)