LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/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 0x1567f
movq 0x8(%r14), %rdi
cmpq %r15, %rdi
je 0x1567b
movq %r15, %rsi
callq 0x31f0
testl %eax, %eax
jne 0x1565e
movq 0x10(%r14), %rbx
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x176d7
cmpl $0x20, %ebp
je 0x176d7
testl %ebp, %ebp
je 0x17711
movsbl %bpl, %esi
movq %r14, %rdi
callq 0x3130
testq %rax, %rax
je 0x176dc
incq %rbx
jmp 0x176b5
cmpb $0x22, %bpl
jne 0x17711
incq %rbx
decq %r12
movzbl (%rbx), %eax
testl %eax, %eax
je 0x17788
cmpl $0x22, %eax
je 0x17788
subq $0x1, %r12
jb 0x17788
movb %al, (%r15)
incq %r15
incq %rbx
jmp 0x176e8
movb (%rbx), %bpl
cmpb $0x21, %bpl
jb 0x17788
decq %r12
movsbl %bpl, %esi
movq %r14, %rdi
callq 0x3130
testq %rax, %rax
jne 0x17788
subq $0x1, %r12
jb 0x17788
cmpb $0x25, %bpl
jne 0x17776
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, %edx
cmovll %eax, %edx
addb %cl, %dl
movb %dl, (%r15)
addq $0x3, %rbx
jmp 0x1777c
incq %rbx
movb %bpl, (%r15)
incq %r15
movb (%rbx), %bpl
cmpb $0x20, %bpl
ja 0x1771d
movb $0x0, (%r15)
movb (%rbx), %al
testb %al, %al
je 0x177aa
movsbl %al, %esi
movq %r14, %rdi
callq 0x3130
testq %rax, %rax
jne 0x177aa
movb 0x1(%rbx), %al
incq %rbx
jmp 0x1778e
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x17c4f
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 0x17c0c
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 0x17c51
xorl %ecx, %ecx
movq %rcx, %rax
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x17ee0
testq %rsi, %rsi
je 0x17ed5
testb $0x8, 0x4(%rdi)
jne 0x17ed9
cmpb $0x0, 0x21(%rsi)
jmp 0x17edd
xorl %eax, %eax
jmp 0x17ee0
cmpb $0x0, 0x20(%rsi)
sete %al
movzbl %al, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x17ef3
testb $0x8, 0x4(%rdi)
jne 0x17ef4
movb $0x1, 0x21(%rsi)
retq
movb $0x1, 0x20(%rsi)
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x18281
testq %r14, %r14
je 0x182b2
movw $0x0, 0x28(%r14)
movq (%r14), %r14
jmp 0x18270
testq %r14, %r14
je 0x182b2
movq %rdi, %rbx
movq 0x10(%r14), %rdi
movq (%r14), %r14
testq %rdi, %rdi
je 0x1829a
callq 0x3030
movq 0x1e5e0(%rbx), %rdi
callq 0x3030
movq %r14, 0x1e5e0(%rbx)
testq %r14, %r14
jne 0x18289
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: soap_embedded
SOAP_FMAC2
soap_embedded(struct soap *soap, const void *p, int t)
{ struct soap_plist *pp;
  if (soap_pointer_lookup(soap, p, t, &pp))
  { pp->mark1 = 1;
    pp->mark2 = 1;
    DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Embedded %p type=%d mark set to 1\n", p, t));
  }
}

