
void pollwrap_add_fd_rwx(pollwrapper *pw,int fd,int rwx)

{
  uint events;
  
  events = rwx & 1;
  if (events != 0) {
    events = 0xc1;
  }
  if ((rwx & 2U) != 0) {
    events = events | 0x304;
  }
  if ((rwx & 4U) != 0) {
    events = events | 2;
  }
  pollwrap_add_fd_events(pw,fd,events);
  return;
}



void FUN_0009c8c0(void)

{
  FUN_0009c790();
  return;
}


MOV EDX,dword ptr [ESP + 0xc]
MOV ECX,0xc1
MOV EAX,EDX
AND EAX,0x1
CMOVNZ EAX,ECX
MOV ECX,EAX
OR ECX,0x304
TEST DL,0x2
CMOVNZ EAX,ECX
MOV ECX,EAX
OR ECX,0x2
AND EDX,0x4
CMOVNZ EAX,ECX
MOV dword ptr [ESP + 0xc],EAX
JMP 0x0009c790
(translation_unit "void FUN_0009c8c0(void)\n\n{\n  FUN_0009c790();\n  return;\n}\n\n" (function_definition "void FUN_0009c8c0(void)\n\n{\n  FUN_0009c790();\n  return;\n}" primitive_type (function_declarator "FUN_0009c8c0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  FUN_0009c790();\n  return;\n}" { (expression_statement "FUN_0009c790();" (call_expression "FUN_0009c790()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void pollwrap_add_fd_rwx(pollwrapper *pw,int fd,int rwx)\n\n{\n  uint events;\n  \n  events = rwx & 1;\n  if (events != 0) {\n    events = 0xc1;\n  }\n  if ((rwx & 2U) != 0) {\n    events = events | 0x304;\n  }\n  if ((rwx & 4U) != 0) {\n    events = events | 2;\n  }\n  pollwrap_add_fd_events(pw,fd,events);\n  return;\n}\n\n" (function_definition "void pollwrap_add_fd_rwx(pollwrapper *pw,int fd,int rwx)\n\n{\n  uint events;\n  \n  events = rwx & 1;\n  if (events != 0) {\n    events = 0xc1;\n  }\n  if ((rwx & 2U) != 0) {\n    events = events | 0x304;\n  }\n  if ((rwx & 4U) != 0) {\n    events = events | 2;\n  }\n  pollwrap_add_fd_events(pw,fd,events);\n  return;\n}" primitive_type (function_declarator "pollwrap_add_fd_rwx(pollwrapper *pw,int fd,int rwx)" identifier (parameter_list "(pollwrapper *pw,int fd,int rwx)" ( (parameter_declaration "pollwrapper *pw" type_identifier (pointer_declarator "*pw" * identifier)) , (parameter_declaration "int fd" primitive_type identifier) , (parameter_declaration "int rwx" primitive_type identifier) ))) (compound_statement "{\n  uint events;\n  \n  events = rwx & 1;\n  if (events != 0) {\n    events = 0xc1;\n  }\n  if ((rwx & 2U) != 0) {\n    events = events | 0x304;\n  }\n  if ((rwx & 4U) != 0) {\n    events = events | 2;\n  }\n  pollwrap_add_fd_events(pw,fd,events);\n  return;\n}" { (declaration "uint events;" type_identifier identifier ;) (expression_statement "events = rwx & 1;" (assignment_expression "events = rwx & 1" identifier = (binary_expression "rwx & 1" identifier & number_literal)) ;) (if_statement "if (events != 0) {\n    events = 0xc1;\n  }" if (parenthesized_expression "(events != 0)" ( (binary_expression "events != 0" identifier != number_literal) )) (compound_statement "{\n    events = 0xc1;\n  }" { (expression_statement "events = 0xc1;" (assignment_expression "events = 0xc1" identifier = number_literal) ;) })) (if_statement "if ((rwx & 2U) != 0) {\n    events = events | 0x304;\n  }" if (parenthesized_expression "((rwx & 2U) != 0)" ( (binary_expression "(rwx & 2U) != 0" (parenthesized_expression "(rwx & 2U)" ( (binary_expression "rwx & 2U" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    events = events | 0x304;\n  }" { (expression_statement "events = events | 0x304;" (assignment_expression "events = events | 0x304" identifier = (binary_expression "events | 0x304" identifier | number_literal)) ;) })) (if_statement "if ((rwx & 4U) != 0) {\n    events = events | 2;\n  }" if (parenthesized_expression "((rwx & 4U) != 0)" ( (binary_expression "(rwx & 4U) != 0" (parenthesized_expression "(rwx & 4U)" ( (binary_expression "rwx & 4U" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    events = events | 2;\n  }" { (expression_statement "events = events | 2;" (assignment_expression "events = events | 2" identifier = (binary_expression "events | 2" identifier | number_literal)) ;) })) (expression_statement "pollwrap_add_fd_events(pw,fd,events);" (call_expression "pollwrap_add_fd_events(pw,fd,events)" identifier (argument_list "(pw,fd,events)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0009c8c0(void)\n\n{\n  FUN_0009c790();\n  return;\n}\n\n" (function_definition "void FUN_0009c8c0(void)\n\n{\n  FUN_0009c790();\n  return;\n}" primitive_type (function_declarator "FUN_0009c8c0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  FUN_0009c790();\n  return;\n}" { (expression_statement "FUN_0009c790();" (call_expression "FUN_0009c790()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })))
(function_definition "void FUN_0009c8c0(void)\n\n{\n  FUN_0009c790();\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0009c8c0(void)" (identifier "FUN_0009c8c0") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  FUN_0009c790();\n  return;\n}" ({ "{") (expression_statement "FUN_0009c790();" (call_expression "FUN_0009c790()" (identifier "FUN_0009c790") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *pw,int fd,int var_1)

{
  type_2 var_2;
  
  var_2 = var_1 & 1;
  if (var_2 != 0) {
    var_2 = 0xc1;
  }
  if ((var_1 & 2U) != 0) {
    var_2 = var_2 | 0x304;
  }
  if ((var_1 & 4U) != 0) {
    var_2 = var_2 | 2;
  }
  var_3(pw,fd,var_2);
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type)))) body: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (return_statement))))

void MASKED(void)

{
  FUN_0009c790();
  return;
}

