
/* std::__basic_file<char>::close() */

__basic_file<char> * __thiscall std::__basic_file<char>::close(__basic_file<char> *this)

{
  char cVar1;
  int iVar2;
  
  cVar1 = is_open(this);
  if (cVar1 != '\0') {
    if (this[8] == (__basic_file<char>)0x0) {
      *(undefined8 *)this = 0;
      return this;
    }
    iVar2 = fclose(*(FILE **)this);
    *(undefined8 *)this = 0;
    if (iVar2 == 0) {
      return this;
    }
  }
  return (__basic_file<char> *)0x0;
}



undefined8 * FUN_002db2d0(undefined8 *param_1)

{
  char cVar1;
  int iVar2;
  
  cVar1 = FUN_002db150();
  if (cVar1 != '\0') {
    if (*(char *)(param_1 + 1) == '\0') {
      *param_1 = 0;
      return param_1;
    }
    iVar2 = fclose((FILE *)*param_1);
    *param_1 = 0;
    if (iVar2 == 0) {
      return param_1;
    }
  }
  return (undefined8 *)0x0;
}


PUSH RBX
MOV RBX,RDI
CALL 0x002db150
TEST AL,AL
JZ 0x002db310
CMP byte ptr [RBX + 0x8],0x0
JNZ 0x002db2f0
MOV RAX,RBX
MOV qword ptr [RBX],0x0
POP RBX
RET
MOV RDI,qword ptr [RBX]
CALL 0x00147890
MOV qword ptr [RBX],0x0
TEST EAX,EAX
JNZ 0x002db310
MOV RAX,RBX
POP RBX
RET
XOR EAX,EAX
POP RBX
RET
(translation_unit "undefined8 * FUN_002db2d0(undefined8 *param_1)\n\n{\n  char cVar1;\n  int iVar2;\n  \n  cVar1 = FUN_002db150();\n  if (cVar1 != '\0') {\n    if (*(char *)(param_1 + 1) == '\0') {\n      *param_1 = 0;\n      return param_1;\n    }\n    iVar2 = fclose((FILE *)*param_1);\n    *param_1 = 0;\n    if (iVar2 == 0) {\n      return param_1;\n    }\n  }\n  return (undefined8 *)0x0;\n}\n\n" (function_definition "undefined8 * FUN_002db2d0(undefined8 *param_1)\n\n{\n  char cVar1;\n  int iVar2;\n  \n  cVar1 = FUN_002db150();\n  if (cVar1 != '\0') {\n    if (*(char *)(param_1 + 1) == '\0') {\n      *param_1 = 0;\n      return param_1;\n    }\n    iVar2 = fclose((FILE *)*param_1);\n    *param_1 = 0;\n    if (iVar2 == 0) {\n      return param_1;\n    }\n  }\n  return (undefined8 *)0x0;\n}" type_identifier (pointer_declarator "* FUN_002db2d0(undefined8 *param_1)" * (function_declarator "FUN_002db2d0(undefined8 *param_1)" identifier (parameter_list "(undefined8 *param_1)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  \n  cVar1 = FUN_002db150();\n  if (cVar1 != '\0') {\n    if (*(char *)(param_1 + 1) == '\0') {\n      *param_1 = 0;\n      return param_1;\n    }\n    iVar2 = fclose((FILE *)*param_1);\n    *param_1 = 0;\n    if (iVar2 == 0) {\n      return param_1;\n    }\n  }\n  return (undefined8 *)0x0;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "cVar1 = FUN_002db150();" (assignment_expression "cVar1 = FUN_002db150()" identifier = (call_expression "FUN_002db150()" identifier (argument_list "()" ( )))) ;) (if_statement "if (cVar1 != '\0') {\n    if (*(char *)(param_1 + 1) == '\0') {\n      *param_1 = 0;\n      return param_1;\n    }\n    iVar2 = fclose((FILE *)*param_1);\n    *param_1 = 0;\n    if (iVar2 == 0) {\n      return param_1;\n    }\n  }" if (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if (*(char *)(param_1 + 1) == '\0') {\n      *param_1 = 0;\n      return param_1;\n    }\n    iVar2 = fclose((FILE *)*param_1);\n    *param_1 = 0;\n    if (iVar2 == 0) {\n      return param_1;\n    }\n  }" { (if_statement "if (*(char *)(param_1 + 1) == '\0') {\n      *param_1 = 0;\n      return param_1;\n    }" if (parenthesized_expression "(*(char *)(param_1 + 1) == '\0')" ( (binary_expression "*(char *)(param_1 + 1) == '\0'" (pointer_expression "*(char *)(param_1 + 1)" * (cast_expression "(char *)(param_1 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      *param_1 = 0;\n      return param_1;\n    }" { (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (return_statement "return param_1;" return identifier ;) })) (expression_statement "iVar2 = fclose((FILE *)*param_1);" (assignment_expression "iVar2 = fclose((FILE *)*param_1)" identifier = (call_expression "fclose((FILE *)*param_1)" identifier (argument_list "((FILE *)*param_1)" ( (cast_expression "(FILE *)*param_1" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) )))) ;) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (if_statement "if (iVar2 == 0) {\n      return param_1;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      return param_1;\n    }" { (return_statement "return param_1;" return identifier ;) })) })) (return_statement "return (undefined8 *)0x0;" return (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "/* std::__basic_file<char>::close() */\n\n__basic_file<char> * __thiscall std::__basic_file<char>::close(__basic_file<char> *this)\n\n{\n  char cVar1;\n  int iVar2;\n  \n  cVar1 = is_open(this);\n  if (cVar1 != '\0') {\n    if (this[8] == (__basic_file<char>)0x0) {\n      *(undefined8 *)this = 0;\n      return this;\n    }\n    iVar2 = fclose(*(FILE **)this);\n    *(undefined8 *)this = 0;\n    if (iVar2 == 0) {\n      return this;\n    }\n  }\n  return (__basic_file<char> *)0x0;\n}\n\n" comment (ERROR "__basic_file<char> * __thiscall std::__basic_file<char>::close(__basic_file<char> *this)" (binary_expression "__basic_file<char> * __thiscall std::__basic_file<char>::close(__basic_file<char> *this)" (binary_expression "__basic_file<char> * __thiscall std::__basic_file<char" (binary_expression "__basic_file<char> * __thiscall" (binary_expression "__basic_file<char" identifier < identifier) > (pointer_expression "* __thiscall" * identifier)) (ERROR "std::__basic_file" identifier : : identifier) < identifier) > (ERROR "::" : :) (call_expression "close(__basic_file<char> *this)" identifier (argument_list "(__basic_file<char> *this)" ( (binary_expression "__basic_file<char> *this" (binary_expression "__basic_file<char" identifier < identifier) > (pointer_expression "*this" * identifier)) ))))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  \n  cVar1 = is_open(this);\n  if (cVar1 != '\0') {\n    if (this[8] == (__basic_file<char>)0x0) {\n      *(undefined8 *)this = 0;\n      return this;\n    }\n    iVar2 = fclose(*(FILE **)this);\n    *(undefined8 *)this = 0;\n    if (iVar2 == 0) {\n      return this;\n    }\n  }\n  return (__basic_file<char> *)0x0;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "cVar1 = is_open(this);" (assignment_expression "cVar1 = is_open(this)" identifier = (call_expression "is_open(this)" identifier (argument_list "(this)" ( identifier )))) ;) (if_statement "if (cVar1 != '\0') {\n    if (this[8] == (__basic_file<char>)0x0) {\n      *(undefined8 *)this = 0;\n      return this;\n    }\n    iVar2 = fclose(*(FILE **)this);\n    *(undefined8 *)this = 0;\n    if (iVar2 == 0) {\n      return this;\n    }\n  }" if (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if (this[8] == (__basic_file<char>)0x0) {\n      *(undefined8 *)this = 0;\n      return this;\n    }\n    iVar2 = fclose(*(FILE **)this);\n    *(undefined8 *)this = 0;\n    if (iVar2 == 0) {\n      return this;\n    }\n  }" { (if_statement "if (this[8] == (__basic_file<char>)0x0) {\n      *(undefined8 *)this = 0;\n      return this;\n    }" if (parenthesized_expression "(this[8] == (__basic_file<char>)0x0)" ( (binary_expression "this[8] == (__basic_file<char>)0x0)" (subscript_expression "this[8]" identifier [ number_literal ]) == (parenthesized_expression "(__basic_file<char>)0x0)" ( (binary_expression "__basic_file<char>)0x0" (binary_expression "__basic_file<char" identifier < identifier) > (ERROR ")" )) number_literal) ))) )) (compound_statement "{\n      *(undefined8 *)this = 0;\n      return this;\n    }" { (expression_statement "*(undefined8 *)this = 0;" (assignment_expression "*(undefined8 *)this = 0" (pointer_expression "*(undefined8 *)this" * (cast_expression "(undefined8 *)this" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (return_statement "return this;" return identifier ;) })) (expression_statement "iVar2 = fclose(*(FILE **)this);" (assignment_expression "iVar2 = fclose(*(FILE **)this)" identifier = (call_expression "fclose(*(FILE **)this)" identifier (argument_list "(*(FILE **)this)" ( (pointer_expression "*(FILE **)this" * (cast_expression "(FILE **)this" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) )))) ;) (expression_statement "*(undefined8 *)this = 0;" (assignment_expression "*(undefined8 *)this = 0" (pointer_expression "*(undefined8 *)this" * (cast_expression "(undefined8 *)this" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (if_statement "if (iVar2 == 0) {\n      return this;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      return this;\n    }" { (return_statement "return this;" return identifier ;) })) })) (return_statement "return (__basic_file<char> *)0x0;" return (parenthesized_expression "(__basic_file<char> *)0x0" ( (binary_expression "__basic_file<char> *)0x0" (binary_expression "__basic_file<char" identifier < identifier) > (pointer_expression "*)0x0" * (ERROR ")" )) number_literal)) )) ;) }))
(translation_unit "undefined8 * FUN_002db2d0(undefined8 *param_1)\n\n{\n  char cVar1;\n  int iVar2;\n  \n  cVar1 = FUN_002db150();\n  if (cVar1 != '\0') {\n    if (*(char *)(param_1 + 1) == '\0') {\n      *param_1 = 0;\n      return param_1;\n    }\n    iVar2 = fclose((FILE *)*param_1);\n    *param_1 = 0;\n    if (iVar2 == 0) {\n      return param_1;\n    }\n  }\n  return (undefined8 *)0x0;\n}\n\n" (function_definition "undefined8 * FUN_002db2d0(undefined8 *param_1)\n\n{\n  char cVar1;\n  int iVar2;\n  \n  cVar1 = FUN_002db150();\n  if (cVar1 != '\0') {\n    if (*(char *)(param_1 + 1) == '\0') {\n      *param_1 = 0;\n      return param_1;\n    }\n    iVar2 = fclose((FILE *)*param_1);\n    *param_1 = 0;\n    if (iVar2 == 0) {\n      return param_1;\n    }\n  }\n  return (undefined8 *)0x0;\n}" type_identifier (pointer_declarator "* FUN_002db2d0(undefined8 *param_1)" * (function_declarator "FUN_002db2d0(undefined8 *param_1)" identifier (parameter_list "(undefined8 *param_1)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  \n  cVar1 = FUN_002db150();\n  if (cVar1 != '\0') {\n    if (*(char *)(param_1 + 1) == '\0') {\n      *param_1 = 0;\n      return param_1;\n    }\n    iVar2 = fclose((FILE *)*param_1);\n    *param_1 = 0;\n    if (iVar2 == 0) {\n      return param_1;\n    }\n  }\n  return (undefined8 *)0x0;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "cVar1 = FUN_002db150();" (assignment_expression "cVar1 = FUN_002db150()" identifier = (call_expression "FUN_002db150()" identifier (argument_list "()" ( )))) ;) (if_statement "if (cVar1 != '\0') {\n    if (*(char *)(param_1 + 1) == '\0') {\n      *param_1 = 0;\n      return param_1;\n    }\n    iVar2 = fclose((FILE *)*param_1);\n    *param_1 = 0;\n    if (iVar2 == 0) {\n      return param_1;\n    }\n  }" if (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if (*(char *)(param_1 + 1) == '\0') {\n      *param_1 = 0;\n      return param_1;\n    }\n    iVar2 = fclose((FILE *)*param_1);\n    *param_1 = 0;\n    if (iVar2 == 0) {\n      return param_1;\n    }\n  }" { (if_statement "if (*(char *)(param_1 + 1) == '\0') {\n      *param_1 = 0;\n      return param_1;\n    }" if (parenthesized_expression "(*(char *)(param_1 + 1) == '\0')" ( (binary_expression "*(char *)(param_1 + 1) == '\0'" (pointer_expression "*(char *)(param_1 + 1)" * (cast_expression "(char *)(param_1 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      *param_1 = 0;\n      return param_1;\n    }" { (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (return_statement "return param_1;" return identifier ;) })) (expression_statement "iVar2 = fclose((FILE *)*param_1);" (assignment_expression "iVar2 = fclose((FILE *)*param_1)" identifier = (call_expression "fclose((FILE *)*param_1)" identifier (argument_list "((FILE *)*param_1)" ( (cast_expression "(FILE *)*param_1" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) )))) ;) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (if_statement "if (iVar2 == 0) {\n      return param_1;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      return param_1;\n    }" { (return_statement "return param_1;" return identifier ;) })) })) (return_statement "return (undefined8 *)0x0;" return (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return IDENT ;) })) })) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })))
(function_definition "undefined8 * FUN_002db2d0(undefined8 *param_1)\n\n{\n  char cVar1;\n  int iVar2;\n  \n  cVar1 = FUN_002db150();\n  if (cVar1 != '\0') {\n    if (*(char *)(param_1 + 1) == '\0') {\n      *param_1 = 0;\n      return param_1;\n    }\n    iVar2 = fclose((FILE *)*param_1);\n    *param_1 = 0;\n    if (iVar2 == 0) {\n      return param_1;\n    }\n  }\n  return (undefined8 *)0x0;\n}" (type_identifier "undefined8") (pointer_declarator "* FUN_002db2d0(undefined8 *param_1)" (* "*") (function_declarator "FUN_002db2d0(undefined8 *param_1)" (identifier "FUN_002db2d0") (parameter_list "(undefined8 *param_1)" (( "(") (parameter_declaration "undefined8 *param_1" (type_identifier "undefined8") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")")))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  \n  cVar1 = FUN_002db150();\n  if (cVar1 != '\0') {\n    if (*(char *)(param_1 + 1) == '\0') {\n      *param_1 = 0;\n      return param_1;\n    }\n    iVar2 = fclose((FILE *)*param_1);\n    *param_1 = 0;\n    if (iVar2 == 0) {\n      return param_1;\n    }\n  }\n  return (undefined8 *)0x0;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "cVar1 = FUN_002db150();" (assignment_expression "cVar1 = FUN_002db150()" (identifier "cVar1") (= "=") (call_expression "FUN_002db150()" (identifier "FUN_002db150") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (cVar1 != '\0') {\n    if (*(char *)(param_1 + 1) == '\0') {\n      *param_1 = 0;\n      return param_1;\n    }\n    iVar2 = fclose((FILE *)*param_1);\n    *param_1 = 0;\n    if (iVar2 == 0) {\n      return param_1;\n    }\n  }" (if "if") (parenthesized_expression "(cVar1 != '\0')" (( "(") (binary_expression "cVar1 != '\0'" (identifier "cVar1") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    if (*(char *)(param_1 + 1) == '\0') {\n      *param_1 = 0;\n      return param_1;\n    }\n    iVar2 = fclose((FILE *)*param_1);\n    *param_1 = 0;\n    if (iVar2 == 0) {\n      return param_1;\n    }\n  }" ({ "{") (if_statement "if (*(char *)(param_1 + 1) == '\0') {\n      *param_1 = 0;\n      return param_1;\n    }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 1) == '\0')" (( "(") (binary_expression "*(char *)(param_1 + 1) == '\0'" (pointer_expression "*(char *)(param_1 + 1)" (* "*") (cast_expression "(char *)(param_1 + 1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 1)" (( "(") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      *param_1 = 0;\n      return param_1;\n    }" ({ "{") (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0")) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "iVar2 = fclose((FILE *)*param_1);" (assignment_expression "iVar2 = fclose((FILE *)*param_1)" (identifier "iVar2") (= "=") (call_expression "fclose((FILE *)*param_1)" (identifier "fclose") (argument_list "((FILE *)*param_1)" (( "(") (cast_expression "(FILE *)*param_1" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) () ")")))) (; ";")) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0")) (; ";")) (if_statement "if (iVar2 == 0) {\n      return param_1;\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return param_1;\n    }" ({ "{") (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (} "}"))) (return_statement "return (undefined8 *)0x0;" (return "return") (cast_expression "(undefined8 *)0x0" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}")))

/* std::__basic_file<char>::close() */

var_3<var_4> * __thiscall std::var_3<var_4>::close(var_3<var_4> *this)

{
  char var_2;
  int var_6;
  
  var_2 = var_1(this);
  if (var_2 != '\0') {
    if (this[8] == (var_3<var_4>)0x0) {
      *(type_1 *)this = 0;
      return this;
    }
    var_6 = var_5(*(type_2 **)this);
    *(type_1 *)this = 0;
    if (var_6 == 0) {
      return this;
    }
  }
  return (var_3<var_4> *)0x0;
}


(translation_unit (function_definition type: (type_identifier) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier)))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (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))))) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (identifier)))))) (return_statement (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal))))))

undefined8 * MASKED(undefined8 *param_1)

{
  char cVar1;
  int iVar2;
  
  cVar1 = FUN_002db150();
  if (cVar1 != '\0') {
    if (*(char *)(param_1 + 1) == '\0') {
      *param_1 = 0;
      return param_1;
    }
    iVar2 = fclose((FILE *)*param_1);
    *param_1 = 0;
    if (iVar2 == 0) {
      return param_1;
    }
  }
  return (undefined8 *)0x0;
}

