LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/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 %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
pushq $0x1
popq %rbx
testq %rsi, %rsi
je 0x16940
movq %rdi, %r15
testb $0x2, 0x6(%rdi)
jne 0x16940
movl %edx, %ebp
movq %rsi, %r14
movq %rsp, %rcx
movq %r15, %rdi
callq 0x163b7
testl %eax, %eax
je 0x16919
movq (%rsp), %rax
movb 0x20(%rax), %cl
testb %cl, %cl
jne 0x1693d
movb $0x2, 0x20(%rax)
movb $0x2, %cl
jmp 0x1693a
movq %rsp, %r9
movq %r15, %rdi
movq %r14, %rsi
xorl %edx, %edx
movl %ebp, %r8d
callq 0x16485
testl %eax, %eax
je 0x16940
movq (%rsp), %rax
movb $0x0, 0x20(%rax)
xorl %ecx, %ecx
movb %cl, 0x21(%rax)
movsbl %cl, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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
pushq $0x1
popq %rbx
testq %rsi, %rsi
je 0x169c3
movq %rdx, %r14
cmpq $0x0, (%rdx)
je 0x169c3
movl %r8d, %ebp
movq %rsi, %r15
movq %rdi, %r12
leaq 0x8(%rsp), %r9
movq %r14, %rdx
callq 0x16340
testl %eax, %eax
je 0x16998
movq 0x8(%rsp), %rax
movb 0x20(%rax), %cl
testb %cl, %cl
jne 0x169c0
movb $0x2, 0x20(%rax)
movb $0x2, %cl
jmp 0x169bd
leaq 0x8(%rsp), %r9
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
movl %ebp, %r8d
callq 0x16485
testl %eax, %eax
je 0x169c3
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_O2/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 0x16e2e
movq %rdi, %rbx
callq 0x18e4b
testl %eax, %eax
je 0x16e30
movl 0x1f274(%rbx), %eax
popq %rbx
retq
movq %rbx, %rdi
xorl %esi, %esi
popq %rbx
jmp 0x199df
// File: /workspace/github_c_makefile_star2_O2/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 0x16f63
movq %rsi, %r14
movq %rdi, %rbx
movl 0x4(%rdi), %eax
btl $0x10, %eax
jae 0x16ebb
movq %rbx, %rdi
callq 0x12f44
movl 0x4(%rbx), %eax
btl $0xd, %eax
jae 0x16ed3
cmpw $0x0, 0xc166(%rbx)
je 0x16f3b
andw $0x0, 0xc166(%rbx)
testw %ax, %ax
jns 0x16ef9
pushq $0x3a
popq %rsi
movq %r14, %rdi
callq 0x3130
testq %rax, %rax
je 0x16ef9
movq %rax, %r15
movq %rbx, %rdi
callq 0x12f44
incq %r15
movq %r15, %r14
leaq 0xc5ea(%rip), %rsi      # 0x234ea
pushq $0x2
popq %rdx
movq %rbx, %rdi
callq 0xf63c
testl %eax, %eax
jne 0x16f5d
movq %rbx, %rdi
movq %r14, %rsi
callq 0xf928
testl %eax, %eax
jne 0x16f5d
decl 0xc168(%rbx)
leaq 0xc5bd(%rip), %rsi      # 0x234e8
pushq $0x1
popq %rdx
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0xf63c
movl 0xc168(%rbx), %eax
cmpl $0xa, %eax
pushq $0xa
popq %rdx
cmovbl %eax, %edx
leaq 0xc0a9(%rip), %rsi      # 0x22ffa
movq %rbx, %rdi
callq 0xf63c
testl %eax, %eax
je 0x16f69
movl 0x1f274(%rbx), %eax
popq %rbx
popq %r14
popq %r15
retq
movl 0x4(%rbx), %eax
jmp 0x16ecb
// File: /workspace/github_c_makefile_star2_O2/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 0x172cb
leaq 0xa0(%rdi), %rax
movq %rax, %rcx
movq (%rax), %rax
testq %rax, %rax
je 0x172cc
movq %rax, %rdx
subq 0x8(%rax), %rdx
cmpq %rsi, %rdx
jne 0x172ae
movq (%rax), %rax
movq %rax, (%rcx)
retq
addq $0x98, %rdi
movq %rdi, %rax
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x172cb
cmpq %rsi, 0x8(%rdi)
jne 0x172d3
movq (%rdi), %rcx
movq %rcx, (%rax)
jmp 0x3030
// File: /workspace/github_c_makefile_star2_O2/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: soap_init_logs
static void
soap_init_logs(struct soap *soap)
{ int i;
  for (i = 0; i < SOAP_MAXLOGS; i++)
  { soap->logfile[i] = NULL;
    soap->fdebug[i] = NULL;
  }
}

