
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* 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 __regparm3 setup_epoll_to_listen(MHD_Daemon *daemon)

{
  int iVar1;
  int iVar2;
  int *piVar3;
  char *pcVar4;
  int in_GS_OFFSET;
  epoll_event event;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  iVar2 = epoll_create1(0x80000);
  if (iVar2 == -1) {
    iVar2 = setup_epoll_fd(daemon);
    daemon->epoll_fd = iVar2;
    if (iVar2 == -1) {
      iVar2 = 0;
      goto LAB_0001b934;
    }
  }
  else {
    daemon->epoll_fd = iVar2;
  }
  if ((daemon->options & MHD_ALLOW_UPGRADE) != MHD_NO_FLAG) {
    iVar2 = epoll_create1(0x80000);
    if (iVar2 == -1) {
      iVar2 = setup_epoll_fd(daemon);
      daemon->epoll_upgrade_fd = iVar2;
      if (iVar2 == -1) {
        iVar2 = 0;
        goto LAB_0001b934;
      }
    }
    else {
      daemon->epoll_upgrade_fd = iVar2;
    }
  }
  if ((daemon->listen_fd != -1) && (daemon->was_quiesced == false)) {
    event.events = 1;
    event.data.ptr = daemon;
    iVar2 = epoll_ctl(daemon->epoll_fd,1,daemon->listen_fd,(epoll_event *)&event);
    if (iVar2 != 0) {
      piVar3 = __errno_location();
      iVar2 = 0;
      pcVar4 = strerror(*piVar3);
      MHD_DLOG(daemon,"Call to epoll_ctl failed: %s\n",pcVar4);
      goto LAB_0001b934;
    }
    iVar2 = (daemon->itc).fd;
    daemon->listen_socket_in_epoll = true;
    if (iVar2 != -1) {
      event.events = 1;
      event.data.ptr = "itc_marker";
      iVar2 = epoll_ctl(daemon->epoll_fd,1,iVar2,(epoll_event *)&event);
      if (iVar2 != 0) {
        piVar3 = __errno_location();
        pcVar4 = strerror(*piVar3);
        MHD_DLOG(daemon,"Call to epoll_ctl failed: %s\n",pcVar4);
        iVar2 = 0;
        goto LAB_0001b934;
      }
    }
  }
  iVar2 = 1;
LAB_0001b934:
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar2;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

undefined4 __regparm3 FUN_0001b8d0(char *param_1)

{
  int iVar1;
  int *piVar2;
  char *pcVar3;
  undefined4 uVar4;
  int in_GS_OFFSET;
  epoll_event local_2c;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x1b8db;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  iVar1 = epoll_create1(0x80000);
  if (iVar1 == -1) {
    iVar1 = FUN_0001b890();
    *(int *)(param_1 + 0xcc) = iVar1;
    if (iVar1 == -1) {
      uVar4 = 0;
      goto LAB_0001b934;
    }
  }
  else {
    *(int *)(param_1 + 0xcc) = iVar1;
  }
  if ((param_1[0xf9] & 0x80U) != 0) {
    iVar1 = epoll_create1(0x80000);
    if (iVar1 == -1) {
      iVar1 = FUN_0001b890();
      *(int *)(param_1 + 0xd4) = iVar1;
      if (iVar1 == -1) {
        uVar4 = 0;
        goto LAB_0001b934;
      }
    }
    else {
      *(int *)(param_1 + 0xd4) = iVar1;
    }
  }
  if ((*(int *)(param_1 + 0xc4) != -1) && (param_1[0xe1] == '\0')) {
    local_2c.events = 1;
    local_2c.data.fd = (int)param_1;
    iVar1 = epoll_ctl(*(int *)(param_1 + 0xcc),1,*(int *)(param_1 + 0xc4),&local_2c);
    if (iVar1 != 0) {
      piVar2 = __errno_location();
      uVar4 = 0;
      pcVar3 = strerror(*piVar2);
      FUN_00020aa0(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);
      goto LAB_0001b934;
    }
    param_1[0xd0] = '\x01';
    if (*(int *)(param_1 + 0xdc) != -1) {
      local_2c.data.ptr = "itc_marker";
      local_2c.events = 1;
      iVar1 = epoll_ctl(*(int *)(param_1 + 0xcc),1,*(int *)(param_1 + 0xdc),&local_2c);
      if (iVar1 != 0) {
        piVar2 = __errno_location();
        pcVar3 = strerror(*piVar2);
        FUN_00020aa0(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);
        uVar4 = 0;
        goto LAB_0001b934;
      }
    }
  }
  uVar4 = 1;
LAB_0001b934:
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return uVar4;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00028540();
}


PUSH EBP
PUSH EDI
PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x00013810
ADD EBX,0x18505
SUB ESP,0x28
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x18],EAX
XOR EAX,EAX
PUSH 0x80000
CALL 0x00013730
ADD ESP,0x10
CMP EAX,-0x1
JZ 0x0001ba00
MOV dword ptr [ESI + 0xcc],EAX
TEST byte ptr [ESI + 0xf9],0x80
JNZ 0x0001b9e0
MOV EAX,dword ptr [ESI + 0xc4]
CMP EAX,-0x1
JZ 0x0001b92f
MOVZX EDX,byte ptr [ESI + 0xe1]
TEST DL,DL
JZ 0x0001b950
MOV EDI,0x1
MOV ECX,dword ptr [ESP + 0xc]
XOR ECX,dword ptr GS:[0x14]
MOV EAX,EDI
JNZ 0x0001ba67
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EBP,ESP
MOV dword ptr [ESP],0x1
MOV dword ptr [ESP + 0x4],ESI
PUSH EBP
PUSH EAX
PUSH 0x1
PUSH dword ptr [ESI + 0xcc]
CALL 0x00013310
ADD ESP,0x10
MOV EDI,EAX
TEST EAX,EAX
JNZ 0x0001ba20
MOV EAX,dword ptr [ESI + 0xdc]
MOV byte ptr [ESI + 0xd0],0x1
CMP EAX,-0x1
JZ 0x0001b92f
LEA EDX,[EBX + 0xffff62e0]
MOV dword ptr [ESP],0x1
MOV dword ptr [ESP + 0x4],EDX
PUSH EBP
PUSH EAX
PUSH 0x1
PUSH dword ptr [ESI + 0xcc]
CALL 0x00013310
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0001b92f
CALL 0x000134b0
SUB ESP,0xc
PUSH dword ptr [EAX]
CALL 0x00013390
ADD ESP,0xc
PUSH EAX
LEA EAX,[EBX + 0xffff535b]
PUSH EAX
PUSH ESI
CALL 0x00020aa0
ADD ESP,0x10
JMP 0x0001b934
SUB ESP,0xc
PUSH 0x80000
CALL 0x00013730
ADD ESP,0x10
CMP EAX,-0x1
JZ 0x0001ba4a
MOV dword ptr [ESI + 0xd4],EAX
JMP 0x0001b919
MOV EAX,ESI
CALL 0x0001b890
MOV dword ptr [ESI + 0xcc],EAX
CMP EAX,-0x1
JNZ 0x0001b90c
XOR EDI,EDI
JMP 0x0001b934
CALL 0x000134b0
SUB ESP,0xc
XOR EDI,EDI
PUSH dword ptr [EAX]
CALL 0x00013390
ADD ESP,0xc
PUSH EAX
LEA EAX,[EBX + 0xffff535b]
PUSH EAX
PUSH ESI
CALL 0x00020aa0
ADD ESP,0x10
JMP 0x0001b934
MOV EAX,ESI
CALL 0x0001b890
MOV dword ptr [ESI + 0xd4],EAX
CMP EAX,-0x1
JNZ 0x0001b919
XOR EDI,EDI
JMP 0x0001b934
CALL 0x00028540
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 __regparm3 FUN_0001b8d0(char *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  int in_GS_OFFSET;\n  epoll_event local_2c;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1b8db;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = epoll_create1(0x80000);\n  if (iVar1 == -1) {\n    iVar1 = FUN_0001b890();\n    *(int *)(param_1 + 0xcc) = iVar1;\n    if (iVar1 == -1) {\n      uVar4 = 0;\n      goto LAB_0001b934;\n    }\n  }\n  else {\n    *(int *)(param_1 + 0xcc) = iVar1;\n  }\n  if ((param_1[0xf9] & 0x80U) != 0) {\n    iVar1 = epoll_create1(0x80000);\n    if (iVar1 == -1) {\n      iVar1 = FUN_0001b890();\n      *(int *)(param_1 + 0xd4) = iVar1;\n      if (iVar1 == -1) {\n        uVar4 = 0;\n        goto LAB_0001b934;\n      }\n    }\n    else {\n      *(int *)(param_1 + 0xd4) = iVar1;\n    }\n  }\n  if ((*(int *)(param_1 + 0xc4) != -1) && (param_1[0xe1] == '\0')) {\n    local_2c.events = 1;\n    local_2c.data.fd = (int)param_1;\n    iVar1 = epoll_ctl(*(int *)(param_1 + 0xcc),1,*(int *)(param_1 + 0xc4),&local_2c);\n    if (iVar1 != 0) {\n      piVar2 = __errno_location();\n      uVar4 = 0;\n      pcVar3 = strerror(*piVar2);\n      FUN_00020aa0(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n      goto LAB_0001b934;\n    }\n    param_1[0xd0] = '\x01';\n    if (*(int *)(param_1 + 0xdc) != -1) {\n      local_2c.data.ptr = "itc_marker";\n      local_2c.events = 1;\n      iVar1 = epoll_ctl(*(int *)(param_1 + 0xcc),1,*(int *)(param_1 + 0xdc),&local_2c);\n      if (iVar1 != 0) {\n        piVar2 = __errno_location();\n        pcVar3 = strerror(*piVar2);\n        FUN_00020aa0(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n        uVar4 = 0;\n        goto LAB_0001b934;\n      }\n    }\n  }\n  uVar4 = 1;\nLAB_0001b934:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00028540();\n}\n\n" comment (function_definition "undefined4 __regparm3 FUN_0001b8d0(char *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  int in_GS_OFFSET;\n  epoll_event local_2c;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1b8db;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = epoll_create1(0x80000);\n  if (iVar1 == -1) {\n    iVar1 = FUN_0001b890();\n    *(int *)(param_1 + 0xcc) = iVar1;\n    if (iVar1 == -1) {\n      uVar4 = 0;\n      goto LAB_0001b934;\n    }\n  }\n  else {\n    *(int *)(param_1 + 0xcc) = iVar1;\n  }\n  if ((param_1[0xf9] & 0x80U) != 0) {\n    iVar1 = epoll_create1(0x80000);\n    if (iVar1 == -1) {\n      iVar1 = FUN_0001b890();\n      *(int *)(param_1 + 0xd4) = iVar1;\n      if (iVar1 == -1) {\n        uVar4 = 0;\n        goto LAB_0001b934;\n      }\n    }\n    else {\n      *(int *)(param_1 + 0xd4) = iVar1;\n    }\n  }\n  if ((*(int *)(param_1 + 0xc4) != -1) && (param_1[0xe1] == '\0')) {\n    local_2c.events = 1;\n    local_2c.data.fd = (int)param_1;\n    iVar1 = epoll_ctl(*(int *)(param_1 + 0xcc),1,*(int *)(param_1 + 0xc4),&local_2c);\n    if (iVar1 != 0) {\n      piVar2 = __errno_location();\n      uVar4 = 0;\n      pcVar3 = strerror(*piVar2);\n      FUN_00020aa0(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n      goto LAB_0001b934;\n    }\n    param_1[0xd0] = '\x01';\n    if (*(int *)(param_1 + 0xdc) != -1) {\n      local_2c.data.ptr = "itc_marker";\n      local_2c.events = 1;\n      iVar1 = epoll_ctl(*(int *)(param_1 + 0xcc),1,*(int *)(param_1 + 0xdc),&local_2c);\n      if (iVar1 != 0) {\n        piVar2 = __errno_location();\n        pcVar3 = strerror(*piVar2);\n        FUN_00020aa0(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n        uVar4 = 0;\n        goto LAB_0001b934;\n      }\n    }\n  }\n  uVar4 = 1;\nLAB_0001b934:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00028540();\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0001b8d0(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  int in_GS_OFFSET;\n  epoll_event local_2c;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1b8db;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = epoll_create1(0x80000);\n  if (iVar1 == -1) {\n    iVar1 = FUN_0001b890();\n    *(int *)(param_1 + 0xcc) = iVar1;\n    if (iVar1 == -1) {\n      uVar4 = 0;\n      goto LAB_0001b934;\n    }\n  }\n  else {\n    *(int *)(param_1 + 0xcc) = iVar1;\n  }\n  if ((param_1[0xf9] & 0x80U) != 0) {\n    iVar1 = epoll_create1(0x80000);\n    if (iVar1 == -1) {\n      iVar1 = FUN_0001b890();\n      *(int *)(param_1 + 0xd4) = iVar1;\n      if (iVar1 == -1) {\n        uVar4 = 0;\n        goto LAB_0001b934;\n      }\n    }\n    else {\n      *(int *)(param_1 + 0xd4) = iVar1;\n    }\n  }\n  if ((*(int *)(param_1 + 0xc4) != -1) && (param_1[0xe1] == '\0')) {\n    local_2c.events = 1;\n    local_2c.data.fd = (int)param_1;\n    iVar1 = epoll_ctl(*(int *)(param_1 + 0xcc),1,*(int *)(param_1 + 0xc4),&local_2c);\n    if (iVar1 != 0) {\n      piVar2 = __errno_location();\n      uVar4 = 0;\n      pcVar3 = strerror(*piVar2);\n      FUN_00020aa0(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n      goto LAB_0001b934;\n    }\n    param_1[0xd0] = '\x01';\n    if (*(int *)(param_1 + 0xdc) != -1) {\n      local_2c.data.ptr = "itc_marker";\n      local_2c.events = 1;\n      iVar1 = epoll_ctl(*(int *)(param_1 + 0xcc),1,*(int *)(param_1 + 0xdc),&local_2c);\n      if (iVar1 != 0) {\n        piVar2 = __errno_location();\n        pcVar3 = strerror(*piVar2);\n        FUN_00020aa0(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n        uVar4 = 0;\n        goto LAB_0001b934;\n      }\n    }\n  }\n  uVar4 = 1;\nLAB_0001b934:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00028540();\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 "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "epoll_event local_2c;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1b8db;" (assignment_expression "uStack_14 = 0x1b8db" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = epoll_create1(0x80000);" (assignment_expression "iVar1 = epoll_create1(0x80000)" identifier = (call_expression "epoll_create1(0x80000)" identifier (argument_list "(0x80000)" ( number_literal )))) ;) (if_statement "if (iVar1 == -1) {\n    iVar1 = FUN_0001b890();\n    *(int *)(param_1 + 0xcc) = iVar1;\n    if (iVar1 == -1) {\n      uVar4 = 0;\n      goto LAB_0001b934;\n    }\n  }\n  else {\n    *(int *)(param_1 + 0xcc) = iVar1;\n  }" if (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) )) (compound_statement "{\n    iVar1 = FUN_0001b890();\n    *(int *)(param_1 + 0xcc) = iVar1;\n    if (iVar1 == -1) {\n      uVar4 = 0;\n      goto LAB_0001b934;\n    }\n  }" { (expression_statement "iVar1 = FUN_0001b890();" (assignment_expression "iVar1 = FUN_0001b890()" identifier = (call_expression "FUN_0001b890()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(int *)(param_1 + 0xcc) = iVar1;" (assignment_expression "*(int *)(param_1 + 0xcc) = iVar1" (pointer_expression "*(int *)(param_1 + 0xcc)" * (cast_expression "(int *)(param_1 + 0xcc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xcc)" ( (binary_expression "param_1 + 0xcc" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar1 == -1) {\n      uVar4 = 0;\n      goto LAB_0001b934;\n    }" if (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) )) (compound_statement "{\n      uVar4 = 0;\n      goto LAB_0001b934;\n    }" { (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_0001b934;" goto statement_identifier ;) })) }) (else_clause "else {\n    *(int *)(param_1 + 0xcc) = iVar1;\n  }" else (compound_statement "{\n    *(int *)(param_1 + 0xcc) = iVar1;\n  }" { (expression_statement "*(int *)(param_1 + 0xcc) = iVar1;" (assignment_expression "*(int *)(param_1 + 0xcc) = iVar1" (pointer_expression "*(int *)(param_1 + 0xcc)" * (cast_expression "(int *)(param_1 + 0xcc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xcc)" ( (binary_expression "param_1 + 0xcc" identifier + number_literal) )))) = identifier) ;) }))) (if_statement "if ((param_1[0xf9] & 0x80U) != 0) {\n    iVar1 = epoll_create1(0x80000);\n    if (iVar1 == -1) {\n      iVar1 = FUN_0001b890();\n      *(int *)(param_1 + 0xd4) = iVar1;\n      if (iVar1 == -1) {\n        uVar4 = 0;\n        goto LAB_0001b934;\n      }\n    }\n    else {\n      *(int *)(param_1 + 0xd4) = iVar1;\n    }\n  }" if (parenthesized_expression "((param_1[0xf9] & 0x80U) != 0)" ( (binary_expression "(param_1[0xf9] & 0x80U) != 0" (parenthesized_expression "(param_1[0xf9] & 0x80U)" ( (binary_expression "param_1[0xf9] & 0x80U" (subscript_expression "param_1[0xf9]" identifier [ number_literal ]) & number_literal) )) != number_literal) )) (compound_statement "{\n    iVar1 = epoll_create1(0x80000);\n    if (iVar1 == -1) {\n      iVar1 = FUN_0001b890();\n      *(int *)(param_1 + 0xd4) = iVar1;\n      if (iVar1 == -1) {\n        uVar4 = 0;\n        goto LAB_0001b934;\n      }\n    }\n    else {\n      *(int *)(param_1 + 0xd4) = iVar1;\n    }\n  }" { (expression_statement "iVar1 = epoll_create1(0x80000);" (assignment_expression "iVar1 = epoll_create1(0x80000)" identifier = (call_expression "epoll_create1(0x80000)" identifier (argument_list "(0x80000)" ( number_literal )))) ;) (if_statement "if (iVar1 == -1) {\n      iVar1 = FUN_0001b890();\n      *(int *)(param_1 + 0xd4) = iVar1;\n      if (iVar1 == -1) {\n        uVar4 = 0;\n        goto LAB_0001b934;\n      }\n    }\n    else {\n      *(int *)(param_1 + 0xd4) = iVar1;\n    }" if (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) )) (compound_statement "{\n      iVar1 = FUN_0001b890();\n      *(int *)(param_1 + 0xd4) = iVar1;\n      if (iVar1 == -1) {\n        uVar4 = 0;\n        goto LAB_0001b934;\n      }\n    }" { (expression_statement "iVar1 = FUN_0001b890();" (assignment_expression "iVar1 = FUN_0001b890()" identifier = (call_expression "FUN_0001b890()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(int *)(param_1 + 0xd4) = iVar1;" (assignment_expression "*(int *)(param_1 + 0xd4) = iVar1" (pointer_expression "*(int *)(param_1 + 0xd4)" * (cast_expression "(int *)(param_1 + 0xd4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xd4)" ( (binary_expression "param_1 + 0xd4" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar1 == -1) {\n        uVar4 = 0;\n        goto LAB_0001b934;\n      }" if (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) )) (compound_statement "{\n        uVar4 = 0;\n        goto LAB_0001b934;\n      }" { (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_0001b934;" goto statement_identifier ;) })) }) (else_clause "else {\n      *(int *)(param_1 + 0xd4) = iVar1;\n    }" else (compound_statement "{\n      *(int *)(param_1 + 0xd4) = iVar1;\n    }" { (expression_statement "*(int *)(param_1 + 0xd4) = iVar1;" (assignment_expression "*(int *)(param_1 + 0xd4) = iVar1" (pointer_expression "*(int *)(param_1 + 0xd4)" * (cast_expression "(int *)(param_1 + 0xd4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xd4)" ( (binary_expression "param_1 + 0xd4" identifier + number_literal) )))) = identifier) ;) }))) })) (if_statement "if ((*(int *)(param_1 + 0xc4) != -1) && (param_1[0xe1] == '\0')) {\n    local_2c.events = 1;\n    local_2c.data.fd = (int)param_1;\n    iVar1 = epoll_ctl(*(int *)(param_1 + 0xcc),1,*(int *)(param_1 + 0xc4),&local_2c);\n    if (iVar1 != 0) {\n      piVar2 = __errno_location();\n      uVar4 = 0;\n      pcVar3 = strerror(*piVar2);\n      FUN_00020aa0(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n      goto LAB_0001b934;\n    }\n    param_1[0xd0] = '\x01';\n    if (*(int *)(param_1 + 0xdc) != -1) {\n      local_2c.data.ptr = "itc_marker";\n      local_2c.events = 1;\n      iVar1 = epoll_ctl(*(int *)(param_1 + 0xcc),1,*(int *)(param_1 + 0xdc),&local_2c);\n      if (iVar1 != 0) {\n        piVar2 = __errno_location();\n        pcVar3 = strerror(*piVar2);\n        FUN_00020aa0(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n        uVar4 = 0;\n        goto LAB_0001b934;\n      }\n    }\n  }" if (parenthesized_expression "((*(int *)(param_1 + 0xc4) != -1) && (param_1[0xe1] == '\0'))" ( (binary_expression "(*(int *)(param_1 + 0xc4) != -1) && (param_1[0xe1] == '\0')" (parenthesized_expression "(*(int *)(param_1 + 0xc4) != -1)" ( (binary_expression "*(int *)(param_1 + 0xc4) != -1" (pointer_expression "*(int *)(param_1 + 0xc4)" * (cast_expression "(int *)(param_1 + 0xc4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc4)" ( (binary_expression "param_1 + 0xc4" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "(param_1[0xe1] == '\0')" ( (binary_expression "param_1[0xe1] == '\0'" (subscript_expression "param_1[0xe1]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    local_2c.events = 1;\n    local_2c.data.fd = (int)param_1;\n    iVar1 = epoll_ctl(*(int *)(param_1 + 0xcc),1,*(int *)(param_1 + 0xc4),&local_2c);\n    if (iVar1 != 0) {\n      piVar2 = __errno_location();\n      uVar4 = 0;\n      pcVar3 = strerror(*piVar2);\n      FUN_00020aa0(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n      goto LAB_0001b934;\n    }\n    param_1[0xd0] = '\x01';\n    if (*(int *)(param_1 + 0xdc) != -1) {\n      local_2c.data.ptr = "itc_marker";\n      local_2c.events = 1;\n      iVar1 = epoll_ctl(*(int *)(param_1 + 0xcc),1,*(int *)(param_1 + 0xdc),&local_2c);\n      if (iVar1 != 0) {\n        piVar2 = __errno_location();\n        pcVar3 = strerror(*piVar2);\n        FUN_00020aa0(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n        uVar4 = 0;\n        goto LAB_0001b934;\n      }\n    }\n  }" { (expression_statement "local_2c.events = 1;" (assignment_expression "local_2c.events = 1" (field_expression "local_2c.events" identifier . field_identifier) = number_literal) ;) (expression_statement "local_2c.data.fd = (int)param_1;" (assignment_expression "local_2c.data.fd = (int)param_1" (field_expression "local_2c.data.fd" (field_expression "local_2c.data" identifier . field_identifier) . field_identifier) = (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "iVar1 = epoll_ctl(*(int *)(param_1 + 0xcc),1,*(int *)(param_1 + 0xc4),&local_2c);" (assignment_expression "iVar1 = epoll_ctl(*(int *)(param_1 + 0xcc),1,*(int *)(param_1 + 0xc4),&local_2c)" identifier = (call_expression "epoll_ctl(*(int *)(param_1 + 0xcc),1,*(int *)(param_1 + 0xc4),&local_2c)" identifier (argument_list "(*(int *)(param_1 + 0xcc),1,*(int *)(param_1 + 0xc4),&local_2c)" ( (pointer_expression "*(int *)(param_1 + 0xcc)" * (cast_expression "(int *)(param_1 + 0xcc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xcc)" ( (binary_expression "param_1 + 0xcc" identifier + number_literal) )))) , number_literal , (pointer_expression "*(int *)(param_1 + 0xc4)" * (cast_expression "(int *)(param_1 + 0xc4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc4)" ( (binary_expression "param_1 + 0xc4" identifier + number_literal) )))) , (pointer_expression "&local_2c" & identifier) )))) ;) (if_statement "if (iVar1 != 0) {\n      piVar2 = __errno_location();\n      uVar4 = 0;\n      pcVar3 = strerror(*piVar2);\n      FUN_00020aa0(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n      goto LAB_0001b934;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      piVar2 = __errno_location();\n      uVar4 = 0;\n      pcVar3 = strerror(*piVar2);\n      FUN_00020aa0(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n      goto LAB_0001b934;\n    }" { (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (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_00020aa0(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);" (call_expression "FUN_00020aa0(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 ))) ;) (goto_statement "goto LAB_0001b934;" goto statement_identifier ;) })) (expression_statement "param_1[0xd0] = '\x01';" (assignment_expression "param_1[0xd0] = '\x01'" (subscript_expression "param_1[0xd0]" identifier [ number_literal ]) = (char_literal "'\x01'" ' escape_sequence ')) ;) (if_statement "if (*(int *)(param_1 + 0xdc) != -1) {\n      local_2c.data.ptr = "itc_marker";\n      local_2c.events = 1;\n      iVar1 = epoll_ctl(*(int *)(param_1 + 0xcc),1,*(int *)(param_1 + 0xdc),&local_2c);\n      if (iVar1 != 0) {\n        piVar2 = __errno_location();\n        pcVar3 = strerror(*piVar2);\n        FUN_00020aa0(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n        uVar4 = 0;\n        goto LAB_0001b934;\n      }\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0xdc) != -1)" ( (binary_expression "*(int *)(param_1 + 0xdc) != -1" (pointer_expression "*(int *)(param_1 + 0xdc)" * (cast_expression "(int *)(param_1 + 0xdc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xdc)" ( (binary_expression "param_1 + 0xdc" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      local_2c.data.ptr = "itc_marker";\n      local_2c.events = 1;\n      iVar1 = epoll_ctl(*(int *)(param_1 + 0xcc),1,*(int *)(param_1 + 0xdc),&local_2c);\n      if (iVar1 != 0) {\n        piVar2 = __errno_location();\n        pcVar3 = strerror(*piVar2);\n        FUN_00020aa0(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n        uVar4 = 0;\n        goto LAB_0001b934;\n      }\n    }" { (expression_statement "local_2c.data.ptr = "itc_marker";" (assignment_expression "local_2c.data.ptr = "itc_marker"" (field_expression "local_2c.data.ptr" (field_expression "local_2c.data" identifier . field_identifier) . field_identifier) = (string_literal ""itc_marker"" " string_content ")) ;) (expression_statement "local_2c.events = 1;" (assignment_expression "local_2c.events = 1" (field_expression "local_2c.events" identifier . field_identifier) = number_literal) ;) (expression_statement "iVar1 = epoll_ctl(*(int *)(param_1 + 0xcc),1,*(int *)(param_1 + 0xdc),&local_2c);" (assignment_expression "iVar1 = epoll_ctl(*(int *)(param_1 + 0xcc),1,*(int *)(param_1 + 0xdc),&local_2c)" identifier = (call_expression "epoll_ctl(*(int *)(param_1 + 0xcc),1,*(int *)(param_1 + 0xdc),&local_2c)" identifier (argument_list "(*(int *)(param_1 + 0xcc),1,*(int *)(param_1 + 0xdc),&local_2c)" ( (pointer_expression "*(int *)(param_1 + 0xcc)" * (cast_expression "(int *)(param_1 + 0xcc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xcc)" ( (binary_expression "param_1 + 0xcc" identifier + number_literal) )))) , number_literal , (pointer_expression "*(int *)(param_1 + 0xdc)" * (cast_expression "(int *)(param_1 + 0xdc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xdc)" ( (binary_expression "param_1 + 0xdc" identifier + number_literal) )))) , (pointer_expression "&local_2c" & identifier) )))) ;) (if_statement "if (iVar1 != 0) {\n        piVar2 = __errno_location();\n        pcVar3 = strerror(*piVar2);\n        FUN_00020aa0(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n        uVar4 = 0;\n        goto LAB_0001b934;\n      }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        piVar2 = __errno_location();\n        pcVar3 = strerror(*piVar2);\n        FUN_00020aa0(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n        uVar4 = 0;\n        goto LAB_0001b934;\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_00020aa0(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);" (call_expression "FUN_00020aa0(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) ;) (goto_statement "goto LAB_0001b934;" goto statement_identifier ;) })) })) })) (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" identifier = number_literal) ;) (labeled_statement "LAB_0001b934:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }" statement_identifier : (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return uVar4;\n  }" { (return_statement "return uVar4;" return identifier ;) }))) comment (expression_statement "FUN_00028540();" (call_expression "FUN_00028540()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* 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 __regparm3 setup_epoll_to_listen(MHD_Daemon *daemon)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  char *pcVar4;\n  int in_GS_OFFSET;\n  epoll_event event;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = epoll_create1(0x80000);\n  if (iVar2 == -1) {\n    iVar2 = setup_epoll_fd(daemon);\n    daemon->epoll_fd = iVar2;\n    if (iVar2 == -1) {\n      iVar2 = 0;\n      goto LAB_0001b934;\n    }\n  }\n  else {\n    daemon->epoll_fd = iVar2;\n  }\n  if ((daemon->options & MHD_ALLOW_UPGRADE) != MHD_NO_FLAG) {\n    iVar2 = epoll_create1(0x80000);\n    if (iVar2 == -1) {\n      iVar2 = setup_epoll_fd(daemon);\n      daemon->epoll_upgrade_fd = iVar2;\n      if (iVar2 == -1) {\n        iVar2 = 0;\n        goto LAB_0001b934;\n      }\n    }\n    else {\n      daemon->epoll_upgrade_fd = iVar2;\n    }\n  }\n  if ((daemon->listen_fd != -1) && (daemon->was_quiesced == false)) {\n    event.events = 1;\n    event.data.ptr = daemon;\n    iVar2 = epoll_ctl(daemon->epoll_fd,1,daemon->listen_fd,(epoll_event *)&event);\n    if (iVar2 != 0) {\n      piVar3 = __errno_location();\n      iVar2 = 0;\n      pcVar4 = strerror(*piVar3);\n      MHD_DLOG(daemon,"Call to epoll_ctl failed: %s\n",pcVar4);\n      goto LAB_0001b934;\n    }\n    iVar2 = (daemon->itc).fd;\n    daemon->listen_socket_in_epoll = true;\n    if (iVar2 != -1) {\n      event.events = 1;\n      event.data.ptr = "itc_marker";\n      iVar2 = epoll_ctl(daemon->epoll_fd,1,iVar2,(epoll_event *)&event);\n      if (iVar2 != 0) {\n        piVar3 = __errno_location();\n        pcVar4 = strerror(*piVar3);\n        MHD_DLOG(daemon,"Call to epoll_ctl failed: %s\n",pcVar4);\n        iVar2 = 0;\n        goto LAB_0001b934;\n      }\n    }\n  }\n  iVar2 = 1;\nLAB_0001b934:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment comment comment (function_definition "int __regparm3 setup_epoll_to_listen(MHD_Daemon *daemon)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  char *pcVar4;\n  int in_GS_OFFSET;\n  epoll_event event;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = epoll_create1(0x80000);\n  if (iVar2 == -1) {\n    iVar2 = setup_epoll_fd(daemon);\n    daemon->epoll_fd = iVar2;\n    if (iVar2 == -1) {\n      iVar2 = 0;\n      goto LAB_0001b934;\n    }\n  }\n  else {\n    daemon->epoll_fd = iVar2;\n  }\n  if ((daemon->options & MHD_ALLOW_UPGRADE) != MHD_NO_FLAG) {\n    iVar2 = epoll_create1(0x80000);\n    if (iVar2 == -1) {\n      iVar2 = setup_epoll_fd(daemon);\n      daemon->epoll_upgrade_fd = iVar2;\n      if (iVar2 == -1) {\n        iVar2 = 0;\n        goto LAB_0001b934;\n      }\n    }\n    else {\n      daemon->epoll_upgrade_fd = iVar2;\n    }\n  }\n  if ((daemon->listen_fd != -1) && (daemon->was_quiesced == false)) {\n    event.events = 1;\n    event.data.ptr = daemon;\n    iVar2 = epoll_ctl(daemon->epoll_fd,1,daemon->listen_fd,(epoll_event *)&event);\n    if (iVar2 != 0) {\n      piVar3 = __errno_location();\n      iVar2 = 0;\n      pcVar4 = strerror(*piVar3);\n      MHD_DLOG(daemon,"Call to epoll_ctl failed: %s\n",pcVar4);\n      goto LAB_0001b934;\n    }\n    iVar2 = (daemon->itc).fd;\n    daemon->listen_socket_in_epoll = true;\n    if (iVar2 != -1) {\n      event.events = 1;\n      event.data.ptr = "itc_marker";\n      iVar2 = epoll_ctl(daemon->epoll_fd,1,iVar2,(epoll_event *)&event);\n      if (iVar2 != 0) {\n        piVar3 = __errno_location();\n        pcVar4 = strerror(*piVar3);\n        MHD_DLOG(daemon,"Call to epoll_ctl failed: %s\n",pcVar4);\n        iVar2 = 0;\n        goto LAB_0001b934;\n      }\n    }\n  }\n  iVar2 = 1;\nLAB_0001b934:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (ERROR "__regparm3" identifier) (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  int iVar1;\n  int iVar2;\n  int *piVar3;\n  char *pcVar4;\n  int in_GS_OFFSET;\n  epoll_event event;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = epoll_create1(0x80000);\n  if (iVar2 == -1) {\n    iVar2 = setup_epoll_fd(daemon);\n    daemon->epoll_fd = iVar2;\n    if (iVar2 == -1) {\n      iVar2 = 0;\n      goto LAB_0001b934;\n    }\n  }\n  else {\n    daemon->epoll_fd = iVar2;\n  }\n  if ((daemon->options & MHD_ALLOW_UPGRADE) != MHD_NO_FLAG) {\n    iVar2 = epoll_create1(0x80000);\n    if (iVar2 == -1) {\n      iVar2 = setup_epoll_fd(daemon);\n      daemon->epoll_upgrade_fd = iVar2;\n      if (iVar2 == -1) {\n        iVar2 = 0;\n        goto LAB_0001b934;\n      }\n    }\n    else {\n      daemon->epoll_upgrade_fd = iVar2;\n    }\n  }\n  if ((daemon->listen_fd != -1) && (daemon->was_quiesced == false)) {\n    event.events = 1;\n    event.data.ptr = daemon;\n    iVar2 = epoll_ctl(daemon->epoll_fd,1,daemon->listen_fd,(epoll_event *)&event);\n    if (iVar2 != 0) {\n      piVar3 = __errno_location();\n      iVar2 = 0;\n      pcVar4 = strerror(*piVar3);\n      MHD_DLOG(daemon,"Call to epoll_ctl failed: %s\n",pcVar4);\n      goto LAB_0001b934;\n    }\n    iVar2 = (daemon->itc).fd;\n    daemon->listen_socket_in_epoll = true;\n    if (iVar2 != -1) {\n      event.events = 1;\n      event.data.ptr = "itc_marker";\n      iVar2 = epoll_ctl(daemon->epoll_fd,1,iVar2,(epoll_event *)&event);\n      if (iVar2 != 0) {\n        piVar3 = __errno_location();\n        pcVar4 = strerror(*piVar3);\n        MHD_DLOG(daemon,"Call to epoll_ctl failed: %s\n",pcVar4);\n        iVar2 = 0;\n        goto LAB_0001b934;\n      }\n    }\n  }\n  iVar2 = 1;\nLAB_0001b934:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "epoll_event event;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = epoll_create1(0x80000);" (assignment_expression "iVar2 = epoll_create1(0x80000)" identifier = (call_expression "epoll_create1(0x80000)" identifier (argument_list "(0x80000)" ( number_literal )))) ;) (if_statement "if (iVar2 == -1) {\n    iVar2 = setup_epoll_fd(daemon);\n    daemon->epoll_fd = iVar2;\n    if (iVar2 == -1) {\n      iVar2 = 0;\n      goto LAB_0001b934;\n    }\n  }\n  else {\n    daemon->epoll_fd = iVar2;\n  }" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (compound_statement "{\n    iVar2 = setup_epoll_fd(daemon);\n    daemon->epoll_fd = iVar2;\n    if (iVar2 == -1) {\n      iVar2 = 0;\n      goto LAB_0001b934;\n    }\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_fd = iVar2;" (assignment_expression "daemon->epoll_fd = iVar2" (field_expression "daemon->epoll_fd" identifier -> field_identifier) = identifier) ;) (if_statement "if (iVar2 == -1) {\n      iVar2 = 0;\n      goto LAB_0001b934;\n    }" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (compound_statement "{\n      iVar2 = 0;\n      goto LAB_0001b934;\n    }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_0001b934;" goto statement_identifier ;) })) }) (else_clause "else {\n    daemon->epoll_fd = iVar2;\n  }" else (compound_statement "{\n    daemon->epoll_fd = iVar2;\n  }" { (expression_statement "daemon->epoll_fd = iVar2;" (assignment_expression "daemon->epoll_fd = iVar2" (field_expression "daemon->epoll_fd" identifier -> field_identifier) = identifier) ;) }))) (if_statement "if ((daemon->options & MHD_ALLOW_UPGRADE) != MHD_NO_FLAG) {\n    iVar2 = epoll_create1(0x80000);\n    if (iVar2 == -1) {\n      iVar2 = setup_epoll_fd(daemon);\n      daemon->epoll_upgrade_fd = iVar2;\n      if (iVar2 == -1) {\n        iVar2 = 0;\n        goto LAB_0001b934;\n      }\n    }\n    else {\n      daemon->epoll_upgrade_fd = iVar2;\n    }\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 = epoll_create1(0x80000);\n    if (iVar2 == -1) {\n      iVar2 = setup_epoll_fd(daemon);\n      daemon->epoll_upgrade_fd = iVar2;\n      if (iVar2 == -1) {\n        iVar2 = 0;\n        goto LAB_0001b934;\n      }\n    }\n    else {\n      daemon->epoll_upgrade_fd = iVar2;\n    }\n  }" { (expression_statement "iVar2 = epoll_create1(0x80000);" (assignment_expression "iVar2 = epoll_create1(0x80000)" identifier = (call_expression "epoll_create1(0x80000)" identifier (argument_list "(0x80000)" ( number_literal )))) ;) (if_statement "if (iVar2 == -1) {\n      iVar2 = setup_epoll_fd(daemon);\n      daemon->epoll_upgrade_fd = iVar2;\n      if (iVar2 == -1) {\n        iVar2 = 0;\n        goto LAB_0001b934;\n      }\n    }\n    else {\n      daemon->epoll_upgrade_fd = iVar2;\n    }" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (compound_statement "{\n      iVar2 = setup_epoll_fd(daemon);\n      daemon->epoll_upgrade_fd = iVar2;\n      if (iVar2 == -1) {\n        iVar2 = 0;\n        goto LAB_0001b934;\n      }\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) {\n        iVar2 = 0;\n        goto LAB_0001b934;\n      }" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (compound_statement "{\n        iVar2 = 0;\n        goto LAB_0001b934;\n      }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_0001b934;" goto statement_identifier ;) })) }) (else_clause "else {\n      daemon->epoll_upgrade_fd = iVar2;\n    }" else (compound_statement "{\n      daemon->epoll_upgrade_fd = iVar2;\n    }" { (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 ((daemon->listen_fd != -1) && (daemon->was_quiesced == false)) {\n    event.events = 1;\n    event.data.ptr = daemon;\n    iVar2 = epoll_ctl(daemon->epoll_fd,1,daemon->listen_fd,(epoll_event *)&event);\n    if (iVar2 != 0) {\n      piVar3 = __errno_location();\n      iVar2 = 0;\n      pcVar4 = strerror(*piVar3);\n      MHD_DLOG(daemon,"Call to epoll_ctl failed: %s\n",pcVar4);\n      goto LAB_0001b934;\n    }\n    iVar2 = (daemon->itc).fd;\n    daemon->listen_socket_in_epoll = true;\n    if (iVar2 != -1) {\n      event.events = 1;\n      event.data.ptr = "itc_marker";\n      iVar2 = epoll_ctl(daemon->epoll_fd,1,iVar2,(epoll_event *)&event);\n      if (iVar2 != 0) {\n        piVar3 = __errno_location();\n        pcVar4 = strerror(*piVar3);\n        MHD_DLOG(daemon,"Call to epoll_ctl failed: %s\n",pcVar4);\n        iVar2 = 0;\n        goto LAB_0001b934;\n      }\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.ptr = daemon;\n    iVar2 = epoll_ctl(daemon->epoll_fd,1,daemon->listen_fd,(epoll_event *)&event);\n    if (iVar2 != 0) {\n      piVar3 = __errno_location();\n      iVar2 = 0;\n      pcVar4 = strerror(*piVar3);\n      MHD_DLOG(daemon,"Call to epoll_ctl failed: %s\n",pcVar4);\n      goto LAB_0001b934;\n    }\n    iVar2 = (daemon->itc).fd;\n    daemon->listen_socket_in_epoll = true;\n    if (iVar2 != -1) {\n      event.events = 1;\n      event.data.ptr = "itc_marker";\n      iVar2 = epoll_ctl(daemon->epoll_fd,1,iVar2,(epoll_event *)&event);\n      if (iVar2 != 0) {\n        piVar3 = __errno_location();\n        pcVar4 = strerror(*piVar3);\n        MHD_DLOG(daemon,"Call to epoll_ctl failed: %s\n",pcVar4);\n        iVar2 = 0;\n        goto LAB_0001b934;\n      }\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 = daemon;" (assignment_expression "event.data.ptr = daemon" (field_expression "event.data.ptr" (field_expression "event.data" identifier . field_identifier) . field_identifier) = identifier) ;) (expression_statement "iVar2 = epoll_ctl(daemon->epoll_fd,1,daemon->listen_fd,(epoll_event *)&event);" (assignment_expression "iVar2 = 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 (iVar2 != 0) {\n      piVar3 = __errno_location();\n      iVar2 = 0;\n      pcVar4 = strerror(*piVar3);\n      MHD_DLOG(daemon,"Call to epoll_ctl failed: %s\n",pcVar4);\n      goto LAB_0001b934;\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      piVar3 = __errno_location();\n      iVar2 = 0;\n      pcVar4 = strerror(*piVar3);\n      MHD_DLOG(daemon,"Call to epoll_ctl failed: %s\n",pcVar4);\n      goto LAB_0001b934;\n    }" { (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "pcVar4 = strerror(*piVar3);" (assignment_expression "pcVar4 = strerror(*piVar3)" identifier = (call_expression "strerror(*piVar3)" identifier (argument_list "(*piVar3)" ( (pointer_expression "*piVar3" * identifier) )))) ;) (expression_statement "MHD_DLOG(daemon,"Call to epoll_ctl failed: %s\n",pcVar4);" (call_expression "MHD_DLOG(daemon,"Call to epoll_ctl failed: %s\n",pcVar4)" identifier (argument_list "(daemon,"Call to epoll_ctl failed: %s\n",pcVar4)" ( identifier , (string_literal ""Call to epoll_ctl failed: %s\n"" " string_content escape_sequence ") , identifier ))) ;) (goto_statement "goto LAB_0001b934;" goto statement_identifier ;) })) (expression_statement "iVar2 = (daemon->itc).fd;" (assignment_expression "iVar2 = (daemon->itc).fd" identifier = (field_expression "(daemon->itc).fd" (parenthesized_expression "(daemon->itc)" ( (field_expression "daemon->itc" identifier -> field_identifier) )) . field_identifier)) ;) (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) ;) (if_statement "if (iVar2 != -1) {\n      event.events = 1;\n      event.data.ptr = "itc_marker";\n      iVar2 = epoll_ctl(daemon->epoll_fd,1,iVar2,(epoll_event *)&event);\n      if (iVar2 != 0) {\n        piVar3 = __errno_location();\n        pcVar4 = strerror(*piVar3);\n        MHD_DLOG(daemon,"Call to epoll_ctl failed: %s\n",pcVar4);\n        iVar2 = 0;\n        goto LAB_0001b934;\n      }\n    }" if (parenthesized_expression "(iVar2 != -1)" ( (binary_expression "iVar2 != -1" identifier != number_literal) )) (compound_statement "{\n      event.events = 1;\n      event.data.ptr = "itc_marker";\n      iVar2 = epoll_ctl(daemon->epoll_fd,1,iVar2,(epoll_event *)&event);\n      if (iVar2 != 0) {\n        piVar3 = __errno_location();\n        pcVar4 = strerror(*piVar3);\n        MHD_DLOG(daemon,"Call to epoll_ctl failed: %s\n",pcVar4);\n        iVar2 = 0;\n        goto LAB_0001b934;\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 = "itc_marker";" (assignment_expression "event.data.ptr = "itc_marker"" (field_expression "event.data.ptr" (field_expression "event.data" identifier . field_identifier) . field_identifier) = (string_literal ""itc_marker"" " string_content ")) ;) (expression_statement "iVar2 = epoll_ctl(daemon->epoll_fd,1,iVar2,(epoll_event *)&event);" (assignment_expression "iVar2 = epoll_ctl(daemon->epoll_fd,1,iVar2,(epoll_event *)&event)" identifier = (call_expression "epoll_ctl(daemon->epoll_fd,1,iVar2,(epoll_event *)&event)" identifier (argument_list "(daemon->epoll_fd,1,iVar2,(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 (iVar2 != 0) {\n        piVar3 = __errno_location();\n        pcVar4 = strerror(*piVar3);\n        MHD_DLOG(daemon,"Call to epoll_ctl failed: %s\n",pcVar4);\n        iVar2 = 0;\n        goto LAB_0001b934;\n      }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        piVar3 = __errno_location();\n        pcVar4 = strerror(*piVar3);\n        MHD_DLOG(daemon,"Call to epoll_ctl failed: %s\n",pcVar4);\n        iVar2 = 0;\n        goto LAB_0001b934;\n      }" { (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar4 = strerror(*piVar3);" (assignment_expression "pcVar4 = strerror(*piVar3)" identifier = (call_expression "strerror(*piVar3)" identifier (argument_list "(*piVar3)" ( (pointer_expression "*piVar3" * identifier) )))) ;) (expression_statement "MHD_DLOG(daemon,"Call to epoll_ctl failed: %s\n",pcVar4);" (call_expression "MHD_DLOG(daemon,"Call to epoll_ctl failed: %s\n",pcVar4)" identifier (argument_list "(daemon,"Call to epoll_ctl failed: %s\n",pcVar4)" ( identifier , (string_literal ""Call to epoll_ctl failed: %s\n"" " string_content escape_sequence ") , identifier ))) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_0001b934;" goto statement_identifier ;) })) })) })) (expression_statement "iVar2 = 1;" (assignment_expression "iVar2 = 1" identifier = number_literal) ;) (labeled_statement "LAB_0001b934:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }" statement_identifier : (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return iVar2;\n  }" { (return_statement "return iVar2;" return identifier ;) }))) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "undefined4 __regparm3 FUN_0001b8d0(char *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  int in_GS_OFFSET;\n  epoll_event local_2c;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1b8db;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = epoll_create1(0x80000);\n  if (iVar1 == -1) {\n    iVar1 = FUN_0001b890();\n    *(int *)(param_1 + 0xcc) = iVar1;\n    if (iVar1 == -1) {\n      uVar4 = 0;\n      goto LAB_0001b934;\n    }\n  }\n  else {\n    *(int *)(param_1 + 0xcc) = iVar1;\n  }\n  if ((param_1[0xf9] & 0x80U) != 0) {\n    iVar1 = epoll_create1(0x80000);\n    if (iVar1 == -1) {\n      iVar1 = FUN_0001b890();\n      *(int *)(param_1 + 0xd4) = iVar1;\n      if (iVar1 == -1) {\n        uVar4 = 0;\n        goto LAB_0001b934;\n      }\n    }\n    else {\n      *(int *)(param_1 + 0xd4) = iVar1;\n    }\n  }\n  if ((*(int *)(param_1 + 0xc4) != -1) && (param_1[0xe1] == '\0')) {\n    local_2c.events = 1;\n    local_2c.data.fd = (int)param_1;\n    iVar1 = epoll_ctl(*(int *)(param_1 + 0xcc),1,*(int *)(param_1 + 0xc4),&local_2c);\n    if (iVar1 != 0) {\n      piVar2 = __errno_location();\n      uVar4 = 0;\n      pcVar3 = strerror(*piVar2);\n      FUN_00020aa0(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n      goto LAB_0001b934;\n    }\n    param_1[0xd0] = '\x01';\n    if (*(int *)(param_1 + 0xdc) != -1) {\n      local_2c.data.ptr = "itc_marker";\n      local_2c.events = 1;\n      iVar1 = epoll_ctl(*(int *)(param_1 + 0xcc),1,*(int *)(param_1 + 0xdc),&local_2c);\n      if (iVar1 != 0) {\n        piVar2 = __errno_location();\n        pcVar3 = strerror(*piVar2);\n        FUN_00020aa0(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n        uVar4 = 0;\n        goto LAB_0001b934;\n      }\n    }\n  }\n  uVar4 = 1;\nLAB_0001b934:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }\n                    \n  FUN_00028540();\n}\n\n" (function_definition "undefined4 __regparm3 FUN_0001b8d0(char *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  int in_GS_OFFSET;\n  epoll_event local_2c;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1b8db;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = epoll_create1(0x80000);\n  if (iVar1 == -1) {\n    iVar1 = FUN_0001b890();\n    *(int *)(param_1 + 0xcc) = iVar1;\n    if (iVar1 == -1) {\n      uVar4 = 0;\n      goto LAB_0001b934;\n    }\n  }\n  else {\n    *(int *)(param_1 + 0xcc) = iVar1;\n  }\n  if ((param_1[0xf9] & 0x80U) != 0) {\n    iVar1 = epoll_create1(0x80000);\n    if (iVar1 == -1) {\n      iVar1 = FUN_0001b890();\n      *(int *)(param_1 + 0xd4) = iVar1;\n      if (iVar1 == -1) {\n        uVar4 = 0;\n        goto LAB_0001b934;\n      }\n    }\n    else {\n      *(int *)(param_1 + 0xd4) = iVar1;\n    }\n  }\n  if ((*(int *)(param_1 + 0xc4) != -1) && (param_1[0xe1] == '\0')) {\n    local_2c.events = 1;\n    local_2c.data.fd = (int)param_1;\n    iVar1 = epoll_ctl(*(int *)(param_1 + 0xcc),1,*(int *)(param_1 + 0xc4),&local_2c);\n    if (iVar1 != 0) {\n      piVar2 = __errno_location();\n      uVar4 = 0;\n      pcVar3 = strerror(*piVar2);\n      FUN_00020aa0(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n      goto LAB_0001b934;\n    }\n    param_1[0xd0] = '\x01';\n    if (*(int *)(param_1 + 0xdc) != -1) {\n      local_2c.data.ptr = "itc_marker";\n      local_2c.events = 1;\n      iVar1 = epoll_ctl(*(int *)(param_1 + 0xcc),1,*(int *)(param_1 + 0xdc),&local_2c);\n      if (iVar1 != 0) {\n        piVar2 = __errno_location();\n        pcVar3 = strerror(*piVar2);\n        FUN_00020aa0(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n        uVar4 = 0;\n        goto LAB_0001b934;\n      }\n    }\n  }\n  uVar4 = 1;\nLAB_0001b934:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }\n                    \n  FUN_00028540();\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0001b8d0(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  int in_GS_OFFSET;\n  epoll_event local_2c;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1b8db;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = epoll_create1(0x80000);\n  if (iVar1 == -1) {\n    iVar1 = FUN_0001b890();\n    *(int *)(param_1 + 0xcc) = iVar1;\n    if (iVar1 == -1) {\n      uVar4 = 0;\n      goto LAB_0001b934;\n    }\n  }\n  else {\n    *(int *)(param_1 + 0xcc) = iVar1;\n  }\n  if ((param_1[0xf9] & 0x80U) != 0) {\n    iVar1 = epoll_create1(0x80000);\n    if (iVar1 == -1) {\n      iVar1 = FUN_0001b890();\n      *(int *)(param_1 + 0xd4) = iVar1;\n      if (iVar1 == -1) {\n        uVar4 = 0;\n        goto LAB_0001b934;\n      }\n    }\n    else {\n      *(int *)(param_1 + 0xd4) = iVar1;\n    }\n  }\n  if ((*(int *)(param_1 + 0xc4) != -1) && (param_1[0xe1] == '\0')) {\n    local_2c.events = 1;\n    local_2c.data.fd = (int)param_1;\n    iVar1 = epoll_ctl(*(int *)(param_1 + 0xcc),1,*(int *)(param_1 + 0xc4),&local_2c);\n    if (iVar1 != 0) {\n      piVar2 = __errno_location();\n      uVar4 = 0;\n      pcVar3 = strerror(*piVar2);\n      FUN_00020aa0(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n      goto LAB_0001b934;\n    }\n    param_1[0xd0] = '\x01';\n    if (*(int *)(param_1 + 0xdc) != -1) {\n      local_2c.data.ptr = "itc_marker";\n      local_2c.events = 1;\n      iVar1 = epoll_ctl(*(int *)(param_1 + 0xcc),1,*(int *)(param_1 + 0xdc),&local_2c);\n      if (iVar1 != 0) {\n        piVar2 = __errno_location();\n        pcVar3 = strerror(*piVar2);\n        FUN_00020aa0(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n        uVar4 = 0;\n        goto LAB_0001b934;\n      }\n    }\n  }\n  uVar4 = 1;\nLAB_0001b934:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }\n                    \n  FUN_00028540();\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 "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "epoll_event local_2c;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1b8db;" (assignment_expression "uStack_14 = 0x1b8db" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = epoll_create1(0x80000);" (assignment_expression "iVar1 = epoll_create1(0x80000)" identifier = (call_expression "epoll_create1(0x80000)" identifier (argument_list "(0x80000)" ( number_literal )))) ;) (if_statement "if (iVar1 == -1) {\n    iVar1 = FUN_0001b890();\n    *(int *)(param_1 + 0xcc) = iVar1;\n    if (iVar1 == -1) {\n      uVar4 = 0;\n      goto LAB_0001b934;\n    }\n  }\n  else {\n    *(int *)(param_1 + 0xcc) = iVar1;\n  }" if (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) )) (compound_statement "{\n    iVar1 = FUN_0001b890();\n    *(int *)(param_1 + 0xcc) = iVar1;\n    if (iVar1 == -1) {\n      uVar4 = 0;\n      goto LAB_0001b934;\n    }\n  }" { (expression_statement "iVar1 = FUN_0001b890();" (assignment_expression "iVar1 = FUN_0001b890()" identifier = (call_expression "FUN_0001b890()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(int *)(param_1 + 0xcc) = iVar1;" (assignment_expression "*(int *)(param_1 + 0xcc) = iVar1" (pointer_expression "*(int *)(param_1 + 0xcc)" * (cast_expression "(int *)(param_1 + 0xcc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xcc)" ( (binary_expression "param_1 + 0xcc" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar1 == -1) {\n      uVar4 = 0;\n      goto LAB_0001b934;\n    }" if (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) )) (compound_statement "{\n      uVar4 = 0;\n      goto LAB_0001b934;\n    }" { (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_0001b934;" goto statement_identifier ;) })) }) (else_clause "else {\n    *(int *)(param_1 + 0xcc) = iVar1;\n  }" else (compound_statement "{\n    *(int *)(param_1 + 0xcc) = iVar1;\n  }" { (expression_statement "*(int *)(param_1 + 0xcc) = iVar1;" (assignment_expression "*(int *)(param_1 + 0xcc) = iVar1" (pointer_expression "*(int *)(param_1 + 0xcc)" * (cast_expression "(int *)(param_1 + 0xcc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xcc)" ( (binary_expression "param_1 + 0xcc" identifier + number_literal) )))) = identifier) ;) }))) (if_statement "if ((param_1[0xf9] & 0x80U) != 0) {\n    iVar1 = epoll_create1(0x80000);\n    if (iVar1 == -1) {\n      iVar1 = FUN_0001b890();\n      *(int *)(param_1 + 0xd4) = iVar1;\n      if (iVar1 == -1) {\n        uVar4 = 0;\n        goto LAB_0001b934;\n      }\n    }\n    else {\n      *(int *)(param_1 + 0xd4) = iVar1;\n    }\n  }" if (parenthesized_expression "((param_1[0xf9] & 0x80U) != 0)" ( (binary_expression "(param_1[0xf9] & 0x80U) != 0" (parenthesized_expression "(param_1[0xf9] & 0x80U)" ( (binary_expression "param_1[0xf9] & 0x80U" (subscript_expression "param_1[0xf9]" identifier [ number_literal ]) & number_literal) )) != number_literal) )) (compound_statement "{\n    iVar1 = epoll_create1(0x80000);\n    if (iVar1 == -1) {\n      iVar1 = FUN_0001b890();\n      *(int *)(param_1 + 0xd4) = iVar1;\n      if (iVar1 == -1) {\n        uVar4 = 0;\n        goto LAB_0001b934;\n      }\n    }\n    else {\n      *(int *)(param_1 + 0xd4) = iVar1;\n    }\n  }" { (expression_statement "iVar1 = epoll_create1(0x80000);" (assignment_expression "iVar1 = epoll_create1(0x80000)" identifier = (call_expression "epoll_create1(0x80000)" identifier (argument_list "(0x80000)" ( number_literal )))) ;) (if_statement "if (iVar1 == -1) {\n      iVar1 = FUN_0001b890();\n      *(int *)(param_1 + 0xd4) = iVar1;\n      if (iVar1 == -1) {\n        uVar4 = 0;\n        goto LAB_0001b934;\n      }\n    }\n    else {\n      *(int *)(param_1 + 0xd4) = iVar1;\n    }" if (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) )) (compound_statement "{\n      iVar1 = FUN_0001b890();\n      *(int *)(param_1 + 0xd4) = iVar1;\n      if (iVar1 == -1) {\n        uVar4 = 0;\n        goto LAB_0001b934;\n      }\n    }" { (expression_statement "iVar1 = FUN_0001b890();" (assignment_expression "iVar1 = FUN_0001b890()" identifier = (call_expression "FUN_0001b890()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(int *)(param_1 + 0xd4) = iVar1;" (assignment_expression "*(int *)(param_1 + 0xd4) = iVar1" (pointer_expression "*(int *)(param_1 + 0xd4)" * (cast_expression "(int *)(param_1 + 0xd4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xd4)" ( (binary_expression "param_1 + 0xd4" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar1 == -1) {\n        uVar4 = 0;\n        goto LAB_0001b934;\n      }" if (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) )) (compound_statement "{\n        uVar4 = 0;\n        goto LAB_0001b934;\n      }" { (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_0001b934;" goto statement_identifier ;) })) }) (else_clause "else {\n      *(int *)(param_1 + 0xd4) = iVar1;\n    }" else (compound_statement "{\n      *(int *)(param_1 + 0xd4) = iVar1;\n    }" { (expression_statement "*(int *)(param_1 + 0xd4) = iVar1;" (assignment_expression "*(int *)(param_1 + 0xd4) = iVar1" (pointer_expression "*(int *)(param_1 + 0xd4)" * (cast_expression "(int *)(param_1 + 0xd4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xd4)" ( (binary_expression "param_1 + 0xd4" identifier + number_literal) )))) = identifier) ;) }))) })) (if_statement "if ((*(int *)(param_1 + 0xc4) != -1) && (param_1[0xe1] == '\0')) {\n    local_2c.events = 1;\n    local_2c.data.fd = (int)param_1;\n    iVar1 = epoll_ctl(*(int *)(param_1 + 0xcc),1,*(int *)(param_1 + 0xc4),&local_2c);\n    if (iVar1 != 0) {\n      piVar2 = __errno_location();\n      uVar4 = 0;\n      pcVar3 = strerror(*piVar2);\n      FUN_00020aa0(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n      goto LAB_0001b934;\n    }\n    param_1[0xd0] = '\x01';\n    if (*(int *)(param_1 + 0xdc) != -1) {\n      local_2c.data.ptr = "itc_marker";\n      local_2c.events = 1;\n      iVar1 = epoll_ctl(*(int *)(param_1 + 0xcc),1,*(int *)(param_1 + 0xdc),&local_2c);\n      if (iVar1 != 0) {\n        piVar2 = __errno_location();\n        pcVar3 = strerror(*piVar2);\n        FUN_00020aa0(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n        uVar4 = 0;\n        goto LAB_0001b934;\n      }\n    }\n  }" if (parenthesized_expression "((*(int *)(param_1 + 0xc4) != -1) && (param_1[0xe1] == '\0'))" ( (binary_expression "(*(int *)(param_1 + 0xc4) != -1) && (param_1[0xe1] == '\0')" (parenthesized_expression "(*(int *)(param_1 + 0xc4) != -1)" ( (binary_expression "*(int *)(param_1 + 0xc4) != -1" (pointer_expression "*(int *)(param_1 + 0xc4)" * (cast_expression "(int *)(param_1 + 0xc4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc4)" ( (binary_expression "param_1 + 0xc4" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "(param_1[0xe1] == '\0')" ( (binary_expression "param_1[0xe1] == '\0'" (subscript_expression "param_1[0xe1]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    local_2c.events = 1;\n    local_2c.data.fd = (int)param_1;\n    iVar1 = epoll_ctl(*(int *)(param_1 + 0xcc),1,*(int *)(param_1 + 0xc4),&local_2c);\n    if (iVar1 != 0) {\n      piVar2 = __errno_location();\n      uVar4 = 0;\n      pcVar3 = strerror(*piVar2);\n      FUN_00020aa0(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n      goto LAB_0001b934;\n    }\n    param_1[0xd0] = '\x01';\n    if (*(int *)(param_1 + 0xdc) != -1) {\n      local_2c.data.ptr = "itc_marker";\n      local_2c.events = 1;\n      iVar1 = epoll_ctl(*(int *)(param_1 + 0xcc),1,*(int *)(param_1 + 0xdc),&local_2c);\n      if (iVar1 != 0) {\n        piVar2 = __errno_location();\n        pcVar3 = strerror(*piVar2);\n        FUN_00020aa0(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n        uVar4 = 0;\n        goto LAB_0001b934;\n      }\n    }\n  }" { (expression_statement "local_2c.events = 1;" (assignment_expression "local_2c.events = 1" (field_expression "local_2c.events" identifier . field_identifier) = number_literal) ;) (expression_statement "local_2c.data.fd = (int)param_1;" (assignment_expression "local_2c.data.fd = (int)param_1" (field_expression "local_2c.data.fd" (field_expression "local_2c.data" identifier . field_identifier) . field_identifier) = (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "iVar1 = epoll_ctl(*(int *)(param_1 + 0xcc),1,*(int *)(param_1 + 0xc4),&local_2c);" (assignment_expression "iVar1 = epoll_ctl(*(int *)(param_1 + 0xcc),1,*(int *)(param_1 + 0xc4),&local_2c)" identifier = (call_expression "epoll_ctl(*(int *)(param_1 + 0xcc),1,*(int *)(param_1 + 0xc4),&local_2c)" identifier (argument_list "(*(int *)(param_1 + 0xcc),1,*(int *)(param_1 + 0xc4),&local_2c)" ( (pointer_expression "*(int *)(param_1 + 0xcc)" * (cast_expression "(int *)(param_1 + 0xcc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xcc)" ( (binary_expression "param_1 + 0xcc" identifier + number_literal) )))) , number_literal , (pointer_expression "*(int *)(param_1 + 0xc4)" * (cast_expression "(int *)(param_1 + 0xc4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc4)" ( (binary_expression "param_1 + 0xc4" identifier + number_literal) )))) , (pointer_expression "&local_2c" & identifier) )))) ;) (if_statement "if (iVar1 != 0) {\n      piVar2 = __errno_location();\n      uVar4 = 0;\n      pcVar3 = strerror(*piVar2);\n      FUN_00020aa0(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n      goto LAB_0001b934;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      piVar2 = __errno_location();\n      uVar4 = 0;\n      pcVar3 = strerror(*piVar2);\n      FUN_00020aa0(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n      goto LAB_0001b934;\n    }" { (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (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_00020aa0(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);" (call_expression "FUN_00020aa0(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 ))) ;) (goto_statement "goto LAB_0001b934;" goto statement_identifier ;) })) (expression_statement "param_1[0xd0] = '\x01';" (assignment_expression "param_1[0xd0] = '\x01'" (subscript_expression "param_1[0xd0]" identifier [ number_literal ]) = (char_literal "'\x01'" ' escape_sequence ')) ;) (if_statement "if (*(int *)(param_1 + 0xdc) != -1) {\n      local_2c.data.ptr = "itc_marker";\n      local_2c.events = 1;\n      iVar1 = epoll_ctl(*(int *)(param_1 + 0xcc),1,*(int *)(param_1 + 0xdc),&local_2c);\n      if (iVar1 != 0) {\n        piVar2 = __errno_location();\n        pcVar3 = strerror(*piVar2);\n        FUN_00020aa0(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n        uVar4 = 0;\n        goto LAB_0001b934;\n      }\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0xdc) != -1)" ( (binary_expression "*(int *)(param_1 + 0xdc) != -1" (pointer_expression "*(int *)(param_1 + 0xdc)" * (cast_expression "(int *)(param_1 + 0xdc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xdc)" ( (binary_expression "param_1 + 0xdc" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      local_2c.data.ptr = "itc_marker";\n      local_2c.events = 1;\n      iVar1 = epoll_ctl(*(int *)(param_1 + 0xcc),1,*(int *)(param_1 + 0xdc),&local_2c);\n      if (iVar1 != 0) {\n        piVar2 = __errno_location();\n        pcVar3 = strerror(*piVar2);\n        FUN_00020aa0(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n        uVar4 = 0;\n        goto LAB_0001b934;\n      }\n    }" { (expression_statement "local_2c.data.ptr = "itc_marker";" (assignment_expression "local_2c.data.ptr = "itc_marker"" (field_expression "local_2c.data.ptr" (field_expression "local_2c.data" identifier . field_identifier) . field_identifier) = (string_literal ""itc_marker"" " string_content ")) ;) (expression_statement "local_2c.events = 1;" (assignment_expression "local_2c.events = 1" (field_expression "local_2c.events" identifier . field_identifier) = number_literal) ;) (expression_statement "iVar1 = epoll_ctl(*(int *)(param_1 + 0xcc),1,*(int *)(param_1 + 0xdc),&local_2c);" (assignment_expression "iVar1 = epoll_ctl(*(int *)(param_1 + 0xcc),1,*(int *)(param_1 + 0xdc),&local_2c)" identifier = (call_expression "epoll_ctl(*(int *)(param_1 + 0xcc),1,*(int *)(param_1 + 0xdc),&local_2c)" identifier (argument_list "(*(int *)(param_1 + 0xcc),1,*(int *)(param_1 + 0xdc),&local_2c)" ( (pointer_expression "*(int *)(param_1 + 0xcc)" * (cast_expression "(int *)(param_1 + 0xcc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xcc)" ( (binary_expression "param_1 + 0xcc" identifier + number_literal) )))) , number_literal , (pointer_expression "*(int *)(param_1 + 0xdc)" * (cast_expression "(int *)(param_1 + 0xdc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xdc)" ( (binary_expression "param_1 + 0xdc" identifier + number_literal) )))) , (pointer_expression "&local_2c" & identifier) )))) ;) (if_statement "if (iVar1 != 0) {\n        piVar2 = __errno_location();\n        pcVar3 = strerror(*piVar2);\n        FUN_00020aa0(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n        uVar4 = 0;\n        goto LAB_0001b934;\n      }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        piVar2 = __errno_location();\n        pcVar3 = strerror(*piVar2);\n        FUN_00020aa0(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n        uVar4 = 0;\n        goto LAB_0001b934;\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_00020aa0(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);" (call_expression "FUN_00020aa0(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) ;) (goto_statement "goto LAB_0001b934;" goto statement_identifier ;) })) })) })) (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" identifier = number_literal) ;) (labeled_statement "LAB_0001b934:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }" statement_identifier : (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return uVar4;\n  }" { (return_statement "return uVar4;" return identifier ;) }))) (expression_statement "FUN_00028540();" (call_expression "FUN_00028540()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (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 TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (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) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) }) (else_clause else (compound_statement { (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 (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (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) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) }) (else_clause else (compound_statement { (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 (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 (field_expression IDENT . field_identifier) . field_identifier) = (cast_expression ( (type_descriptor TYPE) ) 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) )))) , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (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 ))) ;) (goto_statement goto statement_identifier ;) })) (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 (field_expression (field_expression IDENT . field_identifier) . field_identifier) = (string_literal " string_content ")) ;) (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = LIT) ;) (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) )))) , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (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) ;) (goto_statement goto statement_identifier ;) })) })) })) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) }))) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "undefined4 __regparm3 FUN_0001b8d0(char *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  int in_GS_OFFSET;\n  epoll_event local_2c;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1b8db;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = epoll_create1(0x80000);\n  if (iVar1 == -1) {\n    iVar1 = FUN_0001b890();\n    *(int *)(param_1 + 0xcc) = iVar1;\n    if (iVar1 == -1) {\n      uVar4 = 0;\n      goto LAB_0001b934;\n    }\n  }\n  else {\n    *(int *)(param_1 + 0xcc) = iVar1;\n  }\n  if ((param_1[0xf9] & 0x80U) != 0) {\n    iVar1 = epoll_create1(0x80000);\n    if (iVar1 == -1) {\n      iVar1 = FUN_0001b890();\n      *(int *)(param_1 + 0xd4) = iVar1;\n      if (iVar1 == -1) {\n        uVar4 = 0;\n        goto LAB_0001b934;\n      }\n    }\n    else {\n      *(int *)(param_1 + 0xd4) = iVar1;\n    }\n  }\n  if ((*(int *)(param_1 + 0xc4) != -1) && (param_1[0xe1] == '\0')) {\n    local_2c.events = 1;\n    local_2c.data.fd = (int)param_1;\n    iVar1 = epoll_ctl(*(int *)(param_1 + 0xcc),1,*(int *)(param_1 + 0xc4),&local_2c);\n    if (iVar1 != 0) {\n      piVar2 = __errno_location();\n      uVar4 = 0;\n      pcVar3 = strerror(*piVar2);\n      FUN_00020aa0(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n      goto LAB_0001b934;\n    }\n    param_1[0xd0] = '\x01';\n    if (*(int *)(param_1 + 0xdc) != -1) {\n      local_2c.data.ptr = "itc_marker";\n      local_2c.events = 1;\n      iVar1 = epoll_ctl(*(int *)(param_1 + 0xcc),1,*(int *)(param_1 + 0xdc),&local_2c);\n      if (iVar1 != 0) {\n        piVar2 = __errno_location();\n        pcVar3 = strerror(*piVar2);\n        FUN_00020aa0(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n        uVar4 = 0;\n        goto LAB_0001b934;\n      }\n    }\n  }\n  uVar4 = 1;\nLAB_0001b934:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }\n                    \n  FUN_00028540();\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0001b8d0(char *param_1)" (identifier "FUN_0001b8d0") (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  int in_GS_OFFSET;\n  epoll_event local_2c;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1b8db;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = epoll_create1(0x80000);\n  if (iVar1 == -1) {\n    iVar1 = FUN_0001b890();\n    *(int *)(param_1 + 0xcc) = iVar1;\n    if (iVar1 == -1) {\n      uVar4 = 0;\n      goto LAB_0001b934;\n    }\n  }\n  else {\n    *(int *)(param_1 + 0xcc) = iVar1;\n  }\n  if ((param_1[0xf9] & 0x80U) != 0) {\n    iVar1 = epoll_create1(0x80000);\n    if (iVar1 == -1) {\n      iVar1 = FUN_0001b890();\n      *(int *)(param_1 + 0xd4) = iVar1;\n      if (iVar1 == -1) {\n        uVar4 = 0;\n        goto LAB_0001b934;\n      }\n    }\n    else {\n      *(int *)(param_1 + 0xd4) = iVar1;\n    }\n  }\n  if ((*(int *)(param_1 + 0xc4) != -1) && (param_1[0xe1] == '\0')) {\n    local_2c.events = 1;\n    local_2c.data.fd = (int)param_1;\n    iVar1 = epoll_ctl(*(int *)(param_1 + 0xcc),1,*(int *)(param_1 + 0xc4),&local_2c);\n    if (iVar1 != 0) {\n      piVar2 = __errno_location();\n      uVar4 = 0;\n      pcVar3 = strerror(*piVar2);\n      FUN_00020aa0(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n      goto LAB_0001b934;\n    }\n    param_1[0xd0] = '\x01';\n    if (*(int *)(param_1 + 0xdc) != -1) {\n      local_2c.data.ptr = "itc_marker";\n      local_2c.events = 1;\n      iVar1 = epoll_ctl(*(int *)(param_1 + 0xcc),1,*(int *)(param_1 + 0xdc),&local_2c);\n      if (iVar1 != 0) {\n        piVar2 = __errno_location();\n        pcVar3 = strerror(*piVar2);\n        FUN_00020aa0(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n        uVar4 = 0;\n        goto LAB_0001b934;\n      }\n    }\n  }\n  uVar4 = 1;\nLAB_0001b934:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }\n                    \n  FUN_00028540();\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 "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "epoll_event local_2c;" (type_identifier "epoll_event") (identifier "local_2c") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x1b8db;" (assignment_expression "uStack_14 = 0x1b8db" (identifier "uStack_14") (= "=") (number_literal "0x1b8db")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "iVar1 = epoll_create1(0x80000);" (assignment_expression "iVar1 = epoll_create1(0x80000)" (identifier "iVar1") (= "=") (call_expression "epoll_create1(0x80000)" (identifier "epoll_create1") (argument_list "(0x80000)" (( "(") (number_literal "0x80000") () ")")))) (; ";")) (if_statement "if (iVar1 == -1) {\n    iVar1 = FUN_0001b890();\n    *(int *)(param_1 + 0xcc) = iVar1;\n    if (iVar1 == -1) {\n      uVar4 = 0;\n      goto LAB_0001b934;\n    }\n  }\n  else {\n    *(int *)(param_1 + 0xcc) = iVar1;\n  }" (if "if") (parenthesized_expression "(iVar1 == -1)" (( "(") (binary_expression "iVar1 == -1" (identifier "iVar1") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n    iVar1 = FUN_0001b890();\n    *(int *)(param_1 + 0xcc) = iVar1;\n    if (iVar1 == -1) {\n      uVar4 = 0;\n      goto LAB_0001b934;\n    }\n  }" ({ "{") (expression_statement "iVar1 = FUN_0001b890();" (assignment_expression "iVar1 = FUN_0001b890()" (identifier "iVar1") (= "=") (call_expression "FUN_0001b890()" (identifier "FUN_0001b890") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*(int *)(param_1 + 0xcc) = iVar1;" (assignment_expression "*(int *)(param_1 + 0xcc) = iVar1" (pointer_expression "*(int *)(param_1 + 0xcc)" (* "*") (cast_expression "(int *)(param_1 + 0xcc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xcc)" (( "(") (binary_expression "param_1 + 0xcc" (identifier "param_1") (+ "+") (number_literal "0xcc")) () ")")))) (= "=") (identifier "iVar1")) (; ";")) (if_statement "if (iVar1 == -1) {\n      uVar4 = 0;\n      goto LAB_0001b934;\n    }" (if "if") (parenthesized_expression "(iVar1 == -1)" (( "(") (binary_expression "iVar1 == -1" (identifier "iVar1") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n      uVar4 = 0;\n      goto LAB_0001b934;\n    }" ({ "{") (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_0001b934;" (goto "goto") (statement_identifier "LAB_0001b934") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    *(int *)(param_1 + 0xcc) = iVar1;\n  }" (else "else") (compound_statement "{\n    *(int *)(param_1 + 0xcc) = iVar1;\n  }" ({ "{") (expression_statement "*(int *)(param_1 + 0xcc) = iVar1;" (assignment_expression "*(int *)(param_1 + 0xcc) = iVar1" (pointer_expression "*(int *)(param_1 + 0xcc)" (* "*") (cast_expression "(int *)(param_1 + 0xcc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xcc)" (( "(") (binary_expression "param_1 + 0xcc" (identifier "param_1") (+ "+") (number_literal "0xcc")) () ")")))) (= "=") (identifier "iVar1")) (; ";")) (} "}")))) (if_statement "if ((param_1[0xf9] & 0x80U) != 0) {\n    iVar1 = epoll_create1(0x80000);\n    if (iVar1 == -1) {\n      iVar1 = FUN_0001b890();\n      *(int *)(param_1 + 0xd4) = iVar1;\n      if (iVar1 == -1) {\n        uVar4 = 0;\n        goto LAB_0001b934;\n      }\n    }\n    else {\n      *(int *)(param_1 + 0xd4) = iVar1;\n    }\n  }" (if "if") (parenthesized_expression "((param_1[0xf9] & 0x80U) != 0)" (( "(") (binary_expression "(param_1[0xf9] & 0x80U) != 0" (parenthesized_expression "(param_1[0xf9] & 0x80U)" (( "(") (binary_expression "param_1[0xf9] & 0x80U" (subscript_expression "param_1[0xf9]" (identifier "param_1") ([ "[") (number_literal "0xf9") (] "]")) (& "&") (number_literal "0x80U")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = epoll_create1(0x80000);\n    if (iVar1 == -1) {\n      iVar1 = FUN_0001b890();\n      *(int *)(param_1 + 0xd4) = iVar1;\n      if (iVar1 == -1) {\n        uVar4 = 0;\n        goto LAB_0001b934;\n      }\n    }\n    else {\n      *(int *)(param_1 + 0xd4) = iVar1;\n    }\n  }" ({ "{") (expression_statement "iVar1 = epoll_create1(0x80000);" (assignment_expression "iVar1 = epoll_create1(0x80000)" (identifier "iVar1") (= "=") (call_expression "epoll_create1(0x80000)" (identifier "epoll_create1") (argument_list "(0x80000)" (( "(") (number_literal "0x80000") () ")")))) (; ";")) (if_statement "if (iVar1 == -1) {\n      iVar1 = FUN_0001b890();\n      *(int *)(param_1 + 0xd4) = iVar1;\n      if (iVar1 == -1) {\n        uVar4 = 0;\n        goto LAB_0001b934;\n      }\n    }\n    else {\n      *(int *)(param_1 + 0xd4) = iVar1;\n    }" (if "if") (parenthesized_expression "(iVar1 == -1)" (( "(") (binary_expression "iVar1 == -1" (identifier "iVar1") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n      iVar1 = FUN_0001b890();\n      *(int *)(param_1 + 0xd4) = iVar1;\n      if (iVar1 == -1) {\n        uVar4 = 0;\n        goto LAB_0001b934;\n      }\n    }" ({ "{") (expression_statement "iVar1 = FUN_0001b890();" (assignment_expression "iVar1 = FUN_0001b890()" (identifier "iVar1") (= "=") (call_expression "FUN_0001b890()" (identifier "FUN_0001b890") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*(int *)(param_1 + 0xd4) = iVar1;" (assignment_expression "*(int *)(param_1 + 0xd4) = iVar1" (pointer_expression "*(int *)(param_1 + 0xd4)" (* "*") (cast_expression "(int *)(param_1 + 0xd4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xd4)" (( "(") (binary_expression "param_1 + 0xd4" (identifier "param_1") (+ "+") (number_literal "0xd4")) () ")")))) (= "=") (identifier "iVar1")) (; ";")) (if_statement "if (iVar1 == -1) {\n        uVar4 = 0;\n        goto LAB_0001b934;\n      }" (if "if") (parenthesized_expression "(iVar1 == -1)" (( "(") (binary_expression "iVar1 == -1" (identifier "iVar1") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n        uVar4 = 0;\n        goto LAB_0001b934;\n      }" ({ "{") (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_0001b934;" (goto "goto") (statement_identifier "LAB_0001b934") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n      *(int *)(param_1 + 0xd4) = iVar1;\n    }" (else "else") (compound_statement "{\n      *(int *)(param_1 + 0xd4) = iVar1;\n    }" ({ "{") (expression_statement "*(int *)(param_1 + 0xd4) = iVar1;" (assignment_expression "*(int *)(param_1 + 0xd4) = iVar1" (pointer_expression "*(int *)(param_1 + 0xd4)" (* "*") (cast_expression "(int *)(param_1 + 0xd4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xd4)" (( "(") (binary_expression "param_1 + 0xd4" (identifier "param_1") (+ "+") (number_literal "0xd4")) () ")")))) (= "=") (identifier "iVar1")) (; ";")) (} "}")))) (} "}"))) (if_statement "if ((*(int *)(param_1 + 0xc4) != -1) && (param_1[0xe1] == '\0')) {\n    local_2c.events = 1;\n    local_2c.data.fd = (int)param_1;\n    iVar1 = epoll_ctl(*(int *)(param_1 + 0xcc),1,*(int *)(param_1 + 0xc4),&local_2c);\n    if (iVar1 != 0) {\n      piVar2 = __errno_location();\n      uVar4 = 0;\n      pcVar3 = strerror(*piVar2);\n      FUN_00020aa0(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n      goto LAB_0001b934;\n    }\n    param_1[0xd0] = '\x01';\n    if (*(int *)(param_1 + 0xdc) != -1) {\n      local_2c.data.ptr = "itc_marker";\n      local_2c.events = 1;\n      iVar1 = epoll_ctl(*(int *)(param_1 + 0xcc),1,*(int *)(param_1 + 0xdc),&local_2c);\n      if (iVar1 != 0) {\n        piVar2 = __errno_location();\n        pcVar3 = strerror(*piVar2);\n        FUN_00020aa0(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n        uVar4 = 0;\n        goto LAB_0001b934;\n      }\n    }\n  }" (if "if") (parenthesized_expression "((*(int *)(param_1 + 0xc4) != -1) && (param_1[0xe1] == '\0'))" (( "(") (binary_expression "(*(int *)(param_1 + 0xc4) != -1) && (param_1[0xe1] == '\0')" (parenthesized_expression "(*(int *)(param_1 + 0xc4) != -1)" (( "(") (binary_expression "*(int *)(param_1 + 0xc4) != -1" (pointer_expression "*(int *)(param_1 + 0xc4)" (* "*") (cast_expression "(int *)(param_1 + 0xc4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc4)" (( "(") (binary_expression "param_1 + 0xc4" (identifier "param_1") (+ "+") (number_literal "0xc4")) () ")")))) (!= "!=") (number_literal "-1")) () ")")) (&& "&&") (parenthesized_expression "(param_1[0xe1] == '\0')" (( "(") (binary_expression "param_1[0xe1] == '\0'" (subscript_expression "param_1[0xe1]" (identifier "param_1") ([ "[") (number_literal "0xe1") (] "]")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n    local_2c.events = 1;\n    local_2c.data.fd = (int)param_1;\n    iVar1 = epoll_ctl(*(int *)(param_1 + 0xcc),1,*(int *)(param_1 + 0xc4),&local_2c);\n    if (iVar1 != 0) {\n      piVar2 = __errno_location();\n      uVar4 = 0;\n      pcVar3 = strerror(*piVar2);\n      FUN_00020aa0(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n      goto LAB_0001b934;\n    }\n    param_1[0xd0] = '\x01';\n    if (*(int *)(param_1 + 0xdc) != -1) {\n      local_2c.data.ptr = "itc_marker";\n      local_2c.events = 1;\n      iVar1 = epoll_ctl(*(int *)(param_1 + 0xcc),1,*(int *)(param_1 + 0xdc),&local_2c);\n      if (iVar1 != 0) {\n        piVar2 = __errno_location();\n        pcVar3 = strerror(*piVar2);\n        FUN_00020aa0(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n        uVar4 = 0;\n        goto LAB_0001b934;\n      }\n    }\n  }" ({ "{") (expression_statement "local_2c.events = 1;" (assignment_expression "local_2c.events = 1" (field_expression "local_2c.events" (identifier "local_2c") (. ".") (field_identifier "events")) (= "=") (number_literal "1")) (; ";")) (expression_statement "local_2c.data.fd = (int)param_1;" (assignment_expression "local_2c.data.fd = (int)param_1" (field_expression "local_2c.data.fd" (field_expression "local_2c.data" (identifier "local_2c") (. ".") (field_identifier "data")) (. ".") (field_identifier "fd")) (= "=") (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1"))) (; ";")) (expression_statement "iVar1 = epoll_ctl(*(int *)(param_1 + 0xcc),1,*(int *)(param_1 + 0xc4),&local_2c);" (assignment_expression "iVar1 = epoll_ctl(*(int *)(param_1 + 0xcc),1,*(int *)(param_1 + 0xc4),&local_2c)" (identifier "iVar1") (= "=") (call_expression "epoll_ctl(*(int *)(param_1 + 0xcc),1,*(int *)(param_1 + 0xc4),&local_2c)" (identifier "epoll_ctl") (argument_list "(*(int *)(param_1 + 0xcc),1,*(int *)(param_1 + 0xc4),&local_2c)" (( "(") (pointer_expression "*(int *)(param_1 + 0xcc)" (* "*") (cast_expression "(int *)(param_1 + 0xcc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xcc)" (( "(") (binary_expression "param_1 + 0xcc" (identifier "param_1") (+ "+") (number_literal "0xcc")) () ")")))) (, ",") (number_literal "1") (, ",") (pointer_expression "*(int *)(param_1 + 0xc4)" (* "*") (cast_expression "(int *)(param_1 + 0xc4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc4)" (( "(") (binary_expression "param_1 + 0xc4" (identifier "param_1") (+ "+") (number_literal "0xc4")) () ")")))) (, ",") (pointer_expression "&local_2c" (& "&") (identifier "local_2c")) () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n      piVar2 = __errno_location();\n      uVar4 = 0;\n      pcVar3 = strerror(*piVar2);\n      FUN_00020aa0(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n      goto LAB_0001b934;\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      piVar2 = __errno_location();\n      uVar4 = 0;\n      pcVar3 = strerror(*piVar2);\n      FUN_00020aa0(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n      goto LAB_0001b934;\n    }" ({ "{") (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" (identifier "piVar2") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (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_00020aa0(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);" (call_expression "FUN_00020aa0(param_1,"Call to epoll_ctl failed: %s\n",pcVar3)" (identifier "FUN_00020aa0") (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") () ")"))) (; ";")) (goto_statement "goto LAB_0001b934;" (goto "goto") (statement_identifier "LAB_0001b934") (; ";")) (} "}"))) (expression_statement "param_1[0xd0] = '\x01';" (assignment_expression "param_1[0xd0] = '\x01'" (subscript_expression "param_1[0xd0]" (identifier "param_1") ([ "[") (number_literal "0xd0") (] "]")) (= "=") (char_literal "'\x01'" (' "'") (escape_sequence "\x01") (' "'"))) (; ";")) (if_statement "if (*(int *)(param_1 + 0xdc) != -1) {\n      local_2c.data.ptr = "itc_marker";\n      local_2c.events = 1;\n      iVar1 = epoll_ctl(*(int *)(param_1 + 0xcc),1,*(int *)(param_1 + 0xdc),&local_2c);\n      if (iVar1 != 0) {\n        piVar2 = __errno_location();\n        pcVar3 = strerror(*piVar2);\n        FUN_00020aa0(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n        uVar4 = 0;\n        goto LAB_0001b934;\n      }\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0xdc) != -1)" (( "(") (binary_expression "*(int *)(param_1 + 0xdc) != -1" (pointer_expression "*(int *)(param_1 + 0xdc)" (* "*") (cast_expression "(int *)(param_1 + 0xdc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xdc)" (( "(") (binary_expression "param_1 + 0xdc" (identifier "param_1") (+ "+") (number_literal "0xdc")) () ")")))) (!= "!=") (number_literal "-1")) () ")")) (compound_statement "{\n      local_2c.data.ptr = "itc_marker";\n      local_2c.events = 1;\n      iVar1 = epoll_ctl(*(int *)(param_1 + 0xcc),1,*(int *)(param_1 + 0xdc),&local_2c);\n      if (iVar1 != 0) {\n        piVar2 = __errno_location();\n        pcVar3 = strerror(*piVar2);\n        FUN_00020aa0(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n        uVar4 = 0;\n        goto LAB_0001b934;\n      }\n    }" ({ "{") (expression_statement "local_2c.data.ptr = "itc_marker";" (assignment_expression "local_2c.data.ptr = "itc_marker"" (field_expression "local_2c.data.ptr" (field_expression "local_2c.data" (identifier "local_2c") (. ".") (field_identifier "data")) (. ".") (field_identifier "ptr")) (= "=") (string_literal ""itc_marker"" (" """) (string_content "itc_marker") (" """))) (; ";")) (expression_statement "local_2c.events = 1;" (assignment_expression "local_2c.events = 1" (field_expression "local_2c.events" (identifier "local_2c") (. ".") (field_identifier "events")) (= "=") (number_literal "1")) (; ";")) (expression_statement "iVar1 = epoll_ctl(*(int *)(param_1 + 0xcc),1,*(int *)(param_1 + 0xdc),&local_2c);" (assignment_expression "iVar1 = epoll_ctl(*(int *)(param_1 + 0xcc),1,*(int *)(param_1 + 0xdc),&local_2c)" (identifier "iVar1") (= "=") (call_expression "epoll_ctl(*(int *)(param_1 + 0xcc),1,*(int *)(param_1 + 0xdc),&local_2c)" (identifier "epoll_ctl") (argument_list "(*(int *)(param_1 + 0xcc),1,*(int *)(param_1 + 0xdc),&local_2c)" (( "(") (pointer_expression "*(int *)(param_1 + 0xcc)" (* "*") (cast_expression "(int *)(param_1 + 0xcc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xcc)" (( "(") (binary_expression "param_1 + 0xcc" (identifier "param_1") (+ "+") (number_literal "0xcc")) () ")")))) (, ",") (number_literal "1") (, ",") (pointer_expression "*(int *)(param_1 + 0xdc)" (* "*") (cast_expression "(int *)(param_1 + 0xdc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xdc)" (( "(") (binary_expression "param_1 + 0xdc" (identifier "param_1") (+ "+") (number_literal "0xdc")) () ")")))) (, ",") (pointer_expression "&local_2c" (& "&") (identifier "local_2c")) () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n        piVar2 = __errno_location();\n        pcVar3 = strerror(*piVar2);\n        FUN_00020aa0(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n        uVar4 = 0;\n        goto LAB_0001b934;\n      }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        piVar2 = __errno_location();\n        pcVar3 = strerror(*piVar2);\n        FUN_00020aa0(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);\n        uVar4 = 0;\n        goto LAB_0001b934;\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_00020aa0(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);" (call_expression "FUN_00020aa0(param_1,"Call to epoll_ctl failed: %s\n",pcVar3)" (identifier "FUN_00020aa0") (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")) (; ";")) (goto_statement "goto LAB_0001b934;" (goto "goto") (statement_identifier "LAB_0001b934") (; ";")) (} "}"))) (} "}"))) (} "}"))) (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" (identifier "uVar4") (= "=") (number_literal "1")) (; ";")) (labeled_statement "LAB_0001b934:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }" (statement_identifier "LAB_0001b934") (: ":") (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }" (if "if") (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return uVar4;\n  }" ({ "{") (return_statement "return uVar4;" (return "return") (identifier "uVar4") (; ";")) (} "}")))) (expression_statement "FUN_00028540();" (call_expression "FUN_00028540()" (identifier "FUN_00028540") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* 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 __regparm3 function_1(type_1 *daemon)

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


(translation_unit (function_definition type: (type_identifier) (ERROR (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: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (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))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (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))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier))))) alternative: (else_clause (compound_statement (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: (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 (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (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))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier))))) alternative: (else_clause (compound_statement (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: (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: (field_expression argument: (identifier) field: (field_identifier)) field: (field_identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (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))))) (pointer_expression argument: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (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)))) (goto_statement label: (statement_identifier)))) (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: (field_expression argument: (field_expression argument: (identifier) field: (field_identifier)) field: (field_identifier)) right: (string_literal (string_content)))) (expression_statement (assignment_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (number_literal))) (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))))) (pointer_expression argument: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (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))) (goto_statement label: (statement_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: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (return_statement (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

undefined4 __regparm3 MASKED(char *param_1)

{
  int iVar1;
  int *piVar2;
  char *pcVar3;
  undefined4 uVar4;
  int in_GS_OFFSET;
  epoll_event local_2c;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x1b8db;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  iVar1 = epoll_create1(0x80000);
  if (iVar1 == -1) {
    iVar1 = FUN_0001b890();
    *(int *)(param_1 + 0xcc) = iVar1;
    if (iVar1 == -1) {
      uVar4 = 0;
      goto LAB_0001b934;
    }
  }
  else {
    *(int *)(param_1 + 0xcc) = iVar1;
  }
  if ((param_1[0xf9] & 0x80U) != 0) {
    iVar1 = epoll_create1(0x80000);
    if (iVar1 == -1) {
      iVar1 = FUN_0001b890();
      *(int *)(param_1 + 0xd4) = iVar1;
      if (iVar1 == -1) {
        uVar4 = 0;
        goto LAB_0001b934;
      }
    }
    else {
      *(int *)(param_1 + 0xd4) = iVar1;
    }
  }
  if ((*(int *)(param_1 + 0xc4) != -1) && (param_1[0xe1] == '\0')) {
    local_2c.events = 1;
    local_2c.data.fd = (int)param_1;
    iVar1 = epoll_ctl(*(int *)(param_1 + 0xcc),1,*(int *)(param_1 + 0xc4),&local_2c);
    if (iVar1 != 0) {
      piVar2 = __errno_location();
      uVar4 = 0;
      pcVar3 = strerror(*piVar2);
      FUN_00020aa0(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);
      goto LAB_0001b934;
    }
    param_1[0xd0] = '\x01';
    if (*(int *)(param_1 + 0xdc) != -1) {
      local_2c.data.ptr = "itc_marker";
      local_2c.events = 1;
      iVar1 = epoll_ctl(*(int *)(param_1 + 0xcc),1,*(int *)(param_1 + 0xdc),&local_2c);
      if (iVar1 != 0) {
        piVar2 = __errno_location();
        pcVar3 = strerror(*piVar2);
        FUN_00020aa0(param_1,"Call to epoll_ctl failed: %s\n",pcVar3);
        uVar4 = 0;
        goto LAB_0001b934;
      }
    }
  }
  uVar4 = 1;
LAB_0001b934:
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return uVar4;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00028540();
}

