
/* WARNING: Enum "MHD_FLAG": Some values do not have unique names */
/* WARNING: Enum "gnutls_pk_algorithm_t": Some values do not have unique names */
/* WARNING: Enum "gnutls_certificate_type_t": Some values do not have unique names */

void internal_suspend_connection_(MHD_Connection *connection)

{
  MHD_mutex_ *__mutex;
  MHD_Daemon *pMVar1;
  int iVar2;
  MHD_Connection *pMVar3;
  
  pMVar1 = connection->daemon;
  __mutex = &pMVar1->cleanup_connection_mutex;
  iVar2 = pthread_mutex_lock((pthread_mutex_t *)__mutex);
  if (iVar2 == 0) {
    if (connection->resuming != false) goto LAB_0010c474;
    if ((pMVar1->options & MHD_USE_THREAD_PER_CONNECTION) == MHD_NO_FLAG) {
      if (connection->connection_timeout != pMVar1->connection_timeout) {
        if (connection->prevX == (MHD_Connection *)0x0) {
          pMVar1->manual_timeout_head = connection->nextX;
        }
        else {
          connection->prevX->nextX = connection->nextX;
        }
        if (connection->nextX == (MHD_Connection *)0x0) {
          pMVar1->manual_timeout_tail = connection->prevX;
        }
        else {
          connection->nextX->prevX = connection->prevX;
        }
        connection->nextX = (MHD_Connection *)0x0;
        connection->prevX = (MHD_Connection *)0x0;
        goto LAB_0010c380;
      }
      goto LAB_0010c4a7;
    }
  }
  else {
    (*mhd_panic)(mhd_panic_cls,"daemon.c",0xa83,"Failed to lock mutex.\n");
LAB_0010c474:
    connection->resuming = false;
    iVar2 = pthread_mutex_unlock((pthread_mutex_t *)__mutex);
    if (iVar2 == 0) {
      return;
    }
    (*mhd_panic)(mhd_panic_cls,"daemon.c",0xa8a,"Failed to unlock mutex.\n");
LAB_0010c4a7:
    if (connection->prevX == (MHD_Connection *)0x0) {
      pMVar1->normal_timeout_head = connection->nextX;
    }
    else {
      connection->prevX->nextX = connection->nextX;
    }
    if (connection->nextX == (MHD_Connection *)0x0) {
      pMVar1->normal_timeout_tail = connection->prevX;
    }
    else {
      connection->nextX->prevX = connection->prevX;
    }
    connection->nextX = (MHD_Connection *)0x0;
    connection->prevX = (MHD_Connection *)0x0;
  }
LAB_0010c380:
  if (connection->prev == (MHD_Connection *)0x0) {
    pMVar1->connections_head = connection->next;
  }
  else {
    connection->prev->next = connection->next;
  }
  if (connection->next == (MHD_Connection *)0x0) {
    pMVar1->connections_tail = connection->prev;
  }
  else {
    connection->next->prev = connection->prev;
  }
  connection->next = (MHD_Connection *)0x0;
  connection->prev = (MHD_Connection *)0x0;
  pMVar3 = pMVar1->suspended_connections_head;
  connection->next = pMVar3;
  if (pMVar1->suspended_connections_tail == (MHD_Connection *)0x0) {
    pMVar1->suspended_connections_tail = connection;
  }
  else {
    pMVar3->prev = connection;
  }
  pMVar1->suspended_connections_head = connection;
  connection->suspended = true;
  if ((pMVar1->options & MHD_USE_EPOLL) != MHD_NO_FLAG) {
    if ((connection->epoll_state & MHD_EPOLL_STATE_IN_EREADY_EDLL) != MHD_EPOLL_STATE_UNREADY) {
      if (connection->prevE == (MHD_Connection *)0x0) {
        pMVar1->eready_head = connection->nextE;
      }
      else {
        connection->prevE->nextE = connection->nextE;
      }
      if (connection->nextE == (MHD_Connection *)0x0) {
        pMVar1->eready_tail = connection->prevE;
      }
      else {
        connection->nextE->prevE = connection->prevE;
      }
      connection->nextE = (MHD_Connection *)0x0;
      connection->prevE = (MHD_Connection *)0x0;
      connection->epoll_state = connection->epoll_state & ~MHD_EPOLL_STATE_IN_EREADY_EDLL;
    }
    if ((connection->epoll_state & MHD_EPOLL_STATE_IN_EPOLL_SET) != MHD_EPOLL_STATE_UNREADY) {
      iVar2 = epoll_ctl(pMVar1->epoll_fd,2,connection->socket_fd,(epoll_event *)0x0);
      if (iVar2 != 0) {
        (*mhd_panic)(mhd_panic_cls,"daemon.c",0xab1,"Failed to remove FD from epoll set\n");
        goto LAB_0010c593;
      }
      connection->epoll_state = connection->epoll_state & ~MHD_EPOLL_STATE_IN_EPOLL_SET;
    }
    connection->epoll_state = connection->epoll_state | MHD_EPOLL_STATE_SUSPENDED;
  }
  iVar2 = pthread_mutex_unlock((pthread_mutex_t *)__mutex);
  if (iVar2 == 0) {
    return;
  }
LAB_0010c593:
  pMVar3 = (MHD_Connection *)mhd_panic_cls;
  (*mhd_panic)(mhd_panic_cls,"daemon.c",0xab8,"Failed to unlock mutex.\n");
  if ((pMVar3->daemon->options & 0x2000) == MHD_NO_FLAG) {
    pMVar3 = (MHD_Connection *)mhd_panic_cls;
    (*mhd_panic)(mhd_panic_cls,"daemon.c",0xae2,
                 "Cannot suspend connections without enabling MHD_ALLOW_SUSPEND_RESUME!\n");
  }
  else if (pMVar3->urh != (MHD_UpgradeResponseHandle *)0x0) {
    MHD_DLOG(pMVar3->daemon,"Error: connection scheduled for \"upgrade\" cannot be suspended");
    return;
  }
  internal_suspend_connection_(pMVar3);
  return;
}



void FUN_0010c2fa(long *param_1)

{
  pthread_mutex_t *__mutex;
  long lVar1;
  int iVar2;
  long lVar3;
  
  lVar3 = param_1[6];
  __mutex = (pthread_mutex_t *)(lVar3 + 0x150);
  iVar2 = pthread_mutex_lock(__mutex);
  if (iVar2 == 0) {
    if (*(char *)((long)param_1 + 0x194) != '\0') goto LAB_0010c474;
    if ((*(byte *)(lVar3 + 0x1b4) & 4) == 0) {
      if (param_1[0x24] != *(long *)(lVar3 + 0x1a8)) {
        if (param_1[5] == 0) {
          *(long *)(lVar3 + 0x70) = param_1[4];
        }
        else {
          *(long *)(param_1[5] + 0x20) = param_1[4];
        }
        if (param_1[4] == 0) {
          *(long *)(lVar3 + 0x78) = param_1[5];
        }
        else {
          *(long *)(param_1[4] + 0x28) = param_1[5];
        }
        param_1[4] = 0;
        param_1[5] = 0;
        goto LAB_0010c380;
      }
      goto LAB_0010c4a7;
    }
  }
  else {
    (*DAT_00120070)(DAT_00120068,"daemon.c",0xa83,"Failed to lock mutex.\n");
LAB_0010c474:
    *(undefined1 *)((long)param_1 + 0x194) = 0;
    iVar2 = pthread_mutex_unlock(__mutex);
    if (iVar2 == 0) {
      return;
    }
    (*DAT_00120070)(DAT_00120068,"daemon.c",0xa8a,"Failed to unlock mutex.\n");
LAB_0010c4a7:
    if (param_1[5] == 0) {
      *(long *)(lVar3 + 0x60) = param_1[4];
    }
    else {
      *(long *)(param_1[5] + 0x20) = param_1[4];
    }
    if (param_1[4] == 0) {
      *(long *)(lVar3 + 0x68) = param_1[5];
    }
    else {
      *(long *)(param_1[4] + 0x28) = param_1[5];
    }
    param_1[4] = 0;
    param_1[5] = 0;
  }
LAB_0010c380:
  if (param_1[3] == 0) {
    *(long *)(lVar3 + 0x10) = param_1[2];
  }
  else {
    *(long *)(param_1[3] + 0x10) = param_1[2];
  }
  if (param_1[2] == 0) {
    *(long *)(lVar3 + 0x18) = param_1[3];
  }
  else {
    *(long *)(param_1[2] + 0x18) = param_1[3];
  }
  param_1[2] = 0;
  param_1[3] = 0;
  lVar1 = *(long *)(lVar3 + 0x20);
  param_1[2] = lVar1;
  if (*(long *)(lVar3 + 0x28) == 0) {
    *(long **)(lVar3 + 0x28) = param_1;
  }
  else {
    *(long **)(lVar1 + 0x18) = param_1;
  }
  *(long **)(lVar3 + 0x20) = param_1;
  *(undefined1 *)((long)param_1 + 0x18d) = 1;
  if ((*(byte *)(lVar3 + 0x1b5) & 2) != 0) {
    if ((*(byte *)((long)param_1 + 0x13c) & 4) != 0) {
      if ((long *)param_1[1] == (long *)0x0) {
        *(long *)(lVar3 + 0x40) = *param_1;
      }
      else {
        *(long *)param_1[1] = *param_1;
      }
      if (*param_1 == 0) {
        *(long *)(lVar3 + 0x48) = param_1[1];
      }
      else {
        *(long *)(*param_1 + 8) = param_1[1];
      }
      *param_1 = 0;
      param_1[1] = 0;
      *(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) & 0xfffffffb;
    }
    if ((*(byte *)((long)param_1 + 0x13c) & 8) != 0) {
      iVar2 = epoll_ctl(*(int *)(lVar3 + 0x180),2,(int)param_1[0x26],(epoll_event *)0x0);
      if (iVar2 != 0) {
        (*DAT_00120070)(DAT_00120068,"daemon.c",0xab1,"Failed to remove FD from epoll set\n");
        goto LAB_0010c593;
      }
      *(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) & 0xfffffff7;
    }
    *(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) | 0x10;
  }
  iVar2 = pthread_mutex_unlock(__mutex);
  if (iVar2 == 0) {
    return;
  }
LAB_0010c593:
  lVar3 = DAT_00120068;
  (*DAT_00120070)(DAT_00120068,"daemon.c",0xab8,"Failed to unlock mutex.\n");
  if ((*(byte *)(*(long *)(lVar3 + 0x30) + 0x1b5) & 0x20) == 0) {
    (*DAT_00120070)(DAT_00120068,"daemon.c",0xae2,
                    "Cannot suspend connections without enabling MHD_ALLOW_SUSPEND_RESUME!\n");
  }
  else if (*(long *)(lVar3 + 0x170) != 0) {
    FUN_00110c11(*(long *)(lVar3 + 0x30),
                 "Error: connection scheduled for \"upgrade\" cannot be suspended");
    return;
  }
  FUN_0010c2fa();
  return;
}


