
/* std::ios_base::~ios_base() */

void __thiscall std::ios_base::~ios_base(ios_base *this)

{
  ios_base *piVar1;
  
  *(undefined ***)this = &PTR__ios_base_0043aff8;
  _M_call_callbacks(this,0);
  _M_dispose_callbacks(this);
  piVar1 = *(ios_base **)(this + 200);
  if (piVar1 != this + 0x40) {
    if (piVar1 != (ios_base *)0x0) {
      operator_delete__(piVar1);
    }
    *(undefined8 *)(this + 200) = 0;
  }
  locale::~locale((locale *)(this + 0xd0));
  return;
}



void FUN_00318d10(undefined8 *param_1)

{
  *param_1 = &PTR_FUN_0043aff8;
  FUN_00318c70(param_1,0);
  FUN_00318cb0(param_1);
  if ((undefined8 *)param_1[0x19] != param_1 + 8) {
    if ((undefined8 *)param_1[0x19] != (undefined8 *)0x0) {
      thunk_FUN_002dac60();
    }
    param_1[0x19] = 0;
  }
  FUN_002dd1a0(param_1 + 0x1a);
  return;
}


LEA RAX,[0x43afe8]
PUSH RBX
XOR ESI,ESI
MOV RBX,RDI
ADD RAX,0x10
MOV qword ptr [RDI],RAX
CALL 0x00318c70
MOV RDI,RBX
CALL 0x00318cb0
MOV RDI,qword ptr [RBX + 0xc8]
LEA RAX,[RBX + 0x40]
CMP RDI,RAX
JZ 0x00318d56
TEST RDI,RDI
JZ 0x00318d4b
CALL 0x002dac30
MOV qword ptr [RBX + 0xc8],0x0
LEA RDI,[RBX + 0xd0]
POP RBX
JMP 0x002dd1a0
(translation_unit "void FUN_00318d10(undefined8 *param_1)\n\n{\n  *param_1 = &PTR_FUN_0043aff8;\n  FUN_00318c70(param_1,0);\n  FUN_00318cb0(param_1);\n  if ((undefined8 *)param_1[0x19] != param_1 + 8) {\n    if ((undefined8 *)param_1[0x19] != (undefined8 *)0x0) {\n      thunk_FUN_002dac60();\n    }\n    param_1[0x19] = 0;\n  }\n  FUN_002dd1a0(param_1 + 0x1a);\n  return;\n}\n\n" (function_definition "void FUN_00318d10(undefined8 *param_1)\n\n{\n  *param_1 = &PTR_FUN_0043aff8;\n  FUN_00318c70(param_1,0);\n  FUN_00318cb0(param_1);\n  if ((undefined8 *)param_1[0x19] != param_1 + 8) {\n    if ((undefined8 *)param_1[0x19] != (undefined8 *)0x0) {\n      thunk_FUN_002dac60();\n    }\n    param_1[0x19] = 0;\n  }\n  FUN_002dd1a0(param_1 + 0x1a);\n  return;\n}" primitive_type (function_declarator "FUN_00318d10(undefined8 *param_1)" identifier (parameter_list "(undefined8 *param_1)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  *param_1 = &PTR_FUN_0043aff8;\n  FUN_00318c70(param_1,0);\n  FUN_00318cb0(param_1);\n  if ((undefined8 *)param_1[0x19] != param_1 + 8) {\n    if ((undefined8 *)param_1[0x19] != (undefined8 *)0x0) {\n      thunk_FUN_002dac60();\n    }\n    param_1[0x19] = 0;\n  }\n  FUN_002dd1a0(param_1 + 0x1a);\n  return;\n}" { (expression_statement "*param_1 = &PTR_FUN_0043aff8;" (assignment_expression "*param_1 = &PTR_FUN_0043aff8" (pointer_expression "*param_1" * identifier) = (pointer_expression "&PTR_FUN_0043aff8" & identifier)) ;) (expression_statement "FUN_00318c70(param_1,0);" (call_expression "FUN_00318c70(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal ))) ;) (expression_statement "FUN_00318cb0(param_1);" (call_expression "FUN_00318cb0(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (if_statement "if ((undefined8 *)param_1[0x19] != param_1 + 8) {\n    if ((undefined8 *)param_1[0x19] != (undefined8 *)0x0) {\n      thunk_FUN_002dac60();\n    }\n    param_1[0x19] = 0;\n  }" if (parenthesized_expression "((undefined8 *)param_1[0x19] != param_1 + 8)" ( (binary_expression "(undefined8 *)param_1[0x19] != param_1 + 8" (cast_expression "(undefined8 *)param_1[0x19]" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[0x19]" identifier [ number_literal ])) != (binary_expression "param_1 + 8" identifier + number_literal)) )) (compound_statement "{\n    if ((undefined8 *)param_1[0x19] != (undefined8 *)0x0) {\n      thunk_FUN_002dac60();\n    }\n    param_1[0x19] = 0;\n  }" { (if_statement "if ((undefined8 *)param_1[0x19] != (undefined8 *)0x0) {\n      thunk_FUN_002dac60();\n    }" if (parenthesized_expression "((undefined8 *)param_1[0x19] != (undefined8 *)0x0)" ( (binary_expression "(undefined8 *)param_1[0x19] != (undefined8 *)0x0" (cast_expression "(undefined8 *)param_1[0x19]" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[0x19]" identifier [ number_literal ])) != (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      thunk_FUN_002dac60();\n    }" { (expression_statement "thunk_FUN_002dac60();" (call_expression "thunk_FUN_002dac60()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "param_1[0x19] = 0;" (assignment_expression "param_1[0x19] = 0" (subscript_expression "param_1[0x19]" identifier [ number_literal ]) = number_literal) ;) })) (expression_statement "FUN_002dd1a0(param_1 + 0x1a);" (call_expression "FUN_002dd1a0(param_1 + 0x1a)" identifier (argument_list "(param_1 + 0x1a)" ( (binary_expression "param_1 + 0x1a" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* std::ios_base::~ios_base() */\n\nvoid __thiscall std::ios_base::~ios_base(ios_base *this)\n\n{\n  ios_base *piVar1;\n  \n  *(undefined ***)this = &PTR__ios_base_0043aff8;\n  _M_call_callbacks(this,0);\n  _M_dispose_callbacks(this);\n  piVar1 = *(ios_base **)(this + 200);\n  if (piVar1 != this + 0x40) {\n    if (piVar1 != (ios_base *)0x0) {\n      operator_delete__(piVar1);\n    }\n    *(undefined8 *)(this + 200) = 0;\n  }\n  locale::~locale((locale *)(this + 0xd0));\n  return;\n}\n\n" comment (function_definition "void __thiscall std::ios_base::~ios_base(ios_base *this)\n\n{\n  ios_base *piVar1;\n  \n  *(undefined ***)this = &PTR__ios_base_0043aff8;\n  _M_call_callbacks(this,0);\n  _M_dispose_callbacks(this);\n  piVar1 = *(ios_base **)(this + 200);\n  if (piVar1 != this + 0x40) {\n    if (piVar1 != (ios_base *)0x0) {\n      operator_delete__(piVar1);\n    }\n    *(undefined8 *)(this + 200) = 0;\n  }\n  locale::~locale((locale *)(this + 0xd0));\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::ios_base::~" identifier : : identifier : : ~) (function_declarator "ios_base(ios_base *this)" identifier (parameter_list "(ios_base *this)" ( (parameter_declaration "ios_base *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  ios_base *piVar1;\n  \n  *(undefined ***)this = &PTR__ios_base_0043aff8;\n  _M_call_callbacks(this,0);\n  _M_dispose_callbacks(this);\n  piVar1 = *(ios_base **)(this + 200);\n  if (piVar1 != this + 0x40) {\n    if (piVar1 != (ios_base *)0x0) {\n      operator_delete__(piVar1);\n    }\n    *(undefined8 *)(this + 200) = 0;\n  }\n  locale::~locale((locale *)(this + 0xd0));\n  return;\n}" { (declaration "ios_base *piVar1;" type_identifier (pointer_declarator "*piVar1" * identifier) ;) (expression_statement "*(undefined ***)this = &PTR__ios_base_0043aff8;" (assignment_expression "*(undefined ***)this = &PTR__ios_base_0043aff8" (pointer_expression "*(undefined ***)this" * (cast_expression "(undefined ***)this" ( (type_descriptor "undefined ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) identifier)) = (pointer_expression "&PTR__ios_base_0043aff8" & identifier)) ;) (expression_statement "_M_call_callbacks(this,0);" (call_expression "_M_call_callbacks(this,0)" identifier (argument_list "(this,0)" ( identifier , number_literal ))) ;) (expression_statement "_M_dispose_callbacks(this);" (call_expression "_M_dispose_callbacks(this)" identifier (argument_list "(this)" ( identifier ))) ;) (expression_statement "piVar1 = *(ios_base **)(this + 200);" (assignment_expression "piVar1 = *(ios_base **)(this + 200)" identifier = (pointer_expression "*(ios_base **)(this + 200)" * (cast_expression "(ios_base **)(this + 200)" ( (type_descriptor "ios_base **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 200)" ( (binary_expression "this + 200" identifier + number_literal) ))))) ;) (if_statement "if (piVar1 != this + 0x40) {\n    if (piVar1 != (ios_base *)0x0) {\n      operator_delete__(piVar1);\n    }\n    *(undefined8 *)(this + 200) = 0;\n  }" if (parenthesized_expression "(piVar1 != this + 0x40)" ( (binary_expression "piVar1 != this + 0x40" identifier != (binary_expression "this + 0x40" identifier + number_literal)) )) (compound_statement "{\n    if (piVar1 != (ios_base *)0x0) {\n      operator_delete__(piVar1);\n    }\n    *(undefined8 *)(this + 200) = 0;\n  }" { (if_statement "if (piVar1 != (ios_base *)0x0) {\n      operator_delete__(piVar1);\n    }" if (parenthesized_expression "(piVar1 != (ios_base *)0x0)" ( (binary_expression "piVar1 != (ios_base *)0x0" identifier != (cast_expression "(ios_base *)0x0" ( (type_descriptor "ios_base *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      operator_delete__(piVar1);\n    }" { (expression_statement "operator_delete__(piVar1);" (call_expression "operator_delete__(piVar1)" identifier (argument_list "(piVar1)" ( identifier ))) ;) })) (expression_statement "*(undefined8 *)(this + 200) = 0;" (assignment_expression "*(undefined8 *)(this + 200) = 0" (pointer_expression "*(undefined8 *)(this + 200)" * (cast_expression "(undefined8 *)(this + 200)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 200)" ( (binary_expression "this + 200" identifier + number_literal) )))) = number_literal) ;) })) (labeled_statement "locale::~locale((locale *)(this + 0xd0));" statement_identifier : (ERROR ":" :) (expression_statement "~locale((locale *)(this + 0xd0));" (unary_expression "~locale((locale *)(this + 0xd0))" ~ (call_expression "locale((locale *)(this + 0xd0))" identifier (argument_list "((locale *)(this + 0xd0))" ( (cast_expression "(locale *)(this + 0xd0)" ( (type_descriptor "locale *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0xd0)" ( (binary_expression "this + 0xd0" identifier + number_literal) ))) )))) ;)) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00318d10(undefined8 *param_1)\n\n{\n  *param_1 = &PTR_FUN_0043aff8;\n  FUN_00318c70(param_1,0);\n  FUN_00318cb0(param_1);\n  if ((undefined8 *)param_1[0x19] != param_1 + 8) {\n    if ((undefined8 *)param_1[0x19] != (undefined8 *)0x0) {\n      thunk_FUN_002dac60();\n    }\n    param_1[0x19] = 0;\n  }\n  FUN_002dd1a0(param_1 + 0x1a);\n  return;\n}\n\n" (function_definition "void FUN_00318d10(undefined8 *param_1)\n\n{\n  *param_1 = &PTR_FUN_0043aff8;\n  FUN_00318c70(param_1,0);\n  FUN_00318cb0(param_1);\n  if ((undefined8 *)param_1[0x19] != param_1 + 8) {\n    if ((undefined8 *)param_1[0x19] != (undefined8 *)0x0) {\n      thunk_FUN_002dac60();\n    }\n    param_1[0x19] = 0;\n  }\n  FUN_002dd1a0(param_1 + 0x1a);\n  return;\n}" primitive_type (function_declarator "FUN_00318d10(undefined8 *param_1)" identifier (parameter_list "(undefined8 *param_1)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  *param_1 = &PTR_FUN_0043aff8;\n  FUN_00318c70(param_1,0);\n  FUN_00318cb0(param_1);\n  if ((undefined8 *)param_1[0x19] != param_1 + 8) {\n    if ((undefined8 *)param_1[0x19] != (undefined8 *)0x0) {\n      thunk_FUN_002dac60();\n    }\n    param_1[0x19] = 0;\n  }\n  FUN_002dd1a0(param_1 + 0x1a);\n  return;\n}" { (expression_statement "*param_1 = &PTR_FUN_0043aff8;" (assignment_expression "*param_1 = &PTR_FUN_0043aff8" (pointer_expression "*param_1" * identifier) = (pointer_expression "&PTR_FUN_0043aff8" & identifier)) ;) (expression_statement "FUN_00318c70(param_1,0);" (call_expression "FUN_00318c70(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal ))) ;) (expression_statement "FUN_00318cb0(param_1);" (call_expression "FUN_00318cb0(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (if_statement "if ((undefined8 *)param_1[0x19] != param_1 + 8) {\n    if ((undefined8 *)param_1[0x19] != (undefined8 *)0x0) {\n      thunk_FUN_002dac60();\n    }\n    param_1[0x19] = 0;\n  }" if (parenthesized_expression "((undefined8 *)param_1[0x19] != param_1 + 8)" ( (binary_expression "(undefined8 *)param_1[0x19] != param_1 + 8" (cast_expression "(undefined8 *)param_1[0x19]" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[0x19]" identifier [ number_literal ])) != (binary_expression "param_1 + 8" identifier + number_literal)) )) (compound_statement "{\n    if ((undefined8 *)param_1[0x19] != (undefined8 *)0x0) {\n      thunk_FUN_002dac60();\n    }\n    param_1[0x19] = 0;\n  }" { (if_statement "if ((undefined8 *)param_1[0x19] != (undefined8 *)0x0) {\n      thunk_FUN_002dac60();\n    }" if (parenthesized_expression "((undefined8 *)param_1[0x19] != (undefined8 *)0x0)" ( (binary_expression "(undefined8 *)param_1[0x19] != (undefined8 *)0x0" (cast_expression "(undefined8 *)param_1[0x19]" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[0x19]" identifier [ number_literal ])) != (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      thunk_FUN_002dac60();\n    }" { (expression_statement "thunk_FUN_002dac60();" (call_expression "thunk_FUN_002dac60()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "param_1[0x19] = 0;" (assignment_expression "param_1[0x19] = 0" (subscript_expression "param_1[0x19]" identifier [ number_literal ]) = number_literal) ;) })) (expression_statement "FUN_002dd1a0(param_1 + 0x1a);" (call_expression "FUN_002dd1a0(param_1 + 0x1a)" identifier (argument_list "(param_1 + 0x1a)" ( (binary_expression "param_1 + 0x1a" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression & IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) != (binary_expression IDENT + LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) })) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) (return_statement return ;) })))
(function_definition "void FUN_00318d10(undefined8 *param_1)\n\n{\n  *param_1 = &PTR_FUN_0043aff8;\n  FUN_00318c70(param_1,0);\n  FUN_00318cb0(param_1);\n  if ((undefined8 *)param_1[0x19] != param_1 + 8) {\n    if ((undefined8 *)param_1[0x19] != (undefined8 *)0x0) {\n      thunk_FUN_002dac60();\n    }\n    param_1[0x19] = 0;\n  }\n  FUN_002dd1a0(param_1 + 0x1a);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00318d10(undefined8 *param_1)" (identifier "FUN_00318d10") (parameter_list "(undefined8 *param_1)" (( "(") (parameter_declaration "undefined8 *param_1" (type_identifier "undefined8") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  *param_1 = &PTR_FUN_0043aff8;\n  FUN_00318c70(param_1,0);\n  FUN_00318cb0(param_1);\n  if ((undefined8 *)param_1[0x19] != param_1 + 8) {\n    if ((undefined8 *)param_1[0x19] != (undefined8 *)0x0) {\n      thunk_FUN_002dac60();\n    }\n    param_1[0x19] = 0;\n  }\n  FUN_002dd1a0(param_1 + 0x1a);\n  return;\n}" ({ "{") (expression_statement "*param_1 = &PTR_FUN_0043aff8;" (assignment_expression "*param_1 = &PTR_FUN_0043aff8" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (pointer_expression "&PTR_FUN_0043aff8" (& "&") (identifier "PTR_FUN_0043aff8"))) (; ";")) (expression_statement "FUN_00318c70(param_1,0);" (call_expression "FUN_00318c70(param_1,0)" (identifier "FUN_00318c70") (argument_list "(param_1,0)" (( "(") (identifier "param_1") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "FUN_00318cb0(param_1);" (call_expression "FUN_00318cb0(param_1)" (identifier "FUN_00318cb0") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (if_statement "if ((undefined8 *)param_1[0x19] != param_1 + 8) {\n    if ((undefined8 *)param_1[0x19] != (undefined8 *)0x0) {\n      thunk_FUN_002dac60();\n    }\n    param_1[0x19] = 0;\n  }" (if "if") (parenthesized_expression "((undefined8 *)param_1[0x19] != param_1 + 8)" (( "(") (binary_expression "(undefined8 *)param_1[0x19] != param_1 + 8" (cast_expression "(undefined8 *)param_1[0x19]" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[0x19]" (identifier "param_1") ([ "[") (number_literal "0x19") (] "]"))) (!= "!=") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8"))) () ")")) (compound_statement "{\n    if ((undefined8 *)param_1[0x19] != (undefined8 *)0x0) {\n      thunk_FUN_002dac60();\n    }\n    param_1[0x19] = 0;\n  }" ({ "{") (if_statement "if ((undefined8 *)param_1[0x19] != (undefined8 *)0x0) {\n      thunk_FUN_002dac60();\n    }" (if "if") (parenthesized_expression "((undefined8 *)param_1[0x19] != (undefined8 *)0x0)" (( "(") (binary_expression "(undefined8 *)param_1[0x19] != (undefined8 *)0x0" (cast_expression "(undefined8 *)param_1[0x19]" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[0x19]" (identifier "param_1") ([ "[") (number_literal "0x19") (] "]"))) (!= "!=") (cast_expression "(undefined8 *)0x0" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      thunk_FUN_002dac60();\n    }" ({ "{") (expression_statement "thunk_FUN_002dac60();" (call_expression "thunk_FUN_002dac60()" (identifier "thunk_FUN_002dac60") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "param_1[0x19] = 0;" (assignment_expression "param_1[0x19] = 0" (subscript_expression "param_1[0x19]" (identifier "param_1") ([ "[") (number_literal "0x19") (] "]")) (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "FUN_002dd1a0(param_1 + 0x1a);" (call_expression "FUN_002dd1a0(param_1 + 0x1a)" (identifier "FUN_002dd1a0") (argument_list "(param_1 + 0x1a)" (( "(") (binary_expression "param_1 + 0x1a" (identifier "param_1") (+ "+") (number_literal "0x1a")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* std::ios_base::~ios_base() */

void __thiscall std::function_1::~function_1(function_1 *var_3)

{
  function_1 *var_4;
  
  *(type_1 ***)var_3 = &PTR__ios_base_0043aff8;
  var_1(var_3,0);
  var_2(var_3);
  var_4 = *(function_1 **)(var_3 + 200);
  if (var_4 != var_3 + 0x40) {
    if (var_4 != (function_1 *)0x0) {
      var_5(var_4);
    }
    *(type_2 *)(var_3 + 200) = 0;
  }
  locale::~var_6((var_6 *)(var_3 + 0xd0));
  return;
}


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

void MASKED(undefined8 *param_1)

{
  *param_1 = &PTR_FUN_0043aff8;
  FUN_00318c70(param_1,0);
  FUN_00318cb0(param_1);
  if ((undefined8 *)param_1[0x19] != param_1 + 8) {
    if ((undefined8 *)param_1[0x19] != (undefined8 *)0x0) {
      thunk_FUN_002dac60();
    }
    param_1[0x19] = 0;
  }
  FUN_002dd1a0(param_1 + 0x1a);
  return;
}

