// File: /workspace/github_c_makefile_star2_O0/hkshenSmart[P]ONVIF-discovery_cs/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((soap_wchar)*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 */
      { const char *q;
        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 && (q = soap->local_namespaces[np->index].id))
          { size_t k = strlen(q);
            if (q[k-1] != '_')
              soap_append_lab(soap, q, k);
            else
            { soap_append_lab(soap, "\"", 1);
              soap_append_lab(soap, soap->local_namespaces[np->index].ns, strlen(soap->local_namespaces[np->index].ns));
              soap_append_lab(soap, "\"", 1);
            }
          }
          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 0x2c3c2
movq -0x18(%rbp), %rdi
callq 0x3100
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x30(%rbp)
jl 0x2bee8
movq -0x38(%rbp), %rax
cmpq -0x30(%rbp), %rax
jg 0x2bef2
movq -0x38(%rbp), %rax
cmpq -0x28(%rbp), %rax
jge 0x2bf0c
movq -0x10(%rbp), %rax
movl $0x2d, 0x1f274(%rax)
movl $0x2d, -0x4(%rbp)
jmp 0x2c3cf
movq -0x10(%rbp), %rax
movq $0x0, 0xc190(%rax)
jmp 0x2bf1d
movq -0x18(%rbp), %rax
movsbl (%rax), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x69(%rbp)
je 0x2bf55
movq -0x18(%rbp), %rax
movsbl (%rax), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x6a(%rbp)
jl 0x2bf4f
movq -0x18(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x20, %eax
setle %al
movb %al, -0x6a(%rbp)
movb -0x6a(%rbp), %al
movb %al, -0x69(%rbp)
movb -0x69(%rbp), %al
testb $0x1, %al
jne 0x2bf5e
jmp 0x2bf6c
movq -0x18(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x18(%rbp)
jmp 0x2bf1d
movq -0x18(%rbp), %rax
cmpb $0x0, (%rax)
jne 0x2bf7a
jmp 0x2c38f
movq $0x1, -0x40(%rbp)
movq -0x18(%rbp), %rax
movq -0x40(%rbp), %rcx
movsbl (%rax,%rcx), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x6b(%rbp)
je 0x2bfcb
movq -0x18(%rbp), %rax
movq -0x40(%rbp), %rcx
movsbl (%rax,%rcx), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x6c(%rbp)
jl 0x2bfc3
movq -0x18(%rbp), %rax
movq -0x40(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x20, %eax
setle %al
movb %al, -0x6c(%rbp)
movb -0x6c(%rbp), %al
xorb $-0x1, %al
movb %al, -0x6b(%rbp)
movb -0x6b(%rbp), %al
testb $0x1, %al
jne 0x2bfd4
jmp 0x2bfe2
movq -0x40(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x40(%rbp)
jmp 0x2bf82
movq -0x10(%rbp), %rax
movq 0x88(%rax), %rax
movq %rax, -0x48(%rbp)
cmpq $0x0, -0x48(%rbp)
je 0x2c012
movq -0x18(%rbp), %rdi
leaq 0xdac9(%rip), %rsi      # 0x39acc
movl $0x4, %edx
callq 0x3070
cmpl $0x0, %eax
jne 0x2c028
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x40(%rbp), %rdx
callq 0x19620
jmp 0x2c360
movq -0x18(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
movsbl (%rax), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x6d(%rbp)
je 0x2c056
movq -0x50(%rbp), %rax
movq -0x18(%rbp), %rcx
addq -0x40(%rbp), %rcx
cmpq %rcx, %rax
setb %al
movb %al, -0x6d(%rbp)
movb -0x6d(%rbp), %al
testb $0x1, %al
jne 0x2c05f
jmp 0x2c07d
movq -0x50(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x3a, %eax
jne 0x2c06d
jmp 0x2c07d
jmp 0x2c06f
movq -0x50(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x50(%rbp)
jmp 0x2c030
movq -0x50(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x3a, %eax
jne 0x2c105
movq -0x50(%rbp), %rax
movq -0x18(%rbp), %rcx
subq %rcx, %rax
movq %rax, -0x60(%rbp)
xorl %eax, %eax
cmpq $0x0, -0x48(%rbp)
movb %al, -0x6e(%rbp)
je 0x2c0e1
movq -0x48(%rbp), %rdi
addq $0x18, %rdi
movq -0x18(%rbp), %rsi
movq -0x60(%rbp), %rdx
callq 0x3070
movl %eax, %ecx
movb $0x1, %al
cmpl $0x0, %ecx
movb %al, -0x6f(%rbp)
jne 0x2c0db
movq -0x48(%rbp), %rax
movq -0x60(%rbp), %rcx
movsbl 0x18(%rax,%rcx), %eax
cmpl $0x0, %eax
setne %al
movb %al, -0x6f(%rbp)
movb -0x6f(%rbp), %al
movb %al, -0x6e(%rbp)
movb -0x6e(%rbp), %al
testb $0x1, %al
jne 0x2c0ea
jmp 0x2c0f7
movq -0x48(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x48(%rbp)
jmp 0x2c098
movq -0x50(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x50(%rbp)
jmp 0x2c142
jmp 0x2c107
xorl %eax, %eax
cmpq $0x0, -0x48(%rbp)
movb %al, -0x70(%rbp)
je 0x2c124
movq -0x48(%rbp), %rax
movsbl 0x18(%rax), %eax
cmpl $0x0, %eax
setne %al
movb %al, -0x70(%rbp)
movb -0x70(%rbp), %al
testb $0x1, %al
jne 0x2c12d
jmp 0x2c13a
movq -0x48(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x48(%rbp)
jmp 0x2c107
movq -0x18(%rbp), %rax
movq %rax, -0x50(%rbp)
cmpq $0x0, -0x48(%rbp)
je 0x2c2f4
movq -0x48(%rbp), %rax
movswl 0xc(%rax), %eax
cmpl $0x0, %eax
jl 0x2c262
movq -0x10(%rbp), %rax
cmpq $0x0, 0x80(%rax)
je 0x2c262
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, -0x58(%rbp)
cmpq $0x0, %rax
je 0x2c262
movq -0x58(%rbp), %rdi
callq 0x3100
movq %rax, -0x68(%rbp)
movq -0x58(%rbp), %rax
movq -0x68(%rbp), %rcx
subq $0x1, %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x5f, %eax
je 0x2c1d4
movq -0x10(%rbp), %rdi
movq -0x58(%rbp), %rsi
movq -0x68(%rbp), %rdx
callq 0x19620
jmp 0x2c25d
movq -0x10(%rbp), %rdi
leaq 0xd8f3(%rip), %rsi      # 0x39ad2
movl $0x1, %edx
callq 0x19620
movq -0x10(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x10(%rbp), %rax
movq 0x80(%rax), %rax
movq -0x48(%rbp), %rcx
movswq 0xc(%rcx), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rax
movq %rax, -0x78(%rbp)
movq -0x10(%rbp), %rax
movq 0x80(%rax), %rax
movq -0x48(%rbp), %rcx
movswq 0xc(%rcx), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rdi
callq 0x3100
movq -0x80(%rbp), %rdi
movq -0x78(%rbp), %rsi
movq %rax, %rdx
callq 0x19620
movq -0x10(%rbp), %rdi
leaq 0xd87f(%rip), %rsi      # 0x39ad2
movl $0x1, %edx
callq 0x19620
jmp 0x2c2f2
movq -0x48(%rbp), %rax
cmpq $0x0, 0x10(%rax)
je 0x2c2d6
movq -0x10(%rbp), %rdi
leaq 0xd85a(%rip), %rsi      # 0x39ad2
movl $0x1, %edx
callq 0x19620
movq -0x10(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0x48(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x88(%rbp)
movq -0x48(%rbp), %rax
movq 0x10(%rax), %rdi
callq 0x3100
movq -0x90(%rbp), %rdi
movq -0x88(%rbp), %rsi
movq %rax, %rdx
callq 0x19620
movq -0x10(%rbp), %rdi
leaq 0xd808(%rip), %rsi      # 0x39ad2
movl $0x1, %edx
callq 0x19620
jmp 0x2c2f0
movq -0x10(%rbp), %rax
movl $0x9, 0x1f274(%rax)
movl $0x9, -0x4(%rbp)
jmp 0x2c3cf
jmp 0x2c2f2
jmp 0x2c32c
movq -0x18(%rbp), %rax
movq -0x40(%rbp), %rcx
cmpb $0x0, (%rax,%rcx)
je 0x2c315
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x40(%rbp), %rdx
callq 0x19620
jmp 0x2c32a
movq -0x10(%rbp), %rdi
leaq 0xd7b1(%rip), %rsi      # 0x39ad1
movl $0x2, %edx
callq 0x19620
jmp 0x2c32c
movq -0x10(%rbp), %rdi
leaq 0xc47a(%rip), %rsi      # 0x387b1
movl $0x1, %edx
callq 0x19620
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 0x19620
movq -0x40(%rbp), %rax
addq -0x18(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
cmpb $0x0, (%rax)
je 0x2c38a
movq -0x10(%rbp), %rdi
leaq 0xd886(%rip), %rsi      # 0x39c06
movl $0x1, %edx
callq 0x19620
jmp 0x2bf1b
movq -0x10(%rbp), %rdi
leaq 0xcfe7(%rip), %rsi      # 0x39381
movl $0x1, %edx
callq 0x19620
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0xc180(%rax), %rsi
callq 0x1b870
movq %rax, %rcx
movq -0x20(%rbp), %rax
movq %rcx, (%rax)
movq -0x10(%rbp), %rax
movl 0x1f274(%rax), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x90, %rsp
popq %rbp
retq
nopl (%rax,%rax)