PUSH R12
PUSH RBP
PUSH RBX
MOV RBX,RDI
MOV RBP,qword ptr [RDI + 0x30]
LEA R12,[RBP + 0x150]
MOV RDI,R12
CALL 0x00104770
TEST EAX,EAX
JNZ 0x0010c454
CMP byte ptr [RBX + 0x194],0x0
JNZ 0x0010c474
TEST byte ptr [RBP + 0x1b4],0x4
JNZ 0x0010c380
MOV RAX,qword ptr [RBP + 0x1a8]
CMP qword ptr [RBX + 0x120],RAX
JZ 0x0010c4a7
MOV RAX,qword ptr [RBX + 0x28]
TEST RAX,RAX
JZ 0x0010c4f2
MOV RDX,qword ptr [RBX + 0x20]
MOV qword ptr [RAX + 0x20],RDX
MOV RAX,qword ptr [RBX + 0x20]
TEST RAX,RAX
JZ 0x0010c4ff
MOV RDX,qword ptr [RBX + 0x28]
MOV qword ptr [RAX + 0x28],RDX
MOV qword ptr [RBX + 0x20],0x0
MOV qword ptr [RBX + 0x28],0x0
MOV RAX,qword ptr [RBX + 0x18]
TEST RAX,RAX
JZ 0x0010c50c
MOV RDX,qword ptr [RBX + 0x10]
MOV qword ptr [RAX + 0x10],RDX
MOV RAX,qword ptr [RBX + 0x10]
TEST RAX,RAX
JZ 0x0010c519
MOV RDX,qword ptr [RBX + 0x18]
MOV qword ptr [RAX + 0x18],RDX
MOV qword ptr [RBX + 0x10],0x0
MOV qword ptr [RBX + 0x18],0x0
MOV RAX,qword ptr [RBP + 0x20]
MOV qword ptr [RBX + 0x10],RAX
CMP qword ptr [RBP + 0x28],0x0
JZ 0x0010c526
MOV qword ptr [RAX + 0x18],RBX
MOV qword ptr [RBP + 0x20],RBX
MOV byte ptr [RBX + 0x18d],0x1
TEST byte ptr [RBP + 0x1b5],0x2
JZ 0x0010c43f
TEST byte ptr [RBX + 0x13c],0x4
JZ 0x0010c42b
MOV RAX,qword ptr [RBX + 0x8]
TEST RAX,RAX
JZ 0x0010c52f
MOV RDX,qword ptr [RBX]
MOV qword ptr [RAX],RDX
MOV RAX,qword ptr [RBX]
TEST RAX,RAX
JZ 0x0010c53b
MOV RDX,qword ptr [RBX + 0x8]
MOV qword ptr [RAX + 0x8],RDX
MOV qword ptr [RBX],0x0
MOV qword ptr [RBX + 0x8],0x0
AND dword ptr [RBX + 0x13c],0xfffffffb
TEST byte ptr [RBX + 0x13c],0x8
JNZ 0x0010c548
OR dword ptr [RBX + 0x13c],0x10
MOV RDI,R12
CALL 0x00104490
TEST EAX,EAX
JNZ 0x0010c593
POP RBX
POP RBP
POP R12
RET
LEA RCX,[0x1180c7]
MOV EDX,0xa83
LEA RSI,[0x119068]
MOV RDI,qword ptr [0x00120068]
CALL qword ptr [0x00120070]
MOV byte ptr [RBX + 0x194],0x0
MOV RDI,R12
CALL 0x00104490
TEST EAX,EAX
JZ 0x0010c44f
LEA RCX,[0x1180de]
MOV EDX,0xa8a
LEA RSI,[0x119068]
MOV RDI,qword ptr [0x00120068]
CALL qword ptr [0x00120070]
MOV RAX,qword ptr [RBX + 0x28]
TEST RAX,RAX
JZ 0x0010c4de
MOV RDX,qword ptr [RBX + 0x20]
MOV qword ptr [RAX + 0x20],RDX
MOV RAX,qword ptr [RBX + 0x20]
TEST RAX,RAX
JZ 0x0010c4e8
MOV RDX,qword ptr [RBX + 0x28]
MOV qword ptr [RAX + 0x28],RDX
MOV qword ptr [RBX + 0x20],0x0
MOV qword ptr [RBX + 0x28],0x0
JMP 0x0010c380
MOV RAX,qword ptr [RBX + 0x20]
MOV qword ptr [RBP + 0x60],RAX
JMP 0x0010c4b8
MOV RAX,qword ptr [RBX + 0x28]
MOV qword ptr [RBP + 0x68],RAX
JMP 0x0010c4c9
MOV RAX,qword ptr [RBX + 0x20]
MOV qword ptr [RBP + 0x70],RAX
JMP 0x0010c35b
MOV RAX,qword ptr [RBX + 0x28]
MOV qword ptr [RBP + 0x78],RAX
JMP 0x0010c370
MOV RAX,qword ptr [RBX + 0x10]
MOV qword ptr [RBP + 0x10],RAX
JMP 0x0010c395
MOV RAX,qword ptr [RBX + 0x18]
MOV qword ptr [RBP + 0x18],RAX
JMP 0x0010c3aa
MOV qword ptr [RBP + 0x28],RBX
JMP 0x0010c3d1
MOV RAX,qword ptr [RBX]
MOV qword ptr [RBP + 0x40],RAX
JMP 0x0010c401
MOV RAX,qword ptr [RBX + 0x8]
MOV qword ptr [RBP + 0x48],RAX
JMP 0x0010c415
MOV EDX,dword ptr [RBX + 0x130]
MOV EDI,dword ptr [RBP + 0x180]
MOV ECX,0x0
MOV ESI,0x2
CALL 0x00104310
TEST EAX,EAX
JNZ 0x0010c573
AND dword ptr [RBX + 0x13c],0xfffffff7
JMP 0x0010c438
LEA RCX,[0x118330]
MOV EDX,0xab1
LEA RSI,[0x119068]
MOV RDI,qword ptr [0x00120068]
CALL qword ptr [0x00120070]
LEA RCX,[0x1180de]
MOV EDX,0xab8
LEA RSI,[0x119068]
MOV RDI,qword ptr [0x00120068]
CALL qword ptr [0x00120070]
(translation_unit "void FUN_0010c2fa(long *param_1)\n\n{\n  pthread_mutex_t *__mutex;\n  long lVar1;\n  int iVar2;\n  long lVar3;\n  \n  lVar3 = param_1[6];\n  __mutex = (pthread_mutex_t *)(lVar3 + 0x150);\n  iVar2 = pthread_mutex_lock(__mutex);\n  if (iVar2 == 0) {\n    if (*(char *)((long)param_1 + 0x194) != '\0') goto LAB_0010c474;\n    if ((*(byte *)(lVar3 + 0x1b4) & 4) == 0) {\n      if (param_1[0x24] != *(long *)(lVar3 + 0x1a8)) {\n        if (param_1[5] == 0) {\n          *(long *)(lVar3 + 0x70) = param_1[4];\n        }\n        else {\n          *(long *)(param_1[5] + 0x20) = param_1[4];\n        }\n        if (param_1[4] == 0) {\n          *(long *)(lVar3 + 0x78) = param_1[5];\n        }\n        else {\n          *(long *)(param_1[4] + 0x28) = param_1[5];\n        }\n        param_1[4] = 0;\n        param_1[5] = 0;\n        goto LAB_0010c380;\n      }\n      goto LAB_0010c4a7;\n    }\n  }\n  else {\n    (*DAT_00120070)(DAT_00120068,"daemon.c",0xa83,"Failed to lock mutex.\n");\nLAB_0010c474:\n    *(undefined1 *)((long)param_1 + 0x194) = 0;\n    iVar2 = pthread_mutex_unlock(__mutex);\n    if (iVar2 == 0) {\n      return;\n    }\n    (*DAT_00120070)(DAT_00120068,"daemon.c",0xa8a,"Failed to unlock mutex.\n");\nLAB_0010c4a7:\n    if (param_1[5] == 0) {\n      *(long *)(lVar3 + 0x60) = param_1[4];\n    }\n    else {\n      *(long *)(param_1[5] + 0x20) = param_1[4];\n    }\n    if (param_1[4] == 0) {\n      *(long *)(lVar3 + 0x68) = param_1[5];\n    }\n    else {\n      *(long *)(param_1[4] + 0x28) = param_1[5];\n    }\n    param_1[4] = 0;\n    param_1[5] = 0;\n  }\nLAB_0010c380:\n  if (param_1[3] == 0) {\n    *(long *)(lVar3 + 0x10) = param_1[2];\n  }\n  else {\n    *(long *)(param_1[3] + 0x10) = param_1[2];\n  }\n  if (param_1[2] == 0) {\n    *(long *)(lVar3 + 0x18) = param_1[3];\n  }\n  else {\n    *(long *)(param_1[2] + 0x18) = param_1[3];\n  }\n  param_1[2] = 0;\n  param_1[3] = 0;\n  lVar1 = *(long *)(lVar3 + 0x20);\n  param_1[2] = lVar1;\n  if (*(long *)(lVar3 + 0x28) == 0) {\n    *(long **)(lVar3 + 0x28) = param_1;\n  }\n  else {\n    *(long **)(lVar1 + 0x18) = param_1;\n  }\n  *(long **)(lVar3 + 0x20) = param_1;\n  *(undefined1 *)((long)param_1 + 0x18d) = 1;\n  if ((*(byte *)(lVar3 + 0x1b5) & 2) != 0) {\n    if ((*(byte *)((long)param_1 + 0x13c) & 4) != 0) {\n      if ((long *)param_1[1] == (long *)0x0) {\n        *(long *)(lVar3 + 0x40) = *param_1;\n      }\n      else {\n        *(long *)param_1[1] = *param_1;\n      }\n      if (*param_1 == 0) {\n        *(long *)(lVar3 + 0x48) = param_1[1];\n      }\n      else {\n        *(long *)(*param_1 + 8) = param_1[1];\n      }\n      *param_1 = 0;\n      param_1[1] = 0;\n      *(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) & 0xfffffffb;\n    }\n    if ((*(byte *)((long)param_1 + 0x13c) & 8) != 0) {\n      iVar2 = epoll_ctl(*(int *)(lVar3 + 0x180),2,(int)param_1[0x26],(epoll_event *)0x0);\n      if (iVar2 != 0) {\n        (*DAT_00120070)(DAT_00120068,"daemon.c",0xab1,"Failed to remove FD from epoll set\n");\n        goto LAB_0010c593;\n      }\n      *(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) & 0xfffffff7;\n    }\n    *(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) | 0x10;\n  }\n  iVar2 = pthread_mutex_unlock(__mutex);\n  if (iVar2 == 0) {\n    return;\n  }\nLAB_0010c593:\n  lVar3 = DAT_00120068;\n  (*DAT_00120070)(DAT_00120068,"daemon.c",0xab8,"Failed to unlock mutex.\n");\n  if ((*(byte *)(*(long *)(lVar3 + 0x30) + 0x1b5) & 0x20) == 0) {\n    (*DAT_00120070)(DAT_00120068,"daemon.c",0xae2,\n                    "Cannot suspend connections without enabling MHD_ALLOW_SUSPEND_RESUME!\n");\n  }\n  else if (*(long *)(lVar3 + 0x170) != 0) {\n    FUN_00110c11(*(long *)(lVar3 + 0x30),\n                 "Error: connection scheduled for \"upgrade\" cannot be suspended");\n    return;\n  }\n  FUN_0010c2fa();\n  return;\n}\n\n" (function_definition "void FUN_0010c2fa(long *param_1)\n\n{\n  pthread_mutex_t *__mutex;\n  long lVar1;\n  int iVar2;\n  long lVar3;\n  \n  lVar3 = param_1[6];\n  __mutex = (pthread_mutex_t *)(lVar3 + 0x150);\n  iVar2 = pthread_mutex_lock(__mutex);\n  if (iVar2 == 0) {\n    if (*(char *)((long)param_1 + 0x194) != '\0') goto LAB_0010c474;\n    if ((*(byte *)(lVar3 + 0x1b4) & 4) == 0) {\n      if (param_1[0x24] != *(long *)(lVar3 + 0x1a8)) {\n        if (param_1[5] == 0) {\n          *(long *)(lVar3 + 0x70) = param_1[4];\n        }\n        else {\n          *(long *)(param_1[5] + 0x20) = param_1[4];\n        }\n        if (param_1[4] == 0) {\n          *(long *)(lVar3 + 0x78) = param_1[5];\n        }\n        else {\n          *(long *)(param_1[4] + 0x28) = param_1[5];\n        }\n        param_1[4] = 0;\n        param_1[5] = 0;\n        goto LAB_0010c380;\n      }\n      goto LAB_0010c4a7;\n    }\n  }\n  else {\n    (*DAT_00120070)(DAT_00120068,"daemon.c",0xa83,"Failed to lock mutex.\n");\nLAB_0010c474:\n    *(undefined1 *)((long)param_1 + 0x194) = 0;\n    iVar2 = pthread_mutex_unlock(__mutex);\n    if (iVar2 == 0) {\n      return;\n    }\n    (*DAT_00120070)(DAT_00120068,"daemon.c",0xa8a,"Failed to unlock mutex.\n");\nLAB_0010c4a7:\n    if (param_1[5] == 0) {\n      *(long *)(lVar3 + 0x60) = param_1[4];\n    }\n    else {\n      *(long *)(param_1[5] + 0x20) = param_1[4];\n    }\n    if (param_1[4] == 0) {\n      *(long *)(lVar3 + 0x68) = param_1[5];\n    }\n    else {\n      *(long *)(param_1[4] + 0x28) = param_1[5];\n    }\n    param_1[4] = 0;\n    param_1[5] = 0;\n  }\nLAB_0010c380:\n  if (param_1[3] == 0) {\n    *(long *)(lVar3 + 0x10) = param_1[2];\n  }\n  else {\n    *(long *)(param_1[3] + 0x10) = param_1[2];\n  }\n  if (param_1[2] == 0) {\n    *(long *)(lVar3 + 0x18) = param_1[3];\n  }\n  else {\n    *(long *)(param_1[2] + 0x18) = param_1[3];\n  }\n  param_1[2] = 0;\n  param_1[3] = 0;\n  lVar1 = *(long *)(lVar3 + 0x20);\n  param_1[2] = lVar1;\n  if (*(long *)(lVar3 + 0x28) == 0) {\n    *(long **)(lVar3 + 0x28) = param_1;\n  }\n  else {\n    *(long **)(lVar1 + 0x18) = param_1;\n  }\n  *(long **)(lVar3 + 0x20) = param_1;\n  *(undefined1 *)((long)param_1 + 0x18d) = 1;\n  if ((*(byte *)(lVar3 + 0x1b5) & 2) != 0) {\n    if ((*(byte *)((long)param_1 + 0x13c) & 4) != 0) {\n      if ((long *)param_1[1] == (long *)0x0) {\n        *(long *)(lVar3 + 0x40) = *param_1;\n      }\n      else {\n        *(long *)param_1[1] = *param_1;\n      }\n      if (*param_1 == 0) {\n        *(long *)(lVar3 + 0x48) = param_1[1];\n      }\n      else {\n        *(long *)(*param_1 + 8) = param_1[1];\n      }\n      *param_1 = 0;\n      param_1[1] = 0;\n      *(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) & 0xfffffffb;\n    }\n    if ((*(byte *)((long)param_1 + 0x13c) & 8) != 0) {\n      iVar2 = epoll_ctl(*(int *)(lVar3 + 0x180),2,(int)param_1[0x26],(epoll_event *)0x0);\n      if (iVar2 != 0) {\n        (*DAT_00120070)(DAT_00120068,"daemon.c",0xab1,"Failed to remove FD from epoll set\n");\n        goto LAB_0010c593;\n      }\n      *(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) & 0xfffffff7;\n    }\n    *(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) | 0x10;\n  }\n  iVar2 = pthread_mutex_unlock(__mutex);\n  if (iVar2 == 0) {\n    return;\n  }\nLAB_0010c593:\n  lVar3 = DAT_00120068;\n  (*DAT_00120070)(DAT_00120068,"daemon.c",0xab8,"Failed to unlock mutex.\n");\n  if ((*(byte *)(*(long *)(lVar3 + 0x30) + 0x1b5) & 0x20) == 0) {\n    (*DAT_00120070)(DAT_00120068,"daemon.c",0xae2,\n                    "Cannot suspend connections without enabling MHD_ALLOW_SUSPEND_RESUME!\n");\n  }\n  else if (*(long *)(lVar3 + 0x170) != 0) {\n    FUN_00110c11(*(long *)(lVar3 + 0x30),\n                 "Error: connection scheduled for \"upgrade\" cannot be suspended");\n    return;\n  }\n  FUN_0010c2fa();\n  return;\n}" primitive_type (function_declarator "FUN_0010c2fa(long *param_1)" identifier (parameter_list "(long *param_1)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  pthread_mutex_t *__mutex;\n  long lVar1;\n  int iVar2;\n  long lVar3;\n  \n  lVar3 = param_1[6];\n  __mutex = (pthread_mutex_t *)(lVar3 + 0x150);\n  iVar2 = pthread_mutex_lock(__mutex);\n  if (iVar2 == 0) {\n    if (*(char *)((long)param_1 + 0x194) != '\0') goto LAB_0010c474;\n    if ((*(byte *)(lVar3 + 0x1b4) & 4) == 0) {\n      if (param_1[0x24] != *(long *)(lVar3 + 0x1a8)) {\n        if (param_1[5] == 0) {\n          *(long *)(lVar3 + 0x70) = param_1[4];\n        }\n        else {\n          *(long *)(param_1[5] + 0x20) = param_1[4];\n        }\n        if (param_1[4] == 0) {\n          *(long *)(lVar3 + 0x78) = param_1[5];\n        }\n        else {\n          *(long *)(param_1[4] + 0x28) = param_1[5];\n        }\n        param_1[4] = 0;\n        param_1[5] = 0;\n        goto LAB_0010c380;\n      }\n      goto LAB_0010c4a7;\n    }\n  }\n  else {\n    (*DAT_00120070)(DAT_00120068,"daemon.c",0xa83,"Failed to lock mutex.\n");\nLAB_0010c474:\n    *(undefined1 *)((long)param_1 + 0x194) = 0;\n    iVar2 = pthread_mutex_unlock(__mutex);\n    if (iVar2 == 0) {\n      return;\n    }\n    (*DAT_00120070)(DAT_00120068,"daemon.c",0xa8a,"Failed to unlock mutex.\n");\nLAB_0010c4a7:\n    if (param_1[5] == 0) {\n      *(long *)(lVar3 + 0x60) = param_1[4];\n    }\n    else {\n      *(long *)(param_1[5] + 0x20) = param_1[4];\n    }\n    if (param_1[4] == 0) {\n      *(long *)(lVar3 + 0x68) = param_1[5];\n    }\n    else {\n      *(long *)(param_1[4] + 0x28) = param_1[5];\n    }\n    param_1[4] = 0;\n    param_1[5] = 0;\n  }\nLAB_0010c380:\n  if (param_1[3] == 0) {\n    *(long *)(lVar3 + 0x10) = param_1[2];\n  }\n  else {\n    *(long *)(param_1[3] + 0x10) = param_1[2];\n  }\n  if (param_1[2] == 0) {\n    *(long *)(lVar3 + 0x18) = param_1[3];\n  }\n  else {\n    *(long *)(param_1[2] + 0x18) = param_1[3];\n  }\n  param_1[2] = 0;\n  param_1[3] = 0;\n  lVar1 = *(long *)(lVar3 + 0x20);\n  param_1[2] = lVar1;\n  if (*(long *)(lVar3 + 0x28) == 0) {\n    *(long **)(lVar3 + 0x28) = param_1;\n  }\n  else {\n    *(long **)(lVar1 + 0x18) = param_1;\n  }\n  *(long **)(lVar3 + 0x20) = param_1;\n  *(undefined1 *)((long)param_1 + 0x18d) = 1;\n  if ((*(byte *)(lVar3 + 0x1b5) & 2) != 0) {\n    if ((*(byte *)((long)param_1 + 0x13c) & 4) != 0) {\n      if ((long *)param_1[1] == (long *)0x0) {\n        *(long *)(lVar3 + 0x40) = *param_1;\n      }\n      else {\n        *(long *)param_1[1] = *param_1;\n      }\n      if (*param_1 == 0) {\n        *(long *)(lVar3 + 0x48) = param_1[1];\n      }\n      else {\n        *(long *)(*param_1 + 8) = param_1[1];\n      }\n      *param_1 = 0;\n      param_1[1] = 0;\n      *(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) & 0xfffffffb;\n    }\n    if ((*(byte *)((long)param_1 + 0x13c) & 8) != 0) {\n      iVar2 = epoll_ctl(*(int *)(lVar3 + 0x180),2,(int)param_1[0x26],(epoll_event *)0x0);\n      if (iVar2 != 0) {\n        (*DAT_00120070)(DAT_00120068,"daemon.c",0xab1,"Failed to remove FD from epoll set\n");\n        goto LAB_0010c593;\n      }\n      *(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) & 0xfffffff7;\n    }\n    *(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) | 0x10;\n  }\n  iVar2 = pthread_mutex_unlock(__mutex);\n  if (iVar2 == 0) {\n    return;\n  }\nLAB_0010c593:\n  lVar3 = DAT_00120068;\n  (*DAT_00120070)(DAT_00120068,"daemon.c",0xab8,"Failed to unlock mutex.\n");\n  if ((*(byte *)(*(long *)(lVar3 + 0x30) + 0x1b5) & 0x20) == 0) {\n    (*DAT_00120070)(DAT_00120068,"daemon.c",0xae2,\n                    "Cannot suspend connections without enabling MHD_ALLOW_SUSPEND_RESUME!\n");\n  }\n  else if (*(long *)(lVar3 + 0x170) != 0) {\n    FUN_00110c11(*(long *)(lVar3 + 0x30),\n                 "Error: connection scheduled for \"upgrade\" cannot be suspended");\n    return;\n  }\n  FUN_0010c2fa();\n  return;\n}" { (declaration "pthread_mutex_t *__mutex;" type_identifier (pointer_declarator "*__mutex" * identifier) ;) (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar3 = param_1[6];" (assignment_expression "lVar3 = param_1[6]" identifier = (subscript_expression "param_1[6]" identifier [ number_literal ])) ;) (expression_statement "__mutex = (pthread_mutex_t *)(lVar3 + 0x150);" (assignment_expression "__mutex = (pthread_mutex_t *)(lVar3 + 0x150)" identifier = (cast_expression "(pthread_mutex_t *)(lVar3 + 0x150)" ( (type_descriptor "pthread_mutex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x150)" ( (binary_expression "lVar3 + 0x150" identifier + number_literal) )))) ;) (expression_statement "iVar2 = pthread_mutex_lock(__mutex);" (assignment_expression "iVar2 = pthread_mutex_lock(__mutex)" identifier = (call_expression "pthread_mutex_lock(__mutex)" identifier (argument_list "(__mutex)" ( identifier )))) ;) (if_statement "if (iVar2 == 0) {\n    if (*(char *)((long)param_1 + 0x194) != '\0') goto LAB_0010c474;\n    if ((*(byte *)(lVar3 + 0x1b4) & 4) == 0) {\n      if (param_1[0x24] != *(long *)(lVar3 + 0x1a8)) {\n        if (param_1[5] == 0) {\n          *(long *)(lVar3 + 0x70) = param_1[4];\n        }\n        else {\n          *(long *)(param_1[5] + 0x20) = param_1[4];\n        }\n        if (param_1[4] == 0) {\n          *(long *)(lVar3 + 0x78) = param_1[5];\n        }\n        else {\n          *(long *)(param_1[4] + 0x28) = param_1[5];\n        }\n        param_1[4] = 0;\n        param_1[5] = 0;\n        goto LAB_0010c380;\n      }\n      goto LAB_0010c4a7;\n    }\n  }\n  else {\n    (*DAT_00120070)(DAT_00120068,"daemon.c",0xa83,"Failed to lock mutex.\n");\nLAB_0010c474:\n    *(undefined1 *)((long)param_1 + 0x194) = 0;\n    iVar2 = pthread_mutex_unlock(__mutex);\n    if (iVar2 == 0) {\n      return;\n    }\n    (*DAT_00120070)(DAT_00120068,"daemon.c",0xa8a,"Failed to unlock mutex.\n");\nLAB_0010c4a7:\n    if (param_1[5] == 0) {\n      *(long *)(lVar3 + 0x60) = param_1[4];\n    }\n    else {\n      *(long *)(param_1[5] + 0x20) = param_1[4];\n    }\n    if (param_1[4] == 0) {\n      *(long *)(lVar3 + 0x68) = param_1[5];\n    }\n    else {\n      *(long *)(param_1[4] + 0x28) = param_1[5];\n    }\n    param_1[4] = 0;\n    param_1[5] = 0;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    if (*(char *)((long)param_1 + 0x194) != '\0') goto LAB_0010c474;\n    if ((*(byte *)(lVar3 + 0x1b4) & 4) == 0) {\n      if (param_1[0x24] != *(long *)(lVar3 + 0x1a8)) {\n        if (param_1[5] == 0) {\n          *(long *)(lVar3 + 0x70) = param_1[4];\n        }\n        else {\n          *(long *)(param_1[5] + 0x20) = param_1[4];\n        }\n        if (param_1[4] == 0) {\n          *(long *)(lVar3 + 0x78) = param_1[5];\n        }\n        else {\n          *(long *)(param_1[4] + 0x28) = param_1[5];\n        }\n        param_1[4] = 0;\n        param_1[5] = 0;\n        goto LAB_0010c380;\n      }\n      goto LAB_0010c4a7;\n    }\n  }" { (if_statement "if (*(char *)((long)param_1 + 0x194) != '\0') goto LAB_0010c474;" if (parenthesized_expression "(*(char *)((long)param_1 + 0x194) != '\0')" ( (binary_expression "*(char *)((long)param_1 + 0x194) != '\0'" (pointer_expression "*(char *)((long)param_1 + 0x194)" * (cast_expression "(char *)((long)param_1 + 0x194)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x194)" ( (binary_expression "(long)param_1 + 0x194" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_0010c474;" goto statement_identifier ;)) (if_statement "if ((*(byte *)(lVar3 + 0x1b4) & 4) == 0) {\n      if (param_1[0x24] != *(long *)(lVar3 + 0x1a8)) {\n        if (param_1[5] == 0) {\n          *(long *)(lVar3 + 0x70) = param_1[4];\n        }\n        else {\n          *(long *)(param_1[5] + 0x20) = param_1[4];\n        }\n        if (param_1[4] == 0) {\n          *(long *)(lVar3 + 0x78) = param_1[5];\n        }\n        else {\n          *(long *)(param_1[4] + 0x28) = param_1[5];\n        }\n        param_1[4] = 0;\n        param_1[5] = 0;\n        goto LAB_0010c380;\n      }\n      goto LAB_0010c4a7;\n    }" if (parenthesized_expression "((*(byte *)(lVar3 + 0x1b4) & 4) == 0)" ( (binary_expression "(*(byte *)(lVar3 + 0x1b4) & 4) == 0" (parenthesized_expression "(*(byte *)(lVar3 + 0x1b4) & 4)" ( (binary_expression "*(byte *)(lVar3 + 0x1b4) & 4" (pointer_expression "*(byte *)(lVar3 + 0x1b4)" * (cast_expression "(byte *)(lVar3 + 0x1b4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x1b4)" ( (binary_expression "lVar3 + 0x1b4" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n      if (param_1[0x24] != *(long *)(lVar3 + 0x1a8)) {\n        if (param_1[5] == 0) {\n          *(long *)(lVar3 + 0x70) = param_1[4];\n        }\n        else {\n          *(long *)(param_1[5] + 0x20) = param_1[4];\n        }\n        if (param_1[4] == 0) {\n          *(long *)(lVar3 + 0x78) = param_1[5];\n        }\n        else {\n          *(long *)(param_1[4] + 0x28) = param_1[5];\n        }\n        param_1[4] = 0;\n        param_1[5] = 0;\n        goto LAB_0010c380;\n      }\n      goto LAB_0010c4a7;\n    }" { (if_statement "if (param_1[0x24] != *(long *)(lVar3 + 0x1a8)) {\n        if (param_1[5] == 0) {\n          *(long *)(lVar3 + 0x70) = param_1[4];\n        }\n        else {\n          *(long *)(param_1[5] + 0x20) = param_1[4];\n        }\n        if (param_1[4] == 0) {\n          *(long *)(lVar3 + 0x78) = param_1[5];\n        }\n        else {\n          *(long *)(param_1[4] + 0x28) = param_1[5];\n        }\n        param_1[4] = 0;\n        param_1[5] = 0;\n        goto LAB_0010c380;\n      }" if (parenthesized_expression "(param_1[0x24] != *(long *)(lVar3 + 0x1a8))" ( (binary_expression "param_1[0x24] != *(long *)(lVar3 + 0x1a8)" (subscript_expression "param_1[0x24]" identifier [ number_literal ]) != (pointer_expression "*(long *)(lVar3 + 0x1a8)" * (cast_expression "(long *)(lVar3 + 0x1a8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x1a8)" ( (binary_expression "lVar3 + 0x1a8" identifier + number_literal) ))))) )) (compound_statement "{\n        if (param_1[5] == 0) {\n          *(long *)(lVar3 + 0x70) = param_1[4];\n        }\n        else {\n          *(long *)(param_1[5] + 0x20) = param_1[4];\n        }\n        if (param_1[4] == 0) {\n          *(long *)(lVar3 + 0x78) = param_1[5];\n        }\n        else {\n          *(long *)(param_1[4] + 0x28) = param_1[5];\n        }\n        param_1[4] = 0;\n        param_1[5] = 0;\n        goto LAB_0010c380;\n      }" { (if_statement "if (param_1[5] == 0) {\n          *(long *)(lVar3 + 0x70) = param_1[4];\n        }\n        else {\n          *(long *)(param_1[5] + 0x20) = param_1[4];\n        }" if (parenthesized_expression "(param_1[5] == 0)" ( (binary_expression "param_1[5] == 0" (subscript_expression "param_1[5]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n          *(long *)(lVar3 + 0x70) = param_1[4];\n        }" { (expression_statement "*(long *)(lVar3 + 0x70) = param_1[4];" (assignment_expression "*(long *)(lVar3 + 0x70) = param_1[4]" (pointer_expression "*(long *)(lVar3 + 0x70)" * (cast_expression "(long *)(lVar3 + 0x70)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x70)" ( (binary_expression "lVar3 + 0x70" identifier + number_literal) )))) = (subscript_expression "param_1[4]" identifier [ number_literal ])) ;) }) (else_clause "else {\n          *(long *)(param_1[5] + 0x20) = param_1[4];\n        }" else (compound_statement "{\n          *(long *)(param_1[5] + 0x20) = param_1[4];\n        }" { (expression_statement "*(long *)(param_1[5] + 0x20) = param_1[4];" (assignment_expression "*(long *)(param_1[5] + 0x20) = param_1[4]" (pointer_expression "*(long *)(param_1[5] + 0x20)" * (cast_expression "(long *)(param_1[5] + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[5] + 0x20)" ( (binary_expression "param_1[5] + 0x20" (subscript_expression "param_1[5]" identifier [ number_literal ]) + number_literal) )))) = (subscript_expression "param_1[4]" identifier [ number_literal ])) ;) }))) (if_statement "if (param_1[4] == 0) {\n          *(long *)(lVar3 + 0x78) = param_1[5];\n        }\n        else {\n          *(long *)(param_1[4] + 0x28) = param_1[5];\n        }" if (parenthesized_expression "(param_1[4] == 0)" ( (binary_expression "param_1[4] == 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n          *(long *)(lVar3 + 0x78) = param_1[5];\n        }" { (expression_statement "*(long *)(lVar3 + 0x78) = param_1[5];" (assignment_expression "*(long *)(lVar3 + 0x78) = param_1[5]" (pointer_expression "*(long *)(lVar3 + 0x78)" * (cast_expression "(long *)(lVar3 + 0x78)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x78)" ( (binary_expression "lVar3 + 0x78" identifier + number_literal) )))) = (subscript_expression "param_1[5]" identifier [ number_literal ])) ;) }) (else_clause "else {\n          *(long *)(param_1[4] + 0x28) = param_1[5];\n        }" else (compound_statement "{\n          *(long *)(param_1[4] + 0x28) = param_1[5];\n        }" { (expression_statement "*(long *)(param_1[4] + 0x28) = param_1[5];" (assignment_expression "*(long *)(param_1[4] + 0x28) = param_1[5]" (pointer_expression "*(long *)(param_1[4] + 0x28)" * (cast_expression "(long *)(param_1[4] + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[4] + 0x28)" ( (binary_expression "param_1[4] + 0x28" (subscript_expression "param_1[4]" identifier [ number_literal ]) + number_literal) )))) = (subscript_expression "param_1[5]" identifier [ number_literal ])) ;) }))) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[5] = 0;" (assignment_expression "param_1[5] = 0" (subscript_expression "param_1[5]" identifier [ number_literal ]) = number_literal) ;) (goto_statement "goto LAB_0010c380;" goto statement_identifier ;) })) (goto_statement "goto LAB_0010c4a7;" goto statement_identifier ;) })) }) (else_clause "else {\n    (*DAT_00120070)(DAT_00120068,"daemon.c",0xa83,"Failed to lock mutex.\n");\nLAB_0010c474:\n    *(undefined1 *)((long)param_1 + 0x194) = 0;\n    iVar2 = pthread_mutex_unlock(__mutex);\n    if (iVar2 == 0) {\n      return;\n    }\n    (*DAT_00120070)(DAT_00120068,"daemon.c",0xa8a,"Failed to unlock mutex.\n");\nLAB_0010c4a7:\n    if (param_1[5] == 0) {\n      *(long *)(lVar3 + 0x60) = param_1[4];\n    }\n    else {\n      *(long *)(param_1[5] + 0x20) = param_1[4];\n    }\n    if (param_1[4] == 0) {\n      *(long *)(lVar3 + 0x68) = param_1[5];\n    }\n    else {\n      *(long *)(param_1[4] + 0x28) = param_1[5];\n    }\n    param_1[4] = 0;\n    param_1[5] = 0;\n  }" else (compound_statement "{\n    (*DAT_00120070)(DAT_00120068,"daemon.c",0xa83,"Failed to lock mutex.\n");\nLAB_0010c474:\n    *(undefined1 *)((long)param_1 + 0x194) = 0;\n    iVar2 = pthread_mutex_unlock(__mutex);\n    if (iVar2 == 0) {\n      return;\n    }\n    (*DAT_00120070)(DAT_00120068,"daemon.c",0xa8a,"Failed to unlock mutex.\n");\nLAB_0010c4a7:\n    if (param_1[5] == 0) {\n      *(long *)(lVar3 + 0x60) = param_1[4];\n    }\n    else {\n      *(long *)(param_1[5] + 0x20) = param_1[4];\n    }\n    if (param_1[4] == 0) {\n      *(long *)(lVar3 + 0x68) = param_1[5];\n    }\n    else {\n      *(long *)(param_1[4] + 0x28) = param_1[5];\n    }\n    param_1[4] = 0;\n    param_1[5] = 0;\n  }" { (expression_statement "(*DAT_00120070)(DAT_00120068,"daemon.c",0xa83,"Failed to lock mutex.\n");" (call_expression "(*DAT_00120070)(DAT_00120068,"daemon.c",0xa83,"Failed to lock mutex.\n")" (parenthesized_expression "(*DAT_00120070)" ( (pointer_expression "*DAT_00120070" * identifier) )) (argument_list "(DAT_00120068,"daemon.c",0xa83,"Failed to lock mutex.\n")" ( identifier , (string_literal ""daemon.c"" " string_content ") , number_literal , (string_literal ""Failed to lock mutex.\n"" " string_content escape_sequence ") ))) ;) (labeled_statement "LAB_0010c474:\n    *(undefined1 *)((long)param_1 + 0x194) = 0;" statement_identifier : (expression_statement "*(undefined1 *)((long)param_1 + 0x194) = 0;" (assignment_expression "*(undefined1 *)((long)param_1 + 0x194) = 0" (pointer_expression "*(undefined1 *)((long)param_1 + 0x194)" * (cast_expression "(undefined1 *)((long)param_1 + 0x194)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x194)" ( (binary_expression "(long)param_1 + 0x194" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;)) (expression_statement "iVar2 = pthread_mutex_unlock(__mutex);" (assignment_expression "iVar2 = pthread_mutex_unlock(__mutex)" identifier = (call_expression "pthread_mutex_unlock(__mutex)" identifier (argument_list "(__mutex)" ( identifier )))) ;) (if_statement "if (iVar2 == 0) {\n      return;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "(*DAT_00120070)(DAT_00120068,"daemon.c",0xa8a,"Failed to unlock mutex.\n");" (call_expression "(*DAT_00120070)(DAT_00120068,"daemon.c",0xa8a,"Failed to unlock mutex.\n")" (parenthesized_expression "(*DAT_00120070)" ( (pointer_expression "*DAT_00120070" * identifier) )) (argument_list "(DAT_00120068,"daemon.c",0xa8a,"Failed to unlock mutex.\n")" ( identifier , (string_literal ""daemon.c"" " string_content ") , number_literal , (string_literal ""Failed to unlock mutex.\n"" " string_content escape_sequence ") ))) ;) (labeled_statement "LAB_0010c4a7:\n    if (param_1[5] == 0) {\n      *(long *)(lVar3 + 0x60) = param_1[4];\n    }\n    else {\n      *(long *)(param_1[5] + 0x20) = param_1[4];\n    }" statement_identifier : (if_statement "if (param_1[5] == 0) {\n      *(long *)(lVar3 + 0x60) = param_1[4];\n    }\n    else {\n      *(long *)(param_1[5] + 0x20) = param_1[4];\n    }" if (parenthesized_expression "(param_1[5] == 0)" ( (binary_expression "param_1[5] == 0" (subscript_expression "param_1[5]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n      *(long *)(lVar3 + 0x60) = param_1[4];\n    }" { (expression_statement "*(long *)(lVar3 + 0x60) = param_1[4];" (assignment_expression "*(long *)(lVar3 + 0x60) = param_1[4]" (pointer_expression "*(long *)(lVar3 + 0x60)" * (cast_expression "(long *)(lVar3 + 0x60)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x60)" ( (binary_expression "lVar3 + 0x60" identifier + number_literal) )))) = (subscript_expression "param_1[4]" identifier [ number_literal ])) ;) }) (else_clause "else {\n      *(long *)(param_1[5] + 0x20) = param_1[4];\n    }" else (compound_statement "{\n      *(long *)(param_1[5] + 0x20) = param_1[4];\n    }" { (expression_statement "*(long *)(param_1[5] + 0x20) = param_1[4];" (assignment_expression "*(long *)(param_1[5] + 0x20) = param_1[4]" (pointer_expression "*(long *)(param_1[5] + 0x20)" * (cast_expression "(long *)(param_1[5] + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[5] + 0x20)" ( (binary_expression "param_1[5] + 0x20" (subscript_expression "param_1[5]" identifier [ number_literal ]) + number_literal) )))) = (subscript_expression "param_1[4]" identifier [ number_literal ])) ;) })))) (if_statement "if (param_1[4] == 0) {\n      *(long *)(lVar3 + 0x68) = param_1[5];\n    }\n    else {\n      *(long *)(param_1[4] + 0x28) = param_1[5];\n    }" if (parenthesized_expression "(param_1[4] == 0)" ( (binary_expression "param_1[4] == 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n      *(long *)(lVar3 + 0x68) = param_1[5];\n    }" { (expression_statement "*(long *)(lVar3 + 0x68) = param_1[5];" (assignment_expression "*(long *)(lVar3 + 0x68) = param_1[5]" (pointer_expression "*(long *)(lVar3 + 0x68)" * (cast_expression "(long *)(lVar3 + 0x68)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x68)" ( (binary_expression "lVar3 + 0x68" identifier + number_literal) )))) = (subscript_expression "param_1[5]" identifier [ number_literal ])) ;) }) (else_clause "else {\n      *(long *)(param_1[4] + 0x28) = param_1[5];\n    }" else (compound_statement "{\n      *(long *)(param_1[4] + 0x28) = param_1[5];\n    }" { (expression_statement "*(long *)(param_1[4] + 0x28) = param_1[5];" (assignment_expression "*(long *)(param_1[4] + 0x28) = param_1[5]" (pointer_expression "*(long *)(param_1[4] + 0x28)" * (cast_expression "(long *)(param_1[4] + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[4] + 0x28)" ( (binary_expression "param_1[4] + 0x28" (subscript_expression "param_1[4]" identifier [ number_literal ]) + number_literal) )))) = (subscript_expression "param_1[5]" identifier [ number_literal ])) ;) }))) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[5] = 0;" (assignment_expression "param_1[5] = 0" (subscript_expression "param_1[5]" identifier [ number_literal ]) = number_literal) ;) }))) (labeled_statement "LAB_0010c380:\n  if (param_1[3] == 0) {\n    *(long *)(lVar3 + 0x10) = param_1[2];\n  }\n  else {\n    *(long *)(param_1[3] + 0x10) = param_1[2];\n  }" statement_identifier : (if_statement "if (param_1[3] == 0) {\n    *(long *)(lVar3 + 0x10) = param_1[2];\n  }\n  else {\n    *(long *)(param_1[3] + 0x10) = param_1[2];\n  }" if (parenthesized_expression "(param_1[3] == 0)" ( (binary_expression "param_1[3] == 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n    *(long *)(lVar3 + 0x10) = param_1[2];\n  }" { (expression_statement "*(long *)(lVar3 + 0x10) = param_1[2];" (assignment_expression "*(long *)(lVar3 + 0x10) = param_1[2]" (pointer_expression "*(long *)(lVar3 + 0x10)" * (cast_expression "(long *)(lVar3 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x10)" ( (binary_expression "lVar3 + 0x10" identifier + number_literal) )))) = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) }) (else_clause "else {\n    *(long *)(param_1[3] + 0x10) = param_1[2];\n  }" else (compound_statement "{\n    *(long *)(param_1[3] + 0x10) = param_1[2];\n  }" { (expression_statement "*(long *)(param_1[3] + 0x10) = param_1[2];" (assignment_expression "*(long *)(param_1[3] + 0x10) = param_1[2]" (pointer_expression "*(long *)(param_1[3] + 0x10)" * (cast_expression "(long *)(param_1[3] + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[3] + 0x10)" ( (binary_expression "param_1[3] + 0x10" (subscript_expression "param_1[3]" identifier [ number_literal ]) + number_literal) )))) = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) })))) (if_statement "if (param_1[2] == 0) {\n    *(long *)(lVar3 + 0x18) = param_1[3];\n  }\n  else {\n    *(long *)(param_1[2] + 0x18) = param_1[3];\n  }" if (parenthesized_expression "(param_1[2] == 0)" ( (binary_expression "param_1[2] == 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n    *(long *)(lVar3 + 0x18) = param_1[3];\n  }" { (expression_statement "*(long *)(lVar3 + 0x18) = param_1[3];" (assignment_expression "*(long *)(lVar3 + 0x18) = param_1[3]" (pointer_expression "*(long *)(lVar3 + 0x18)" * (cast_expression "(long *)(lVar3 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x18)" ( (binary_expression "lVar3 + 0x18" identifier + number_literal) )))) = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) }) (else_clause "else {\n    *(long *)(param_1[2] + 0x18) = param_1[3];\n  }" else (compound_statement "{\n    *(long *)(param_1[2] + 0x18) = param_1[3];\n  }" { (expression_statement "*(long *)(param_1[2] + 0x18) = param_1[3];" (assignment_expression "*(long *)(param_1[2] + 0x18) = param_1[3]" (pointer_expression "*(long *)(param_1[2] + 0x18)" * (cast_expression "(long *)(param_1[2] + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[2] + 0x18)" ( (binary_expression "param_1[2] + 0x18" (subscript_expression "param_1[2]" identifier [ number_literal ]) + number_literal) )))) = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) }))) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "lVar1 = *(long *)(lVar3 + 0x20);" (assignment_expression "lVar1 = *(long *)(lVar3 + 0x20)" identifier = (pointer_expression "*(long *)(lVar3 + 0x20)" * (cast_expression "(long *)(lVar3 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x20)" ( (binary_expression "lVar3 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "param_1[2] = lVar1;" (assignment_expression "param_1[2] = lVar1" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (*(long *)(lVar3 + 0x28) == 0) {\n    *(long **)(lVar3 + 0x28) = param_1;\n  }\n  else {\n    *(long **)(lVar1 + 0x18) = param_1;\n  }" if (parenthesized_expression "(*(long *)(lVar3 + 0x28) == 0)" ( (binary_expression "*(long *)(lVar3 + 0x28) == 0" (pointer_expression "*(long *)(lVar3 + 0x28)" * (cast_expression "(long *)(lVar3 + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x28)" ( (binary_expression "lVar3 + 0x28" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    *(long **)(lVar3 + 0x28) = param_1;\n  }" { (expression_statement "*(long **)(lVar3 + 0x28) = param_1;" (assignment_expression "*(long **)(lVar3 + 0x28) = param_1" (pointer_expression "*(long **)(lVar3 + 0x28)" * (cast_expression "(long **)(lVar3 + 0x28)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar3 + 0x28)" ( (binary_expression "lVar3 + 0x28" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n    *(long **)(lVar1 + 0x18) = param_1;\n  }" else (compound_statement "{\n    *(long **)(lVar1 + 0x18) = param_1;\n  }" { (expression_statement "*(long **)(lVar1 + 0x18) = param_1;" (assignment_expression "*(long **)(lVar1 + 0x18) = param_1" (pointer_expression "*(long **)(lVar1 + 0x18)" * (cast_expression "(long **)(lVar1 + 0x18)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar1 + 0x18)" ( (binary_expression "lVar1 + 0x18" identifier + number_literal) )))) = identifier) ;) }))) (expression_statement "*(long **)(lVar3 + 0x20) = param_1;" (assignment_expression "*(long **)(lVar3 + 0x20) = param_1" (pointer_expression "*(long **)(lVar3 + 0x20)" * (cast_expression "(long **)(lVar3 + 0x20)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar3 + 0x20)" ( (binary_expression "lVar3 + 0x20" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined1 *)((long)param_1 + 0x18d) = 1;" (assignment_expression "*(undefined1 *)((long)param_1 + 0x18d) = 1" (pointer_expression "*(undefined1 *)((long)param_1 + 0x18d)" * (cast_expression "(undefined1 *)((long)param_1 + 0x18d)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x18d)" ( (binary_expression "(long)param_1 + 0x18d" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) (if_statement "if ((*(byte *)(lVar3 + 0x1b5) & 2) != 0) {\n    if ((*(byte *)((long)param_1 + 0x13c) & 4) != 0) {\n      if ((long *)param_1[1] == (long *)0x0) {\n        *(long *)(lVar3 + 0x40) = *param_1;\n      }\n      else {\n        *(long *)param_1[1] = *param_1;\n      }\n      if (*param_1 == 0) {\n        *(long *)(lVar3 + 0x48) = param_1[1];\n      }\n      else {\n        *(long *)(*param_1 + 8) = param_1[1];\n      }\n      *param_1 = 0;\n      param_1[1] = 0;\n      *(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) & 0xfffffffb;\n    }\n    if ((*(byte *)((long)param_1 + 0x13c) & 8) != 0) {\n      iVar2 = epoll_ctl(*(int *)(lVar3 + 0x180),2,(int)param_1[0x26],(epoll_event *)0x0);\n      if (iVar2 != 0) {\n        (*DAT_00120070)(DAT_00120068,"daemon.c",0xab1,"Failed to remove FD from epoll set\n");\n        goto LAB_0010c593;\n      }\n      *(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) & 0xfffffff7;\n    }\n    *(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) | 0x10;\n  }" if (parenthesized_expression "((*(byte *)(lVar3 + 0x1b5) & 2) != 0)" ( (binary_expression "(*(byte *)(lVar3 + 0x1b5) & 2) != 0" (parenthesized_expression "(*(byte *)(lVar3 + 0x1b5) & 2)" ( (binary_expression "*(byte *)(lVar3 + 0x1b5) & 2" (pointer_expression "*(byte *)(lVar3 + 0x1b5)" * (cast_expression "(byte *)(lVar3 + 0x1b5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x1b5)" ( (binary_expression "lVar3 + 0x1b5" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n    if ((*(byte *)((long)param_1 + 0x13c) & 4) != 0) {\n      if ((long *)param_1[1] == (long *)0x0) {\n        *(long *)(lVar3 + 0x40) = *param_1;\n      }\n      else {\n        *(long *)param_1[1] = *param_1;\n      }\n      if (*param_1 == 0) {\n        *(long *)(lVar3 + 0x48) = param_1[1];\n      }\n      else {\n        *(long *)(*param_1 + 8) = param_1[1];\n      }\n      *param_1 = 0;\n      param_1[1] = 0;\n      *(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) & 0xfffffffb;\n    }\n    if ((*(byte *)((long)param_1 + 0x13c) & 8) != 0) {\n      iVar2 = epoll_ctl(*(int *)(lVar3 + 0x180),2,(int)param_1[0x26],(epoll_event *)0x0);\n      if (iVar2 != 0) {\n        (*DAT_00120070)(DAT_00120068,"daemon.c",0xab1,"Failed to remove FD from epoll set\n");\n        goto LAB_0010c593;\n      }\n      *(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) & 0xfffffff7;\n    }\n    *(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) | 0x10;\n  }" { (if_statement "if ((*(byte *)((long)param_1 + 0x13c) & 4) != 0) {\n      if ((long *)param_1[1] == (long *)0x0) {\n        *(long *)(lVar3 + 0x40) = *param_1;\n      }\n      else {\n        *(long *)param_1[1] = *param_1;\n      }\n      if (*param_1 == 0) {\n        *(long *)(lVar3 + 0x48) = param_1[1];\n      }\n      else {\n        *(long *)(*param_1 + 8) = param_1[1];\n      }\n      *param_1 = 0;\n      param_1[1] = 0;\n      *(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) & 0xfffffffb;\n    }" if (parenthesized_expression "((*(byte *)((long)param_1 + 0x13c) & 4) != 0)" ( (binary_expression "(*(byte *)((long)param_1 + 0x13c) & 4) != 0" (parenthesized_expression "(*(byte *)((long)param_1 + 0x13c) & 4)" ( (binary_expression "*(byte *)((long)param_1 + 0x13c) & 4" (pointer_expression "*(byte *)((long)param_1 + 0x13c)" * (cast_expression "(byte *)((long)param_1 + 0x13c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x13c)" ( (binary_expression "(long)param_1 + 0x13c" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n      if ((long *)param_1[1] == (long *)0x0) {\n        *(long *)(lVar3 + 0x40) = *param_1;\n      }\n      else {\n        *(long *)param_1[1] = *param_1;\n      }\n      if (*param_1 == 0) {\n        *(long *)(lVar3 + 0x48) = param_1[1];\n      }\n      else {\n        *(long *)(*param_1 + 8) = param_1[1];\n      }\n      *param_1 = 0;\n      param_1[1] = 0;\n      *(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) & 0xfffffffb;\n    }" { (if_statement "if ((long *)param_1[1] == (long *)0x0) {\n        *(long *)(lVar3 + 0x40) = *param_1;\n      }\n      else {\n        *(long *)param_1[1] = *param_1;\n      }" if (parenthesized_expression "((long *)param_1[1] == (long *)0x0)" ( (binary_expression "(long *)param_1[1] == (long *)0x0" (cast_expression "(long *)param_1[1]" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        *(long *)(lVar3 + 0x40) = *param_1;\n      }" { (expression_statement "*(long *)(lVar3 + 0x40) = *param_1;" (assignment_expression "*(long *)(lVar3 + 0x40) = *param_1" (pointer_expression "*(long *)(lVar3 + 0x40)" * (cast_expression "(long *)(lVar3 + 0x40)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x40)" ( (binary_expression "lVar3 + 0x40" identifier + number_literal) )))) = (pointer_expression "*param_1" * identifier)) ;) }) (else_clause "else {\n        *(long *)param_1[1] = *param_1;\n      }" else (compound_statement "{\n        *(long *)param_1[1] = *param_1;\n      }" { (expression_statement "*(long *)param_1[1] = *param_1;" (assignment_expression "*(long *)param_1[1] = *param_1" (pointer_expression "*(long *)param_1[1]" * (cast_expression "(long *)param_1[1]" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) = (pointer_expression "*param_1" * identifier)) ;) }))) (if_statement "if (*param_1 == 0) {\n        *(long *)(lVar3 + 0x48) = param_1[1];\n      }\n      else {\n        *(long *)(*param_1 + 8) = param_1[1];\n      }" if (parenthesized_expression "(*param_1 == 0)" ( (binary_expression "*param_1 == 0" (pointer_expression "*param_1" * identifier) == number_literal) )) (compound_statement "{\n        *(long *)(lVar3 + 0x48) = param_1[1];\n      }" { (expression_statement "*(long *)(lVar3 + 0x48) = param_1[1];" (assignment_expression "*(long *)(lVar3 + 0x48) = param_1[1]" (pointer_expression "*(long *)(lVar3 + 0x48)" * (cast_expression "(long *)(lVar3 + 0x48)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x48)" ( (binary_expression "lVar3 + 0x48" identifier + number_literal) )))) = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) }) (else_clause "else {\n        *(long *)(*param_1 + 8) = param_1[1];\n      }" else (compound_statement "{\n        *(long *)(*param_1 + 8) = param_1[1];\n      }" { (expression_statement "*(long *)(*param_1 + 8) = param_1[1];" (assignment_expression "*(long *)(*param_1 + 8) = param_1[1]" (pointer_expression "*(long *)(*param_1 + 8)" * (cast_expression "(long *)(*param_1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 8)" ( (binary_expression "*param_1 + 8" (pointer_expression "*param_1" * identifier) + number_literal) )))) = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) }))) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) & 0xfffffffb;" (assignment_expression "*(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) & 0xfffffffb" (pointer_expression "*(uint *)((long)param_1 + 0x13c)" * (cast_expression "(uint *)((long)param_1 + 0x13c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x13c)" ( (binary_expression "(long)param_1 + 0x13c" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = (binary_expression "*(uint *)((long)param_1 + 0x13c) & 0xfffffffb" (pointer_expression "*(uint *)((long)param_1 + 0x13c)" * (cast_expression "(uint *)((long)param_1 + 0x13c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x13c)" ( (binary_expression "(long)param_1 + 0x13c" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) & number_literal)) ;) })) (if_statement "if ((*(byte *)((long)param_1 + 0x13c) & 8) != 0) {\n      iVar2 = epoll_ctl(*(int *)(lVar3 + 0x180),2,(int)param_1[0x26],(epoll_event *)0x0);\n      if (iVar2 != 0) {\n        (*DAT_00120070)(DAT_00120068,"daemon.c",0xab1,"Failed to remove FD from epoll set\n");\n        goto LAB_0010c593;\n      }\n      *(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) & 0xfffffff7;\n    }" if (parenthesized_expression "((*(byte *)((long)param_1 + 0x13c) & 8) != 0)" ( (binary_expression "(*(byte *)((long)param_1 + 0x13c) & 8) != 0" (parenthesized_expression "(*(byte *)((long)param_1 + 0x13c) & 8)" ( (binary_expression "*(byte *)((long)param_1 + 0x13c) & 8" (pointer_expression "*(byte *)((long)param_1 + 0x13c)" * (cast_expression "(byte *)((long)param_1 + 0x13c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x13c)" ( (binary_expression "(long)param_1 + 0x13c" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n      iVar2 = epoll_ctl(*(int *)(lVar3 + 0x180),2,(int)param_1[0x26],(epoll_event *)0x0);\n      if (iVar2 != 0) {\n        (*DAT_00120070)(DAT_00120068,"daemon.c",0xab1,"Failed to remove FD from epoll set\n");\n        goto LAB_0010c593;\n      }\n      *(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) & 0xfffffff7;\n    }" { (expression_statement "iVar2 = epoll_ctl(*(int *)(lVar3 + 0x180),2,(int)param_1[0x26],(epoll_event *)0x0);" (assignment_expression "iVar2 = epoll_ctl(*(int *)(lVar3 + 0x180),2,(int)param_1[0x26],(epoll_event *)0x0)" identifier = (call_expression "epoll_ctl(*(int *)(lVar3 + 0x180),2,(int)param_1[0x26],(epoll_event *)0x0)" identifier (argument_list "(*(int *)(lVar3 + 0x180),2,(int)param_1[0x26],(epoll_event *)0x0)" ( (pointer_expression "*(int *)(lVar3 + 0x180)" * (cast_expression "(int *)(lVar3 + 0x180)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x180)" ( (binary_expression "lVar3 + 0x180" identifier + number_literal) )))) , number_literal , (cast_expression "(int)param_1[0x26]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[0x26]" identifier [ number_literal ])) , (cast_expression "(epoll_event *)0x0" ( (type_descriptor "epoll_event *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) )))) ;) (if_statement "if (iVar2 != 0) {\n        (*DAT_00120070)(DAT_00120068,"daemon.c",0xab1,"Failed to remove FD from epoll set\n");\n        goto LAB_0010c593;\n      }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        (*DAT_00120070)(DAT_00120068,"daemon.c",0xab1,"Failed to remove FD from epoll set\n");\n        goto LAB_0010c593;\n      }" { (expression_statement "(*DAT_00120070)(DAT_00120068,"daemon.c",0xab1,"Failed to remove FD from epoll set\n");" (call_expression "(*DAT_00120070)(DAT_00120068,"daemon.c",0xab1,"Failed to remove FD from epoll set\n")" (parenthesized_expression "(*DAT_00120070)" ( (pointer_expression "*DAT_00120070" * identifier) )) (argument_list "(DAT_00120068,"daemon.c",0xab1,"Failed to remove FD from epoll set\n")" ( identifier , (string_literal ""daemon.c"" " string_content ") , number_literal , (string_literal ""Failed to remove FD from epoll set\n"" " string_content escape_sequence ") ))) ;) (goto_statement "goto LAB_0010c593;" goto statement_identifier ;) })) (expression_statement "*(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) & 0xfffffff7;" (assignment_expression "*(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) & 0xfffffff7" (pointer_expression "*(uint *)((long)param_1 + 0x13c)" * (cast_expression "(uint *)((long)param_1 + 0x13c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x13c)" ( (binary_expression "(long)param_1 + 0x13c" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = (binary_expression "*(uint *)((long)param_1 + 0x13c) & 0xfffffff7" (pointer_expression "*(uint *)((long)param_1 + 0x13c)" * (cast_expression "(uint *)((long)param_1 + 0x13c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x13c)" ( (binary_expression "(long)param_1 + 0x13c" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) & number_literal)) ;) })) (expression_statement "*(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) | 0x10;" (assignment_expression "*(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) | 0x10" (pointer_expression "*(uint *)((long)param_1 + 0x13c)" * (cast_expression "(uint *)((long)param_1 + 0x13c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x13c)" ( (binary_expression "(long)param_1 + 0x13c" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = (binary_expression "*(uint *)((long)param_1 + 0x13c) | 0x10" (pointer_expression "*(uint *)((long)param_1 + 0x13c)" * (cast_expression "(uint *)((long)param_1 + 0x13c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x13c)" ( (binary_expression "(long)param_1 + 0x13c" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) | number_literal)) ;) })) (expression_statement "iVar2 = pthread_mutex_unlock(__mutex);" (assignment_expression "iVar2 = pthread_mutex_unlock(__mutex)" identifier = (call_expression "pthread_mutex_unlock(__mutex)" identifier (argument_list "(__mutex)" ( identifier )))) ;) (if_statement "if (iVar2 == 0) {\n    return;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (labeled_statement "LAB_0010c593:\n  lVar3 = DAT_00120068;" statement_identifier : (expression_statement "lVar3 = DAT_00120068;" (assignment_expression "lVar3 = DAT_00120068" identifier = identifier) ;)) (expression_statement "(*DAT_00120070)(DAT_00120068,"daemon.c",0xab8,"Failed to unlock mutex.\n");" (call_expression "(*DAT_00120070)(DAT_00120068,"daemon.c",0xab8,"Failed to unlock mutex.\n")" (parenthesized_expression "(*DAT_00120070)" ( (pointer_expression "*DAT_00120070" * identifier) )) (argument_list "(DAT_00120068,"daemon.c",0xab8,"Failed to unlock mutex.\n")" ( identifier , (string_literal ""daemon.c"" " string_content ") , number_literal , (string_literal ""Failed to unlock mutex.\n"" " string_content escape_sequence ") ))) ;) (if_statement "if ((*(byte *)(*(long *)(lVar3 + 0x30) + 0x1b5) & 0x20) == 0) {\n    (*DAT_00120070)(DAT_00120068,"daemon.c",0xae2,\n                    "Cannot suspend connections without enabling MHD_ALLOW_SUSPEND_RESUME!\n");\n  }\n  else if (*(long *)(lVar3 + 0x170) != 0) {\n    FUN_00110c11(*(long *)(lVar3 + 0x30),\n                 "Error: connection scheduled for \"upgrade\" cannot be suspended");\n    return;\n  }" if (parenthesized_expression "((*(byte *)(*(long *)(lVar3 + 0x30) + 0x1b5) & 0x20) == 0)" ( (binary_expression "(*(byte *)(*(long *)(lVar3 + 0x30) + 0x1b5) & 0x20) == 0" (parenthesized_expression "(*(byte *)(*(long *)(lVar3 + 0x30) + 0x1b5) & 0x20)" ( (binary_expression "*(byte *)(*(long *)(lVar3 + 0x30) + 0x1b5) & 0x20" (pointer_expression "*(byte *)(*(long *)(lVar3 + 0x30) + 0x1b5)" * (cast_expression "(byte *)(*(long *)(lVar3 + 0x30) + 0x1b5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(lVar3 + 0x30) + 0x1b5)" ( (binary_expression "*(long *)(lVar3 + 0x30) + 0x1b5" (pointer_expression "*(long *)(lVar3 + 0x30)" * (cast_expression "(long *)(lVar3 + 0x30)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x30)" ( (binary_expression "lVar3 + 0x30" identifier + number_literal) )))) + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    (*DAT_00120070)(DAT_00120068,"daemon.c",0xae2,\n                    "Cannot suspend connections without enabling MHD_ALLOW_SUSPEND_RESUME!\n");\n  }" { (expression_statement "(*DAT_00120070)(DAT_00120068,"daemon.c",0xae2,\n                    "Cannot suspend connections without enabling MHD_ALLOW_SUSPEND_RESUME!\n");" (call_expression "(*DAT_00120070)(DAT_00120068,"daemon.c",0xae2,\n                    "Cannot suspend connections without enabling MHD_ALLOW_SUSPEND_RESUME!\n")" (parenthesized_expression "(*DAT_00120070)" ( (pointer_expression "*DAT_00120070" * identifier) )) (argument_list "(DAT_00120068,"daemon.c",0xae2,\n                    "Cannot suspend connections without enabling MHD_ALLOW_SUSPEND_RESUME!\n")" ( identifier , (string_literal ""daemon.c"" " string_content ") , number_literal , (string_literal ""Cannot suspend connections without enabling MHD_ALLOW_SUSPEND_RESUME!\n"" " string_content escape_sequence ") ))) ;) }) (else_clause "else if (*(long *)(lVar3 + 0x170) != 0) {\n    FUN_00110c11(*(long *)(lVar3 + 0x30),\n                 "Error: connection scheduled for \"upgrade\" cannot be suspended");\n    return;\n  }" else (if_statement "if (*(long *)(lVar3 + 0x170) != 0) {\n    FUN_00110c11(*(long *)(lVar3 + 0x30),\n                 "Error: connection scheduled for \"upgrade\" cannot be suspended");\n    return;\n  }" if (parenthesized_expression "(*(long *)(lVar3 + 0x170) != 0)" ( (binary_expression "*(long *)(lVar3 + 0x170) != 0" (pointer_expression "*(long *)(lVar3 + 0x170)" * (cast_expression "(long *)(lVar3 + 0x170)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x170)" ( (binary_expression "lVar3 + 0x170" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    FUN_00110c11(*(long *)(lVar3 + 0x30),\n                 "Error: connection scheduled for \"upgrade\" cannot be suspended");\n    return;\n  }" { (expression_statement "FUN_00110c11(*(long *)(lVar3 + 0x30),\n                 "Error: connection scheduled for \"upgrade\" cannot be suspended");" (call_expression "FUN_00110c11(*(long *)(lVar3 + 0x30),\n                 "Error: connection scheduled for \"upgrade\" cannot be suspended")" identifier (argument_list "(*(long *)(lVar3 + 0x30),\n                 "Error: connection scheduled for \"upgrade\" cannot be suspended")" ( (pointer_expression "*(long *)(lVar3 + 0x30)" * (cast_expression "(long *)(lVar3 + 0x30)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x30)" ( (binary_expression "lVar3 + 0x30" identifier + number_literal) )))) , (string_literal ""Error: connection scheduled for \"upgrade\" cannot be suspended"" " string_content escape_sequence string_content escape_sequence string_content ") ))) ;) (return_statement "return;" return ;) })))) (expression_statement "FUN_0010c2fa();" (call_expression "FUN_0010c2fa()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Enum "MHD_FLAG": Some values do not have unique names */\n/* WARNING: Enum "gnutls_pk_algorithm_t": Some values do not have unique names */\n/* WARNING: Enum "gnutls_certificate_type_t": Some values do not have unique names */\n\nvoid internal_suspend_connection_(MHD_Connection *connection)\n\n{\n  MHD_mutex_ *__mutex;\n  MHD_Daemon *pMVar1;\n  int iVar2;\n  MHD_Connection *pMVar3;\n  \n  pMVar1 = connection->daemon;\n  __mutex = &pMVar1->cleanup_connection_mutex;\n  iVar2 = pthread_mutex_lock((pthread_mutex_t *)__mutex);\n  if (iVar2 == 0) {\n    if (connection->resuming != false) goto LAB_0010c474;\n    if ((pMVar1->options & MHD_USE_THREAD_PER_CONNECTION) == MHD_NO_FLAG) {\n      if (connection->connection_timeout != pMVar1->connection_timeout) {\n        if (connection->prevX == (MHD_Connection *)0x0) {\n          pMVar1->manual_timeout_head = connection->nextX;\n        }\n        else {\n          connection->prevX->nextX = connection->nextX;\n        }\n        if (connection->nextX == (MHD_Connection *)0x0) {\n          pMVar1->manual_timeout_tail = connection->prevX;\n        }\n        else {\n          connection->nextX->prevX = connection->prevX;\n        }\n        connection->nextX = (MHD_Connection *)0x0;\n        connection->prevX = (MHD_Connection *)0x0;\n        goto LAB_0010c380;\n      }\n      goto LAB_0010c4a7;\n    }\n  }\n  else {\n    (*mhd_panic)(mhd_panic_cls,"daemon.c",0xa83,"Failed to lock mutex.\n");\nLAB_0010c474:\n    connection->resuming = false;\n    iVar2 = pthread_mutex_unlock((pthread_mutex_t *)__mutex);\n    if (iVar2 == 0) {\n      return;\n    }\n    (*mhd_panic)(mhd_panic_cls,"daemon.c",0xa8a,"Failed to unlock mutex.\n");\nLAB_0010c4a7:\n    if (connection->prevX == (MHD_Connection *)0x0) {\n      pMVar1->normal_timeout_head = connection->nextX;\n    }\n    else {\n      connection->prevX->nextX = connection->nextX;\n    }\n    if (connection->nextX == (MHD_Connection *)0x0) {\n      pMVar1->normal_timeout_tail = connection->prevX;\n    }\n    else {\n      connection->nextX->prevX = connection->prevX;\n    }\n    connection->nextX = (MHD_Connection *)0x0;\n    connection->prevX = (MHD_Connection *)0x0;\n  }\nLAB_0010c380:\n  if (connection->prev == (MHD_Connection *)0x0) {\n    pMVar1->connections_head = connection->next;\n  }\n  else {\n    connection->prev->next = connection->next;\n  }\n  if (connection->next == (MHD_Connection *)0x0) {\n    pMVar1->connections_tail = connection->prev;\n  }\n  else {\n    connection->next->prev = connection->prev;\n  }\n  connection->next = (MHD_Connection *)0x0;\n  connection->prev = (MHD_Connection *)0x0;\n  pMVar3 = pMVar1->suspended_connections_head;\n  connection->next = pMVar3;\n  if (pMVar1->suspended_connections_tail == (MHD_Connection *)0x0) {\n    pMVar1->suspended_connections_tail = connection;\n  }\n  else {\n    pMVar3->prev = connection;\n  }\n  pMVar1->suspended_connections_head = connection;\n  connection->suspended = true;\n  if ((pMVar1->options & MHD_USE_EPOLL) != MHD_NO_FLAG) {\n    if ((connection->epoll_state & MHD_EPOLL_STATE_IN_EREADY_EDLL) != MHD_EPOLL_STATE_UNREADY) {\n      if (connection->prevE == (MHD_Connection *)0x0) {\n        pMVar1->eready_head = connection->nextE;\n      }\n      else {\n        connection->prevE->nextE = connection->nextE;\n      }\n      if (connection->nextE == (MHD_Connection *)0x0) {\n        pMVar1->eready_tail = connection->prevE;\n      }\n      else {\n        connection->nextE->prevE = connection->prevE;\n      }\n      connection->nextE = (MHD_Connection *)0x0;\n      connection->prevE = (MHD_Connection *)0x0;\n      connection->epoll_state = connection->epoll_state & ~MHD_EPOLL_STATE_IN_EREADY_EDLL;\n    }\n    if ((connection->epoll_state & MHD_EPOLL_STATE_IN_EPOLL_SET) != MHD_EPOLL_STATE_UNREADY) {\n      iVar2 = epoll_ctl(pMVar1->epoll_fd,2,connection->socket_fd,(epoll_event *)0x0);\n      if (iVar2 != 0) {\n        (*mhd_panic)(mhd_panic_cls,"daemon.c",0xab1,"Failed to remove FD from epoll set\n");\n        goto LAB_0010c593;\n      }\n      connection->epoll_state = connection->epoll_state & ~MHD_EPOLL_STATE_IN_EPOLL_SET;\n    }\n    connection->epoll_state = connection->epoll_state | MHD_EPOLL_STATE_SUSPENDED;\n  }\n  iVar2 = pthread_mutex_unlock((pthread_mutex_t *)__mutex);\n  if (iVar2 == 0) {\n    return;\n  }\nLAB_0010c593:\n  pMVar3 = (MHD_Connection *)mhd_panic_cls;\n  (*mhd_panic)(mhd_panic_cls,"daemon.c",0xab8,"Failed to unlock mutex.\n");\n  if ((pMVar3->daemon->options & 0x2000) == MHD_NO_FLAG) {\n    pMVar3 = (MHD_Connection *)mhd_panic_cls;\n    (*mhd_panic)(mhd_panic_cls,"daemon.c",0xae2,\n                 "Cannot suspend connections without enabling MHD_ALLOW_SUSPEND_RESUME!\n");\n  }\n  else if (pMVar3->urh != (MHD_UpgradeResponseHandle *)0x0) {\n    MHD_DLOG(pMVar3->daemon,"Error: connection scheduled for \"upgrade\" cannot be suspended");\n    return;\n  }\n  internal_suspend_connection_(pMVar3);\n  return;\n}\n\n" comment comment comment (function_definition "void internal_suspend_connection_(MHD_Connection *connection)\n\n{\n  MHD_mutex_ *__mutex;\n  MHD_Daemon *pMVar1;\n  int iVar2;\n  MHD_Connection *pMVar3;\n  \n  pMVar1 = connection->daemon;\n  __mutex = &pMVar1->cleanup_connection_mutex;\n  iVar2 = pthread_mutex_lock((pthread_mutex_t *)__mutex);\n  if (iVar2 == 0) {\n    if (connection->resuming != false) goto LAB_0010c474;\n    if ((pMVar1->options & MHD_USE_THREAD_PER_CONNECTION) == MHD_NO_FLAG) {\n      if (connection->connection_timeout != pMVar1->connection_timeout) {\n        if (connection->prevX == (MHD_Connection *)0x0) {\n          pMVar1->manual_timeout_head = connection->nextX;\n        }\n        else {\n          connection->prevX->nextX = connection->nextX;\n        }\n        if (connection->nextX == (MHD_Connection *)0x0) {\n          pMVar1->manual_timeout_tail = connection->prevX;\n        }\n        else {\n          connection->nextX->prevX = connection->prevX;\n        }\n        connection->nextX = (MHD_Connection *)0x0;\n        connection->prevX = (MHD_Connection *)0x0;\n        goto LAB_0010c380;\n      }\n      goto LAB_0010c4a7;\n    }\n  }\n  else {\n    (*mhd_panic)(mhd_panic_cls,"daemon.c",0xa83,"Failed to lock mutex.\n");\nLAB_0010c474:\n    connection->resuming = false;\n    iVar2 = pthread_mutex_unlock((pthread_mutex_t *)__mutex);\n    if (iVar2 == 0) {\n      return;\n    }\n    (*mhd_panic)(mhd_panic_cls,"daemon.c",0xa8a,"Failed to unlock mutex.\n");\nLAB_0010c4a7:\n    if (connection->prevX == (MHD_Connection *)0x0) {\n      pMVar1->normal_timeout_head = connection->nextX;\n    }\n    else {\n      connection->prevX->nextX = connection->nextX;\n    }\n    if (connection->nextX == (MHD_Connection *)0x0) {\n      pMVar1->normal_timeout_tail = connection->prevX;\n    }\n    else {\n      connection->nextX->prevX = connection->prevX;\n    }\n    connection->nextX = (MHD_Connection *)0x0;\n    connection->prevX = (MHD_Connection *)0x0;\n  }\nLAB_0010c380:\n  if (connection->prev == (MHD_Connection *)0x0) {\n    pMVar1->connections_head = connection->next;\n  }\n  else {\n    connection->prev->next = connection->next;\n  }\n  if (connection->next == (MHD_Connection *)0x0) {\n    pMVar1->connections_tail = connection->prev;\n  }\n  else {\n    connection->next->prev = connection->prev;\n  }\n  connection->next = (MHD_Connection *)0x0;\n  connection->prev = (MHD_Connection *)0x0;\n  pMVar3 = pMVar1->suspended_connections_head;\n  connection->next = pMVar3;\n  if (pMVar1->suspended_connections_tail == (MHD_Connection *)0x0) {\n    pMVar1->suspended_connections_tail = connection;\n  }\n  else {\n    pMVar3->prev = connection;\n  }\n  pMVar1->suspended_connections_head = connection;\n  connection->suspended = true;\n  if ((pMVar1->options & MHD_USE_EPOLL) != MHD_NO_FLAG) {\n    if ((connection->epoll_state & MHD_EPOLL_STATE_IN_EREADY_EDLL) != MHD_EPOLL_STATE_UNREADY) {\n      if (connection->prevE == (MHD_Connection *)0x0) {\n        pMVar1->eready_head = connection->nextE;\n      }\n      else {\n        connection->prevE->nextE = connection->nextE;\n      }\n      if (connection->nextE == (MHD_Connection *)0x0) {\n        pMVar1->eready_tail = connection->prevE;\n      }\n      else {\n        connection->nextE->prevE = connection->prevE;\n      }\n      connection->nextE = (MHD_Connection *)0x0;\n      connection->prevE = (MHD_Connection *)0x0;\n      connection->epoll_state = connection->epoll_state & ~MHD_EPOLL_STATE_IN_EREADY_EDLL;\n    }\n    if ((connection->epoll_state & MHD_EPOLL_STATE_IN_EPOLL_SET) != MHD_EPOLL_STATE_UNREADY) {\n      iVar2 = epoll_ctl(pMVar1->epoll_fd,2,connection->socket_fd,(epoll_event *)0x0);\n      if (iVar2 != 0) {\n        (*mhd_panic)(mhd_panic_cls,"daemon.c",0xab1,"Failed to remove FD from epoll set\n");\n        goto LAB_0010c593;\n      }\n      connection->epoll_state = connection->epoll_state & ~MHD_EPOLL_STATE_IN_EPOLL_SET;\n    }\n    connection->epoll_state = connection->epoll_state | MHD_EPOLL_STATE_SUSPENDED;\n  }\n  iVar2 = pthread_mutex_unlock((pthread_mutex_t *)__mutex);\n  if (iVar2 == 0) {\n    return;\n  }\nLAB_0010c593:\n  pMVar3 = (MHD_Connection *)mhd_panic_cls;\n  (*mhd_panic)(mhd_panic_cls,"daemon.c",0xab8,"Failed to unlock mutex.\n");\n  if ((pMVar3->daemon->options & 0x2000) == MHD_NO_FLAG) {\n    pMVar3 = (MHD_Connection *)mhd_panic_cls;\n    (*mhd_panic)(mhd_panic_cls,"daemon.c",0xae2,\n                 "Cannot suspend connections without enabling MHD_ALLOW_SUSPEND_RESUME!\n");\n  }\n  else if (pMVar3->urh != (MHD_UpgradeResponseHandle *)0x0) {\n    MHD_DLOG(pMVar3->daemon,"Error: connection scheduled for \"upgrade\" cannot be suspended");\n    return;\n  }\n  internal_suspend_connection_(pMVar3);\n  return;\n}" primitive_type (function_declarator "internal_suspend_connection_(MHD_Connection *connection)" identifier (parameter_list "(MHD_Connection *connection)" ( (parameter_declaration "MHD_Connection *connection" type_identifier (pointer_declarator "*connection" * identifier)) ))) (compound_statement "{\n  MHD_mutex_ *__mutex;\n  MHD_Daemon *pMVar1;\n  int iVar2;\n  MHD_Connection *pMVar3;\n  \n  pMVar1 = connection->daemon;\n  __mutex = &pMVar1->cleanup_connection_mutex;\n  iVar2 = pthread_mutex_lock((pthread_mutex_t *)__mutex);\n  if (iVar2 == 0) {\n    if (connection->resuming != false) goto LAB_0010c474;\n    if ((pMVar1->options & MHD_USE_THREAD_PER_CONNECTION) == MHD_NO_FLAG) {\n      if (connection->connection_timeout != pMVar1->connection_timeout) {\n        if (connection->prevX == (MHD_Connection *)0x0) {\n          pMVar1->manual_timeout_head = connection->nextX;\n        }\n        else {\n          connection->prevX->nextX = connection->nextX;\n        }\n        if (connection->nextX == (MHD_Connection *)0x0) {\n          pMVar1->manual_timeout_tail = connection->prevX;\n        }\n        else {\n          connection->nextX->prevX = connection->prevX;\n        }\n        connection->nextX = (MHD_Connection *)0x0;\n        connection->prevX = (MHD_Connection *)0x0;\n        goto LAB_0010c380;\n      }\n      goto LAB_0010c4a7;\n    }\n  }\n  else {\n    (*mhd_panic)(mhd_panic_cls,"daemon.c",0xa83,"Failed to lock mutex.\n");\nLAB_0010c474:\n    connection->resuming = false;\n    iVar2 = pthread_mutex_unlock((pthread_mutex_t *)__mutex);\n    if (iVar2 == 0) {\n      return;\n    }\n    (*mhd_panic)(mhd_panic_cls,"daemon.c",0xa8a,"Failed to unlock mutex.\n");\nLAB_0010c4a7:\n    if (connection->prevX == (MHD_Connection *)0x0) {\n      pMVar1->normal_timeout_head = connection->nextX;\n    }\n    else {\n      connection->prevX->nextX = connection->nextX;\n    }\n    if (connection->nextX == (MHD_Connection *)0x0) {\n      pMVar1->normal_timeout_tail = connection->prevX;\n    }\n    else {\n      connection->nextX->prevX = connection->prevX;\n    }\n    connection->nextX = (MHD_Connection *)0x0;\n    connection->prevX = (MHD_Connection *)0x0;\n  }\nLAB_0010c380:\n  if (connection->prev == (MHD_Connection *)0x0) {\n    pMVar1->connections_head = connection->next;\n  }\n  else {\n    connection->prev->next = connection->next;\n  }\n  if (connection->next == (MHD_Connection *)0x0) {\n    pMVar1->connections_tail = connection->prev;\n  }\n  else {\n    connection->next->prev = connection->prev;\n  }\n  connection->next = (MHD_Connection *)0x0;\n  connection->prev = (MHD_Connection *)0x0;\n  pMVar3 = pMVar1->suspended_connections_head;\n  connection->next = pMVar3;\n  if (pMVar1->suspended_connections_tail == (MHD_Connection *)0x0) {\n    pMVar1->suspended_connections_tail = connection;\n  }\n  else {\n    pMVar3->prev = connection;\n  }\n  pMVar1->suspended_connections_head = connection;\n  connection->suspended = true;\n  if ((pMVar1->options & MHD_USE_EPOLL) != MHD_NO_FLAG) {\n    if ((connection->epoll_state & MHD_EPOLL_STATE_IN_EREADY_EDLL) != MHD_EPOLL_STATE_UNREADY) {\n      if (connection->prevE == (MHD_Connection *)0x0) {\n        pMVar1->eready_head = connection->nextE;\n      }\n      else {\n        connection->prevE->nextE = connection->nextE;\n      }\n      if (connection->nextE == (MHD_Connection *)0x0) {\n        pMVar1->eready_tail = connection->prevE;\n      }\n      else {\n        connection->nextE->prevE = connection->prevE;\n      }\n      connection->nextE = (MHD_Connection *)0x0;\n      connection->prevE = (MHD_Connection *)0x0;\n      connection->epoll_state = connection->epoll_state & ~MHD_EPOLL_STATE_IN_EREADY_EDLL;\n    }\n    if ((connection->epoll_state & MHD_EPOLL_STATE_IN_EPOLL_SET) != MHD_EPOLL_STATE_UNREADY) {\n      iVar2 = epoll_ctl(pMVar1->epoll_fd,2,connection->socket_fd,(epoll_event *)0x0);\n      if (iVar2 != 0) {\n        (*mhd_panic)(mhd_panic_cls,"daemon.c",0xab1,"Failed to remove FD from epoll set\n");\n        goto LAB_0010c593;\n      }\n      connection->epoll_state = connection->epoll_state & ~MHD_EPOLL_STATE_IN_EPOLL_SET;\n    }\n    connection->epoll_state = connection->epoll_state | MHD_EPOLL_STATE_SUSPENDED;\n  }\n  iVar2 = pthread_mutex_unlock((pthread_mutex_t *)__mutex);\n  if (iVar2 == 0) {\n    return;\n  }\nLAB_0010c593:\n  pMVar3 = (MHD_Connection *)mhd_panic_cls;\n  (*mhd_panic)(mhd_panic_cls,"daemon.c",0xab8,"Failed to unlock mutex.\n");\n  if ((pMVar3->daemon->options & 0x2000) == MHD_NO_FLAG) {\n    pMVar3 = (MHD_Connection *)mhd_panic_cls;\n    (*mhd_panic)(mhd_panic_cls,"daemon.c",0xae2,\n                 "Cannot suspend connections without enabling MHD_ALLOW_SUSPEND_RESUME!\n");\n  }\n  else if (pMVar3->urh != (MHD_UpgradeResponseHandle *)0x0) {\n    MHD_DLOG(pMVar3->daemon,"Error: connection scheduled for \"upgrade\" cannot be suspended");\n    return;\n  }\n  internal_suspend_connection_(pMVar3);\n  return;\n}" { (declaration "MHD_mutex_ *__mutex;" type_identifier (pointer_declarator "*__mutex" * identifier) ;) (declaration "MHD_Daemon *pMVar1;" type_identifier (pointer_declarator "*pMVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "MHD_Connection *pMVar3;" type_identifier (pointer_declarator "*pMVar3" * identifier) ;) (expression_statement "pMVar1 = connection->daemon;" (assignment_expression "pMVar1 = connection->daemon" identifier = (field_expression "connection->daemon" identifier -> field_identifier)) ;) (expression_statement "__mutex = &pMVar1->cleanup_connection_mutex;" (assignment_expression "__mutex = &pMVar1->cleanup_connection_mutex" identifier = (pointer_expression "&pMVar1->cleanup_connection_mutex" & (field_expression "pMVar1->cleanup_connection_mutex" identifier -> field_identifier))) ;) (expression_statement "iVar2 = pthread_mutex_lock((pthread_mutex_t *)__mutex);" (assignment_expression "iVar2 = pthread_mutex_lock((pthread_mutex_t *)__mutex)" identifier = (call_expression "pthread_mutex_lock((pthread_mutex_t *)__mutex)" identifier (argument_list "((pthread_mutex_t *)__mutex)" ( (cast_expression "(pthread_mutex_t *)__mutex" ( (type_descriptor "pthread_mutex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (if_statement "if (iVar2 == 0) {\n    if (connection->resuming != false) goto LAB_0010c474;\n    if ((pMVar1->options & MHD_USE_THREAD_PER_CONNECTION) == MHD_NO_FLAG) {\n      if (connection->connection_timeout != pMVar1->connection_timeout) {\n        if (connection->prevX == (MHD_Connection *)0x0) {\n          pMVar1->manual_timeout_head = connection->nextX;\n        }\n        else {\n          connection->prevX->nextX = connection->nextX;\n        }\n        if (connection->nextX == (MHD_Connection *)0x0) {\n          pMVar1->manual_timeout_tail = connection->prevX;\n        }\n        else {\n          connection->nextX->prevX = connection->prevX;\n        }\n        connection->nextX = (MHD_Connection *)0x0;\n        connection->prevX = (MHD_Connection *)0x0;\n        goto LAB_0010c380;\n      }\n      goto LAB_0010c4a7;\n    }\n  }\n  else {\n    (*mhd_panic)(mhd_panic_cls,"daemon.c",0xa83,"Failed to lock mutex.\n");\nLAB_0010c474:\n    connection->resuming = false;\n    iVar2 = pthread_mutex_unlock((pthread_mutex_t *)__mutex);\n    if (iVar2 == 0) {\n      return;\n    }\n    (*mhd_panic)(mhd_panic_cls,"daemon.c",0xa8a,"Failed to unlock mutex.\n");\nLAB_0010c4a7:\n    if (connection->prevX == (MHD_Connection *)0x0) {\n      pMVar1->normal_timeout_head = connection->nextX;\n    }\n    else {\n      connection->prevX->nextX = connection->nextX;\n    }\n    if (connection->nextX == (MHD_Connection *)0x0) {\n      pMVar1->normal_timeout_tail = connection->prevX;\n    }\n    else {\n      connection->nextX->prevX = connection->prevX;\n    }\n    connection->nextX = (MHD_Connection *)0x0;\n    connection->prevX = (MHD_Connection *)0x0;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    if (connection->resuming != false) goto LAB_0010c474;\n    if ((pMVar1->options & MHD_USE_THREAD_PER_CONNECTION) == MHD_NO_FLAG) {\n      if (connection->connection_timeout != pMVar1->connection_timeout) {\n        if (connection->prevX == (MHD_Connection *)0x0) {\n          pMVar1->manual_timeout_head = connection->nextX;\n        }\n        else {\n          connection->prevX->nextX = connection->nextX;\n        }\n        if (connection->nextX == (MHD_Connection *)0x0) {\n          pMVar1->manual_timeout_tail = connection->prevX;\n        }\n        else {\n          connection->nextX->prevX = connection->prevX;\n        }\n        connection->nextX = (MHD_Connection *)0x0;\n        connection->prevX = (MHD_Connection *)0x0;\n        goto LAB_0010c380;\n      }\n      goto LAB_0010c4a7;\n    }\n  }" { (if_statement "if (connection->resuming != false) goto LAB_0010c474;" if (parenthesized_expression "(connection->resuming != false)" ( (binary_expression "connection->resuming != false" (field_expression "connection->resuming" identifier -> field_identifier) != false) )) (goto_statement "goto LAB_0010c474;" goto statement_identifier ;)) (if_statement "if ((pMVar1->options & MHD_USE_THREAD_PER_CONNECTION) == MHD_NO_FLAG) {\n      if (connection->connection_timeout != pMVar1->connection_timeout) {\n        if (connection->prevX == (MHD_Connection *)0x0) {\n          pMVar1->manual_timeout_head = connection->nextX;\n        }\n        else {\n          connection->prevX->nextX = connection->nextX;\n        }\n        if (connection->nextX == (MHD_Connection *)0x0) {\n          pMVar1->manual_timeout_tail = connection->prevX;\n        }\n        else {\n          connection->nextX->prevX = connection->prevX;\n        }\n        connection->nextX = (MHD_Connection *)0x0;\n        connection->prevX = (MHD_Connection *)0x0;\n        goto LAB_0010c380;\n      }\n      goto LAB_0010c4a7;\n    }" if (parenthesized_expression "((pMVar1->options & MHD_USE_THREAD_PER_CONNECTION) == MHD_NO_FLAG)" ( (binary_expression "(pMVar1->options & MHD_USE_THREAD_PER_CONNECTION) == MHD_NO_FLAG" (parenthesized_expression "(pMVar1->options & MHD_USE_THREAD_PER_CONNECTION)" ( (binary_expression "pMVar1->options & MHD_USE_THREAD_PER_CONNECTION" (field_expression "pMVar1->options" identifier -> field_identifier) & identifier) )) == identifier) )) (compound_statement "{\n      if (connection->connection_timeout != pMVar1->connection_timeout) {\n        if (connection->prevX == (MHD_Connection *)0x0) {\n          pMVar1->manual_timeout_head = connection->nextX;\n        }\n        else {\n          connection->prevX->nextX = connection->nextX;\n        }\n        if (connection->nextX == (MHD_Connection *)0x0) {\n          pMVar1->manual_timeout_tail = connection->prevX;\n        }\n        else {\n          connection->nextX->prevX = connection->prevX;\n        }\n        connection->nextX = (MHD_Connection *)0x0;\n        connection->prevX = (MHD_Connection *)0x0;\n        goto LAB_0010c380;\n      }\n      goto LAB_0010c4a7;\n    }" { (if_statement "if (connection->connection_timeout != pMVar1->connection_timeout) {\n        if (connection->prevX == (MHD_Connection *)0x0) {\n          pMVar1->manual_timeout_head = connection->nextX;\n        }\n        else {\n          connection->prevX->nextX = connection->nextX;\n        }\n        if (connection->nextX == (MHD_Connection *)0x0) {\n          pMVar1->manual_timeout_tail = connection->prevX;\n        }\n        else {\n          connection->nextX->prevX = connection->prevX;\n        }\n        connection->nextX = (MHD_Connection *)0x0;\n        connection->prevX = (MHD_Connection *)0x0;\n        goto LAB_0010c380;\n      }" if (parenthesized_expression "(connection->connection_timeout != pMVar1->connection_timeout)" ( (binary_expression "connection->connection_timeout != pMVar1->connection_timeout" (field_expression "connection->connection_timeout" identifier -> field_identifier) != (field_expression "pMVar1->connection_timeout" identifier -> field_identifier)) )) (compound_statement "{\n        if (connection->prevX == (MHD_Connection *)0x0) {\n          pMVar1->manual_timeout_head = connection->nextX;\n        }\n        else {\n          connection->prevX->nextX = connection->nextX;\n        }\n        if (connection->nextX == (MHD_Connection *)0x0) {\n          pMVar1->manual_timeout_tail = connection->prevX;\n        }\n        else {\n          connection->nextX->prevX = connection->prevX;\n        }\n        connection->nextX = (MHD_Connection *)0x0;\n        connection->prevX = (MHD_Connection *)0x0;\n        goto LAB_0010c380;\n      }" { (if_statement "if (connection->prevX == (MHD_Connection *)0x0) {\n          pMVar1->manual_timeout_head = connection->nextX;\n        }\n        else {\n          connection->prevX->nextX = connection->nextX;\n        }" if (parenthesized_expression "(connection->prevX == (MHD_Connection *)0x0)" ( (binary_expression "connection->prevX == (MHD_Connection *)0x0" (field_expression "connection->prevX" identifier -> field_identifier) == (cast_expression "(MHD_Connection *)0x0" ( (type_descriptor "MHD_Connection *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          pMVar1->manual_timeout_head = connection->nextX;\n        }" { (expression_statement "pMVar1->manual_timeout_head = connection->nextX;" (assignment_expression "pMVar1->manual_timeout_head = connection->nextX" (field_expression "pMVar1->manual_timeout_head" identifier -> field_identifier) = (field_expression "connection->nextX" identifier -> field_identifier)) ;) }) (else_clause "else {\n          connection->prevX->nextX = connection->nextX;\n        }" else (compound_statement "{\n          connection->prevX->nextX = connection->nextX;\n        }" { (expression_statement "connection->prevX->nextX = connection->nextX;" (assignment_expression "connection->prevX->nextX = connection->nextX" (field_expression "connection->prevX->nextX" (field_expression "connection->prevX" identifier -> field_identifier) -> field_identifier) = (field_expression "connection->nextX" identifier -> field_identifier)) ;) }))) (if_statement "if (connection->nextX == (MHD_Connection *)0x0) {\n          pMVar1->manual_timeout_tail = connection->prevX;\n        }\n        else {\n          connection->nextX->prevX = connection->prevX;\n        }" if (parenthesized_expression "(connection->nextX == (MHD_Connection *)0x0)" ( (binary_expression "connection->nextX == (MHD_Connection *)0x0" (field_expression "connection->nextX" identifier -> field_identifier) == (cast_expression "(MHD_Connection *)0x0" ( (type_descriptor "MHD_Connection *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          pMVar1->manual_timeout_tail = connection->prevX;\n        }" { (expression_statement "pMVar1->manual_timeout_tail = connection->prevX;" (assignment_expression "pMVar1->manual_timeout_tail = connection->prevX" (field_expression "pMVar1->manual_timeout_tail" identifier -> field_identifier) = (field_expression "connection->prevX" identifier -> field_identifier)) ;) }) (else_clause "else {\n          connection->nextX->prevX = connection->prevX;\n        }" else (compound_statement "{\n          connection->nextX->prevX = connection->prevX;\n        }" { (expression_statement "connection->nextX->prevX = connection->prevX;" (assignment_expression "connection->nextX->prevX = connection->prevX" (field_expression "connection->nextX->prevX" (field_expression "connection->nextX" identifier -> field_identifier) -> field_identifier) = (field_expression "connection->prevX" identifier -> field_identifier)) ;) }))) (expression_statement "connection->nextX = (MHD_Connection *)0x0;" (assignment_expression "connection->nextX = (MHD_Connection *)0x0" (field_expression "connection->nextX" identifier -> field_identifier) = (cast_expression "(MHD_Connection *)0x0" ( (type_descriptor "MHD_Connection *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "connection->prevX = (MHD_Connection *)0x0;" (assignment_expression "connection->prevX = (MHD_Connection *)0x0" (field_expression "connection->prevX" identifier -> field_identifier) = (cast_expression "(MHD_Connection *)0x0" ( (type_descriptor "MHD_Connection *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (goto_statement "goto LAB_0010c380;" goto statement_identifier ;) })) (goto_statement "goto LAB_0010c4a7;" goto statement_identifier ;) })) }) (else_clause "else {\n    (*mhd_panic)(mhd_panic_cls,"daemon.c",0xa83,"Failed to lock mutex.\n");\nLAB_0010c474:\n    connection->resuming = false;\n    iVar2 = pthread_mutex_unlock((pthread_mutex_t *)__mutex);\n    if (iVar2 == 0) {\n      return;\n    }\n    (*mhd_panic)(mhd_panic_cls,"daemon.c",0xa8a,"Failed to unlock mutex.\n");\nLAB_0010c4a7:\n    if (connection->prevX == (MHD_Connection *)0x0) {\n      pMVar1->normal_timeout_head = connection->nextX;\n    }\n    else {\n      connection->prevX->nextX = connection->nextX;\n    }\n    if (connection->nextX == (MHD_Connection *)0x0) {\n      pMVar1->normal_timeout_tail = connection->prevX;\n    }\n    else {\n      connection->nextX->prevX = connection->prevX;\n    }\n    connection->nextX = (MHD_Connection *)0x0;\n    connection->prevX = (MHD_Connection *)0x0;\n  }" else (compound_statement "{\n    (*mhd_panic)(mhd_panic_cls,"daemon.c",0xa83,"Failed to lock mutex.\n");\nLAB_0010c474:\n    connection->resuming = false;\n    iVar2 = pthread_mutex_unlock((pthread_mutex_t *)__mutex);\n    if (iVar2 == 0) {\n      return;\n    }\n    (*mhd_panic)(mhd_panic_cls,"daemon.c",0xa8a,"Failed to unlock mutex.\n");\nLAB_0010c4a7:\n    if (connection->prevX == (MHD_Connection *)0x0) {\n      pMVar1->normal_timeout_head = connection->nextX;\n    }\n    else {\n      connection->prevX->nextX = connection->nextX;\n    }\n    if (connection->nextX == (MHD_Connection *)0x0) {\n      pMVar1->normal_timeout_tail = connection->prevX;\n    }\n    else {\n      connection->nextX->prevX = connection->prevX;\n    }\n    connection->nextX = (MHD_Connection *)0x0;\n    connection->prevX = (MHD_Connection *)0x0;\n  }" { (expression_statement "(*mhd_panic)(mhd_panic_cls,"daemon.c",0xa83,"Failed to lock mutex.\n");" (call_expression "(*mhd_panic)(mhd_panic_cls,"daemon.c",0xa83,"Failed to lock mutex.\n")" (parenthesized_expression "(*mhd_panic)" ( (pointer_expression "*mhd_panic" * identifier) )) (argument_list "(mhd_panic_cls,"daemon.c",0xa83,"Failed to lock mutex.\n")" ( identifier , (string_literal ""daemon.c"" " string_content ") , number_literal , (string_literal ""Failed to lock mutex.\n"" " string_content escape_sequence ") ))) ;) (labeled_statement "LAB_0010c474:\n    connection->resuming = false;" statement_identifier : (expression_statement "connection->resuming = false;" (assignment_expression "connection->resuming = false" (field_expression "connection->resuming" identifier -> field_identifier) = false) ;)) (expression_statement "iVar2 = pthread_mutex_unlock((pthread_mutex_t *)__mutex);" (assignment_expression "iVar2 = pthread_mutex_unlock((pthread_mutex_t *)__mutex)" identifier = (call_expression "pthread_mutex_unlock((pthread_mutex_t *)__mutex)" identifier (argument_list "((pthread_mutex_t *)__mutex)" ( (cast_expression "(pthread_mutex_t *)__mutex" ( (type_descriptor "pthread_mutex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (if_statement "if (iVar2 == 0) {\n      return;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "(*mhd_panic)(mhd_panic_cls,"daemon.c",0xa8a,"Failed to unlock mutex.\n");" (call_expression "(*mhd_panic)(mhd_panic_cls,"daemon.c",0xa8a,"Failed to unlock mutex.\n")" (parenthesized_expression "(*mhd_panic)" ( (pointer_expression "*mhd_panic" * identifier) )) (argument_list "(mhd_panic_cls,"daemon.c",0xa8a,"Failed to unlock mutex.\n")" ( identifier , (string_literal ""daemon.c"" " string_content ") , number_literal , (string_literal ""Failed to unlock mutex.\n"" " string_content escape_sequence ") ))) ;) (labeled_statement "LAB_0010c4a7:\n    if (connection->prevX == (MHD_Connection *)0x0) {\n      pMVar1->normal_timeout_head = connection->nextX;\n    }\n    else {\n      connection->prevX->nextX = connection->nextX;\n    }" statement_identifier : (if_statement "if (connection->prevX == (MHD_Connection *)0x0) {\n      pMVar1->normal_timeout_head = connection->nextX;\n    }\n    else {\n      connection->prevX->nextX = connection->nextX;\n    }" if (parenthesized_expression "(connection->prevX == (MHD_Connection *)0x0)" ( (binary_expression "connection->prevX == (MHD_Connection *)0x0" (field_expression "connection->prevX" identifier -> field_identifier) == (cast_expression "(MHD_Connection *)0x0" ( (type_descriptor "MHD_Connection *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pMVar1->normal_timeout_head = connection->nextX;\n    }" { (expression_statement "pMVar1->normal_timeout_head = connection->nextX;" (assignment_expression "pMVar1->normal_timeout_head = connection->nextX" (field_expression "pMVar1->normal_timeout_head" identifier -> field_identifier) = (field_expression "connection->nextX" identifier -> field_identifier)) ;) }) (else_clause "else {\n      connection->prevX->nextX = connection->nextX;\n    }" else (compound_statement "{\n      connection->prevX->nextX = connection->nextX;\n    }" { (expression_statement "connection->prevX->nextX = connection->nextX;" (assignment_expression "connection->prevX->nextX = connection->nextX" (field_expression "connection->prevX->nextX" (field_expression "connection->prevX" identifier -> field_identifier) -> field_identifier) = (field_expression "connection->nextX" identifier -> field_identifier)) ;) })))) (if_statement "if (connection->nextX == (MHD_Connection *)0x0) {\n      pMVar1->normal_timeout_tail = connection->prevX;\n    }\n    else {\n      connection->nextX->prevX = connection->prevX;\n    }" if (parenthesized_expression "(connection->nextX == (MHD_Connection *)0x0)" ( (binary_expression "connection->nextX == (MHD_Connection *)0x0" (field_expression "connection->nextX" identifier -> field_identifier) == (cast_expression "(MHD_Connection *)0x0" ( (type_descriptor "MHD_Connection *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pMVar1->normal_timeout_tail = connection->prevX;\n    }" { (expression_statement "pMVar1->normal_timeout_tail = connection->prevX;" (assignment_expression "pMVar1->normal_timeout_tail = connection->prevX" (field_expression "pMVar1->normal_timeout_tail" identifier -> field_identifier) = (field_expression "connection->prevX" identifier -> field_identifier)) ;) }) (else_clause "else {\n      connection->nextX->prevX = connection->prevX;\n    }" else (compound_statement "{\n      connection->nextX->prevX = connection->prevX;\n    }" { (expression_statement "connection->nextX->prevX = connection->prevX;" (assignment_expression "connection->nextX->prevX = connection->prevX" (field_expression "connection->nextX->prevX" (field_expression "connection->nextX" identifier -> field_identifier) -> field_identifier) = (field_expression "connection->prevX" identifier -> field_identifier)) ;) }))) (expression_statement "connection->nextX = (MHD_Connection *)0x0;" (assignment_expression "connection->nextX = (MHD_Connection *)0x0" (field_expression "connection->nextX" identifier -> field_identifier) = (cast_expression "(MHD_Connection *)0x0" ( (type_descriptor "MHD_Connection *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "connection->prevX = (MHD_Connection *)0x0;" (assignment_expression "connection->prevX = (MHD_Connection *)0x0" (field_expression "connection->prevX" identifier -> field_identifier) = (cast_expression "(MHD_Connection *)0x0" ( (type_descriptor "MHD_Connection *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }))) (labeled_statement "LAB_0010c380:\n  if (connection->prev == (MHD_Connection *)0x0) {\n    pMVar1->connections_head = connection->next;\n  }\n  else {\n    connection->prev->next = connection->next;\n  }" statement_identifier : (if_statement "if (connection->prev == (MHD_Connection *)0x0) {\n    pMVar1->connections_head = connection->next;\n  }\n  else {\n    connection->prev->next = connection->next;\n  }" if (parenthesized_expression "(connection->prev == (MHD_Connection *)0x0)" ( (binary_expression "connection->prev == (MHD_Connection *)0x0" (field_expression "connection->prev" identifier -> field_identifier) == (cast_expression "(MHD_Connection *)0x0" ( (type_descriptor "MHD_Connection *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pMVar1->connections_head = connection->next;\n  }" { (expression_statement "pMVar1->connections_head = connection->next;" (assignment_expression "pMVar1->connections_head = connection->next" (field_expression "pMVar1->connections_head" identifier -> field_identifier) = (field_expression "connection->next" identifier -> field_identifier)) ;) }) (else_clause "else {\n    connection->prev->next = connection->next;\n  }" else (compound_statement "{\n    connection->prev->next = connection->next;\n  }" { (expression_statement "connection->prev->next = connection->next;" (assignment_expression "connection->prev->next = connection->next" (field_expression "connection->prev->next" (field_expression "connection->prev" identifier -> field_identifier) -> field_identifier) = (field_expression "connection->next" identifier -> field_identifier)) ;) })))) (if_statement "if (connection->next == (MHD_Connection *)0x0) {\n    pMVar1->connections_tail = connection->prev;\n  }\n  else {\n    connection->next->prev = connection->prev;\n  }" if (parenthesized_expression "(connection->next == (MHD_Connection *)0x0)" ( (binary_expression "connection->next == (MHD_Connection *)0x0" (field_expression "connection->next" identifier -> field_identifier) == (cast_expression "(MHD_Connection *)0x0" ( (type_descriptor "MHD_Connection *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pMVar1->connections_tail = connection->prev;\n  }" { (expression_statement "pMVar1->connections_tail = connection->prev;" (assignment_expression "pMVar1->connections_tail = connection->prev" (field_expression "pMVar1->connections_tail" identifier -> field_identifier) = (field_expression "connection->prev" identifier -> field_identifier)) ;) }) (else_clause "else {\n    connection->next->prev = connection->prev;\n  }" else (compound_statement "{\n    connection->next->prev = connection->prev;\n  }" { (expression_statement "connection->next->prev = connection->prev;" (assignment_expression "connection->next->prev = connection->prev" (field_expression "connection->next->prev" (field_expression "connection->next" identifier -> field_identifier) -> field_identifier) = (field_expression "connection->prev" identifier -> field_identifier)) ;) }))) (expression_statement "connection->next = (MHD_Connection *)0x0;" (assignment_expression "connection->next = (MHD_Connection *)0x0" (field_expression "connection->next" identifier -> field_identifier) = (cast_expression "(MHD_Connection *)0x0" ( (type_descriptor "MHD_Connection *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "connection->prev = (MHD_Connection *)0x0;" (assignment_expression "connection->prev = (MHD_Connection *)0x0" (field_expression "connection->prev" identifier -> field_identifier) = (cast_expression "(MHD_Connection *)0x0" ( (type_descriptor "MHD_Connection *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pMVar3 = pMVar1->suspended_connections_head;" (assignment_expression "pMVar3 = pMVar1->suspended_connections_head" identifier = (field_expression "pMVar1->suspended_connections_head" identifier -> field_identifier)) ;) (expression_statement "connection->next = pMVar3;" (assignment_expression "connection->next = pMVar3" (field_expression "connection->next" identifier -> field_identifier) = identifier) ;) (if_statement "if (pMVar1->suspended_connections_tail == (MHD_Connection *)0x0) {\n    pMVar1->suspended_connections_tail = connection;\n  }\n  else {\n    pMVar3->prev = connection;\n  }" if (parenthesized_expression "(pMVar1->suspended_connections_tail == (MHD_Connection *)0x0)" ( (binary_expression "pMVar1->suspended_connections_tail == (MHD_Connection *)0x0" (field_expression "pMVar1->suspended_connections_tail" identifier -> field_identifier) == (cast_expression "(MHD_Connection *)0x0" ( (type_descriptor "MHD_Connection *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pMVar1->suspended_connections_tail = connection;\n  }" { (expression_statement "pMVar1->suspended_connections_tail = connection;" (assignment_expression "pMVar1->suspended_connections_tail = connection" (field_expression "pMVar1->suspended_connections_tail" identifier -> field_identifier) = identifier) ;) }) (else_clause "else {\n    pMVar3->prev = connection;\n  }" else (compound_statement "{\n    pMVar3->prev = connection;\n  }" { (expression_statement "pMVar3->prev = connection;" (assignment_expression "pMVar3->prev = connection" (field_expression "pMVar3->prev" identifier -> field_identifier) = identifier) ;) }))) (expression_statement "pMVar1->suspended_connections_head = connection;" (assignment_expression "pMVar1->suspended_connections_head = connection" (field_expression "pMVar1->suspended_connections_head" identifier -> field_identifier) = identifier) ;) (expression_statement "connection->suspended = true;" (assignment_expression "connection->suspended = true" (field_expression "connection->suspended" identifier -> field_identifier) = true) ;) (if_statement "if ((pMVar1->options & MHD_USE_EPOLL) != MHD_NO_FLAG) {\n    if ((connection->epoll_state & MHD_EPOLL_STATE_IN_EREADY_EDLL) != MHD_EPOLL_STATE_UNREADY) {\n      if (connection->prevE == (MHD_Connection *)0x0) {\n        pMVar1->eready_head = connection->nextE;\n      }\n      else {\n        connection->prevE->nextE = connection->nextE;\n      }\n      if (connection->nextE == (MHD_Connection *)0x0) {\n        pMVar1->eready_tail = connection->prevE;\n      }\n      else {\n        connection->nextE->prevE = connection->prevE;\n      }\n      connection->nextE = (MHD_Connection *)0x0;\n      connection->prevE = (MHD_Connection *)0x0;\n      connection->epoll_state = connection->epoll_state & ~MHD_EPOLL_STATE_IN_EREADY_EDLL;\n    }\n    if ((connection->epoll_state & MHD_EPOLL_STATE_IN_EPOLL_SET) != MHD_EPOLL_STATE_UNREADY) {\n      iVar2 = epoll_ctl(pMVar1->epoll_fd,2,connection->socket_fd,(epoll_event *)0x0);\n      if (iVar2 != 0) {\n        (*mhd_panic)(mhd_panic_cls,"daemon.c",0xab1,"Failed to remove FD from epoll set\n");\n        goto LAB_0010c593;\n      }\n      connection->epoll_state = connection->epoll_state & ~MHD_EPOLL_STATE_IN_EPOLL_SET;\n    }\n    connection->epoll_state = connection->epoll_state | MHD_EPOLL_STATE_SUSPENDED;\n  }" if (parenthesized_expression "((pMVar1->options & MHD_USE_EPOLL) != MHD_NO_FLAG)" ( (binary_expression "(pMVar1->options & MHD_USE_EPOLL) != MHD_NO_FLAG" (parenthesized_expression "(pMVar1->options & MHD_USE_EPOLL)" ( (binary_expression "pMVar1->options & MHD_USE_EPOLL" (field_expression "pMVar1->options" identifier -> field_identifier) & identifier) )) != identifier) )) (compound_statement "{\n    if ((connection->epoll_state & MHD_EPOLL_STATE_IN_EREADY_EDLL) != MHD_EPOLL_STATE_UNREADY) {\n      if (connection->prevE == (MHD_Connection *)0x0) {\n        pMVar1->eready_head = connection->nextE;\n      }\n      else {\n        connection->prevE->nextE = connection->nextE;\n      }\n      if (connection->nextE == (MHD_Connection *)0x0) {\n        pMVar1->eready_tail = connection->prevE;\n      }\n      else {\n        connection->nextE->prevE = connection->prevE;\n      }\n      connection->nextE = (MHD_Connection *)0x0;\n      connection->prevE = (MHD_Connection *)0x0;\n      connection->epoll_state = connection->epoll_state & ~MHD_EPOLL_STATE_IN_EREADY_EDLL;\n    }\n    if ((connection->epoll_state & MHD_EPOLL_STATE_IN_EPOLL_SET) != MHD_EPOLL_STATE_UNREADY) {\n      iVar2 = epoll_ctl(pMVar1->epoll_fd,2,connection->socket_fd,(epoll_event *)0x0);\n      if (iVar2 != 0) {\n        (*mhd_panic)(mhd_panic_cls,"daemon.c",0xab1,"Failed to remove FD from epoll set\n");\n        goto LAB_0010c593;\n      }\n      connection->epoll_state = connection->epoll_state & ~MHD_EPOLL_STATE_IN_EPOLL_SET;\n    }\n    connection->epoll_state = connection->epoll_state | MHD_EPOLL_STATE_SUSPENDED;\n  }" { (if_statement "if ((connection->epoll_state & MHD_EPOLL_STATE_IN_EREADY_EDLL) != MHD_EPOLL_STATE_UNREADY) {\n      if (connection->prevE == (MHD_Connection *)0x0) {\n        pMVar1->eready_head = connection->nextE;\n      }\n      else {\n        connection->prevE->nextE = connection->nextE;\n      }\n      if (connection->nextE == (MHD_Connection *)0x0) {\n        pMVar1->eready_tail = connection->prevE;\n      }\n      else {\n        connection->nextE->prevE = connection->prevE;\n      }\n      connection->nextE = (MHD_Connection *)0x0;\n      connection->prevE = (MHD_Connection *)0x0;\n      connection->epoll_state = connection->epoll_state & ~MHD_EPOLL_STATE_IN_EREADY_EDLL;\n    }" if (parenthesized_expression "((connection->epoll_state & MHD_EPOLL_STATE_IN_EREADY_EDLL) != MHD_EPOLL_STATE_UNREADY)" ( (binary_expression "(connection->epoll_state & MHD_EPOLL_STATE_IN_EREADY_EDLL) != MHD_EPOLL_STATE_UNREADY" (parenthesized_expression "(connection->epoll_state & MHD_EPOLL_STATE_IN_EREADY_EDLL)" ( (binary_expression "connection->epoll_state & MHD_EPOLL_STATE_IN_EREADY_EDLL" (field_expression "connection->epoll_state" identifier -> field_identifier) & identifier) )) != identifier) )) (compound_statement "{\n      if (connection->prevE == (MHD_Connection *)0x0) {\n        pMVar1->eready_head = connection->nextE;\n      }\n      else {\n        connection->prevE->nextE = connection->nextE;\n      }\n      if (connection->nextE == (MHD_Connection *)0x0) {\n        pMVar1->eready_tail = connection->prevE;\n      }\n      else {\n        connection->nextE->prevE = connection->prevE;\n      }\n      connection->nextE = (MHD_Connection *)0x0;\n      connection->prevE = (MHD_Connection *)0x0;\n      connection->epoll_state = connection->epoll_state & ~MHD_EPOLL_STATE_IN_EREADY_EDLL;\n    }" { (if_statement "if (connection->prevE == (MHD_Connection *)0x0) {\n        pMVar1->eready_head = connection->nextE;\n      }\n      else {\n        connection->prevE->nextE = connection->nextE;\n      }" if (parenthesized_expression "(connection->prevE == (MHD_Connection *)0x0)" ( (binary_expression "connection->prevE == (MHD_Connection *)0x0" (field_expression "connection->prevE" identifier -> field_identifier) == (cast_expression "(MHD_Connection *)0x0" ( (type_descriptor "MHD_Connection *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        pMVar1->eready_head = connection->nextE;\n      }" { (expression_statement "pMVar1->eready_head = connection->nextE;" (assignment_expression "pMVar1->eready_head = connection->nextE" (field_expression "pMVar1->eready_head" identifier -> field_identifier) = (field_expression "connection->nextE" identifier -> field_identifier)) ;) }) (else_clause "else {\n        connection->prevE->nextE = connection->nextE;\n      }" else (compound_statement "{\n        connection->prevE->nextE = connection->nextE;\n      }" { (expression_statement "connection->prevE->nextE = connection->nextE;" (assignment_expression "connection->prevE->nextE = connection->nextE" (field_expression "connection->prevE->nextE" (field_expression "connection->prevE" identifier -> field_identifier) -> field_identifier) = (field_expression "connection->nextE" identifier -> field_identifier)) ;) }))) (if_statement "if (connection->nextE == (MHD_Connection *)0x0) {\n        pMVar1->eready_tail = connection->prevE;\n      }\n      else {\n        connection->nextE->prevE = connection->prevE;\n      }" if (parenthesized_expression "(connection->nextE == (MHD_Connection *)0x0)" ( (binary_expression "connection->nextE == (MHD_Connection *)0x0" (field_expression "connection->nextE" identifier -> field_identifier) == (cast_expression "(MHD_Connection *)0x0" ( (type_descriptor "MHD_Connection *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        pMVar1->eready_tail = connection->prevE;\n      }" { (expression_statement "pMVar1->eready_tail = connection->prevE;" (assignment_expression "pMVar1->eready_tail = connection->prevE" (field_expression "pMVar1->eready_tail" identifier -> field_identifier) = (field_expression "connection->prevE" identifier -> field_identifier)) ;) }) (else_clause "else {\n        connection->nextE->prevE = connection->prevE;\n      }" else (compound_statement "{\n        connection->nextE->prevE = connection->prevE;\n      }" { (expression_statement "connection->nextE->prevE = connection->prevE;" (assignment_expression "connection->nextE->prevE = connection->prevE" (field_expression "connection->nextE->prevE" (field_expression "connection->nextE" identifier -> field_identifier) -> field_identifier) = (field_expression "connection->prevE" identifier -> field_identifier)) ;) }))) (expression_statement "connection->nextE = (MHD_Connection *)0x0;" (assignment_expression "connection->nextE = (MHD_Connection *)0x0" (field_expression "connection->nextE" identifier -> field_identifier) = (cast_expression "(MHD_Connection *)0x0" ( (type_descriptor "MHD_Connection *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "connection->prevE = (MHD_Connection *)0x0;" (assignment_expression "connection->prevE = (MHD_Connection *)0x0" (field_expression "connection->prevE" identifier -> field_identifier) = (cast_expression "(MHD_Connection *)0x0" ( (type_descriptor "MHD_Connection *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "connection->epoll_state = connection->epoll_state & ~MHD_EPOLL_STATE_IN_EREADY_EDLL;" (assignment_expression "connection->epoll_state = connection->epoll_state & ~MHD_EPOLL_STATE_IN_EREADY_EDLL" (field_expression "connection->epoll_state" identifier -> field_identifier) = (binary_expression "connection->epoll_state & ~MHD_EPOLL_STATE_IN_EREADY_EDLL" (field_expression "connection->epoll_state" identifier -> field_identifier) & (unary_expression "~MHD_EPOLL_STATE_IN_EREADY_EDLL" ~ identifier))) ;) })) (if_statement "if ((connection->epoll_state & MHD_EPOLL_STATE_IN_EPOLL_SET) != MHD_EPOLL_STATE_UNREADY) {\n      iVar2 = epoll_ctl(pMVar1->epoll_fd,2,connection->socket_fd,(epoll_event *)0x0);\n      if (iVar2 != 0) {\n        (*mhd_panic)(mhd_panic_cls,"daemon.c",0xab1,"Failed to remove FD from epoll set\n");\n        goto LAB_0010c593;\n      }\n      connection->epoll_state = connection->epoll_state & ~MHD_EPOLL_STATE_IN_EPOLL_SET;\n    }" if (parenthesized_expression "((connection->epoll_state & MHD_EPOLL_STATE_IN_EPOLL_SET) != MHD_EPOLL_STATE_UNREADY)" ( (binary_expression "(connection->epoll_state & MHD_EPOLL_STATE_IN_EPOLL_SET) != MHD_EPOLL_STATE_UNREADY" (parenthesized_expression "(connection->epoll_state & MHD_EPOLL_STATE_IN_EPOLL_SET)" ( (binary_expression "connection->epoll_state & MHD_EPOLL_STATE_IN_EPOLL_SET" (field_expression "connection->epoll_state" identifier -> field_identifier) & identifier) )) != identifier) )) (compound_statement "{\n      iVar2 = epoll_ctl(pMVar1->epoll_fd,2,connection->socket_fd,(epoll_event *)0x0);\n      if (iVar2 != 0) {\n        (*mhd_panic)(mhd_panic_cls,"daemon.c",0xab1,"Failed to remove FD from epoll set\n");\n        goto LAB_0010c593;\n      }\n      connection->epoll_state = connection->epoll_state & ~MHD_EPOLL_STATE_IN_EPOLL_SET;\n    }" { (expression_statement "iVar2 = epoll_ctl(pMVar1->epoll_fd,2,connection->socket_fd,(epoll_event *)0x0);" (assignment_expression "iVar2 = epoll_ctl(pMVar1->epoll_fd,2,connection->socket_fd,(epoll_event *)0x0)" identifier = (call_expression "epoll_ctl(pMVar1->epoll_fd,2,connection->socket_fd,(epoll_event *)0x0)" identifier (argument_list "(pMVar1->epoll_fd,2,connection->socket_fd,(epoll_event *)0x0)" ( (field_expression "pMVar1->epoll_fd" identifier -> field_identifier) , number_literal , (field_expression "connection->socket_fd" identifier -> field_identifier) , (cast_expression "(epoll_event *)0x0" ( (type_descriptor "epoll_event *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) )))) ;) (if_statement "if (iVar2 != 0) {\n        (*mhd_panic)(mhd_panic_cls,"daemon.c",0xab1,"Failed to remove FD from epoll set\n");\n        goto LAB_0010c593;\n      }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        (*mhd_panic)(mhd_panic_cls,"daemon.c",0xab1,"Failed to remove FD from epoll set\n");\n        goto LAB_0010c593;\n      }" { (expression_statement "(*mhd_panic)(mhd_panic_cls,"daemon.c",0xab1,"Failed to remove FD from epoll set\n");" (call_expression "(*mhd_panic)(mhd_panic_cls,"daemon.c",0xab1,"Failed to remove FD from epoll set\n")" (parenthesized_expression "(*mhd_panic)" ( (pointer_expression "*mhd_panic" * identifier) )) (argument_list "(mhd_panic_cls,"daemon.c",0xab1,"Failed to remove FD from epoll set\n")" ( identifier , (string_literal ""daemon.c"" " string_content ") , number_literal , (string_literal ""Failed to remove FD from epoll set\n"" " string_content escape_sequence ") ))) ;) (goto_statement "goto LAB_0010c593;" goto statement_identifier ;) })) (expression_statement "connection->epoll_state = connection->epoll_state & ~MHD_EPOLL_STATE_IN_EPOLL_SET;" (assignment_expression "connection->epoll_state = connection->epoll_state & ~MHD_EPOLL_STATE_IN_EPOLL_SET" (field_expression "connection->epoll_state" identifier -> field_identifier) = (binary_expression "connection->epoll_state & ~MHD_EPOLL_STATE_IN_EPOLL_SET" (field_expression "connection->epoll_state" identifier -> field_identifier) & (unary_expression "~MHD_EPOLL_STATE_IN_EPOLL_SET" ~ identifier))) ;) })) (expression_statement "connection->epoll_state = connection->epoll_state | MHD_EPOLL_STATE_SUSPENDED;" (assignment_expression "connection->epoll_state = connection->epoll_state | MHD_EPOLL_STATE_SUSPENDED" (field_expression "connection->epoll_state" identifier -> field_identifier) = (binary_expression "connection->epoll_state | MHD_EPOLL_STATE_SUSPENDED" (field_expression "connection->epoll_state" identifier -> field_identifier) | identifier)) ;) })) (expression_statement "iVar2 = pthread_mutex_unlock((pthread_mutex_t *)__mutex);" (assignment_expression "iVar2 = pthread_mutex_unlock((pthread_mutex_t *)__mutex)" identifier = (call_expression "pthread_mutex_unlock((pthread_mutex_t *)__mutex)" identifier (argument_list "((pthread_mutex_t *)__mutex)" ( (cast_expression "(pthread_mutex_t *)__mutex" ( (type_descriptor "pthread_mutex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (if_statement "if (iVar2 == 0) {\n    return;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (labeled_statement "LAB_0010c593:\n  pMVar3 = (MHD_Connection *)mhd_panic_cls;" statement_identifier : (expression_statement "pMVar3 = (MHD_Connection *)mhd_panic_cls;" (assignment_expression "pMVar3 = (MHD_Connection *)mhd_panic_cls" identifier = (cast_expression "(MHD_Connection *)mhd_panic_cls" ( (type_descriptor "MHD_Connection *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;)) (expression_statement "(*mhd_panic)(mhd_panic_cls,"daemon.c",0xab8,"Failed to unlock mutex.\n");" (call_expression "(*mhd_panic)(mhd_panic_cls,"daemon.c",0xab8,"Failed to unlock mutex.\n")" (parenthesized_expression "(*mhd_panic)" ( (pointer_expression "*mhd_panic" * identifier) )) (argument_list "(mhd_panic_cls,"daemon.c",0xab8,"Failed to unlock mutex.\n")" ( identifier , (string_literal ""daemon.c"" " string_content ") , number_literal , (string_literal ""Failed to unlock mutex.\n"" " string_content escape_sequence ") ))) ;) (if_statement "if ((pMVar3->daemon->options & 0x2000) == MHD_NO_FLAG) {\n    pMVar3 = (MHD_Connection *)mhd_panic_cls;\n    (*mhd_panic)(mhd_panic_cls,"daemon.c",0xae2,\n                 "Cannot suspend connections without enabling MHD_ALLOW_SUSPEND_RESUME!\n");\n  }\n  else if (pMVar3->urh != (MHD_UpgradeResponseHandle *)0x0) {\n    MHD_DLOG(pMVar3->daemon,"Error: connection scheduled for \"upgrade\" cannot be suspended");\n    return;\n  }" if (parenthesized_expression "((pMVar3->daemon->options & 0x2000) == MHD_NO_FLAG)" ( (binary_expression "(pMVar3->daemon->options & 0x2000) == MHD_NO_FLAG" (parenthesized_expression "(pMVar3->daemon->options & 0x2000)" ( (binary_expression "pMVar3->daemon->options & 0x2000" (field_expression "pMVar3->daemon->options" (field_expression "pMVar3->daemon" identifier -> field_identifier) -> field_identifier) & number_literal) )) == identifier) )) (compound_statement "{\n    pMVar3 = (MHD_Connection *)mhd_panic_cls;\n    (*mhd_panic)(mhd_panic_cls,"daemon.c",0xae2,\n                 "Cannot suspend connections without enabling MHD_ALLOW_SUSPEND_RESUME!\n");\n  }" { (expression_statement "pMVar3 = (MHD_Connection *)mhd_panic_cls;" (assignment_expression "pMVar3 = (MHD_Connection *)mhd_panic_cls" identifier = (cast_expression "(MHD_Connection *)mhd_panic_cls" ( (type_descriptor "MHD_Connection *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "(*mhd_panic)(mhd_panic_cls,"daemon.c",0xae2,\n                 "Cannot suspend connections without enabling MHD_ALLOW_SUSPEND_RESUME!\n");" (call_expression "(*mhd_panic)(mhd_panic_cls,"daemon.c",0xae2,\n                 "Cannot suspend connections without enabling MHD_ALLOW_SUSPEND_RESUME!\n")" (parenthesized_expression "(*mhd_panic)" ( (pointer_expression "*mhd_panic" * identifier) )) (argument_list "(mhd_panic_cls,"daemon.c",0xae2,\n                 "Cannot suspend connections without enabling MHD_ALLOW_SUSPEND_RESUME!\n")" ( identifier , (string_literal ""daemon.c"" " string_content ") , number_literal , (string_literal ""Cannot suspend connections without enabling MHD_ALLOW_SUSPEND_RESUME!\n"" " string_content escape_sequence ") ))) ;) }) (else_clause "else if (pMVar3->urh != (MHD_UpgradeResponseHandle *)0x0) {\n    MHD_DLOG(pMVar3->daemon,"Error: connection scheduled for \"upgrade\" cannot be suspended");\n    return;\n  }" else (if_statement "if (pMVar3->urh != (MHD_UpgradeResponseHandle *)0x0) {\n    MHD_DLOG(pMVar3->daemon,"Error: connection scheduled for \"upgrade\" cannot be suspended");\n    return;\n  }" if (parenthesized_expression "(pMVar3->urh != (MHD_UpgradeResponseHandle *)0x0)" ( (binary_expression "pMVar3->urh != (MHD_UpgradeResponseHandle *)0x0" (field_expression "pMVar3->urh" identifier -> field_identifier) != (cast_expression "(MHD_UpgradeResponseHandle *)0x0" ( (type_descriptor "MHD_UpgradeResponseHandle *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    MHD_DLOG(pMVar3->daemon,"Error: connection scheduled for \"upgrade\" cannot be suspended");\n    return;\n  }" { (expression_statement "MHD_DLOG(pMVar3->daemon,"Error: connection scheduled for \"upgrade\" cannot be suspended");" (call_expression "MHD_DLOG(pMVar3->daemon,"Error: connection scheduled for \"upgrade\" cannot be suspended")" identifier (argument_list "(pMVar3->daemon,"Error: connection scheduled for \"upgrade\" cannot be suspended")" ( (field_expression "pMVar3->daemon" identifier -> field_identifier) , (string_literal ""Error: connection scheduled for \"upgrade\" cannot be suspended"" " string_content escape_sequence string_content escape_sequence string_content ") ))) ;) (return_statement "return;" return ;) })))) (expression_statement "internal_suspend_connection_(pMVar3);" (call_expression "internal_suspend_connection_(pMVar3)" identifier (argument_list "(pMVar3)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0010c2fa(long *param_1)\n\n{\n  pthread_mutex_t *__mutex;\n  long lVar1;\n  int iVar2;\n  long lVar3;\n  \n  lVar3 = param_1[6];\n  __mutex = (pthread_mutex_t *)(lVar3 + 0x150);\n  iVar2 = pthread_mutex_lock(__mutex);\n  if (iVar2 == 0) {\n    if (*(char *)((long)param_1 + 0x194) != '\0') goto LAB_0010c474;\n    if ((*(byte *)(lVar3 + 0x1b4) & 4) == 0) {\n      if (param_1[0x24] != *(long *)(lVar3 + 0x1a8)) {\n        if (param_1[5] == 0) {\n          *(long *)(lVar3 + 0x70) = param_1[4];\n        }\n        else {\n          *(long *)(param_1[5] + 0x20) = param_1[4];\n        }\n        if (param_1[4] == 0) {\n          *(long *)(lVar3 + 0x78) = param_1[5];\n        }\n        else {\n          *(long *)(param_1[4] + 0x28) = param_1[5];\n        }\n        param_1[4] = 0;\n        param_1[5] = 0;\n        goto LAB_0010c380;\n      }\n      goto LAB_0010c4a7;\n    }\n  }\n  else {\n    (*DAT_00120070)(DAT_00120068,"daemon.c",0xa83,"Failed to lock mutex.\n");\nLAB_0010c474:\n    *(undefined1 *)((long)param_1 + 0x194) = 0;\n    iVar2 = pthread_mutex_unlock(__mutex);\n    if (iVar2 == 0) {\n      return;\n    }\n    (*DAT_00120070)(DAT_00120068,"daemon.c",0xa8a,"Failed to unlock mutex.\n");\nLAB_0010c4a7:\n    if (param_1[5] == 0) {\n      *(long *)(lVar3 + 0x60) = param_1[4];\n    }\n    else {\n      *(long *)(param_1[5] + 0x20) = param_1[4];\n    }\n    if (param_1[4] == 0) {\n      *(long *)(lVar3 + 0x68) = param_1[5];\n    }\n    else {\n      *(long *)(param_1[4] + 0x28) = param_1[5];\n    }\n    param_1[4] = 0;\n    param_1[5] = 0;\n  }\nLAB_0010c380:\n  if (param_1[3] == 0) {\n    *(long *)(lVar3 + 0x10) = param_1[2];\n  }\n  else {\n    *(long *)(param_1[3] + 0x10) = param_1[2];\n  }\n  if (param_1[2] == 0) {\n    *(long *)(lVar3 + 0x18) = param_1[3];\n  }\n  else {\n    *(long *)(param_1[2] + 0x18) = param_1[3];\n  }\n  param_1[2] = 0;\n  param_1[3] = 0;\n  lVar1 = *(long *)(lVar3 + 0x20);\n  param_1[2] = lVar1;\n  if (*(long *)(lVar3 + 0x28) == 0) {\n    *(long **)(lVar3 + 0x28) = param_1;\n  }\n  else {\n    *(long **)(lVar1 + 0x18) = param_1;\n  }\n  *(long **)(lVar3 + 0x20) = param_1;\n  *(undefined1 *)((long)param_1 + 0x18d) = 1;\n  if ((*(byte *)(lVar3 + 0x1b5) & 2) != 0) {\n    if ((*(byte *)((long)param_1 + 0x13c) & 4) != 0) {\n      if ((long *)param_1[1] == (long *)0x0) {\n        *(long *)(lVar3 + 0x40) = *param_1;\n      }\n      else {\n        *(long *)param_1[1] = *param_1;\n      }\n      if (*param_1 == 0) {\n        *(long *)(lVar3 + 0x48) = param_1[1];\n      }\n      else {\n        *(long *)(*param_1 + 8) = param_1[1];\n      }\n      *param_1 = 0;\n      param_1[1] = 0;\n      *(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) & 0xfffffffb;\n    }\n    if ((*(byte *)((long)param_1 + 0x13c) & 8) != 0) {\n      iVar2 = epoll_ctl(*(int *)(lVar3 + 0x180),2,(int)param_1[0x26],(epoll_event *)0x0);\n      if (iVar2 != 0) {\n        (*DAT_00120070)(DAT_00120068,"daemon.c",0xab1,"Failed to remove FD from epoll set\n");\n        goto LAB_0010c593;\n      }\n      *(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) & 0xfffffff7;\n    }\n    *(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) | 0x10;\n  }\n  iVar2 = pthread_mutex_unlock(__mutex);\n  if (iVar2 == 0) {\n    return;\n  }\nLAB_0010c593:\n  lVar3 = DAT_00120068;\n  (*DAT_00120070)(DAT_00120068,"daemon.c",0xab8,"Failed to unlock mutex.\n");\n  if ((*(byte *)(*(long *)(lVar3 + 0x30) + 0x1b5) & 0x20) == 0) {\n    (*DAT_00120070)(DAT_00120068,"daemon.c",0xae2,\n                    "Cannot suspend connections without enabling MHD_ALLOW_SUSPEND_RESUME!\n");\n  }\n  else if (*(long *)(lVar3 + 0x170) != 0) {\n    FUN_00110c11(*(long *)(lVar3 + 0x30),\n                 "Error: connection scheduled for \"upgrade\" cannot be suspended");\n    return;\n  }\n  FUN_0010c2fa();\n  return;\n}\n\n" (function_definition "void FUN_0010c2fa(long *param_1)\n\n{\n  pthread_mutex_t *__mutex;\n  long lVar1;\n  int iVar2;\n  long lVar3;\n  \n  lVar3 = param_1[6];\n  __mutex = (pthread_mutex_t *)(lVar3 + 0x150);\n  iVar2 = pthread_mutex_lock(__mutex);\n  if (iVar2 == 0) {\n    if (*(char *)((long)param_1 + 0x194) != '\0') goto LAB_0010c474;\n    if ((*(byte *)(lVar3 + 0x1b4) & 4) == 0) {\n      if (param_1[0x24] != *(long *)(lVar3 + 0x1a8)) {\n        if (param_1[5] == 0) {\n          *(long *)(lVar3 + 0x70) = param_1[4];\n        }\n        else {\n          *(long *)(param_1[5] + 0x20) = param_1[4];\n        }\n        if (param_1[4] == 0) {\n          *(long *)(lVar3 + 0x78) = param_1[5];\n        }\n        else {\n          *(long *)(param_1[4] + 0x28) = param_1[5];\n        }\n        param_1[4] = 0;\n        param_1[5] = 0;\n        goto LAB_0010c380;\n      }\n      goto LAB_0010c4a7;\n    }\n  }\n  else {\n    (*DAT_00120070)(DAT_00120068,"daemon.c",0xa83,"Failed to lock mutex.\n");\nLAB_0010c474:\n    *(undefined1 *)((long)param_1 + 0x194) = 0;\n    iVar2 = pthread_mutex_unlock(__mutex);\n    if (iVar2 == 0) {\n      return;\n    }\n    (*DAT_00120070)(DAT_00120068,"daemon.c",0xa8a,"Failed to unlock mutex.\n");\nLAB_0010c4a7:\n    if (param_1[5] == 0) {\n      *(long *)(lVar3 + 0x60) = param_1[4];\n    }\n    else {\n      *(long *)(param_1[5] + 0x20) = param_1[4];\n    }\n    if (param_1[4] == 0) {\n      *(long *)(lVar3 + 0x68) = param_1[5];\n    }\n    else {\n      *(long *)(param_1[4] + 0x28) = param_1[5];\n    }\n    param_1[4] = 0;\n    param_1[5] = 0;\n  }\nLAB_0010c380:\n  if (param_1[3] == 0) {\n    *(long *)(lVar3 + 0x10) = param_1[2];\n  }\n  else {\n    *(long *)(param_1[3] + 0x10) = param_1[2];\n  }\n  if (param_1[2] == 0) {\n    *(long *)(lVar3 + 0x18) = param_1[3];\n  }\n  else {\n    *(long *)(param_1[2] + 0x18) = param_1[3];\n  }\n  param_1[2] = 0;\n  param_1[3] = 0;\n  lVar1 = *(long *)(lVar3 + 0x20);\n  param_1[2] = lVar1;\n  if (*(long *)(lVar3 + 0x28) == 0) {\n    *(long **)(lVar3 + 0x28) = param_1;\n  }\n  else {\n    *(long **)(lVar1 + 0x18) = param_1;\n  }\n  *(long **)(lVar3 + 0x20) = param_1;\n  *(undefined1 *)((long)param_1 + 0x18d) = 1;\n  if ((*(byte *)(lVar3 + 0x1b5) & 2) != 0) {\n    if ((*(byte *)((long)param_1 + 0x13c) & 4) != 0) {\n      if ((long *)param_1[1] == (long *)0x0) {\n        *(long *)(lVar3 + 0x40) = *param_1;\n      }\n      else {\n        *(long *)param_1[1] = *param_1;\n      }\n      if (*param_1 == 0) {\n        *(long *)(lVar3 + 0x48) = param_1[1];\n      }\n      else {\n        *(long *)(*param_1 + 8) = param_1[1];\n      }\n      *param_1 = 0;\n      param_1[1] = 0;\n      *(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) & 0xfffffffb;\n    }\n    if ((*(byte *)((long)param_1 + 0x13c) & 8) != 0) {\n      iVar2 = epoll_ctl(*(int *)(lVar3 + 0x180),2,(int)param_1[0x26],(epoll_event *)0x0);\n      if (iVar2 != 0) {\n        (*DAT_00120070)(DAT_00120068,"daemon.c",0xab1,"Failed to remove FD from epoll set\n");\n        goto LAB_0010c593;\n      }\n      *(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) & 0xfffffff7;\n    }\n    *(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) | 0x10;\n  }\n  iVar2 = pthread_mutex_unlock(__mutex);\n  if (iVar2 == 0) {\n    return;\n  }\nLAB_0010c593:\n  lVar3 = DAT_00120068;\n  (*DAT_00120070)(DAT_00120068,"daemon.c",0xab8,"Failed to unlock mutex.\n");\n  if ((*(byte *)(*(long *)(lVar3 + 0x30) + 0x1b5) & 0x20) == 0) {\n    (*DAT_00120070)(DAT_00120068,"daemon.c",0xae2,\n                    "Cannot suspend connections without enabling MHD_ALLOW_SUSPEND_RESUME!\n");\n  }\n  else if (*(long *)(lVar3 + 0x170) != 0) {\n    FUN_00110c11(*(long *)(lVar3 + 0x30),\n                 "Error: connection scheduled for \"upgrade\" cannot be suspended");\n    return;\n  }\n  FUN_0010c2fa();\n  return;\n}" primitive_type (function_declarator "FUN_0010c2fa(long *param_1)" identifier (parameter_list "(long *param_1)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  pthread_mutex_t *__mutex;\n  long lVar1;\n  int iVar2;\n  long lVar3;\n  \n  lVar3 = param_1[6];\n  __mutex = (pthread_mutex_t *)(lVar3 + 0x150);\n  iVar2 = pthread_mutex_lock(__mutex);\n  if (iVar2 == 0) {\n    if (*(char *)((long)param_1 + 0x194) != '\0') goto LAB_0010c474;\n    if ((*(byte *)(lVar3 + 0x1b4) & 4) == 0) {\n      if (param_1[0x24] != *(long *)(lVar3 + 0x1a8)) {\n        if (param_1[5] == 0) {\n          *(long *)(lVar3 + 0x70) = param_1[4];\n        }\n        else {\n          *(long *)(param_1[5] + 0x20) = param_1[4];\n        }\n        if (param_1[4] == 0) {\n          *(long *)(lVar3 + 0x78) = param_1[5];\n        }\n        else {\n          *(long *)(param_1[4] + 0x28) = param_1[5];\n        }\n        param_1[4] = 0;\n        param_1[5] = 0;\n        goto LAB_0010c380;\n      }\n      goto LAB_0010c4a7;\n    }\n  }\n  else {\n    (*DAT_00120070)(DAT_00120068,"daemon.c",0xa83,"Failed to lock mutex.\n");\nLAB_0010c474:\n    *(undefined1 *)((long)param_1 + 0x194) = 0;\n    iVar2 = pthread_mutex_unlock(__mutex);\n    if (iVar2 == 0) {\n      return;\n    }\n    (*DAT_00120070)(DAT_00120068,"daemon.c",0xa8a,"Failed to unlock mutex.\n");\nLAB_0010c4a7:\n    if (param_1[5] == 0) {\n      *(long *)(lVar3 + 0x60) = param_1[4];\n    }\n    else {\n      *(long *)(param_1[5] + 0x20) = param_1[4];\n    }\n    if (param_1[4] == 0) {\n      *(long *)(lVar3 + 0x68) = param_1[5];\n    }\n    else {\n      *(long *)(param_1[4] + 0x28) = param_1[5];\n    }\n    param_1[4] = 0;\n    param_1[5] = 0;\n  }\nLAB_0010c380:\n  if (param_1[3] == 0) {\n    *(long *)(lVar3 + 0x10) = param_1[2];\n  }\n  else {\n    *(long *)(param_1[3] + 0x10) = param_1[2];\n  }\n  if (param_1[2] == 0) {\n    *(long *)(lVar3 + 0x18) = param_1[3];\n  }\n  else {\n    *(long *)(param_1[2] + 0x18) = param_1[3];\n  }\n  param_1[2] = 0;\n  param_1[3] = 0;\n  lVar1 = *(long *)(lVar3 + 0x20);\n  param_1[2] = lVar1;\n  if (*(long *)(lVar3 + 0x28) == 0) {\n    *(long **)(lVar3 + 0x28) = param_1;\n  }\n  else {\n    *(long **)(lVar1 + 0x18) = param_1;\n  }\n  *(long **)(lVar3 + 0x20) = param_1;\n  *(undefined1 *)((long)param_1 + 0x18d) = 1;\n  if ((*(byte *)(lVar3 + 0x1b5) & 2) != 0) {\n    if ((*(byte *)((long)param_1 + 0x13c) & 4) != 0) {\n      if ((long *)param_1[1] == (long *)0x0) {\n        *(long *)(lVar3 + 0x40) = *param_1;\n      }\n      else {\n        *(long *)param_1[1] = *param_1;\n      }\n      if (*param_1 == 0) {\n        *(long *)(lVar3 + 0x48) = param_1[1];\n      }\n      else {\n        *(long *)(*param_1 + 8) = param_1[1];\n      }\n      *param_1 = 0;\n      param_1[1] = 0;\n      *(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) & 0xfffffffb;\n    }\n    if ((*(byte *)((long)param_1 + 0x13c) & 8) != 0) {\n      iVar2 = epoll_ctl(*(int *)(lVar3 + 0x180),2,(int)param_1[0x26],(epoll_event *)0x0);\n      if (iVar2 != 0) {\n        (*DAT_00120070)(DAT_00120068,"daemon.c",0xab1,"Failed to remove FD from epoll set\n");\n        goto LAB_0010c593;\n      }\n      *(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) & 0xfffffff7;\n    }\n    *(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) | 0x10;\n  }\n  iVar2 = pthread_mutex_unlock(__mutex);\n  if (iVar2 == 0) {\n    return;\n  }\nLAB_0010c593:\n  lVar3 = DAT_00120068;\n  (*DAT_00120070)(DAT_00120068,"daemon.c",0xab8,"Failed to unlock mutex.\n");\n  if ((*(byte *)(*(long *)(lVar3 + 0x30) + 0x1b5) & 0x20) == 0) {\n    (*DAT_00120070)(DAT_00120068,"daemon.c",0xae2,\n                    "Cannot suspend connections without enabling MHD_ALLOW_SUSPEND_RESUME!\n");\n  }\n  else if (*(long *)(lVar3 + 0x170) != 0) {\n    FUN_00110c11(*(long *)(lVar3 + 0x30),\n                 "Error: connection scheduled for \"upgrade\" cannot be suspended");\n    return;\n  }\n  FUN_0010c2fa();\n  return;\n}" { (declaration "pthread_mutex_t *__mutex;" type_identifier (pointer_declarator "*__mutex" * identifier) ;) (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar3 = param_1[6];" (assignment_expression "lVar3 = param_1[6]" identifier = (subscript_expression "param_1[6]" identifier [ number_literal ])) ;) (expression_statement "__mutex = (pthread_mutex_t *)(lVar3 + 0x150);" (assignment_expression "__mutex = (pthread_mutex_t *)(lVar3 + 0x150)" identifier = (cast_expression "(pthread_mutex_t *)(lVar3 + 0x150)" ( (type_descriptor "pthread_mutex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x150)" ( (binary_expression "lVar3 + 0x150" identifier + number_literal) )))) ;) (expression_statement "iVar2 = pthread_mutex_lock(__mutex);" (assignment_expression "iVar2 = pthread_mutex_lock(__mutex)" identifier = (call_expression "pthread_mutex_lock(__mutex)" identifier (argument_list "(__mutex)" ( identifier )))) ;) (if_statement "if (iVar2 == 0) {\n    if (*(char *)((long)param_1 + 0x194) != '\0') goto LAB_0010c474;\n    if ((*(byte *)(lVar3 + 0x1b4) & 4) == 0) {\n      if (param_1[0x24] != *(long *)(lVar3 + 0x1a8)) {\n        if (param_1[5] == 0) {\n          *(long *)(lVar3 + 0x70) = param_1[4];\n        }\n        else {\n          *(long *)(param_1[5] + 0x20) = param_1[4];\n        }\n        if (param_1[4] == 0) {\n          *(long *)(lVar3 + 0x78) = param_1[5];\n        }\n        else {\n          *(long *)(param_1[4] + 0x28) = param_1[5];\n        }\n        param_1[4] = 0;\n        param_1[5] = 0;\n        goto LAB_0010c380;\n      }\n      goto LAB_0010c4a7;\n    }\n  }\n  else {\n    (*DAT_00120070)(DAT_00120068,"daemon.c",0xa83,"Failed to lock mutex.\n");\nLAB_0010c474:\n    *(undefined1 *)((long)param_1 + 0x194) = 0;\n    iVar2 = pthread_mutex_unlock(__mutex);\n    if (iVar2 == 0) {\n      return;\n    }\n    (*DAT_00120070)(DAT_00120068,"daemon.c",0xa8a,"Failed to unlock mutex.\n");\nLAB_0010c4a7:\n    if (param_1[5] == 0) {\n      *(long *)(lVar3 + 0x60) = param_1[4];\n    }\n    else {\n      *(long *)(param_1[5] + 0x20) = param_1[4];\n    }\n    if (param_1[4] == 0) {\n      *(long *)(lVar3 + 0x68) = param_1[5];\n    }\n    else {\n      *(long *)(param_1[4] + 0x28) = param_1[5];\n    }\n    param_1[4] = 0;\n    param_1[5] = 0;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    if (*(char *)((long)param_1 + 0x194) != '\0') goto LAB_0010c474;\n    if ((*(byte *)(lVar3 + 0x1b4) & 4) == 0) {\n      if (param_1[0x24] != *(long *)(lVar3 + 0x1a8)) {\n        if (param_1[5] == 0) {\n          *(long *)(lVar3 + 0x70) = param_1[4];\n        }\n        else {\n          *(long *)(param_1[5] + 0x20) = param_1[4];\n        }\n        if (param_1[4] == 0) {\n          *(long *)(lVar3 + 0x78) = param_1[5];\n        }\n        else {\n          *(long *)(param_1[4] + 0x28) = param_1[5];\n        }\n        param_1[4] = 0;\n        param_1[5] = 0;\n        goto LAB_0010c380;\n      }\n      goto LAB_0010c4a7;\n    }\n  }" { (if_statement "if (*(char *)((long)param_1 + 0x194) != '\0') goto LAB_0010c474;" if (parenthesized_expression "(*(char *)((long)param_1 + 0x194) != '\0')" ( (binary_expression "*(char *)((long)param_1 + 0x194) != '\0'" (pointer_expression "*(char *)((long)param_1 + 0x194)" * (cast_expression "(char *)((long)param_1 + 0x194)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x194)" ( (binary_expression "(long)param_1 + 0x194" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_0010c474;" goto statement_identifier ;)) (if_statement "if ((*(byte *)(lVar3 + 0x1b4) & 4) == 0) {\n      if (param_1[0x24] != *(long *)(lVar3 + 0x1a8)) {\n        if (param_1[5] == 0) {\n          *(long *)(lVar3 + 0x70) = param_1[4];\n        }\n        else {\n          *(long *)(param_1[5] + 0x20) = param_1[4];\n        }\n        if (param_1[4] == 0) {\n          *(long *)(lVar3 + 0x78) = param_1[5];\n        }\n        else {\n          *(long *)(param_1[4] + 0x28) = param_1[5];\n        }\n        param_1[4] = 0;\n        param_1[5] = 0;\n        goto LAB_0010c380;\n      }\n      goto LAB_0010c4a7;\n    }" if (parenthesized_expression "((*(byte *)(lVar3 + 0x1b4) & 4) == 0)" ( (binary_expression "(*(byte *)(lVar3 + 0x1b4) & 4) == 0" (parenthesized_expression "(*(byte *)(lVar3 + 0x1b4) & 4)" ( (binary_expression "*(byte *)(lVar3 + 0x1b4) & 4" (pointer_expression "*(byte *)(lVar3 + 0x1b4)" * (cast_expression "(byte *)(lVar3 + 0x1b4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x1b4)" ( (binary_expression "lVar3 + 0x1b4" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n      if (param_1[0x24] != *(long *)(lVar3 + 0x1a8)) {\n        if (param_1[5] == 0) {\n          *(long *)(lVar3 + 0x70) = param_1[4];\n        }\n        else {\n          *(long *)(param_1[5] + 0x20) = param_1[4];\n        }\n        if (param_1[4] == 0) {\n          *(long *)(lVar3 + 0x78) = param_1[5];\n        }\n        else {\n          *(long *)(param_1[4] + 0x28) = param_1[5];\n        }\n        param_1[4] = 0;\n        param_1[5] = 0;\n        goto LAB_0010c380;\n      }\n      goto LAB_0010c4a7;\n    }" { (if_statement "if (param_1[0x24] != *(long *)(lVar3 + 0x1a8)) {\n        if (param_1[5] == 0) {\n          *(long *)(lVar3 + 0x70) = param_1[4];\n        }\n        else {\n          *(long *)(param_1[5] + 0x20) = param_1[4];\n        }\n        if (param_1[4] == 0) {\n          *(long *)(lVar3 + 0x78) = param_1[5];\n        }\n        else {\n          *(long *)(param_1[4] + 0x28) = param_1[5];\n        }\n        param_1[4] = 0;\n        param_1[5] = 0;\n        goto LAB_0010c380;\n      }" if (parenthesized_expression "(param_1[0x24] != *(long *)(lVar3 + 0x1a8))" ( (binary_expression "param_1[0x24] != *(long *)(lVar3 + 0x1a8)" (subscript_expression "param_1[0x24]" identifier [ number_literal ]) != (pointer_expression "*(long *)(lVar3 + 0x1a8)" * (cast_expression "(long *)(lVar3 + 0x1a8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x1a8)" ( (binary_expression "lVar3 + 0x1a8" identifier + number_literal) ))))) )) (compound_statement "{\n        if (param_1[5] == 0) {\n          *(long *)(lVar3 + 0x70) = param_1[4];\n        }\n        else {\n          *(long *)(param_1[5] + 0x20) = param_1[4];\n        }\n        if (param_1[4] == 0) {\n          *(long *)(lVar3 + 0x78) = param_1[5];\n        }\n        else {\n          *(long *)(param_1[4] + 0x28) = param_1[5];\n        }\n        param_1[4] = 0;\n        param_1[5] = 0;\n        goto LAB_0010c380;\n      }" { (if_statement "if (param_1[5] == 0) {\n          *(long *)(lVar3 + 0x70) = param_1[4];\n        }\n        else {\n          *(long *)(param_1[5] + 0x20) = param_1[4];\n        }" if (parenthesized_expression "(param_1[5] == 0)" ( (binary_expression "param_1[5] == 0" (subscript_expression "param_1[5]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n          *(long *)(lVar3 + 0x70) = param_1[4];\n        }" { (expression_statement "*(long *)(lVar3 + 0x70) = param_1[4];" (assignment_expression "*(long *)(lVar3 + 0x70) = param_1[4]" (pointer_expression "*(long *)(lVar3 + 0x70)" * (cast_expression "(long *)(lVar3 + 0x70)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x70)" ( (binary_expression "lVar3 + 0x70" identifier + number_literal) )))) = (subscript_expression "param_1[4]" identifier [ number_literal ])) ;) }) (else_clause "else {\n          *(long *)(param_1[5] + 0x20) = param_1[4];\n        }" else (compound_statement "{\n          *(long *)(param_1[5] + 0x20) = param_1[4];\n        }" { (expression_statement "*(long *)(param_1[5] + 0x20) = param_1[4];" (assignment_expression "*(long *)(param_1[5] + 0x20) = param_1[4]" (pointer_expression "*(long *)(param_1[5] + 0x20)" * (cast_expression "(long *)(param_1[5] + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[5] + 0x20)" ( (binary_expression "param_1[5] + 0x20" (subscript_expression "param_1[5]" identifier [ number_literal ]) + number_literal) )))) = (subscript_expression "param_1[4]" identifier [ number_literal ])) ;) }))) (if_statement "if (param_1[4] == 0) {\n          *(long *)(lVar3 + 0x78) = param_1[5];\n        }\n        else {\n          *(long *)(param_1[4] + 0x28) = param_1[5];\n        }" if (parenthesized_expression "(param_1[4] == 0)" ( (binary_expression "param_1[4] == 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n          *(long *)(lVar3 + 0x78) = param_1[5];\n        }" { (expression_statement "*(long *)(lVar3 + 0x78) = param_1[5];" (assignment_expression "*(long *)(lVar3 + 0x78) = param_1[5]" (pointer_expression "*(long *)(lVar3 + 0x78)" * (cast_expression "(long *)(lVar3 + 0x78)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x78)" ( (binary_expression "lVar3 + 0x78" identifier + number_literal) )))) = (subscript_expression "param_1[5]" identifier [ number_literal ])) ;) }) (else_clause "else {\n          *(long *)(param_1[4] + 0x28) = param_1[5];\n        }" else (compound_statement "{\n          *(long *)(param_1[4] + 0x28) = param_1[5];\n        }" { (expression_statement "*(long *)(param_1[4] + 0x28) = param_1[5];" (assignment_expression "*(long *)(param_1[4] + 0x28) = param_1[5]" (pointer_expression "*(long *)(param_1[4] + 0x28)" * (cast_expression "(long *)(param_1[4] + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[4] + 0x28)" ( (binary_expression "param_1[4] + 0x28" (subscript_expression "param_1[4]" identifier [ number_literal ]) + number_literal) )))) = (subscript_expression "param_1[5]" identifier [ number_literal ])) ;) }))) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[5] = 0;" (assignment_expression "param_1[5] = 0" (subscript_expression "param_1[5]" identifier [ number_literal ]) = number_literal) ;) (goto_statement "goto LAB_0010c380;" goto statement_identifier ;) })) (goto_statement "goto LAB_0010c4a7;" goto statement_identifier ;) })) }) (else_clause "else {\n    (*DAT_00120070)(DAT_00120068,"daemon.c",0xa83,"Failed to lock mutex.\n");\nLAB_0010c474:\n    *(undefined1 *)((long)param_1 + 0x194) = 0;\n    iVar2 = pthread_mutex_unlock(__mutex);\n    if (iVar2 == 0) {\n      return;\n    }\n    (*DAT_00120070)(DAT_00120068,"daemon.c",0xa8a,"Failed to unlock mutex.\n");\nLAB_0010c4a7:\n    if (param_1[5] == 0) {\n      *(long *)(lVar3 + 0x60) = param_1[4];\n    }\n    else {\n      *(long *)(param_1[5] + 0x20) = param_1[4];\n    }\n    if (param_1[4] == 0) {\n      *(long *)(lVar3 + 0x68) = param_1[5];\n    }\n    else {\n      *(long *)(param_1[4] + 0x28) = param_1[5];\n    }\n    param_1[4] = 0;\n    param_1[5] = 0;\n  }" else (compound_statement "{\n    (*DAT_00120070)(DAT_00120068,"daemon.c",0xa83,"Failed to lock mutex.\n");\nLAB_0010c474:\n    *(undefined1 *)((long)param_1 + 0x194) = 0;\n    iVar2 = pthread_mutex_unlock(__mutex);\n    if (iVar2 == 0) {\n      return;\n    }\n    (*DAT_00120070)(DAT_00120068,"daemon.c",0xa8a,"Failed to unlock mutex.\n");\nLAB_0010c4a7:\n    if (param_1[5] == 0) {\n      *(long *)(lVar3 + 0x60) = param_1[4];\n    }\n    else {\n      *(long *)(param_1[5] + 0x20) = param_1[4];\n    }\n    if (param_1[4] == 0) {\n      *(long *)(lVar3 + 0x68) = param_1[5];\n    }\n    else {\n      *(long *)(param_1[4] + 0x28) = param_1[5];\n    }\n    param_1[4] = 0;\n    param_1[5] = 0;\n  }" { (expression_statement "(*DAT_00120070)(DAT_00120068,"daemon.c",0xa83,"Failed to lock mutex.\n");" (call_expression "(*DAT_00120070)(DAT_00120068,"daemon.c",0xa83,"Failed to lock mutex.\n")" (parenthesized_expression "(*DAT_00120070)" ( (pointer_expression "*DAT_00120070" * identifier) )) (argument_list "(DAT_00120068,"daemon.c",0xa83,"Failed to lock mutex.\n")" ( identifier , (string_literal ""daemon.c"" " string_content ") , number_literal , (string_literal ""Failed to lock mutex.\n"" " string_content escape_sequence ") ))) ;) (labeled_statement "LAB_0010c474:\n    *(undefined1 *)((long)param_1 + 0x194) = 0;" statement_identifier : (expression_statement "*(undefined1 *)((long)param_1 + 0x194) = 0;" (assignment_expression "*(undefined1 *)((long)param_1 + 0x194) = 0" (pointer_expression "*(undefined1 *)((long)param_1 + 0x194)" * (cast_expression "(undefined1 *)((long)param_1 + 0x194)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x194)" ( (binary_expression "(long)param_1 + 0x194" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;)) (expression_statement "iVar2 = pthread_mutex_unlock(__mutex);" (assignment_expression "iVar2 = pthread_mutex_unlock(__mutex)" identifier = (call_expression "pthread_mutex_unlock(__mutex)" identifier (argument_list "(__mutex)" ( identifier )))) ;) (if_statement "if (iVar2 == 0) {\n      return;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "(*DAT_00120070)(DAT_00120068,"daemon.c",0xa8a,"Failed to unlock mutex.\n");" (call_expression "(*DAT_00120070)(DAT_00120068,"daemon.c",0xa8a,"Failed to unlock mutex.\n")" (parenthesized_expression "(*DAT_00120070)" ( (pointer_expression "*DAT_00120070" * identifier) )) (argument_list "(DAT_00120068,"daemon.c",0xa8a,"Failed to unlock mutex.\n")" ( identifier , (string_literal ""daemon.c"" " string_content ") , number_literal , (string_literal ""Failed to unlock mutex.\n"" " string_content escape_sequence ") ))) ;) (labeled_statement "LAB_0010c4a7:\n    if (param_1[5] == 0) {\n      *(long *)(lVar3 + 0x60) = param_1[4];\n    }\n    else {\n      *(long *)(param_1[5] + 0x20) = param_1[4];\n    }" statement_identifier : (if_statement "if (param_1[5] == 0) {\n      *(long *)(lVar3 + 0x60) = param_1[4];\n    }\n    else {\n      *(long *)(param_1[5] + 0x20) = param_1[4];\n    }" if (parenthesized_expression "(param_1[5] == 0)" ( (binary_expression "param_1[5] == 0" (subscript_expression "param_1[5]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n      *(long *)(lVar3 + 0x60) = param_1[4];\n    }" { (expression_statement "*(long *)(lVar3 + 0x60) = param_1[4];" (assignment_expression "*(long *)(lVar3 + 0x60) = param_1[4]" (pointer_expression "*(long *)(lVar3 + 0x60)" * (cast_expression "(long *)(lVar3 + 0x60)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x60)" ( (binary_expression "lVar3 + 0x60" identifier + number_literal) )))) = (subscript_expression "param_1[4]" identifier [ number_literal ])) ;) }) (else_clause "else {\n      *(long *)(param_1[5] + 0x20) = param_1[4];\n    }" else (compound_statement "{\n      *(long *)(param_1[5] + 0x20) = param_1[4];\n    }" { (expression_statement "*(long *)(param_1[5] + 0x20) = param_1[4];" (assignment_expression "*(long *)(param_1[5] + 0x20) = param_1[4]" (pointer_expression "*(long *)(param_1[5] + 0x20)" * (cast_expression "(long *)(param_1[5] + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[5] + 0x20)" ( (binary_expression "param_1[5] + 0x20" (subscript_expression "param_1[5]" identifier [ number_literal ]) + number_literal) )))) = (subscript_expression "param_1[4]" identifier [ number_literal ])) ;) })))) (if_statement "if (param_1[4] == 0) {\n      *(long *)(lVar3 + 0x68) = param_1[5];\n    }\n    else {\n      *(long *)(param_1[4] + 0x28) = param_1[5];\n    }" if (parenthesized_expression "(param_1[4] == 0)" ( (binary_expression "param_1[4] == 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n      *(long *)(lVar3 + 0x68) = param_1[5];\n    }" { (expression_statement "*(long *)(lVar3 + 0x68) = param_1[5];" (assignment_expression "*(long *)(lVar3 + 0x68) = param_1[5]" (pointer_expression "*(long *)(lVar3 + 0x68)" * (cast_expression "(long *)(lVar3 + 0x68)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x68)" ( (binary_expression "lVar3 + 0x68" identifier + number_literal) )))) = (subscript_expression "param_1[5]" identifier [ number_literal ])) ;) }) (else_clause "else {\n      *(long *)(param_1[4] + 0x28) = param_1[5];\n    }" else (compound_statement "{\n      *(long *)(param_1[4] + 0x28) = param_1[5];\n    }" { (expression_statement "*(long *)(param_1[4] + 0x28) = param_1[5];" (assignment_expression "*(long *)(param_1[4] + 0x28) = param_1[5]" (pointer_expression "*(long *)(param_1[4] + 0x28)" * (cast_expression "(long *)(param_1[4] + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[4] + 0x28)" ( (binary_expression "param_1[4] + 0x28" (subscript_expression "param_1[4]" identifier [ number_literal ]) + number_literal) )))) = (subscript_expression "param_1[5]" identifier [ number_literal ])) ;) }))) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[5] = 0;" (assignment_expression "param_1[5] = 0" (subscript_expression "param_1[5]" identifier [ number_literal ]) = number_literal) ;) }))) (labeled_statement "LAB_0010c380:\n  if (param_1[3] == 0) {\n    *(long *)(lVar3 + 0x10) = param_1[2];\n  }\n  else {\n    *(long *)(param_1[3] + 0x10) = param_1[2];\n  }" statement_identifier : (if_statement "if (param_1[3] == 0) {\n    *(long *)(lVar3 + 0x10) = param_1[2];\n  }\n  else {\n    *(long *)(param_1[3] + 0x10) = param_1[2];\n  }" if (parenthesized_expression "(param_1[3] == 0)" ( (binary_expression "param_1[3] == 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n    *(long *)(lVar3 + 0x10) = param_1[2];\n  }" { (expression_statement "*(long *)(lVar3 + 0x10) = param_1[2];" (assignment_expression "*(long *)(lVar3 + 0x10) = param_1[2]" (pointer_expression "*(long *)(lVar3 + 0x10)" * (cast_expression "(long *)(lVar3 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x10)" ( (binary_expression "lVar3 + 0x10" identifier + number_literal) )))) = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) }) (else_clause "else {\n    *(long *)(param_1[3] + 0x10) = param_1[2];\n  }" else (compound_statement "{\n    *(long *)(param_1[3] + 0x10) = param_1[2];\n  }" { (expression_statement "*(long *)(param_1[3] + 0x10) = param_1[2];" (assignment_expression "*(long *)(param_1[3] + 0x10) = param_1[2]" (pointer_expression "*(long *)(param_1[3] + 0x10)" * (cast_expression "(long *)(param_1[3] + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[3] + 0x10)" ( (binary_expression "param_1[3] + 0x10" (subscript_expression "param_1[3]" identifier [ number_literal ]) + number_literal) )))) = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) })))) (if_statement "if (param_1[2] == 0) {\n    *(long *)(lVar3 + 0x18) = param_1[3];\n  }\n  else {\n    *(long *)(param_1[2] + 0x18) = param_1[3];\n  }" if (parenthesized_expression "(param_1[2] == 0)" ( (binary_expression "param_1[2] == 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n    *(long *)(lVar3 + 0x18) = param_1[3];\n  }" { (expression_statement "*(long *)(lVar3 + 0x18) = param_1[3];" (assignment_expression "*(long *)(lVar3 + 0x18) = param_1[3]" (pointer_expression "*(long *)(lVar3 + 0x18)" * (cast_expression "(long *)(lVar3 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x18)" ( (binary_expression "lVar3 + 0x18" identifier + number_literal) )))) = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) }) (else_clause "else {\n    *(long *)(param_1[2] + 0x18) = param_1[3];\n  }" else (compound_statement "{\n    *(long *)(param_1[2] + 0x18) = param_1[3];\n  }" { (expression_statement "*(long *)(param_1[2] + 0x18) = param_1[3];" (assignment_expression "*(long *)(param_1[2] + 0x18) = param_1[3]" (pointer_expression "*(long *)(param_1[2] + 0x18)" * (cast_expression "(long *)(param_1[2] + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[2] + 0x18)" ( (binary_expression "param_1[2] + 0x18" (subscript_expression "param_1[2]" identifier [ number_literal ]) + number_literal) )))) = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) }))) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "lVar1 = *(long *)(lVar3 + 0x20);" (assignment_expression "lVar1 = *(long *)(lVar3 + 0x20)" identifier = (pointer_expression "*(long *)(lVar3 + 0x20)" * (cast_expression "(long *)(lVar3 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x20)" ( (binary_expression "lVar3 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "param_1[2] = lVar1;" (assignment_expression "param_1[2] = lVar1" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (*(long *)(lVar3 + 0x28) == 0) {\n    *(long **)(lVar3 + 0x28) = param_1;\n  }\n  else {\n    *(long **)(lVar1 + 0x18) = param_1;\n  }" if (parenthesized_expression "(*(long *)(lVar3 + 0x28) == 0)" ( (binary_expression "*(long *)(lVar3 + 0x28) == 0" (pointer_expression "*(long *)(lVar3 + 0x28)" * (cast_expression "(long *)(lVar3 + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x28)" ( (binary_expression "lVar3 + 0x28" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    *(long **)(lVar3 + 0x28) = param_1;\n  }" { (expression_statement "*(long **)(lVar3 + 0x28) = param_1;" (assignment_expression "*(long **)(lVar3 + 0x28) = param_1" (pointer_expression "*(long **)(lVar3 + 0x28)" * (cast_expression "(long **)(lVar3 + 0x28)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar3 + 0x28)" ( (binary_expression "lVar3 + 0x28" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n    *(long **)(lVar1 + 0x18) = param_1;\n  }" else (compound_statement "{\n    *(long **)(lVar1 + 0x18) = param_1;\n  }" { (expression_statement "*(long **)(lVar1 + 0x18) = param_1;" (assignment_expression "*(long **)(lVar1 + 0x18) = param_1" (pointer_expression "*(long **)(lVar1 + 0x18)" * (cast_expression "(long **)(lVar1 + 0x18)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar1 + 0x18)" ( (binary_expression "lVar1 + 0x18" identifier + number_literal) )))) = identifier) ;) }))) (expression_statement "*(long **)(lVar3 + 0x20) = param_1;" (assignment_expression "*(long **)(lVar3 + 0x20) = param_1" (pointer_expression "*(long **)(lVar3 + 0x20)" * (cast_expression "(long **)(lVar3 + 0x20)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar3 + 0x20)" ( (binary_expression "lVar3 + 0x20" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined1 *)((long)param_1 + 0x18d) = 1;" (assignment_expression "*(undefined1 *)((long)param_1 + 0x18d) = 1" (pointer_expression "*(undefined1 *)((long)param_1 + 0x18d)" * (cast_expression "(undefined1 *)((long)param_1 + 0x18d)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x18d)" ( (binary_expression "(long)param_1 + 0x18d" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) (if_statement "if ((*(byte *)(lVar3 + 0x1b5) & 2) != 0) {\n    if ((*(byte *)((long)param_1 + 0x13c) & 4) != 0) {\n      if ((long *)param_1[1] == (long *)0x0) {\n        *(long *)(lVar3 + 0x40) = *param_1;\n      }\n      else {\n        *(long *)param_1[1] = *param_1;\n      }\n      if (*param_1 == 0) {\n        *(long *)(lVar3 + 0x48) = param_1[1];\n      }\n      else {\n        *(long *)(*param_1 + 8) = param_1[1];\n      }\n      *param_1 = 0;\n      param_1[1] = 0;\n      *(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) & 0xfffffffb;\n    }\n    if ((*(byte *)((long)param_1 + 0x13c) & 8) != 0) {\n      iVar2 = epoll_ctl(*(int *)(lVar3 + 0x180),2,(int)param_1[0x26],(epoll_event *)0x0);\n      if (iVar2 != 0) {\n        (*DAT_00120070)(DAT_00120068,"daemon.c",0xab1,"Failed to remove FD from epoll set\n");\n        goto LAB_0010c593;\n      }\n      *(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) & 0xfffffff7;\n    }\n    *(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) | 0x10;\n  }" if (parenthesized_expression "((*(byte *)(lVar3 + 0x1b5) & 2) != 0)" ( (binary_expression "(*(byte *)(lVar3 + 0x1b5) & 2) != 0" (parenthesized_expression "(*(byte *)(lVar3 + 0x1b5) & 2)" ( (binary_expression "*(byte *)(lVar3 + 0x1b5) & 2" (pointer_expression "*(byte *)(lVar3 + 0x1b5)" * (cast_expression "(byte *)(lVar3 + 0x1b5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x1b5)" ( (binary_expression "lVar3 + 0x1b5" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n    if ((*(byte *)((long)param_1 + 0x13c) & 4) != 0) {\n      if ((long *)param_1[1] == (long *)0x0) {\n        *(long *)(lVar3 + 0x40) = *param_1;\n      }\n      else {\n        *(long *)param_1[1] = *param_1;\n      }\n      if (*param_1 == 0) {\n        *(long *)(lVar3 + 0x48) = param_1[1];\n      }\n      else {\n        *(long *)(*param_1 + 8) = param_1[1];\n      }\n      *param_1 = 0;\n      param_1[1] = 0;\n      *(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) & 0xfffffffb;\n    }\n    if ((*(byte *)((long)param_1 + 0x13c) & 8) != 0) {\n      iVar2 = epoll_ctl(*(int *)(lVar3 + 0x180),2,(int)param_1[0x26],(epoll_event *)0x0);\n      if (iVar2 != 0) {\n        (*DAT_00120070)(DAT_00120068,"daemon.c",0xab1,"Failed to remove FD from epoll set\n");\n        goto LAB_0010c593;\n      }\n      *(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) & 0xfffffff7;\n    }\n    *(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) | 0x10;\n  }" { (if_statement "if ((*(byte *)((long)param_1 + 0x13c) & 4) != 0) {\n      if ((long *)param_1[1] == (long *)0x0) {\n        *(long *)(lVar3 + 0x40) = *param_1;\n      }\n      else {\n        *(long *)param_1[1] = *param_1;\n      }\n      if (*param_1 == 0) {\n        *(long *)(lVar3 + 0x48) = param_1[1];\n      }\n      else {\n        *(long *)(*param_1 + 8) = param_1[1];\n      }\n      *param_1 = 0;\n      param_1[1] = 0;\n      *(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) & 0xfffffffb;\n    }" if (parenthesized_expression "((*(byte *)((long)param_1 + 0x13c) & 4) != 0)" ( (binary_expression "(*(byte *)((long)param_1 + 0x13c) & 4) != 0" (parenthesized_expression "(*(byte *)((long)param_1 + 0x13c) & 4)" ( (binary_expression "*(byte *)((long)param_1 + 0x13c) & 4" (pointer_expression "*(byte *)((long)param_1 + 0x13c)" * (cast_expression "(byte *)((long)param_1 + 0x13c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x13c)" ( (binary_expression "(long)param_1 + 0x13c" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n      if ((long *)param_1[1] == (long *)0x0) {\n        *(long *)(lVar3 + 0x40) = *param_1;\n      }\n      else {\n        *(long *)param_1[1] = *param_1;\n      }\n      if (*param_1 == 0) {\n        *(long *)(lVar3 + 0x48) = param_1[1];\n      }\n      else {\n        *(long *)(*param_1 + 8) = param_1[1];\n      }\n      *param_1 = 0;\n      param_1[1] = 0;\n      *(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) & 0xfffffffb;\n    }" { (if_statement "if ((long *)param_1[1] == (long *)0x0) {\n        *(long *)(lVar3 + 0x40) = *param_1;\n      }\n      else {\n        *(long *)param_1[1] = *param_1;\n      }" if (parenthesized_expression "((long *)param_1[1] == (long *)0x0)" ( (binary_expression "(long *)param_1[1] == (long *)0x0" (cast_expression "(long *)param_1[1]" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        *(long *)(lVar3 + 0x40) = *param_1;\n      }" { (expression_statement "*(long *)(lVar3 + 0x40) = *param_1;" (assignment_expression "*(long *)(lVar3 + 0x40) = *param_1" (pointer_expression "*(long *)(lVar3 + 0x40)" * (cast_expression "(long *)(lVar3 + 0x40)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x40)" ( (binary_expression "lVar3 + 0x40" identifier + number_literal) )))) = (pointer_expression "*param_1" * identifier)) ;) }) (else_clause "else {\n        *(long *)param_1[1] = *param_1;\n      }" else (compound_statement "{\n        *(long *)param_1[1] = *param_1;\n      }" { (expression_statement "*(long *)param_1[1] = *param_1;" (assignment_expression "*(long *)param_1[1] = *param_1" (pointer_expression "*(long *)param_1[1]" * (cast_expression "(long *)param_1[1]" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) = (pointer_expression "*param_1" * identifier)) ;) }))) (if_statement "if (*param_1 == 0) {\n        *(long *)(lVar3 + 0x48) = param_1[1];\n      }\n      else {\n        *(long *)(*param_1 + 8) = param_1[1];\n      }" if (parenthesized_expression "(*param_1 == 0)" ( (binary_expression "*param_1 == 0" (pointer_expression "*param_1" * identifier) == number_literal) )) (compound_statement "{\n        *(long *)(lVar3 + 0x48) = param_1[1];\n      }" { (expression_statement "*(long *)(lVar3 + 0x48) = param_1[1];" (assignment_expression "*(long *)(lVar3 + 0x48) = param_1[1]" (pointer_expression "*(long *)(lVar3 + 0x48)" * (cast_expression "(long *)(lVar3 + 0x48)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x48)" ( (binary_expression "lVar3 + 0x48" identifier + number_literal) )))) = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) }) (else_clause "else {\n        *(long *)(*param_1 + 8) = param_1[1];\n      }" else (compound_statement "{\n        *(long *)(*param_1 + 8) = param_1[1];\n      }" { (expression_statement "*(long *)(*param_1 + 8) = param_1[1];" (assignment_expression "*(long *)(*param_1 + 8) = param_1[1]" (pointer_expression "*(long *)(*param_1 + 8)" * (cast_expression "(long *)(*param_1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 8)" ( (binary_expression "*param_1 + 8" (pointer_expression "*param_1" * identifier) + number_literal) )))) = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) }))) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) & 0xfffffffb;" (assignment_expression "*(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) & 0xfffffffb" (pointer_expression "*(uint *)((long)param_1 + 0x13c)" * (cast_expression "(uint *)((long)param_1 + 0x13c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x13c)" ( (binary_expression "(long)param_1 + 0x13c" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = (binary_expression "*(uint *)((long)param_1 + 0x13c) & 0xfffffffb" (pointer_expression "*(uint *)((long)param_1 + 0x13c)" * (cast_expression "(uint *)((long)param_1 + 0x13c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x13c)" ( (binary_expression "(long)param_1 + 0x13c" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) & number_literal)) ;) })) (if_statement "if ((*(byte *)((long)param_1 + 0x13c) & 8) != 0) {\n      iVar2 = epoll_ctl(*(int *)(lVar3 + 0x180),2,(int)param_1[0x26],(epoll_event *)0x0);\n      if (iVar2 != 0) {\n        (*DAT_00120070)(DAT_00120068,"daemon.c",0xab1,"Failed to remove FD from epoll set\n");\n        goto LAB_0010c593;\n      }\n      *(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) & 0xfffffff7;\n    }" if (parenthesized_expression "((*(byte *)((long)param_1 + 0x13c) & 8) != 0)" ( (binary_expression "(*(byte *)((long)param_1 + 0x13c) & 8) != 0" (parenthesized_expression "(*(byte *)((long)param_1 + 0x13c) & 8)" ( (binary_expression "*(byte *)((long)param_1 + 0x13c) & 8" (pointer_expression "*(byte *)((long)param_1 + 0x13c)" * (cast_expression "(byte *)((long)param_1 + 0x13c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x13c)" ( (binary_expression "(long)param_1 + 0x13c" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n      iVar2 = epoll_ctl(*(int *)(lVar3 + 0x180),2,(int)param_1[0x26],(epoll_event *)0x0);\n      if (iVar2 != 0) {\n        (*DAT_00120070)(DAT_00120068,"daemon.c",0xab1,"Failed to remove FD from epoll set\n");\n        goto LAB_0010c593;\n      }\n      *(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) & 0xfffffff7;\n    }" { (expression_statement "iVar2 = epoll_ctl(*(int *)(lVar3 + 0x180),2,(int)param_1[0x26],(epoll_event *)0x0);" (assignment_expression "iVar2 = epoll_ctl(*(int *)(lVar3 + 0x180),2,(int)param_1[0x26],(epoll_event *)0x0)" identifier = (call_expression "epoll_ctl(*(int *)(lVar3 + 0x180),2,(int)param_1[0x26],(epoll_event *)0x0)" identifier (argument_list "(*(int *)(lVar3 + 0x180),2,(int)param_1[0x26],(epoll_event *)0x0)" ( (pointer_expression "*(int *)(lVar3 + 0x180)" * (cast_expression "(int *)(lVar3 + 0x180)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x180)" ( (binary_expression "lVar3 + 0x180" identifier + number_literal) )))) , number_literal , (cast_expression "(int)param_1[0x26]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[0x26]" identifier [ number_literal ])) , (cast_expression "(epoll_event *)0x0" ( (type_descriptor "epoll_event *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) )))) ;) (if_statement "if (iVar2 != 0) {\n        (*DAT_00120070)(DAT_00120068,"daemon.c",0xab1,"Failed to remove FD from epoll set\n");\n        goto LAB_0010c593;\n      }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        (*DAT_00120070)(DAT_00120068,"daemon.c",0xab1,"Failed to remove FD from epoll set\n");\n        goto LAB_0010c593;\n      }" { (expression_statement "(*DAT_00120070)(DAT_00120068,"daemon.c",0xab1,"Failed to remove FD from epoll set\n");" (call_expression "(*DAT_00120070)(DAT_00120068,"daemon.c",0xab1,"Failed to remove FD from epoll set\n")" (parenthesized_expression "(*DAT_00120070)" ( (pointer_expression "*DAT_00120070" * identifier) )) (argument_list "(DAT_00120068,"daemon.c",0xab1,"Failed to remove FD from epoll set\n")" ( identifier , (string_literal ""daemon.c"" " string_content ") , number_literal , (string_literal ""Failed to remove FD from epoll set\n"" " string_content escape_sequence ") ))) ;) (goto_statement "goto LAB_0010c593;" goto statement_identifier ;) })) (expression_statement "*(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) & 0xfffffff7;" (assignment_expression "*(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) & 0xfffffff7" (pointer_expression "*(uint *)((long)param_1 + 0x13c)" * (cast_expression "(uint *)((long)param_1 + 0x13c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x13c)" ( (binary_expression "(long)param_1 + 0x13c" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = (binary_expression "*(uint *)((long)param_1 + 0x13c) & 0xfffffff7" (pointer_expression "*(uint *)((long)param_1 + 0x13c)" * (cast_expression "(uint *)((long)param_1 + 0x13c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x13c)" ( (binary_expression "(long)param_1 + 0x13c" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) & number_literal)) ;) })) (expression_statement "*(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) | 0x10;" (assignment_expression "*(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) | 0x10" (pointer_expression "*(uint *)((long)param_1 + 0x13c)" * (cast_expression "(uint *)((long)param_1 + 0x13c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x13c)" ( (binary_expression "(long)param_1 + 0x13c" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = (binary_expression "*(uint *)((long)param_1 + 0x13c) | 0x10" (pointer_expression "*(uint *)((long)param_1 + 0x13c)" * (cast_expression "(uint *)((long)param_1 + 0x13c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x13c)" ( (binary_expression "(long)param_1 + 0x13c" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) | number_literal)) ;) })) (expression_statement "iVar2 = pthread_mutex_unlock(__mutex);" (assignment_expression "iVar2 = pthread_mutex_unlock(__mutex)" identifier = (call_expression "pthread_mutex_unlock(__mutex)" identifier (argument_list "(__mutex)" ( identifier )))) ;) (if_statement "if (iVar2 == 0) {\n    return;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (labeled_statement "LAB_0010c593:\n  lVar3 = DAT_00120068;" statement_identifier : (expression_statement "lVar3 = DAT_00120068;" (assignment_expression "lVar3 = DAT_00120068" identifier = identifier) ;)) (expression_statement "(*DAT_00120070)(DAT_00120068,"daemon.c",0xab8,"Failed to unlock mutex.\n");" (call_expression "(*DAT_00120070)(DAT_00120068,"daemon.c",0xab8,"Failed to unlock mutex.\n")" (parenthesized_expression "(*DAT_00120070)" ( (pointer_expression "*DAT_00120070" * identifier) )) (argument_list "(DAT_00120068,"daemon.c",0xab8,"Failed to unlock mutex.\n")" ( identifier , (string_literal ""daemon.c"" " string_content ") , number_literal , (string_literal ""Failed to unlock mutex.\n"" " string_content escape_sequence ") ))) ;) (if_statement "if ((*(byte *)(*(long *)(lVar3 + 0x30) + 0x1b5) & 0x20) == 0) {\n    (*DAT_00120070)(DAT_00120068,"daemon.c",0xae2,\n                    "Cannot suspend connections without enabling MHD_ALLOW_SUSPEND_RESUME!\n");\n  }\n  else if (*(long *)(lVar3 + 0x170) != 0) {\n    FUN_00110c11(*(long *)(lVar3 + 0x30),\n                 "Error: connection scheduled for \"upgrade\" cannot be suspended");\n    return;\n  }" if (parenthesized_expression "((*(byte *)(*(long *)(lVar3 + 0x30) + 0x1b5) & 0x20) == 0)" ( (binary_expression "(*(byte *)(*(long *)(lVar3 + 0x30) + 0x1b5) & 0x20) == 0" (parenthesized_expression "(*(byte *)(*(long *)(lVar3 + 0x30) + 0x1b5) & 0x20)" ( (binary_expression "*(byte *)(*(long *)(lVar3 + 0x30) + 0x1b5) & 0x20" (pointer_expression "*(byte *)(*(long *)(lVar3 + 0x30) + 0x1b5)" * (cast_expression "(byte *)(*(long *)(lVar3 + 0x30) + 0x1b5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(lVar3 + 0x30) + 0x1b5)" ( (binary_expression "*(long *)(lVar3 + 0x30) + 0x1b5" (pointer_expression "*(long *)(lVar3 + 0x30)" * (cast_expression "(long *)(lVar3 + 0x30)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x30)" ( (binary_expression "lVar3 + 0x30" identifier + number_literal) )))) + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    (*DAT_00120070)(DAT_00120068,"daemon.c",0xae2,\n                    "Cannot suspend connections without enabling MHD_ALLOW_SUSPEND_RESUME!\n");\n  }" { (expression_statement "(*DAT_00120070)(DAT_00120068,"daemon.c",0xae2,\n                    "Cannot suspend connections without enabling MHD_ALLOW_SUSPEND_RESUME!\n");" (call_expression "(*DAT_00120070)(DAT_00120068,"daemon.c",0xae2,\n                    "Cannot suspend connections without enabling MHD_ALLOW_SUSPEND_RESUME!\n")" (parenthesized_expression "(*DAT_00120070)" ( (pointer_expression "*DAT_00120070" * identifier) )) (argument_list "(DAT_00120068,"daemon.c",0xae2,\n                    "Cannot suspend connections without enabling MHD_ALLOW_SUSPEND_RESUME!\n")" ( identifier , (string_literal ""daemon.c"" " string_content ") , number_literal , (string_literal ""Cannot suspend connections without enabling MHD_ALLOW_SUSPEND_RESUME!\n"" " string_content escape_sequence ") ))) ;) }) (else_clause "else if (*(long *)(lVar3 + 0x170) != 0) {\n    FUN_00110c11(*(long *)(lVar3 + 0x30),\n                 "Error: connection scheduled for \"upgrade\" cannot be suspended");\n    return;\n  }" else (if_statement "if (*(long *)(lVar3 + 0x170) != 0) {\n    FUN_00110c11(*(long *)(lVar3 + 0x30),\n                 "Error: connection scheduled for \"upgrade\" cannot be suspended");\n    return;\n  }" if (parenthesized_expression "(*(long *)(lVar3 + 0x170) != 0)" ( (binary_expression "*(long *)(lVar3 + 0x170) != 0" (pointer_expression "*(long *)(lVar3 + 0x170)" * (cast_expression "(long *)(lVar3 + 0x170)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x170)" ( (binary_expression "lVar3 + 0x170" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    FUN_00110c11(*(long *)(lVar3 + 0x30),\n                 "Error: connection scheduled for \"upgrade\" cannot be suspended");\n    return;\n  }" { (expression_statement "FUN_00110c11(*(long *)(lVar3 + 0x30),\n                 "Error: connection scheduled for \"upgrade\" cannot be suspended");" (call_expression "FUN_00110c11(*(long *)(lVar3 + 0x30),\n                 "Error: connection scheduled for \"upgrade\" cannot be suspended")" identifier (argument_list "(*(long *)(lVar3 + 0x30),\n                 "Error: connection scheduled for \"upgrade\" cannot be suspended")" ( (pointer_expression "*(long *)(lVar3 + 0x30)" * (cast_expression "(long *)(lVar3 + 0x30)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x30)" ( (binary_expression "lVar3 + 0x30" identifier + number_literal) )))) , (string_literal ""Error: connection scheduled for \"upgrade\" cannot be suspended"" " string_content escape_sequence string_content escape_sequence string_content ") ))) ;) (return_statement "return;" return ;) })))) (expression_statement "FUN_0010c2fa();" (call_expression "FUN_0010c2fa()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) != (char_literal ' escape_sequence ')) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (subscript_expression IDENT [ LIT ])) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) )))) = (subscript_expression IDENT [ LIT ])) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (subscript_expression IDENT [ LIT ])) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) )))) = (subscript_expression IDENT [ LIT ])) ;) }))) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (goto_statement goto statement_identifier ;) })) (goto_statement goto statement_identifier ;) })) }) (else_clause else (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , (string_literal " string_content ") , LIT , (string_literal " string_content escape_sequence ") ))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) = LIT) ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , (string_literal " string_content ") , LIT , (string_literal " string_content escape_sequence ") ))) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (subscript_expression IDENT [ LIT ])) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) )))) = (subscript_expression IDENT [ LIT ])) ;) })))) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (subscript_expression IDENT [ LIT ])) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) )))) = (subscript_expression IDENT [ LIT ])) ;) }))) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) }))) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (subscript_expression IDENT [ LIT ])) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) )))) = (subscript_expression IDENT [ LIT ])) ;) })))) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (subscript_expression IDENT [ LIT ])) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) )))) = (subscript_expression IDENT [ LIT ])) ;) }))) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) }))) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) & LIT) )) != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) == (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) = (pointer_expression * IDENT)) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (subscript_expression IDENT [ LIT ])) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) = (subscript_expression IDENT [ LIT ])) ;) }))) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) & LIT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT , (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , (string_literal " string_content ") , LIT , (string_literal " string_content escape_sequence ") ))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) & LIT)) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) | LIT)) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = IDENT) ;)) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , (string_literal " string_content ") , LIT , (string_literal " string_content escape_sequence ") ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , (string_literal " string_content ") , LIT , (string_literal " string_content escape_sequence ") ))) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (string_literal " string_content escape_sequence string_content escape_sequence string_content ") ))) ;) (return_statement return ;) })))) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })))
(function_definition "void FUN_0010c2fa(long *param_1)\n\n{\n  pthread_mutex_t *__mutex;\n  long lVar1;\n  int iVar2;\n  long lVar3;\n  \n  lVar3 = param_1[6];\n  __mutex = (pthread_mutex_t *)(lVar3 + 0x150);\n  iVar2 = pthread_mutex_lock(__mutex);\n  if (iVar2 == 0) {\n    if (*(char *)((long)param_1 + 0x194) != '\0') goto LAB_0010c474;\n    if ((*(byte *)(lVar3 + 0x1b4) & 4) == 0) {\n      if (param_1[0x24] != *(long *)(lVar3 + 0x1a8)) {\n        if (param_1[5] == 0) {\n          *(long *)(lVar3 + 0x70) = param_1[4];\n        }\n        else {\n          *(long *)(param_1[5] + 0x20) = param_1[4];\n        }\n        if (param_1[4] == 0) {\n          *(long *)(lVar3 + 0x78) = param_1[5];\n        }\n        else {\n          *(long *)(param_1[4] + 0x28) = param_1[5];\n        }\n        param_1[4] = 0;\n        param_1[5] = 0;\n        goto LAB_0010c380;\n      }\n      goto LAB_0010c4a7;\n    }\n  }\n  else {\n    (*DAT_00120070)(DAT_00120068,"daemon.c",0xa83,"Failed to lock mutex.\n");\nLAB_0010c474:\n    *(undefined1 *)((long)param_1 + 0x194) = 0;\n    iVar2 = pthread_mutex_unlock(__mutex);\n    if (iVar2 == 0) {\n      return;\n    }\n    (*DAT_00120070)(DAT_00120068,"daemon.c",0xa8a,"Failed to unlock mutex.\n");\nLAB_0010c4a7:\n    if (param_1[5] == 0) {\n      *(long *)(lVar3 + 0x60) = param_1[4];\n    }\n    else {\n      *(long *)(param_1[5] + 0x20) = param_1[4];\n    }\n    if (param_1[4] == 0) {\n      *(long *)(lVar3 + 0x68) = param_1[5];\n    }\n    else {\n      *(long *)(param_1[4] + 0x28) = param_1[5];\n    }\n    param_1[4] = 0;\n    param_1[5] = 0;\n  }\nLAB_0010c380:\n  if (param_1[3] == 0) {\n    *(long *)(lVar3 + 0x10) = param_1[2];\n  }\n  else {\n    *(long *)(param_1[3] + 0x10) = param_1[2];\n  }\n  if (param_1[2] == 0) {\n    *(long *)(lVar3 + 0x18) = param_1[3];\n  }\n  else {\n    *(long *)(param_1[2] + 0x18) = param_1[3];\n  }\n  param_1[2] = 0;\n  param_1[3] = 0;\n  lVar1 = *(long *)(lVar3 + 0x20);\n  param_1[2] = lVar1;\n  if (*(long *)(lVar3 + 0x28) == 0) {\n    *(long **)(lVar3 + 0x28) = param_1;\n  }\n  else {\n    *(long **)(lVar1 + 0x18) = param_1;\n  }\n  *(long **)(lVar3 + 0x20) = param_1;\n  *(undefined1 *)((long)param_1 + 0x18d) = 1;\n  if ((*(byte *)(lVar3 + 0x1b5) & 2) != 0) {\n    if ((*(byte *)((long)param_1 + 0x13c) & 4) != 0) {\n      if ((long *)param_1[1] == (long *)0x0) {\n        *(long *)(lVar3 + 0x40) = *param_1;\n      }\n      else {\n        *(long *)param_1[1] = *param_1;\n      }\n      if (*param_1 == 0) {\n        *(long *)(lVar3 + 0x48) = param_1[1];\n      }\n      else {\n        *(long *)(*param_1 + 8) = param_1[1];\n      }\n      *param_1 = 0;\n      param_1[1] = 0;\n      *(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) & 0xfffffffb;\n    }\n    if ((*(byte *)((long)param_1 + 0x13c) & 8) != 0) {\n      iVar2 = epoll_ctl(*(int *)(lVar3 + 0x180),2,(int)param_1[0x26],(epoll_event *)0x0);\n      if (iVar2 != 0) {\n        (*DAT_00120070)(DAT_00120068,"daemon.c",0xab1,"Failed to remove FD from epoll set\n");\n        goto LAB_0010c593;\n      }\n      *(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) & 0xfffffff7;\n    }\n    *(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) | 0x10;\n  }\n  iVar2 = pthread_mutex_unlock(__mutex);\n  if (iVar2 == 0) {\n    return;\n  }\nLAB_0010c593:\n  lVar3 = DAT_00120068;\n  (*DAT_00120070)(DAT_00120068,"daemon.c",0xab8,"Failed to unlock mutex.\n");\n  if ((*(byte *)(*(long *)(lVar3 + 0x30) + 0x1b5) & 0x20) == 0) {\n    (*DAT_00120070)(DAT_00120068,"daemon.c",0xae2,\n                    "Cannot suspend connections without enabling MHD_ALLOW_SUSPEND_RESUME!\n");\n  }\n  else if (*(long *)(lVar3 + 0x170) != 0) {\n    FUN_00110c11(*(long *)(lVar3 + 0x30),\n                 "Error: connection scheduled for \"upgrade\" cannot be suspended");\n    return;\n  }\n  FUN_0010c2fa();\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0010c2fa(long *param_1)" (identifier "FUN_0010c2fa") (parameter_list "(long *param_1)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  pthread_mutex_t *__mutex;\n  long lVar1;\n  int iVar2;\n  long lVar3;\n  \n  lVar3 = param_1[6];\n  __mutex = (pthread_mutex_t *)(lVar3 + 0x150);\n  iVar2 = pthread_mutex_lock(__mutex);\n  if (iVar2 == 0) {\n    if (*(char *)((long)param_1 + 0x194) != '\0') goto LAB_0010c474;\n    if ((*(byte *)(lVar3 + 0x1b4) & 4) == 0) {\n      if (param_1[0x24] != *(long *)(lVar3 + 0x1a8)) {\n        if (param_1[5] == 0) {\n          *(long *)(lVar3 + 0x70) = param_1[4];\n        }\n        else {\n          *(long *)(param_1[5] + 0x20) = param_1[4];\n        }\n        if (param_1[4] == 0) {\n          *(long *)(lVar3 + 0x78) = param_1[5];\n        }\n        else {\n          *(long *)(param_1[4] + 0x28) = param_1[5];\n        }\n        param_1[4] = 0;\n        param_1[5] = 0;\n        goto LAB_0010c380;\n      }\n      goto LAB_0010c4a7;\n    }\n  }\n  else {\n    (*DAT_00120070)(DAT_00120068,"daemon.c",0xa83,"Failed to lock mutex.\n");\nLAB_0010c474:\n    *(undefined1 *)((long)param_1 + 0x194) = 0;\n    iVar2 = pthread_mutex_unlock(__mutex);\n    if (iVar2 == 0) {\n      return;\n    }\n    (*DAT_00120070)(DAT_00120068,"daemon.c",0xa8a,"Failed to unlock mutex.\n");\nLAB_0010c4a7:\n    if (param_1[5] == 0) {\n      *(long *)(lVar3 + 0x60) = param_1[4];\n    }\n    else {\n      *(long *)(param_1[5] + 0x20) = param_1[4];\n    }\n    if (param_1[4] == 0) {\n      *(long *)(lVar3 + 0x68) = param_1[5];\n    }\n    else {\n      *(long *)(param_1[4] + 0x28) = param_1[5];\n    }\n    param_1[4] = 0;\n    param_1[5] = 0;\n  }\nLAB_0010c380:\n  if (param_1[3] == 0) {\n    *(long *)(lVar3 + 0x10) = param_1[2];\n  }\n  else {\n    *(long *)(param_1[3] + 0x10) = param_1[2];\n  }\n  if (param_1[2] == 0) {\n    *(long *)(lVar3 + 0x18) = param_1[3];\n  }\n  else {\n    *(long *)(param_1[2] + 0x18) = param_1[3];\n  }\n  param_1[2] = 0;\n  param_1[3] = 0;\n  lVar1 = *(long *)(lVar3 + 0x20);\n  param_1[2] = lVar1;\n  if (*(long *)(lVar3 + 0x28) == 0) {\n    *(long **)(lVar3 + 0x28) = param_1;\n  }\n  else {\n    *(long **)(lVar1 + 0x18) = param_1;\n  }\n  *(long **)(lVar3 + 0x20) = param_1;\n  *(undefined1 *)((long)param_1 + 0x18d) = 1;\n  if ((*(byte *)(lVar3 + 0x1b5) & 2) != 0) {\n    if ((*(byte *)((long)param_1 + 0x13c) & 4) != 0) {\n      if ((long *)param_1[1] == (long *)0x0) {\n        *(long *)(lVar3 + 0x40) = *param_1;\n      }\n      else {\n        *(long *)param_1[1] = *param_1;\n      }\n      if (*param_1 == 0) {\n        *(long *)(lVar3 + 0x48) = param_1[1];\n      }\n      else {\n        *(long *)(*param_1 + 8) = param_1[1];\n      }\n      *param_1 = 0;\n      param_1[1] = 0;\n      *(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) & 0xfffffffb;\n    }\n    if ((*(byte *)((long)param_1 + 0x13c) & 8) != 0) {\n      iVar2 = epoll_ctl(*(int *)(lVar3 + 0x180),2,(int)param_1[0x26],(epoll_event *)0x0);\n      if (iVar2 != 0) {\n        (*DAT_00120070)(DAT_00120068,"daemon.c",0xab1,"Failed to remove FD from epoll set\n");\n        goto LAB_0010c593;\n      }\n      *(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) & 0xfffffff7;\n    }\n    *(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) | 0x10;\n  }\n  iVar2 = pthread_mutex_unlock(__mutex);\n  if (iVar2 == 0) {\n    return;\n  }\nLAB_0010c593:\n  lVar3 = DAT_00120068;\n  (*DAT_00120070)(DAT_00120068,"daemon.c",0xab8,"Failed to unlock mutex.\n");\n  if ((*(byte *)(*(long *)(lVar3 + 0x30) + 0x1b5) & 0x20) == 0) {\n    (*DAT_00120070)(DAT_00120068,"daemon.c",0xae2,\n                    "Cannot suspend connections without enabling MHD_ALLOW_SUSPEND_RESUME!\n");\n  }\n  else if (*(long *)(lVar3 + 0x170) != 0) {\n    FUN_00110c11(*(long *)(lVar3 + 0x30),\n                 "Error: connection scheduled for \"upgrade\" cannot be suspended");\n    return;\n  }\n  FUN_0010c2fa();\n  return;\n}" ({ "{") (declaration "pthread_mutex_t *__mutex;" (type_identifier "pthread_mutex_t") (pointer_declarator "*__mutex" (* "*") (identifier "__mutex")) (; ";")) (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "long lVar3;" (sized_type_specifier "long" (long "long")) (identifier "lVar3") (; ";")) (expression_statement "lVar3 = param_1[6];" (assignment_expression "lVar3 = param_1[6]" (identifier "lVar3") (= "=") (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]"))) (; ";")) (expression_statement "__mutex = (pthread_mutex_t *)(lVar3 + 0x150);" (assignment_expression "__mutex = (pthread_mutex_t *)(lVar3 + 0x150)" (identifier "__mutex") (= "=") (cast_expression "(pthread_mutex_t *)(lVar3 + 0x150)" (( "(") (type_descriptor "pthread_mutex_t *" (type_identifier "pthread_mutex_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar3 + 0x150)" (( "(") (binary_expression "lVar3 + 0x150" (identifier "lVar3") (+ "+") (number_literal "0x150")) () ")")))) (; ";")) (expression_statement "iVar2 = pthread_mutex_lock(__mutex);" (assignment_expression "iVar2 = pthread_mutex_lock(__mutex)" (identifier "iVar2") (= "=") (call_expression "pthread_mutex_lock(__mutex)" (identifier "pthread_mutex_lock") (argument_list "(__mutex)" (( "(") (identifier "__mutex") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n    if (*(char *)((long)param_1 + 0x194) != '\0') goto LAB_0010c474;\n    if ((*(byte *)(lVar3 + 0x1b4) & 4) == 0) {\n      if (param_1[0x24] != *(long *)(lVar3 + 0x1a8)) {\n        if (param_1[5] == 0) {\n          *(long *)(lVar3 + 0x70) = param_1[4];\n        }\n        else {\n          *(long *)(param_1[5] + 0x20) = param_1[4];\n        }\n        if (param_1[4] == 0) {\n          *(long *)(lVar3 + 0x78) = param_1[5];\n        }\n        else {\n          *(long *)(param_1[4] + 0x28) = param_1[5];\n        }\n        param_1[4] = 0;\n        param_1[5] = 0;\n        goto LAB_0010c380;\n      }\n      goto LAB_0010c4a7;\n    }\n  }\n  else {\n    (*DAT_00120070)(DAT_00120068,"daemon.c",0xa83,"Failed to lock mutex.\n");\nLAB_0010c474:\n    *(undefined1 *)((long)param_1 + 0x194) = 0;\n    iVar2 = pthread_mutex_unlock(__mutex);\n    if (iVar2 == 0) {\n      return;\n    }\n    (*DAT_00120070)(DAT_00120068,"daemon.c",0xa8a,"Failed to unlock mutex.\n");\nLAB_0010c4a7:\n    if (param_1[5] == 0) {\n      *(long *)(lVar3 + 0x60) = param_1[4];\n    }\n    else {\n      *(long *)(param_1[5] + 0x20) = param_1[4];\n    }\n    if (param_1[4] == 0) {\n      *(long *)(lVar3 + 0x68) = param_1[5];\n    }\n    else {\n      *(long *)(param_1[4] + 0x28) = param_1[5];\n    }\n    param_1[4] = 0;\n    param_1[5] = 0;\n  }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if (*(char *)((long)param_1 + 0x194) != '\0') goto LAB_0010c474;\n    if ((*(byte *)(lVar3 + 0x1b4) & 4) == 0) {\n      if (param_1[0x24] != *(long *)(lVar3 + 0x1a8)) {\n        if (param_1[5] == 0) {\n          *(long *)(lVar3 + 0x70) = param_1[4];\n        }\n        else {\n          *(long *)(param_1[5] + 0x20) = param_1[4];\n        }\n        if (param_1[4] == 0) {\n          *(long *)(lVar3 + 0x78) = param_1[5];\n        }\n        else {\n          *(long *)(param_1[4] + 0x28) = param_1[5];\n        }\n        param_1[4] = 0;\n        param_1[5] = 0;\n        goto LAB_0010c380;\n      }\n      goto LAB_0010c4a7;\n    }\n  }" ({ "{") (if_statement "if (*(char *)((long)param_1 + 0x194) != '\0') goto LAB_0010c474;" (if "if") (parenthesized_expression "(*(char *)((long)param_1 + 0x194) != '\0')" (( "(") (binary_expression "*(char *)((long)param_1 + 0x194) != '\0'" (pointer_expression "*(char *)((long)param_1 + 0x194)" (* "*") (cast_expression "(char *)((long)param_1 + 0x194)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0x194)" (( "(") (binary_expression "(long)param_1 + 0x194" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0x194")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (goto_statement "goto LAB_0010c474;" (goto "goto") (statement_identifier "LAB_0010c474") (; ";"))) (if_statement "if ((*(byte *)(lVar3 + 0x1b4) & 4) == 0) {\n      if (param_1[0x24] != *(long *)(lVar3 + 0x1a8)) {\n        if (param_1[5] == 0) {\n          *(long *)(lVar3 + 0x70) = param_1[4];\n        }\n        else {\n          *(long *)(param_1[5] + 0x20) = param_1[4];\n        }\n        if (param_1[4] == 0) {\n          *(long *)(lVar3 + 0x78) = param_1[5];\n        }\n        else {\n          *(long *)(param_1[4] + 0x28) = param_1[5];\n        }\n        param_1[4] = 0;\n        param_1[5] = 0;\n        goto LAB_0010c380;\n      }\n      goto LAB_0010c4a7;\n    }" (if "if") (parenthesized_expression "((*(byte *)(lVar3 + 0x1b4) & 4) == 0)" (( "(") (binary_expression "(*(byte *)(lVar3 + 0x1b4) & 4) == 0" (parenthesized_expression "(*(byte *)(lVar3 + 0x1b4) & 4)" (( "(") (binary_expression "*(byte *)(lVar3 + 0x1b4) & 4" (pointer_expression "*(byte *)(lVar3 + 0x1b4)" (* "*") (cast_expression "(byte *)(lVar3 + 0x1b4)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar3 + 0x1b4)" (( "(") (binary_expression "lVar3 + 0x1b4" (identifier "lVar3") (+ "+") (number_literal "0x1b4")) () ")")))) (& "&") (number_literal "4")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      if (param_1[0x24] != *(long *)(lVar3 + 0x1a8)) {\n        if (param_1[5] == 0) {\n          *(long *)(lVar3 + 0x70) = param_1[4];\n        }\n        else {\n          *(long *)(param_1[5] + 0x20) = param_1[4];\n        }\n        if (param_1[4] == 0) {\n          *(long *)(lVar3 + 0x78) = param_1[5];\n        }\n        else {\n          *(long *)(param_1[4] + 0x28) = param_1[5];\n        }\n        param_1[4] = 0;\n        param_1[5] = 0;\n        goto LAB_0010c380;\n      }\n      goto LAB_0010c4a7;\n    }" ({ "{") (if_statement "if (param_1[0x24] != *(long *)(lVar3 + 0x1a8)) {\n        if (param_1[5] == 0) {\n          *(long *)(lVar3 + 0x70) = param_1[4];\n        }\n        else {\n          *(long *)(param_1[5] + 0x20) = param_1[4];\n        }\n        if (param_1[4] == 0) {\n          *(long *)(lVar3 + 0x78) = param_1[5];\n        }\n        else {\n          *(long *)(param_1[4] + 0x28) = param_1[5];\n        }\n        param_1[4] = 0;\n        param_1[5] = 0;\n        goto LAB_0010c380;\n      }" (if "if") (parenthesized_expression "(param_1[0x24] != *(long *)(lVar3 + 0x1a8))" (( "(") (binary_expression "param_1[0x24] != *(long *)(lVar3 + 0x1a8)" (subscript_expression "param_1[0x24]" (identifier "param_1") ([ "[") (number_literal "0x24") (] "]")) (!= "!=") (pointer_expression "*(long *)(lVar3 + 0x1a8)" (* "*") (cast_expression "(long *)(lVar3 + 0x1a8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar3 + 0x1a8)" (( "(") (binary_expression "lVar3 + 0x1a8" (identifier "lVar3") (+ "+") (number_literal "0x1a8")) () ")"))))) () ")")) (compound_statement "{\n        if (param_1[5] == 0) {\n          *(long *)(lVar3 + 0x70) = param_1[4];\n        }\n        else {\n          *(long *)(param_1[5] + 0x20) = param_1[4];\n        }\n        if (param_1[4] == 0) {\n          *(long *)(lVar3 + 0x78) = param_1[5];\n        }\n        else {\n          *(long *)(param_1[4] + 0x28) = param_1[5];\n        }\n        param_1[4] = 0;\n        param_1[5] = 0;\n        goto LAB_0010c380;\n      }" ({ "{") (if_statement "if (param_1[5] == 0) {\n          *(long *)(lVar3 + 0x70) = param_1[4];\n        }\n        else {\n          *(long *)(param_1[5] + 0x20) = param_1[4];\n        }" (if "if") (parenthesized_expression "(param_1[5] == 0)" (( "(") (binary_expression "param_1[5] == 0" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          *(long *)(lVar3 + 0x70) = param_1[4];\n        }" ({ "{") (expression_statement "*(long *)(lVar3 + 0x70) = param_1[4];" (assignment_expression "*(long *)(lVar3 + 0x70) = param_1[4]" (pointer_expression "*(long *)(lVar3 + 0x70)" (* "*") (cast_expression "(long *)(lVar3 + 0x70)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar3 + 0x70)" (( "(") (binary_expression "lVar3 + 0x70" (identifier "lVar3") (+ "+") (number_literal "0x70")) () ")")))) (= "=") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]"))) (; ";")) (} "}")) (else_clause "else {\n          *(long *)(param_1[5] + 0x20) = param_1[4];\n        }" (else "else") (compound_statement "{\n          *(long *)(param_1[5] + 0x20) = param_1[4];\n        }" ({ "{") (expression_statement "*(long *)(param_1[5] + 0x20) = param_1[4];" (assignment_expression "*(long *)(param_1[5] + 0x20) = param_1[4]" (pointer_expression "*(long *)(param_1[5] + 0x20)" (* "*") (cast_expression "(long *)(param_1[5] + 0x20)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1[5] + 0x20)" (( "(") (binary_expression "param_1[5] + 0x20" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (+ "+") (number_literal "0x20")) () ")")))) (= "=") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]"))) (; ";")) (} "}")))) (if_statement "if (param_1[4] == 0) {\n          *(long *)(lVar3 + 0x78) = param_1[5];\n        }\n        else {\n          *(long *)(param_1[4] + 0x28) = param_1[5];\n        }" (if "if") (parenthesized_expression "(param_1[4] == 0)" (( "(") (binary_expression "param_1[4] == 0" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          *(long *)(lVar3 + 0x78) = param_1[5];\n        }" ({ "{") (expression_statement "*(long *)(lVar3 + 0x78) = param_1[5];" (assignment_expression "*(long *)(lVar3 + 0x78) = param_1[5]" (pointer_expression "*(long *)(lVar3 + 0x78)" (* "*") (cast_expression "(long *)(lVar3 + 0x78)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar3 + 0x78)" (( "(") (binary_expression "lVar3 + 0x78" (identifier "lVar3") (+ "+") (number_literal "0x78")) () ")")))) (= "=") (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]"))) (; ";")) (} "}")) (else_clause "else {\n          *(long *)(param_1[4] + 0x28) = param_1[5];\n        }" (else "else") (compound_statement "{\n          *(long *)(param_1[4] + 0x28) = param_1[5];\n        }" ({ "{") (expression_statement "*(long *)(param_1[4] + 0x28) = param_1[5];" (assignment_expression "*(long *)(param_1[4] + 0x28) = param_1[5]" (pointer_expression "*(long *)(param_1[4] + 0x28)" (* "*") (cast_expression "(long *)(param_1[4] + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1[4] + 0x28)" (( "(") (binary_expression "param_1[4] + 0x28" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (+ "+") (number_literal "0x28")) () ")")))) (= "=") (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]"))) (; ";")) (} "}")))) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[5] = 0;" (assignment_expression "param_1[5] = 0" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_0010c380;" (goto "goto") (statement_identifier "LAB_0010c380") (; ";")) (} "}"))) (goto_statement "goto LAB_0010c4a7;" (goto "goto") (statement_identifier "LAB_0010c4a7") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    (*DAT_00120070)(DAT_00120068,"daemon.c",0xa83,"Failed to lock mutex.\n");\nLAB_0010c474:\n    *(undefined1 *)((long)param_1 + 0x194) = 0;\n    iVar2 = pthread_mutex_unlock(__mutex);\n    if (iVar2 == 0) {\n      return;\n    }\n    (*DAT_00120070)(DAT_00120068,"daemon.c",0xa8a,"Failed to unlock mutex.\n");\nLAB_0010c4a7:\n    if (param_1[5] == 0) {\n      *(long *)(lVar3 + 0x60) = param_1[4];\n    }\n    else {\n      *(long *)(param_1[5] + 0x20) = param_1[4];\n    }\n    if (param_1[4] == 0) {\n      *(long *)(lVar3 + 0x68) = param_1[5];\n    }\n    else {\n      *(long *)(param_1[4] + 0x28) = param_1[5];\n    }\n    param_1[4] = 0;\n    param_1[5] = 0;\n  }" (else "else") (compound_statement "{\n    (*DAT_00120070)(DAT_00120068,"daemon.c",0xa83,"Failed to lock mutex.\n");\nLAB_0010c474:\n    *(undefined1 *)((long)param_1 + 0x194) = 0;\n    iVar2 = pthread_mutex_unlock(__mutex);\n    if (iVar2 == 0) {\n      return;\n    }\n    (*DAT_00120070)(DAT_00120068,"daemon.c",0xa8a,"Failed to unlock mutex.\n");\nLAB_0010c4a7:\n    if (param_1[5] == 0) {\n      *(long *)(lVar3 + 0x60) = param_1[4];\n    }\n    else {\n      *(long *)(param_1[5] + 0x20) = param_1[4];\n    }\n    if (param_1[4] == 0) {\n      *(long *)(lVar3 + 0x68) = param_1[5];\n    }\n    else {\n      *(long *)(param_1[4] + 0x28) = param_1[5];\n    }\n    param_1[4] = 0;\n    param_1[5] = 0;\n  }" ({ "{") (expression_statement "(*DAT_00120070)(DAT_00120068,"daemon.c",0xa83,"Failed to lock mutex.\n");" (call_expression "(*DAT_00120070)(DAT_00120068,"daemon.c",0xa83,"Failed to lock mutex.\n")" (parenthesized_expression "(*DAT_00120070)" (( "(") (pointer_expression "*DAT_00120070" (* "*") (identifier "DAT_00120070")) () ")")) (argument_list "(DAT_00120068,"daemon.c",0xa83,"Failed to lock mutex.\n")" (( "(") (identifier "DAT_00120068") (, ",") (string_literal ""daemon.c"" (" """) (string_content "daemon.c") (" """)) (, ",") (number_literal "0xa83") (, ",") (string_literal ""Failed to lock mutex.\n"" (" """) (string_content "Failed to lock mutex.") (escape_sequence "\n") (" """)) () ")"))) (; ";")) (labeled_statement "LAB_0010c474:\n    *(undefined1 *)((long)param_1 + 0x194) = 0;" (statement_identifier "LAB_0010c474") (: ":") (expression_statement "*(undefined1 *)((long)param_1 + 0x194) = 0;" (assignment_expression "*(undefined1 *)((long)param_1 + 0x194) = 0" (pointer_expression "*(undefined1 *)((long)param_1 + 0x194)" (* "*") (cast_expression "(undefined1 *)((long)param_1 + 0x194)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0x194)" (( "(") (binary_expression "(long)param_1 + 0x194" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0x194")) () ")")))) (= "=") (number_literal "0")) (; ";"))) (expression_statement "iVar2 = pthread_mutex_unlock(__mutex);" (assignment_expression "iVar2 = pthread_mutex_unlock(__mutex)" (identifier "iVar2") (= "=") (call_expression "pthread_mutex_unlock(__mutex)" (identifier "pthread_mutex_unlock") (argument_list "(__mutex)" (( "(") (identifier "__mutex") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n      return;\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "(*DAT_00120070)(DAT_00120068,"daemon.c",0xa8a,"Failed to unlock mutex.\n");" (call_expression "(*DAT_00120070)(DAT_00120068,"daemon.c",0xa8a,"Failed to unlock mutex.\n")" (parenthesized_expression "(*DAT_00120070)" (( "(") (pointer_expression "*DAT_00120070" (* "*") (identifier "DAT_00120070")) () ")")) (argument_list "(DAT_00120068,"daemon.c",0xa8a,"Failed to unlock mutex.\n")" (( "(") (identifier "DAT_00120068") (, ",") (string_literal ""daemon.c"" (" """) (string_content "daemon.c") (" """)) (, ",") (number_literal "0xa8a") (, ",") (string_literal ""Failed to unlock mutex.\n"" (" """) (string_content "Failed to unlock mutex.") (escape_sequence "\n") (" """)) () ")"))) (; ";")) (labeled_statement "LAB_0010c4a7:\n    if (param_1[5] == 0) {\n      *(long *)(lVar3 + 0x60) = param_1[4];\n    }\n    else {\n      *(long *)(param_1[5] + 0x20) = param_1[4];\n    }" (statement_identifier "LAB_0010c4a7") (: ":") (if_statement "if (param_1[5] == 0) {\n      *(long *)(lVar3 + 0x60) = param_1[4];\n    }\n    else {\n      *(long *)(param_1[5] + 0x20) = param_1[4];\n    }" (if "if") (parenthesized_expression "(param_1[5] == 0)" (( "(") (binary_expression "param_1[5] == 0" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      *(long *)(lVar3 + 0x60) = param_1[4];\n    }" ({ "{") (expression_statement "*(long *)(lVar3 + 0x60) = param_1[4];" (assignment_expression "*(long *)(lVar3 + 0x60) = param_1[4]" (pointer_expression "*(long *)(lVar3 + 0x60)" (* "*") (cast_expression "(long *)(lVar3 + 0x60)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar3 + 0x60)" (( "(") (binary_expression "lVar3 + 0x60" (identifier "lVar3") (+ "+") (number_literal "0x60")) () ")")))) (= "=") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]"))) (; ";")) (} "}")) (else_clause "else {\n      *(long *)(param_1[5] + 0x20) = param_1[4];\n    }" (else "else") (compound_statement "{\n      *(long *)(param_1[5] + 0x20) = param_1[4];\n    }" ({ "{") (expression_statement "*(long *)(param_1[5] + 0x20) = param_1[4];" (assignment_expression "*(long *)(param_1[5] + 0x20) = param_1[4]" (pointer_expression "*(long *)(param_1[5] + 0x20)" (* "*") (cast_expression "(long *)(param_1[5] + 0x20)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1[5] + 0x20)" (( "(") (binary_expression "param_1[5] + 0x20" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (+ "+") (number_literal "0x20")) () ")")))) (= "=") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]"))) (; ";")) (} "}"))))) (if_statement "if (param_1[4] == 0) {\n      *(long *)(lVar3 + 0x68) = param_1[5];\n    }\n    else {\n      *(long *)(param_1[4] + 0x28) = param_1[5];\n    }" (if "if") (parenthesized_expression "(param_1[4] == 0)" (( "(") (binary_expression "param_1[4] == 0" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      *(long *)(lVar3 + 0x68) = param_1[5];\n    }" ({ "{") (expression_statement "*(long *)(lVar3 + 0x68) = param_1[5];" (assignment_expression "*(long *)(lVar3 + 0x68) = param_1[5]" (pointer_expression "*(long *)(lVar3 + 0x68)" (* "*") (cast_expression "(long *)(lVar3 + 0x68)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar3 + 0x68)" (( "(") (binary_expression "lVar3 + 0x68" (identifier "lVar3") (+ "+") (number_literal "0x68")) () ")")))) (= "=") (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]"))) (; ";")) (} "}")) (else_clause "else {\n      *(long *)(param_1[4] + 0x28) = param_1[5];\n    }" (else "else") (compound_statement "{\n      *(long *)(param_1[4] + 0x28) = param_1[5];\n    }" ({ "{") (expression_statement "*(long *)(param_1[4] + 0x28) = param_1[5];" (assignment_expression "*(long *)(param_1[4] + 0x28) = param_1[5]" (pointer_expression "*(long *)(param_1[4] + 0x28)" (* "*") (cast_expression "(long *)(param_1[4] + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1[4] + 0x28)" (( "(") (binary_expression "param_1[4] + 0x28" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (+ "+") (number_literal "0x28")) () ")")))) (= "=") (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]"))) (; ";")) (} "}")))) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[5] = 0;" (assignment_expression "param_1[5] = 0" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "0")) (; ";")) (} "}")))) (labeled_statement "LAB_0010c380:\n  if (param_1[3] == 0) {\n    *(long *)(lVar3 + 0x10) = param_1[2];\n  }\n  else {\n    *(long *)(param_1[3] + 0x10) = param_1[2];\n  }" (statement_identifier "LAB_0010c380") (: ":") (if_statement "if (param_1[3] == 0) {\n    *(long *)(lVar3 + 0x10) = param_1[2];\n  }\n  else {\n    *(long *)(param_1[3] + 0x10) = param_1[2];\n  }" (if "if") (parenthesized_expression "(param_1[3] == 0)" (( "(") (binary_expression "param_1[3] == 0" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    *(long *)(lVar3 + 0x10) = param_1[2];\n  }" ({ "{") (expression_statement "*(long *)(lVar3 + 0x10) = param_1[2];" (assignment_expression "*(long *)(lVar3 + 0x10) = param_1[2]" (pointer_expression "*(long *)(lVar3 + 0x10)" (* "*") (cast_expression "(long *)(lVar3 + 0x10)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar3 + 0x10)" (( "(") (binary_expression "lVar3 + 0x10" (identifier "lVar3") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (} "}")) (else_clause "else {\n    *(long *)(param_1[3] + 0x10) = param_1[2];\n  }" (else "else") (compound_statement "{\n    *(long *)(param_1[3] + 0x10) = param_1[2];\n  }" ({ "{") (expression_statement "*(long *)(param_1[3] + 0x10) = param_1[2];" (assignment_expression "*(long *)(param_1[3] + 0x10) = param_1[2]" (pointer_expression "*(long *)(param_1[3] + 0x10)" (* "*") (cast_expression "(long *)(param_1[3] + 0x10)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1[3] + 0x10)" (( "(") (binary_expression "param_1[3] + 0x10" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (+ "+") (number_literal "0x10")) () ")")))) (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (} "}"))))) (if_statement "if (param_1[2] == 0) {\n    *(long *)(lVar3 + 0x18) = param_1[3];\n  }\n  else {\n    *(long *)(param_1[2] + 0x18) = param_1[3];\n  }" (if "if") (parenthesized_expression "(param_1[2] == 0)" (( "(") (binary_expression "param_1[2] == 0" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    *(long *)(lVar3 + 0x18) = param_1[3];\n  }" ({ "{") (expression_statement "*(long *)(lVar3 + 0x18) = param_1[3];" (assignment_expression "*(long *)(lVar3 + 0x18) = param_1[3]" (pointer_expression "*(long *)(lVar3 + 0x18)" (* "*") (cast_expression "(long *)(lVar3 + 0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar3 + 0x18)" (( "(") (binary_expression "lVar3 + 0x18" (identifier "lVar3") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]"))) (; ";")) (} "}")) (else_clause "else {\n    *(long *)(param_1[2] + 0x18) = param_1[3];\n  }" (else "else") (compound_statement "{\n    *(long *)(param_1[2] + 0x18) = param_1[3];\n  }" ({ "{") (expression_statement "*(long *)(param_1[2] + 0x18) = param_1[3];" (assignment_expression "*(long *)(param_1[2] + 0x18) = param_1[3]" (pointer_expression "*(long *)(param_1[2] + 0x18)" (* "*") (cast_expression "(long *)(param_1[2] + 0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1[2] + 0x18)" (( "(") (binary_expression "param_1[2] + 0x18" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (+ "+") (number_literal "0x18")) () ")")))) (= "=") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]"))) (; ";")) (} "}")))) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "lVar1 = *(long *)(lVar3 + 0x20);" (assignment_expression "lVar1 = *(long *)(lVar3 + 0x20)" (identifier "lVar1") (= "=") (pointer_expression "*(long *)(lVar3 + 0x20)" (* "*") (cast_expression "(long *)(lVar3 + 0x20)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar3 + 0x20)" (( "(") (binary_expression "lVar3 + 0x20" (identifier "lVar3") (+ "+") (number_literal "0x20")) () ")"))))) (; ";")) (expression_statement "param_1[2] = lVar1;" (assignment_expression "param_1[2] = lVar1" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "lVar1")) (; ";")) (if_statement "if (*(long *)(lVar3 + 0x28) == 0) {\n    *(long **)(lVar3 + 0x28) = param_1;\n  }\n  else {\n    *(long **)(lVar1 + 0x18) = param_1;\n  }" (if "if") (parenthesized_expression "(*(long *)(lVar3 + 0x28) == 0)" (( "(") (binary_expression "*(long *)(lVar3 + 0x28) == 0" (pointer_expression "*(long *)(lVar3 + 0x28)" (* "*") (cast_expression "(long *)(lVar3 + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar3 + 0x28)" (( "(") (binary_expression "lVar3 + 0x28" (identifier "lVar3") (+ "+") (number_literal "0x28")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    *(long **)(lVar3 + 0x28) = param_1;\n  }" ({ "{") (expression_statement "*(long **)(lVar3 + 0x28) = param_1;" (assignment_expression "*(long **)(lVar3 + 0x28) = param_1" (pointer_expression "*(long **)(lVar3 + 0x28)" (* "*") (cast_expression "(long **)(lVar3 + 0x28)" (( "(") (type_descriptor "long **" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(lVar3 + 0x28)" (( "(") (binary_expression "lVar3 + 0x28" (identifier "lVar3") (+ "+") (number_literal "0x28")) () ")")))) (= "=") (identifier "param_1")) (; ";")) (} "}")) (else_clause "else {\n    *(long **)(lVar1 + 0x18) = param_1;\n  }" (else "else") (compound_statement "{\n    *(long **)(lVar1 + 0x18) = param_1;\n  }" ({ "{") (expression_statement "*(long **)(lVar1 + 0x18) = param_1;" (assignment_expression "*(long **)(lVar1 + 0x18) = param_1" (pointer_expression "*(long **)(lVar1 + 0x18)" (* "*") (cast_expression "(long **)(lVar1 + 0x18)" (( "(") (type_descriptor "long **" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(lVar1 + 0x18)" (( "(") (binary_expression "lVar1 + 0x18" (identifier "lVar1") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (identifier "param_1")) (; ";")) (} "}")))) (expression_statement "*(long **)(lVar3 + 0x20) = param_1;" (assignment_expression "*(long **)(lVar3 + 0x20) = param_1" (pointer_expression "*(long **)(lVar3 + 0x20)" (* "*") (cast_expression "(long **)(lVar3 + 0x20)" (( "(") (type_descriptor "long **" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(lVar3 + 0x20)" (( "(") (binary_expression "lVar3 + 0x20" (identifier "lVar3") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (identifier "param_1")) (; ";")) (expression_statement "*(undefined1 *)((long)param_1 + 0x18d) = 1;" (assignment_expression "*(undefined1 *)((long)param_1 + 0x18d) = 1" (pointer_expression "*(undefined1 *)((long)param_1 + 0x18d)" (* "*") (cast_expression "(undefined1 *)((long)param_1 + 0x18d)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0x18d)" (( "(") (binary_expression "(long)param_1 + 0x18d" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0x18d")) () ")")))) (= "=") (number_literal "1")) (; ";")) (if_statement "if ((*(byte *)(lVar3 + 0x1b5) & 2) != 0) {\n    if ((*(byte *)((long)param_1 + 0x13c) & 4) != 0) {\n      if ((long *)param_1[1] == (long *)0x0) {\n        *(long *)(lVar3 + 0x40) = *param_1;\n      }\n      else {\n        *(long *)param_1[1] = *param_1;\n      }\n      if (*param_1 == 0) {\n        *(long *)(lVar3 + 0x48) = param_1[1];\n      }\n      else {\n        *(long *)(*param_1 + 8) = param_1[1];\n      }\n      *param_1 = 0;\n      param_1[1] = 0;\n      *(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) & 0xfffffffb;\n    }\n    if ((*(byte *)((long)param_1 + 0x13c) & 8) != 0) {\n      iVar2 = epoll_ctl(*(int *)(lVar3 + 0x180),2,(int)param_1[0x26],(epoll_event *)0x0);\n      if (iVar2 != 0) {\n        (*DAT_00120070)(DAT_00120068,"daemon.c",0xab1,"Failed to remove FD from epoll set\n");\n        goto LAB_0010c593;\n      }\n      *(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) & 0xfffffff7;\n    }\n    *(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) | 0x10;\n  }" (if "if") (parenthesized_expression "((*(byte *)(lVar3 + 0x1b5) & 2) != 0)" (( "(") (binary_expression "(*(byte *)(lVar3 + 0x1b5) & 2) != 0" (parenthesized_expression "(*(byte *)(lVar3 + 0x1b5) & 2)" (( "(") (binary_expression "*(byte *)(lVar3 + 0x1b5) & 2" (pointer_expression "*(byte *)(lVar3 + 0x1b5)" (* "*") (cast_expression "(byte *)(lVar3 + 0x1b5)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar3 + 0x1b5)" (( "(") (binary_expression "lVar3 + 0x1b5" (identifier "lVar3") (+ "+") (number_literal "0x1b5")) () ")")))) (& "&") (number_literal "2")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if ((*(byte *)((long)param_1 + 0x13c) & 4) != 0) {\n      if ((long *)param_1[1] == (long *)0x0) {\n        *(long *)(lVar3 + 0x40) = *param_1;\n      }\n      else {\n        *(long *)param_1[1] = *param_1;\n      }\n      if (*param_1 == 0) {\n        *(long *)(lVar3 + 0x48) = param_1[1];\n      }\n      else {\n        *(long *)(*param_1 + 8) = param_1[1];\n      }\n      *param_1 = 0;\n      param_1[1] = 0;\n      *(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) & 0xfffffffb;\n    }\n    if ((*(byte *)((long)param_1 + 0x13c) & 8) != 0) {\n      iVar2 = epoll_ctl(*(int *)(lVar3 + 0x180),2,(int)param_1[0x26],(epoll_event *)0x0);\n      if (iVar2 != 0) {\n        (*DAT_00120070)(DAT_00120068,"daemon.c",0xab1,"Failed to remove FD from epoll set\n");\n        goto LAB_0010c593;\n      }\n      *(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) & 0xfffffff7;\n    }\n    *(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) | 0x10;\n  }" ({ "{") (if_statement "if ((*(byte *)((long)param_1 + 0x13c) & 4) != 0) {\n      if ((long *)param_1[1] == (long *)0x0) {\n        *(long *)(lVar3 + 0x40) = *param_1;\n      }\n      else {\n        *(long *)param_1[1] = *param_1;\n      }\n      if (*param_1 == 0) {\n        *(long *)(lVar3 + 0x48) = param_1[1];\n      }\n      else {\n        *(long *)(*param_1 + 8) = param_1[1];\n      }\n      *param_1 = 0;\n      param_1[1] = 0;\n      *(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) & 0xfffffffb;\n    }" (if "if") (parenthesized_expression "((*(byte *)((long)param_1 + 0x13c) & 4) != 0)" (( "(") (binary_expression "(*(byte *)((long)param_1 + 0x13c) & 4) != 0" (parenthesized_expression "(*(byte *)((long)param_1 + 0x13c) & 4)" (( "(") (binary_expression "*(byte *)((long)param_1 + 0x13c) & 4" (pointer_expression "*(byte *)((long)param_1 + 0x13c)" (* "*") (cast_expression "(byte *)((long)param_1 + 0x13c)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0x13c)" (( "(") (binary_expression "(long)param_1 + 0x13c" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0x13c")) () ")")))) (& "&") (number_literal "4")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      if ((long *)param_1[1] == (long *)0x0) {\n        *(long *)(lVar3 + 0x40) = *param_1;\n      }\n      else {\n        *(long *)param_1[1] = *param_1;\n      }\n      if (*param_1 == 0) {\n        *(long *)(lVar3 + 0x48) = param_1[1];\n      }\n      else {\n        *(long *)(*param_1 + 8) = param_1[1];\n      }\n      *param_1 = 0;\n      param_1[1] = 0;\n      *(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) & 0xfffffffb;\n    }" ({ "{") (if_statement "if ((long *)param_1[1] == (long *)0x0) {\n        *(long *)(lVar3 + 0x40) = *param_1;\n      }\n      else {\n        *(long *)param_1[1] = *param_1;\n      }" (if "if") (parenthesized_expression "((long *)param_1[1] == (long *)0x0)" (( "(") (binary_expression "(long *)param_1[1] == (long *)0x0" (cast_expression "(long *)param_1[1]" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (== "==") (cast_expression "(long *)0x0" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        *(long *)(lVar3 + 0x40) = *param_1;\n      }" ({ "{") (expression_statement "*(long *)(lVar3 + 0x40) = *param_1;" (assignment_expression "*(long *)(lVar3 + 0x40) = *param_1" (pointer_expression "*(long *)(lVar3 + 0x40)" (* "*") (cast_expression "(long *)(lVar3 + 0x40)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar3 + 0x40)" (( "(") (binary_expression "lVar3 + 0x40" (identifier "lVar3") (+ "+") (number_literal "0x40")) () ")")))) (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (} "}")) (else_clause "else {\n        *(long *)param_1[1] = *param_1;\n      }" (else "else") (compound_statement "{\n        *(long *)param_1[1] = *param_1;\n      }" ({ "{") (expression_statement "*(long *)param_1[1] = *param_1;" (assignment_expression "*(long *)param_1[1] = *param_1" (pointer_expression "*(long *)param_1[1]" (* "*") (cast_expression "(long *)param_1[1]" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (} "}")))) (if_statement "if (*param_1 == 0) {\n        *(long *)(lVar3 + 0x48) = param_1[1];\n      }\n      else {\n        *(long *)(*param_1 + 8) = param_1[1];\n      }" (if "if") (parenthesized_expression "(*param_1 == 0)" (( "(") (binary_expression "*param_1 == 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        *(long *)(lVar3 + 0x48) = param_1[1];\n      }" ({ "{") (expression_statement "*(long *)(lVar3 + 0x48) = param_1[1];" (assignment_expression "*(long *)(lVar3 + 0x48) = param_1[1]" (pointer_expression "*(long *)(lVar3 + 0x48)" (* "*") (cast_expression "(long *)(lVar3 + 0x48)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar3 + 0x48)" (( "(") (binary_expression "lVar3 + 0x48" (identifier "lVar3") (+ "+") (number_literal "0x48")) () ")")))) (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (} "}")) (else_clause "else {\n        *(long *)(*param_1 + 8) = param_1[1];\n      }" (else "else") (compound_statement "{\n        *(long *)(*param_1 + 8) = param_1[1];\n      }" ({ "{") (expression_statement "*(long *)(*param_1 + 8) = param_1[1];" (assignment_expression "*(long *)(*param_1 + 8) = param_1[1]" (pointer_expression "*(long *)(*param_1 + 8)" (* "*") (cast_expression "(long *)(*param_1 + 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 8)" (( "(") (binary_expression "*param_1 + 8" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "8")) () ")")))) (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (} "}")))) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) & 0xfffffffb;" (assignment_expression "*(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) & 0xfffffffb" (pointer_expression "*(uint *)((long)param_1 + 0x13c)" (* "*") (cast_expression "(uint *)((long)param_1 + 0x13c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0x13c)" (( "(") (binary_expression "(long)param_1 + 0x13c" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0x13c")) () ")")))) (= "=") (binary_expression "*(uint *)((long)param_1 + 0x13c) & 0xfffffffb" (pointer_expression "*(uint *)((long)param_1 + 0x13c)" (* "*") (cast_expression "(uint *)((long)param_1 + 0x13c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0x13c)" (( "(") (binary_expression "(long)param_1 + 0x13c" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0x13c")) () ")")))) (& "&") (number_literal "0xfffffffb"))) (; ";")) (} "}"))) (if_statement "if ((*(byte *)((long)param_1 + 0x13c) & 8) != 0) {\n      iVar2 = epoll_ctl(*(int *)(lVar3 + 0x180),2,(int)param_1[0x26],(epoll_event *)0x0);\n      if (iVar2 != 0) {\n        (*DAT_00120070)(DAT_00120068,"daemon.c",0xab1,"Failed to remove FD from epoll set\n");\n        goto LAB_0010c593;\n      }\n      *(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) & 0xfffffff7;\n    }" (if "if") (parenthesized_expression "((*(byte *)((long)param_1 + 0x13c) & 8) != 0)" (( "(") (binary_expression "(*(byte *)((long)param_1 + 0x13c) & 8) != 0" (parenthesized_expression "(*(byte *)((long)param_1 + 0x13c) & 8)" (( "(") (binary_expression "*(byte *)((long)param_1 + 0x13c) & 8" (pointer_expression "*(byte *)((long)param_1 + 0x13c)" (* "*") (cast_expression "(byte *)((long)param_1 + 0x13c)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0x13c)" (( "(") (binary_expression "(long)param_1 + 0x13c" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0x13c")) () ")")))) (& "&") (number_literal "8")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      iVar2 = epoll_ctl(*(int *)(lVar3 + 0x180),2,(int)param_1[0x26],(epoll_event *)0x0);\n      if (iVar2 != 0) {\n        (*DAT_00120070)(DAT_00120068,"daemon.c",0xab1,"Failed to remove FD from epoll set\n");\n        goto LAB_0010c593;\n      }\n      *(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) & 0xfffffff7;\n    }" ({ "{") (expression_statement "iVar2 = epoll_ctl(*(int *)(lVar3 + 0x180),2,(int)param_1[0x26],(epoll_event *)0x0);" (assignment_expression "iVar2 = epoll_ctl(*(int *)(lVar3 + 0x180),2,(int)param_1[0x26],(epoll_event *)0x0)" (identifier "iVar2") (= "=") (call_expression "epoll_ctl(*(int *)(lVar3 + 0x180),2,(int)param_1[0x26],(epoll_event *)0x0)" (identifier "epoll_ctl") (argument_list "(*(int *)(lVar3 + 0x180),2,(int)param_1[0x26],(epoll_event *)0x0)" (( "(") (pointer_expression "*(int *)(lVar3 + 0x180)" (* "*") (cast_expression "(int *)(lVar3 + 0x180)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar3 + 0x180)" (( "(") (binary_expression "lVar3 + 0x180" (identifier "lVar3") (+ "+") (number_literal "0x180")) () ")")))) (, ",") (number_literal "2") (, ",") (cast_expression "(int)param_1[0x26]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "param_1[0x26]" (identifier "param_1") ([ "[") (number_literal "0x26") (] "]"))) (, ",") (cast_expression "(epoll_event *)0x0" (( "(") (type_descriptor "epoll_event *" (type_identifier "epoll_event") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n        (*DAT_00120070)(DAT_00120068,"daemon.c",0xab1,"Failed to remove FD from epoll set\n");\n        goto LAB_0010c593;\n      }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        (*DAT_00120070)(DAT_00120068,"daemon.c",0xab1,"Failed to remove FD from epoll set\n");\n        goto LAB_0010c593;\n      }" ({ "{") (expression_statement "(*DAT_00120070)(DAT_00120068,"daemon.c",0xab1,"Failed to remove FD from epoll set\n");" (call_expression "(*DAT_00120070)(DAT_00120068,"daemon.c",0xab1,"Failed to remove FD from epoll set\n")" (parenthesized_expression "(*DAT_00120070)" (( "(") (pointer_expression "*DAT_00120070" (* "*") (identifier "DAT_00120070")) () ")")) (argument_list "(DAT_00120068,"daemon.c",0xab1,"Failed to remove FD from epoll set\n")" (( "(") (identifier "DAT_00120068") (, ",") (string_literal ""daemon.c"" (" """) (string_content "daemon.c") (" """)) (, ",") (number_literal "0xab1") (, ",") (string_literal ""Failed to remove FD from epoll set\n"" (" """) (string_content "Failed to remove FD from epoll set") (escape_sequence "\n") (" """)) () ")"))) (; ";")) (goto_statement "goto LAB_0010c593;" (goto "goto") (statement_identifier "LAB_0010c593") (; ";")) (} "}"))) (expression_statement "*(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) & 0xfffffff7;" (assignment_expression "*(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) & 0xfffffff7" (pointer_expression "*(uint *)((long)param_1 + 0x13c)" (* "*") (cast_expression "(uint *)((long)param_1 + 0x13c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0x13c)" (( "(") (binary_expression "(long)param_1 + 0x13c" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0x13c")) () ")")))) (= "=") (binary_expression "*(uint *)((long)param_1 + 0x13c) & 0xfffffff7" (pointer_expression "*(uint *)((long)param_1 + 0x13c)" (* "*") (cast_expression "(uint *)((long)param_1 + 0x13c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0x13c)" (( "(") (binary_expression "(long)param_1 + 0x13c" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0x13c")) () ")")))) (& "&") (number_literal "0xfffffff7"))) (; ";")) (} "}"))) (expression_statement "*(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) | 0x10;" (assignment_expression "*(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) | 0x10" (pointer_expression "*(uint *)((long)param_1 + 0x13c)" (* "*") (cast_expression "(uint *)((long)param_1 + 0x13c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0x13c)" (( "(") (binary_expression "(long)param_1 + 0x13c" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0x13c")) () ")")))) (= "=") (binary_expression "*(uint *)((long)param_1 + 0x13c) | 0x10" (pointer_expression "*(uint *)((long)param_1 + 0x13c)" (* "*") (cast_expression "(uint *)((long)param_1 + 0x13c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0x13c)" (( "(") (binary_expression "(long)param_1 + 0x13c" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0x13c")) () ")")))) (| "|") (number_literal "0x10"))) (; ";")) (} "}"))) (expression_statement "iVar2 = pthread_mutex_unlock(__mutex);" (assignment_expression "iVar2 = pthread_mutex_unlock(__mutex)" (identifier "iVar2") (= "=") (call_expression "pthread_mutex_unlock(__mutex)" (identifier "pthread_mutex_unlock") (argument_list "(__mutex)" (( "(") (identifier "__mutex") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n    return;\n  }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (labeled_statement "LAB_0010c593:\n  lVar3 = DAT_00120068;" (statement_identifier "LAB_0010c593") (: ":") (expression_statement "lVar3 = DAT_00120068;" (assignment_expression "lVar3 = DAT_00120068" (identifier "lVar3") (= "=") (identifier "DAT_00120068")) (; ";"))) (expression_statement "(*DAT_00120070)(DAT_00120068,"daemon.c",0xab8,"Failed to unlock mutex.\n");" (call_expression "(*DAT_00120070)(DAT_00120068,"daemon.c",0xab8,"Failed to unlock mutex.\n")" (parenthesized_expression "(*DAT_00120070)" (( "(") (pointer_expression "*DAT_00120070" (* "*") (identifier "DAT_00120070")) () ")")) (argument_list "(DAT_00120068,"daemon.c",0xab8,"Failed to unlock mutex.\n")" (( "(") (identifier "DAT_00120068") (, ",") (string_literal ""daemon.c"" (" """) (string_content "daemon.c") (" """)) (, ",") (number_literal "0xab8") (, ",") (string_literal ""Failed to unlock mutex.\n"" (" """) (string_content "Failed to unlock mutex.") (escape_sequence "\n") (" """)) () ")"))) (; ";")) (if_statement "if ((*(byte *)(*(long *)(lVar3 + 0x30) + 0x1b5) & 0x20) == 0) {\n    (*DAT_00120070)(DAT_00120068,"daemon.c",0xae2,\n                    "Cannot suspend connections without enabling MHD_ALLOW_SUSPEND_RESUME!\n");\n  }\n  else if (*(long *)(lVar3 + 0x170) != 0) {\n    FUN_00110c11(*(long *)(lVar3 + 0x30),\n                 "Error: connection scheduled for \"upgrade\" cannot be suspended");\n    return;\n  }" (if "if") (parenthesized_expression "((*(byte *)(*(long *)(lVar3 + 0x30) + 0x1b5) & 0x20) == 0)" (( "(") (binary_expression "(*(byte *)(*(long *)(lVar3 + 0x30) + 0x1b5) & 0x20) == 0" (parenthesized_expression "(*(byte *)(*(long *)(lVar3 + 0x30) + 0x1b5) & 0x20)" (( "(") (binary_expression "*(byte *)(*(long *)(lVar3 + 0x30) + 0x1b5) & 0x20" (pointer_expression "*(byte *)(*(long *)(lVar3 + 0x30) + 0x1b5)" (* "*") (cast_expression "(byte *)(*(long *)(lVar3 + 0x30) + 0x1b5)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(lVar3 + 0x30) + 0x1b5)" (( "(") (binary_expression "*(long *)(lVar3 + 0x30) + 0x1b5" (pointer_expression "*(long *)(lVar3 + 0x30)" (* "*") (cast_expression "(long *)(lVar3 + 0x30)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar3 + 0x30)" (( "(") (binary_expression "lVar3 + 0x30" (identifier "lVar3") (+ "+") (number_literal "0x30")) () ")")))) (+ "+") (number_literal "0x1b5")) () ")")))) (& "&") (number_literal "0x20")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    (*DAT_00120070)(DAT_00120068,"daemon.c",0xae2,\n                    "Cannot suspend connections without enabling MHD_ALLOW_SUSPEND_RESUME!\n");\n  }" ({ "{") (expression_statement "(*DAT_00120070)(DAT_00120068,"daemon.c",0xae2,\n                    "Cannot suspend connections without enabling MHD_ALLOW_SUSPEND_RESUME!\n");" (call_expression "(*DAT_00120070)(DAT_00120068,"daemon.c",0xae2,\n                    "Cannot suspend connections without enabling MHD_ALLOW_SUSPEND_RESUME!\n")" (parenthesized_expression "(*DAT_00120070)" (( "(") (pointer_expression "*DAT_00120070" (* "*") (identifier "DAT_00120070")) () ")")) (argument_list "(DAT_00120068,"daemon.c",0xae2,\n                    "Cannot suspend connections without enabling MHD_ALLOW_SUSPEND_RESUME!\n")" (( "(") (identifier "DAT_00120068") (, ",") (string_literal ""daemon.c"" (" """) (string_content "daemon.c") (" """)) (, ",") (number_literal "0xae2") (, ",") (string_literal ""Cannot suspend connections without enabling MHD_ALLOW_SUSPEND_RESUME!\n"" (" """) (string_content "Cannot suspend connections without enabling MHD_ALLOW_SUSPEND_RESUME!") (escape_sequence "\n") (" """)) () ")"))) (; ";")) (} "}")) (else_clause "else if (*(long *)(lVar3 + 0x170) != 0) {\n    FUN_00110c11(*(long *)(lVar3 + 0x30),\n                 "Error: connection scheduled for \"upgrade\" cannot be suspended");\n    return;\n  }" (else "else") (if_statement "if (*(long *)(lVar3 + 0x170) != 0) {\n    FUN_00110c11(*(long *)(lVar3 + 0x30),\n                 "Error: connection scheduled for \"upgrade\" cannot be suspended");\n    return;\n  }" (if "if") (parenthesized_expression "(*(long *)(lVar3 + 0x170) != 0)" (( "(") (binary_expression "*(long *)(lVar3 + 0x170) != 0" (pointer_expression "*(long *)(lVar3 + 0x170)" (* "*") (cast_expression "(long *)(lVar3 + 0x170)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar3 + 0x170)" (( "(") (binary_expression "lVar3 + 0x170" (identifier "lVar3") (+ "+") (number_literal "0x170")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_00110c11(*(long *)(lVar3 + 0x30),\n                 "Error: connection scheduled for \"upgrade\" cannot be suspended");\n    return;\n  }" ({ "{") (expression_statement "FUN_00110c11(*(long *)(lVar3 + 0x30),\n                 "Error: connection scheduled for \"upgrade\" cannot be suspended");" (call_expression "FUN_00110c11(*(long *)(lVar3 + 0x30),\n                 "Error: connection scheduled for \"upgrade\" cannot be suspended")" (identifier "FUN_00110c11") (argument_list "(*(long *)(lVar3 + 0x30),\n                 "Error: connection scheduled for \"upgrade\" cannot be suspended")" (( "(") (pointer_expression "*(long *)(lVar3 + 0x30)" (* "*") (cast_expression "(long *)(lVar3 + 0x30)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar3 + 0x30)" (( "(") (binary_expression "lVar3 + 0x30" (identifier "lVar3") (+ "+") (number_literal "0x30")) () ")")))) (, ",") (string_literal ""Error: connection scheduled for \"upgrade\" cannot be suspended"" (" """) (string_content "Error: connection scheduled for ") (escape_sequence "\"") (string_content "upgrade") (escape_sequence "\"") (string_content " cannot be suspended") (" """)) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))))) (expression_statement "FUN_0010c2fa();" (call_expression "FUN_0010c2fa()" (identifier "FUN_0010c2fa") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Enum "MHD_FLAG": Some values do not have unique names */
/* WARNING: Enum "gnutls_pk_algorithm_t": Some values do not have unique names */
/* WARNING: Enum "gnutls_certificate_type_t": Some values do not have unique names */

void function_1(type_1 *connection)

{
  type_2 *__mutex;
  type_3 *pMVar1;
  int var_2;
  type_1 *pMVar3;
  
  pMVar1 = connection->daemon;
  __mutex = &pMVar1->cleanup_connection_mutex;
  var_2 = var_1((type_4 *)__mutex);
  if (var_2 == 0) {
    if (connection->resuming != false) goto LAB_0010c474;
    if ((pMVar1->options & var_3) == var_4) {
      if (connection->connection_timeout != pMVar1->connection_timeout) {
        if (connection->prevX == (type_1 *)0x0) {
          pMVar1->manual_timeout_head = connection->nextX;
        }
        else {
          connection->prevX->nextX = connection->nextX;
        }
        if (connection->nextX == (type_1 *)0x0) {
          pMVar1->manual_timeout_tail = connection->prevX;
        }
        else {
          connection->nextX->prevX = connection->prevX;
        }
        connection->nextX = (type_1 *)0x0;
        connection->prevX = (type_1 *)0x0;
        goto LAB_0010c380;
      }
      goto LAB_0010c4a7;
    }
  }
  else {
    (*mhd_panic)(mhd_panic_cls,"daemon.c",0xa83,"Failed to lock mutex.\n");
LAB_0010c474:
    connection->resuming = false;
    var_2 = var_5((type_4 *)__mutex);
    if (var_2 == 0) {
      return;
    }
    (*mhd_panic)(mhd_panic_cls,"daemon.c",0xa8a,"Failed to unlock mutex.\n");
LAB_0010c4a7:
    if (connection->prevX == (type_1 *)0x0) {
      pMVar1->normal_timeout_head = connection->nextX;
    }
    else {
      connection->prevX->nextX = connection->nextX;
    }
    if (connection->nextX == (type_1 *)0x0) {
      pMVar1->normal_timeout_tail = connection->prevX;
    }
    else {
      connection->nextX->prevX = connection->prevX;
    }
    connection->nextX = (type_1 *)0x0;
    connection->prevX = (type_1 *)0x0;
  }
LAB_0010c380:
  if (connection->prev == (type_1 *)0x0) {
    pMVar1->connections_head = connection->next;
  }
  else {
    connection->prev->next = connection->next;
  }
  if (connection->next == (type_1 *)0x0) {
    pMVar1->connections_tail = connection->prev;
  }
  else {
    connection->next->prev = connection->prev;
  }
  connection->next = (type_1 *)0x0;
  connection->prev = (type_1 *)0x0;
  pMVar3 = pMVar1->suspended_connections_head;
  connection->next = pMVar3;
  if (pMVar1->suspended_connections_tail == (type_1 *)0x0) {
    pMVar1->suspended_connections_tail = connection;
  }
  else {
    pMVar3->prev = connection;
  }
  pMVar1->suspended_connections_head = connection;
  connection->suspended = true;
  if ((pMVar1->options & var_6) != var_4) {
    if ((connection->epoll_state & var_7) != var_8) {
      if (connection->prevE == (type_1 *)0x0) {
        pMVar1->eready_head = connection->nextE;
      }
      else {
        connection->prevE->nextE = connection->nextE;
      }
      if (connection->nextE == (type_1 *)0x0) {
        pMVar1->eready_tail = connection->prevE;
      }
      else {
        connection->nextE->prevE = connection->prevE;
      }
      connection->nextE = (type_1 *)0x0;
      connection->prevE = (type_1 *)0x0;
      connection->epoll_state = connection->epoll_state & ~var_7;
    }
    if ((connection->epoll_state & var_9) != var_8) {
      var_2 = var_10(pMVar1->epoll_fd,2,connection->socket_fd,(type_5 *)0x0);
      if (var_2 != 0) {
        (*mhd_panic)(mhd_panic_cls,"daemon.c",0xab1,"Failed to remove FD from epoll set\n");
        goto LAB_0010c593;
      }
      connection->epoll_state = connection->epoll_state & ~var_9;
    }
    connection->epoll_state = connection->epoll_state | var_11;
  }
  var_2 = var_5((type_4 *)__mutex);
  if (var_2 == 0) {
    return;
  }
LAB_0010c593:
  pMVar3 = (type_1 *)mhd_panic_cls;
  (*mhd_panic)(mhd_panic_cls,"daemon.c",0xab8,"Failed to unlock mutex.\n");
  if ((pMVar3->daemon->options & 0x2000) == var_4) {
    pMVar3 = (type_1 *)mhd_panic_cls;
    (*mhd_panic)(mhd_panic_cls,"daemon.c",0xae2,
                 "Cannot suspend connections without enabling MHD_ALLOW_SUSPEND_RESUME!\n");
  }
  else if (pMVar3->urh != (type_6 *)0x0) {
    var_12(pMVar3->daemon,"Error: connection scheduled for \"upgrade\" cannot be suspended");
    return;
  }
  function_1(pMVar3);
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))) right: (char_literal (escape_sequence)))) consequence: (goto_statement label: (statement_identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (subscript_expression argument: (identifier) index: (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))) right: (subscript_expression argument: (identifier) index: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (subscript_expression argument: (identifier) index: (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))) right: (subscript_expression argument: (identifier) index: (number_literal))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (goto_statement label: (statement_identifier)))) (goto_statement label: (statement_identifier))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier) (string_literal (string_content)) (number_literal) (string_literal (string_content) (escape_sequence))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier) (string_literal (string_content)) (number_literal) (string_literal (string_content) (escape_sequence))))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (subscript_expression argument: (identifier) index: (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))) right: (subscript_expression argument: (identifier) index: (number_literal)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (subscript_expression argument: (identifier) index: (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))) right: (subscript_expression argument: (identifier) index: (number_literal))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (subscript_expression argument: (identifier) index: (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))) right: (subscript_expression argument: (identifier) index: (number_literal)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (subscript_expression argument: (identifier) index: (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))) right: (subscript_expression argument: (identifier) index: (number_literal))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (pointer_expression argument: (identifier))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal)))) right: (pointer_expression argument: (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (subscript_expression argument: (identifier) index: (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))) right: (subscript_expression argument: (identifier) index: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (number_literal) (cast_expression type: (type_descriptor type: (primitive_type)) value: (subscript_expression argument: (identifier) index: (number_literal))) (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier) (string_literal (string_content)) (number_literal) (string_literal (string_content) (escape_sequence))))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))) right: (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier) (string_literal (string_content)) (number_literal) (string_literal (string_content) (escape_sequence))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier) (string_literal (string_content)) (number_literal) (string_literal (string_content) (escape_sequence)))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (string_literal (string_content) (escape_sequence) (string_content) (escape_sequence) (string_content))))) (return_statement))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (return_statement))))

