LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O0/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: soap_inunsignedByte
SOAP_FMAC1
unsigned char *
SOAP_FMAC2
soap_inunsignedByte(struct soap *soap, const char *tag, unsigned 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, ":unsignedByte"))
  { soap->error = SOAP_TYPE;
    soap_revert(soap);
    return NULL;
  }
#endif
  p = (unsigned char*)soap_id_enter(soap, soap->id, p, t, sizeof(unsigned char), 0, NULL, NULL, NULL);
  if (*soap->href)
    p = (unsigned char*)soap_id_forward(soap, soap->href, p, 0, t, 0, sizeof(unsigned char), 0, NULL);
  else if (p)
  { if (soap_s2unsignedByte(soap, soap_value(soap), p))
      return NULL;
  }
  if (soap->body && soap_element_end_in(soap, tag))
    return NULL;
  return p;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movl %r8d, -0x2c(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
xorl %edx, %edx
xorl %eax, %eax
movl %eax, %ecx
callq 0x1b350
cmpl $0x0, %eax
je 0x2ec81
movq $0x0, -0x8(%rbp)
jmp 0x2edf4
movq -0x10(%rbp), %rax
movsbl 0x1d598(%rax), %eax
cmpl $0x0, %eax
je 0x2ecf2
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rsi
addq $0x1d598, %rsi          # imm = 0x1D598
movq -0x28(%rbp), %rdx
callq 0x1d4c0
cmpl $0x0, %eax
je 0x2ecf2
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rsi
addq $0x1d598, %rsi          # imm = 0x1D598
leaq 0xadd9(%rip), %rdx      # 0x39a9d
callq 0x1d4c0
cmpl $0x0, %eax
je 0x2ecf2
movq -0x10(%rbp), %rax
movl $0x4, 0x1f274(%rax)
movq -0x10(%rbp), %rdi
callq 0x2ad00
movq $0x0, -0x8(%rbp)
jmp 0x2edf4
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rsi
addq $0x1cd98, %rsi          # imm = 0x1CD98
movq -0x20(%rbp), %rdx
movl -0x2c(%rbp), %ecx
movl $0x1, %r8d
xorl %r9d, %r9d
xorl %eax, %eax
movq $0x0, (%rsp)
movq $0x0, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
callq 0x25580
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
cmpb $0x0, 0x1d198(%rax)
je 0x2ed85
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rsi
addq $0x1d198, %rsi          # imm = 0x1D198
movq -0x20(%rbp), %rdx
movl -0x2c(%rbp), %r8d
xorl %eax, %eax
movl %eax, %ecx
xorl %r9d, %r9d
movq $0x1, (%rsp)
movl $0x0, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
callq 0x25360
movq %rax, -0x20(%rbp)
jmp 0x2edc0
cmpq $0x0, -0x20(%rbp)
je 0x2edbe
movq -0x10(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rdi
callq 0x2cf30
movq -0x38(%rbp), %rdi
movq %rax, %rsi
movq -0x20(%rbp), %rdx
callq 0x2ebc0
cmpl $0x0, %eax
je 0x2edbc
movq $0x0, -0x8(%rbp)
jmp 0x2edf4
jmp 0x2edbe
jmp 0x2edc0
movq -0x10(%rbp), %rax
movswl 0xc166(%rax), %eax
cmpl $0x0, %eax
je 0x2edec
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x1b620
cmpl $0x0, %eax
je 0x2edec
movq $0x0, -0x8(%rbp)
jmp 0x2edf4
movq -0x20(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x50, %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: soap_outunsignedShort
SOAP_FMAC2
soap_outunsignedShort(struct soap *soap, const char *tag, int id, const unsigned 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_unsignedLong2s(soap, (unsigned long)*p), 0))
    return soap->error;
  return soap_element_end_out(soap, tag);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movl %r9d, -0x34(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rdi
movl -0x1c(%rbp), %esi
movq -0x28(%rbp), %rdx
movl -0x34(%rbp), %ecx
callq 0x23f60
movq -0x48(%rbp), %rdi
movq -0x40(%rbp), %rsi
movl %eax, %edx
movq -0x30(%rbp), %rcx
callq 0x24590
cmpl $0x0, %eax
jne 0x2eeb7
movq -0x10(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rax
movzwl (%rax), %eax
movl %eax, %esi
callq 0x2ead0
movq -0x50(%rbp), %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x2a000
cmpl $0x0, %eax
je 0x2eec6
movq -0x10(%rbp), %rax
movl 0x1f274(%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0x2eed6
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x24680
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x50, %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: soap_outunsignedInt
SOAP_FMAC2
soap_outunsignedInt(struct soap *soap, const char *tag, int id, const unsigned 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_unsignedLong2s(soap, (unsigned long)*p), 0))
    return soap->error;
  return soap_element_end_out(soap, tag);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movl %r9d, -0x34(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rdi
movl -0x1c(%rbp), %esi
movq -0x28(%rbp), %rdx
movl -0x34(%rbp), %ecx
callq 0x23f60
movq -0x48(%rbp), %rdi
movq -0x40(%rbp), %rsi
movl %eax, %edx
movq -0x30(%rbp), %rcx
callq 0x24590
cmpl $0x0, %eax
jne 0x2f206
movq -0x10(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rax
movl (%rax), %eax
movl %eax, %esi
callq 0x2ead0
movq -0x50(%rbp), %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x2a000
cmpl $0x0, %eax
je 0x2f215
movq -0x10(%rbp), %rax
movl 0x1f274(%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0x2f225
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x24680
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x50, %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: soap_s2unsignedInt
SOAP_FMAC2
soap_s2unsignedInt(struct soap *soap, const char *s, unsigned int *p)
{ if (s)
  { char *r;
#ifndef WITH_NOIO
#ifndef WITH_LEAN
    soap_reset_errno;
#endif
#endif
    *p = (unsigned int)soap_strtoul(s, &r, 10);
    if ((s == r && (soap->mode & SOAP_XML_STRICT)) || *r
#ifndef WITH_NOIO
#ifndef WITH_LEAN
     || soap_errno == SOAP_ERANGE
#endif
#endif
    )
      soap->error = SOAP_TYPE;
  }
  return soap->error;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x2f2b1
callq 0x3050
movl $0x0, (%rax)
movq -0x10(%rbp), %rdi
leaq -0x20(%rbp), %rsi
movl $0xa, %edx
callq 0x3300
movl %eax, %ecx
movq -0x18(%rbp), %rax
movl %ecx, (%rax)
movq -0x10(%rbp), %rax
cmpq -0x20(%rbp), %rax
jne 0x2f28b
movq -0x8(%rbp), %rax
movl 0x4(%rax), %eax
andl $0x1000, %eax           # imm = 0x1000
cmpl $0x0, %eax
jne 0x2f2a1
movq -0x20(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
jne 0x2f2a1
callq 0x3050
cmpl $0x22, (%rax)
jne 0x2f2af
movq -0x8(%rbp), %rax
movl $0x4, 0x1f274(%rax)
jmp 0x2f2b1
movq -0x8(%rbp), %rax
movl 0x1f274(%rax), %eax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: soap_s2unsignedLong
SOAP_FMAC2
soap_s2unsignedLong(struct soap *soap, const char *s, unsigned long *p)
{ if (s)
  { char *r;
#ifndef WITH_NOIO
#ifndef WITH_LEAN
    soap_reset_errno;
#endif
#endif
    *p = soap_strtoul(s, &r, 10);
    if ((s == r && (soap->mode & SOAP_XML_STRICT)) || *r
#ifndef WITH_NOIO
#ifndef WITH_LEAN
     || soap_errno == SOAP_ERANGE
#endif
#endif
    )
      soap->error = SOAP_TYPE;
  }
  return soap->error;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x2f613
callq 0x3050
movl $0x0, (%rax)
movq -0x10(%rbp), %rdi
leaq -0x20(%rbp), %rsi
movl $0xa, %edx
callq 0x3300
movq %rax, %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movq -0x10(%rbp), %rax
cmpq -0x20(%rbp), %rax
jne 0x2f5ed
movq -0x8(%rbp), %rax
movl 0x4(%rax), %eax
andl $0x1000, %eax           # imm = 0x1000
cmpl $0x0, %eax
jne 0x2f603
movq -0x20(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
jne 0x2f603
callq 0x3050
cmpl $0x22, (%rax)
jne 0x2f611
movq -0x8(%rbp), %rax
movl $0x4, 0x1f274(%rax)
jmp 0x2f613
movq -0x8(%rbp), %rax
movl 0x1f274(%rax), %eax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: soap_outULONG64
SOAP_FMAC2
soap_outULONG64(struct soap *soap, const char *tag, int id, const ULONG64 *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_ULONG642s(soap, *p), 0))
    return soap->error;
  return soap_element_end_out(soap, tag);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movl %r9d, -0x34(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rdi
movl -0x1c(%rbp), %esi
movq -0x28(%rbp), %rdx
movl -0x34(%rbp), %ecx
callq 0x23f60
movq -0x48(%rbp), %rdi
movq -0x40(%rbp), %rsi
movl %eax, %edx
movq -0x30(%rbp), %rcx
callq 0x24590
cmpl $0x0, %eax
jne 0x2f905
movq -0x10(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rax
movq (%rax), %rsi
callq 0x2f840
movq -0x50(%rbp), %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x2a000
cmpl $0x0, %eax
je 0x2f914
movq -0x10(%rbp), %rax
movl 0x1f274(%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0x2f924
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x24680
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x50, %rsp
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: soap_timegm
SOAP_FMAC2
soap_timegm(struct tm *T)
{
#if defined(HAVE_TIMEGM)
  return timegm(T);
#else
  time_t t, g, z;
  struct tm tm;
  t = mktime(T);
  if (t == (time_t)-1)
    return (time_t)-1;
#ifdef HAVE_GMTIME_R
  gmtime_r(&t, &tm);
#else
  tm = *gmtime(&t);
#endif
  tm.tm_isdst = 0;
  g = mktime(&tm);
  if (g == (time_t)-1)
    return (time_t)-1;
  z = g - t;
  return t - z;
#endif
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rdi
callq 0x3290
movq %rax, -0x18(%rbp)
cmpq $-0x1, -0x18(%rbp)
jne 0x30aca
movq $-0x1, -0x8(%rbp)
jmp 0x30b14
leaq -0x18(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x3170
movl $0x0, -0x40(%rbp)
leaq -0x60(%rbp), %rdi
callq 0x3290
movq %rax, -0x20(%rbp)
cmpq $-0x1, -0x20(%rbp)
jne 0x30afc
movq $-0x1, -0x8(%rbp)
jmp 0x30b14
movq -0x20(%rbp), %rax
subq -0x18(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rax
subq -0x28(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x60, %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: soap_outdateTime
SOAP_FMAC2
soap_outdateTime(struct soap *soap, const char *tag, int id, const time_t *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_dateTime2s(soap, *p), 0))
    return soap->error;
  return soap_element_end_out(soap, tag);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movl %r9d, -0x34(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rdi
movl -0x1c(%rbp), %esi
movq -0x28(%rbp), %rdx
movl -0x34(%rbp), %ecx
callq 0x23f60
movq -0x48(%rbp), %rdi
movq -0x40(%rbp), %rsi
movl %eax, %edx
movq -0x30(%rbp), %rcx
callq 0x24590
cmpl $0x0, %eax
jne 0x30c25
movq -0x10(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rax
movq (%rax), %rsi
callq 0x30b20
movq -0x50(%rbp), %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x2a000
cmpl $0x0, %eax
je 0x30c34
movq -0x10(%rbp), %rax
movl 0x1f274(%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0x30c44
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x24680
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x50, %rsp
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: soap_dime_option
SOAP_FMAC1
char *
SOAP_FMAC2
soap_dime_option(struct soap *soap, unsigned short optype, const char *option)
{ size_t n;
  char *s = NULL;
  if (option)
  { n = strlen(option);
    s = (char*)soap_malloc(soap, n + 5);
    if (s)
    { s[0] = (char)(optype >> 8);
      s[1] = (char)(optype & 0xFF);
      s[2] = (char)(n >> 8);
      s[3] = (char)(n & 0xFF);
      strcpy(s + 4, option);
    }
  }
  return s;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movw %si, %ax
movq %rdi, -0x8(%rbp)
movw %ax, -0xa(%rbp)
movq %rdx, -0x18(%rbp)
movq $0x0, -0x28(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x31b7b
movq -0x18(%rbp), %rdi
callq 0x3100
movq %rax, -0x20(%rbp)
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rsi
addq $0x5, %rsi
callq 0x19790
movq %rax, -0x28(%rbp)
cmpq $0x0, -0x28(%rbp)
je 0x31b79
movzwl -0xa(%rbp), %eax
sarl $0x8, %eax
movb %al, %cl
movq -0x28(%rbp), %rax
movb %cl, (%rax)
movzwl -0xa(%rbp), %eax
andl $0xff, %eax
movb %al, %cl
movq -0x28(%rbp), %rax
movb %cl, 0x1(%rax)
movq -0x20(%rbp), %rax
shrq $0x8, %rax
movb %al, %cl
movq -0x28(%rbp), %rax
movb %cl, 0x2(%rax)
movq -0x20(%rbp), %rax
andq $0xff, %rax
movb %al, %cl
movq -0x28(%rbp), %rax
movb %cl, 0x3(%rax)
movq -0x28(%rbp), %rdi
addq $0x4, %rdi
movq -0x18(%rbp), %rsi
callq 0x3080
jmp 0x31b7b
movq -0x28(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: soap_getdimefield
static char *
soap_getdimefield(struct soap *soap, size_t n)
{ register soap_wchar c;
  register size_t i;
  register char *s;
  register char *p = NULL;
  if (n)
  { p = (char*)soap_malloc(soap, n + 1);
    if (p)
    { s = p;
      for (i = n; i > 0; i--)
      { if ((int)(c = soap_get1(soap)) == EOF)
        { soap->error = SOAP_EOF;
          return NULL;
        }
        *s++ = (char)c;
      }
      *s = '\0';
      if ((soap->error = soap_move(soap, -(long)n&3)))
        return NULL;
    }
    else
      soap->error = SOAP_EOM;
  }
  return p;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq $0x0, -0x38(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x32227
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
addq $0x1, %rsi
callq 0x19790
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x38(%rbp)
je 0x32217
movq -0x38(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x28(%rbp)
cmpq $0x0, -0x28(%rbp)
jbe 0x321e0
movq -0x10(%rbp), %rax
movq 0xc150(%rax), %rax
movq -0x10(%rbp), %rcx
cmpq 0xc158(%rcx), %rax
jb 0x3216e
movq -0x10(%rbp), %rdi
callq 0x177b0
cmpl $0x0, %eax
je 0x3216e
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %eax, -0x3c(%rbp)
jmp 0x32196
movq -0x10(%rbp), %rax
movq -0x10(%rbp), %rdx
movq 0xc150(%rdx), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, 0xc150(%rdx)
movzbl 0xc198(%rax,%rcx), %eax
movl %eax, -0x3c(%rbp)
movl -0x3c(%rbp), %eax
movl %eax, -0x1c(%rbp)
cmpl $-0x1, %eax
jne 0x321b9
movq -0x10(%rbp), %rax
movl $0xffffffff, 0x1f274(%rax) # imm = 0xFFFFFFFF
movq $0x0, -0x8(%rbp)
jmp 0x3222f
movl -0x1c(%rbp), %eax
movb %al, %cl
movq -0x30(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x30(%rbp)
movb %cl, (%rax)
movq -0x28(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x28(%rbp)
jmp 0x32133
movq -0x30(%rbp), %rax
movb $0x0, (%rax)
movq -0x10(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
subq -0x18(%rbp), %rsi
andq $0x3, %rsi
callq 0x18d20
movq -0x10(%rbp), %rcx
movl %eax, 0x1f274(%rcx)
cmpl $0x0, %eax
je 0x32215
movq $0x0, -0x8(%rbp)
jmp 0x3222f
jmp 0x32225
movq -0x10(%rbp), %rax
movl $0x14, 0x1f274(%rax)
jmp 0x32227
movq -0x38(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: soap_set_mime
SOAP_FMAC2
soap_set_mime(struct soap *soap, const char *boundary, const char *start)
{ soap->omode |= SOAP_ENC_MIME;
  soap->mime.first = NULL;
  soap->mime.last = NULL;
  soap->mime.boundary = soap_strdup(soap, boundary);
  soap->mime.start = soap_strdup(soap, start);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movl 0xc(%rax), %ecx
orl $0x100, %ecx            # imm = 0x100
movl %ecx, 0xc(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x1f300(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x1f308(%rax)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x1b870
movq %rax, %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x1f2e8(%rax)
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x1b870
movq %rax, %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x1f2f0(%rax)
addq $0x20, %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: soap_begin_serve
SOAP_FMAC2
soap_begin_serve(struct soap *soap)
{
#ifdef WITH_FASTCGI
  if (FCGI_Accept() < 0)
  { soap->error = SOAP_EOF;
    return soap_send_fault(soap);
  }
#endif
  soap_begin(soap);
  if (soap_begin_recv(soap))
  { if (soap->error < SOAP_STOP)
    {
#ifdef WITH_FASTCGI
      soap_send_fault(soap);
#else
      return soap_send_fault(soap);
#endif
    }
    return soap_closesock(soap);
  }
  if (soap_envelope_begin_in(soap)
   || soap_recv_header(soap)
   || soap_body_begin_in(soap))
    return soap->error;
  return SOAP_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rdi
callq 0x28350
movq -0x10(%rbp), %rdi
callq 0x33370
cmpl $0x0, %eax
je 0x3331f
movq -0x10(%rbp), %rax
cmpl $0x3e8, 0x1f274(%rax)   # imm = 0x3E8
jge 0x33311
movq -0x10(%rbp), %rdi
callq 0x33e90
movl %eax, -0x4(%rbp)
jmp 0x3335f
movq -0x10(%rbp), %rdi
callq 0x1de40
movl %eax, -0x4(%rbp)
jmp 0x3335f
movq -0x10(%rbp), %rdi
callq 0x34100
cmpl $0x0, %eax
jne 0x33349
movq -0x10(%rbp), %rdi
callq 0x342c0
cmpl $0x0, %eax
jne 0x33349
movq -0x10(%rbp), %rdi
callq 0x34340
cmpl $0x0, %eax
je 0x33358
movq -0x10(%rbp), %rax
movl 0x1f274(%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0x3335f
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: soap_recv_header
SOAP_FMAC2
soap_recv_header(struct soap *soap)
{ if (soap_getheader(soap) && soap->error == SOAP_TAG_MISMATCH)
    soap->error = SOAP_OK;
  if (soap->error == SOAP_OK && soap->fheader)
    soap->error = soap->fheader(soap);
  return soap->error;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
callq 0x3b10
cmpl $0x0, %eax
je 0x342f5
movq -0x8(%rbp), %rax
cmpl $0x3, 0x1f274(%rax)
jne 0x342f5
movq -0x8(%rbp), %rax
movl $0x0, 0x1f274(%rax)
movq -0x8(%rbp), %rax
cmpl $0x0, 0x1f274(%rax)
jne 0x3432d
movq -0x8(%rbp), %rax
cmpq $0x0, 0xbfe0(%rax)
je 0x3432d
movq -0x8(%rbp), %rax
movq 0xbfe0(%rax), %rax
movq -0x8(%rbp), %rdi
callq *%rax
movl %eax, %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x1f274(%rax)
movq -0x8(%rbp), %rax
movl 0x1f274(%rax), %eax
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: soap_body_begin_in
SOAP_FMAC2
soap_body_begin_in(struct soap *soap)
{ soap->part = SOAP_IN_BODY;
  if (soap_element_begin_in(soap, "SOAP-ENV:Body", 0, NULL))
    return soap->error;
  if (!soap->body)
    soap->part = SOAP_NO_BODY;
  return SOAP_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movw $0x6, 0x1e5f0(%rax)
movq -0x10(%rbp), %rdi
leaq 0x59ee(%rip), %rsi      # 0x39d52
xorl %edx, %edx
xorl %eax, %eax
movl %eax, %ecx
callq 0x1b350
cmpl $0x0, %eax
je 0x34383
movq -0x10(%rbp), %rax
movl 0x1f274(%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0x343a5
movq -0x10(%rbp), %rax
cmpw $0x0, 0xc166(%rax)
jne 0x3439e
movq -0x10(%rbp), %rax
movw $0x5, 0x1e5f0(%rax)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x10, %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: soap_body_begin_out
SOAP_FMAC2
soap_body_begin_out(struct soap *soap)
{ soap->part = SOAP_IN_BODY;
  if (soap->version == 1)
    soap->encoding = 1;
#ifndef WITH_LEAN
  if ((soap->mode & SOAP_SEC_WSUID) && soap_set_attr(soap, "wsu:Id", "Body", 1))
    return soap->error;
#endif
  return soap_element_begin_out(soap, "SOAP-ENV:Body", 0, NULL);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movw $0x6, 0x1e5f0(%rax)
movq -0x10(%rbp), %rax
movswl 0x2(%rax), %eax
cmpl $0x1, %eax
jne 0x349f3
movq -0x10(%rbp), %rax
movw $0x1, 0x1e5e8(%rax)
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
andl $0x80000000, %eax       # imm = 0x80000000
cmpl $0x0, %eax
je 0x34a34
movq -0x10(%rbp), %rdi
leaq 0x4f4d(%rip), %rsi      # 0x3995c
leaq 0x5345(%rip), %rdx      # 0x39d5b
movl $0x1, %ecx
callq 0x294c0
cmpl $0x0, %eax
je 0x34a34
movq -0x10(%rbp), %rax
movl 0x1f274(%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0x34a4d
movq -0x10(%rbp), %rdi
leaq 0x5313(%rip), %rsi      # 0x39d52
xorl %edx, %edx
xorl %eax, %eax
movl %eax, %ecx
callq 0x24590
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: soap_body_end_out
SOAP_FMAC2
soap_body_end_out(struct soap *soap)
{ if (soap_element_end_out(soap, "SOAP-ENV:Body"))
    return soap->error;
  soap->part = SOAP_END_BODY;
  return SOAP_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rdi
leaq 0x52db(%rip), %rsi      # 0x39d52
callq 0x24680
cmpl $0x0, %eax
je 0x34a90
movq -0x10(%rbp), %rax
movl 0x1f274(%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0x34aa4
movq -0x10(%rbp), %rax
movw $0x7, 0x1e5f0(%rax)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: soap_body_end_in
SOAP_FMAC2
soap_body_end_in(struct soap *soap)
{ if (soap->part == SOAP_NO_BODY)
    return soap->error = SOAP_OK;
  soap->part = SOAP_END_BODY;
  return soap_element_end_in(soap, "SOAP-ENV:Body");
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movswl 0x1e5f0(%rax), %eax
cmpl $0x5, %eax
jne 0x34ae3
movq -0x10(%rbp), %rax
movl $0x0, 0x1f274(%rax)
movl $0x0, -0x4(%rbp)
jmp 0x34b03
movq -0x10(%rbp), %rax
movw $0x7, 0x1e5f0(%rax)
movq -0x10(%rbp), %rdi
leaq 0x5257(%rip), %rsi      # 0x39d52
callq 0x1b620
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: soap_hex2s
SOAP_FMAC1
const char*
SOAP_FMAC2
soap_hex2s(struct soap *soap, const char *s, char *t, size_t l, int *n)
{ register const char *p;
  if (!s || !*s)
  { if (n)
      *n = 0;
    if (soap->error)
      return NULL;
    return SOAP_NON_NULL;
  }
  if (!t)
  { l = strlen(s) / 2;
    t = (char*)soap_malloc(soap, l);
  }
  if (!t)
    return NULL;
  p = t;
  while (l)
  { register int d1, d2;
    d1 = *s++;
    if (!d1)
      break;
    d2 = *s++;
    if (!d2)
      break;
    *t++ = ((d1 >= 'A' ? (d1 & 0x7) + 9 : d1 - '0') << 4) + (d2 >= 'A' ? (d2 & 0x7) + 9 : d2 - '0');
    l--;
  }
  if (n)
    *n = (int)(t - p);
  return p;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x3591c
movq -0x18(%rbp), %rax
cmpb $0x0, (%rax)
jne 0x35957
cmpq $0x0, -0x30(%rbp)
je 0x3592d
movq -0x30(%rbp), %rax
movl $0x0, (%rax)
movq -0x10(%rbp), %rax
cmpl $0x0, 0x1f274(%rax)
je 0x35947
movq $0x0, -0x8(%rbp)
jmp 0x35a74
leaq 0x3a33(%rip), %rax      # 0x39381
movq %rax, -0x8(%rbp)
jmp 0x35a74
cmpq $0x0, -0x20(%rbp)
jne 0x3597f
movq -0x18(%rbp), %rdi
callq 0x3100
shrq %rax
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0x19790
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
jne 0x35993
movq $0x0, -0x8(%rbp)
jmp 0x35a74
movq -0x20(%rbp), %rax
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x28(%rbp)
je 0x35a52
movq -0x18(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x18(%rbp)
movsbl (%rax), %eax
movl %eax, -0x3c(%rbp)
cmpl $0x0, -0x3c(%rbp)
jne 0x359c6
jmp 0x35a52
movq -0x18(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x18(%rbp)
movsbl (%rax), %eax
movl %eax, -0x40(%rbp)
cmpl $0x0, -0x40(%rbp)
jne 0x359e3
jmp 0x35a52
cmpl $0x41, -0x3c(%rbp)
jl 0x359f7
movl -0x3c(%rbp), %eax
andl $0x7, %eax
addl $0x9, %eax
movl %eax, -0x44(%rbp)
jmp 0x35a00
movl -0x3c(%rbp), %eax
subl $0x30, %eax
movl %eax, -0x44(%rbp)
movl -0x44(%rbp), %eax
shll $0x4, %eax
movl %eax, -0x48(%rbp)
cmpl $0x41, -0x40(%rbp)
jl 0x35a1d
movl -0x40(%rbp), %eax
andl $0x7, %eax
addl $0x9, %eax
movl %eax, -0x4c(%rbp)
jmp 0x35a26
movl -0x40(%rbp), %eax
subl $0x30, %eax
movl %eax, -0x4c(%rbp)
movl -0x48(%rbp), %eax
movl -0x4c(%rbp), %ecx
addl %ecx, %eax
movb %al, %cl
movq -0x20(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x20(%rbp)
movb %cl, (%rax)
movq -0x28(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x28(%rbp)
jmp 0x3599b
cmpq $0x0, -0x30(%rbp)
je 0x35a6c
movq -0x20(%rbp), %rax
movq -0x38(%rbp), %rcx
subq %rcx, %rax
movl %eax, %ecx
movq -0x30(%rbp), %rax
movl %ecx, (%rax)
movq -0x38(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x50, %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: soap_set_validation_fault
static const char*
soap_set_validation_fault(struct soap *soap, const char *s, const char *t)
{ if (*soap->tag)
    sprintf(soap->msgbuf, "Validation constraint violation: %s%s in element '%s'", s, t?t:SOAP_STR_EOS, soap->tag);
  else
    sprintf(soap->msgbuf, "Validation constraint violation: %s%s", s, t?t:SOAP_STR_EOS);
  return soap->msgbuf;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
cmpb $0x0, 0x1c998(%rax)
je 0x368fc
movq -0x8(%rbp), %rax
addq $0x1c198, %rax          # imm = 0x1C198
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x368c8
movq -0x18(%rbp), %rax
movq %rax, -0x30(%rbp)
jmp 0x368d5
leaq 0x2ab2(%rip), %rax      # 0x39381
movq %rax, -0x30(%rbp)
jmp 0x368d5
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rdi
movq -0x30(%rbp), %rcx
movq -0x8(%rbp), %r8
addq $0x1c998, %r8           # imm = 0x1C998
leaq 0x4462(%rip), %rsi      # 0x3ad55
movb $0x0, %al
callq 0x3320
jmp 0x3694a
movq -0x8(%rbp), %rax
addq $0x1c198, %rax          # imm = 0x1C198
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x36923
movq -0x18(%rbp), %rax
movq %rax, -0x48(%rbp)
jmp 0x36930
leaq 0x2a57(%rip), %rax      # 0x39381
movq %rax, -0x48(%rbp)
jmp 0x36930
movq -0x38(%rbp), %rdx
movq -0x40(%rbp), %rdi
movq -0x48(%rbp), %rcx
leaq 0x4448(%rip), %rsi      # 0x3ad8b
movb $0x0, %al
callq 0x3320
movq -0x8(%rbp), %rax
addq $0x1c198, %rax          # imm = 0x1C198
addq $0x50, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: soap_strerror
static const char*
soap_strerror(struct soap *soap)
{ register int err = soap->errnum;
  if (err)
  {
#ifndef WIN32
# ifdef HAVE_STRERROR_R
    strerror_r(err, soap->msgbuf, sizeof(soap->msgbuf));
# else
    return strerror(err);
# endif
#else
#ifndef UNDER_CE
    DWORD len;
    *soap->msgbuf = '\0';
    len = FormatMessageA(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, NULL, err, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPSTR)soap->msgbuf, (DWORD)sizeof(soap->msgbuf), NULL);
#else
    DWORD i, len;
    *soap->msgbuf = '\0';
    len = FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, NULL, err, 0, (LPTSTR)soap->msgbuf, (DWORD)(sizeof(soap->msgbuf)/sizeof(TCHAR)), NULL);
    for (i = 0; i <= len; i++)
    { if (((TCHAR*)soap->msgbuf)[i] < 0x80)
        soap->msgbuf[i] = (char)((TCHAR*)soap->msgbuf)[i];
      else
        soap->msgbuf[i] = '?';
    }
#endif
#endif
  }
  else
  { char *s = soap->msgbuf;
#ifndef WITH_LEAN
    int rt = soap->recv_timeout, st = soap->send_timeout;
    int ru = ' ', su = ' ';
#endif
    strcpy(s, "Operation interrupted or timed out");
#ifndef WITH_LEAN
    if (rt < 0)
    { rt = -rt;
      ru = 'u';
    }
    if (st < 0)
    { st = -st;
      su = 'u';
    }
    if (rt)
      sprintf(s + strlen(s), " (%d%cs receive delay)", rt, ru);
    if (st)
      sprintf(s + strlen(s), " (%d%cs send delay)", st, su);
#endif
  }
  return soap->msgbuf;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movl 0x1f27c(%rax), %eax
movl %eax, -0xc(%rbp)
cmpl $0x0, -0xc(%rbp)
je 0x3699c
movl -0xc(%rbp), %edi
movq -0x8(%rbp), %rsi
addq $0x1c198, %rsi          # imm = 0x1C198
movl $0x400, %edx            # imm = 0x400
callq 0x30b0
jmp 0x36a6c
movq -0x8(%rbp), %rax
addq $0x1c198, %rax          # imm = 0x1C198
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rax
movl 0x50(%rax), %eax
movl %eax, -0x1c(%rbp)
movq -0x8(%rbp), %rax
movl 0x54(%rax), %eax
movl %eax, -0x20(%rbp)
movl $0x20, -0x24(%rbp)
movl $0x20, -0x28(%rbp)
movq -0x18(%rbp), %rdi
leaq 0x4600(%rip), %rsi      # 0x3afd7
callq 0x3080
cmpl $0x0, -0x1c(%rbp)
jge 0x369f1
xorl %eax, %eax
subl -0x1c(%rbp), %eax
movl %eax, -0x1c(%rbp)
movl $0x75, -0x24(%rbp)
cmpl $0x0, -0x20(%rbp)
jge 0x36a06
xorl %eax, %eax
subl -0x20(%rbp), %eax
movl %eax, -0x20(%rbp)
movl $0x75, -0x28(%rbp)
cmpl $0x0, -0x1c(%rbp)
je 0x36a38
movq -0x18(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x18(%rbp), %rdi
callq 0x3100
movq -0x30(%rbp), %rdi
addq %rax, %rdi
movl -0x1c(%rbp), %edx
movl -0x24(%rbp), %ecx
leaq 0x45c9(%rip), %rsi      # 0x3affa
movb $0x0, %al
callq 0x3320
cmpl $0x0, -0x20(%rbp)
je 0x36a6a
movq -0x18(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x18(%rbp), %rdi
callq 0x3100
movq -0x38(%rbp), %rdi
addq %rax, %rdi
movl -0x20(%rbp), %edx
movl -0x28(%rbp), %ecx
leaq 0x45ae(%rip), %rsi      # 0x3b011
movb $0x0, %al
callq 0x3320
jmp 0x36a6c
movq -0x8(%rbp), %rax
addq $0x1c198, %rax          # imm = 0x1C198
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: http_error
static const char*
http_error(struct soap *soap, int status)
{ register const char *msg = SOAP_STR_EOS;
#ifndef WITH_LEAN
  msg = soap_code_str(h_http_error_codes, status);
  if (!msg)
    msg = SOAP_STR_EOS;
#endif
  return msg;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
leaq 0x28eb(%rip), %rax      # 0x39381
movq %rax, -0x18(%rbp)
movslq -0xc(%rbp), %rsi
leaq 0xd0cb(%rip), %rdi      # 0x43b70
callq 0x17f70
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
jne 0x36ac0
leaq 0x28c5(%rip), %rax      # 0x39381
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: soap_send_empty_response
SOAP_FMAC2
soap_send_empty_response(struct soap *soap, int httpstatuscode)
{ register soap_mode m = soap->omode;
  soap->count = 0;
  if ((m & SOAP_IO) == SOAP_IO_CHUNK)
    soap->omode = (m & ~SOAP_IO) | SOAP_IO_BUFFER;
  if (!soap_response(soap, httpstatuscode) && !soap_end_send(soap))
    soap->error = SOAP_STOP; /* stops the server's response */
  soap->omode = m;
  return soap_closesock(soap);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq -0x8(%rbp), %rax
movl 0xc(%rax), %eax
movl %eax, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq $0x0, 0xc170(%rax)
movl -0x10(%rbp), %eax
andl $0x3, %eax
cmpl $0x3, %eax
jne 0x36d43
movl -0x10(%rbp), %ecx
andl $-0x4, %ecx
orl $0x1, %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0xc(%rax)
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
callq 0x22910
cmpl $0x0, %eax
jne 0x36d70
movq -0x8(%rbp), %rdi
callq 0x257a0
cmpl $0x0, %eax
jne 0x36d70
movq -0x8(%rbp), %rax
movl $0x3e8, 0x1f274(%rax)   # imm = 0x3E8
movl -0x10(%rbp), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0xc(%rax)
movq -0x8(%rbp), %rdi
callq 0x1de40
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: soap_recv_empty_response
SOAP_FMAC2
soap_recv_empty_response(struct soap *soap)
{ if (!soap_begin_recv(soap))
    soap_end_recv(soap);
  else if (soap->error == SOAP_NO_DATA || soap->error == 202)
    soap->error = SOAP_OK;
  return soap_closesock(soap);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
callq 0x33370
cmpl $0x0, %eax
jne 0x36db5
movq -0x8(%rbp), %rdi
callq 0x26230
jmp 0x36de2
movq -0x8(%rbp), %rax
cmpl $0xe, 0x1f274(%rax)
je 0x36dd2
movq -0x8(%rbp), %rax
cmpl $0xca, 0x1f274(%rax)
jne 0x36de0
movq -0x8(%rbp), %rax
movl $0x0, 0x1f274(%rax)
jmp 0x36de2
movq -0x8(%rbp), %rdi
callq 0x1de40
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: soap_set_error
static int
soap_set_error(struct soap *soap, const char *faultcode, const char *faultsubcodeQName, const char *faultstring, const char *faultdetailXML, int soaperror)
{ *soap_faultcode(soap) = faultcode;
  if (faultsubcodeQName)
    *soap_faultsubcode(soap) = faultsubcodeQName;
  *soap_faultstring(soap) = faultstring;
  if (faultdetailXML && *faultdetailXML)
  { register const char **s = soap_faultdetail(soap);
    if (s)
      *s = faultdetailXML;
  }
  return soap->error = soaperror;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movl %r9d, -0x2c(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x8(%rbp), %rdi
callq 0x4550
movq -0x40(%rbp), %rcx
movq %rcx, (%rax)
cmpq $0x0, -0x18(%rbp)
je 0x36e57
movq -0x18(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x8(%rbp), %rdi
callq 0x45a0
movq -0x48(%rbp), %rcx
movq %rcx, (%rax)
movq -0x20(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x8(%rbp), %rdi
callq 0x4650
movq -0x50(%rbp), %rcx
movq %rcx, (%rax)
cmpq $0x0, -0x28(%rbp)
je 0x36ea3
movq -0x28(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
je 0x36ea3
movq -0x8(%rbp), %rdi
callq 0x46b0
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x38(%rbp)
je 0x36ea1
movq -0x28(%rbp), %rcx
movq -0x38(%rbp), %rax
movq %rcx, (%rax)
jmp 0x36ea3
movl -0x2c(%rbp), %eax
movq -0x8(%rbp), %rcx
movl %eax, 0x1f274(%rcx)
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/hkshenSmart[P]ONVIF-discovery_cs/stdsoap2.c
// Function: http_send_header
static int
http_send_header(struct soap *soap, const char *s)
{ register const char *t;
  do
  { t = strchr(s, '\n'); /* disallow \n in HTTP headers */
    if (!t)
      t = s + strlen(s);
    if (soap_send_raw(soap, s, t - s))
      return soap->error;
    s = t + 1;
  } while (*t);
  return SOAP_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x18(%rbp), %rdi
movl $0xa, %esi
callq 0x3130
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
jne 0x37758
movq -0x18(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rdi
callq 0x3100
movq %rax, %rcx
movq -0x28(%rbp), %rax
addq %rcx, %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0x18(%rbp), %rax
subq %rax, %rdx
callq 0x16bc0
cmpl $0x0, %eax
je 0x37784
movq -0x10(%rbp), %rax
movl 0x1f274(%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0x377a0
movq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x18(%rbp)
movq -0x20(%rbp), %rax
cmpb $0x0, (%rax)
jne 0x37720
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/yakushstanislav[P]EagleMQ/src/eagle.c
// Function: create_pid_file
void create_pid_file(const char *pidfile)
{
	FILE *fp = fopen(pidfile, "w");

	if (fp) {
		fprintf(fp, "%d\n", (int)getpid());
		fclose(fp);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
leaq 0xfa2a(%rip), %rsi      # 0x12051
callq 0x2400
movq %rax, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x2661
movq -0x10(%rbp), %rax
movq %rax, -0x18(%rbp)
callq 0x2110
movq -0x18(%rbp), %rdi
movl %eax, %edx
leaq 0xfa02(%rip), %rsi      # 0x12053
movb $0x0, %al
callq 0x22a0
movq -0x10(%rbp), %rdi
callq 0x2130
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/yakushstanislav[P]EagleMQ/src/eagle.c
// Function: daemonize
void daemonize(void)
{
	int fd;

	if (fork() != 0) {
		exit(0);
	}

	setsid();

	if ((fd = open("/dev/null", O_RDWR, 0)) != -1)
	{
		dup2(fd, STDIN_FILENO);
		dup2(fd, STDOUT_FILENO);
		dup2(fd, STDERR_FILENO);
		if (fd > STDERR_FILENO) {
			close(fd);
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
callq 0x24d0
cmpl $0x0, %eax
je 0x2689
xorl %edi, %edi
callq 0x2490
callq 0x2210
leaq 0xf9c2(%rip), %rdi      # 0x12057
movl $0x2, %esi
xorl %edx, %edx
movb $0x0, %al
callq 0x23e0
movl %eax, -0x4(%rbp)
cmpl $-0x1, %eax
je 0x26df
movl -0x4(%rbp), %edi
xorl %esi, %esi
callq 0x2180
movl -0x4(%rbp), %edi
movl $0x1, %esi
callq 0x2180
movl -0x4(%rbp), %edi
movl $0x2, %esi
callq 0x2180
cmpl $0x2, -0x4(%rbp)
jle 0x26dd
movl -0x4(%rbp), %edi
callq 0x2200
jmp 0x26df
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/yakushstanislav[P]EagleMQ/src/eagle.c
// Function: unblock_open_files_limit
void unblock_open_files_limit(void)
{
	rlim_t maxfiles = server->max_clients + 32;
	rlim_t oldlimit;
	struct rlimit limit;

	if (maxfiles < 1024) {
		maxfiles = 1024;
	}

	if (getrlimit(RLIMIT_NOFILE, &limit) == -1) {
		warning("Error getrlimit", strerror(errno));
		server->max_clients = 1024 - 32;
	} else {
		oldlimit = limit.rlim_cur;

		if (oldlimit < maxfiles) {
			limit.rlim_cur = maxfiles;
			limit.rlim_max = maxfiles;

			if (setrlimit(RLIMIT_NOFILE, &limit) == -1) {
				server->max_clients = oldlimit - 32;
			}
		}
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq 0x14bb1(%rip), %rax     # 0x172b0
movq 0x48(%rax), %rax
addq $0x20, %rax
movq %rax, -0x8(%rbp)
cmpq $0x400, -0x8(%rbp)      # imm = 0x400
jae 0x271d
movq $0x400, -0x8(%rbp)      # imm = 0x400
movl $0x7, %edi
leaq -0x20(%rbp), %rsi
callq 0x24b0
cmpl $-0x1, %eax
jne 0x275e
callq 0x2050
movl (%rax), %edi
callq 0x24c0
movq %rax, %rsi
leaq 0xf91b(%rip), %rdi      # 0x12061
movb $0x0, %al
callq 0x5840
movq 0x14b5c(%rip), %rax     # 0x172b0
movq $0x3e0, 0x48(%rax)      # imm = 0x3E0
jmp 0x27aa
movq -0x20(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
cmpq -0x8(%rbp), %rax
jae 0x27a8
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x18(%rbp)
movl $0x7, %edi
leaq -0x20(%rbp), %rsi
callq 0x2360
cmpl $-0x1, %eax
jne 0x27a6
movq -0x10(%rbp), %rcx
subq $0x20, %rcx
movq 0x14b0e(%rip), %rax     # 0x172b0
movq %rcx, 0x48(%rax)
jmp 0x27a8
jmp 0x27aa
addq $0x20, %rsp
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O0/yakushstanislav[P]EagleMQ/src/eagle.c
// Function: linux_overcommit_memory_value
int linux_overcommit_memory_value(void)
{
	FILE *fp;
	char buf[64];

	if ((fp = fopen("/proc/sys/vm/overcommit_memory", "r")) == NULL)
		return -1;

	if (fgets(buf, 64, fp) == NULL)
	{
		fclose(fp);
		return -1;
	}

	fclose(fp);

	return atoi(buf);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
leaq 0xf8b2(%rip), %rdi      # 0x12071
leaq 0x1006c(%rip), %rsi     # 0x12832
callq 0x2400
movq %rax, -0x10(%rbp)
cmpq $0x0, %rax
jne 0x27de
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x281d
leaq -0x50(%rbp), %rdi
movq -0x10(%rbp), %rdx
movl $0x40, %esi
callq 0x2250
cmpq $0x0, %rax
jne 0x2808
movq -0x10(%rbp), %rdi
callq 0x2130
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x281d
movq -0x10(%rbp), %rdi
callq 0x2130
leaq -0x50(%rbp), %rdi
callq 0x2460
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/yakushstanislav[P]EagleMQ/src/eagle.c
// Function: setup_signals
void setup_signals(void)
{
	struct sigaction sig;

	signal(SIGHUP, SIG_IGN);
	signal(SIGPIPE, SIG_IGN);

	sigemptyset(&sig.sa_mask);
	sig.sa_flags = SA_NODEFER | SA_ONSTACK | SA_RESETHAND;
	sig.sa_handler = sigterm_handler;

	sigaction(SIGTERM, &sig, NULL);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movl $0x1, %edi
movl $0x1, %esi
callq 0x2280
movl $0xd, %edi
movl $0x1, %esi
callq 0x2280
leaq -0x98(%rbp), %rdi
addq $0x8, %rdi
callq 0x22b0
movl $0xc8000000, -0x10(%rbp) # imm = 0xC8000000
leaq -0x77(%rip), %rax       # 0x2850
movq %rax, -0x98(%rbp)
movl $0xf, %edi
leaq -0x98(%rbp), %rsi
xorl %eax, %eax
movl %eax, %edx
callq 0x20b0
addq $0xa0, %rsp
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/yakushstanislav[P]EagleMQ/src/eagle.c
// Function: check_memory
void check_memory(void)
{
	if (server->max_memory)
	{
		if (xmalloc_used_memory() > server->max_memory)
		{
			if ((server->now_time - server->last_memcheck) > EG_MEMORY_CHECK_TIMEOUT)
			{
				warning("Used memory: %u, limit: %u",
					xmalloc_used_memory(), server->max_memory);

				server->last_memcheck = server->now_time;
			}

			server->nomemory = 1;
		}
		else
		{
			server->nomemory = 0;
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq 0x146d5(%rip), %rax     # 0x172b0
cmpq $0x0, 0x50(%rax)
je 0x2c7d
callq 0x5530
movq 0x146be(%rip), %rcx     # 0x172b0
cmpq 0x50(%rcx), %rax
jbe 0x2c6a
movq 0x146b1(%rip), %rax     # 0x172b0
movq 0x188(%rax), %rax
movq 0x146a3(%rip), %rcx     # 0x172b0
subq 0x1a8(%rcx), %rax
cmpq $0xa, %rax
jle 0x2c57
callq 0x5530
movq %rax, %rsi
movq 0x14687(%rip), %rax     # 0x172b0
movq 0x50(%rax), %rdx
leaq 0xf4e0(%rip), %rdi      # 0x12114
movb $0x0, %al
callq 0x5840
movq 0x1466e(%rip), %rax     # 0x172b0
movq 0x188(%rax), %rcx
movq 0x14660(%rip), %rax     # 0x172b0
movq %rcx, 0x1a8(%rax)
movq 0x14652(%rip), %rax     # 0x172b0
movl $0x1, 0x1b0(%rax)
jmp 0x2c7b
movq 0x1463f(%rip), %rax     # 0x172b0
movl $0x0, 0x1b0(%rax)
jmp 0x2c7d
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/yakushstanislav[P]EagleMQ/src/eagle.c
// Function: process_queues_messages
void process_queues_messages(void)
{
	ListNode *node;
	ListIterator iterator;
	Queue_t *queue_t;

	list_rewind(server->queues, &iterator);
	while ((node = list_next_node(&iterator)) != NULL)
	{
		queue_t = EG_LIST_NODE_VALUE(node);
		process_expired_messages_queue_t(queue_t, server->now_timems);
		process_unconfirmed_messages_queue_t(queue_t, server->now_timems);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq 0x14621(%rip), %rax     # 0x172b0
movq 0x170(%rax), %rdi
leaq -0x18(%rbp), %rsi
callq 0xc520
leaq -0x18(%rbp), %rdi
callq 0xc450
movq %rax, -0x8(%rbp)
cmpq $0x0, %rax
je 0x2cf2
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdi
movq 0x145e7(%rip), %rax     # 0x172b0
movq 0x190(%rax), %rax
movl %eax, %esi
callq 0xd970
movq -0x20(%rbp), %rdi
movq 0x145ce(%rip), %rax     # 0x172b0
movq 0x190(%rax), %rax
movl %eax, %esi
callq 0xd9f0
jmp 0x2c9f
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/yakushstanislav[P]EagleMQ/src/eagle.c
// Function: storage_timeout
void storage_timeout(void)
{
	pid_t pid;
	int stat;

	if (server->child_pid != -1)
	{
		if ((pid = wait3(&stat, WNOHANG, NULL)) != 0)
		{
			if (WEXITSTATUS(stat) != EG_STATUS_OK) {
				warning("Error background saving data in %s", server->storage);
			}

			server->child_pid = -1;
		}
	}

	if (server->storage_timeout && server->child_pid == -1)
	{
		if ((server->now_time - server->last_save) > server->storage_timeout)
		{
			wlog("Save all data to the storage...");
			if (storage_save_background(server->storage) != EG_STATUS_OK) {
				warning("Error saving data in %s", server->storage);
			}

			server->last_save = server->now_time;
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq 0x145a1(%rip), %rax     # 0x172b0
cmpl $-0x1, 0x34(%rax)
je 0x2d6b
leaq -0x8(%rbp), %rdi
movl $0x1, %esi
xorl %eax, %eax
movl %eax, %edx
callq 0x2140
movl %eax, -0x4(%rbp)
cmpl $0x0, %eax
je 0x2d69
movl -0x8(%rbp), %eax
andl $0xff00, %eax           # imm = 0xFF00
sarl $0x8, %eax
cmpl $0x0, %eax
je 0x2d5b
movq 0x1456a(%rip), %rax     # 0x172b0
movq 0x1c0(%rax), %rsi
leaq 0xf3db(%rip), %rdi      # 0x1212f
movb $0x0, %al
callq 0x5840
movq 0x1454e(%rip), %rax     # 0x172b0
movl $0xffffffff, 0x34(%rax) # imm = 0xFFFFFFFF
jmp 0x2d6b
movq 0x1453e(%rip), %rax     # 0x172b0
cmpl $0x0, 0x5c(%rax)
je 0x2e19
movq 0x1452d(%rip), %rax     # 0x172b0
cmpl $-0x1, 0x34(%rax)
jne 0x2e19
movq 0x1451c(%rip), %rax     # 0x172b0
movq 0x188(%rax), %rax
movq 0x1450e(%rip), %rcx     # 0x172b0
subq 0x1a0(%rcx), %rax
movq 0x14500(%rip), %rcx     # 0x172b0
movslq 0x5c(%rcx), %rcx
cmpq %rcx, %rax
jle 0x2e17
leaq 0xf392(%rip), %rdi      # 0x12152
movb $0x0, %al
callq 0x5b50
movq 0x144e2(%rip), %rax     # 0x172b0
movq 0x1c0(%rax), %rdi
callq 0xf5d0
cmpl $0x0, %eax
je 0x2dfb
movq 0x144ca(%rip), %rax     # 0x172b0
movq 0x1c0(%rax), %rsi
leaq 0xf37e(%rip), %rdi      # 0x12172
movb $0x0, %al
callq 0x5840
movq 0x144ae(%rip), %rax     # 0x172b0
movq 0x188(%rax), %rcx
movq 0x144a0(%rip), %rax     # 0x172b0
movq %rcx, 0x1a0(%rax)
jmp 0x2e19
addq $0x10, %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/yakushstanislav[P]EagleMQ/src/eagle.c
// Function: server_updater
int server_updater(EventLoop *loop, long long id, void *data)
{
	EG_NOTUSED(loop);
	EG_NOTUSED(id);
	EG_NOTUSED(data);

	server->now_time = time(NULL);
	server->now_timems = mstime();
	server->msg_counter = 0;

	check_memory();
	client_timeout();
	process_queues_messages();
	storage_timeout();

	if (server->shutdown) {
		stop_event_loop(server->loop);
	}

	return 100;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
xorl %eax, %eax
movl %eax, %edi
callq 0x22e0
movq %rax, %rcx
movq 0x14469(%rip), %rax     # 0x172b0
movq %rcx, 0x188(%rax)
callq 0x28f0
movq %rax, %rcx
movq 0x14453(%rip), %rax     # 0x172b0
movq %rcx, 0x190(%rax)
movq 0x14445(%rip), %rax     # 0x172b0
movl $0x0, 0x1b4(%rax)
callq 0x2bd0
callq 0xb510
callq 0x2c80
callq 0x2d00
movq 0x14420(%rip), %rax     # 0x172b0
cmpl $0x0, 0x1e0(%rax)
je 0x2ea8
movq 0x14410(%rip), %rax     # 0x172b0
movq (%rax), %rdi
callq 0x3c40
movl $0x64, %eax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)