
/* 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 */

int setup_epoll_to_listen(MHD_Daemon *daemon)

{
  long lVar1;
  int iVar2;
  int iVar3;
  int *piVar4;
  char *pcVar5;
  long in_FS_OFFSET;
  epoll_event event;
  
  lVar1 = *(long *)(in_FS_OFFSET + 0x28);
  iVar2 = setup_epoll_fd(daemon);
  daemon->epoll_fd = iVar2;
  iVar3 = 0;
  if (iVar2 != -1) {
    if ((daemon->options & MHD_ALLOW_UPGRADE) != MHD_NO_FLAG) {
      iVar2 = setup_epoll_fd(daemon);
      daemon->epoll_upgrade_fd = iVar2;
      if (iVar2 == -1) goto LAB_0010ad2f;
    }
    iVar3 = 1;
    if ((daemon->listen_fd != -1) && (daemon->was_quiesced == false)) {
      event.events = 1;
      event.data = (epoll_data_t)daemon;
      iVar3 = epoll_ctl(daemon->epoll_fd,1,daemon->listen_fd,(epoll_event *)&event);
      if (iVar3 == 0) {
        daemon->listen_socket_in_epoll = true;
        iVar3 = (daemon->itc).fd;
        if (iVar3 == -1) {
          iVar3 = 1;
        }
        else {
          event.events = 1;
          event.data.ptr = s_itc_marker_00119071;
          iVar3 = epoll_ctl(daemon->epoll_fd,1,iVar3,(epoll_event *)&event);
          if (iVar3 == 0) {
            iVar3 = 1;
          }
          else {
            piVar4 = __errno_location();
            pcVar5 = strerror(*piVar4);
            MHD_DLOG(daemon,"Call to epoll_ctl failed: %s\n",pcVar5);
            iVar3 = 0;
          }
        }
      }
      else {
        piVar4 = __errno_location();
        pcVar5 = strerror(*piVar4);
        MHD_DLOG(daemon,"Call to epoll_ctl failed: %s\n",pcVar5);
        iVar3 = 0;
      }
    }
  }
LAB_0010ad2f:
  if (lVar1 != *(long *)(in_FS_OFFSET + 0x28)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
  return iVar3;
}



undefined4 FUN_0010acdd(char *param_1)

{
  int iVar1;
  int *piVar2;
  char *pcVar3;
  undefined4 uVar4;
  long in_FS_OFFSET;
  undefined1 local_2c [12];
  long local_20;
  
  local_20 = *(long *)(in_FS_OFFSET + 0x28);
  iVar1 = FUN_0010ac95();
  *(int *)(param_1 + 0x180) = iVar1;
  uVar4 = 0;
  if (iVar1 != -1) {
    if ((param_1[0x1b5] & 0x80U) != 0) {
      iVar1 = FUN_0010ac95(param_1);
      *(int *)(param_1 + 0x188) = iVar1;
      if (iVar1 == -1) goto LAB_0010ad2f;
    }
    uVar4 = 1;
    if ((*(int *)(param_1 + 0x178) != -1) && (param_1[0x195] == '\0')) {
      local_2c._0_4_ = 1;
      local_2c._4_8_ = param_1;
      iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 0x178),
                        (epoll_event *)local_2c);
      if (iVar1 == 0) {
        param_1[0x184] = '\x01';
        if (*(int *)(param_1 + 400) == -1) {
          uVar4 = 1;
        }
        else {
          local_2c._0_4_ = 1;
          local_2c._4_8_ = "itc_marker";
          iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 400),
                            (epoll_event *)local_2c);
          if (iVar1 == 0) {
            uVar4 = 1;
          }
          else {
            piVar2 = __errno_location();
            pcVar3 = strerror(*piVar2);
            FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);
            uVar4 = 0;
          }
        }
      }
      else {
        piVar2 = __errno_location();
        pcVar3 = strerror(*piVar2);
        FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);
        uVar4 = 0;
      }
    }
  }
LAB_0010ad2f:
  if (local_20 != *(long *)(in_FS_OFFSET + 0x28)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
  return uVar4;
}


