// File: /workspace/github_c_makefile_star2_O0/loversmile[P]sugarcrm/sugar_stdsoap2.c
// Function: soap_s2QName
SOAP_FMAC2
soap_s2QName(struct soap *soap, const char *s, char **t, long minlen, long maxlen)
{ if (s)
  { long l = (long)strlen(s);
    if ((maxlen >= 0 && l > maxlen) || l < minlen)
      return soap->error = SOAP_LENGTH;
    soap->labidx = 0;
    DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Normalized namespace(s) of QNames '%s'", s));
    /* convert (by prefix normalize prefix) all QNames in s */
    for (;;)
    { size_t n;
      struct soap_nlist *np;
      register const char *p;
      /* skip blanks */
      while (*s && soap_blank(*s))
        s++;
      if (!*s)
        break;
      /* find next QName */
      n = 1;
      while (s[n] && !soap_blank(s[n]))
        n++;
      np = soap->nlist;
      /* if there is no namespace stack, or prefix is "xml" then copy string */
      if (!np || !strncmp(s, "xml:", 4))
      { soap_append_lab(soap, s, n);
      }
      else /* we normalize the QName by replacing its prefix */
      { for (p = s; *p && p < s + n; p++)
          if (*p == ':')
	    break;
        if (*p == ':')
        { size_t k = p - s;
          while (np && (strncmp(np->id, s, k) || np->id[k]))
            np = np->next;
          p++;
        }
        else
        { while (np && *np->id)
            np = np->next;
          p = s;
        }
        /* replace prefix */
        if (np)
        { if (np->index >= 0 && soap->local_namespaces)
          { const char *q = soap->local_namespaces[np->index].id;
            if (q)
              soap_append_lab(soap, q, strlen(q));
          }
          else if (np->ns)
          { soap_append_lab(soap, "\"", 1);
            soap_append_lab(soap, np->ns, strlen(np->ns));
            soap_append_lab(soap, "\"", 1);
          }
          else
          { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "\nNamespace prefix of '%s' not defined (index=%d, URI=%s)\n", s, np->index, np->ns?np->ns:SOAP_STR_EOS));
            return soap->error = SOAP_NAMESPACE; 
          }
        }
        else if (s[n]) /* no namespace, part of string */
        { soap_append_lab(soap, s, n);
        } 
	else /* no namespace: assume "" namespace */
        { soap_append_lab(soap, "\"\"", 2);
	}
        soap_append_lab(soap, ":", 1);
        soap_append_lab(soap, p, n - (p-s));
      }
      /* advance to next and add spacing */
      s += n;
      if (*s)
        soap_append_lab(soap, " ", 1);
    }
    soap_append_lab(soap, SOAP_STR_EOS, 1);
    *t = soap_strdup(soap, soap->labbuf);
    DBGLOG(TEST, SOAP_MESSAGE(fdebug, " into '%s'\n", *t));
  }
  return soap->error;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x633b9
