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

int safe_poll(pollfd *ufds,nfds_t nfds,int timeout)

{
}



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

pollfd * __regparm3 FUN_000b181c(pollfd *param_1,nfds_t param_2,int param_3)

{
  uint *puVar1;
  pollfd *ppVar2;
  nfds_t nVar3;
  int iVar4;
  pollfd *ppVar5;
  
  puVar1 = DAT_000d16fc;
  ppVar2 = param_1;
  do {
    nVar3 = param_2;
    iVar4 = param_3;
    ppVar5 = ppVar2;
    ppVar2 = (pollfd *)poll(param_1,param_2,param_3);
    if (-1 < (int)ppVar2) {
      return ppVar2;
    }
    if (0 < param_3) {
      param_3 = param_3 + -1;
    }
  } while ((*puVar1 & 0xfffffff7) == 4);
  FUN_00018e3c(&DAT_000c608d,nVar3,iVar4,ppVar5);
  return ppVar2;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x1c
CALL 0x00017640
ADD EBX,0x1f1f8
MOV EDI,EAX
MOV EBP,EDX
MOV ESI,ECX
MOV EDX,dword ptr [EBX + 0xcdc]
MOV dword ptr [ESP + 0xc],EDX
PUSH EAX
PUSH ESI
PUSH EBP
PUSH EDI
CALL 0x000166e0
ADD ESP,0x10
TEST EAX,EAX
JNS 0x000b187b
TEST ESI,ESI
MOV EDX,dword ptr [ESP + 0xc]
JLE 0x000b1857
DEC ESI
MOV dword ptr [ESP + 0xc],EAX
MOV ECX,dword ptr [EDX]
AND ECX,0xfffffff7
CMP ECX,0x4
JZ 0x000b183a
SUB ESP,0xc
LEA EDX,[EBX + 0xffff566d]
PUSH EDX
CALL 0x00018e3c
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0xc]
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\npollfd * __regparm3 FUN_000b181c(pollfd *param_1,nfds_t param_2,int param_3)\n\n{\n  uint *puVar1;\n  pollfd *ppVar2;\n  nfds_t nVar3;\n  int iVar4;\n  pollfd *ppVar5;\n  \n  puVar1 = DAT_000d16fc;\n  ppVar2 = param_1;\n  do {\n    nVar3 = param_2;\n    iVar4 = param_3;\n    ppVar5 = ppVar2;\n    ppVar2 = (pollfd *)poll(param_1,param_2,param_3);\n    if (-1 < (int)ppVar2) {\n      return ppVar2;\n    }\n    if (0 < param_3) {\n      param_3 = param_3 + -1;\n    }\n  } while ((*puVar1 & 0xfffffff7) == 4);\n  FUN_00018e3c(&DAT_000c608d,nVar3,iVar4,ppVar5);\n  return ppVar2;\n}\n\n" comment (ERROR "pollfd * __regparm3 FUN_000b181c(pollfd *param_1,nfds_t param_2,int param_3)" (binary_expression "pollfd * __regparm3 FUN_000b181c(pollfd *param_1,nfds_t param_2,int param_3)" identifier * (ERROR "__regparm3" identifier) (call_expression "FUN_000b181c(pollfd *param_1,nfds_t param_2,int param_3)" identifier (argument_list "(pollfd *param_1,nfds_t param_2,int param_3)" ( (binary_expression "pollfd *param_1" identifier * identifier) , (ERROR "nfds_t" identifier) identifier , (ERROR "int" identifier) identifier ))))) (compound_statement "{\n  uint *puVar1;\n  pollfd *ppVar2;\n  nfds_t nVar3;\n  int iVar4;\n  pollfd *ppVar5;\n  \n  puVar1 = DAT_000d16fc;\n  ppVar2 = param_1;\n  do {\n    nVar3 = param_2;\n    iVar4 = param_3;\n    ppVar5 = ppVar2;\n    ppVar2 = (pollfd *)poll(param_1,param_2,param_3);\n    if (-1 < (int)ppVar2) {\n      return ppVar2;\n    }\n    if (0 < param_3) {\n      param_3 = param_3 + -1;\n    }\n  } while ((*puVar1 & 0xfffffff7) == 4);\n  FUN_00018e3c(&DAT_000c608d,nVar3,iVar4,ppVar5);\n  return ppVar2;\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "pollfd *ppVar2;" type_identifier (pointer_declarator "*ppVar2" * identifier) ;) (declaration "nfds_t nVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "pollfd *ppVar5;" type_identifier (pointer_declarator "*ppVar5" * identifier) ;) (expression_statement "puVar1 = DAT_000d16fc;" (assignment_expression "puVar1 = DAT_000d16fc" identifier = identifier) ;) (expression_statement "ppVar2 = param_1;" (assignment_expression "ppVar2 = param_1" identifier = identifier) ;) (do_statement "do {\n    nVar3 = param_2;\n    iVar4 = param_3;\n    ppVar5 = ppVar2;\n    ppVar2 = (pollfd *)poll(param_1,param_2,param_3);\n    if (-1 < (int)ppVar2) {\n      return ppVar2;\n    }\n    if (0 < param_3) {\n      param_3 = param_3 + -1;\n    }\n  } while ((*puVar1 & 0xfffffff7) == 4);" do (compound_statement "{\n    nVar3 = param_2;\n    iVar4 = param_3;\n    ppVar5 = ppVar2;\n    ppVar2 = (pollfd *)poll(param_1,param_2,param_3);\n    if (-1 < (int)ppVar2) {\n      return ppVar2;\n    }\n    if (0 < param_3) {\n      param_3 = param_3 + -1;\n    }\n  }" { (expression_statement "nVar3 = param_2;" (assignment_expression "nVar3 = param_2" identifier = identifier) ;) (expression_statement "iVar4 = param_3;" (assignment_expression "iVar4 = param_3" identifier = identifier) ;) (expression_statement "ppVar5 = ppVar2;" (assignment_expression "ppVar5 = ppVar2" identifier = identifier) ;) (expression_statement "ppVar2 = (pollfd *)poll(param_1,param_2,param_3);" (assignment_expression "ppVar2 = (pollfd *)poll(param_1,param_2,param_3)" identifier = (cast_expression "(pollfd *)poll(param_1,param_2,param_3)" ( (type_descriptor "pollfd *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "poll(param_1,param_2,param_3)" identifier (argument_list "(param_1,param_2,param_3)" ( identifier , identifier , identifier ))))) ;) (if_statement "if (-1 < (int)ppVar2) {\n      return ppVar2;\n    }" if (parenthesized_expression "(-1 < (int)ppVar2)" ( (binary_expression "-1 < (int)ppVar2" number_literal < (cast_expression "(int)ppVar2" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n      return ppVar2;\n    }" { (return_statement "return ppVar2;" return identifier ;) })) (if_statement "if (0 < param_3) {\n      param_3 = param_3 + -1;\n    }" if (parenthesized_expression "(0 < param_3)" ( (binary_expression "0 < param_3" number_literal < identifier) )) (compound_statement "{\n      param_3 = param_3 + -1;\n    }" { (expression_statement "param_3 = param_3 + -1;" (assignment_expression "param_3 = param_3 + -1" identifier = (binary_expression "param_3 + -1" identifier + number_literal)) ;) })) }) while (parenthesized_expression "((*puVar1 & 0xfffffff7) == 4)" ( (binary_expression "(*puVar1 & 0xfffffff7) == 4" (parenthesized_expression "(*puVar1 & 0xfffffff7)" ( (binary_expression "*puVar1 & 0xfffffff7" (pointer_expression "*puVar1" * identifier) & number_literal) )) == number_literal) )) ;) (expression_statement "FUN_00018e3c(&DAT_000c608d,nVar3,iVar4,ppVar5);" (call_expression "FUN_00018e3c(&DAT_000c608d,nVar3,iVar4,ppVar5)" identifier (argument_list "(&DAT_000c608d,nVar3,iVar4,ppVar5)" ( (pointer_expression "&DAT_000c608d" & identifier) , identifier , identifier , identifier ))) ;) (return_statement "return ppVar2;" return identifier ;) }))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint safe_poll(pollfd *ufds,nfds_t nfds,int timeout)\n\n{\n}\n\n" comment (function_definition "int safe_poll(pollfd *ufds,nfds_t nfds,int timeout)\n\n{\n}" primitive_type (function_declarator "safe_poll(pollfd *ufds,nfds_t nfds,int timeout)" identifier (parameter_list "(pollfd *ufds,nfds_t nfds,int timeout)" ( (parameter_declaration "pollfd *ufds" type_identifier (pointer_declarator "*ufds" * identifier)) , (parameter_declaration "nfds_t nfds" type_identifier identifier) , (parameter_declaration "int timeout" primitive_type identifier) ))) (compound_statement "{\n}" { })))
(translation_unit "pollfd * __regparm3 FUN_000b181c(pollfd *param_1,nfds_t param_2,int param_3)\n\n{\n  uint *puVar1;\n  pollfd *ppVar2;\n  nfds_t nVar3;\n  int iVar4;\n  pollfd *ppVar5;\n  \n  puVar1 = DAT_000d16fc;\n  ppVar2 = param_1;\n  do {\n    nVar3 = param_2;\n    iVar4 = param_3;\n    ppVar5 = ppVar2;\n    ppVar2 = (pollfd *)poll(param_1,param_2,param_3);\n    if (-1 < (int)ppVar2) {\n      return ppVar2;\n    }\n    if (0 < param_3) {\n      param_3 = param_3 + -1;\n    }\n  } while ((*puVar1 & 0xfffffff7) == 4);\n  FUN_00018e3c(&DAT_000c608d,nVar3,iVar4,ppVar5);\n  return ppVar2;\n}\n\n" (ERROR "pollfd * __regparm3 FUN_000b181c(pollfd *param_1,nfds_t param_2,int param_3)" (binary_expression "pollfd * __regparm3 FUN_000b181c(pollfd *param_1,nfds_t param_2,int param_3)" identifier * (ERROR "__regparm3" identifier) (call_expression "FUN_000b181c(pollfd *param_1,nfds_t param_2,int param_3)" identifier (argument_list "(pollfd *param_1,nfds_t param_2,int param_3)" ( (binary_expression "pollfd *param_1" identifier * identifier) , (ERROR "nfds_t" identifier) identifier , (ERROR "int" identifier) identifier ))))) (compound_statement "{\n  uint *puVar1;\n  pollfd *ppVar2;\n  nfds_t nVar3;\n  int iVar4;\n  pollfd *ppVar5;\n  \n  puVar1 = DAT_000d16fc;\n  ppVar2 = param_1;\n  do {\n    nVar3 = param_2;\n    iVar4 = param_3;\n    ppVar5 = ppVar2;\n    ppVar2 = (pollfd *)poll(param_1,param_2,param_3);\n    if (-1 < (int)ppVar2) {\n      return ppVar2;\n    }\n    if (0 < param_3) {\n      param_3 = param_3 + -1;\n    }\n  } while ((*puVar1 & 0xfffffff7) == 4);\n  FUN_00018e3c(&DAT_000c608d,nVar3,iVar4,ppVar5);\n  return ppVar2;\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "pollfd *ppVar2;" type_identifier (pointer_declarator "*ppVar2" * identifier) ;) (declaration "nfds_t nVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "pollfd *ppVar5;" type_identifier (pointer_declarator "*ppVar5" * identifier) ;) (expression_statement "puVar1 = DAT_000d16fc;" (assignment_expression "puVar1 = DAT_000d16fc" identifier = identifier) ;) (expression_statement "ppVar2 = param_1;" (assignment_expression "ppVar2 = param_1" identifier = identifier) ;) (do_statement "do {\n    nVar3 = param_2;\n    iVar4 = param_3;\n    ppVar5 = ppVar2;\n    ppVar2 = (pollfd *)poll(param_1,param_2,param_3);\n    if (-1 < (int)ppVar2) {\n      return ppVar2;\n    }\n    if (0 < param_3) {\n      param_3 = param_3 + -1;\n    }\n  } while ((*puVar1 & 0xfffffff7) == 4);" do (compound_statement "{\n    nVar3 = param_2;\n    iVar4 = param_3;\n    ppVar5 = ppVar2;\n    ppVar2 = (pollfd *)poll(param_1,param_2,param_3);\n    if (-1 < (int)ppVar2) {\n      return ppVar2;\n    }\n    if (0 < param_3) {\n      param_3 = param_3 + -1;\n    }\n  }" { (expression_statement "nVar3 = param_2;" (assignment_expression "nVar3 = param_2" identifier = identifier) ;) (expression_statement "iVar4 = param_3;" (assignment_expression "iVar4 = param_3" identifier = identifier) ;) (expression_statement "ppVar5 = ppVar2;" (assignment_expression "ppVar5 = ppVar2" identifier = identifier) ;) (expression_statement "ppVar2 = (pollfd *)poll(param_1,param_2,param_3);" (assignment_expression "ppVar2 = (pollfd *)poll(param_1,param_2,param_3)" identifier = (cast_expression "(pollfd *)poll(param_1,param_2,param_3)" ( (type_descriptor "pollfd *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "poll(param_1,param_2,param_3)" identifier (argument_list "(param_1,param_2,param_3)" ( identifier , identifier , identifier ))))) ;) (if_statement "if (-1 < (int)ppVar2) {\n      return ppVar2;\n    }" if (parenthesized_expression "(-1 < (int)ppVar2)" ( (binary_expression "-1 < (int)ppVar2" number_literal < (cast_expression "(int)ppVar2" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n      return ppVar2;\n    }" { (return_statement "return ppVar2;" return identifier ;) })) (if_statement "if (0 < param_3) {\n      param_3 = param_3 + -1;\n    }" if (parenthesized_expression "(0 < param_3)" ( (binary_expression "0 < param_3" number_literal < identifier) )) (compound_statement "{\n      param_3 = param_3 + -1;\n    }" { (expression_statement "param_3 = param_3 + -1;" (assignment_expression "param_3 = param_3 + -1" identifier = (binary_expression "param_3 + -1" identifier + number_literal)) ;) })) }) while (parenthesized_expression "((*puVar1 & 0xfffffff7) == 4)" ( (binary_expression "(*puVar1 & 0xfffffff7) == 4" (parenthesized_expression "(*puVar1 & 0xfffffff7)" ( (binary_expression "*puVar1 & 0xfffffff7" (pointer_expression "*puVar1" * identifier) & number_literal) )) == number_literal) )) ;) (expression_statement "FUN_00018e3c(&DAT_000c608d,nVar3,iVar4,ppVar5);" (call_expression "FUN_00018e3c(&DAT_000c608d,nVar3,iVar4,ppVar5)" identifier (argument_list "(&DAT_000c608d,nVar3,iVar4,ppVar5)" ( (pointer_expression "&DAT_000c608d" & identifier) , identifier , identifier , identifier ))) ;) (return_statement "return ppVar2;" return identifier ;) }))
(translation_unit (ERROR (binary_expression IDENT * (ERROR IDENT) (call_expression IDENT (argument_list ( (binary_expression IDENT * IDENT) , (ERROR IDENT) IDENT , (ERROR IDENT) IDENT ))))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) }) while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) & LIT) )) == LIT) )) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , IDENT , IDENT , IDENT ))) ;) (return_statement return IDENT ;) }))
(ERROR "pollfd * __regparm3 FUN_000b181c(pollfd *param_1,nfds_t param_2,int param_3)" (binary_expression "pollfd * __regparm3 FUN_000b181c(pollfd *param_1,nfds_t param_2,int param_3)" (identifier "pollfd") (* "*") (ERROR "__regparm3" (identifier "__regparm3")) (call_expression "FUN_000b181c(pollfd *param_1,nfds_t param_2,int param_3)" (identifier "FUN_000b181c") (argument_list "(pollfd *param_1,nfds_t param_2,int param_3)" (( "(") (binary_expression "pollfd *param_1" (identifier "pollfd") (* "*") (identifier "param_1")) (, ",") (ERROR "nfds_t" (identifier "nfds_t")) (identifier "param_2") (, ",") (ERROR "int" (identifier "int")) (identifier "param_3") () ")"))))) (compound_statement "{\n  uint *puVar1;\n  pollfd *ppVar2;\n  nfds_t nVar3;\n  int iVar4;\n  pollfd *ppVar5;\n  \n  puVar1 = DAT_000d16fc;\n  ppVar2 = param_1;\n  do {\n    nVar3 = param_2;\n    iVar4 = param_3;\n    ppVar5 = ppVar2;\n    ppVar2 = (pollfd *)poll(param_1,param_2,param_3);\n    if (-1 < (int)ppVar2) {\n      return ppVar2;\n    }\n    if (0 < param_3) {\n      param_3 = param_3 + -1;\n    }\n  } while ((*puVar1 & 0xfffffff7) == 4);\n  FUN_00018e3c(&DAT_000c608d,nVar3,iVar4,ppVar5);\n  return ppVar2;\n}" ({ "{") (declaration "uint *puVar1;" (type_identifier "uint") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "pollfd *ppVar2;" (type_identifier "pollfd") (pointer_declarator "*ppVar2" (* "*") (identifier "ppVar2")) (; ";")) (declaration "nfds_t nVar3;" (type_identifier "nfds_t") (identifier "nVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "pollfd *ppVar5;" (type_identifier "pollfd") (pointer_declarator "*ppVar5" (* "*") (identifier "ppVar5")) (; ";")) (expression_statement "puVar1 = DAT_000d16fc;" (assignment_expression "puVar1 = DAT_000d16fc" (identifier "puVar1") (= "=") (identifier "DAT_000d16fc")) (; ";")) (expression_statement "ppVar2 = param_1;" (assignment_expression "ppVar2 = param_1" (identifier "ppVar2") (= "=") (identifier "param_1")) (; ";")) (do_statement "do {\n    nVar3 = param_2;\n    iVar4 = param_3;\n    ppVar5 = ppVar2;\n    ppVar2 = (pollfd *)poll(param_1,param_2,param_3);\n    if (-1 < (int)ppVar2) {\n      return ppVar2;\n    }\n    if (0 < param_3) {\n      param_3 = param_3 + -1;\n    }\n  } while ((*puVar1 & 0xfffffff7) == 4);" (do "do") (compound_statement "{\n    nVar3 = param_2;\n    iVar4 = param_3;\n    ppVar5 = ppVar2;\n    ppVar2 = (pollfd *)poll(param_1,param_2,param_3);\n    if (-1 < (int)ppVar2) {\n      return ppVar2;\n    }\n    if (0 < param_3) {\n      param_3 = param_3 + -1;\n    }\n  }" ({ "{") (expression_statement "nVar3 = param_2;" (assignment_expression "nVar3 = param_2" (identifier "nVar3") (= "=") (identifier "param_2")) (; ";")) (expression_statement "iVar4 = param_3;" (assignment_expression "iVar4 = param_3" (identifier "iVar4") (= "=") (identifier "param_3")) (; ";")) (expression_statement "ppVar5 = ppVar2;" (assignment_expression "ppVar5 = ppVar2" (identifier "ppVar5") (= "=") (identifier "ppVar2")) (; ";")) (expression_statement "ppVar2 = (pollfd *)poll(param_1,param_2,param_3);" (assignment_expression "ppVar2 = (pollfd *)poll(param_1,param_2,param_3)" (identifier "ppVar2") (= "=") (cast_expression "(pollfd *)poll(param_1,param_2,param_3)" (( "(") (type_descriptor "pollfd *" (type_identifier "pollfd") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "poll(param_1,param_2,param_3)" (identifier "poll") (argument_list "(param_1,param_2,param_3)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")"))))) (; ";")) (if_statement "if (-1 < (int)ppVar2) {\n      return ppVar2;\n    }" (if "if") (parenthesized_expression "(-1 < (int)ppVar2)" (( "(") (binary_expression "-1 < (int)ppVar2" (number_literal "-1") (< "<") (cast_expression "(int)ppVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "ppVar2"))) () ")")) (compound_statement "{\n      return ppVar2;\n    }" ({ "{") (return_statement "return ppVar2;" (return "return") (identifier "ppVar2") (; ";")) (} "}"))) (if_statement "if (0 < param_3) {\n      param_3 = param_3 + -1;\n    }" (if "if") (parenthesized_expression "(0 < param_3)" (( "(") (binary_expression "0 < param_3" (number_literal "0") (< "<") (identifier "param_3")) () ")")) (compound_statement "{\n      param_3 = param_3 + -1;\n    }" ({ "{") (expression_statement "param_3 = param_3 + -1;" (assignment_expression "param_3 = param_3 + -1" (identifier "param_3") (= "=") (binary_expression "param_3 + -1" (identifier "param_3") (+ "+") (number_literal "-1"))) (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "((*puVar1 & 0xfffffff7) == 4)" (( "(") (binary_expression "(*puVar1 & 0xfffffff7) == 4" (parenthesized_expression "(*puVar1 & 0xfffffff7)" (( "(") (binary_expression "*puVar1 & 0xfffffff7" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (& "&") (number_literal "0xfffffff7")) () ")")) (== "==") (number_literal "4")) () ")")) (; ";")) (expression_statement "FUN_00018e3c(&DAT_000c608d,nVar3,iVar4,ppVar5);" (call_expression "FUN_00018e3c(&DAT_000c608d,nVar3,iVar4,ppVar5)" (identifier "FUN_00018e3c") (argument_list "(&DAT_000c608d,nVar3,iVar4,ppVar5)" (( "(") (pointer_expression "&DAT_000c608d" (& "&") (identifier "DAT_000c608d")) (, ",") (identifier "nVar3") (, ",") (identifier "iVar4") (, ",") (identifier "ppVar5") () ")"))) (; ";")) (return_statement "return ppVar2;" (return "return") (identifier "ppVar2") (; ";")) (} "}"))

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

int function_1(type_1 *ufds,type_2 nfds,int timeout)

{
}


(translation_unit (ERROR (binary_expression left: (identifier) (ERROR (identifier)) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)) (ERROR (identifier)) (identifier) (ERROR (identifier)) (identifier))))) (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) consequence: (compound_statement (return_statement (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))))) condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) right: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (identifier) (identifier) (identifier)))) (return_statement (identifier))))

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

pollfd * __regparm3 MASKED(pollfd *param_1,nfds_t param_2,int param_3)

{
  uint *puVar1;
  pollfd *ppVar2;
  nfds_t nVar3;
  int iVar4;
  pollfd *ppVar5;
  
  puVar1 = DAT_000d16fc;
  ppVar2 = param_1;
  do {
    nVar3 = param_2;
    iVar4 = param_3;
    ppVar5 = ppVar2;
    ppVar2 = (pollfd *)poll(param_1,param_2,param_3);
    if (-1 < (int)ppVar2) {
      return ppVar2;
    }
    if (0 < param_3) {
      param_3 = param_3 + -1;
    }
  } while ((*puVar1 & 0xfffffff7) == 4);
  FUN_00018e3c(&DAT_000c608d,nVar3,iVar4,ppVar5);
  return ppVar2;
}

