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

pid_t wait_any_nohang(int *wstat)

{
}



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

void __regparm3 FUN_0001999d(int *param_1)

{
  int *piVar1;
  __pid_t _Var2;
  
  piVar1 = DAT_000d16fc;
  do {
    _Var2 = waitpid(-1,param_1,1);
    if (_Var2 != -1) {
      return;
    }
  } while (*piVar1 == 4);
  return;
}


PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00017640
ADD EBX,0xb707b
MOV EDI,EAX
MOV ESI,dword ptr [EBX + 0xcdc]
PUSH EAX
PUSH 0x1
PUSH EDI
PUSH -0x1
CALL 0x00016750
ADD ESP,0x10
CMP EAX,-0x1
JNZ 0x000199cb
CMP dword ptr [ESI],0x4
JZ 0x000199b3
POP EBX
POP ESI
POP EDI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_0001999d(int *param_1)\n\n{\n  int *piVar1;\n  __pid_t _Var2;\n  \n  piVar1 = DAT_000d16fc;\n  do {\n    _Var2 = waitpid(-1,param_1,1);\n    if (_Var2 != -1) {\n      return;\n    }\n  } while (*piVar1 == 4);\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_0001999d(int *param_1)\n\n{\n  int *piVar1;\n  __pid_t _Var2;\n  \n  piVar1 = DAT_000d16fc;\n  do {\n    _Var2 = waitpid(-1,param_1,1);\n    if (_Var2 != -1) {\n      return;\n    }\n  } while (*piVar1 == 4);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0001999d(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  __pid_t _Var2;\n  \n  piVar1 = DAT_000d16fc;\n  do {\n    _Var2 = waitpid(-1,param_1,1);\n    if (_Var2 != -1) {\n      return;\n    }\n  } while (*piVar1 == 4);\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "__pid_t _Var2;" type_identifier identifier ;) (expression_statement "piVar1 = DAT_000d16fc;" (assignment_expression "piVar1 = DAT_000d16fc" identifier = identifier) ;) (do_statement "do {\n    _Var2 = waitpid(-1,param_1,1);\n    if (_Var2 != -1) {\n      return;\n    }\n  } while (*piVar1 == 4);" do (compound_statement "{\n    _Var2 = waitpid(-1,param_1,1);\n    if (_Var2 != -1) {\n      return;\n    }\n  }" { (expression_statement "_Var2 = waitpid(-1,param_1,1);" (assignment_expression "_Var2 = waitpid(-1,param_1,1)" identifier = (call_expression "waitpid(-1,param_1,1)" identifier (argument_list "(-1,param_1,1)" ( number_literal , identifier , number_literal )))) ;) (if_statement "if (_Var2 != -1) {\n      return;\n    }" if (parenthesized_expression "(_Var2 != -1)" ( (binary_expression "_Var2 != -1" identifier != number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) }) while (parenthesized_expression "(*piVar1 == 4)" ( (binary_expression "*piVar1 == 4" (pointer_expression "*piVar1" * identifier) == number_literal) )) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\npid_t wait_any_nohang(int *wstat)\n\n{\n}\n\n" comment (function_definition "pid_t wait_any_nohang(int *wstat)\n\n{\n}" type_identifier (function_declarator "wait_any_nohang(int *wstat)" identifier (parameter_list "(int *wstat)" ( (parameter_declaration "int *wstat" primitive_type (pointer_declarator "*wstat" * identifier)) ))) (compound_statement "{\n}" { })))
(translation_unit "void __regparm3 FUN_0001999d(int *param_1)\n\n{\n  int *piVar1;\n  __pid_t _Var2;\n  \n  piVar1 = DAT_000d16fc;\n  do {\n    _Var2 = waitpid(-1,param_1,1);\n    if (_Var2 != -1) {\n      return;\n    }\n  } while (*piVar1 == 4);\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_0001999d(int *param_1)\n\n{\n  int *piVar1;\n  __pid_t _Var2;\n  \n  piVar1 = DAT_000d16fc;\n  do {\n    _Var2 = waitpid(-1,param_1,1);\n    if (_Var2 != -1) {\n      return;\n    }\n  } while (*piVar1 == 4);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0001999d(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  __pid_t _Var2;\n  \n  piVar1 = DAT_000d16fc;\n  do {\n    _Var2 = waitpid(-1,param_1,1);\n    if (_Var2 != -1) {\n      return;\n    }\n  } while (*piVar1 == 4);\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "__pid_t _Var2;" type_identifier identifier ;) (expression_statement "piVar1 = DAT_000d16fc;" (assignment_expression "piVar1 = DAT_000d16fc" identifier = identifier) ;) (do_statement "do {\n    _Var2 = waitpid(-1,param_1,1);\n    if (_Var2 != -1) {\n      return;\n    }\n  } while (*piVar1 == 4);" do (compound_statement "{\n    _Var2 = waitpid(-1,param_1,1);\n    if (_Var2 != -1) {\n      return;\n    }\n  }" { (expression_statement "_Var2 = waitpid(-1,param_1,1);" (assignment_expression "_Var2 = waitpid(-1,param_1,1)" identifier = (call_expression "waitpid(-1,param_1,1)" identifier (argument_list "(-1,param_1,1)" ( number_literal , identifier , number_literal )))) ;) (if_statement "if (_Var2 != -1) {\n      return;\n    }" if (parenthesized_expression "(_Var2 != -1)" ( (binary_expression "_Var2 != -1" identifier != number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) }) while (parenthesized_expression "(*piVar1 == 4)" ( (binary_expression "*piVar1 == 4" (pointer_expression "*piVar1" * identifier) == number_literal) )) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return ;) })) }) while (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_0001999d(int *param_1)\n\n{\n  int *piVar1;\n  __pid_t _Var2;\n  \n  piVar1 = DAT_000d16fc;\n  do {\n    _Var2 = waitpid(-1,param_1,1);\n    if (_Var2 != -1) {\n      return;\n    }\n  } while (*piVar1 == 4);\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0001999d(int *param_1)" (identifier "FUN_0001999d") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int *piVar1;\n  __pid_t _Var2;\n  \n  piVar1 = DAT_000d16fc;\n  do {\n    _Var2 = waitpid(-1,param_1,1);\n    if (_Var2 != -1) {\n      return;\n    }\n  } while (*piVar1 == 4);\n  return;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "__pid_t _Var2;" (type_identifier "__pid_t") (identifier "_Var2") (; ";")) (expression_statement "piVar1 = DAT_000d16fc;" (assignment_expression "piVar1 = DAT_000d16fc" (identifier "piVar1") (= "=") (identifier "DAT_000d16fc")) (; ";")) (do_statement "do {\n    _Var2 = waitpid(-1,param_1,1);\n    if (_Var2 != -1) {\n      return;\n    }\n  } while (*piVar1 == 4);" (do "do") (compound_statement "{\n    _Var2 = waitpid(-1,param_1,1);\n    if (_Var2 != -1) {\n      return;\n    }\n  }" ({ "{") (expression_statement "_Var2 = waitpid(-1,param_1,1);" (assignment_expression "_Var2 = waitpid(-1,param_1,1)" (identifier "_Var2") (= "=") (call_expression "waitpid(-1,param_1,1)" (identifier "waitpid") (argument_list "(-1,param_1,1)" (( "(") (number_literal "-1") (, ",") (identifier "param_1") (, ",") (number_literal "1") () ")")))) (; ";")) (if_statement "if (_Var2 != -1) {\n      return;\n    }" (if "if") (parenthesized_expression "(_Var2 != -1)" (( "(") (binary_expression "_Var2 != -1" (identifier "_Var2") (!= "!=") (number_literal "-1")) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "(*piVar1 == 4)" (( "(") (binary_expression "*piVar1 == 4" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (== "==") (number_literal "4")) () ")")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

type_1 function_1(int *wstat)

{
}


(translation_unit (function_definition type: (primitive_type) (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: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (identifier) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement)))) condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))) (return_statement))))

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

void __regparm3 MASKED(int *param_1)

{
  int *piVar1;
  __pid_t _Var2;
  
  piVar1 = DAT_000d16fc;
  do {
    _Var2 = waitpid(-1,param_1,1);
    if (_Var2 != -1) {
      return;
    }
  } while (*piVar1 == 4);
  return;
}