movq -0x18(%rbp), %rdi
callq 0x3100
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x30(%rbp)
jl 0x62f88
movq -0x38(%rbp), %rax
cmpq -0x30(%rbp), %rax
jg 0x62f92
movq -0x38(%rbp), %rax
cmpq -0x28(%rbp), %rax
jge 0x62fac
movq -0x10(%rbp), %rax
movl $0x2d, 0x19214(%rax)
movl $0x2d, -0x4(%rbp)
jmp 0x633c6
movq -0x10(%rbp), %rax
movq $0x0, 0x6130(%rax)
jmp 0x62fbd
movq -0x18(%rbp), %rax
movsbl (%rax), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x61(%rbp)
je 0x62ff5
movq -0x18(%rbp), %rax
movsbl (%rax), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x62(%rbp)
jl 0x62fef
movq -0x18(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x20, %eax
setle %al
movb %al, -0x62(%rbp)
movb -0x62(%rbp), %al
movb %al, -0x61(%rbp)
movb -0x61(%rbp), %al
testb $0x1, %al
jne 0x62ffe
jmp 0x6300c
movq -0x18(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x18(%rbp)
jmp 0x62fbd
movq -0x18(%rbp), %rax
cmpb $0x0, (%rax)
jne 0x6301a
jmp 0x63386
movq $0x1, -0x40(%rbp)
movq -0x18(%rbp), %rax
movq -0x40(%rbp), %rcx
movsbl (%rax,%rcx), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x63(%rbp)
je 0x6306b
movq -0x18(%rbp), %rax
movq -0x40(%rbp), %rcx
movsbl (%rax,%rcx), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x64(%rbp)
jl 0x63063
movq -0x18(%rbp), %rax
movq -0x40(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x20, %eax
setle %al
movb %al, -0x64(%rbp)
movb -0x64(%rbp), %al
xorb $-0x1, %al
movb %al, -0x63(%rbp)
movb -0x63(%rbp), %al
testb $0x1, %al
jne 0x63074
jmp 0x63082
movq -0x40(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x40(%rbp)
jmp 0x63022
movq -0x10(%rbp), %rax
movq 0x88(%rax), %rax
movq %rax, -0x48(%rbp)
cmpq $0x0, -0x48(%rbp)
je 0x630b2
movq -0x18(%rbp), %rdi
leaq 0x17aec(%rip), %rsi     # 0x7ab8f
movl $0x4, %edx
callq 0x3080
cmpl $0x0, %eax
jne 0x630c8
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x40(%rbp), %rdx
callq 0x51780
jmp 0x63357
movq -0x18(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
movsbl (%rax), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x65(%rbp)
je 0x630f6
movq -0x50(%rbp), %rax
movq -0x18(%rbp), %rcx
addq -0x40(%rbp), %rcx
cmpq %rcx, %rax
setb %al
movb %al, -0x65(%rbp)
movb -0x65(%rbp), %al
testb $0x1, %al
jne 0x630ff
jmp 0x6311d
movq -0x50(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x3a, %eax
jne 0x6310d
jmp 0x6311d
jmp 0x6310f
movq -0x50(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x50(%rbp)
jmp 0x630d0
movq -0x50(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x3a, %eax
jne 0x631a5
movq -0x50(%rbp), %rax
movq -0x18(%rbp), %rcx
subq %rcx, %rax
movq %rax, -0x58(%rbp)
xorl %eax, %eax
cmpq $0x0, -0x48(%rbp)
movb %al, -0x66(%rbp)
je 0x63181
movq -0x48(%rbp), %rdi
addq $0x18, %rdi
movq -0x18(%rbp), %rsi
movq -0x58(%rbp), %rdx
callq 0x3080
movl %eax, %ecx
movb $0x1, %al
cmpl $0x0, %ecx
movb %al, -0x67(%rbp)
jne 0x6317b
movq -0x48(%rbp), %rax
movq -0x58(%rbp), %rcx
movsbl 0x18(%rax,%rcx), %eax
cmpl $0x0, %eax
setne %al
movb %al, -0x67(%rbp)
movb -0x67(%rbp), %al
movb %al, -0x66(%rbp)
movb -0x66(%rbp), %al
testb $0x1, %al
jne 0x6318a
jmp 0x63197
movq -0x48(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x48(%rbp)
jmp 0x63138
movq -0x50(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x50(%rbp)
jmp 0x631e2
jmp 0x631a7
xorl %eax, %eax
cmpq $0x0, -0x48(%rbp)
movb %al, -0x68(%rbp)
je 0x631c4
movq -0x48(%rbp), %rax
movsbl 0x18(%rax), %eax
cmpl $0x0, %eax
setne %al
movb %al, -0x68(%rbp)
movb -0x68(%rbp), %al
testb $0x1, %al
jne 0x631cd
jmp 0x631da
movq -0x48(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x48(%rbp)
jmp 0x631a7
movq -0x18(%rbp), %rax
movq %rax, -0x50(%rbp)
cmpq $0x0, -0x48(%rbp)
je 0x632eb
movq -0x48(%rbp), %rax
movswl 0xc(%rax), %eax
cmpl $0x0, %eax
jl 0x6325f
movq -0x10(%rbp), %rax
cmpq $0x0, 0x80(%rax)
je 0x6325f
movq -0x10(%rbp), %rax
movq 0x80(%rax), %rax
movq -0x48(%rbp), %rcx
movswq 0xc(%rcx), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq %rax, -0x60(%rbp)
cmpq $0x0, -0x60(%rbp)
je 0x6325a
movq -0x10(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x60(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x60(%rbp), %rdi
callq 0x3100
movq -0x78(%rbp), %rdi
movq -0x70(%rbp), %rsi
movq %rax, %rdx
callq 0x51780
jmp 0x632e9
movq -0x48(%rbp), %rax
cmpq $0x0, 0x10(%rax)
je 0x632cd
movq -0x10(%rbp), %rdi
leaq 0x17920(%rip), %rsi     # 0x7ab95
movl $0x1, %edx
callq 0x51780
movq -0x10(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x48(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x80(%rbp)
movq -0x48(%rbp), %rax
movq 0x10(%rax), %rdi
callq 0x3100
movq -0x88(%rbp), %rdi
movq -0x80(%rbp), %rsi
movq %rax, %rdx
callq 0x51780
movq -0x10(%rbp), %rdi
leaq 0x178d4(%rip), %rsi     # 0x7ab95
movl $0x1, %edx
callq 0x51780
jmp 0x632e7
movq -0x10(%rbp), %rax
movl $0x9, 0x19214(%rax)
movl $0x9, -0x4(%rbp)
jmp 0x633c6
jmp 0x632e9
jmp 0x63323
movq -0x18(%rbp), %rax
movq -0x40(%rbp), %rcx
cmpb $0x0, (%rax,%rcx)
je 0x6330c
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x40(%rbp), %rdx
callq 0x51780
jmp 0x63321
movq -0x10(%rbp), %rdi
leaq 0x1787d(%rip), %rsi     # 0x7ab94
movl $0x2, %edx
callq 0x51780
jmp 0x63323
movq -0x10(%rbp), %rdi
leaq 0x160fe(%rip), %rsi     # 0x7942c
movl $0x1, %edx
callq 0x51780
movq -0x10(%rbp), %rdi
movq -0x50(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq -0x50(%rbp), %rax
movq -0x18(%rbp), %rcx
subq %rcx, %rax
subq %rax, %rdx
callq 0x51780
movq -0x40(%rbp), %rax
addq -0x18(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
cmpb $0x0, (%rax)
je 0x63381
movq -0x10(%rbp), %rdi
leaq 0x1794d(%rip), %rsi     # 0x7acc4
movl $0x1, %edx
callq 0x51780
jmp 0x62fbb
movq -0x10(%rbp), %rdi
leaq 0x170f0(%rip), %rsi     # 0x7a481
movl $0x1, %edx
callq 0x51780
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x6120(%rax), %rsi
callq 0x538b0
movq %rax, %rcx
movq -0x20(%rbp), %rax
movq %rcx, (%rax)
movq -0x10(%rbp), %rax
movl 0x19214(%rax), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x90, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)