void MASKED(long *param_1)

{
  pthread_mutex_t *__mutex;
  long lVar1;
  int iVar2;
  long lVar3;
  
  lVar3 = param_1[6];
  __mutex = (pthread_mutex_t *)(lVar3 + 0x150);
  iVar2 = pthread_mutex_lock(__mutex);
  if (iVar2 == 0) {
    if (*(char *)((long)param_1 + 0x194) != '\0') goto LAB_0010c474;
    if ((*(byte *)(lVar3 + 0x1b4) & 4) == 0) {
      if (param_1[0x24] != *(long *)(lVar3 + 0x1a8)) {
        if (param_1[5] == 0) {
          *(long *)(lVar3 + 0x70) = param_1[4];
        }
        else {
          *(long *)(param_1[5] + 0x20) = param_1[4];
        }
        if (param_1[4] == 0) {
          *(long *)(lVar3 + 0x78) = param_1[5];
        }
        else {
          *(long *)(param_1[4] + 0x28) = param_1[5];
        }
        param_1[4] = 0;
        param_1[5] = 0;
        goto LAB_0010c380;
      }
      goto LAB_0010c4a7;
    }
  }
  else {
    (*DAT_00120070)(DAT_00120068,"daemon.c",0xa83,"Failed to lock mutex.\n");
LAB_0010c474:
    *(undefined1 *)((long)param_1 + 0x194) = 0;
    iVar2 = pthread_mutex_unlock(__mutex);
    if (iVar2 == 0) {
      return;
    }
    (*DAT_00120070)(DAT_00120068,"daemon.c",0xa8a,"Failed to unlock mutex.\n");
LAB_0010c4a7:
    if (param_1[5] == 0) {
      *(long *)(lVar3 + 0x60) = param_1[4];
    }
    else {
      *(long *)(param_1[5] + 0x20) = param_1[4];
    }
    if (param_1[4] == 0) {
      *(long *)(lVar3 + 0x68) = param_1[5];
    }
    else {
      *(long *)(param_1[4] + 0x28) = param_1[5];
    }
    param_1[4] = 0;
    param_1[5] = 0;
  }
LAB_0010c380:
  if (param_1[3] == 0) {
    *(long *)(lVar3 + 0x10) = param_1[2];
  }
  else {
    *(long *)(param_1[3] + 0x10) = param_1[2];
  }
  if (param_1[2] == 0) {
    *(long *)(lVar3 + 0x18) = param_1[3];
  }
  else {
    *(long *)(param_1[2] + 0x18) = param_1[3];
  }
  param_1[2] = 0;
  param_1[3] = 0;
  lVar1 = *(long *)(lVar3 + 0x20);
  param_1[2] = lVar1;
  if (*(long *)(lVar3 + 0x28) == 0) {
    *(long **)(lVar3 + 0x28) = param_1;
  }
  else {
    *(long **)(lVar1 + 0x18) = param_1;
  }
  *(long **)(lVar3 + 0x20) = param_1;
  *(undefined1 *)((long)param_1 + 0x18d) = 1;
  if ((*(byte *)(lVar3 + 0x1b5) & 2) != 0) {
    if ((*(byte *)((long)param_1 + 0x13c) & 4) != 0) {
      if ((long *)param_1[1] == (long *)0x0) {
        *(long *)(lVar3 + 0x40) = *param_1;
      }
      else {
        *(long *)param_1[1] = *param_1;
      }
      if (*param_1 == 0) {
        *(long *)(lVar3 + 0x48) = param_1[1];
      }
      else {
        *(long *)(*param_1 + 8) = param_1[1];
      }
      *param_1 = 0;
      param_1[1] = 0;
      *(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) & 0xfffffffb;
    }
    if ((*(byte *)((long)param_1 + 0x13c) & 8) != 0) {
      iVar2 = epoll_ctl(*(int *)(lVar3 + 0x180),2,(int)param_1[0x26],(epoll_event *)0x0);
      if (iVar2 != 0) {
        (*DAT_00120070)(DAT_00120068,"daemon.c",0xab1,"Failed to remove FD from epoll set\n");
        goto LAB_0010c593;
      }
      *(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) & 0xfffffff7;
    }
    *(uint *)((long)param_1 + 0x13c) = *(uint *)((long)param_1 + 0x13c) | 0x10;
  }
  iVar2 = pthread_mutex_unlock(__mutex);
  if (iVar2 == 0) {
    return;
  }
LAB_0010c593:
  lVar3 = DAT_00120068;
  (*DAT_00120070)(DAT_00120068,"daemon.c",0xab8,"Failed to unlock mutex.\n");
  if ((*(byte *)(*(long *)(lVar3 + 0x30) + 0x1b5) & 0x20) == 0) {
    (*DAT_00120070)(DAT_00120068,"daemon.c",0xae2,
                    "Cannot suspend connections without enabling MHD_ALLOW_SUSPEND_RESUME!\n");
  }
  else if (*(long *)(lVar3 + 0x170) != 0) {
    FUN_00110c11(*(long *)(lVar3 + 0x30),
                 "Error: connection scheduled for \"upgrade\" cannot be suspended");
    return;
  }
  MASKED();
  return;
}