// Assembly:
movb $0x1, %al
testq %rsi, %rsi
je 0x183a3
movl %esi, %ecx
andl $0x7ff8, %ecx           # imm = 0x7FF8
movq 0x3f20(%rdi,%rcx), %rcx
testq %rcx, %rcx
je 0x183a3
cmpq %rsi, 0x8(%rcx)
jne 0x1839e
cmpl %edx, 0x18(%rcx)
je 0x183b0
movq (%rcx), %rcx
jmp 0x1838e
xorl %ecx, %ecx
testb %al, %al
jne 0x183af
movw $0x101, 0x20(%rcx)      # imm = 0x101
retq
cmpl $0x0, 0x1c(%rcx)
sete %al
jmp 0x183a5
// File: /workspace/github_c_makefile_star2_O1/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 0x18444
testb $0x2, 0x6(%rdi)
jne 0x18444
movl %edx, %r8d
movq $0x0, 0x8(%rsp)
movl %esi, %eax
andl $0x7ff8, %eax           # imm = 0x7FF8
movq 0x3f20(%rdi,%rax), %rax
testq %rax, %rax
je 0x1841d
cmpq %rsi, 0x8(%rax)
jne 0x183fa
cmpl %r8d, 0x18(%rax)
je 0x183ff
movq (%rax), %rax
jmp 0x183e9
movq %rax, 0x8(%rsp)
cmpl $0x0, 0x1c(%rax)
je 0x1841d
movq 0x8(%rsp), %rax
cmpb $0x0, 0x20(%rax)
jne 0x1843b
movb $0x2, 0x20(%rax)
movb $0x2, %cl
jmp 0x18438
leaq 0x8(%rsp), %r9
xorl %edx, %edx
callq 0x17ef9
testl %eax, %eax
je 0x18444
movq 0x8(%rsp), %rax
movb $0x0, 0x20(%rax)
xorl %ecx, %ecx
movb %cl, 0x21(%rax)
movq 0x8(%rsp), %rax
movsbl 0x20(%rax), %ebx
movl %ebx, %eax
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x184c9
movq %rdx, %r14
cmpq $0x0, (%rdx)
je 0x184c9
movl %r8d, %ebp
movq %rsi, %r15
movq %rdi, %r12
leaq 0x8(%rsp), %r9
movq %r14, %rdx
callq 0x17dab
testl %eax, %eax
je 0x18498
movq 0x8(%rsp), %rax
cmpb $0x0, 0x20(%rax)
jne 0x184c0
movb $0x2, 0x20(%rax)
movb $0x2, %cl
jmp 0x184bd
leaq 0x8(%rsp), %r9
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
movl %ebp, %r8d
callq 0x17ef9
testl %eax, %eax
je 0x184c9
movq 0x8(%rsp), %rax
movb $0x0, 0x20(%rax)
xorl %ecx, %ecx
movb %cl, 0x21(%rax)
movq 0x8(%rsp), %rax
movsbl 0x20(%rax), %ebx
movl %ebx, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x18a2d
movq %rdi, %rbx
callq 0x1aecb
testl %eax, %eax
je 0x18a2f
movl 0x1f274(%rbx), %eax
popq %rbx
retq
movq %rbx, %rdi
xorl %esi, %esi
popq %rbx
jmp 0x1bb3c
// File: /workspace/github_c_makefile_star2_O1/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 0x18b79
movq %rsi, %r14
movq %rdi, %rbx
testb $0x1, 0x6(%rdi)
je 0x18ab4
movq %rbx, %rdi
callq 0x140e8
testb $0x20, 0x5(%rbx)
je 0x18ad1
cmpw $0x0, 0xc166(%rbx)
je 0x18b4b
movw $0x0, 0xc166(%rbx)
testb $-0x80, 0x5(%rbx)
je 0x18afa
movq %r14, %rdi
movl $0x3a, %esi
callq 0x3130
testq %rax, %rax
je 0x18afa
movq %rax, %r15
movq %rbx, %rdi
callq 0x140e8
incq %r15
movq %r15, %r14
leaq 0xd9e9(%rip), %rsi      # 0x264ea
movl $0x2, %edx
movq %rbx, %rdi
callq 0x102a8
testl %eax, %eax
jne 0x18b73
movq %r14, %rdi
callq 0x3110
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x102a8
testl %eax, %eax
jne 0x18b73
decl 0xc168(%rbx)
leaq 0xd9af(%rip), %rsi      # 0x264e8
movl $0x1, %edx
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x102a8
movl 0xc168(%rbx), %eax
cmpl $0xa, %eax
movl $0xa, %edx
cmovbl %eax, %edx
leaq 0xd497(%rip), %rsi      # 0x25ffa
movq %rbx, %rdi
callq 0x102a8
testl %eax, %eax
je 0x18ac8
movl 0x1f274(%rbx), %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x18f7d
leaq 0xa0(%rdi), %rax
movq %rax, %rcx
movq (%rax), %rax
testq %rax, %rax
je 0x18f7e
movq %rax, %rdx
subq 0x8(%rax), %rdx
cmpq %rsi, %rdx
jne 0x18f60
movq (%rax), %rax
movq %rax, (%rcx)
retq
addq $0x98, %rdi
movq %rdi, %rax
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x18f7d
cmpq %rsi, 0x8(%rdi)
jne 0x18f85
movq (%rdi), %rcx
movq %rcx, (%rax)
jmp 0x3030
// File: /workspace/github_c_makefile_star2_O1/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 0x1adc8
movq %rdi, %rbx
movl (%rdi), %eax
decl %eax
cmpw $0x1, %ax
ja 0x1adc8
movq %rbx, %rdi
callq 0x154db
movq %rbx, %rdi
xorl %esi, %esi
callq 0x18d1a
movq 0x98(%rbx), %rdi
testq %rdi, %rdi
je 0x1adb9
movq (%rdi), %r14
callq 0x3030
movq %r14, 0x98(%rbx)
movq %r14, %rdi
testq %r14, %r14
jne 0x1ada2
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1495d
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/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 %r13
pushq %r12
pushq %rbx
testq %rsi, %rsi
je 0x1ae6b
movq %rsi, %rbx
movq %rdi, %r12
movq %rsi, %rdi
callq 0x3110
movq %rax, %r15
movq %r12, %r13
testq %r12, %r12
je 0x1ae66
testq %r15, %r15
je 0x1ae1d
leaq (%r15,%r13), %rdi
xorl %eax, %eax
movb (%r13,%rax), %cl
cmpb (%rbx,%rax), %cl
jne 0x1ae24
incq %rax
cmpq %rax, %r15
jne 0x1ae06
movq %r15, %rax
jmp 0x1ae28
movq %r13, %rdi
xorl %eax, %eax
jmp 0x1ae28
leaq (%rax,%r13), %rdi
movzbl (%rdi), %ecx
testb $-0x21, %cl
jne 0x1ae4b
cmpq %r15, %rax
je 0x1ae41
testq %rax, %rax
je 0x1ae4b
cmpb $0x3a, -0x1(%rbx,%rax)
jne 0x1ae4b
xorl %eax, %eax
movq %r13, %r14
movq %r13, %r12
jmp 0x1ae62
movl $0x20, %esi
callq 0x3130
leaq 0x1(%rax), %r12
testq %rax, %rax
cmoveq %rax, %r12
movb $0x1, %al
testb %al, %al
jne 0x1adf3
testq %r13, %r13
jne 0x1ae6e
xorl %r14d, %r14d
movq %r14, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x1aecb
testl %eax, %eax
jne 0x1c2fa
leaq 0xa218(%rip), %rsi      # 0x264ff
leaq 0xa186(%rip), %rdx      # 0x26474
movq %r14, %rdi
callq 0x1b5f5
testl %eax, %eax
je 0x1c309
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 0x1bb3c
// File: /workspace/github_c_makefile_star2_O1/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 0x1c596
leaq 0x9a2c(%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 0x1c5d4
movq %rsi, %r14
cmpw $0x0, 0x28(%r15)
je 0x1c5cc
leaq 0x2a(%r15), %rsi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x1432a
testl %eax, %eax
je 0x1c5eb
movq (%r15), %r15
testq %r15, %r15
jne 0x1c5b1
cmpl $0x1, %ebp
jne 0x1c5df
testb $0x10, 0x5(%rbx)
jne 0x1c5fc
movl $0x0, 0x1f274(%rbx)
jmp 0x1c612
cmpl $0x2, %ebp
jne 0x1c5f6
testb $0x10, 0x5(%rbx)
jne 0x1c608
movq 0x10(%r15), %rax
jmp 0x1c614
movl $0x2a, 0x1f274(%rbx)
jmp 0x1c612
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_O1/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, %r15
testq %rdx, %rdx
je 0x1c707
movl %ecx, %ebx
movq %rdx, %r14
movq %rsi, %r12
leaq 0x974b(%rip), %r13      # 0x25da0
movq %r15, %rdi
callq 0x1100a
leal 0x6(%rax), %ecx
cmpl $0x13, %ecx
ja 0x1c67b
movslq (%r13,%rcx,4), %rcx
addq %r13, %rcx
jmpq *%rcx
cmpl $-0x6, %ebx
je 0x1c691
movb $0x27, (%r12)
jmp 0x1c6f5
cmpl $0x20, %eax
je 0x1c685
cmpl $0x2f, %eax
jne 0x1c69f
cmpl $0x20, %ebx
jne 0x1c69a
movl %eax, 0xc160(%r15)
movb $0x0, (%r12)
xorl %ebp, %ebp
jmp 0x1c6b5
cmpl $-0x1, %eax
je 0x1c6a5
movb %al, (%r12)
jmp 0x1c6f5
movl $0xffffffff, 0x1f274(%r15) # imm = 0xFFFFFFFF
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
xorl %eax, %eax
jmp 0x1c6fa
cmpl $-0x5, %ebx
je 0x1c691
movb $0x22, (%r12)
jmp 0x1c6f5
movb $0x3c, (%r12)
jmp 0x1c6f5
cmpl $0x20, %ebx
jne 0x1c6f0
movl $0xfffffffc, 0xc160(%r15) # imm = 0xFFFFFFFC
jmp 0x1c691
movb $0x3c, (%r12)
movl $0x2f, 0xc160(%r15)
jmp 0x1c6f5
movb $0x3e, (%r12)
incq %r12
movb $0x1, %al
testb %al, %al
je 0x1c717
decq %r14
jne 0x1c655
movl $0x14, 0x1f274(%r15)
movl $0x14, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x1c762
retq
movw $0x1, 0x1e5f6(%rdi)
cmpw $0x0, 0xc166(%rdi)
je 0x1c761
decl 0xc168(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x184d8
movq %r14, %rdi
movq %rbx, %rsi
movl %eax, %edx
movq %r12, %rcx
callq 0x18a13
testl %eax, %eax
jne 0x1dd05
movslq (%r15), %rdx
leaq 0x1c598(%r14), %r15
leaq 0x890c(%rip), %rsi      # 0x265f6
movq %r15, %rdi
xorl %eax, %eax
callq 0x3300
movq %r14, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x1bf80
testl %eax, %eax
je 0x1dd18
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 0x18a90
// File: /workspace/github_c_makefile_star2_O1/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 0x1dd9e
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 0x1dd91
cmpb $0x0, (%rcx)
sete %cl
movslq %eax, %rdx
cmpq %rax, %rdx
sete %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0x1dd91
cmpl $0x22, (%r15)
jne 0x1dd9b
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_O1/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 0x12ff7
testl %eax, %eax
jne 0x1df31
cmpb $0x0, 0x1d598(%rbx)
je 0x1de85
leaq 0x1d598(%rbx), %r15
movq %rbx, %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x1432a
testl %eax, %eax
je 0x1de85
leaq 0x773b(%rip), %rdx      # 0x2554b
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1432a
testl %eax, %eax
je 0x1de85
leaq 0x87c9(%rip), %rdx      # 0x265ef
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1432a
testl %eax, %eax
je 0x1de85
leaq 0x7706(%rip), %rdx      # 0x25542
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1432a
testl %eax, %eax
je 0x1de85
movl $0x4, 0x1f274(%rbx)
cmpw $0x0, 0x1e5f6(%rbx)
jne 0x1df2e
movw $0x1, 0x1e5f6(%rbx)
cmpw $0x0, 0xc166(%rbx)
je 0x1df2e
decl 0xc168(%rbx)
jmp 0x1df2e
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 0x19303
movq %rax, %r15
cmpb $0x0, 0x1d198(%rbx)
je 0x1df0f
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 0x191b1
movq %rax, %r15
cmpw $0x0, 0xc166(%rbx)
je 0x1df31
movq %rbx, %rdi
movq %r14, %rsi
callq 0x131c3
testl %eax, %eax
jne 0x1df2e
jmp 0x1df31
testq %r15, %r15
je 0x1df43
movq %rbx, %rdi
callq 0x1df48
movq %rbx, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0x1dd2e
testl %eax, %eax
je 0x1def4
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 0x1def4
// File: /workspace/github_c_makefile_star2_O1/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 0x1df80
movq %rdi, %r14
leaq 0x1c598(%rdi), %rbx
movq %r14, %rdi
callq 0x1100a
cmpl $0x21, %eax
jb 0x1df64
cmpl $-0x3, %eax
setae %cl
jb 0x1df89
xorl %edx, %edx
movq %rbx, %r15
jmp 0x1dfb8
leaq 0x803a(%rip), %rbx      # 0x25fc1
jmp 0x1dffa
xorl %edx, %edx
movq %rbx, %r15
movq %rdx, %r12
movb %al, (%r15)
incq %r15
movq %r14, %rdi
callq 0x1100a
leaq 0x1(%r12), %rdx
cmpl $-0x3, %eax
setae %cl
cmpq $0x3fd, %r12            # imm = 0x3FD
ja 0x1dfb8
cmpl $-0x4, %eax
jbe 0x1df8e
testq %rdx, %rdx
je 0x1dfd5
movq %r15, %rsi
subq %rdx, %rsi
cmpb $0x21, -0x1(%r15)
jae 0x1dfd5
decq %r15
decq %rdx
jne 0x1dfc3
movq %rsi, %r15
movb $0x0, (%r15)
testb %cl, %cl
je 0x1dfe6
movl %eax, 0xc160(%r14)
jmp 0x1dffa
testb $0x10, 0x5(%r14)
je 0x1dffa
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_O1/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 0x184d8
movq %r14, %rdi
movq %rbx, %rsi
movl %eax, %edx
movq %r12, %rcx
callq 0x18a13
testl %eax, %eax
jne 0x1e06a
movq (%r15), %rdx
leaq 0x1c598(%r14), %r15
leaq 0x85a7(%rip), %rsi      # 0x265f6
movq %r15, %rdi
xorl %eax, %eax
callq 0x3300
movq %r14, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x1bf80
testl %eax, %eax
je 0x1e07d
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 0x18a90
// File: /workspace/github_c_makefile_star2_O1/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 0x1e0f3
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 0x1e0e9
cmpb $0x0, (%rax)
jne 0x1e0e9
cmpl $0x22, (%r14)
jne 0x1e0f3
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_O1/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 0x12ff7
testl %eax, %eax
jne 0x1e286
cmpb $0x0, 0x1d598(%rbx)
je 0x1e1da
leaq 0x1d598(%rbx), %r15
movq %rbx, %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x1432a
testl %eax, %eax
je 0x1e1da
leaq 0x73e6(%rip), %rdx      # 0x2554b
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1432a
testl %eax, %eax
je 0x1e1da
leaq 0x8474(%rip), %rdx      # 0x265ef
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1432a
testl %eax, %eax
je 0x1e1da
leaq 0x73b1(%rip), %rdx      # 0x25542
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1432a
testl %eax, %eax
je 0x1e1da
movl $0x4, 0x1f274(%rbx)
cmpw $0x0, 0x1e5f6(%rbx)
jne 0x1e283
movw $0x1, 0x1e5f6(%rbx)
cmpw $0x0, 0xc166(%rbx)
je 0x1e283
decl 0xc168(%rbx)
jmp 0x1e283
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 0x19303
movq %rax, %r15
cmpb $0x0, 0x1d198(%rbx)
je 0x1e264
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 0x191b1
movq %rax, %r15
cmpw $0x0, 0xc166(%rbx)
je 0x1e286
movq %rbx, %rdi
movq %r14, %rsi
callq 0x131c3
testl %eax, %eax
jne 0x1e283
jmp 0x1e286
testq %r15, %r15
je 0x1e298
movq %rbx, %rdi
callq 0x1df48
movq %rbx, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0x1e093
testl %eax, %eax
je 0x1e249
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 0x1e249
// File: /workspace/github_c_makefile_star2_O1/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 0x184d8
movq %r14, %rdi
movq %rbx, %rsi
movl %eax, %edx
movq %r12, %rcx
callq 0x18a13
testl %eax, %eax
jne 0x1e31f
movq (%r15), %rdx
leaq 0x1c598(%r14), %r15
leaq 0x82f2(%rip), %rsi      # 0x265f6
movq %r15, %rdi
xorl %eax, %eax
callq 0x3300
movq %r14, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x1bf80
testl %eax, %eax
je 0x1e332
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 0x18a90
// File: /workspace/github_c_makefile_star2_O1/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 0x184d8
movq %r14, %rdi
movq %rbx, %rsi
movl %eax, %edx
movq %r12, %rcx
callq 0x18a13
testl %eax, %eax
jne 0x1e650
movsbq (%r15), %rdx
leaq 0x1c598(%r14), %r15
leaq 0x7fc1(%rip), %rsi      # 0x265f6
movq %r15, %rdi
xorl %eax, %eax
callq 0x3300
movq %r14, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x1bf80
testl %eax, %eax
je 0x1e663
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 0x18a90
// File: /workspace/github_c_makefile_star2_O1/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 0x1e6cf
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 0x1e6c2
cmpb $0x0, (%rcx)
setne %cl
movsbq %al, %rdx
cmpq %rax, %rdx
setne %dl
orb %cl, %dl
cmpb $0x1, %dl
jne 0x1e6cc
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_O1/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 0x12ff7
testl %eax, %eax
jne 0x1e830
cmpb $0x0, 0x1d598(%rbx)
je 0x1e784
leaq 0x1d598(%rbx), %r15
movq %rbx, %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x1432a
testl %eax, %eax
je 0x1e784
leaq 0x6e07(%rip), %rdx      # 0x25542
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1432a
testl %eax, %eax
je 0x1e784
movl $0x4, 0x1f274(%rbx)
cmpw $0x0, 0x1e5f6(%rbx)
jne 0x1e82d
movw $0x1, 0x1e5f6(%rbx)
cmpw $0x0, 0xc166(%rbx)
je 0x1e82d
decl 0xc168(%rbx)
jmp 0x1e82d
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 0x19303
movq %rax, %r15
cmpb $0x0, 0x1d198(%rbx)
je 0x1e80e
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 0x191b1
movq %rax, %r15
cmpw $0x0, 0xc166(%rbx)
je 0x1e830
movq %rbx, %rdi
movq %r14, %rsi
callq 0x131c3
testl %eax, %eax
jne 0x1e82d
jmp 0x1e830
testq %r15, %r15
je 0x1e842
movq %rbx, %rdi
callq 0x1df48
movq %rbx, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0x1e679
testl %eax, %eax
je 0x1e7f3
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 0x1e7f3
// File: /workspace/github_c_makefile_star2_O1/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 0x184d8
movq %r14, %rdi
movq %rbx, %rsi
movl %eax, %edx
movq %r12, %rcx
callq 0x18a13
testl %eax, %eax
jne 0x1e8ca
movswq (%r15), %rdx
leaq 0x1c598(%r14), %r15
leaq 0x7d47(%rip), %rsi      # 0x265f6
movq %r15, %rdi
xorl %eax, %eax
callq 0x3300
movq %r14, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x1bf80
testl %eax, %eax
je 0x1e8dd
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 0x18a90
// File: /workspace/github_c_makefile_star2_O1/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 0x12ff7
testl %eax, %eax
jne 0x1eac1
cmpb $0x0, 0x1d598(%rbx)
je 0x1ea15
leaq 0x1d598(%rbx), %r15
movq %rbx, %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x1432a
testl %eax, %eax
je 0x1ea15
leaq 0x7c39(%rip), %rdx      # 0x265ef
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1432a
testl %eax, %eax
je 0x1ea15
leaq 0x6b76(%rip), %rdx      # 0x25542
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1432a
testl %eax, %eax
je 0x1ea15
movl $0x4, 0x1f274(%rbx)
cmpw $0x0, 0x1e5f6(%rbx)
jne 0x1eabe
movw $0x1, 0x1e5f6(%rbx)
cmpw $0x0, 0xc166(%rbx)
je 0x1eabe
decl 0xc168(%rbx)
jmp 0x1eabe
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 0x19303
movq %rax, %r15
cmpb $0x0, 0x1d198(%rbx)
je 0x1ea9f
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 0x191b1
movq %rax, %r15
cmpw $0x0, 0xc166(%rbx)
je 0x1eac1
movq %rbx, %rdi
movq %r14, %rsi
callq 0x131c3
testl %eax, %eax
jne 0x1eabe
jmp 0x1eac1
testq %r15, %r15
je 0x1ead3
movq %rbx, %rdi
callq 0x1df48
movq %rbx, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0x1e8f3
testl %eax, %eax
je 0x1ea84
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 0x1ea84
// File: /workspace/github_c_makefile_star2_O1/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 0x1eb44
movq %rdi, %rbx
xorps %xmm2, %xmm2
ucomiss %xmm2, %xmm0
movaps %xmm0, %xmm1
subss %xmm0, %xmm1
jbe 0x1eafe
ucomiss %xmm1, %xmm1
jnp 0x1eafe
leaq 0x7b61(%rip), %rbx      # 0x2665d
jmp 0x1eb3f
ucomiss %xmm0, %xmm2
jbe 0x1eb11
ucomiss %xmm1, %xmm1
jnp 0x1eb11
leaq 0x7b48(%rip), %rbx      # 0x26657
jmp 0x1eb3f
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 0x1eb3f
movb $0x2e, (%rax)
movq %rbx, %rax
popq %rbx
retq
leaq 0x7b08(%rip), %rbx      # 0x26653
jmp 0x1eb3f
// File: /workspace/github_c_makefile_star2_O1/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 0x184d8
movq %r14, %rdi
movq %rbx, %rsi
movl %eax, %edx
movq %r12, %rcx
callq 0x18a13
testl %eax, %eax
jne 0x1eba0
movss (%r15), %xmm0
movq %r14, %rdi
callq 0x1ead8
movq %r14, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x1bf80
testl %eax, %eax
je 0x1ebb3
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 0x18a90
// File: /workspace/github_c_makefile_star2_O1/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 0x1ec8c
movq %rsi, %r15
cmpb $0x0, (%rsi)
je 0x1ec94
movq %rdx, %r14
leaq 0x7a6a(%rip), %rsi      # 0x2665d
movq %r15, %rdi
callq 0x10d91
testl %eax, %eax
je 0x1ec85
leaq 0x7a52(%rip), %rsi      # 0x2665c
movq %r15, %rdi
callq 0x10d91
testl %eax, %eax
je 0x1ec85
leaq 0x7a3a(%rip), %rsi      # 0x26657
movq %r15, %rdi
callq 0x10d91
testl %eax, %eax
je 0x1ecaf
leaq 0x7a1f(%rip), %rsi      # 0x26653
movq %r15, %rdi
callq 0x10d91
testl %eax, %eax
je 0x1ecb8
movq %rsp, %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0x30a0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, (%r14)
movq (%r12), %rax
cmpb $0x0, (%rax)
je 0x1ec8c
leaq 0x79fa(%rip), %rsi      # 0x26661
movq %r15, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x3250
cmpl $0x1, %eax
je 0x1ec8c
movl $0x4, 0x1f274(%rbx)
jmp 0x1ec8c
movl $0x7f800000, (%r14)     # imm = 0x7F800000
movl 0x1f274(%rbx), %eax
jmp 0x1eca3
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 0x1ec8c
movl $0xffffffff, (%r14)     # imm = 0xFFFFFFFF
jmp 0x1ec8c