PUSH RBP
PUSH RBX
SUB RSP,0x28
MOV RBX,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RSP + 0x18],RAX
XOR EAX,EAX
CALL 0x0010ac95
MOV dword ptr [RBX + 0x180],EAX
MOV EBP,0x0
CMP EAX,-0x1
JZ 0x0010ad2f
TEST byte ptr [RBX + 0x1b5],0x80
JNZ 0x0010ad4c
MOV EDX,dword ptr [RBX + 0x178]
MOV EBP,0x1
CMP EDX,-0x1
JZ 0x0010ad2f
MOVZX EAX,byte ptr [RBX + 0x195]
TEST AL,AL
JZ 0x0010ad61
MOV EAX,EBP
MOV RSI,qword ptr [RSP + 0x18]
XOR RSI,qword ptr FS:[0x28]
JNZ 0x0010ae2e
ADD RSP,0x28
POP RBX
POP RBP
RET
MOV RDI,RBX
CALL 0x0010ac95
MOV dword ptr [RBX + 0x188],EAX
CMP EAX,-0x1
JNZ 0x0010ad14
JMP 0x0010ad2f
MOV dword ptr [RSP + 0xc],0x1
MOV qword ptr [RSP + 0x10],RBX
LEA RCX,[RSP + 0xc]
MOV EDI,dword ptr [RBX + 0x180]
MOV ESI,0x1
CALL 0x00104310
MOV EBP,EAX
TEST EAX,EAX
JNZ 0x0010ada2
MOV byte ptr [RBX + 0x184],0x1
MOV EDX,dword ptr [RBX + 0x190]
CMP EDX,-0x1
JNZ 0x0010adcf
MOV EBP,0x1
JMP 0x0010ad2f
CALL 0x001040b0
MOV EDI,dword ptr [RAX]
CALL 0x00104720
MOV RDX,RAX
LEA RSI,[0x118121]
MOV RDI,RBX
MOV EAX,0x0
CALL 0x00110c11
MOV EBP,0x0
JMP 0x0010ad2f
MOV dword ptr [RSP + 0xc],0x1
LEA RAX,[0x119071]
MOV qword ptr [RSP + 0x10],RAX
LEA RCX,[RSP + 0xc]
MOV EDI,dword ptr [RBX + 0x180]
MOV ESI,0x1
CALL 0x00104310
TEST EAX,EAX
JNZ 0x0010ae06
MOV EBP,0x1
JMP 0x0010ad2f
CALL 0x001040b0
MOV EDI,dword ptr [RAX]
CALL 0x00104720
MOV RDX,RAX
LEA RSI,[0x118121]
MOV RDI,RBX
MOV EAX,0x0
CALL 0x00110c11
JMP 0x0010ad2f
CALL 0x001041b0
(translation_unit "undefined4 FUN_0010acdd(char *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  long in_FS_OFFSET;\n  undefined1 local_2c [12];\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  iVar1 = FUN_0010ac95();\n  *(int *)(param_1 + 0x180) = iVar1;\n  uVar4 = 0;\n  if (iVar1 != -1) {\n    if ((param_1[0x1b5] & 0x80U) != 0) {\n      iVar1 = FUN_0010ac95(param_1);\n      *(int *)(param_1 + 0x188) = iVar1;\n      if (iVar1 == -1) goto LAB_0010ad2f;\n    }\n    uVar4 = 1;\n    if ((*(int *)(param_1 + 0x178) != -1) && (param_1[0x195] == '\0')) {\n      local_2c._0_4_ = 1;\n      local_2c._4_8_ = param_1;\n      iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 0x178),\n                        (epoll_event *)local_2c);\n      if (iVar1 == 0) {\n        param_1[0x184] = '\x01';\n        if (*(int *)(param_1 + 400) == -1) {\n          uVar4 = 1;\n        }\n        else {\n          local_2c._0_4_ = 1;\n          local_2c._4_8_ = "itc_marker";\n          iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 400),\n                            (epoll_event *)local_2c);\n          if (iVar1 == 0) {\n            uVar4 = 1;\n          }\n          else {\n            piVar2 = __errno_location();\n            pcVar3 = strerror(*piVar2);\n            FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n            uVar4 = 0;\n          }\n        }\n      }\n      else {\n        piVar2 = __errno_location();\n        pcVar3 = strerror(*piVar2);\n        FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n        uVar4 = 0;\n      }\n    }\n  }\nLAB_0010ad2f:\n  if (local_20 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return uVar4;\n}\n\n" (function_definition "undefined4 FUN_0010acdd(char *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  long in_FS_OFFSET;\n  undefined1 local_2c [12];\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  iVar1 = FUN_0010ac95();\n  *(int *)(param_1 + 0x180) = iVar1;\n  uVar4 = 0;\n  if (iVar1 != -1) {\n    if ((param_1[0x1b5] & 0x80U) != 0) {\n      iVar1 = FUN_0010ac95(param_1);\n      *(int *)(param_1 + 0x188) = iVar1;\n      if (iVar1 == -1) goto LAB_0010ad2f;\n    }\n    uVar4 = 1;\n    if ((*(int *)(param_1 + 0x178) != -1) && (param_1[0x195] == '\0')) {\n      local_2c._0_4_ = 1;\n      local_2c._4_8_ = param_1;\n      iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 0x178),\n                        (epoll_event *)local_2c);\n      if (iVar1 == 0) {\n        param_1[0x184] = '\x01';\n        if (*(int *)(param_1 + 400) == -1) {\n          uVar4 = 1;\n        }\n        else {\n          local_2c._0_4_ = 1;\n          local_2c._4_8_ = "itc_marker";\n          iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 400),\n                            (epoll_event *)local_2c);\n          if (iVar1 == 0) {\n            uVar4 = 1;\n          }\n          else {\n            piVar2 = __errno_location();\n            pcVar3 = strerror(*piVar2);\n            FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n            uVar4 = 0;\n          }\n        }\n      }\n      else {\n        piVar2 = __errno_location();\n        pcVar3 = strerror(*piVar2);\n        FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n        uVar4 = 0;\n      }\n    }\n  }\nLAB_0010ad2f:\n  if (local_20 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return uVar4;\n}" type_identifier (function_declarator "FUN_0010acdd(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  long in_FS_OFFSET;\n  undefined1 local_2c [12];\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  iVar1 = FUN_0010ac95();\n  *(int *)(param_1 + 0x180) = iVar1;\n  uVar4 = 0;\n  if (iVar1 != -1) {\n    if ((param_1[0x1b5] & 0x80U) != 0) {\n      iVar1 = FUN_0010ac95(param_1);\n      *(int *)(param_1 + 0x188) = iVar1;\n      if (iVar1 == -1) goto LAB_0010ad2f;\n    }\n    uVar4 = 1;\n    if ((*(int *)(param_1 + 0x178) != -1) && (param_1[0x195] == '\0')) {\n      local_2c._0_4_ = 1;\n      local_2c._4_8_ = param_1;\n      iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 0x178),\n                        (epoll_event *)local_2c);\n      if (iVar1 == 0) {\n        param_1[0x184] = '\x01';\n        if (*(int *)(param_1 + 400) == -1) {\n          uVar4 = 1;\n        }\n        else {\n          local_2c._0_4_ = 1;\n          local_2c._4_8_ = "itc_marker";\n          iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 400),\n                            (epoll_event *)local_2c);\n          if (iVar1 == 0) {\n            uVar4 = 1;\n          }\n          else {\n            piVar2 = __errno_location();\n            pcVar3 = strerror(*piVar2);\n            FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n            uVar4 = 0;\n          }\n        }\n      }\n      else {\n        piVar2 = __errno_location();\n        pcVar3 = strerror(*piVar2);\n        FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n        uVar4 = 0;\n      }\n    }\n  }\nLAB_0010ad2f:\n  if (local_20 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return uVar4;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined1 local_2c [12];" type_identifier (array_declarator "local_2c [12]" identifier [ number_literal ]) ;) (declaration "long local_20;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_20 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_20 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = FUN_0010ac95();" (assignment_expression "iVar1 = FUN_0010ac95()" identifier = (call_expression "FUN_0010ac95()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(int *)(param_1 + 0x180) = iVar1;" (assignment_expression "*(int *)(param_1 + 0x180) = iVar1" (pointer_expression "*(int *)(param_1 + 0x180)" * (cast_expression "(int *)(param_1 + 0x180)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x180)" ( (binary_expression "param_1 + 0x180" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (if_statement "if (iVar1 != -1) {\n    if ((param_1[0x1b5] & 0x80U) != 0) {\n      iVar1 = FUN_0010ac95(param_1);\n      *(int *)(param_1 + 0x188) = iVar1;\n      if (iVar1 == -1) goto LAB_0010ad2f;\n    }\n    uVar4 = 1;\n    if ((*(int *)(param_1 + 0x178) != -1) && (param_1[0x195] == '\0')) {\n      local_2c._0_4_ = 1;\n      local_2c._4_8_ = param_1;\n      iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 0x178),\n                        (epoll_event *)local_2c);\n      if (iVar1 == 0) {\n        param_1[0x184] = '\x01';\n        if (*(int *)(param_1 + 400) == -1) {\n          uVar4 = 1;\n        }\n        else {\n          local_2c._0_4_ = 1;\n          local_2c._4_8_ = "itc_marker";\n          iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 400),\n                            (epoll_event *)local_2c);\n          if (iVar1 == 0) {\n            uVar4 = 1;\n          }\n          else {\n            piVar2 = __errno_location();\n            pcVar3 = strerror(*piVar2);\n            FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n            uVar4 = 0;\n          }\n        }\n      }\n      else {\n        piVar2 = __errno_location();\n        pcVar3 = strerror(*piVar2);\n        FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n        uVar4 = 0;\n      }\n    }\n  }" if (parenthesized_expression "(iVar1 != -1)" ( (binary_expression "iVar1 != -1" identifier != number_literal) )) (compound_statement "{\n    if ((param_1[0x1b5] & 0x80U) != 0) {\n      iVar1 = FUN_0010ac95(param_1);\n      *(int *)(param_1 + 0x188) = iVar1;\n      if (iVar1 == -1) goto LAB_0010ad2f;\n    }\n    uVar4 = 1;\n    if ((*(int *)(param_1 + 0x178) != -1) && (param_1[0x195] == '\0')) {\n      local_2c._0_4_ = 1;\n      local_2c._4_8_ = param_1;\n      iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 0x178),\n                        (epoll_event *)local_2c);\n      if (iVar1 == 0) {\n        param_1[0x184] = '\x01';\n        if (*(int *)(param_1 + 400) == -1) {\n          uVar4 = 1;\n        }\n        else {\n          local_2c._0_4_ = 1;\n          local_2c._4_8_ = "itc_marker";\n          iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 400),\n                            (epoll_event *)local_2c);\n          if (iVar1 == 0) {\n            uVar4 = 1;\n          }\n          else {\n            piVar2 = __errno_location();\n            pcVar3 = strerror(*piVar2);\n            FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n            uVar4 = 0;\n          }\n        }\n      }\n      else {\n        piVar2 = __errno_location();\n        pcVar3 = strerror(*piVar2);\n        FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n        uVar4 = 0;\n      }\n    }\n  }" { (if_statement "if ((param_1[0x1b5] & 0x80U) != 0) {\n      iVar1 = FUN_0010ac95(param_1);\n      *(int *)(param_1 + 0x188) = iVar1;\n      if (iVar1 == -1) goto LAB_0010ad2f;\n    }" if (parenthesized_expression "((param_1[0x1b5] & 0x80U) != 0)" ( (binary_expression "(param_1[0x1b5] & 0x80U) != 0" (parenthesized_expression "(param_1[0x1b5] & 0x80U)" ( (binary_expression "param_1[0x1b5] & 0x80U" (subscript_expression "param_1[0x1b5]" identifier [ number_literal ]) & number_literal) )) != number_literal) )) (compound_statement "{\n      iVar1 = FUN_0010ac95(param_1);\n      *(int *)(param_1 + 0x188) = iVar1;\n      if (iVar1 == -1) goto LAB_0010ad2f;\n    }" { (expression_statement "iVar1 = FUN_0010ac95(param_1);" (assignment_expression "iVar1 = FUN_0010ac95(param_1)" identifier = (call_expression "FUN_0010ac95(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "*(int *)(param_1 + 0x188) = iVar1;" (assignment_expression "*(int *)(param_1 + 0x188) = iVar1" (pointer_expression "*(int *)(param_1 + 0x188)" * (cast_expression "(int *)(param_1 + 0x188)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x188)" ( (binary_expression "param_1 + 0x188" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar1 == -1) goto LAB_0010ad2f;" if (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) )) (goto_statement "goto LAB_0010ad2f;" goto statement_identifier ;)) })) (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" identifier = number_literal) ;) (if_statement "if ((*(int *)(param_1 + 0x178) != -1) && (param_1[0x195] == '\0')) {\n      local_2c._0_4_ = 1;\n      local_2c._4_8_ = param_1;\n      iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 0x178),\n                        (epoll_event *)local_2c);\n      if (iVar1 == 0) {\n        param_1[0x184] = '\x01';\n        if (*(int *)(param_1 + 400) == -1) {\n          uVar4 = 1;\n        }\n        else {\n          local_2c._0_4_ = 1;\n          local_2c._4_8_ = "itc_marker";\n          iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 400),\n                            (epoll_event *)local_2c);\n          if (iVar1 == 0) {\n            uVar4 = 1;\n          }\n          else {\n            piVar2 = __errno_location();\n            pcVar3 = strerror(*piVar2);\n            FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n            uVar4 = 0;\n          }\n        }\n      }\n      else {\n        piVar2 = __errno_location();\n        pcVar3 = strerror(*piVar2);\n        FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n        uVar4 = 0;\n      }\n    }" if (parenthesized_expression "((*(int *)(param_1 + 0x178) != -1) && (param_1[0x195] == '\0'))" ( (binary_expression "(*(int *)(param_1 + 0x178) != -1) && (param_1[0x195] == '\0')" (parenthesized_expression "(*(int *)(param_1 + 0x178) != -1)" ( (binary_expression "*(int *)(param_1 + 0x178) != -1" (pointer_expression "*(int *)(param_1 + 0x178)" * (cast_expression "(int *)(param_1 + 0x178)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x178)" ( (binary_expression "param_1 + 0x178" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "(param_1[0x195] == '\0')" ( (binary_expression "param_1[0x195] == '\0'" (subscript_expression "param_1[0x195]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n      local_2c._0_4_ = 1;\n      local_2c._4_8_ = param_1;\n      iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 0x178),\n                        (epoll_event *)local_2c);\n      if (iVar1 == 0) {\n        param_1[0x184] = '\x01';\n        if (*(int *)(param_1 + 400) == -1) {\n          uVar4 = 1;\n        }\n        else {\n          local_2c._0_4_ = 1;\n          local_2c._4_8_ = "itc_marker";\n          iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 400),\n                            (epoll_event *)local_2c);\n          if (iVar1 == 0) {\n            uVar4 = 1;\n          }\n          else {\n            piVar2 = __errno_location();\n            pcVar3 = strerror(*piVar2);\n            FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n            uVar4 = 0;\n          }\n        }\n      }\n      else {\n        piVar2 = __errno_location();\n        pcVar3 = strerror(*piVar2);\n        FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n        uVar4 = 0;\n      }\n    }" { (expression_statement "local_2c._0_4_ = 1;" (assignment_expression "local_2c._0_4_ = 1" (field_expression "local_2c._0_4_" identifier . field_identifier) = number_literal) ;) (expression_statement "local_2c._4_8_ = param_1;" (assignment_expression "local_2c._4_8_ = param_1" (field_expression "local_2c._4_8_" identifier . field_identifier) = identifier) ;) (expression_statement "iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 0x178),\n                        (epoll_event *)local_2c);" (assignment_expression "iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 0x178),\n                        (epoll_event *)local_2c)" identifier = (call_expression "epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 0x178),\n                        (epoll_event *)local_2c)" identifier (argument_list "(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 0x178),\n                        (epoll_event *)local_2c)" ( (pointer_expression "*(int *)(param_1 + 0x180)" * (cast_expression "(int *)(param_1 + 0x180)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x180)" ( (binary_expression "param_1 + 0x180" identifier + number_literal) )))) , number_literal , (pointer_expression "*(int *)(param_1 + 0x178)" * (cast_expression "(int *)(param_1 + 0x178)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x178)" ( (binary_expression "param_1 + 0x178" identifier + number_literal) )))) , (cast_expression "(epoll_event *)local_2c" ( (type_descriptor "epoll_event *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n        param_1[0x184] = '\x01';\n        if (*(int *)(param_1 + 400) == -1) {\n          uVar4 = 1;\n        }\n        else {\n          local_2c._0_4_ = 1;\n          local_2c._4_8_ = "itc_marker";\n          iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 400),\n                            (epoll_event *)local_2c);\n          if (iVar1 == 0) {\n            uVar4 = 1;\n          }\n          else {\n            piVar2 = __errno_location();\n            pcVar3 = strerror(*piVar2);\n            FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n            uVar4 = 0;\n          }\n        }\n      }\n      else {\n        piVar2 = __errno_location();\n        pcVar3 = strerror(*piVar2);\n        FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n        uVar4 = 0;\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        param_1[0x184] = '\x01';\n        if (*(int *)(param_1 + 400) == -1) {\n          uVar4 = 1;\n        }\n        else {\n          local_2c._0_4_ = 1;\n          local_2c._4_8_ = "itc_marker";\n          iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 400),\n                            (epoll_event *)local_2c);\n          if (iVar1 == 0) {\n            uVar4 = 1;\n          }\n          else {\n            piVar2 = __errno_location();\n            pcVar3 = strerror(*piVar2);\n            FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n            uVar4 = 0;\n          }\n        }\n      }" { (expression_statement "param_1[0x184] = '\x01';" (assignment_expression "param_1[0x184] = '\x01'" (subscript_expression "param_1[0x184]" identifier [ number_literal ]) = (char_literal "'\x01'" ' escape_sequence ')) ;) (if_statement "if (*(int *)(param_1 + 400) == -1) {\n          uVar4 = 1;\n        }\n        else {\n          local_2c._0_4_ = 1;\n          local_2c._4_8_ = "itc_marker";\n          iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 400),\n                            (epoll_event *)local_2c);\n          if (iVar1 == 0) {\n            uVar4 = 1;\n          }\n          else {\n            piVar2 = __errno_location();\n            pcVar3 = strerror(*piVar2);\n            FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n            uVar4 = 0;\n          }\n        }" if (parenthesized_expression "(*(int *)(param_1 + 400) == -1)" ( (binary_expression "*(int *)(param_1 + 400) == -1" (pointer_expression "*(int *)(param_1 + 400)" * (cast_expression "(int *)(param_1 + 400)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 400)" ( (binary_expression "param_1 + 400" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n          uVar4 = 1;\n        }" { (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" identifier = number_literal) ;) }) (else_clause "else {\n          local_2c._0_4_ = 1;\n          local_2c._4_8_ = "itc_marker";\n          iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 400),\n                            (epoll_event *)local_2c);\n          if (iVar1 == 0) {\n            uVar4 = 1;\n          }\n          else {\n            piVar2 = __errno_location();\n            pcVar3 = strerror(*piVar2);\n            FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n            uVar4 = 0;\n          }\n        }" else (compound_statement "{\n          local_2c._0_4_ = 1;\n          local_2c._4_8_ = "itc_marker";\n          iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 400),\n                            (epoll_event *)local_2c);\n          if (iVar1 == 0) {\n            uVar4 = 1;\n          }\n          else {\n            piVar2 = __errno_location();\n            pcVar3 = strerror(*piVar2);\n            FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n            uVar4 = 0;\n          }\n        }" { (expression_statement "local_2c._0_4_ = 1;" (assignment_expression "local_2c._0_4_ = 1" (field_expression "local_2c._0_4_" identifier . field_identifier) = number_literal) ;) (expression_statement "local_2c._4_8_ = "itc_marker";" (assignment_expression "local_2c._4_8_ = "itc_marker"" (field_expression "local_2c._4_8_" identifier . field_identifier) = (string_literal ""itc_marker"" " string_content ")) ;) (expression_statement "iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 400),\n                            (epoll_event *)local_2c);" (assignment_expression "iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 400),\n                            (epoll_event *)local_2c)" identifier = (call_expression "epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 400),\n                            (epoll_event *)local_2c)" identifier (argument_list "(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 400),\n                            (epoll_event *)local_2c)" ( (pointer_expression "*(int *)(param_1 + 0x180)" * (cast_expression "(int *)(param_1 + 0x180)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x180)" ( (binary_expression "param_1 + 0x180" identifier + number_literal) )))) , number_literal , (pointer_expression "*(int *)(param_1 + 400)" * (cast_expression "(int *)(param_1 + 400)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 400)" ( (binary_expression "param_1 + 400" identifier + number_literal) )))) , (cast_expression "(epoll_event *)local_2c" ( (type_descriptor "epoll_event *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n            uVar4 = 1;\n          }\n          else {\n            piVar2 = __errno_location();\n            pcVar3 = strerror(*piVar2);\n            FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n            uVar4 = 0;\n          }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n            uVar4 = 1;\n          }" { (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" identifier = number_literal) ;) }) (else_clause "else {\n            piVar2 = __errno_location();\n            pcVar3 = strerror(*piVar2);\n            FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n            uVar4 = 0;\n          }" else (compound_statement "{\n            piVar2 = __errno_location();\n            pcVar3 = strerror(*piVar2);\n            FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n            uVar4 = 0;\n          }" { (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar3 = strerror(*piVar2);" (assignment_expression "pcVar3 = strerror(*piVar2)" identifier = (call_expression "strerror(*piVar2)" identifier (argument_list "(*piVar2)" ( (pointer_expression "*piVar2" * identifier) )))) ;) (expression_statement "FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);" (call_expression "FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3)" identifier (argument_list "(param_1,"Call to epoll_ctl failed: %s\n",pcVar3)" ( identifier , (string_literal ""Call to epoll_ctl failed: %s\n"" " string_content escape_sequence ") , identifier ))) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) }))) }))) }) (else_clause "else {\n        piVar2 = __errno_location();\n        pcVar3 = strerror(*piVar2);\n        FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n        uVar4 = 0;\n      }" else (compound_statement "{\n        piVar2 = __errno_location();\n        pcVar3 = strerror(*piVar2);\n        FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n        uVar4 = 0;\n      }" { (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar3 = strerror(*piVar2);" (assignment_expression "pcVar3 = strerror(*piVar2)" identifier = (call_expression "strerror(*piVar2)" identifier (argument_list "(*piVar2)" ( (pointer_expression "*piVar2" * identifier) )))) ;) (expression_statement "FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);" (call_expression "FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3)" identifier (argument_list "(param_1,"Call to epoll_ctl failed: %s\n",pcVar3)" ( identifier , (string_literal ""Call to epoll_ctl failed: %s\n"" " string_content escape_sequence ") , identifier ))) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) }))) })) })) (labeled_statement "LAB_0010ad2f:\n  if (local_20 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" statement_identifier : (if_statement "if (local_20 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" if (parenthesized_expression "(local_20 != *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_20 != *(long *)(in_FS_OFFSET + 0x28)" identifier != (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" { comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return uVar4;" return identifier ;) })))
(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\nint setup_epoll_to_listen(MHD_Daemon *daemon)\n\n{\n  long lVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  char *pcVar5;\n  long in_FS_OFFSET;\n  epoll_event event;\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  iVar2 = setup_epoll_fd(daemon);\n  daemon->epoll_fd = iVar2;\n  iVar3 = 0;\n  if (iVar2 != -1) {\n    if ((daemon->options & MHD_ALLOW_UPGRADE) != MHD_NO_FLAG) {\n      iVar2 = setup_epoll_fd(daemon);\n      daemon->epoll_upgrade_fd = iVar2;\n      if (iVar2 == -1) goto LAB_0010ad2f;\n    }\n    iVar3 = 1;\n    if ((daemon->listen_fd != -1) && (daemon->was_quiesced == false)) {\n      event.events = 1;\n      event.data = (epoll_data_t)daemon;\n      iVar3 = epoll_ctl(daemon->epoll_fd,1,daemon->listen_fd,(epoll_event *)&event);\n      if (iVar3 == 0) {\n        daemon->listen_socket_in_epoll = true;\n        iVar3 = (daemon->itc).fd;\n        if (iVar3 == -1) {\n          iVar3 = 1;\n        }\n        else {\n          event.events = 1;\n          event.data.ptr = s_itc_marker_00119071;\n          iVar3 = epoll_ctl(daemon->epoll_fd,1,iVar3,(epoll_event *)&event);\n          if (iVar3 == 0) {\n            iVar3 = 1;\n          }\n          else {\n            piVar4 = __errno_location();\n            pcVar5 = strerror(*piVar4);\n            MHD_DLOG(daemon,"Call to epoll_ctl failed: %s\n",pcVar5);\n            iVar3 = 0;\n          }\n        }\n      }\n      else {\n        piVar4 = __errno_location();\n        pcVar5 = strerror(*piVar4);\n        MHD_DLOG(daemon,"Call to epoll_ctl failed: %s\n",pcVar5);\n        iVar3 = 0;\n      }\n    }\n  }\nLAB_0010ad2f:\n  if (lVar1 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return iVar3;\n}\n\n" comment comment comment (function_definition "int setup_epoll_to_listen(MHD_Daemon *daemon)\n\n{\n  long lVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  char *pcVar5;\n  long in_FS_OFFSET;\n  epoll_event event;\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  iVar2 = setup_epoll_fd(daemon);\n  daemon->epoll_fd = iVar2;\n  iVar3 = 0;\n  if (iVar2 != -1) {\n    if ((daemon->options & MHD_ALLOW_UPGRADE) != MHD_NO_FLAG) {\n      iVar2 = setup_epoll_fd(daemon);\n      daemon->epoll_upgrade_fd = iVar2;\n      if (iVar2 == -1) goto LAB_0010ad2f;\n    }\n    iVar3 = 1;\n    if ((daemon->listen_fd != -1) && (daemon->was_quiesced == false)) {\n      event.events = 1;\n      event.data = (epoll_data_t)daemon;\n      iVar3 = epoll_ctl(daemon->epoll_fd,1,daemon->listen_fd,(epoll_event *)&event);\n      if (iVar3 == 0) {\n        daemon->listen_socket_in_epoll = true;\n        iVar3 = (daemon->itc).fd;\n        if (iVar3 == -1) {\n          iVar3 = 1;\n        }\n        else {\n          event.events = 1;\n          event.data.ptr = s_itc_marker_00119071;\n          iVar3 = epoll_ctl(daemon->epoll_fd,1,iVar3,(epoll_event *)&event);\n          if (iVar3 == 0) {\n            iVar3 = 1;\n          }\n          else {\n            piVar4 = __errno_location();\n            pcVar5 = strerror(*piVar4);\n            MHD_DLOG(daemon,"Call to epoll_ctl failed: %s\n",pcVar5);\n            iVar3 = 0;\n          }\n        }\n      }\n      else {\n        piVar4 = __errno_location();\n        pcVar5 = strerror(*piVar4);\n        MHD_DLOG(daemon,"Call to epoll_ctl failed: %s\n",pcVar5);\n        iVar3 = 0;\n      }\n    }\n  }\nLAB_0010ad2f:\n  if (lVar1 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return iVar3;\n}" primitive_type (function_declarator "setup_epoll_to_listen(MHD_Daemon *daemon)" identifier (parameter_list "(MHD_Daemon *daemon)" ( (parameter_declaration "MHD_Daemon *daemon" type_identifier (pointer_declarator "*daemon" * identifier)) ))) (compound_statement "{\n  long lVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  char *pcVar5;\n  long in_FS_OFFSET;\n  epoll_event event;\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  iVar2 = setup_epoll_fd(daemon);\n  daemon->epoll_fd = iVar2;\n  iVar3 = 0;\n  if (iVar2 != -1) {\n    if ((daemon->options & MHD_ALLOW_UPGRADE) != MHD_NO_FLAG) {\n      iVar2 = setup_epoll_fd(daemon);\n      daemon->epoll_upgrade_fd = iVar2;\n      if (iVar2 == -1) goto LAB_0010ad2f;\n    }\n    iVar3 = 1;\n    if ((daemon->listen_fd != -1) && (daemon->was_quiesced == false)) {\n      event.events = 1;\n      event.data = (epoll_data_t)daemon;\n      iVar3 = epoll_ctl(daemon->epoll_fd,1,daemon->listen_fd,(epoll_event *)&event);\n      if (iVar3 == 0) {\n        daemon->listen_socket_in_epoll = true;\n        iVar3 = (daemon->itc).fd;\n        if (iVar3 == -1) {\n          iVar3 = 1;\n        }\n        else {\n          event.events = 1;\n          event.data.ptr = s_itc_marker_00119071;\n          iVar3 = epoll_ctl(daemon->epoll_fd,1,iVar3,(epoll_event *)&event);\n          if (iVar3 == 0) {\n            iVar3 = 1;\n          }\n          else {\n            piVar4 = __errno_location();\n            pcVar5 = strerror(*piVar4);\n            MHD_DLOG(daemon,"Call to epoll_ctl failed: %s\n",pcVar5);\n            iVar3 = 0;\n          }\n        }\n      }\n      else {\n        piVar4 = __errno_location();\n        pcVar5 = strerror(*piVar4);\n        MHD_DLOG(daemon,"Call to epoll_ctl failed: %s\n",pcVar5);\n        iVar3 = 0;\n      }\n    }\n  }\nLAB_0010ad2f:\n  if (lVar1 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return iVar3;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "epoll_event event;" type_identifier identifier ;) (expression_statement "lVar1 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "lVar1 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = setup_epoll_fd(daemon);" (assignment_expression "iVar2 = setup_epoll_fd(daemon)" identifier = (call_expression "setup_epoll_fd(daemon)" identifier (argument_list "(daemon)" ( identifier )))) ;) (expression_statement "daemon->epoll_fd = iVar2;" (assignment_expression "daemon->epoll_fd = iVar2" (field_expression "daemon->epoll_fd" identifier -> field_identifier) = identifier) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (if_statement "if (iVar2 != -1) {\n    if ((daemon->options & MHD_ALLOW_UPGRADE) != MHD_NO_FLAG) {\n      iVar2 = setup_epoll_fd(daemon);\n      daemon->epoll_upgrade_fd = iVar2;\n      if (iVar2 == -1) goto LAB_0010ad2f;\n    }\n    iVar3 = 1;\n    if ((daemon->listen_fd != -1) && (daemon->was_quiesced == false)) {\n      event.events = 1;\n      event.data = (epoll_data_t)daemon;\n      iVar3 = epoll_ctl(daemon->epoll_fd,1,daemon->listen_fd,(epoll_event *)&event);\n      if (iVar3 == 0) {\n        daemon->listen_socket_in_epoll = true;\n        iVar3 = (daemon->itc).fd;\n        if (iVar3 == -1) {\n          iVar3 = 1;\n        }\n        else {\n          event.events = 1;\n          event.data.ptr = s_itc_marker_00119071;\n          iVar3 = epoll_ctl(daemon->epoll_fd,1,iVar3,(epoll_event *)&event);\n          if (iVar3 == 0) {\n            iVar3 = 1;\n          }\n          else {\n            piVar4 = __errno_location();\n            pcVar5 = strerror(*piVar4);\n            MHD_DLOG(daemon,"Call to epoll_ctl failed: %s\n",pcVar5);\n            iVar3 = 0;\n          }\n        }\n      }\n      else {\n        piVar4 = __errno_location();\n        pcVar5 = strerror(*piVar4);\n        MHD_DLOG(daemon,"Call to epoll_ctl failed: %s\n",pcVar5);\n        iVar3 = 0;\n      }\n    }\n  }" if (parenthesized_expression "(iVar2 != -1)" ( (binary_expression "iVar2 != -1" identifier != number_literal) )) (compound_statement "{\n    if ((daemon->options & MHD_ALLOW_UPGRADE) != MHD_NO_FLAG) {\n      iVar2 = setup_epoll_fd(daemon);\n      daemon->epoll_upgrade_fd = iVar2;\n      if (iVar2 == -1) goto LAB_0010ad2f;\n    }\n    iVar3 = 1;\n    if ((daemon->listen_fd != -1) && (daemon->was_quiesced == false)) {\n      event.events = 1;\n      event.data = (epoll_data_t)daemon;\n      iVar3 = epoll_ctl(daemon->epoll_fd,1,daemon->listen_fd,(epoll_event *)&event);\n      if (iVar3 == 0) {\n        daemon->listen_socket_in_epoll = true;\n        iVar3 = (daemon->itc).fd;\n        if (iVar3 == -1) {\n          iVar3 = 1;\n        }\n        else {\n          event.events = 1;\n          event.data.ptr = s_itc_marker_00119071;\n          iVar3 = epoll_ctl(daemon->epoll_fd,1,iVar3,(epoll_event *)&event);\n          if (iVar3 == 0) {\n            iVar3 = 1;\n          }\n          else {\n            piVar4 = __errno_location();\n            pcVar5 = strerror(*piVar4);\n            MHD_DLOG(daemon,"Call to epoll_ctl failed: %s\n",pcVar5);\n            iVar3 = 0;\n          }\n        }\n      }\n      else {\n        piVar4 = __errno_location();\n        pcVar5 = strerror(*piVar4);\n        MHD_DLOG(daemon,"Call to epoll_ctl failed: %s\n",pcVar5);\n        iVar3 = 0;\n      }\n    }\n  }" { (if_statement "if ((daemon->options & MHD_ALLOW_UPGRADE) != MHD_NO_FLAG) {\n      iVar2 = setup_epoll_fd(daemon);\n      daemon->epoll_upgrade_fd = iVar2;\n      if (iVar2 == -1) goto LAB_0010ad2f;\n    }" if (parenthesized_expression "((daemon->options & MHD_ALLOW_UPGRADE) != MHD_NO_FLAG)" ( (binary_expression "(daemon->options & MHD_ALLOW_UPGRADE) != MHD_NO_FLAG" (parenthesized_expression "(daemon->options & MHD_ALLOW_UPGRADE)" ( (binary_expression "daemon->options & MHD_ALLOW_UPGRADE" (field_expression "daemon->options" identifier -> field_identifier) & identifier) )) != identifier) )) (compound_statement "{\n      iVar2 = setup_epoll_fd(daemon);\n      daemon->epoll_upgrade_fd = iVar2;\n      if (iVar2 == -1) goto LAB_0010ad2f;\n    }" { (expression_statement "iVar2 = setup_epoll_fd(daemon);" (assignment_expression "iVar2 = setup_epoll_fd(daemon)" identifier = (call_expression "setup_epoll_fd(daemon)" identifier (argument_list "(daemon)" ( identifier )))) ;) (expression_statement "daemon->epoll_upgrade_fd = iVar2;" (assignment_expression "daemon->epoll_upgrade_fd = iVar2" (field_expression "daemon->epoll_upgrade_fd" identifier -> field_identifier) = identifier) ;) (if_statement "if (iVar2 == -1) goto LAB_0010ad2f;" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (goto_statement "goto LAB_0010ad2f;" goto statement_identifier ;)) })) (expression_statement "iVar3 = 1;" (assignment_expression "iVar3 = 1" identifier = number_literal) ;) (if_statement "if ((daemon->listen_fd != -1) && (daemon->was_quiesced == false)) {\n      event.events = 1;\n      event.data = (epoll_data_t)daemon;\n      iVar3 = epoll_ctl(daemon->epoll_fd,1,daemon->listen_fd,(epoll_event *)&event);\n      if (iVar3 == 0) {\n        daemon->listen_socket_in_epoll = true;\n        iVar3 = (daemon->itc).fd;\n        if (iVar3 == -1) {\n          iVar3 = 1;\n        }\n        else {\n          event.events = 1;\n          event.data.ptr = s_itc_marker_00119071;\n          iVar3 = epoll_ctl(daemon->epoll_fd,1,iVar3,(epoll_event *)&event);\n          if (iVar3 == 0) {\n            iVar3 = 1;\n          }\n          else {\n            piVar4 = __errno_location();\n            pcVar5 = strerror(*piVar4);\n            MHD_DLOG(daemon,"Call to epoll_ctl failed: %s\n",pcVar5);\n            iVar3 = 0;\n          }\n        }\n      }\n      else {\n        piVar4 = __errno_location();\n        pcVar5 = strerror(*piVar4);\n        MHD_DLOG(daemon,"Call to epoll_ctl failed: %s\n",pcVar5);\n        iVar3 = 0;\n      }\n    }" if (parenthesized_expression "((daemon->listen_fd != -1) && (daemon->was_quiesced == false))" ( (binary_expression "(daemon->listen_fd != -1) && (daemon->was_quiesced == false)" (parenthesized_expression "(daemon->listen_fd != -1)" ( (binary_expression "daemon->listen_fd != -1" (field_expression "daemon->listen_fd" identifier -> field_identifier) != number_literal) )) && (parenthesized_expression "(daemon->was_quiesced == false)" ( (binary_expression "daemon->was_quiesced == false" (field_expression "daemon->was_quiesced" identifier -> field_identifier) == false) ))) )) (compound_statement "{\n      event.events = 1;\n      event.data = (epoll_data_t)daemon;\n      iVar3 = epoll_ctl(daemon->epoll_fd,1,daemon->listen_fd,(epoll_event *)&event);\n      if (iVar3 == 0) {\n        daemon->listen_socket_in_epoll = true;\n        iVar3 = (daemon->itc).fd;\n        if (iVar3 == -1) {\n          iVar3 = 1;\n        }\n        else {\n          event.events = 1;\n          event.data.ptr = s_itc_marker_00119071;\n          iVar3 = epoll_ctl(daemon->epoll_fd,1,iVar3,(epoll_event *)&event);\n          if (iVar3 == 0) {\n            iVar3 = 1;\n          }\n          else {\n            piVar4 = __errno_location();\n            pcVar5 = strerror(*piVar4);\n            MHD_DLOG(daemon,"Call to epoll_ctl failed: %s\n",pcVar5);\n            iVar3 = 0;\n          }\n        }\n      }\n      else {\n        piVar4 = __errno_location();\n        pcVar5 = strerror(*piVar4);\n        MHD_DLOG(daemon,"Call to epoll_ctl failed: %s\n",pcVar5);\n        iVar3 = 0;\n      }\n    }" { (expression_statement "event.events = 1;" (assignment_expression "event.events = 1" (field_expression "event.events" identifier . field_identifier) = number_literal) ;) (expression_statement "event.data = (epoll_data_t)daemon;" (assignment_expression "event.data = (epoll_data_t)daemon" (field_expression "event.data" identifier . field_identifier) = (cast_expression "(epoll_data_t)daemon" ( (type_descriptor "epoll_data_t" type_identifier) ) identifier)) ;) (expression_statement "iVar3 = epoll_ctl(daemon->epoll_fd,1,daemon->listen_fd,(epoll_event *)&event);" (assignment_expression "iVar3 = epoll_ctl(daemon->epoll_fd,1,daemon->listen_fd,(epoll_event *)&event)" identifier = (call_expression "epoll_ctl(daemon->epoll_fd,1,daemon->listen_fd,(epoll_event *)&event)" identifier (argument_list "(daemon->epoll_fd,1,daemon->listen_fd,(epoll_event *)&event)" ( (field_expression "daemon->epoll_fd" identifier -> field_identifier) , number_literal , (field_expression "daemon->listen_fd" identifier -> field_identifier) , (cast_expression "(epoll_event *)&event" ( (type_descriptor "epoll_event *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&event" & identifier)) )))) ;) (if_statement "if (iVar3 == 0) {\n        daemon->listen_socket_in_epoll = true;\n        iVar3 = (daemon->itc).fd;\n        if (iVar3 == -1) {\n          iVar3 = 1;\n        }\n        else {\n          event.events = 1;\n          event.data.ptr = s_itc_marker_00119071;\n          iVar3 = epoll_ctl(daemon->epoll_fd,1,iVar3,(epoll_event *)&event);\n          if (iVar3 == 0) {\n            iVar3 = 1;\n          }\n          else {\n            piVar4 = __errno_location();\n            pcVar5 = strerror(*piVar4);\n            MHD_DLOG(daemon,"Call to epoll_ctl failed: %s\n",pcVar5);\n            iVar3 = 0;\n          }\n        }\n      }\n      else {\n        piVar4 = __errno_location();\n        pcVar5 = strerror(*piVar4);\n        MHD_DLOG(daemon,"Call to epoll_ctl failed: %s\n",pcVar5);\n        iVar3 = 0;\n      }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        daemon->listen_socket_in_epoll = true;\n        iVar3 = (daemon->itc).fd;\n        if (iVar3 == -1) {\n          iVar3 = 1;\n        }\n        else {\n          event.events = 1;\n          event.data.ptr = s_itc_marker_00119071;\n          iVar3 = epoll_ctl(daemon->epoll_fd,1,iVar3,(epoll_event *)&event);\n          if (iVar3 == 0) {\n            iVar3 = 1;\n          }\n          else {\n            piVar4 = __errno_location();\n            pcVar5 = strerror(*piVar4);\n            MHD_DLOG(daemon,"Call to epoll_ctl failed: %s\n",pcVar5);\n            iVar3 = 0;\n          }\n        }\n      }" { (expression_statement "daemon->listen_socket_in_epoll = true;" (assignment_expression "daemon->listen_socket_in_epoll = true" (field_expression "daemon->listen_socket_in_epoll" identifier -> field_identifier) = true) ;) (expression_statement "iVar3 = (daemon->itc).fd;" (assignment_expression "iVar3 = (daemon->itc).fd" identifier = (field_expression "(daemon->itc).fd" (parenthesized_expression "(daemon->itc)" ( (field_expression "daemon->itc" identifier -> field_identifier) )) . field_identifier)) ;) (if_statement "if (iVar3 == -1) {\n          iVar3 = 1;\n        }\n        else {\n          event.events = 1;\n          event.data.ptr = s_itc_marker_00119071;\n          iVar3 = epoll_ctl(daemon->epoll_fd,1,iVar3,(epoll_event *)&event);\n          if (iVar3 == 0) {\n            iVar3 = 1;\n          }\n          else {\n            piVar4 = __errno_location();\n            pcVar5 = strerror(*piVar4);\n            MHD_DLOG(daemon,"Call to epoll_ctl failed: %s\n",pcVar5);\n            iVar3 = 0;\n          }\n        }" if (parenthesized_expression "(iVar3 == -1)" ( (binary_expression "iVar3 == -1" identifier == number_literal) )) (compound_statement "{\n          iVar3 = 1;\n        }" { (expression_statement "iVar3 = 1;" (assignment_expression "iVar3 = 1" identifier = number_literal) ;) }) (else_clause "else {\n          event.events = 1;\n          event.data.ptr = s_itc_marker_00119071;\n          iVar3 = epoll_ctl(daemon->epoll_fd,1,iVar3,(epoll_event *)&event);\n          if (iVar3 == 0) {\n            iVar3 = 1;\n          }\n          else {\n            piVar4 = __errno_location();\n            pcVar5 = strerror(*piVar4);\n            MHD_DLOG(daemon,"Call to epoll_ctl failed: %s\n",pcVar5);\n            iVar3 = 0;\n          }\n        }" else (compound_statement "{\n          event.events = 1;\n          event.data.ptr = s_itc_marker_00119071;\n          iVar3 = epoll_ctl(daemon->epoll_fd,1,iVar3,(epoll_event *)&event);\n          if (iVar3 == 0) {\n            iVar3 = 1;\n          }\n          else {\n            piVar4 = __errno_location();\n            pcVar5 = strerror(*piVar4);\n            MHD_DLOG(daemon,"Call to epoll_ctl failed: %s\n",pcVar5);\n            iVar3 = 0;\n          }\n        }" { (expression_statement "event.events = 1;" (assignment_expression "event.events = 1" (field_expression "event.events" identifier . field_identifier) = number_literal) ;) (expression_statement "event.data.ptr = s_itc_marker_00119071;" (assignment_expression "event.data.ptr = s_itc_marker_00119071" (field_expression "event.data.ptr" (field_expression "event.data" identifier . field_identifier) . field_identifier) = identifier) ;) (expression_statement "iVar3 = epoll_ctl(daemon->epoll_fd,1,iVar3,(epoll_event *)&event);" (assignment_expression "iVar3 = epoll_ctl(daemon->epoll_fd,1,iVar3,(epoll_event *)&event)" identifier = (call_expression "epoll_ctl(daemon->epoll_fd,1,iVar3,(epoll_event *)&event)" identifier (argument_list "(daemon->epoll_fd,1,iVar3,(epoll_event *)&event)" ( (field_expression "daemon->epoll_fd" identifier -> field_identifier) , number_literal , identifier , (cast_expression "(epoll_event *)&event" ( (type_descriptor "epoll_event *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&event" & identifier)) )))) ;) (if_statement "if (iVar3 == 0) {\n            iVar3 = 1;\n          }\n          else {\n            piVar4 = __errno_location();\n            pcVar5 = strerror(*piVar4);\n            MHD_DLOG(daemon,"Call to epoll_ctl failed: %s\n",pcVar5);\n            iVar3 = 0;\n          }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n            iVar3 = 1;\n          }" { (expression_statement "iVar3 = 1;" (assignment_expression "iVar3 = 1" identifier = number_literal) ;) }) (else_clause "else {\n            piVar4 = __errno_location();\n            pcVar5 = strerror(*piVar4);\n            MHD_DLOG(daemon,"Call to epoll_ctl failed: %s\n",pcVar5);\n            iVar3 = 0;\n          }" else (compound_statement "{\n            piVar4 = __errno_location();\n            pcVar5 = strerror(*piVar4);\n            MHD_DLOG(daemon,"Call to epoll_ctl failed: %s\n",pcVar5);\n            iVar3 = 0;\n          }" { (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar5 = strerror(*piVar4);" (assignment_expression "pcVar5 = strerror(*piVar4)" identifier = (call_expression "strerror(*piVar4)" identifier (argument_list "(*piVar4)" ( (pointer_expression "*piVar4" * identifier) )))) ;) (expression_statement "MHD_DLOG(daemon,"Call to epoll_ctl failed: %s\n",pcVar5);" (call_expression "MHD_DLOG(daemon,"Call to epoll_ctl failed: %s\n",pcVar5)" identifier (argument_list "(daemon,"Call to epoll_ctl failed: %s\n",pcVar5)" ( identifier , (string_literal ""Call to epoll_ctl failed: %s\n"" " string_content escape_sequence ") , identifier ))) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) }))) }))) }) (else_clause "else {\n        piVar4 = __errno_location();\n        pcVar5 = strerror(*piVar4);\n        MHD_DLOG(daemon,"Call to epoll_ctl failed: %s\n",pcVar5);\n        iVar3 = 0;\n      }" else (compound_statement "{\n        piVar4 = __errno_location();\n        pcVar5 = strerror(*piVar4);\n        MHD_DLOG(daemon,"Call to epoll_ctl failed: %s\n",pcVar5);\n        iVar3 = 0;\n      }" { (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar5 = strerror(*piVar4);" (assignment_expression "pcVar5 = strerror(*piVar4)" identifier = (call_expression "strerror(*piVar4)" identifier (argument_list "(*piVar4)" ( (pointer_expression "*piVar4" * identifier) )))) ;) (expression_statement "MHD_DLOG(daemon,"Call to epoll_ctl failed: %s\n",pcVar5);" (call_expression "MHD_DLOG(daemon,"Call to epoll_ctl failed: %s\n",pcVar5)" identifier (argument_list "(daemon,"Call to epoll_ctl failed: %s\n",pcVar5)" ( identifier , (string_literal ""Call to epoll_ctl failed: %s\n"" " string_content escape_sequence ") , identifier ))) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) }))) })) })) (labeled_statement "LAB_0010ad2f:\n  if (lVar1 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" statement_identifier : (if_statement "if (lVar1 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" if (parenthesized_expression "(lVar1 != *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "lVar1 != *(long *)(in_FS_OFFSET + 0x28)" identifier != (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" { comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit "undefined4 FUN_0010acdd(char *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  long in_FS_OFFSET;\n  undefined1 local_2c [12];\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  iVar1 = FUN_0010ac95();\n  *(int *)(param_1 + 0x180) = iVar1;\n  uVar4 = 0;\n  if (iVar1 != -1) {\n    if ((param_1[0x1b5] & 0x80U) != 0) {\n      iVar1 = FUN_0010ac95(param_1);\n      *(int *)(param_1 + 0x188) = iVar1;\n      if (iVar1 == -1) goto LAB_0010ad2f;\n    }\n    uVar4 = 1;\n    if ((*(int *)(param_1 + 0x178) != -1) && (param_1[0x195] == '\0')) {\n      local_2c._0_4_ = 1;\n      local_2c._4_8_ = param_1;\n      iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 0x178),\n                        (epoll_event *)local_2c);\n      if (iVar1 == 0) {\n        param_1[0x184] = '\x01';\n        if (*(int *)(param_1 + 400) == -1) {\n          uVar4 = 1;\n        }\n        else {\n          local_2c._0_4_ = 1;\n          local_2c._4_8_ = "itc_marker";\n          iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 400),\n                            (epoll_event *)local_2c);\n          if (iVar1 == 0) {\n            uVar4 = 1;\n          }\n          else {\n            piVar2 = __errno_location();\n            pcVar3 = strerror(*piVar2);\n            FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n            uVar4 = 0;\n          }\n        }\n      }\n      else {\n        piVar2 = __errno_location();\n        pcVar3 = strerror(*piVar2);\n        FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n        uVar4 = 0;\n      }\n    }\n  }\nLAB_0010ad2f:\n  if (local_20 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return uVar4;\n}\n\n" (function_definition "undefined4 FUN_0010acdd(char *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  long in_FS_OFFSET;\n  undefined1 local_2c [12];\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  iVar1 = FUN_0010ac95();\n  *(int *)(param_1 + 0x180) = iVar1;\n  uVar4 = 0;\n  if (iVar1 != -1) {\n    if ((param_1[0x1b5] & 0x80U) != 0) {\n      iVar1 = FUN_0010ac95(param_1);\n      *(int *)(param_1 + 0x188) = iVar1;\n      if (iVar1 == -1) goto LAB_0010ad2f;\n    }\n    uVar4 = 1;\n    if ((*(int *)(param_1 + 0x178) != -1) && (param_1[0x195] == '\0')) {\n      local_2c._0_4_ = 1;\n      local_2c._4_8_ = param_1;\n      iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 0x178),\n                        (epoll_event *)local_2c);\n      if (iVar1 == 0) {\n        param_1[0x184] = '\x01';\n        if (*(int *)(param_1 + 400) == -1) {\n          uVar4 = 1;\n        }\n        else {\n          local_2c._0_4_ = 1;\n          local_2c._4_8_ = "itc_marker";\n          iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 400),\n                            (epoll_event *)local_2c);\n          if (iVar1 == 0) {\n            uVar4 = 1;\n          }\n          else {\n            piVar2 = __errno_location();\n            pcVar3 = strerror(*piVar2);\n            FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n            uVar4 = 0;\n          }\n        }\n      }\n      else {\n        piVar2 = __errno_location();\n        pcVar3 = strerror(*piVar2);\n        FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n        uVar4 = 0;\n      }\n    }\n  }\nLAB_0010ad2f:\n  if (local_20 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return uVar4;\n}" type_identifier (function_declarator "FUN_0010acdd(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  long in_FS_OFFSET;\n  undefined1 local_2c [12];\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  iVar1 = FUN_0010ac95();\n  *(int *)(param_1 + 0x180) = iVar1;\n  uVar4 = 0;\n  if (iVar1 != -1) {\n    if ((param_1[0x1b5] & 0x80U) != 0) {\n      iVar1 = FUN_0010ac95(param_1);\n      *(int *)(param_1 + 0x188) = iVar1;\n      if (iVar1 == -1) goto LAB_0010ad2f;\n    }\n    uVar4 = 1;\n    if ((*(int *)(param_1 + 0x178) != -1) && (param_1[0x195] == '\0')) {\n      local_2c._0_4_ = 1;\n      local_2c._4_8_ = param_1;\n      iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 0x178),\n                        (epoll_event *)local_2c);\n      if (iVar1 == 0) {\n        param_1[0x184] = '\x01';\n        if (*(int *)(param_1 + 400) == -1) {\n          uVar4 = 1;\n        }\n        else {\n          local_2c._0_4_ = 1;\n          local_2c._4_8_ = "itc_marker";\n          iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 400),\n                            (epoll_event *)local_2c);\n          if (iVar1 == 0) {\n            uVar4 = 1;\n          }\n          else {\n            piVar2 = __errno_location();\n            pcVar3 = strerror(*piVar2);\n            FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n            uVar4 = 0;\n          }\n        }\n      }\n      else {\n        piVar2 = __errno_location();\n        pcVar3 = strerror(*piVar2);\n        FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n        uVar4 = 0;\n      }\n    }\n  }\nLAB_0010ad2f:\n  if (local_20 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return uVar4;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined1 local_2c [12];" type_identifier (array_declarator "local_2c [12]" identifier [ number_literal ]) ;) (declaration "long local_20;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_20 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_20 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = FUN_0010ac95();" (assignment_expression "iVar1 = FUN_0010ac95()" identifier = (call_expression "FUN_0010ac95()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(int *)(param_1 + 0x180) = iVar1;" (assignment_expression "*(int *)(param_1 + 0x180) = iVar1" (pointer_expression "*(int *)(param_1 + 0x180)" * (cast_expression "(int *)(param_1 + 0x180)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x180)" ( (binary_expression "param_1 + 0x180" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (if_statement "if (iVar1 != -1) {\n    if ((param_1[0x1b5] & 0x80U) != 0) {\n      iVar1 = FUN_0010ac95(param_1);\n      *(int *)(param_1 + 0x188) = iVar1;\n      if (iVar1 == -1) goto LAB_0010ad2f;\n    }\n    uVar4 = 1;\n    if ((*(int *)(param_1 + 0x178) != -1) && (param_1[0x195] == '\0')) {\n      local_2c._0_4_ = 1;\n      local_2c._4_8_ = param_1;\n      iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 0x178),\n                        (epoll_event *)local_2c);\n      if (iVar1 == 0) {\n        param_1[0x184] = '\x01';\n        if (*(int *)(param_1 + 400) == -1) {\n          uVar4 = 1;\n        }\n        else {\n          local_2c._0_4_ = 1;\n          local_2c._4_8_ = "itc_marker";\n          iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 400),\n                            (epoll_event *)local_2c);\n          if (iVar1 == 0) {\n            uVar4 = 1;\n          }\n          else {\n            piVar2 = __errno_location();\n            pcVar3 = strerror(*piVar2);\n            FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n            uVar4 = 0;\n          }\n        }\n      }\n      else {\n        piVar2 = __errno_location();\n        pcVar3 = strerror(*piVar2);\n        FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n        uVar4 = 0;\n      }\n    }\n  }" if (parenthesized_expression "(iVar1 != -1)" ( (binary_expression "iVar1 != -1" identifier != number_literal) )) (compound_statement "{\n    if ((param_1[0x1b5] & 0x80U) != 0) {\n      iVar1 = FUN_0010ac95(param_1);\n      *(int *)(param_1 + 0x188) = iVar1;\n      if (iVar1 == -1) goto LAB_0010ad2f;\n    }\n    uVar4 = 1;\n    if ((*(int *)(param_1 + 0x178) != -1) && (param_1[0x195] == '\0')) {\n      local_2c._0_4_ = 1;\n      local_2c._4_8_ = param_1;\n      iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 0x178),\n                        (epoll_event *)local_2c);\n      if (iVar1 == 0) {\n        param_1[0x184] = '\x01';\n        if (*(int *)(param_1 + 400) == -1) {\n          uVar4 = 1;\n        }\n        else {\n          local_2c._0_4_ = 1;\n          local_2c._4_8_ = "itc_marker";\n          iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 400),\n                            (epoll_event *)local_2c);\n          if (iVar1 == 0) {\n            uVar4 = 1;\n          }\n          else {\n            piVar2 = __errno_location();\n            pcVar3 = strerror(*piVar2);\n            FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n            uVar4 = 0;\n          }\n        }\n      }\n      else {\n        piVar2 = __errno_location();\n        pcVar3 = strerror(*piVar2);\n        FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n        uVar4 = 0;\n      }\n    }\n  }" { (if_statement "if ((param_1[0x1b5] & 0x80U) != 0) {\n      iVar1 = FUN_0010ac95(param_1);\n      *(int *)(param_1 + 0x188) = iVar1;\n      if (iVar1 == -1) goto LAB_0010ad2f;\n    }" if (parenthesized_expression "((param_1[0x1b5] & 0x80U) != 0)" ( (binary_expression "(param_1[0x1b5] & 0x80U) != 0" (parenthesized_expression "(param_1[0x1b5] & 0x80U)" ( (binary_expression "param_1[0x1b5] & 0x80U" (subscript_expression "param_1[0x1b5]" identifier [ number_literal ]) & number_literal) )) != number_literal) )) (compound_statement "{\n      iVar1 = FUN_0010ac95(param_1);\n      *(int *)(param_1 + 0x188) = iVar1;\n      if (iVar1 == -1) goto LAB_0010ad2f;\n    }" { (expression_statement "iVar1 = FUN_0010ac95(param_1);" (assignment_expression "iVar1 = FUN_0010ac95(param_1)" identifier = (call_expression "FUN_0010ac95(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "*(int *)(param_1 + 0x188) = iVar1;" (assignment_expression "*(int *)(param_1 + 0x188) = iVar1" (pointer_expression "*(int *)(param_1 + 0x188)" * (cast_expression "(int *)(param_1 + 0x188)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x188)" ( (binary_expression "param_1 + 0x188" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar1 == -1) goto LAB_0010ad2f;" if (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) )) (goto_statement "goto LAB_0010ad2f;" goto statement_identifier ;)) })) (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" identifier = number_literal) ;) (if_statement "if ((*(int *)(param_1 + 0x178) != -1) && (param_1[0x195] == '\0')) {\n      local_2c._0_4_ = 1;\n      local_2c._4_8_ = param_1;\n      iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 0x178),\n                        (epoll_event *)local_2c);\n      if (iVar1 == 0) {\n        param_1[0x184] = '\x01';\n        if (*(int *)(param_1 + 400) == -1) {\n          uVar4 = 1;\n        }\n        else {\n          local_2c._0_4_ = 1;\n          local_2c._4_8_ = "itc_marker";\n          iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 400),\n                            (epoll_event *)local_2c);\n          if (iVar1 == 0) {\n            uVar4 = 1;\n          }\n          else {\n            piVar2 = __errno_location();\n            pcVar3 = strerror(*piVar2);\n            FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n            uVar4 = 0;\n          }\n        }\n      }\n      else {\n        piVar2 = __errno_location();\n        pcVar3 = strerror(*piVar2);\n        FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n        uVar4 = 0;\n      }\n    }" if (parenthesized_expression "((*(int *)(param_1 + 0x178) != -1) && (param_1[0x195] == '\0'))" ( (binary_expression "(*(int *)(param_1 + 0x178) != -1) && (param_1[0x195] == '\0')" (parenthesized_expression "(*(int *)(param_1 + 0x178) != -1)" ( (binary_expression "*(int *)(param_1 + 0x178) != -1" (pointer_expression "*(int *)(param_1 + 0x178)" * (cast_expression "(int *)(param_1 + 0x178)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x178)" ( (binary_expression "param_1 + 0x178" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "(param_1[0x195] == '\0')" ( (binary_expression "param_1[0x195] == '\0'" (subscript_expression "param_1[0x195]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n      local_2c._0_4_ = 1;\n      local_2c._4_8_ = param_1;\n      iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 0x178),\n                        (epoll_event *)local_2c);\n      if (iVar1 == 0) {\n        param_1[0x184] = '\x01';\n        if (*(int *)(param_1 + 400) == -1) {\n          uVar4 = 1;\n        }\n        else {\n          local_2c._0_4_ = 1;\n          local_2c._4_8_ = "itc_marker";\n          iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 400),\n                            (epoll_event *)local_2c);\n          if (iVar1 == 0) {\n            uVar4 = 1;\n          }\n          else {\n            piVar2 = __errno_location();\n            pcVar3 = strerror(*piVar2);\n            FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n            uVar4 = 0;\n          }\n        }\n      }\n      else {\n        piVar2 = __errno_location();\n        pcVar3 = strerror(*piVar2);\n        FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n        uVar4 = 0;\n      }\n    }" { (expression_statement "local_2c._0_4_ = 1;" (assignment_expression "local_2c._0_4_ = 1" (field_expression "local_2c._0_4_" identifier . field_identifier) = number_literal) ;) (expression_statement "local_2c._4_8_ = param_1;" (assignment_expression "local_2c._4_8_ = param_1" (field_expression "local_2c._4_8_" identifier . field_identifier) = identifier) ;) (expression_statement "iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 0x178),\n                        (epoll_event *)local_2c);" (assignment_expression "iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 0x178),\n                        (epoll_event *)local_2c)" identifier = (call_expression "epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 0x178),\n                        (epoll_event *)local_2c)" identifier (argument_list "(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 0x178),\n                        (epoll_event *)local_2c)" ( (pointer_expression "*(int *)(param_1 + 0x180)" * (cast_expression "(int *)(param_1 + 0x180)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x180)" ( (binary_expression "param_1 + 0x180" identifier + number_literal) )))) , number_literal , (pointer_expression "*(int *)(param_1 + 0x178)" * (cast_expression "(int *)(param_1 + 0x178)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x178)" ( (binary_expression "param_1 + 0x178" identifier + number_literal) )))) , (cast_expression "(epoll_event *)local_2c" ( (type_descriptor "epoll_event *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n        param_1[0x184] = '\x01';\n        if (*(int *)(param_1 + 400) == -1) {\n          uVar4 = 1;\n        }\n        else {\n          local_2c._0_4_ = 1;\n          local_2c._4_8_ = "itc_marker";\n          iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 400),\n                            (epoll_event *)local_2c);\n          if (iVar1 == 0) {\n            uVar4 = 1;\n          }\n          else {\n            piVar2 = __errno_location();\n            pcVar3 = strerror(*piVar2);\n            FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n            uVar4 = 0;\n          }\n        }\n      }\n      else {\n        piVar2 = __errno_location();\n        pcVar3 = strerror(*piVar2);\n        FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n        uVar4 = 0;\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        param_1[0x184] = '\x01';\n        if (*(int *)(param_1 + 400) == -1) {\n          uVar4 = 1;\n        }\n        else {\n          local_2c._0_4_ = 1;\n          local_2c._4_8_ = "itc_marker";\n          iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 400),\n                            (epoll_event *)local_2c);\n          if (iVar1 == 0) {\n            uVar4 = 1;\n          }\n          else {\n            piVar2 = __errno_location();\n            pcVar3 = strerror(*piVar2);\n            FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n            uVar4 = 0;\n          }\n        }\n      }" { (expression_statement "param_1[0x184] = '\x01';" (assignment_expression "param_1[0x184] = '\x01'" (subscript_expression "param_1[0x184]" identifier [ number_literal ]) = (char_literal "'\x01'" ' escape_sequence ')) ;) (if_statement "if (*(int *)(param_1 + 400) == -1) {\n          uVar4 = 1;\n        }\n        else {\n          local_2c._0_4_ = 1;\n          local_2c._4_8_ = "itc_marker";\n          iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 400),\n                            (epoll_event *)local_2c);\n          if (iVar1 == 0) {\n            uVar4 = 1;\n          }\n          else {\n            piVar2 = __errno_location();\n            pcVar3 = strerror(*piVar2);\n            FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n            uVar4 = 0;\n          }\n        }" if (parenthesized_expression "(*(int *)(param_1 + 400) == -1)" ( (binary_expression "*(int *)(param_1 + 400) == -1" (pointer_expression "*(int *)(param_1 + 400)" * (cast_expression "(int *)(param_1 + 400)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 400)" ( (binary_expression "param_1 + 400" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n          uVar4 = 1;\n        }" { (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" identifier = number_literal) ;) }) (else_clause "else {\n          local_2c._0_4_ = 1;\n          local_2c._4_8_ = "itc_marker";\n          iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 400),\n                            (epoll_event *)local_2c);\n          if (iVar1 == 0) {\n            uVar4 = 1;\n          }\n          else {\n            piVar2 = __errno_location();\n            pcVar3 = strerror(*piVar2);\n            FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n            uVar4 = 0;\n          }\n        }" else (compound_statement "{\n          local_2c._0_4_ = 1;\n          local_2c._4_8_ = "itc_marker";\n          iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 400),\n                            (epoll_event *)local_2c);\n          if (iVar1 == 0) {\n            uVar4 = 1;\n          }\n          else {\n            piVar2 = __errno_location();\n            pcVar3 = strerror(*piVar2);\n            FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n            uVar4 = 0;\n          }\n        }" { (expression_statement "local_2c._0_4_ = 1;" (assignment_expression "local_2c._0_4_ = 1" (field_expression "local_2c._0_4_" identifier . field_identifier) = number_literal) ;) (expression_statement "local_2c._4_8_ = "itc_marker";" (assignment_expression "local_2c._4_8_ = "itc_marker"" (field_expression "local_2c._4_8_" identifier . field_identifier) = (string_literal ""itc_marker"" " string_content ")) ;) (expression_statement "iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 400),\n                            (epoll_event *)local_2c);" (assignment_expression "iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 400),\n                            (epoll_event *)local_2c)" identifier = (call_expression "epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 400),\n                            (epoll_event *)local_2c)" identifier (argument_list "(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 400),\n                            (epoll_event *)local_2c)" ( (pointer_expression "*(int *)(param_1 + 0x180)" * (cast_expression "(int *)(param_1 + 0x180)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x180)" ( (binary_expression "param_1 + 0x180" identifier + number_literal) )))) , number_literal , (pointer_expression "*(int *)(param_1 + 400)" * (cast_expression "(int *)(param_1 + 400)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 400)" ( (binary_expression "param_1 + 400" identifier + number_literal) )))) , (cast_expression "(epoll_event *)local_2c" ( (type_descriptor "epoll_event *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n            uVar4 = 1;\n          }\n          else {\n            piVar2 = __errno_location();\n            pcVar3 = strerror(*piVar2);\n            FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n            uVar4 = 0;\n          }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n            uVar4 = 1;\n          }" { (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" identifier = number_literal) ;) }) (else_clause "else {\n            piVar2 = __errno_location();\n            pcVar3 = strerror(*piVar2);\n            FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n            uVar4 = 0;\n          }" else (compound_statement "{\n            piVar2 = __errno_location();\n            pcVar3 = strerror(*piVar2);\n            FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n            uVar4 = 0;\n          }" { (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar3 = strerror(*piVar2);" (assignment_expression "pcVar3 = strerror(*piVar2)" identifier = (call_expression "strerror(*piVar2)" identifier (argument_list "(*piVar2)" ( (pointer_expression "*piVar2" * identifier) )))) ;) (expression_statement "FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);" (call_expression "FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3)" identifier (argument_list "(param_1,"Call to epoll_ctl failed: %s\n",pcVar3)" ( identifier , (string_literal ""Call to epoll_ctl failed: %s\n"" " string_content escape_sequence ") , identifier ))) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) }))) }))) }) (else_clause "else {\n        piVar2 = __errno_location();\n        pcVar3 = strerror(*piVar2);\n        FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n        uVar4 = 0;\n      }" else (compound_statement "{\n        piVar2 = __errno_location();\n        pcVar3 = strerror(*piVar2);\n        FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n        uVar4 = 0;\n      }" { (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar3 = strerror(*piVar2);" (assignment_expression "pcVar3 = strerror(*piVar2)" identifier = (call_expression "strerror(*piVar2)" identifier (argument_list "(*piVar2)" ( (pointer_expression "*piVar2" * identifier) )))) ;) (expression_statement "FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);" (call_expression "FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3)" identifier (argument_list "(param_1,"Call to epoll_ctl failed: %s\n",pcVar3)" ( identifier , (string_literal ""Call to epoll_ctl failed: %s\n"" " string_content escape_sequence ") , identifier ))) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) }))) })) })) (labeled_statement "LAB_0010ad2f:\n  if (local_20 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }" statement_identifier : (if_statement "if (local_20 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }" if (parenthesized_expression "(local_20 != *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_20 != *(long *)(in_FS_OFFSET + 0x28)" identifier != (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n    __stack_chk_fail();\n  }" { (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return uVar4;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration (sized_type_specifier long) IDENT ;) (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 IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression IDENT = 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) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' escape_sequence ')) ))) )) (compound_statement { (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = LIT) ;) (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = IDENT) ;) (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 , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = LIT) ;) (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = (string_literal " string_content ")) ;) (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 , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content escape_sequence ") , IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) }))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content escape_sequence ") , IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) })) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_0010acdd(char *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  long in_FS_OFFSET;\n  undefined1 local_2c [12];\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  iVar1 = FUN_0010ac95();\n  *(int *)(param_1 + 0x180) = iVar1;\n  uVar4 = 0;\n  if (iVar1 != -1) {\n    if ((param_1[0x1b5] & 0x80U) != 0) {\n      iVar1 = FUN_0010ac95(param_1);\n      *(int *)(param_1 + 0x188) = iVar1;\n      if (iVar1 == -1) goto LAB_0010ad2f;\n    }\n    uVar4 = 1;\n    if ((*(int *)(param_1 + 0x178) != -1) && (param_1[0x195] == '\0')) {\n      local_2c._0_4_ = 1;\n      local_2c._4_8_ = param_1;\n      iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 0x178),\n                        (epoll_event *)local_2c);\n      if (iVar1 == 0) {\n        param_1[0x184] = '\x01';\n        if (*(int *)(param_1 + 400) == -1) {\n          uVar4 = 1;\n        }\n        else {\n          local_2c._0_4_ = 1;\n          local_2c._4_8_ = "itc_marker";\n          iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 400),\n                            (epoll_event *)local_2c);\n          if (iVar1 == 0) {\n            uVar4 = 1;\n          }\n          else {\n            piVar2 = __errno_location();\n            pcVar3 = strerror(*piVar2);\n            FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n            uVar4 = 0;\n          }\n        }\n      }\n      else {\n        piVar2 = __errno_location();\n        pcVar3 = strerror(*piVar2);\n        FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n        uVar4 = 0;\n      }\n    }\n  }\nLAB_0010ad2f:\n  if (local_20 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return uVar4;\n}" (type_identifier "undefined4") (function_declarator "FUN_0010acdd(char *param_1)" (identifier "FUN_0010acdd") (parameter_list "(char *param_1)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  long in_FS_OFFSET;\n  undefined1 local_2c [12];\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  iVar1 = FUN_0010ac95();\n  *(int *)(param_1 + 0x180) = iVar1;\n  uVar4 = 0;\n  if (iVar1 != -1) {\n    if ((param_1[0x1b5] & 0x80U) != 0) {\n      iVar1 = FUN_0010ac95(param_1);\n      *(int *)(param_1 + 0x188) = iVar1;\n      if (iVar1 == -1) goto LAB_0010ad2f;\n    }\n    uVar4 = 1;\n    if ((*(int *)(param_1 + 0x178) != -1) && (param_1[0x195] == '\0')) {\n      local_2c._0_4_ = 1;\n      local_2c._4_8_ = param_1;\n      iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 0x178),\n                        (epoll_event *)local_2c);\n      if (iVar1 == 0) {\n        param_1[0x184] = '\x01';\n        if (*(int *)(param_1 + 400) == -1) {\n          uVar4 = 1;\n        }\n        else {\n          local_2c._0_4_ = 1;\n          local_2c._4_8_ = "itc_marker";\n          iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 400),\n                            (epoll_event *)local_2c);\n          if (iVar1 == 0) {\n            uVar4 = 1;\n          }\n          else {\n            piVar2 = __errno_location();\n            pcVar3 = strerror(*piVar2);\n            FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n            uVar4 = 0;\n          }\n        }\n      }\n      else {\n        piVar2 = __errno_location();\n        pcVar3 = strerror(*piVar2);\n        FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n        uVar4 = 0;\n      }\n    }\n  }\nLAB_0010ad2f:\n  if (local_20 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return uVar4;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" (long "long")) (identifier "in_FS_OFFSET") (; ";")) (declaration "undefined1 local_2c [12];" (type_identifier "undefined1") (array_declarator "local_2c [12]" (identifier "local_2c") ([ "[") (number_literal "12") (] "]")) (; ";")) (declaration "long local_20;" (sized_type_specifier "long" (long "long")) (identifier "local_20") (; ";")) (expression_statement "local_20 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_20 = *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_20") (= "=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "iVar1 = FUN_0010ac95();" (assignment_expression "iVar1 = FUN_0010ac95()" (identifier "iVar1") (= "=") (call_expression "FUN_0010ac95()" (identifier "FUN_0010ac95") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*(int *)(param_1 + 0x180) = iVar1;" (assignment_expression "*(int *)(param_1 + 0x180) = iVar1" (pointer_expression "*(int *)(param_1 + 0x180)" (* "*") (cast_expression "(int *)(param_1 + 0x180)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x180)" (( "(") (binary_expression "param_1 + 0x180" (identifier "param_1") (+ "+") (number_literal "0x180")) () ")")))) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (if_statement "if (iVar1 != -1) {\n    if ((param_1[0x1b5] & 0x80U) != 0) {\n      iVar1 = FUN_0010ac95(param_1);\n      *(int *)(param_1 + 0x188) = iVar1;\n      if (iVar1 == -1) goto LAB_0010ad2f;\n    }\n    uVar4 = 1;\n    if ((*(int *)(param_1 + 0x178) != -1) && (param_1[0x195] == '\0')) {\n      local_2c._0_4_ = 1;\n      local_2c._4_8_ = param_1;\n      iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 0x178),\n                        (epoll_event *)local_2c);\n      if (iVar1 == 0) {\n        param_1[0x184] = '\x01';\n        if (*(int *)(param_1 + 400) == -1) {\n          uVar4 = 1;\n        }\n        else {\n          local_2c._0_4_ = 1;\n          local_2c._4_8_ = "itc_marker";\n          iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 400),\n                            (epoll_event *)local_2c);\n          if (iVar1 == 0) {\n            uVar4 = 1;\n          }\n          else {\n            piVar2 = __errno_location();\n            pcVar3 = strerror(*piVar2);\n            FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n            uVar4 = 0;\n          }\n        }\n      }\n      else {\n        piVar2 = __errno_location();\n        pcVar3 = strerror(*piVar2);\n        FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n        uVar4 = 0;\n      }\n    }\n  }" (if "if") (parenthesized_expression "(iVar1 != -1)" (( "(") (binary_expression "iVar1 != -1" (identifier "iVar1") (!= "!=") (number_literal "-1")) () ")")) (compound_statement "{\n    if ((param_1[0x1b5] & 0x80U) != 0) {\n      iVar1 = FUN_0010ac95(param_1);\n      *(int *)(param_1 + 0x188) = iVar1;\n      if (iVar1 == -1) goto LAB_0010ad2f;\n    }\n    uVar4 = 1;\n    if ((*(int *)(param_1 + 0x178) != -1) && (param_1[0x195] == '\0')) {\n      local_2c._0_4_ = 1;\n      local_2c._4_8_ = param_1;\n      iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 0x178),\n                        (epoll_event *)local_2c);\n      if (iVar1 == 0) {\n        param_1[0x184] = '\x01';\n        if (*(int *)(param_1 + 400) == -1) {\n          uVar4 = 1;\n        }\n        else {\n          local_2c._0_4_ = 1;\n          local_2c._4_8_ = "itc_marker";\n          iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 400),\n                            (epoll_event *)local_2c);\n          if (iVar1 == 0) {\n            uVar4 = 1;\n          }\n          else {\n            piVar2 = __errno_location();\n            pcVar3 = strerror(*piVar2);\n            FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n            uVar4 = 0;\n          }\n        }\n      }\n      else {\n        piVar2 = __errno_location();\n        pcVar3 = strerror(*piVar2);\n        FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n        uVar4 = 0;\n      }\n    }\n  }" ({ "{") (if_statement "if ((param_1[0x1b5] & 0x80U) != 0) {\n      iVar1 = FUN_0010ac95(param_1);\n      *(int *)(param_1 + 0x188) = iVar1;\n      if (iVar1 == -1) goto LAB_0010ad2f;\n    }" (if "if") (parenthesized_expression "((param_1[0x1b5] & 0x80U) != 0)" (( "(") (binary_expression "(param_1[0x1b5] & 0x80U) != 0" (parenthesized_expression "(param_1[0x1b5] & 0x80U)" (( "(") (binary_expression "param_1[0x1b5] & 0x80U" (subscript_expression "param_1[0x1b5]" (identifier "param_1") ([ "[") (number_literal "0x1b5") (] "]")) (& "&") (number_literal "0x80U")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      iVar1 = FUN_0010ac95(param_1);\n      *(int *)(param_1 + 0x188) = iVar1;\n      if (iVar1 == -1) goto LAB_0010ad2f;\n    }" ({ "{") (expression_statement "iVar1 = FUN_0010ac95(param_1);" (assignment_expression "iVar1 = FUN_0010ac95(param_1)" (identifier "iVar1") (= "=") (call_expression "FUN_0010ac95(param_1)" (identifier "FUN_0010ac95") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "*(int *)(param_1 + 0x188) = iVar1;" (assignment_expression "*(int *)(param_1 + 0x188) = iVar1" (pointer_expression "*(int *)(param_1 + 0x188)" (* "*") (cast_expression "(int *)(param_1 + 0x188)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x188)" (( "(") (binary_expression "param_1 + 0x188" (identifier "param_1") (+ "+") (number_literal "0x188")) () ")")))) (= "=") (identifier "iVar1")) (; ";")) (if_statement "if (iVar1 == -1) goto LAB_0010ad2f;" (if "if") (parenthesized_expression "(iVar1 == -1)" (( "(") (binary_expression "iVar1 == -1" (identifier "iVar1") (== "==") (number_literal "-1")) () ")")) (goto_statement "goto LAB_0010ad2f;" (goto "goto") (statement_identifier "LAB_0010ad2f") (; ";"))) (} "}"))) (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" (identifier "uVar4") (= "=") (number_literal "1")) (; ";")) (if_statement "if ((*(int *)(param_1 + 0x178) != -1) && (param_1[0x195] == '\0')) {\n      local_2c._0_4_ = 1;\n      local_2c._4_8_ = param_1;\n      iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 0x178),\n                        (epoll_event *)local_2c);\n      if (iVar1 == 0) {\n        param_1[0x184] = '\x01';\n        if (*(int *)(param_1 + 400) == -1) {\n          uVar4 = 1;\n        }\n        else {\n          local_2c._0_4_ = 1;\n          local_2c._4_8_ = "itc_marker";\n          iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 400),\n                            (epoll_event *)local_2c);\n          if (iVar1 == 0) {\n            uVar4 = 1;\n          }\n          else {\n            piVar2 = __errno_location();\n            pcVar3 = strerror(*piVar2);\n            FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n            uVar4 = 0;\n          }\n        }\n      }\n      else {\n        piVar2 = __errno_location();\n        pcVar3 = strerror(*piVar2);\n        FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n        uVar4 = 0;\n      }\n    }" (if "if") (parenthesized_expression "((*(int *)(param_1 + 0x178) != -1) && (param_1[0x195] == '\0'))" (( "(") (binary_expression "(*(int *)(param_1 + 0x178) != -1) && (param_1[0x195] == '\0')" (parenthesized_expression "(*(int *)(param_1 + 0x178) != -1)" (( "(") (binary_expression "*(int *)(param_1 + 0x178) != -1" (pointer_expression "*(int *)(param_1 + 0x178)" (* "*") (cast_expression "(int *)(param_1 + 0x178)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x178)" (( "(") (binary_expression "param_1 + 0x178" (identifier "param_1") (+ "+") (number_literal "0x178")) () ")")))) (!= "!=") (number_literal "-1")) () ")")) (&& "&&") (parenthesized_expression "(param_1[0x195] == '\0')" (( "(") (binary_expression "param_1[0x195] == '\0'" (subscript_expression "param_1[0x195]" (identifier "param_1") ([ "[") (number_literal "0x195") (] "]")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n      local_2c._0_4_ = 1;\n      local_2c._4_8_ = param_1;\n      iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 0x178),\n                        (epoll_event *)local_2c);\n      if (iVar1 == 0) {\n        param_1[0x184] = '\x01';\n        if (*(int *)(param_1 + 400) == -1) {\n          uVar4 = 1;\n        }\n        else {\n          local_2c._0_4_ = 1;\n          local_2c._4_8_ = "itc_marker";\n          iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 400),\n                            (epoll_event *)local_2c);\n          if (iVar1 == 0) {\n            uVar4 = 1;\n          }\n          else {\n            piVar2 = __errno_location();\n            pcVar3 = strerror(*piVar2);\n            FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n            uVar4 = 0;\n          }\n        }\n      }\n      else {\n        piVar2 = __errno_location();\n        pcVar3 = strerror(*piVar2);\n        FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n        uVar4 = 0;\n      }\n    }" ({ "{") (expression_statement "local_2c._0_4_ = 1;" (assignment_expression "local_2c._0_4_ = 1" (field_expression "local_2c._0_4_" (identifier "local_2c") (. ".") (field_identifier "_0_4_")) (= "=") (number_literal "1")) (; ";")) (expression_statement "local_2c._4_8_ = param_1;" (assignment_expression "local_2c._4_8_ = param_1" (field_expression "local_2c._4_8_" (identifier "local_2c") (. ".") (field_identifier "_4_8_")) (= "=") (identifier "param_1")) (; ";")) (expression_statement "iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 0x178),\n                        (epoll_event *)local_2c);" (assignment_expression "iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 0x178),\n                        (epoll_event *)local_2c)" (identifier "iVar1") (= "=") (call_expression "epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 0x178),\n                        (epoll_event *)local_2c)" (identifier "epoll_ctl") (argument_list "(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 0x178),\n                        (epoll_event *)local_2c)" (( "(") (pointer_expression "*(int *)(param_1 + 0x180)" (* "*") (cast_expression "(int *)(param_1 + 0x180)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x180)" (( "(") (binary_expression "param_1 + 0x180" (identifier "param_1") (+ "+") (number_literal "0x180")) () ")")))) (, ",") (number_literal "1") (, ",") (pointer_expression "*(int *)(param_1 + 0x178)" (* "*") (cast_expression "(int *)(param_1 + 0x178)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x178)" (( "(") (binary_expression "param_1 + 0x178" (identifier "param_1") (+ "+") (number_literal "0x178")) () ")")))) (, ",") (cast_expression "(epoll_event *)local_2c" (( "(") (type_descriptor "epoll_event *" (type_identifier "epoll_event") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "local_2c")) () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n        param_1[0x184] = '\x01';\n        if (*(int *)(param_1 + 400) == -1) {\n          uVar4 = 1;\n        }\n        else {\n          local_2c._0_4_ = 1;\n          local_2c._4_8_ = "itc_marker";\n          iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 400),\n                            (epoll_event *)local_2c);\n          if (iVar1 == 0) {\n            uVar4 = 1;\n          }\n          else {\n            piVar2 = __errno_location();\n            pcVar3 = strerror(*piVar2);\n            FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n            uVar4 = 0;\n          }\n        }\n      }\n      else {\n        piVar2 = __errno_location();\n        pcVar3 = strerror(*piVar2);\n        FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n        uVar4 = 0;\n      }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        param_1[0x184] = '\x01';\n        if (*(int *)(param_1 + 400) == -1) {\n          uVar4 = 1;\n        }\n        else {\n          local_2c._0_4_ = 1;\n          local_2c._4_8_ = "itc_marker";\n          iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 400),\n                            (epoll_event *)local_2c);\n          if (iVar1 == 0) {\n            uVar4 = 1;\n          }\n          else {\n            piVar2 = __errno_location();\n            pcVar3 = strerror(*piVar2);\n            FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n            uVar4 = 0;\n          }\n        }\n      }" ({ "{") (expression_statement "param_1[0x184] = '\x01';" (assignment_expression "param_1[0x184] = '\x01'" (subscript_expression "param_1[0x184]" (identifier "param_1") ([ "[") (number_literal "0x184") (] "]")) (= "=") (char_literal "'\x01'" (' "'") (escape_sequence "\x01") (' "'"))) (; ";")) (if_statement "if (*(int *)(param_1 + 400) == -1) {\n          uVar4 = 1;\n        }\n        else {\n          local_2c._0_4_ = 1;\n          local_2c._4_8_ = "itc_marker";\n          iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 400),\n                            (epoll_event *)local_2c);\n          if (iVar1 == 0) {\n            uVar4 = 1;\n          }\n          else {\n            piVar2 = __errno_location();\n            pcVar3 = strerror(*piVar2);\n            FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n            uVar4 = 0;\n          }\n        }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 400) == -1)" (( "(") (binary_expression "*(int *)(param_1 + 400) == -1" (pointer_expression "*(int *)(param_1 + 400)" (* "*") (cast_expression "(int *)(param_1 + 400)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 400)" (( "(") (binary_expression "param_1 + 400" (identifier "param_1") (+ "+") (number_literal "400")) () ")")))) (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n          uVar4 = 1;\n        }" ({ "{") (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" (identifier "uVar4") (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else {\n          local_2c._0_4_ = 1;\n          local_2c._4_8_ = "itc_marker";\n          iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 400),\n                            (epoll_event *)local_2c);\n          if (iVar1 == 0) {\n            uVar4 = 1;\n          }\n          else {\n            piVar2 = __errno_location();\n            pcVar3 = strerror(*piVar2);\n            FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n            uVar4 = 0;\n          }\n        }" (else "else") (compound_statement "{\n          local_2c._0_4_ = 1;\n          local_2c._4_8_ = "itc_marker";\n          iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 400),\n                            (epoll_event *)local_2c);\n          if (iVar1 == 0) {\n            uVar4 = 1;\n          }\n          else {\n            piVar2 = __errno_location();\n            pcVar3 = strerror(*piVar2);\n            FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n            uVar4 = 0;\n          }\n        }" ({ "{") (expression_statement "local_2c._0_4_ = 1;" (assignment_expression "local_2c._0_4_ = 1" (field_expression "local_2c._0_4_" (identifier "local_2c") (. ".") (field_identifier "_0_4_")) (= "=") (number_literal "1")) (; ";")) (expression_statement "local_2c._4_8_ = "itc_marker";" (assignment_expression "local_2c._4_8_ = "itc_marker"" (field_expression "local_2c._4_8_" (identifier "local_2c") (. ".") (field_identifier "_4_8_")) (= "=") (string_literal ""itc_marker"" (" """) (string_content "itc_marker") (" """))) (; ";")) (expression_statement "iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 400),\n                            (epoll_event *)local_2c);" (assignment_expression "iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 400),\n                            (epoll_event *)local_2c)" (identifier "iVar1") (= "=") (call_expression "epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 400),\n                            (epoll_event *)local_2c)" (identifier "epoll_ctl") (argument_list "(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 400),\n                            (epoll_event *)local_2c)" (( "(") (pointer_expression "*(int *)(param_1 + 0x180)" (* "*") (cast_expression "(int *)(param_1 + 0x180)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x180)" (( "(") (binary_expression "param_1 + 0x180" (identifier "param_1") (+ "+") (number_literal "0x180")) () ")")))) (, ",") (number_literal "1") (, ",") (pointer_expression "*(int *)(param_1 + 400)" (* "*") (cast_expression "(int *)(param_1 + 400)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 400)" (( "(") (binary_expression "param_1 + 400" (identifier "param_1") (+ "+") (number_literal "400")) () ")")))) (, ",") (cast_expression "(epoll_event *)local_2c" (( "(") (type_descriptor "epoll_event *" (type_identifier "epoll_event") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "local_2c")) () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n            uVar4 = 1;\n          }\n          else {\n            piVar2 = __errno_location();\n            pcVar3 = strerror(*piVar2);\n            FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n            uVar4 = 0;\n          }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            uVar4 = 1;\n          }" ({ "{") (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" (identifier "uVar4") (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else {\n            piVar2 = __errno_location();\n            pcVar3 = strerror(*piVar2);\n            FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n            uVar4 = 0;\n          }" (else "else") (compound_statement "{\n            piVar2 = __errno_location();\n            pcVar3 = strerror(*piVar2);\n            FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n            uVar4 = 0;\n          }" ({ "{") (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" (identifier "piVar2") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "pcVar3 = strerror(*piVar2);" (assignment_expression "pcVar3 = strerror(*piVar2)" (identifier "pcVar3") (= "=") (call_expression "strerror(*piVar2)" (identifier "strerror") (argument_list "(*piVar2)" (( "(") (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) () ")")))) (; ";")) (expression_statement "FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);" (call_expression "FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3)" (identifier "FUN_00110c11") (argument_list "(param_1,"Call to epoll_ctl failed: %s\n",pcVar3)" (( "(") (identifier "param_1") (, ",") (string_literal ""Call to epoll_ctl failed: %s\n"" (" """) (string_content "Call to epoll_ctl failed: %s") (escape_sequence "\n") (" """)) (, ",") (identifier "pcVar3") () ")"))) (; ";")) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (} "}")))) (} "}")))) (} "}")) (else_clause "else {\n        piVar2 = __errno_location();\n        pcVar3 = strerror(*piVar2);\n        FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n        uVar4 = 0;\n      }" (else "else") (compound_statement "{\n        piVar2 = __errno_location();\n        pcVar3 = strerror(*piVar2);\n        FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n        uVar4 = 0;\n      }" ({ "{") (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" (identifier "piVar2") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "pcVar3 = strerror(*piVar2);" (assignment_expression "pcVar3 = strerror(*piVar2)" (identifier "pcVar3") (= "=") (call_expression "strerror(*piVar2)" (identifier "strerror") (argument_list "(*piVar2)" (( "(") (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) () ")")))) (; ";")) (expression_statement "FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);" (call_expression "FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3)" (identifier "FUN_00110c11") (argument_list "(param_1,"Call to epoll_ctl failed: %s\n",pcVar3)" (( "(") (identifier "param_1") (, ",") (string_literal ""Call to epoll_ctl failed: %s\n"" (" """) (string_content "Call to epoll_ctl failed: %s") (escape_sequence "\n") (" """)) (, ",") (identifier "pcVar3") () ")"))) (; ";")) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (} "}")))) (} "}"))) (} "}"))) (labeled_statement "LAB_0010ad2f:\n  if (local_20 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }" (statement_identifier "LAB_0010ad2f") (: ":") (if_statement "if (local_20 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }" (if "if") (parenthesized_expression "(local_20 != *(long *)(in_FS_OFFSET + 0x28))" (( "(") (binary_expression "local_20 != *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_20") (!= "!=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (compound_statement "{\n                    \n    __stack_chk_fail();\n  }" ({ "{") (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" (identifier "__stack_chk_fail") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (return_statement "return uVar4;" (return "return") (identifier "uVar4") (; ";")) (} "}")))

/* 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 */

int function_1(type_1 *daemon)

{
  long var_11;
  int var_3;
  int var_7;
  int *piVar4;
  char *pcVar5;
  long var_1;
  type_2 event;
  
  var_11 = *(long *)(var_1 + 0x28);
  var_3 = var_2(daemon);
  daemon->epoll_fd = var_3;
  var_7 = 0;
  if (var_3 != -1) {
    if ((daemon->options & var_4) != var_5) {
      var_3 = var_2(daemon);
      daemon->epoll_upgrade_fd = var_3;
      if (var_3 == -1) goto LAB_0010ad2f;
    }
    var_7 = 1;
    if ((daemon->listen_fd != -1) && (daemon->was_quiesced == false)) {
      event.events = 1;
      event.data = (type_3)daemon;
      var_7 = var_6(daemon->epoll_fd,1,daemon->listen_fd,(type_2 *)&event);
      if (var_7 == 0) {
        daemon->listen_socket_in_epoll = true;
        var_7 = (daemon->itc).fd;
        if (var_7 == -1) {
          var_7 = 1;
        }
        else {
          event.events = 1;
          event.data.ptr = s_itc_marker_00119071;
          var_7 = var_6(daemon->epoll_fd,1,var_7,(type_2 *)&event);
          if (var_7 == 0) {
            var_7 = 1;
          }
          else {
            piVar4 = var_8();
            pcVar5 = var_9(*piVar4);
            var_10(daemon,"Call to epoll_ctl failed: %s\n",pcVar5);
            var_7 = 0;
          }
        }
      }
      else {
        piVar4 = var_8();
        pcVar5 = var_9(*piVar4);
        var_10(daemon,"Call to epoll_ctl failed: %s\n",pcVar5);
        var_7 = 0;
      }
    }
  }
LAB_0010ad2f:
  if (var_11 != *(long *)(var_1 + 0x28)) {
                    /* WARNING: Subroutine does not return */
    var_12();
  }
  return var_7;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (sized_type_specifier) declarator: (identifier)) (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: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (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))))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (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 (identifier))))) (expression_statement (assignment_expression left: (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))))) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))))) (expression_statement (assignment_expression left: (identifier) 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: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (identifier))) (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) (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))))) (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))) (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: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (string_literal (string_content)))) (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) (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))))) (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content) (escape_sequence)) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content) (escape_sequence)) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))))))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_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))))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list)))))) (return_statement (identifier)))))

