
void pollwrap_clear(pollwrapper *pw)

{
  int iVar1;
  
  pw->nfd = 0;
  while( true ) {
    iVar1 = (*(code *)PTR_delpos234_00111418)(pw->fdtopos,0);
    if (iVar1 == 0) break;
    (*(code *)PTR_safefree_001112f0)(iVar1);
  }
  return;
}



void pollwrap_clear(int param_1)

{
  int iVar1;
  
  *(undefined4 *)(param_1 + 4) = 0;
  while( true ) {
    iVar1 = (*(code *)PTR_delpos234_00111418)(*(undefined4 *)(param_1 + 0xc),0);
    if (iVar1 == 0) break;
    (*(code *)PTR_safefree_001112f0)(iVar1);
  }
  return;
}


lui gp,0x5
addiu gp,gp,0x4bbc
addu gp,gp,t9
addiu sp,sp,-0x20
sw gp,0x10(sp)
sw s0,0x18(sp)
or s0,a0,zero
sw ra,0x1c(sp)
b 0x000c4728
_sw zero,0x4(a0)
jalr t9
_or a0,v0,zero
lw gp,0x10(sp)
lw t9,-0x7e98(gp)
or a1,zero,zero
jalr t9
_lw a0,0xc(s0)
lw gp,0x10(sp)
bne v0,zero,0x000c471c
_lw t9,-0x7fc0(gp)
lw ra,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
(translation_unit "void pollwrap_clear(int param_1)\n\n{\n  int iVar1;\n  \n  *(undefined4 *)(param_1 + 4) = 0;\n  while( true ) {\n    iVar1 = (*(code *)PTR_delpos234_00111418)(*(undefined4 *)(param_1 + 0xc),0);\n    if (iVar1 == 0) break;\n    (*(code *)PTR_safefree_001112f0)(iVar1);\n  }\n  return;\n}\n\n" (function_definition "void pollwrap_clear(int param_1)\n\n{\n  int iVar1;\n  \n  *(undefined4 *)(param_1 + 4) = 0;\n  while( true ) {\n    iVar1 = (*(code *)PTR_delpos234_00111418)(*(undefined4 *)(param_1 + 0xc),0);\n    if (iVar1 == 0) break;\n    (*(code *)PTR_safefree_001112f0)(iVar1);\n  }\n  return;\n}" primitive_type (function_declarator "pollwrap_clear(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  *(undefined4 *)(param_1 + 4) = 0;\n  while( true ) {\n    iVar1 = (*(code *)PTR_delpos234_00111418)(*(undefined4 *)(param_1 + 0xc),0);\n    if (iVar1 == 0) break;\n    (*(code *)PTR_safefree_001112f0)(iVar1);\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "*(undefined4 *)(param_1 + 4) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 4) = 0" (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = number_literal) ;) (while_statement "while( true ) {\n    iVar1 = (*(code *)PTR_delpos234_00111418)(*(undefined4 *)(param_1 + 0xc),0);\n    if (iVar1 == 0) break;\n    (*(code *)PTR_safefree_001112f0)(iVar1);\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    iVar1 = (*(code *)PTR_delpos234_00111418)(*(undefined4 *)(param_1 + 0xc),0);\n    if (iVar1 == 0) break;\n    (*(code *)PTR_safefree_001112f0)(iVar1);\n  }" { (expression_statement "iVar1 = (*(code *)PTR_delpos234_00111418)(*(undefined4 *)(param_1 + 0xc),0);" (assignment_expression "iVar1 = (*(code *)PTR_delpos234_00111418)(*(undefined4 *)(param_1 + 0xc),0)" identifier = (call_expression "(*(code *)PTR_delpos234_00111418)(*(undefined4 *)(param_1 + 0xc),0)" (parenthesized_expression "(*(code *)PTR_delpos234_00111418)" ( (pointer_expression "*(code *)PTR_delpos234_00111418" * (cast_expression "(code *)PTR_delpos234_00111418" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 0xc),0)" ( (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) , number_literal )))) ;) (if_statement "if (iVar1 == 0) break;" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "(*(code *)PTR_safefree_001112f0)(iVar1);" (call_expression "(*(code *)PTR_safefree_001112f0)(iVar1)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1)" ( identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void pollwrap_clear(pollwrapper *pw)\n\n{\n  int iVar1;\n  \n  pw->nfd = 0;\n  while( true ) {\n    iVar1 = (*(code *)PTR_delpos234_00111418)(pw->fdtopos,0);\n    if (iVar1 == 0) break;\n    (*(code *)PTR_safefree_001112f0)(iVar1);\n  }\n  return;\n}\n\n" (function_definition "void pollwrap_clear(pollwrapper *pw)\n\n{\n  int iVar1;\n  \n  pw->nfd = 0;\n  while( true ) {\n    iVar1 = (*(code *)PTR_delpos234_00111418)(pw->fdtopos,0);\n    if (iVar1 == 0) break;\n    (*(code *)PTR_safefree_001112f0)(iVar1);\n  }\n  return;\n}" primitive_type (function_declarator "pollwrap_clear(pollwrapper *pw)" identifier (parameter_list "(pollwrapper *pw)" ( (parameter_declaration "pollwrapper *pw" type_identifier (pointer_declarator "*pw" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  pw->nfd = 0;\n  while( true ) {\n    iVar1 = (*(code *)PTR_delpos234_00111418)(pw->fdtopos,0);\n    if (iVar1 == 0) break;\n    (*(code *)PTR_safefree_001112f0)(iVar1);\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "pw->nfd = 0;" (assignment_expression "pw->nfd = 0" (field_expression "pw->nfd" identifier -> field_identifier) = number_literal) ;) (while_statement "while( true ) {\n    iVar1 = (*(code *)PTR_delpos234_00111418)(pw->fdtopos,0);\n    if (iVar1 == 0) break;\n    (*(code *)PTR_safefree_001112f0)(iVar1);\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    iVar1 = (*(code *)PTR_delpos234_00111418)(pw->fdtopos,0);\n    if (iVar1 == 0) break;\n    (*(code *)PTR_safefree_001112f0)(iVar1);\n  }" { (expression_statement "iVar1 = (*(code *)PTR_delpos234_00111418)(pw->fdtopos,0);" (assignment_expression "iVar1 = (*(code *)PTR_delpos234_00111418)(pw->fdtopos,0)" identifier = (call_expression "(*(code *)PTR_delpos234_00111418)(pw->fdtopos,0)" (parenthesized_expression "(*(code *)PTR_delpos234_00111418)" ( (pointer_expression "*(code *)PTR_delpos234_00111418" * (cast_expression "(code *)PTR_delpos234_00111418" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pw->fdtopos,0)" ( (field_expression "pw->fdtopos" identifier -> field_identifier) , number_literal )))) ;) (if_statement "if (iVar1 == 0) break;" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "(*(code *)PTR_safefree_001112f0)(iVar1);" (call_expression "(*(code *)PTR_safefree_001112f0)(iVar1)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1)" ( identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void pollwrap_clear(int param_1)\n\n{\n  int iVar1;\n  \n  *(undefined4 *)(param_1 + 4) = 0;\n  while( true ) {\n    iVar1 = (*(code *)PTR_delpos234_00111418)(*(undefined4 *)(param_1 + 0xc),0);\n    if (iVar1 == 0) break;\n    (*(code *)PTR_safefree_001112f0)(iVar1);\n  }\n  return;\n}\n\n" (function_definition "void pollwrap_clear(int param_1)\n\n{\n  int iVar1;\n  \n  *(undefined4 *)(param_1 + 4) = 0;\n  while( true ) {\n    iVar1 = (*(code *)PTR_delpos234_00111418)(*(undefined4 *)(param_1 + 0xc),0);\n    if (iVar1 == 0) break;\n    (*(code *)PTR_safefree_001112f0)(iVar1);\n  }\n  return;\n}" primitive_type (function_declarator "pollwrap_clear(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  *(undefined4 *)(param_1 + 4) = 0;\n  while( true ) {\n    iVar1 = (*(code *)PTR_delpos234_00111418)(*(undefined4 *)(param_1 + 0xc),0);\n    if (iVar1 == 0) break;\n    (*(code *)PTR_safefree_001112f0)(iVar1);\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "*(undefined4 *)(param_1 + 4) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 4) = 0" (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = number_literal) ;) (while_statement "while( true ) {\n    iVar1 = (*(code *)PTR_delpos234_00111418)(*(undefined4 *)(param_1 + 0xc),0);\n    if (iVar1 == 0) break;\n    (*(code *)PTR_safefree_001112f0)(iVar1);\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    iVar1 = (*(code *)PTR_delpos234_00111418)(*(undefined4 *)(param_1 + 0xc),0);\n    if (iVar1 == 0) break;\n    (*(code *)PTR_safefree_001112f0)(iVar1);\n  }" { (expression_statement "iVar1 = (*(code *)PTR_delpos234_00111418)(*(undefined4 *)(param_1 + 0xc),0);" (assignment_expression "iVar1 = (*(code *)PTR_delpos234_00111418)(*(undefined4 *)(param_1 + 0xc),0)" identifier = (call_expression "(*(code *)PTR_delpos234_00111418)(*(undefined4 *)(param_1 + 0xc),0)" (parenthesized_expression "(*(code *)PTR_delpos234_00111418)" ( (pointer_expression "*(code *)PTR_delpos234_00111418" * (cast_expression "(code *)PTR_delpos234_00111418" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 0xc),0)" ( (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) , number_literal )))) ;) (if_statement "if (iVar1 == 0) break;" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "(*(code *)PTR_safefree_001112f0)(iVar1);" (call_expression "(*(code *)PTR_safefree_001112f0)(iVar1)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1)" ( identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) })) (return_statement return ;) })))
(function_definition "void pollwrap_clear(int param_1)\n\n{\n  int iVar1;\n  \n  *(undefined4 *)(param_1 + 4) = 0;\n  while( true ) {\n    iVar1 = (*(code *)PTR_delpos234_00111418)(*(undefined4 *)(param_1 + 0xc),0);\n    if (iVar1 == 0) break;\n    (*(code *)PTR_safefree_001112f0)(iVar1);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "pollwrap_clear(int param_1)" (identifier "pollwrap_clear") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  *(undefined4 *)(param_1 + 4) = 0;\n  while( true ) {\n    iVar1 = (*(code *)PTR_delpos234_00111418)(*(undefined4 *)(param_1 + 0xc),0);\n    if (iVar1 == 0) break;\n    (*(code *)PTR_safefree_001112f0)(iVar1);\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "*(undefined4 *)(param_1 + 4) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 4) = 0" (pointer_expression "*(undefined4 *)(param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (= "=") (number_literal "0")) (; ";")) (while_statement "while( true ) {\n    iVar1 = (*(code *)PTR_delpos234_00111418)(*(undefined4 *)(param_1 + 0xc),0);\n    if (iVar1 == 0) break;\n    (*(code *)PTR_safefree_001112f0)(iVar1);\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    iVar1 = (*(code *)PTR_delpos234_00111418)(*(undefined4 *)(param_1 + 0xc),0);\n    if (iVar1 == 0) break;\n    (*(code *)PTR_safefree_001112f0)(iVar1);\n  }" ({ "{") (expression_statement "iVar1 = (*(code *)PTR_delpos234_00111418)(*(undefined4 *)(param_1 + 0xc),0);" (assignment_expression "iVar1 = (*(code *)PTR_delpos234_00111418)(*(undefined4 *)(param_1 + 0xc),0)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_delpos234_00111418)(*(undefined4 *)(param_1 + 0xc),0)" (parenthesized_expression "(*(code *)PTR_delpos234_00111418)" (( "(") (pointer_expression "*(code *)PTR_delpos234_00111418" (* "*") (cast_expression "(code *)PTR_delpos234_00111418" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_delpos234_00111418"))) () ")")) (argument_list "(*(undefined4 *)(param_1 + 0xc),0)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) break;" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "(*(code *)PTR_safefree_001112f0)(iVar1);" (call_expression "(*(code *)PTR_safefree_001112f0)(iVar1)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" (( "(") (pointer_expression "*(code *)PTR_safefree_001112f0" (* "*") (cast_expression "(code *)PTR_safefree_001112f0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safefree_001112f0"))) () ")")) (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *pw)

{
  int var_1;
  
  pw->nfd = 0;
  while( true ) {
    var_1 = (*(type_2 *)PTR_delpos234_00111418)(pw->fdtopos,0);
    if (var_1 == 0) break;
    (*(type_2 *)PTR_safefree_001112f0)(var_1);
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier)))))) (return_statement))))

void MASKED(int param_1)

{
  int iVar1;
  
  *(undefined4 *)(param_1 + 4) = 0;
  while( true ) {
    iVar1 = (*(code *)PTR_delpos234_00111418)(*(undefined4 *)(param_1 + 0xc),0);
    if (iVar1 == 0) break;
    (*(code *)PTR_safefree_001112f0)(iVar1);
  }
  return;
}

