LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: soap_free_temp
SOAP_FMAC2
soap_free_temp(struct soap *soap)
{ register struct soap_attribute *tp, *tq;
  register struct Namespace *ns;
  soap_free_ns(soap);
  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Free any remaining temp blocks\n"));
  while (soap->blist)
    soap_end_block(soap, NULL);
  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Free attribute storage\n"));
  for (tp = soap->attributes; tp; tp = tq)
  { tq = tp->next;
    if (tp->value)
      SOAP_FREE(soap, tp->value);
    SOAP_FREE(soap, tp);
  }
  soap->attributes = NULL;
#ifdef WITH_FAST
  if (soap->labbuf)
    SOAP_FREE(soap, soap->labbuf);
  soap->labbuf = NULL;
  soap->lablen = 0;
  soap->labidx = 0;
#endif
  ns = soap->local_namespaces;
  if (ns)
  { for (; ns->id; ns++)
    { if (ns->out)
      { if (soap->encodingStyle == ns->out)
          soap->encodingStyle = SOAP_STR_EOS;
        SOAP_FREE(soap, ns->out);
        ns->out = NULL;
      }
      if (soap->encodingStyle == ns->ns)
        soap->encodingStyle = SOAP_STR_EOS;
    }
    SOAP_FREE(soap, soap->local_namespaces);
    soap->local_namespaces = NULL;
  }
#ifndef WITH_LEANER
  while (soap->xlist)
  { struct soap_xlist *xp = soap->xlist->next;
    SOAP_FREE(soap, soap->xlist);
    soap->xlist = xp;
  }
#endif
#ifndef WITH_NOIDREF
  soap_free_pht(soap);
  soap_free_iht(soap);
#endif
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x88(%rdi), %rdi
testq %rdi, %rdi
je 0x152dd
movq (%rdi), %r14
callq 0x3030
movq %r14, %rdi
testq %r14, %r14
jne 0x152cd
movq $0x0, 0x88(%rbx)
cmpq $0x0, 0x90(%rbx)
je 0x152fe
movq %rbx, %rdi
xorl %esi, %esi
callq 0x13563
jmp 0x152e8
movq 0x1e5e0(%rbx), %r14
testq %r14, %r14
je 0x1532b
movq (%r14), %r15
movq 0x10(%r14), %rdi
testq %rdi, %rdi
je 0x1531b
callq 0x3030
movq %r14, %rdi
callq 0x3030
movq %r15, %r14
testq %r15, %r15
jne 0x1530a
movq $0x0, 0x1e5e0(%rbx)
leaq 0xc180(%rbx), %r14
movq 0xc180(%rbx), %rdi
testq %rdi, %rdi
je 0x1534e
callq 0x3030
xorps %xmm0, %xmm0
movups %xmm0, (%r14)
movq $0x0, 0x10(%r14)
movq 0x80(%rbx), %r14
testq %r14, %r14
je 0x153d2
cmpq $0x0, (%r14)
je 0x153bf
movq 0x38(%rbx), %rax
addq $0x20, %r14
leaq 0x10c43(%rip), %r15     # 0x25fc1
movq -0x8(%r14), %rdi
testq %rdi, %rdi
je 0x153a1
cmpq %rdi, %rax
jne 0x15390
movq %r15, 0x38(%rbx)
callq 0x3030
movq $0x0, -0x8(%r14)
movq 0x38(%rbx), %rax
cmpq -0x18(%r14), %rax
jne 0x153ae
movq %r15, 0x38(%rbx)
movq %r15, %rax
cmpq $0x0, (%r14)
leaq 0x20(%r14), %r14
jne 0x1537e
movq 0x80(%rbx), %r14
movq %r14, %rdi
callq 0x3030
movq $0x0, 0x80(%rbx)
movq 0x1f310(%rbx), %rdi
testq %rdi, %rdi
je 0x153f5
movq (%rdi), %r14
callq 0x3030
movq %r14, 0x1f310(%rbx)
movq %r14, %rdi
testq %r14, %r14
jne 0x153de
movq 0xbf20(%rbx), %rdi
testq %rdi, %rdi
je 0x15411
movq (%rdi), %r14
callq 0x3030
movq %r14, %rdi
testq %r14, %r14
jne 0x15401
leaq 0x3f20(%rbx), %rdi
movl $0x800a, %edx           # imm = 0x800A
xorl %esi, %esi
callq 0x3180
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x19da2
// File: /workspace/github_c_makefile_star2_O3/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: fplugin
static void *
fplugin(struct soap *soap, const char *id)
{ register struct soap_plugin *p;
  for (p = soap->plugins; p; p = p->next)
    if (p->id == id || !strcmp(p->id, id))
      return p->data;
  return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r15
movq %rdi, %r14
addq $0xbf70, %r14           # imm = 0xBF70
xorl %ebx, %ebx
movq (%r14), %r14
testq %r14, %r14
je 0x15466
movq 0x8(%r14), %rdi
cmpq %r15, %rdi
je 0x15462
movq %r15, %rsi
callq 0x31f0
testl %eax, %eax
jne 0x15445
movq 0x10(%r14), %rbx
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: soap_decode
static const char*
soap_decode(char *buf, size_t len, const char *val, const char *sep)
{ const char *s;
  char *t = buf;
  for (s = val; *s; s++)
    if (*s != ' ' && *s != '\t' && !strchr(sep, *s))
      break;
  if (*s == '"')
  { s++;
    while (*s && *s != '"' && --len)
      *t++ = *s++;
  }
  else
  { while (*s && !soap_blank((soap_wchar)*s) && !strchr(sep, *s) && --len)
    { if (*s == '%')
      { *t++ = ((s[1] >= 'A' ? (s[1] & 0x7) + 9 : s[1] - '0') << 4)
              + (s[2] >= 'A' ? (s[2] & 0x7) + 9 : s[2] - '0');
        s += 3;
      }
      else
        *t++ = *s++;
    }
  }
  *t = '\0';
  while (*s && !strchr(sep, *s))
    s++;
  return s;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rcx, %r14
movq %rdx, %rbx
movq %rsi, %r12
movq %rdi, %r15
movzbl (%rbx), %ebp
cmpl $0x9, %ebp
je 0x173d8
cmpl $0x20, %ebp
je 0x173d8
testl %ebp, %ebp
je 0x17480
movsbl %bpl, %esi
movq %r14, %rdi
callq 0x3130
testq %rax, %rax
je 0x173dd
incq %rbx
jmp 0x173b2
cmpb $0x22, %bpl
jne 0x1740e
incq %rbx
decq %r12
movzbl (%rbx), %eax
testl %eax, %eax
je 0x17480
cmpl $0x22, %eax
je 0x17480
subq $0x1, %r12
jb 0x17480
movb %al, (%r15)
incq %r15
incq %rbx
jmp 0x173e9
cmpb $0x21, %bpl
jb 0x17480
decq %r12
movsbl %bpl, %esi
movq %r14, %rdi
callq 0x3130
testq %rax, %rax
jne 0x17480
subq $0x1, %r12
jb 0x17480
cmpb $0x25, %bpl
jne 0x1746e
movzbl 0x1(%rbx), %eax
movl %eax, %ecx
andb $0x7, %cl
addb $0x9, %cl
cmpb $0x41, %al
movzbl %cl, %ecx
cmovll %eax, %ecx
shlb $0x4, %cl
movb 0x2(%rbx), %al
movl %eax, %edx
andb $0x7, %dl
addb $0x9, %dl
leal -0x30(%rax), %esi
cmpb $0x41, %al
movzbl %sil, %eax
movzbl %dl, %ebp
cmovll %eax, %ebp
addb %cl, %bpl
addq $0x3, %rbx
jmp 0x17471
incq %rbx
movb %bpl, (%r15)
incq %r15
movb (%rbx), %bpl
cmpb $0x21, %bpl
jae 0x17417
movb $0x0, (%r15)
movb (%rbx), %al
testb %al, %al
je 0x174a2
movsbl %al, %esi
movq %r14, %rdi
callq 0x3130
testq %rax, %rax
jne 0x174a2
movb 0x1(%rbx), %al
incq %rbx
jmp 0x17486
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: soap_hash
SOAP_FMAC2
soap_hash(register const char *s)
{ register size_t h = 0;
  while (*s)
    h = 65599*h + *s++;
  return h % SOAP_IDHASH;
}

// Assembly:
movb (%rdi), %al
testb %al, %al
je 0x17937
incq %rdi
xorl %ecx, %ecx
imulq $0x1003f, %rcx, %rdx    # imm = 0x1003F
movsbq %al, %rcx
addq %rdx, %rcx
movb (%rdi), %al
incq %rdi
testb %al, %al
jne 0x178f4
movabsq $0x6466f6a6bd4754f, %rdx # imm = 0x6466F6A6BD4754F
movq %rcx, %rax
mulq %rdx
movq %rcx, %rax
subq %rdx, %rax
shrq %rax
addq %rdx, %rax
shrq $0xa, %rax
imulq $0x7cf, %rax, %rax      # imm = 0x7CF
subq %rax, %rcx
jmp 0x17939
xorl %ecx, %ecx
movq %rcx, %rax
retq
// File: /workspace/github_c_makefile_star2_O3/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: soap_is_single
SOAP_FMAC2
soap_is_single(struct soap *soap, struct soap_plist *pp)
{ if (soap->part == SOAP_IN_HEADER)
    return 1;
  if (!pp)
    return 0;
  if (soap->mode & SOAP_IO_LENGTH)
    return pp->mark1 == 0;
  return pp->mark2 == 0;
}

// Assembly:
movb $0x1, %al
cmpw $0x3, 0x1e5f0(%rdi)
je 0x17bbc
testq %rsi, %rsi
je 0x17bb1
testb $0x8, 0x4(%rdi)
jne 0x17bb5
cmpb $0x0, 0x21(%rsi)
jmp 0x17bb9
xorl %eax, %eax
jmp 0x17bbc
cmpb $0x0, 0x20(%rsi)
sete %al
movzbl %al, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: soap_set_embedded
SOAP_FMAC2
soap_set_embedded(struct soap *soap, struct soap_plist *pp)
{ if (!pp)
    return;
  if (soap->mode & SOAP_IO_LENGTH)
    pp->mark1 = 1;
  else
    pp->mark2 = 1;
}

// Assembly:
testq %rsi, %rsi
je 0x17bcf
testb $0x8, 0x4(%rdi)
jne 0x17bd0
movb $0x1, 0x21(%rsi)
retq
movb $0x1, 0x20(%rsi)
retq
// File: /workspace/github_c_makefile_star2_O3/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: soap_clr_attr
SOAP_FMAC2
soap_clr_attr(struct soap *soap)
{ register struct soap_attribute *tp;
#ifndef WITH_LEAN
  if ((soap->mode & SOAP_XML_CANONICAL))
  { while (soap->attributes)
    { tp = soap->attributes->next;
      if (soap->attributes->value)
        SOAP_FREE(soap, soap->attributes->value);
      SOAP_FREE(soap, soap->attributes);
      soap->attributes = tp;
    }
  }
  else
#endif
  { for (tp = soap->attributes; tp; tp = tp->next)
      tp->visible = 0;
  }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testb $0x1, 0x6(%rdi)
movq 0x1e5e0(%rdi), %r14
jne 0x17f3c
testq %r14, %r14
je 0x17f73
movw $0x0, 0x28(%r14)
movq (%r14), %r14
jmp 0x17f2b
testq %r14, %r14
je 0x17f73
movq %rdi, %rbx
movq %r14, %rdi
movq (%r14), %r14
movq 0x10(%rdi), %rax
testq %rax, %rax
je 0x17f62
movq %rax, %rdi
callq 0x3030
movq 0x1e5e0(%rbx), %rdi
callq 0x3030
movq %r14, 0x1e5e0(%rbx)
testq %r14, %r14
jne 0x17f44
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: soap_reference
SOAP_FMAC2
soap_reference(struct soap *soap, const void *p, int t)
{ struct soap_plist *pp;
  if (!p || (soap->mode & SOAP_XML_TREE))
    return 1;
  if (soap_pointer_lookup(soap, p, t, &pp))
  { if (pp->mark1 == 0)
    { pp->mark1 = 2;
      pp->mark2 = 2;
    }
  }
  else if (soap_pointer_enter(soap, p, NULL, 0, t, &pp))
  { pp->mark1 = 0;
    pp->mark2 = 0;
  }
  else
    return 1;
  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Reference %p type=%d (%d %d)\n", p, t, (int)pp->mark1, (int)pp->mark2));
  return pp->mark1;
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movl $0x1, %ebx
testq %rsi, %rsi
je 0x180ef
testb $0x2, 0x6(%rdi)
jne 0x180ef
movl %edx, %r8d
movq $0x0, 0x8(%rsp)
movl %esi, %eax
andl $0x7ff8, %eax           # imm = 0x7FF8
movq 0x3f20(%rdi,%rax), %rax
testq %rax, %rax
je 0x180ce
cmpq %rsi, 0x8(%rax)
jne 0x180af
cmpl %r8d, 0x18(%rax)
je 0x180b4
movq (%rax), %rax
jmp 0x1809e
movq %rax, 0x8(%rsp)
cmpl $0x0, 0x1c(%rax)
je 0x180ce
movb 0x20(%rax), %cl
testb %cl, %cl
jne 0x180ec
movb $0x2, 0x20(%rax)
movb $0x2, %cl
jmp 0x180e9
leaq 0x8(%rsp), %r9
xorl %edx, %edx
callq 0x17bd5
testl %eax, %eax
je 0x180ef
movq 0x8(%rsp), %rax
movb $0x0, 0x20(%rax)
xorl %ecx, %ecx
movb %cl, 0x21(%rax)
movsbl %cl, %ebx
movl %ebx, %eax
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: soap_array_reference
SOAP_FMAC2
soap_array_reference(struct soap *soap, const void *p, const struct soap_array *a, int n, int t)
{ register int i;
  struct soap_plist *pp;
  if (!p || !a->__ptr)
    return 1;
  i = soap_array_pointer_lookup(soap, p, a, n, t, &pp);
  if (i)
  { if (pp->mark1 == 0)
    { pp->mark1 = 2;
      pp->mark2 = 2;
    }
  }
  else if (!soap_pointer_enter(soap, p, a, n, t, &pp))
    return 1;
  else
  { pp->mark1 = 0;
    pp->mark2 = 0;
  }
  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Array reference %p ptr=%p dim=%d type=%d (%d %d)\n", p, a->__ptr, n, t, (int)pp->mark1, (int)pp->mark2));
  return pp->mark1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl $0x1, %ebx
testq %rsi, %rsi
je 0x1816f
movq %rdx, %r14
cmpq $0x0, (%rdx)
je 0x1816f
movl %r8d, %ebp
movq %rsi, %r15
movq %rdi, %r12
leaq 0x8(%rsp), %r9
movq %r14, %rdx
callq 0x17a8a
testl %eax, %eax
je 0x18144
movq 0x8(%rsp), %rax
movb 0x20(%rax), %cl
testb %cl, %cl
jne 0x1816c
movb $0x2, 0x20(%rax)
movb $0x2, %cl
jmp 0x18169
leaq 0x8(%rsp), %r9
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
movl %ebp, %r8d
callq 0x17bd5
testl %eax, %eax
je 0x1816f
movq 0x8(%rsp), %rax
movb $0x0, 0x20(%rax)
xorl %ecx, %ecx
movb %cl, 0x21(%rax)
movsbl %cl, %ebx
movl %ebx, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: soap_element_begin_out
SOAP_FMAC2
soap_element_begin_out(struct soap *soap, const char *tag, int id, const char *type)
{ if (*tag == '-')
    return SOAP_OK;
  if (soap_element(soap, tag, id, type))
    return soap->error;
#ifdef WITH_DOM
  if (soap_element_start_end_out(soap, NULL))
    return soap->error;
  if (soap->feltbegout)
    return soap->error = soap->feltbegout(soap, tag);
  return SOAP_OK;
#else
  return soap_element_start_end_out(soap, NULL);
#endif
}

// Assembly:
pushq %rbx
xorl %eax, %eax
cmpb $0x2d, (%rsi)
je 0x186bf
movq %rdi, %rbx
callq 0x1a93a
testl %eax, %eax
je 0x186c1
movl 0x1f274(%rbx), %eax
popq %rbx
retq
movq %rbx, %rdi
xorl %esi, %esi
popq %rbx
jmp 0x1b598
// File: /workspace/github_c_makefile_star2_O3/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: soap_element_end_out
SOAP_FMAC2
soap_element_end_out(struct soap *soap, const char *tag)
{
#ifndef WITH_LEAN
  const char *s;
#endif
  if (*tag == '-')
    return SOAP_OK;
  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Element ending tag='%s'\n", tag));
#ifdef WITH_DOM
  if (soap->feltendout && (soap->error = soap->feltendout(soap, tag)))
    return soap->error;
  if ((soap->mode & SOAP_XML_DOM) && soap->dom)
  { if (soap->dom->prnt)
      soap->dom = soap->dom->prnt;
    return SOAP_OK;
  }
#endif
#ifndef WITH_LEAN
  if (soap->mode & SOAP_XML_CANONICAL)
    soap_pop_namespace(soap);
  if (soap->mode & SOAP_XML_INDENT)
  { if (!soap->body)
    { if (soap_send_raw(soap, soap_indent, soap->level < sizeof(soap_indent) ? soap->level : sizeof(soap_indent) - 1))
        return soap->error;
    }
    soap->body = 0;
  }
  if ((soap->mode & SOAP_XML_DEFAULTNS) && (s = strchr(tag, ':')))
  { soap_pop_namespace(soap);
    tag = s + 1;
  }
#endif
  if (soap_send_raw(soap, "</", 2)
   || soap_send(soap, tag))
    return soap->error;
  soap->level--;	/* decrement level just before > */
  return soap_send_raw(soap, ">", 1);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
xorl %eax, %eax
cmpb $0x2d, (%rsi)
je 0x1880c
movq %rsi, %r14
movq %rdi, %rbx
movl 0x4(%rdi), %eax
btl $0x10, %eax
jae 0x1874c
movq %rbx, %rdi
callq 0x13ec3
movl 0x4(%rbx), %eax
btl $0xd, %eax
jae 0x18769
cmpw $0x0, 0xc166(%rbx)
je 0x187e2
movw $0x0, 0xc166(%rbx)
testw %ax, %ax
jns 0x18791
movq %r14, %rdi
movl $0x3a, %esi
callq 0x3130
testq %rax, %rax
je 0x18791
movq %rax, %r15
movq %rbx, %rdi
callq 0x13ec3
incq %r15
movq %r15, %r14
leaq 0xdd52(%rip), %rsi      # 0x264ea
movl $0x2, %edx
movq %rbx, %rdi
callq 0x102b0
testl %eax, %eax
jne 0x18806
movq %r14, %rdi
callq 0x3110
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x102b0
testl %eax, %eax
jne 0x18806
decl 0xc168(%rbx)
leaq 0xdd18(%rip), %rsi      # 0x264e8
movl $0x1, %edx
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x102b0
movl 0xc168(%rbx), %eax
cmpl $0xa, %eax
movl $0xa, %edx
cmovbl %eax, %edx
leaq 0xd800(%rip), %rsi      # 0x25ffa
movq %rbx, %rdi
callq 0x102b0
testl %eax, %eax
je 0x18812
movl 0x1f274(%rbx), %eax
popq %rbx
popq %r14
popq %r15
retq
movl 0x4(%rbx), %eax
jmp 0x18760
// File: /workspace/github_c_makefile_star2_O3/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: soap_unlink
SOAP_FMAC2
soap_unlink(struct soap *soap, const void *p)
{ register char **q;
  register struct soap_clist **cp;
  if (!soap || !p)
    return;
  for (q = (char**)&soap->alist; *q; q = *(char***)q)
  { if (p == (void*)(*q - *(size_t*)(*q + sizeof(void*))))
    { *q = **(char***)q;
      DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Unlinked data %p\n", p));
#ifdef SOAP_MEM_DEBUG
      soap_track_unlink(soap, p);
#endif
      return;
    }
  }
  for (cp = &soap->clist; *cp; cp = &(*cp)->next)
  { if (p == (*cp)->ptr)
    { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Unlinked class instance %p\n", p));
      q = (char**)*cp;
      *cp = (*cp)->next;
      SOAP_FREE(soap, q);
      return;
    }
  }
}

// Assembly:
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0x18c13
leaq 0xa0(%rdi), %rax
movq %rax, %rcx
movq (%rax), %rax
testq %rax, %rax
je 0x18c14
movq %rax, %rdx
subq 0x8(%rax), %rdx
cmpq %rsi, %rdx
jne 0x18bf6
movq (%rax), %rax
movq %rax, (%rcx)
retq
addq $0x98, %rdi
movq %rdi, %rax
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x18c13
cmpq %rsi, 0x8(%rdi)
jne 0x18c1b
movq (%rdi), %rcx
movq %rcx, (%rax)
jmp 0x3030
// File: /workspace/github_c_makefile_star2_O3/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: soap_end
SOAP_FMAC2
soap_end(struct soap *soap)
{ if (soap_check_state(soap))
    return;
  soap_free_temp(soap);
  soap_dealloc(soap, NULL);
  while (soap->clist)
  { register struct soap_clist *cp = soap->clist->next;
    SOAP_FREE(soap, soap->clist);
    soap->clist = cp;
  }
  soap_closesock(soap);
#ifdef SOAP_DEBUG
  soap_close_logfiles(soap);
#endif
#ifdef PALM
  palmNetLibClose();
#endif
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x1a863
movq %rdi, %rbx
movl (%rdi), %eax
decl %eax
cmpw $0x1, %ax
ja 0x1a863
movq %rbx, %rdi
callq 0x152b9
movq %rbx, %rdi
xorl %esi, %esi
callq 0x189b0
movq 0x98(%rbx), %rdi
testq %rdi, %rdi
je 0x1a854
movq (%rdi), %r14
callq 0x3030
movq %r14, 0x98(%rbx)
movq %r14, %rdi
testq %r14, %r14
jne 0x1a83d
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x14730
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: soap_tagsearch
SOAP_FMAC1
const char *
SOAP_FMAC2
soap_tagsearch(const char *big, const char *little)
{ if (little)
  { register size_t n = strlen(little);
    register const char *s = big;
    while (s)
    { register const char *t = s;
      register size_t i;
      for (i = 0; i < n; i++, t++)
      { if (*t != little[i])
          break;
      }
      if (*t == '\0' || *t == ' ')
      { if (i == n || (i && little[i-1] == ':'))
          return s;
      }
      s = strchr(t, ' ');
      if (s)
        s++;
    }
  }
  return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
testq %rsi, %rsi
je 0x1a8df
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x3110
testq %rbx, %rbx
je 0x1a8df
movq %rax, %r15
movq %rbx, %rdi
testq %r15, %r15
je 0x1a8aa
leaq (%rbx,%r15), %rdi
xorl %eax, %eax
movb (%rbx,%rax), %cl
cmpb (%r14,%rax), %cl
jne 0x1a8b1
incq %rax
cmpq %rax, %r15
jne 0x1a899
movb (%rdi), %cl
movq %r15, %rax
jmp 0x1a8b5
leaq (%rbx,%rax), %rdi
testb $-0x21, %cl
jne 0x1a8cc
cmpq %r15, %rax
je 0x1a8e1
testq %rax, %rax
je 0x1a8cc
cmpb $0x3a, -0x1(%r14,%rax)
je 0x1a8e1
movl $0x20, %esi
callq 0x3130
leaq 0x1(%rax), %rbx
testq %rax, %rax
jne 0x1a88b
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: soap_element_nil
SOAP_FMAC2
soap_element_nil(struct soap *soap, const char *tag)
{ if (soap_element(soap, tag, -1, NULL)
   || soap_attribute(soap, "xsi:nil", "true"))
    return soap->error;
  return soap_element_start_end_out(soap, tag);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
xorl %ecx, %ecx
callq 0x1a93a
testl %eax, %eax
jne 0x1bce5
leaq 0xa82d(%rip), %rsi      # 0x264ff
leaq 0xa79b(%rip), %rdx      # 0x26474
movq %r14, %rdi
callq 0x1b01f
testl %eax, %eax
je 0x1bcf4
movl 0x1f274(%r14), %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1b598
// File: /workspace/github_c_makefile_star2_O3/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: soap_attr_value
SOAP_FMAC1
const char *
SOAP_FMAC2
soap_attr_value(struct soap *soap, const char *name, int flag)
{ register struct soap_attribute *tp;
  if (*name == '-')
    return SOAP_STR_EOS;
  for (tp = soap->attributes; tp; tp = tp->next)
  { if (tp->visible && !soap_match_tag(soap, tp->name, name))
      break;
  }
  if (tp)
  { if (flag == 2 && (soap->mode & SOAP_XML_STRICT))
      soap->error = SOAP_PROHIBITED;
    else
      return tp->value;
  }
  else if (flag == 1 && (soap->mode & SOAP_XML_STRICT))
    soap->error = SOAP_REQUIRED;
  else
    soap->error = SOAP_OK;
  return NULL;
}

// Assembly:
cmpb $0x2d, (%rsi)
jne 0x1bf81
leaq 0xa041(%rip), %rax      # 0x25fc1
retq
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebp
movq %rdi, %rbx
movq 0x1e5e0(%rdi), %r15
testq %r15, %r15
je 0x1bfbf
movq %rsi, %r14
cmpw $0x0, 0x28(%r15)
je 0x1bfb7
leaq 0x2a(%r15), %rsi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x140fd
testl %eax, %eax
je 0x1bfd6
movq (%r15), %r15
testq %r15, %r15
jne 0x1bf9c
cmpl $0x1, %ebp
jne 0x1bfca
testb $0x10, 0x5(%rbx)
jne 0x1bfe7
movl $0x0, 0x1f274(%rbx)
jmp 0x1bffd
cmpl $0x2, %ebp
jne 0x1bfe1
testb $0x10, 0x5(%rbx)
jne 0x1bff3
movq 0x10(%r15), %rax
jmp 0x1bfff
movl $0x2a, 0x1f274(%rbx)
jmp 0x1bffd
movl $0x2b, 0x1f274(%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: soap_getattrval
static int
soap_getattrval(struct soap *soap, char *s, size_t n, soap_wchar d)
{ register size_t i;
  for (i = 0; i < n; i++)
  { register soap_wchar c = soap_get(soap);
    switch (c)
    {
    case SOAP_TT:
      *s++ = '<';
      soap_unget(soap, '/');
      break;
    case SOAP_LT:
      *s++ = '<';
      break;
    case SOAP_GT:
      if (d == ' ')
      { soap_unget(soap, c);
        *s = '\0';
        return SOAP_OK;
      }
      *s++ = '>';
      break;
    case SOAP_QT:
      if (c == d)
      { *s = '\0';
        return SOAP_OK;
      }
      *s++ = '"';
      break;
    case SOAP_AP:
      if (c == d)
      { *s = '\0';
        return SOAP_OK;
      }
      *s++ = '\'';
      break;
    case '\t':
    case '\n':
    case '\r':
    case ' ':
    case '/':
      if (d == ' ')
      { soap_unget(soap, c);
        *s = '\0';
        return SOAP_OK;
      }
    default:
      if ((int)c == EOF)
        return soap->error = SOAP_EOF;
      *s++ = (char)c;
    }
  }
  return soap->error = SOAP_EOM;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
testq %rdx, %rdx
je 0x1c0b7
movl %ecx, %ebp
movq %rdx, %r15
movq %rsi, %rbx
xorl %r12d, %r12d
leaq 0x9d5d(%rip), %r13      # 0x25da0
movq %r14, %rdi
callq 0x10f85
leal 0x6(%rax), %ecx
cmpl $0x13, %ecx
ja 0x1c069
movslq (%r13,%rcx,4), %rcx
addq %r13, %rcx
jmpq *%rcx
cmpl $-0x6, %ebp
je 0x1c0d0
movb $0x27, (%rbx,%r12)
jmp 0x1c07c
cmpl $0x20, %eax
je 0x1c073
cmpl $0x2f, %eax
jne 0x1c078
cmpl $0x20, %ebp
je 0x1c0c9
movb %al, (%rbx,%r12)
incq %r12
cmpq %r12, %r15
jne 0x1c043
jmp 0x1c0b7
movb $0x3c, (%rbx,%r12)
jmp 0x1c07c
cmpl $-0x5, %ebp
je 0x1c0d0
movb $0x22, (%rbx,%r12)
jmp 0x1c07c
cmpl $0x20, %ebp
je 0x1c0f8
movb $0x3e, (%rbx,%r12)
jmp 0x1c07c
movb $0x3c, (%rbx,%r12)
movl $0x2f, 0xc160(%r14)
jmp 0x1c07c
movl $0x14, 0x1f274(%r14)
movl $0x14, %eax
jmp 0x1c0d7
movl %eax, 0xc160(%r14)
movb $0x0, (%rbx,%r12)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0xffffffff, 0x1f274(%r14) # imm = 0xFFFFFFFF
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x1c0d7
movl $0xfffffffc, 0xc160(%r14) # imm = 0xFFFFFFFC
jmp 0x1c0d0
// File: /workspace/github_c_makefile_star2_O3/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: soap_revert
SOAP_FMAC2
soap_revert(struct soap *soap)
{ if (!soap->peeked)
  { soap->peeked = 1;
    if (soap->body)
      soap->level--;
  }
  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Reverting to last element '%s' (level=%u)\n", soap->tag, soap->level));
}

// Assembly:
cmpw $0x0, 0x1e5f6(%rdi)
je 0x1c13f
retq
movw $0x1, 0x1e5f6(%rdi)
cmpw $0x0, 0xc166(%rdi)
je 0x1c13e
decl 0xc168(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O3/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: soap_outint
SOAP_FMAC2
soap_outint(struct soap *soap, const char *tag, int id, const int *p, const char *type, int n)
{ if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, p, n), type)
   || soap_string_out(soap, soap_long2s(soap, (long)*p), 0))
    return soap->error;
  return soap_element_end_out(soap, tag);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r12
movq %rcx, %r15
movq %rsi, %rbx
movq %rdi, %r14
movl %edx, %esi
movq %rcx, %rdx
movl %r9d, %ecx
callq 0x1817e
movq %r14, %rdi
movq %rbx, %rsi
movl %eax, %edx
movq %r12, %rcx
callq 0x186a5
testl %eax, %eax
jne 0x1d425
movslq (%r15), %rdx
leaq 0x1c598(%r14), %r15
leaq 0x91ec(%rip), %rsi      # 0x265f6
movq %r15, %rdi
xorl %eax, %eax
callq 0x3300
movq %r14, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x1b965
testl %eax, %eax
je 0x1d438
movl 0x1f274(%r14), %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x18722
// File: /workspace/github_c_makefile_star2_O3/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: soap_s2int
SOAP_FMAC2
soap_s2int(struct soap *soap, const char *s, int *p)
{ if (s)
  { long n;
    char *r;
#ifndef WITH_NOIO
#ifndef WITH_LEAN
    soap_reset_errno;
#endif
#endif
    n = soap_strtol(s, &r, 10);
    if (s == r || *r
#ifndef WITH_LEAN
     || n != (int)n
#endif
#ifndef WITH_NOIO
#ifndef WITH_LEAN
     || soap_errno == SOAP_ERANGE
#endif
#endif
    )
      soap->error = SOAP_TYPE;
    *p = (int)n;
  }
  return soap->error;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
testq %rsi, %rsi
je 0x1d4be
movq %rdx, %r14
movq %rsi, %r12
callq 0x3050
movq %rax, %r15
movl $0x0, (%rax)
leaq 0x8(%rsp), %r13
movq %r12, %rdi
movq %r13, %rsi
movl $0xa, %edx
callq 0x3210
movq (%r13), %rcx
cmpq %r12, %rcx
je 0x1d4b1
cmpb $0x0, (%rcx)
sete %cl
movslq %eax, %rdx
cmpq %rax, %rdx
sete %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0x1d4b1
cmpl $0x22, (%r15)
jne 0x1d4bb
movl $0x4, 0x1f274(%rbx)
movl %eax, (%r14)
movl 0x1f274(%rbx), %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: soap_inint
SOAP_FMAC1
int *
SOAP_FMAC2
soap_inint(struct soap *soap, const char *tag, int *p, const char *type, int t)
{ if (soap_element_begin_in(soap, tag, 0, NULL))
    return NULL;
#ifndef WITH_LEAN
  if (*soap->type
   && soap_match_tag(soap, soap->type, type)
   && soap_match_tag(soap, soap->type, ":int")
   && soap_match_tag(soap, soap->type, ":short")
   && soap_match_tag(soap, soap->type, ":byte"))
  { soap->error = SOAP_TYPE;
    soap_revert(soap);
    return NULL;
  }
#endif
  p = (int*)soap_id_enter(soap, soap->id, p, t, sizeof(int), 0, NULL, NULL, NULL);
  if (*soap->href)
    p = (int*)soap_id_forward(soap, soap->href, p, 0, t, 0, sizeof(int), 0, NULL);
  else if (p)
  { if (soap_s2int(soap, soap_value(soap), p))
      return NULL;
  }
  if (soap->body && soap_element_end_in(soap, tag))
    return NULL;
  return p;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r8d, %ebp
movq %rcx, %r13
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %rbx
xorl %r15d, %r15d
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x12e5d
testl %eax, %eax
jne 0x1d651
cmpb $0x0, 0x1d598(%rbx)
je 0x1d5a5
leaq 0x1d598(%rbx), %r15
movq %rbx, %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x140fd
testl %eax, %eax
je 0x1d5a5
leaq 0x801b(%rip), %rdx      # 0x2554b
movq %rbx, %rdi
movq %r15, %rsi
callq 0x140fd
testl %eax, %eax
je 0x1d5a5
leaq 0x90a9(%rip), %rdx      # 0x265ef
movq %rbx, %rdi
movq %r15, %rsi
callq 0x140fd
testl %eax, %eax
je 0x1d5a5
leaq 0x7fe6(%rip), %rdx      # 0x25542
movq %rbx, %rdi
movq %r15, %rsi
callq 0x140fd
testl %eax, %eax
je 0x1d5a5
movl $0x4, 0x1f274(%rbx)
cmpw $0x0, 0x1e5f6(%rbx)
jne 0x1d64e
movw $0x1, 0x1e5f6(%rbx)
cmpw $0x0, 0xc166(%rbx)
je 0x1d64e
decl 0xc168(%rbx)
jmp 0x1d64e
leaq 0x1cd98(%rbx), %rsi
xorps %xmm0, %xmm0
movups %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movl $0x4, %r8d
movq %rbx, %rdi
movq %r12, %rdx
movl %ebp, %ecx
xorl %r9d, %r9d
callq 0x18f76
movq %rax, %r15
cmpb $0x0, 0x1d198(%rbx)
je 0x1d62f
leaq 0x1d198(%rbx), %rsi
movq $0x0, 0x10(%rsp)
movl $0x0, 0x8(%rsp)
movq $0x4, (%rsp)
movq %rbx, %rdi
movq %r15, %rdx
xorl %ecx, %ecx
movl %ebp, %r8d
xorl %r9d, %r9d
callq 0x18e29
movq %rax, %r15
cmpw $0x0, 0xc166(%rbx)
je 0x1d651
movq %rbx, %rdi
movq %r14, %rsi
callq 0x13038
testl %eax, %eax
jne 0x1d64e
jmp 0x1d651
testq %r15, %r15
je 0x1d663
movq %rbx, %rdi
callq 0x1d668
movq %rbx, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0x1d44e
testl %eax, %eax
je 0x1d614
xorl %r15d, %r15d
movq %r15, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %r15d, %r15d
jmp 0x1d614
// File: /workspace/github_c_makefile_star2_O3/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: soap_value
SOAP_FMAC1
const char *
SOAP_FMAC2
soap_value(struct soap *soap)
{ register size_t i;
  register soap_wchar c = 0;
  register char *s = soap->tmpbuf;
  if (!soap->body)
    return SOAP_STR_EOS;
  do c = soap_get(soap);
  while (soap_blank(c));
  for (i = 0; i < sizeof(soap->tmpbuf) - 1; i++)
  { if (c == SOAP_TT || c == SOAP_LT || (int)c == EOF)
      break;
    *s++ = (char)c;
    c = soap_get(soap);
  }
  for (s--; i > 0; i--, s--)
  { if (!soap_blank((soap_wchar)*s))
      break;
  }
  s[1] = '\0';
  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Element content value='%s'\n", soap->tmpbuf));
  if (c == SOAP_TT || c == SOAP_LT || (int)c == EOF)
    soap_unget(soap, c);
  else if (soap->mode & SOAP_XML_STRICT)
  { soap->error = SOAP_LENGTH;
    return NULL;
  }
#ifdef WITH_DOM
  if ((soap->mode & SOAP_XML_DOM) && soap->dom)
    soap->dom->data = soap_strdup(soap, soap->tmpbuf);
#endif
  return soap->tmpbuf; /* return non-null pointer */
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
cmpw $0x0, 0xc166(%rdi)
je 0x1d69b
movq %rdi, %r14
leaq 0x1c598(%rdi), %rbx
movq %r14, %rdi
callq 0x10f85
cmpl $0x21, %eax
jb 0x1d684
cmpl $-0x4, %eax
jbe 0x1d6a4
movb $0x0, (%rbx)
jmp 0x1d6f1
leaq 0x891f(%rip), %rbx      # 0x25fc1
jmp 0x1d6f8
xorl %ecx, %ecx
movq %rbx, %r15
movq %rcx, %r12
movb %al, (%r15)
incq %r15
movq %r14, %rdi
callq 0x10f85
leaq 0x1(%r12), %rcx
cmpq $0x3fd, %r12            # imm = 0x3FD
ja 0x1d6cd
cmpl $-0x4, %eax
jbe 0x1d6a9
movq %r15, %rdx
subq %rcx, %rdx
negq %rcx
cmpb $0x21, -0x1(%r15)
jae 0x1d6e8
decq %r15
incq %rcx
jne 0x1d6d6
movq %rdx, %r15
movb $0x0, (%r15)
cmpl $-0x3, %eax
jb 0x1d707
movl %eax, 0xc160(%r14)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
testb $0x10, 0x5(%r14)
je 0x1d6f8
movl $0x2d, 0x1f274(%r14)
xorl %ebx, %ebx
jmp 0x1d6f8
// File: /workspace/github_c_makefile_star2_O3/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: soap_outlong
SOAP_FMAC2
soap_outlong(struct soap *soap, const char *tag, int id, const long *p, const char *type, int n)
{ if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, p, n), type)
   || soap_string_out(soap, soap_long2s(soap, *p), 0))
    return soap->error;
  return soap_element_end_out(soap, tag);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r12
movq %rcx, %r15
movq %rsi, %rbx
movq %rdi, %r14
movl %edx, %esi
movq %rcx, %rdx
movl %r9d, %ecx
callq 0x1817e
movq %r14, %rdi
movq %rbx, %rsi
movl %eax, %edx
movq %r12, %rcx
callq 0x186a5
testl %eax, %eax
jne 0x1d77e
movq (%r15), %rdx
leaq 0x1c598(%r14), %r15
leaq 0x8e93(%rip), %rsi      # 0x265f6
movq %r15, %rdi
xorl %eax, %eax
callq 0x3300
movq %r14, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x1b965
testl %eax, %eax
je 0x1d791
movl 0x1f274(%r14), %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x18722
// File: /workspace/github_c_makefile_star2_O3/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: soap_s2long
SOAP_FMAC2
soap_s2long(struct soap *soap, const char *s, long *p)
{ if (s)
  { char *r;
#ifndef WITH_NOIO
#ifndef WITH_LEAN
    soap_reset_errno;
#endif
#endif
    *p = soap_strtol(s, &r, 10);
    if (s == r || *r
#ifndef WITH_NOIO
#ifndef WITH_LEAN
     || soap_errno == SOAP_ERANGE
#endif
#endif
    )
      soap->error = SOAP_TYPE;
  }
  return soap->error;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
testq %rsi, %rsi
je 0x1d807
movq %rdx, %r12
movq %rsi, %r15
callq 0x3050
movq %rax, %r14
movl $0x0, (%rax)
leaq 0x8(%rsp), %r13
movq %r15, %rdi
movq %r13, %rsi
movl $0xa, %edx
callq 0x3210
movq %rax, (%r12)
movq (%r13), %rax
cmpq %r15, %rax
je 0x1d7fd
cmpb $0x0, (%rax)
jne 0x1d7fd
cmpl $0x22, (%r14)
jne 0x1d807
movl $0x4, 0x1f274(%rbx)
movl 0x1f274(%rbx), %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: soap_inlong
SOAP_FMAC1
long *
SOAP_FMAC2
soap_inlong(struct soap *soap, const char *tag, long *p, const char *type, int t)
{ if (soap_element_begin_in(soap, tag, 0, NULL))
    return NULL;
#ifndef WITH_LEAN
  if (*soap->type
   && soap_match_tag(soap, soap->type, type)
   && soap_match_tag(soap, soap->type, ":int")
   && soap_match_tag(soap, soap->type, ":short")
   && soap_match_tag(soap, soap->type, ":byte"))
  { soap->error = SOAP_TYPE;
    soap_revert(soap);
    return NULL;
  }
#endif
  p = (long*)soap_id_enter(soap, soap->id, p, t, sizeof(long), 0, NULL, NULL, NULL);
  if (*soap->href)
    p = (long*)soap_id_forward(soap, soap->href, p, 0, t, 0, sizeof(long), 0, NULL);
  else if (p)
  { if (soap_s2long(soap, soap_value(soap), p))
      return NULL;
  }
  if (soap->body && soap_element_end_in(soap, tag))
    return NULL;
  return p;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r8d, %ebp
movq %rcx, %r13
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %rbx
xorl %r15d, %r15d
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x12e5d
testl %eax, %eax
jne 0x1d99a
cmpb $0x0, 0x1d598(%rbx)
je 0x1d8ee
leaq 0x1d598(%rbx), %r15
movq %rbx, %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x140fd
testl %eax, %eax
je 0x1d8ee
leaq 0x7cd2(%rip), %rdx      # 0x2554b
movq %rbx, %rdi
movq %r15, %rsi
callq 0x140fd
testl %eax, %eax
je 0x1d8ee
leaq 0x8d60(%rip), %rdx      # 0x265ef
movq %rbx, %rdi
movq %r15, %rsi
callq 0x140fd
testl %eax, %eax
je 0x1d8ee
leaq 0x7c9d(%rip), %rdx      # 0x25542
movq %rbx, %rdi
movq %r15, %rsi
callq 0x140fd
testl %eax, %eax
je 0x1d8ee
movl $0x4, 0x1f274(%rbx)
cmpw $0x0, 0x1e5f6(%rbx)
jne 0x1d997
movw $0x1, 0x1e5f6(%rbx)
cmpw $0x0, 0xc166(%rbx)
je 0x1d997
decl 0xc168(%rbx)
jmp 0x1d997
leaq 0x1cd98(%rbx), %rsi
xorps %xmm0, %xmm0
movups %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movl $0x8, %r8d
movq %rbx, %rdi
movq %r12, %rdx
movl %ebp, %ecx
xorl %r9d, %r9d
callq 0x18f76
movq %rax, %r15
cmpb $0x0, 0x1d198(%rbx)
je 0x1d978
leaq 0x1d198(%rbx), %rsi
movq $0x0, 0x10(%rsp)
movl $0x0, 0x8(%rsp)
movq $0x8, (%rsp)
movq %rbx, %rdi
movq %r15, %rdx
xorl %ecx, %ecx
movl %ebp, %r8d
xorl %r9d, %r9d
callq 0x18e29
movq %rax, %r15
cmpw $0x0, 0xc166(%rbx)
je 0x1d99a
movq %rbx, %rdi
movq %r14, %rsi
callq 0x13038
testl %eax, %eax
jne 0x1d997
jmp 0x1d99a
testq %r15, %r15
je 0x1d9ac
movq %rbx, %rdi
callq 0x1d668
movq %rbx, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0x1d7a7
testl %eax, %eax
je 0x1d95d
xorl %r15d, %r15d
movq %r15, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %r15d, %r15d
jmp 0x1d95d
// File: /workspace/github_c_makefile_star2_O3/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: soap_outbyte
SOAP_FMAC2
soap_outbyte(struct soap *soap, const char *tag, int id, const char *p, const char *type, int n)
{ if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, p, n), type)
   || soap_string_out(soap, soap_long2s(soap, (long)*p), 0))
    return soap->error;
  return soap_element_end_out(soap, tag);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r12
movq %rcx, %r15
movq %rsi, %rbx
movq %rdi, %r14
movl %edx, %esi
movq %rcx, %rdx
movl %r9d, %ecx
callq 0x1817e
movq %r14, %rdi
movq %rbx, %rsi
movl %eax, %edx
movq %r12, %rcx
callq 0x186a5
testl %eax, %eax
jne 0x1dd64
movsbq (%r15), %rdx
leaq 0x1c598(%r14), %r15
leaq 0x88ad(%rip), %rsi      # 0x265f6
movq %r15, %rdi
xorl %eax, %eax
callq 0x3300
movq %r14, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x1b965
testl %eax, %eax
je 0x1dd77
movl 0x1f274(%r14), %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x18722
// File: /workspace/github_c_makefile_star2_O3/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: soap_s2byte
SOAP_FMAC2
soap_s2byte(struct soap *soap, const char *s, char *p)
{ if (s)
  { long n;
    char *r;
    n = soap_strtol(s, &r, 10);
    if (s == r || *r || n < -128 || n > 127)
      soap->error = SOAP_TYPE;
    *p = (char)n;
  }
  return soap->error;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
testq %rsi, %rsi
je 0x1dde3
movq %rdx, %r14
movq %rsi, %r15
movq %rsp, %r12
movq %rsi, %rdi
movq %r12, %rsi
movl $0xa, %edx
callq 0x3210
movq (%r12), %rcx
cmpq %r15, %rcx
je 0x1ddd6
cmpb $0x0, (%rcx)
setne %cl
movsbq %al, %rdx
cmpq %rax, %rdx
setne %dl
orb %cl, %dl
cmpb $0x1, %dl
jne 0x1dde0
movl $0x4, 0x1f274(%rbx)
movb %al, (%r14)
movl 0x1f274(%rbx), %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: soap_inbyte
SOAP_FMAC1
char *
SOAP_FMAC2
soap_inbyte(struct soap *soap, const char *tag, char *p, const char *type, int t)
{ if (soap_element_begin_in(soap, tag, 0, NULL))
    return NULL;
#ifndef WITH_LEAN
  if (*soap->type
   && soap_match_tag(soap, soap->type, type)
   && soap_match_tag(soap, soap->type, ":byte"))
  { soap->error = SOAP_TYPE;
    soap_revert(soap);
    return NULL;
  }
#endif
  p = (char*)soap_id_enter(soap, soap->id, p, t, sizeof(char), 0, NULL, NULL, NULL);
  if (*soap->href)
    p = (char*)soap_id_forward(soap, soap->href, p, 0, t, 0, sizeof(char), 0, NULL);
  else if (p)
  { if (soap_s2byte(soap, soap_value(soap), p))
      return NULL;
  }
  if (soap->body && soap_element_end_in(soap, tag))
    return NULL;
  return p;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r8d, %ebp
movq %rcx, %r13
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %rbx
xorl %r15d, %r15d
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x12e5d
testl %eax, %eax
jne 0x1df44
cmpb $0x0, 0x1d598(%rbx)
je 0x1de98
leaq 0x1d598(%rbx), %r15
movq %rbx, %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x140fd
testl %eax, %eax
je 0x1de98
leaq 0x76f3(%rip), %rdx      # 0x25542
movq %rbx, %rdi
movq %r15, %rsi
callq 0x140fd
testl %eax, %eax
je 0x1de98
movl $0x4, 0x1f274(%rbx)
cmpw $0x0, 0x1e5f6(%rbx)
jne 0x1df41
movw $0x1, 0x1e5f6(%rbx)
cmpw $0x0, 0xc166(%rbx)
je 0x1df41
decl 0xc168(%rbx)
jmp 0x1df41
leaq 0x1cd98(%rbx), %rsi
xorps %xmm0, %xmm0
movups %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movl $0x1, %r8d
movq %rbx, %rdi
movq %r12, %rdx
movl %ebp, %ecx
xorl %r9d, %r9d
callq 0x18f76
movq %rax, %r15
cmpb $0x0, 0x1d198(%rbx)
je 0x1df22
leaq 0x1d198(%rbx), %rsi
movq $0x0, 0x10(%rsp)
movl $0x0, 0x8(%rsp)
movq $0x1, (%rsp)
movq %rbx, %rdi
movq %r15, %rdx
xorl %ecx, %ecx
movl %ebp, %r8d
xorl %r9d, %r9d
callq 0x18e29
movq %rax, %r15
cmpw $0x0, 0xc166(%rbx)
je 0x1df44
movq %rbx, %rdi
movq %r14, %rsi
callq 0x13038
testl %eax, %eax
jne 0x1df41
jmp 0x1df44
testq %r15, %r15
je 0x1df56
movq %rbx, %rdi
callq 0x1d668
movq %rbx, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0x1dd8d
testl %eax, %eax
je 0x1df07
xorl %r15d, %r15d
movq %r15, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %r15d, %r15d
jmp 0x1df07
// File: /workspace/github_c_makefile_star2_O3/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: soap_outshort
SOAP_FMAC2
soap_outshort(struct soap *soap, const char *tag, int id, const short *p, const char *type, int n)
{ if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, p, n), type)
   || soap_string_out(soap, soap_long2s(soap, (long)*p), 0))
    return soap->error;
  return soap_element_end_out(soap, tag);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r12
movq %rcx, %r15
movq %rsi, %rbx
movq %rdi, %r14
movl %edx, %esi
movq %rcx, %rdx
movl %r9d, %ecx
callq 0x1817e
movq %r14, %rdi
movq %rbx, %rsi
movl %eax, %edx
movq %r12, %rcx
callq 0x186a5
testl %eax, %eax
jne 0x1dfde
movswq (%r15), %rdx
leaq 0x1c598(%r14), %r15
leaq 0x8633(%rip), %rsi      # 0x265f6
movq %r15, %rdi
xorl %eax, %eax
callq 0x3300
movq %r14, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x1b965
testl %eax, %eax
je 0x1dff1
movl 0x1f274(%r14), %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x18722
// File: /workspace/github_c_makefile_star2_O3/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: soap_inshort
SOAP_FMAC1
short *
SOAP_FMAC2
soap_inshort(struct soap *soap, const char *tag, short *p, const char *type, int t)
{ if (soap_element_begin_in(soap, tag, 0, NULL))
    return NULL;
#ifndef WITH_LEAN
  if (*soap->type
   && soap_match_tag(soap, soap->type, type)
   && soap_match_tag(soap, soap->type, ":short")
   && soap_match_tag(soap, soap->type, ":byte"))
  { soap->error = SOAP_TYPE;
    soap_revert(soap);
    return NULL;
  }
#endif
  p = (short*)soap_id_enter(soap, soap->id, p, t, sizeof(short), 0, NULL, NULL, NULL);
  if (*soap->href)
    p = (short*)soap_id_forward(soap, soap->href, p, 0, t, 0, sizeof(short), 0, NULL);
  else if (p)
  { if (soap_s2short(soap, soap_value(soap), p))
      return NULL;
  }
  if (soap->body && soap_element_end_in(soap, tag))
    return NULL;
  return p;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r8d, %ebp
movq %rcx, %r13
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %rbx
xorl %r15d, %r15d
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x12e5d
testl %eax, %eax
jne 0x1e1d5
cmpb $0x0, 0x1d598(%rbx)
je 0x1e129
leaq 0x1d598(%rbx), %r15
movq %rbx, %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x140fd
testl %eax, %eax
je 0x1e129
leaq 0x8525(%rip), %rdx      # 0x265ef
movq %rbx, %rdi
movq %r15, %rsi
callq 0x140fd
testl %eax, %eax
je 0x1e129
leaq 0x7462(%rip), %rdx      # 0x25542
movq %rbx, %rdi
movq %r15, %rsi
callq 0x140fd
testl %eax, %eax
je 0x1e129
movl $0x4, 0x1f274(%rbx)
cmpw $0x0, 0x1e5f6(%rbx)
jne 0x1e1d2
movw $0x1, 0x1e5f6(%rbx)
cmpw $0x0, 0xc166(%rbx)
je 0x1e1d2
decl 0xc168(%rbx)
jmp 0x1e1d2
leaq 0x1cd98(%rbx), %rsi
xorps %xmm0, %xmm0
movups %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movl $0x2, %r8d
movq %rbx, %rdi
movq %r12, %rdx
movl %ebp, %ecx
xorl %r9d, %r9d
callq 0x18f76
movq %rax, %r15
cmpb $0x0, 0x1d198(%rbx)
je 0x1e1b3
leaq 0x1d198(%rbx), %rsi
movq $0x0, 0x10(%rsp)
movl $0x0, 0x8(%rsp)
movq $0x2, (%rsp)
movq %rbx, %rdi
movq %r15, %rdx
xorl %ecx, %ecx
movl %ebp, %r8d
xorl %r9d, %r9d
callq 0x18e29
movq %rax, %r15
cmpw $0x0, 0xc166(%rbx)
je 0x1e1d5
movq %rbx, %rdi
movq %r14, %rsi
callq 0x13038
testl %eax, %eax
jne 0x1e1d2
jmp 0x1e1d5
testq %r15, %r15
je 0x1e1e7
movq %rbx, %rdi
callq 0x1d668
movq %rbx, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0x1e007
testl %eax, %eax
je 0x1e198
xorl %r15d, %r15d
movq %r15, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %r15d, %r15d
jmp 0x1e198
// File: /workspace/github_c_makefile_star2_O3/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: soap_float2s
SOAP_FMAC1
const char*
SOAP_FMAC2
soap_float2s(struct soap *soap, float n)
{ char *s;
  if (soap_isnan((double)n))
    return "NaN";
  if (soap_ispinff(n))
    return "INF";
  if (soap_isninff(n))
    return "-INF";
  s = soap->tmpbuf;
#if defined(HAVE_SPRINTF_L)
  sprintf_l(s, soap->c_locale, soap->float_format, n);
#else
  sprintf(s, soap->float_format, n);
  s = strchr(s, ',');	/* convert decimal comma to DP */
  if (s)
    *s = '.';
#endif
  return soap->tmpbuf;
}

// Assembly:
pushq %rbx
ucomiss %xmm0, %xmm0
jp 0x1e258
movq %rdi, %rbx
xorps %xmm2, %xmm2
ucomiss %xmm2, %xmm0
movaps %xmm0, %xmm1
subss %xmm0, %xmm1
jbe 0x1e212
ucomiss %xmm1, %xmm1
jnp 0x1e212
leaq 0x844d(%rip), %rbx      # 0x2665d
jmp 0x1e253
ucomiss %xmm0, %xmm2
jbe 0x1e225
ucomiss %xmm1, %xmm1
jnp 0x1e225
leaq 0x8434(%rip), %rbx      # 0x26657
jmp 0x1e253
cvtss2sd %xmm0, %xmm0
movq 0x10(%rbx), %rsi
addq $0x1c598, %rbx          # imm = 0x1C598
movq %rbx, %rdi
movb $0x1, %al
callq 0x3300
movq %rbx, %rdi
movl $0x2c, %esi
callq 0x3130
testq %rax, %rax
je 0x1e253
movb $0x2e, (%rax)
movq %rbx, %rax
popq %rbx
retq
leaq 0x83f4(%rip), %rbx      # 0x26653
jmp 0x1e253
// File: /workspace/github_c_makefile_star2_O3/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: soap_outfloat
SOAP_FMAC2
soap_outfloat(struct soap *soap, const char *tag, int id, const float *p, const char *type, int n)
{ if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, p, n), type)
   || soap_string_out(soap, soap_float2s(soap, *p), 0))
    return soap->error;
  return soap_element_end_out(soap, tag);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r12
movq %rcx, %r15
movq %rsi, %rbx
movq %rdi, %r14
movl %edx, %esi
movq %rcx, %rdx
movl %r9d, %ecx
callq 0x1817e
movq %r14, %rdi
movq %rbx, %rsi
movl %eax, %edx
movq %r12, %rcx
callq 0x186a5
testl %eax, %eax
jne 0x1e2b4
movss (%r15), %xmm0
movq %r14, %rdi
callq 0x1e1ec
movq %r14, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x1b965
testl %eax, %eax
je 0x1e2c7
movl 0x1f274(%r14), %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x18722
// File: /workspace/github_c_makefile_star2_O3/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: soap_s2float
SOAP_FMAC2
soap_s2float(struct soap *soap, const char *s, float *p)
{ if (s)
  { if (!*s)
      return soap->error = SOAP_TYPE;
    if (!soap_tag_cmp(s, "INF"))
      *p = FLT_PINFTY;
    else if (!soap_tag_cmp(s, "+INF"))
      *p = FLT_PINFTY;
    else if (!soap_tag_cmp(s, "-INF"))
      *p = FLT_NINFTY;
    else if (!soap_tag_cmp(s, "NaN"))
      *p = FLT_NAN;
    else
    {
/* On some systems strtof requires -std=c99 or does not even link: so we try to use strtod first */
#if defined(HAVE_STRTOD_L)
      char *r;
      *p = (float)strtod_l(s, &r, soap->c_locale);
      if (*r)
#elif defined(HAVE_STRTOD)
      char *r;
      *p = (float)strtod(s, &r);
      if (*r)
#elif defined(HAVE_STRTOF_L)
      char *r;
      *p = strtof_l((char*)s, &r, soap->c_locale);
      if (*r)
#elif defined(HAVE_STRTOF)
      char *r;
      *p = strtof((char*)s, &r);
      if (*r)
#endif
      {
#if defined(HAVE_SSCANF_L) && !defined(HAVE_STRTOF_L) && !defined(HAVE_STRTOD_L)
        if (sscanf_l(s, soap->c_locale, "%g", p) != 1)
          soap->error = SOAP_TYPE;
#elif defined(HAVE_SSCANF)
        if (sscanf(s, "%g", p) != 1)
          soap->error = SOAP_TYPE;
#else
        soap->error = SOAP_TYPE;
#endif
      }
    }
  }
  return soap->error;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
testq %rsi, %rsi
je 0x1e3a0
movq %rsi, %r15
cmpb $0x0, (%rsi)
je 0x1e3a8
movq %rdx, %r14
leaq 0x8356(%rip), %rsi      # 0x2665d
movq %r15, %rdi
callq 0x10d19
testl %eax, %eax
je 0x1e399
leaq 0x833e(%rip), %rsi      # 0x2665c
movq %r15, %rdi
callq 0x10d19
testl %eax, %eax
je 0x1e399
leaq 0x8326(%rip), %rsi      # 0x26657
movq %r15, %rdi
callq 0x10d19
testl %eax, %eax
je 0x1e3c3
leaq 0x830b(%rip), %rsi      # 0x26653
movq %r15, %rdi
callq 0x10d19
testl %eax, %eax
je 0x1e3cc
movq %rsp, %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0x30a0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, (%r14)
movq (%r12), %rax
cmpb $0x0, (%rax)
je 0x1e3a0
leaq 0x82e6(%rip), %rsi      # 0x26661
movq %r15, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x3250
cmpl $0x1, %eax
je 0x1e3a0
movl $0x4, 0x1f274(%rbx)
jmp 0x1e3a0
movl $0x7f800000, (%r14)     # imm = 0x7F800000
movl 0x1f274(%rbx), %eax
jmp 0x1e3b7
movl $0x4, 0x1f274(%rbx)
movl $0x4, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movl $0xff800000, (%r14)     # imm = 0xFF800000
jmp 0x1e3a0
movl $0xffffffff, (%r14)     # imm = 0xFFFFFFFF
jmp 0x1e3a0