undefined4 MASKED(char *param_1)

{
  int iVar1;
  int *piVar2;
  char *pcVar3;
  undefined4 uVar4;
  long in_FS_OFFSET;
  undefined1 local_2c [12];
  long local_20;
  
  local_20 = *(long *)(in_FS_OFFSET + 0x28);
  iVar1 = FUN_0010ac95();
  *(int *)(param_1 + 0x180) = iVar1;
  uVar4 = 0;
  if (iVar1 != -1) {
    if ((param_1[0x1b5] & 0x80U) != 0) {
      iVar1 = FUN_0010ac95(param_1);
      *(int *)(param_1 + 0x188) = iVar1;
      if (iVar1 == -1) goto LAB_0010ad2f;
    }
    uVar4 = 1;
    if ((*(int *)(param_1 + 0x178) != -1) && (param_1[0x195] == '\0')) {
      local_2c._0_4_ = 1;
      local_2c._4_8_ = param_1;
      iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 0x178),
                        (epoll_event *)local_2c);
      if (iVar1 == 0) {
        param_1[0x184] = '\x01';
        if (*(int *)(param_1 + 400) == -1) {
          uVar4 = 1;
        }
        else {
          local_2c._0_4_ = 1;
          local_2c._4_8_ = "itc_marker";
          iVar1 = epoll_ctl(*(int *)(param_1 + 0x180),1,*(int *)(param_1 + 400),
                            (epoll_event *)local_2c);
          if (iVar1 == 0) {
            uVar4 = 1;
          }
          else {
            piVar2 = __errno_location();
            pcVar3 = strerror(*piVar2);
            FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);
            uVar4 = 0;
          }
        }
      }
      else {
        piVar2 = __errno_location();
        pcVar3 = strerror(*piVar2);
        FUN_00110c11(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);
        uVar4 = 0;
      }
    }
  }
LAB_0010ad2f:
  if (local_20 != *(long *)(in_FS_OFFSET + 0x28)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
  return uVar4;
}