// Assembly:
pushq $-0x18
popq %rax
testq %rax, %rax
je 0x18501
andq $0x0, 0x1f330(%rdi,%rax)
andq $0x0, 0x1f348(%rdi,%rax)
addq $0x8, %rax
jmp 0x184e4
retq
// File: /workspace/github_c_makefile_star2_O2/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: soap_init_pht
static void
soap_init_pht(struct soap *soap)
{ register int i;
  soap->pblk = NULL;
  soap->pidx = 0;
  for (i = 0; i < (int)SOAP_PTRHASH; i++)
    soap->pht[i] = NULL;
}

// Assembly:
andq $0x0, 0xbf20(%rdi)
andw $0x0, 0xbf28(%rdi)
xorl %eax, %eax
cmpq $0x1000, %rax           # imm = 0x1000
je 0x1864f
andq $0x0, 0x3f20(%rdi,%rax,8)
incq %rax
jmp 0x18639
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x18d64
movq %rdi, %rbx
movl (%rdi), %eax
decl %eax
cmpw $0x1, %ax
ja 0x18d64
movq %rbx, %rdi
callq 0x14029
movq %rbx, %rdi
xorl %esi, %esi
callq 0x17073
movq 0x98(%rbx), %rdi
testq %rdi, %rdi
je 0x18d6c
movq (%rdi), %r14
callq 0x3030
movq %r14, 0x98(%rbx)
movq %r14, %rdi
jmp 0x18d4b
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x13665
// File: /workspace/github_c_makefile_star2_O2/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 %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
testq %rsi, %rsi
je 0x18def
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x3110
movq %rax, %r15
pushq $0x20
popq %rbp
testq %rbx, %rbx
je 0x18def
leaq (%rbx,%r15), %rdi
xorl %eax, %eax
cmpq %rax, %r15
je 0x18db9
movb (%rbx,%rax), %cl
cmpb (%r14,%rax), %cl
jne 0x18dc0
incq %rax
jmp 0x18da6
movb (%rdi), %cl
movq %r15, %rax
jmp 0x18dc4
leaq (%rbx,%rax), %rdi
testb $-0x21, %cl
jne 0x18ddb
cmpq %r15, %rax
je 0x18df1
testq %rax, %rax
je 0x18ddb
cmpb $0x3a, -0x1(%r14,%rax)
je 0x18df1
movl %ebp, %esi
callq 0x3130
leaq 0x1(%rax), %rbx
testq %rax, %rax
cmoveq %rax, %rbx
jmp 0x18d9b
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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
pushq $-0x1
popq %rdx
xorl %ecx, %ecx
callq 0x18e4b
testl %eax, %eax
jne 0x1a0d6
leaq 0x943c(%rip), %rsi      # 0x234ff
leaq 0x93aa(%rip), %rdx      # 0x23474
movq %r14, %rdi
callq 0x194d4
testl %eax, %eax
je 0x1a0e5
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 0x199df
// File: /workspace/github_c_makefile_star2_O2/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 0x1a366
leaq 0x8c5c(%rip), %rax      # 0x22fc1
retq
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x1e5e0(%rdi), %r15
movq (%r15), %r15
testq %r15, %r15
je 0x1a3b0
cmpw $0x0, 0x28(%r15)
je 0x1a37c
leaq 0x2a(%r15), %rsi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x13169
testl %eax, %eax
jne 0x1a37c
cmpl $0x2, %ebp
jne 0x1a3aa
testb $0x10, 0x5(%rbx)
jne 0x1a3d0
movq 0x10(%r15), %rax
jmp 0x1a3dc
cmpl $0x1, %ebp
jne 0x1a3bb
testb $0x10, 0x5(%rbx)
jne 0x1a3c4
andl $0x0, 0x1f274(%rbx)
jmp 0x1a3da
movl $0x2a, 0x1f274(%rbx)
jmp 0x1a3da
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_O2/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
movl %ecx, %ebp
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r14
xorl %r12d, %r12d
leaq 0x898c(%rip), %r13      # 0x22da0
cmpq %r12, %r15
je 0x1a488
movq %r14, %rdi
callq 0x10248
leal 0x6(%rax), %ecx
cmpl $0x13, %ecx
ja 0x1a43f
movslq (%r13,%rcx,4), %rcx
addq %r13, %rcx
jmpq *%rcx
cmpl $-0x6, %ebp
je 0x1a49f
movb $0x27, (%rbx,%r12)
jmp 0x1a452
cmpl $0x20, %eax
je 0x1a449
cmpl $0x2f, %eax
jne 0x1a44e
cmpl $0x20, %ebp
je 0x1a498
movb %al, (%rbx,%r12)
incq %r12
jmp 0x1a414
movb $0x3c, (%rbx,%r12)
jmp 0x1a452
cmpl $-0x5, %ebp
je 0x1a49f
movb $0x22, (%rbx,%r12)
jmp 0x1a452
cmpl $0x20, %ebp
je 0x1a4c1
movb $0x3e, (%rbx,%r12)
jmp 0x1a452
movb $0x3c, (%rbx,%r12)
movl $0x2f, 0xc160(%r14)
jmp 0x1a452
movl $0x14, 0x1f274(%r14)
pushq $0x14
popq %rax
jmp 0x1a4a6
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
orl $-0x1, 0x1f274(%r14)
pushq $-0x1
jmp 0x1a495
movl $0xfffffffc, 0xc160(%r14) # imm = 0xFFFFFFFC
jmp 0x1a49f
// File: /workspace/github_c_makefile_star2_O2/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 0x1a4e5
retq
movw $0x1, 0x1e5f6(%rdi)
cmpw $0x0, 0xc166(%rdi)
je 0x1a4e4
decl 0xc168(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x169d2
movq %r14, %rdi
movq %rbx, %rsi
movl %eax, %edx
movq %r12, %rcx
callq 0x16e14
testl %eax, %eax
jne 0x1b6af
movslq (%r15), %rsi
movq %r14, %rdi
callq 0x1b63d
movq %r14, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x19d82
testl %eax, %eax
je 0x1b6c2
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 0x16e91
// File: /workspace/github_c_makefile_star2_O2/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 0x1b743
movq %rdx, %r14
movq %rsi, %r12
callq 0x3050
movq %rax, %r15
andl $0x0, (%rax)
leaq 0x8(%rsp), %r13
pushq $0xa
popq %rdx
movq %r12, %rdi
movq %r13, %rsi
callq 0x3210
movq (%r13), %rcx
cmpq %r12, %rcx
je 0x1b736
cmpb $0x0, (%rcx)
sete %cl
movslq %eax, %rdx
cmpq %rax, %rdx
sete %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0x1b736
cmpl $0x22, (%r15)
jne 0x1b740
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_O2/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 0x11fde
testl %eax, %eax
jne 0x1b8a4
cmpb $0x0, 0x1d598(%rbx)
je 0x1b803
leaq 0x1d598(%rbx), %r15
movq %rbx, %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x13169
testl %eax, %eax
je 0x1b803
leaq 0x6d9a(%rip), %rdx      # 0x2254b
movq %rbx, %rdi
movq %r15, %rsi
callq 0x13169
testl %eax, %eax
je 0x1b803
leaq 0x7e28(%rip), %rdx      # 0x235ef
movq %rbx, %rdi
movq %r15, %rsi
callq 0x13169
testl %eax, %eax
je 0x1b803
leaq 0x6d65(%rip), %rdx      # 0x22542
movq %rbx, %rdi
movq %r15, %rsi
callq 0x13169
testl %eax, %eax
je 0x1b803
movl $0x4, 0x1f274(%rbx)
movq %rbx, %rdi
callq 0x1a4da
jmp 0x1b8a1
leaq 0x1cd98(%rbx), %rsi
xorps %xmm0, %xmm0
movups %xmm0, (%rsp)
andq $0x0, 0x10(%rsp)
pushq $0x4
popq %r8
movq %rbx, %rdi
movq %r12, %rdx
movl %ebp, %ecx
xorl %r9d, %r9d
callq 0x17600
movq %rax, %r15
cmpb $0x0, 0x1d198(%rbx)
je 0x1b882
leaq 0x1d198(%rbx), %rsi
andq $0x0, 0x10(%rsp)
andl $0x0, 0x8(%rsp)
movq $0x4, (%rsp)
movq %rbx, %rdi
movq %r15, %rdx
xorl %ecx, %ecx
movl %ebp, %r8d
xorl %r9d, %r9d
callq 0x174b8
movq %rax, %r15
cmpw $0x0, 0xc166(%rbx)
je 0x1b8a4
movq %rbx, %rdi
movq %r14, %rsi
callq 0x12190
testl %eax, %eax
jne 0x1b8a1
jmp 0x1b8a4
testq %r15, %r15
je 0x1b8b6
movq %rbx, %rdi
callq 0x1b8bb
movq %rbx, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0x1b6d8
testl %eax, %eax
je 0x1b867
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 0x1b867
// File: /workspace/github_c_makefile_star2_O2/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 0x1b931
movq %rdi, %r14
leaq 0x1c598(%rdi), %rbx
movq %r14, %rdi
callq 0x10248
cmpl $0x21, %eax
jb 0x1b8d7
leaq 0x1c599(%r14), %r12
xorl %r15d, %r15d
cmpq $0x3fe, %r15            # imm = 0x3FE
ja 0x1b911
cmpl $-0x3, %eax
jae 0x1b911
movb %al, 0x1c598(%r14,%r15)
movq %r14, %rdi
callq 0x10248
incq %r15
jmp 0x1b8ee
addq %r15, %r12
negq %r15
testq %r15, %r15
je 0x1b93a
incq %r15
leaq -0x1(%r12), %rcx
cmpb $0x21, -0x2(%r12)
movq %rcx, %r12
jb 0x1b917
jmp 0x1b93d
leaq 0x7689(%rip), %rbx      # 0x22fc1
jmp 0x1b962
movq %rbx, %rcx
movb $0x0, (%rcx)
cmpl $-0x3, %eax
jb 0x1b94e
movl %eax, 0xc160(%r14)
jmp 0x1b962
testb $0x10, 0x5(%r14)
je 0x1b962
movl $0x2d, 0x1f274(%r14)
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x169d2
movq %r14, %rdi
movq %rbx, %rsi
movl %eax, %edx
movq %r12, %rcx
callq 0x16e14
testl %eax, %eax
jne 0x1b9c2
movq (%r15), %rsi
movq %r14, %rdi
callq 0x1b63d
movq %r14, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x19d82
testl %eax, %eax
je 0x1b9d5
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 0x16e91
// File: /workspace/github_c_makefile_star2_O2/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 0x1ba46
movq %rdx, %r12
movq %rsi, %r15
callq 0x3050
movq %rax, %r14
andl $0x0, (%rax)
leaq 0x8(%rsp), %r13
pushq $0xa
popq %rdx
movq %r15, %rdi
movq %r13, %rsi
callq 0x3210
movq %rax, (%r12)
movq (%r13), %rax
cmpq %r15, %rax
je 0x1ba3c
cmpb $0x0, (%rax)
jne 0x1ba3c
cmpl $0x22, (%r14)
jne 0x1ba46
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_O2/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 0x11fde
testl %eax, %eax
jne 0x1bba7
cmpb $0x0, 0x1d598(%rbx)
je 0x1bb06
leaq 0x1d598(%rbx), %r15
movq %rbx, %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x13169
testl %eax, %eax
je 0x1bb06
leaq 0x6a97(%rip), %rdx      # 0x2254b
movq %rbx, %rdi
movq %r15, %rsi
callq 0x13169
testl %eax, %eax
je 0x1bb06
leaq 0x7b25(%rip), %rdx      # 0x235ef
movq %rbx, %rdi
movq %r15, %rsi
callq 0x13169
testl %eax, %eax
je 0x1bb06
leaq 0x6a62(%rip), %rdx      # 0x22542
movq %rbx, %rdi
movq %r15, %rsi
callq 0x13169
testl %eax, %eax
je 0x1bb06
movl $0x4, 0x1f274(%rbx)
movq %rbx, %rdi
callq 0x1a4da
jmp 0x1bba4
leaq 0x1cd98(%rbx), %rsi
xorps %xmm0, %xmm0
movups %xmm0, (%rsp)
andq $0x0, 0x10(%rsp)
pushq $0x8
popq %r8
movq %rbx, %rdi
movq %r12, %rdx
movl %ebp, %ecx
xorl %r9d, %r9d
callq 0x17600
movq %rax, %r15
cmpb $0x0, 0x1d198(%rbx)
je 0x1bb85
leaq 0x1d198(%rbx), %rsi
andq $0x0, 0x10(%rsp)
andl $0x0, 0x8(%rsp)
movq $0x8, (%rsp)
movq %rbx, %rdi
movq %r15, %rdx
xorl %ecx, %ecx
movl %ebp, %r8d
xorl %r9d, %r9d
callq 0x174b8
movq %rax, %r15
cmpw $0x0, 0xc166(%rbx)
je 0x1bba7
movq %rbx, %rdi
movq %r14, %rsi
callq 0x12190
testl %eax, %eax
jne 0x1bba4
jmp 0x1bba7
testq %r15, %r15
je 0x1bbb9
movq %rbx, %rdi
callq 0x1b8bb
movq %rbx, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0x1b9eb
testl %eax, %eax
je 0x1bb6a
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 0x1bb6a
// File: /workspace/github_c_makefile_star2_O2/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: soap_outLONG64
SOAP_FMAC2
soap_outLONG64(struct soap *soap, const char *tag, int id, const LONG64 *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_LONG642s(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 0x169d2
movq %r14, %rdi
movq %rbx, %rsi
movl %eax, %edx
movq %r12, %rcx
callq 0x16e14
testl %eax, %eax
jne 0x1bc30
movq (%r15), %rsi
movq %r14, %rdi
callq 0x1bbbe
movq %r14, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x19d82
testl %eax, %eax
je 0x1bc43
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 0x16e91
// File: /workspace/github_c_makefile_star2_O2/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 0x169d2
movq %r14, %rdi
movq %rbx, %rsi
movl %eax, %edx
movq %r12, %rcx
callq 0x16e14
testl %eax, %eax
jne 0x1bee7
movsbq (%r15), %rsi
movq %r14, %rdi
callq 0x1b63d
movq %r14, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x19d82
testl %eax, %eax
je 0x1befa
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 0x16e91
// File: /workspace/github_c_makefile_star2_O2/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 0x1bf64
movq %rdx, %r14
movq %rsi, %r15
movq %rsp, %r12
pushq $0xa
popq %rdx
movq %rsi, %rdi
movq %r12, %rsi
callq 0x3210
movq (%r12), %rcx
cmpq %r15, %rcx
je 0x1bf57
cmpb $0x0, (%rcx)
setne %cl
movsbq %al, %rdx
cmpq %rax, %rdx
setne %dl
orb %cl, %dl
cmpb $0x1, %dl
jne 0x1bf61
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_O2/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 0x11fde
testl %eax, %eax
jne 0x1c097
cmpb $0x0, 0x1d598(%rbx)
je 0x1bff6
leaq 0x1d598(%rbx), %r15
movq %rbx, %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x13169
testl %eax, %eax
je 0x1bff6
leaq 0x6572(%rip), %rdx      # 0x22542
movq %rbx, %rdi
movq %r15, %rsi
callq 0x13169
testl %eax, %eax
je 0x1bff6
movl $0x4, 0x1f274(%rbx)
movq %rbx, %rdi
callq 0x1a4da
jmp 0x1c094
leaq 0x1cd98(%rbx), %rsi
xorps %xmm0, %xmm0
movups %xmm0, (%rsp)
andq $0x0, 0x10(%rsp)
pushq $0x1
popq %r8
movq %rbx, %rdi
movq %r12, %rdx
movl %ebp, %ecx
xorl %r9d, %r9d
callq 0x17600
movq %rax, %r15
cmpb $0x0, 0x1d198(%rbx)
je 0x1c075
leaq 0x1d198(%rbx), %rsi
andq $0x0, 0x10(%rsp)
andl $0x0, 0x8(%rsp)
movq $0x1, (%rsp)
movq %rbx, %rdi
movq %r15, %rdx
xorl %ecx, %ecx
movl %ebp, %r8d
xorl %r9d, %r9d
callq 0x174b8
movq %rax, %r15
cmpw $0x0, 0xc166(%rbx)
je 0x1c097
movq %rbx, %rdi
movq %r14, %rsi
callq 0x12190
testl %eax, %eax
jne 0x1c094
jmp 0x1c097
testq %r15, %r15
je 0x1c0a9
movq %rbx, %rdi
callq 0x1b8bb
movq %rbx, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0x1bf10
testl %eax, %eax
je 0x1c05a
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 0x1c05a
// File: /workspace/github_c_makefile_star2_O2/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 0x169d2
movq %r14, %rdi
movq %rbx, %rsi
movl %eax, %edx
movq %r12, %rcx
callq 0x16e14
testl %eax, %eax
jne 0x1c108
movswq (%r15), %rsi
movq %r14, %rdi
callq 0x1b63d
movq %r14, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x19d82
testl %eax, %eax
je 0x1c11b
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 0x16e91
// File: /workspace/github_c_makefile_star2_O2/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 0x11fde
testl %eax, %eax
jne 0x1c2cf
cmpb $0x0, 0x1d598(%rbx)
je 0x1c22e
leaq 0x1d598(%rbx), %r15
movq %rbx, %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x13169
testl %eax, %eax
je 0x1c22e
leaq 0x73fd(%rip), %rdx      # 0x235ef
movq %rbx, %rdi
movq %r15, %rsi
callq 0x13169
testl %eax, %eax
je 0x1c22e
leaq 0x633a(%rip), %rdx      # 0x22542
movq %rbx, %rdi
movq %r15, %rsi
callq 0x13169
testl %eax, %eax
je 0x1c22e
movl $0x4, 0x1f274(%rbx)
movq %rbx, %rdi
callq 0x1a4da
jmp 0x1c2cc
leaq 0x1cd98(%rbx), %rsi
xorps %xmm0, %xmm0
movups %xmm0, (%rsp)
andq $0x0, 0x10(%rsp)
pushq $0x2
popq %r8
movq %rbx, %rdi
movq %r12, %rdx
movl %ebp, %ecx
xorl %r9d, %r9d
callq 0x17600
movq %rax, %r15
cmpb $0x0, 0x1d198(%rbx)
je 0x1c2ad
leaq 0x1d198(%rbx), %rsi
andq $0x0, 0x10(%rsp)
andl $0x0, 0x8(%rsp)
movq $0x2, (%rsp)
movq %rbx, %rdi
movq %r15, %rdx
xorl %ecx, %ecx
movl %ebp, %r8d
xorl %r9d, %r9d
callq 0x174b8
movq %rax, %r15
cmpw $0x0, 0xc166(%rbx)
je 0x1c2cf
movq %rbx, %rdi
movq %r14, %rsi
callq 0x12190
testl %eax, %eax
jne 0x1c2cc
jmp 0x1c2cf
testq %r15, %r15
je 0x1c2e1
movq %rbx, %rdi
callq 0x1b8bb
movq %rbx, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0x1c131
testl %eax, %eax
je 0x1c292
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 0x1c292
// File: /workspace/github_c_makefile_star2_O2/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 0x1c350
movq %rdi, %rbx
xorps %xmm2, %xmm2
ucomiss %xmm2, %xmm0
movaps %xmm0, %xmm1
subss %xmm0, %xmm1
jbe 0x1c30c
ucomiss %xmm1, %xmm1
jnp 0x1c30c
leaq 0x7353(%rip), %rbx      # 0x2365d
jmp 0x1c34b
ucomiss %xmm0, %xmm2
jbe 0x1c31f
ucomiss %xmm1, %xmm1
jnp 0x1c31f
leaq 0x733a(%rip), %rbx      # 0x23657
jmp 0x1c34b
cvtss2sd %xmm0, %xmm0
movq 0x10(%rbx), %rsi
addq $0x1c598, %rbx          # imm = 0x1C598
movq %rbx, %rdi
movb $0x1, %al
callq 0x3310
pushq $0x2c
popq %rsi
movq %rbx, %rdi
callq 0x3130
testq %rax, %rax
je 0x1c34b
movb $0x2e, (%rax)
movq %rbx, %rax
popq %rbx
retq
leaq 0x72fc(%rip), %rbx      # 0x23653
jmp 0x1c34b
// File: /workspace/github_c_makefile_star2_O2/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 0x169d2
movq %r14, %rdi
movq %rbx, %rsi
movl %eax, %edx
movq %r12, %rcx
callq 0x16e14
testl %eax, %eax
jne 0x1c3ac
movss (%r15), %xmm0
movq %r14, %rdi
callq 0x1c2e6
movq %r14, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x19d82
testl %eax, %eax
je 0x1c3bf
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 0x16e91
// File: /workspace/github_c_makefile_star2_O2/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 0x1c498
movq %rsi, %r15
cmpb $0x0, (%rsi)
je 0x1c4a0
movq %rdx, %r14
leaq 0x725e(%rip), %rsi      # 0x2365d
movq %r15, %rdi
callq 0x10026
testl %eax, %eax
je 0x1c491
leaq 0x7246(%rip), %rsi      # 0x2365c
movq %r15, %rdi
callq 0x10026
testl %eax, %eax
je 0x1c491
leaq 0x722e(%rip), %rsi      # 0x23657
movq %r15, %rdi
callq 0x10026
testl %eax, %eax
je 0x1c4b9
leaq 0x7213(%rip), %rsi      # 0x23653
movq %r15, %rdi
callq 0x10026
testl %eax, %eax
je 0x1c4c2
movq %rsp, %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0x30a0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, (%r14)
movq (%r12), %rax
cmpb $0x0, (%rax)
je 0x1c498
leaq 0x71ee(%rip), %rsi      # 0x23661
movq %r15, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x3250
cmpl $0x1, %eax
je 0x1c498
movl $0x4, 0x1f274(%rbx)
jmp 0x1c498
movl $0x7f800000, (%r14)     # imm = 0x7F800000
movl 0x1f274(%rbx), %eax
jmp 0x1c4ad
movl $0x4, 0x1f274(%rbx)
pushq $0x4
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movl $0xff800000, (%r14)     # imm = 0xFF800000
jmp 0x1c498
orl $-0x1, (%r14)
jmp 0x1c498
// File: /workspace/github_c_makefile_star2_O2/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: soap_infloat
SOAP_FMAC1
float *
SOAP_FMAC2
soap_infloat(struct soap *soap, const char *tag, float *p, const char *type, int t)
{ if (soap_element_begin_in(soap, tag, 0, NULL))
    return NULL;
#ifndef WITH_LEAN
  if (*soap->type != '\0' && soap_isnumeric(soap, type))
    return NULL;
#endif
  p = (float*)soap_id_enter(soap, soap->id, p, t, sizeof(float), 0, NULL, NULL, NULL);
  if (*soap->href)
    p = (float*)soap_id_forward(soap, soap->href, p, 0, t, 0, sizeof(float), 0, NULL);
  else if (p)
  { if (soap_s2float(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, %rbx
movq %rdi, %r14
xorl %r15d, %r15d
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x11fde
testl %eax, %eax
jne 0x1c5b9
cmpb $0x0, 0x1d598(%r14)
je 0x1c516
movq %r14, %rdi
movq %r13, %rsi
callq 0x1c5d0
testl %eax, %eax
jne 0x1c5b6
leaq 0x1cd98(%r14), %rsi
xorps %xmm0, %xmm0
movups %xmm0, (%rsp)
andq $0x0, 0x10(%rsp)
pushq $0x4
popq %r8
movq %r14, %rdi
movq %r12, %rdx
movl %ebp, %ecx
xorl %r9d, %r9d
callq 0x17600
movq %rax, %r15
cmpb $0x0, 0x1d198(%r14)
je 0x1c597
leaq 0x1d198(%r14), %rsi
andq $0x0, 0x10(%rsp)
andl $0x0, 0x8(%rsp)
movq $0x4, (%rsp)
movq %r14, %rdi
movq %r15, %rdx
xorl %ecx, %ecx
movl %ebp, %r8d
xorl %r9d, %r9d
callq 0x174b8
movq %rax, %r15
cmpw $0x0, 0xc166(%r14)
je 0x1c5b9
movq %r14, %rdi
movq %rbx, %rsi
callq 0x12190
testl %eax, %eax
jne 0x1c5b6
jmp 0x1c5b9
testq %r15, %r15
je 0x1c5cb
movq %r14, %rdi
callq 0x1b8bb
movq %r14, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0x1c3d5
testl %eax, %eax
je 0x1c57b
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 0x1c57b
// File: /workspace/github_c_makefile_star2_O2/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: soap_double2s
SOAP_FMAC1
const char*
SOAP_FMAC2
soap_double2s(struct soap *soap, double n)
{ char *s;
  if (soap_isnan(n))
    return "NaN";
  if (soap_ispinfd(n))
    return "INF";
  if (soap_isninfd(n))
    return "-INF";
  s = soap->tmpbuf;
#if defined(HAVE_SPRINTF_L)
  sprintf_l(s, soap->c_locale, soap->double_format, n);
#else
  sprintf(s, soap->double_format, n);
  s = strchr(s, ',');	/* convert decimal comma to DP */
  if (s)
    *s = '.';
#endif
  return soap->tmpbuf;
}

// Assembly:
pushq %rbx
ucomisd %xmm0, %xmm0
jp 0x1c80b
movq %rdi, %rbx
xorpd %xmm2, %xmm2
ucomisd %xmm2, %xmm0
movapd %xmm0, %xmm1
subsd %xmm0, %xmm1
jbe 0x1c7c9
ucomisd %xmm1, %xmm1
jnp 0x1c7c9
leaq 0x6e96(%rip), %rbx      # 0x2365d
jmp 0x1c806
ucomisd %xmm0, %xmm2
jbe 0x1c7de
ucomisd %xmm1, %xmm1
jnp 0x1c7de
leaq 0x6e7b(%rip), %rbx      # 0x23657
jmp 0x1c806
movq 0x18(%rbx), %rsi
addq $0x1c598, %rbx          # imm = 0x1C598
movq %rbx, %rdi
movb $0x1, %al
callq 0x3310
pushq $0x2c
popq %rsi
movq %rbx, %rdi
callq 0x3130
testq %rax, %rax
je 0x1c806
movb $0x2e, (%rax)
movq %rbx, %rax
popq %rbx
retq
leaq 0x6e41(%rip), %rbx      # 0x23653
jmp 0x1c806
// File: /workspace/github_c_makefile_star2_O2/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: soap_outdouble
SOAP_FMAC2
soap_outdouble(struct soap *soap, const char *tag, int id, const double *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_double2s(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 0x169d2
movq %r14, %rdi
movq %rbx, %rsi
movl %eax, %edx
movq %r12, %rcx
callq 0x16e14
testl %eax, %eax
jne 0x1c867
movsd (%r15), %xmm0
movq %r14, %rdi
callq 0x1c79e
movq %r14, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x19d82
testl %eax, %eax
je 0x1c87a
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 0x16e91
// File: /workspace/github_c_makefile_star2_O2/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: soap_s2double
SOAP_FMAC2
soap_s2double(struct soap *soap, const char *s, double *p)
{ if (s)
  { if (!*s)
      return soap->error = SOAP_TYPE;
    if (!soap_tag_cmp(s, "INF"))
      *p = DBL_PINFTY;
    else if (!soap_tag_cmp(s, "+INF"))
      *p = DBL_PINFTY;
    else if (!soap_tag_cmp(s, "-INF"))
      *p = DBL_NINFTY;
    else if (!soap_tag_cmp(s, "NaN"))
      *p = DBL_NAN;
    else
    {
#if defined(HAVE_STRTOD_L)
      char *r;
      *p = strtod_l(s, &r, soap->c_locale);
      if (*r)
#elif defined(HAVE_STRTOD)
      char *r;
      *p = strtod(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, "%lg", p) != 1)
          soap->error = SOAP_TYPE;
#elif defined(HAVE_SSCANF)
        if (sscanf(s, "%lg", 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 0x1c951
movq %rsi, %r15
cmpb $0x0, (%rsi)
je 0x1c959
movq %rdx, %r14
leaq 0x6da3(%rip), %rsi      # 0x2365d
movq %r15, %rdi
callq 0x10026
testl %eax, %eax
je 0x1c944
leaq 0x6d8f(%rip), %rsi      # 0x2365c
movq %r15, %rdi
callq 0x10026
testl %eax, %eax
je 0x1c944
leaq 0x6d77(%rip), %rsi      # 0x23657
movq %r15, %rdi
callq 0x10026
testl %eax, %eax
je 0x1c972
leaq 0x6d5c(%rip), %rsi      # 0x23653
movq %r15, %rdi
callq 0x10026
testl %eax, %eax
je 0x1c97e
movq %rsp, %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0x30a0
movsd %xmm0, (%r14)
movq (%r12), %rax
cmpb $0x0, (%rax)
je 0x1c951
leaq 0x6d3e(%rip), %rsi      # 0x23664
movq %r15, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x3250
cmpl $0x1, %eax
je 0x1c951
movl $0x4, 0x1f274(%rbx)
jmp 0x1c951
movabsq $0x7ff0000000000000, %rax # imm = 0x7FF0000000000000
movq %rax, (%r14)
movl 0x1f274(%rbx), %eax
jmp 0x1c966
movl $0x4, 0x1f274(%rbx)
pushq $0x4
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movabsq $-0x10000000000000, %rax # imm = 0xFFF0000000000000
jmp 0x1c94e
orq $-0x1, (%r14)
jmp 0x1c951