
void coproc_close(coproc_conflict *cp)

{
  if (L'\xffffffff' < cp->c_rfd) {
    close(cp->c_rfd);
    cp->c_rfd = L'\xffffffff';
  }
  if (L'\xffffffff' < cp->c_wfd) {
    close(cp->c_wfd);
    cp->c_wfd = L'\xffffffff';
  }
  cp->c_wsave = L'\xffffffff';
  cp->c_rsave = L'\xffffffff';
  return;
}



void coproc_close(long param_1)

{
  if (-1 < *(int *)(param_1 + 0xc)) {
    close(*(int *)(param_1 + 0xc));
    *(undefined4 *)(param_1 + 0xc) = 0xffffffff;
  }
  if (-1 < *(int *)(param_1 + 0x10)) {
    close(*(int *)(param_1 + 0x10));
    *(undefined4 *)(param_1 + 0x10) = 0xffffffff;
  }
  *(undefined4 *)(param_1 + 0x18) = 0xffffffff;
  *(undefined4 *)(param_1 + 0x14) = 0xffffffff;
  return;
}


PUSH RBX
MOV RBX,RDI
MOV EDI,dword ptr [RDI + 0xc]
TEST EDI,EDI
JNS 0x001425cf
MOV EDI,dword ptr [RBX + 0x10]
TEST EDI,EDI
JNS 0x001425dd
MOV dword ptr [RBX + 0x18],0xffffffff
MOV dword ptr [RBX + 0x14],0xffffffff
POP RBX
RET
CALL 0x0012ddb8
MOV dword ptr [RBX + 0xc],0xffffffff
JMP 0x001425b8
CALL 0x0012ddb8
MOV dword ptr [RBX + 0x10],0xffffffff
JMP 0x001425bf
(translation_unit "void coproc_close(long param_1)\n\n{\n  if (-1 < *(int *)(param_1 + 0xc)) {\n    close(*(int *)(param_1 + 0xc));\n    *(undefined4 *)(param_1 + 0xc) = 0xffffffff;\n  }\n  if (-1 < *(int *)(param_1 + 0x10)) {\n    close(*(int *)(param_1 + 0x10));\n    *(undefined4 *)(param_1 + 0x10) = 0xffffffff;\n  }\n  *(undefined4 *)(param_1 + 0x18) = 0xffffffff;\n  *(undefined4 *)(param_1 + 0x14) = 0xffffffff;\n  return;\n}\n\n" (function_definition "void coproc_close(long param_1)\n\n{\n  if (-1 < *(int *)(param_1 + 0xc)) {\n    close(*(int *)(param_1 + 0xc));\n    *(undefined4 *)(param_1 + 0xc) = 0xffffffff;\n  }\n  if (-1 < *(int *)(param_1 + 0x10)) {\n    close(*(int *)(param_1 + 0x10));\n    *(undefined4 *)(param_1 + 0x10) = 0xffffffff;\n  }\n  *(undefined4 *)(param_1 + 0x18) = 0xffffffff;\n  *(undefined4 *)(param_1 + 0x14) = 0xffffffff;\n  return;\n}" primitive_type (function_declarator "coproc_close(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  if (-1 < *(int *)(param_1 + 0xc)) {\n    close(*(int *)(param_1 + 0xc));\n    *(undefined4 *)(param_1 + 0xc) = 0xffffffff;\n  }\n  if (-1 < *(int *)(param_1 + 0x10)) {\n    close(*(int *)(param_1 + 0x10));\n    *(undefined4 *)(param_1 + 0x10) = 0xffffffff;\n  }\n  *(undefined4 *)(param_1 + 0x18) = 0xffffffff;\n  *(undefined4 *)(param_1 + 0x14) = 0xffffffff;\n  return;\n}" { (if_statement "if (-1 < *(int *)(param_1 + 0xc)) {\n    close(*(int *)(param_1 + 0xc));\n    *(undefined4 *)(param_1 + 0xc) = 0xffffffff;\n  }" if (parenthesized_expression "(-1 < *(int *)(param_1 + 0xc))" ( (binary_expression "-1 < *(int *)(param_1 + 0xc)" number_literal < (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) )) (compound_statement "{\n    close(*(int *)(param_1 + 0xc));\n    *(undefined4 *)(param_1 + 0xc) = 0xffffffff;\n  }" { (expression_statement "close(*(int *)(param_1 + 0xc));" (call_expression "close(*(int *)(param_1 + 0xc))" identifier (argument_list "(*(int *)(param_1 + 0xc))" ( (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) ))) ;) (expression_statement "*(undefined4 *)(param_1 + 0xc) = 0xffffffff;" (assignment_expression "*(undefined4 *)(param_1 + 0xc) = 0xffffffff" (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 (-1 < *(int *)(param_1 + 0x10)) {\n    close(*(int *)(param_1 + 0x10));\n    *(undefined4 *)(param_1 + 0x10) = 0xffffffff;\n  }" if (parenthesized_expression "(-1 < *(int *)(param_1 + 0x10))" ( (binary_expression "-1 < *(int *)(param_1 + 0x10)" number_literal < (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) )) (compound_statement "{\n    close(*(int *)(param_1 + 0x10));\n    *(undefined4 *)(param_1 + 0x10) = 0xffffffff;\n  }" { (expression_statement "close(*(int *)(param_1 + 0x10));" (call_expression "close(*(int *)(param_1 + 0x10))" identifier (argument_list "(*(int *)(param_1 + 0x10))" ( (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) ))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x10) = 0xffffffff;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = 0xffffffff" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = number_literal) ;) })) (expression_statement "*(undefined4 *)(param_1 + 0x18) = 0xffffffff;" (assignment_expression "*(undefined4 *)(param_1 + 0x18) = 0xffffffff" (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x14) = 0xffffffff;" (assignment_expression "*(undefined4 *)(param_1 + 0x14) = 0xffffffff" (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "void coproc_close(coproc_conflict *cp)\n\n{\n  if (L'\xffffffff' < cp->c_rfd) {\n    close(cp->c_rfd);\n    cp->c_rfd = L'\xffffffff';\n  }\n  if (L'\xffffffff' < cp->c_wfd) {\n    close(cp->c_wfd);\n    cp->c_wfd = L'\xffffffff';\n  }\n  cp->c_wsave = L'\xffffffff';\n  cp->c_rsave = L'\xffffffff';\n  return;\n}\n\n" (function_definition "void coproc_close(coproc_conflict *cp)\n\n{\n  if (L'\xffffffff' < cp->c_rfd) {\n    close(cp->c_rfd);\n    cp->c_rfd = L'\xffffffff';\n  }\n  if (L'\xffffffff' < cp->c_wfd) {\n    close(cp->c_wfd);\n    cp->c_wfd = L'\xffffffff';\n  }\n  cp->c_wsave = L'\xffffffff';\n  cp->c_rsave = L'\xffffffff';\n  return;\n}" primitive_type (function_declarator "coproc_close(coproc_conflict *cp)" identifier (parameter_list "(coproc_conflict *cp)" ( (parameter_declaration "coproc_conflict *cp" type_identifier (pointer_declarator "*cp" * identifier)) ))) (compound_statement "{\n  if (L'\xffffffff' < cp->c_rfd) {\n    close(cp->c_rfd);\n    cp->c_rfd = L'\xffffffff';\n  }\n  if (L'\xffffffff' < cp->c_wfd) {\n    close(cp->c_wfd);\n    cp->c_wfd = L'\xffffffff';\n  }\n  cp->c_wsave = L'\xffffffff';\n  cp->c_rsave = L'\xffffffff';\n  return;\n}" { (if_statement "if (L'\xffffffff' < cp->c_rfd) {\n    close(cp->c_rfd);\n    cp->c_rfd = L'\xffffffff';\n  }" if (parenthesized_expression "(L'\xffffffff' < cp->c_rfd)" ( (binary_expression "L'\xffffffff' < cp->c_rfd" (char_literal "L'\xffffffff'" L' escape_sequence character character character character ') < (field_expression "cp->c_rfd" identifier -> field_identifier)) )) (compound_statement "{\n    close(cp->c_rfd);\n    cp->c_rfd = L'\xffffffff';\n  }" { (expression_statement "close(cp->c_rfd);" (call_expression "close(cp->c_rfd)" identifier (argument_list "(cp->c_rfd)" ( (field_expression "cp->c_rfd" identifier -> field_identifier) ))) ;) (expression_statement "cp->c_rfd = L'\xffffffff';" (assignment_expression "cp->c_rfd = L'\xffffffff'" (field_expression "cp->c_rfd" identifier -> field_identifier) = (char_literal "L'\xffffffff'" L' escape_sequence character character character character ')) ;) })) (if_statement "if (L'\xffffffff' < cp->c_wfd) {\n    close(cp->c_wfd);\n    cp->c_wfd = L'\xffffffff';\n  }" if (parenthesized_expression "(L'\xffffffff' < cp->c_wfd)" ( (binary_expression "L'\xffffffff' < cp->c_wfd" (char_literal "L'\xffffffff'" L' escape_sequence character character character character ') < (field_expression "cp->c_wfd" identifier -> field_identifier)) )) (compound_statement "{\n    close(cp->c_wfd);\n    cp->c_wfd = L'\xffffffff';\n  }" { (expression_statement "close(cp->c_wfd);" (call_expression "close(cp->c_wfd)" identifier (argument_list "(cp->c_wfd)" ( (field_expression "cp->c_wfd" identifier -> field_identifier) ))) ;) (expression_statement "cp->c_wfd = L'\xffffffff';" (assignment_expression "cp->c_wfd = L'\xffffffff'" (field_expression "cp->c_wfd" identifier -> field_identifier) = (char_literal "L'\xffffffff'" L' escape_sequence character character character character ')) ;) })) (expression_statement "cp->c_wsave = L'\xffffffff';" (assignment_expression "cp->c_wsave = L'\xffffffff'" (field_expression "cp->c_wsave" identifier -> field_identifier) = (char_literal "L'\xffffffff'" L' escape_sequence character character character character ')) ;) (expression_statement "cp->c_rsave = L'\xffffffff';" (assignment_expression "cp->c_rsave = L'\xffffffff'" (field_expression "cp->c_rsave" identifier -> field_identifier) = (char_literal "L'\xffffffff'" L' escape_sequence character character character character ')) ;) (return_statement "return;" return ;) })))
(translation_unit "void coproc_close(long param_1)\n\n{\n  if (-1 < *(int *)(param_1 + 0xc)) {\n    close(*(int *)(param_1 + 0xc));\n    *(undefined4 *)(param_1 + 0xc) = 0xffffffff;\n  }\n  if (-1 < *(int *)(param_1 + 0x10)) {\n    close(*(int *)(param_1 + 0x10));\n    *(undefined4 *)(param_1 + 0x10) = 0xffffffff;\n  }\n  *(undefined4 *)(param_1 + 0x18) = 0xffffffff;\n  *(undefined4 *)(param_1 + 0x14) = 0xffffffff;\n  return;\n}\n\n" (function_definition "void coproc_close(long param_1)\n\n{\n  if (-1 < *(int *)(param_1 + 0xc)) {\n    close(*(int *)(param_1 + 0xc));\n    *(undefined4 *)(param_1 + 0xc) = 0xffffffff;\n  }\n  if (-1 < *(int *)(param_1 + 0x10)) {\n    close(*(int *)(param_1 + 0x10));\n    *(undefined4 *)(param_1 + 0x10) = 0xffffffff;\n  }\n  *(undefined4 *)(param_1 + 0x18) = 0xffffffff;\n  *(undefined4 *)(param_1 + 0x14) = 0xffffffff;\n  return;\n}" primitive_type (function_declarator "coproc_close(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  if (-1 < *(int *)(param_1 + 0xc)) {\n    close(*(int *)(param_1 + 0xc));\n    *(undefined4 *)(param_1 + 0xc) = 0xffffffff;\n  }\n  if (-1 < *(int *)(param_1 + 0x10)) {\n    close(*(int *)(param_1 + 0x10));\n    *(undefined4 *)(param_1 + 0x10) = 0xffffffff;\n  }\n  *(undefined4 *)(param_1 + 0x18) = 0xffffffff;\n  *(undefined4 *)(param_1 + 0x14) = 0xffffffff;\n  return;\n}" { (if_statement "if (-1 < *(int *)(param_1 + 0xc)) {\n    close(*(int *)(param_1 + 0xc));\n    *(undefined4 *)(param_1 + 0xc) = 0xffffffff;\n  }" if (parenthesized_expression "(-1 < *(int *)(param_1 + 0xc))" ( (binary_expression "-1 < *(int *)(param_1 + 0xc)" number_literal < (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) )) (compound_statement "{\n    close(*(int *)(param_1 + 0xc));\n    *(undefined4 *)(param_1 + 0xc) = 0xffffffff;\n  }" { (expression_statement "close(*(int *)(param_1 + 0xc));" (call_expression "close(*(int *)(param_1 + 0xc))" identifier (argument_list "(*(int *)(param_1 + 0xc))" ( (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) ))) ;) (expression_statement "*(undefined4 *)(param_1 + 0xc) = 0xffffffff;" (assignment_expression "*(undefined4 *)(param_1 + 0xc) = 0xffffffff" (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 (-1 < *(int *)(param_1 + 0x10)) {\n    close(*(int *)(param_1 + 0x10));\n    *(undefined4 *)(param_1 + 0x10) = 0xffffffff;\n  }" if (parenthesized_expression "(-1 < *(int *)(param_1 + 0x10))" ( (binary_expression "-1 < *(int *)(param_1 + 0x10)" number_literal < (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) )) (compound_statement "{\n    close(*(int *)(param_1 + 0x10));\n    *(undefined4 *)(param_1 + 0x10) = 0xffffffff;\n  }" { (expression_statement "close(*(int *)(param_1 + 0x10));" (call_expression "close(*(int *)(param_1 + 0x10))" identifier (argument_list "(*(int *)(param_1 + 0x10))" ( (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) ))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x10) = 0xffffffff;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = 0xffffffff" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = number_literal) ;) })) (expression_statement "*(undefined4 *)(param_1 + 0x18) = 0xffffffff;" (assignment_expression "*(undefined4 *)(param_1 + 0x18) = 0xffffffff" (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x14) = 0xffffffff;" (assignment_expression "*(undefined4 *)(param_1 + 0x14) = 0xffffffff" (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression LIT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return ;) })))
(function_definition "void coproc_close(long param_1)\n\n{\n  if (-1 < *(int *)(param_1 + 0xc)) {\n    close(*(int *)(param_1 + 0xc));\n    *(undefined4 *)(param_1 + 0xc) = 0xffffffff;\n  }\n  if (-1 < *(int *)(param_1 + 0x10)) {\n    close(*(int *)(param_1 + 0x10));\n    *(undefined4 *)(param_1 + 0x10) = 0xffffffff;\n  }\n  *(undefined4 *)(param_1 + 0x18) = 0xffffffff;\n  *(undefined4 *)(param_1 + 0x14) = 0xffffffff;\n  return;\n}" (primitive_type "void") (function_declarator "coproc_close(long param_1)" (identifier "coproc_close") (parameter_list "(long param_1)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) () ")"))) (compound_statement "{\n  if (-1 < *(int *)(param_1 + 0xc)) {\n    close(*(int *)(param_1 + 0xc));\n    *(undefined4 *)(param_1 + 0xc) = 0xffffffff;\n  }\n  if (-1 < *(int *)(param_1 + 0x10)) {\n    close(*(int *)(param_1 + 0x10));\n    *(undefined4 *)(param_1 + 0x10) = 0xffffffff;\n  }\n  *(undefined4 *)(param_1 + 0x18) = 0xffffffff;\n  *(undefined4 *)(param_1 + 0x14) = 0xffffffff;\n  return;\n}" ({ "{") (if_statement "if (-1 < *(int *)(param_1 + 0xc)) {\n    close(*(int *)(param_1 + 0xc));\n    *(undefined4 *)(param_1 + 0xc) = 0xffffffff;\n  }" (if "if") (parenthesized_expression "(-1 < *(int *)(param_1 + 0xc))" (( "(") (binary_expression "-1 < *(int *)(param_1 + 0xc)" (number_literal "-1") (< "<") (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) () ")")) (compound_statement "{\n    close(*(int *)(param_1 + 0xc));\n    *(undefined4 *)(param_1 + 0xc) = 0xffffffff;\n  }" ({ "{") (expression_statement "close(*(int *)(param_1 + 0xc));" (call_expression "close(*(int *)(param_1 + 0xc))" (identifier "close") (argument_list "(*(int *)(param_1 + 0xc))" (( "(") (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) () ")"))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0xc) = 0xffffffff;" (assignment_expression "*(undefined4 *)(param_1 + 0xc) = 0xffffffff" (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 "0xffffffff")) (; ";")) (} "}"))) (if_statement "if (-1 < *(int *)(param_1 + 0x10)) {\n    close(*(int *)(param_1 + 0x10));\n    *(undefined4 *)(param_1 + 0x10) = 0xffffffff;\n  }" (if "if") (parenthesized_expression "(-1 < *(int *)(param_1 + 0x10))" (( "(") (binary_expression "-1 < *(int *)(param_1 + 0x10)" (number_literal "-1") (< "<") (pointer_expression "*(int *)(param_1 + 0x10)" (* "*") (cast_expression "(int *)(param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")"))))) () ")")) (compound_statement "{\n    close(*(int *)(param_1 + 0x10));\n    *(undefined4 *)(param_1 + 0x10) = 0xffffffff;\n  }" ({ "{") (expression_statement "close(*(int *)(param_1 + 0x10));" (call_expression "close(*(int *)(param_1 + 0x10))" (identifier "close") (argument_list "(*(int *)(param_1 + 0x10))" (( "(") (pointer_expression "*(int *)(param_1 + 0x10)" (* "*") (cast_expression "(int *)(param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) () ")"))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x10) = 0xffffffff;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = 0xffffffff" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (number_literal "0xffffffff")) (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(param_1 + 0x18) = 0xffffffff;" (assignment_expression "*(undefined4 *)(param_1 + 0x18) = 0xffffffff" (pointer_expression "*(undefined4 *)(param_1 + 0x18)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x14) = 0xffffffff;" (assignment_expression "*(undefined4 *)(param_1 + 0x14) = 0xffffffff" (pointer_expression "*(undefined4 *)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (number_literal "0xffffffff")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *cp)

{
  if (L'\xffffffff' < cp->c_rfd) {
    var_1(cp->c_rfd);
    cp->c_rfd = L'\xffffffff';
  }
  if (L'\xffffffff' < cp->c_wfd) {
    var_1(cp->c_wfd);
    cp->c_wfd = L'\xffffffff';
  }
  cp->c_wsave = L'\xffffffff';
  cp->c_rsave = L'\xffffffff';
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (identifier)))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) 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 (expression_statement (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)))))))) (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))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) 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 (expression_statement (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)))))))) (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))))) (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))) (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))) (return_statement))))

void MASKED(long param_1)

{
  if (-1 < *(int *)(param_1 + 0xc)) {
    close(*(int *)(param_1 + 0xc));
    *(undefined4 *)(param_1 + 0xc) = 0xffffffff;
  }
  if (-1 < *(int *)(param_1 + 0x10)) {
    close(*(int *)(param_1 + 0x10));
    *(undefined4 *)(param_1 + 0x10) = 0xffffffff;
  }
  *(undefined4 *)(param_1 + 0x18) = 0xffffffff;
  *(undefined4 *)(param_1 + 0x14) = 0xffffffff;
  return;
}

