
/* std::__facet_shims::(anonymous namespace)::moneypunct_shim<wchar_t, false>::~moneypunct_shim() */

void __thiscall
std::__facet_shims::(anonymous_namespace)::moneypunct_shim<wchar_t,false>::~moneypunct_shim
          (moneypunct_shim<wchar_t,false> *this)

{
  undefined *puVar1;
  int iVar2;
  int *piVar3;
  
  puVar1 = PTR___pthread_key_create_0043667c;
  *(undefined **)this = PTR_PTR__wfilebuf_004321f8 + 0x680;
  *(undefined4 *)(*(int *)(this + 0x10) + 0xc) = 0;
  *(undefined4 *)(*(int *)(this + 0x10) + 0x20) = 0;
  *(undefined4 *)(*(int *)(this + 0x10) + 0x28) = 0;
  *(undefined4 *)(*(int *)(this + 0x10) + 0x30) = 0;
  piVar3 = *(int **)(this + 0xc);
  if (puVar1 == (undefined *)0x0) {
    iVar2 = piVar3[1];
    piVar3[1] = iVar2 + -1;
  }
  else {
    SYNC(0);
    iVar2 = piVar3[1];
    piVar3[1] = iVar2 + -1;
    SYNC(0);
  }
  if (iVar2 == 1) {
    (**(code **)(*piVar3 + 4))();
  }
  moneypunct<wchar_t,false>::~moneypunct((moneypunct<wchar_t,false> *)this);
  (*(code *)PTR_operator_delete_0043228c)(this);
  return;
}



void FUN_00301274(moneypunct<wchar_t,false> *param_1)

{
  undefined *puVar1;
  int iVar2;
  int *piVar3;
  
  puVar1 = PTR___pthread_key_create_0043667c;
  *(undefined **)param_1 = PTR_PTR__wfilebuf_004321f8 + 0x680;
  *(undefined4 *)(*(int *)(param_1 + 0x10) + 0xc) = 0;
  *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x20) = 0;
  *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x28) = 0;
  *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x30) = 0;
  piVar3 = *(int **)(param_1 + 0xc);
  if (puVar1 == (undefined *)0x0) {
    iVar2 = piVar3[1];
    piVar3[1] = iVar2 + -1;
  }
  else {
    SYNC(0);
    iVar2 = piVar3[1];
    piVar3[1] = iVar2 + -1;
    SYNC(0);
  }
  if (iVar2 == 1) {
    (**(code **)(*piVar3 + 4))();
  }
  std::moneypunct<wchar_t,false>::~moneypunct(param_1);
  (*(code *)PTR_operator_delete_0043228c)(param_1);
  return;
}


lui gp,0x14
addiu gp,gp,-0x70a4
addu gp,gp,t9
addiu sp,sp,-0x20
lw v0,-0x7fd8(gp)
lw v1,-0x3b54(gp)
sw s0,0x18(sp)
or s0,a0,zero
sw gp,0x10(sp)
addiu v0,v0,0x680
sw ra,0x1c(sp)
lw a0,0x10(a0)
sw v0,0x0(s0)
sw zero,0xc(a0)
lw v0,0x10(s0)
sw zero,0x20(v0)
lw v0,0x10(s0)
sw zero,0x28(v0)
lw v0,0x10(s0)
sw zero,0x30(v0)
beq v1,zero,0x00301330
_lw a0,0xc(s0)
sync 0x0
ll v0,0x4(a0)
addiu at,v0,-0x1
sc at,0x4(a0)
beq at,zero,0x003012d0
_nop
sync 0x0
li v1,0x1
bne v0,v1,0x0030130c
_lw t9,-0x6588(gp)
lw v0,0x0(a0)
lw t9,0x4(v0)
jalr t9
_nop
lw gp,0x10(sp)
lw t9,-0x6588(gp)
bal 0x00316828
_or a0,s0,zero
or a0,s0,zero
lw gp,0x10(sp)
lw ra,0x1c(sp)
lw s0,0x18(sp)
lw t9,-0x7f44(gp)
jr t9
_addiu sp,sp,0x20
lw v0,0x4(a0)
addiu v1,v0,-0x1
b 0x003012e8
_sw v1,0x4(a0)
(translation_unit "void FUN_00301274(moneypunct<wchar_t,false> *param_1)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int *piVar3;\n  \n  puVar1 = PTR___pthread_key_create_0043667c;\n  *(undefined **)param_1 = PTR_PTR__wfilebuf_004321f8 + 0x680;\n  *(undefined4 *)(*(int *)(param_1 + 0x10) + 0xc) = 0;\n  *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x20) = 0;\n  *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x28) = 0;\n  *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x30) = 0;\n  piVar3 = *(int **)(param_1 + 0xc);\n  if (puVar1 == (undefined *)0x0) {\n    iVar2 = piVar3[1];\n    piVar3[1] = iVar2 + -1;\n  }\n  else {\n    SYNC(0);\n    iVar2 = piVar3[1];\n    piVar3[1] = iVar2 + -1;\n    SYNC(0);\n  }\n  if (iVar2 == 1) {\n    (**(code **)(*piVar3 + 4))();\n  }\n  std::moneypunct<wchar_t,false>::~moneypunct(param_1);\n  (*(code *)PTR_operator_delete_0043228c)(param_1);\n  return;\n}\n\n" (function_definition "void FUN_00301274(moneypunct<wchar_t,false> *param_1)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int *piVar3;\n  \n  puVar1 = PTR___pthread_key_create_0043667c;\n  *(undefined **)param_1 = PTR_PTR__wfilebuf_004321f8 + 0x680;\n  *(undefined4 *)(*(int *)(param_1 + 0x10) + 0xc) = 0;\n  *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x20) = 0;\n  *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x28) = 0;\n  *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x30) = 0;\n  piVar3 = *(int **)(param_1 + 0xc);\n  if (puVar1 == (undefined *)0x0) {\n    iVar2 = piVar3[1];\n    piVar3[1] = iVar2 + -1;\n  }\n  else {\n    SYNC(0);\n    iVar2 = piVar3[1];\n    piVar3[1] = iVar2 + -1;\n    SYNC(0);\n  }\n  if (iVar2 == 1) {\n    (**(code **)(*piVar3 + 4))();\n  }\n  std::moneypunct<wchar_t,false>::~moneypunct(param_1);\n  (*(code *)PTR_operator_delete_0043228c)(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_00301274(moneypunct<wchar_t,false> *param_1)" identifier (parameter_list "(moneypunct<wchar_t,false> *param_1)" ( (parameter_declaration "moneypunct<wchar_t" type_identifier (ERROR "<" <) identifier) , (parameter_declaration "false> *param_1" type_identifier (ERROR ">" >) (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int *piVar3;\n  \n  puVar1 = PTR___pthread_key_create_0043667c;\n  *(undefined **)param_1 = PTR_PTR__wfilebuf_004321f8 + 0x680;\n  *(undefined4 *)(*(int *)(param_1 + 0x10) + 0xc) = 0;\n  *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x20) = 0;\n  *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x28) = 0;\n  *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x30) = 0;\n  piVar3 = *(int **)(param_1 + 0xc);\n  if (puVar1 == (undefined *)0x0) {\n    iVar2 = piVar3[1];\n    piVar3[1] = iVar2 + -1;\n  }\n  else {\n    SYNC(0);\n    iVar2 = piVar3[1];\n    piVar3[1] = iVar2 + -1;\n    SYNC(0);\n  }\n  if (iVar2 == 1) {\n    (**(code **)(*piVar3 + 4))();\n  }\n  std::moneypunct<wchar_t,false>::~moneypunct(param_1);\n  (*(code *)PTR_operator_delete_0043228c)(param_1);\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (expression_statement "puVar1 = PTR___pthread_key_create_0043667c;" (assignment_expression "puVar1 = PTR___pthread_key_create_0043667c" identifier = identifier) ;) (expression_statement "*(undefined **)param_1 = PTR_PTR__wfilebuf_004321f8 + 0x680;" (assignment_expression "*(undefined **)param_1 = PTR_PTR__wfilebuf_004321f8 + 0x680" (pointer_expression "*(undefined **)param_1" * (cast_expression "(undefined **)param_1" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = (binary_expression "PTR_PTR__wfilebuf_004321f8 + 0x680" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(*(int *)(param_1 + 0x10) + 0xc) = 0;" (assignment_expression "*(undefined4 *)(*(int *)(param_1 + 0x10) + 0xc) = 0" (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x10) + 0xc)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x10) + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x10) + 0xc)" ( (binary_expression "*(int *)(param_1 + 0x10) + 0xc" (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) )))) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(*(int *)(param_1 + 0x10) + 0x20) = 0;" (assignment_expression "*(undefined4 *)(*(int *)(param_1 + 0x10) + 0x20) = 0" (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x10) + 0x20)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x10) + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x10) + 0x20)" ( (binary_expression "*(int *)(param_1 + 0x10) + 0x20" (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) )))) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(*(int *)(param_1 + 0x10) + 0x28) = 0;" (assignment_expression "*(undefined4 *)(*(int *)(param_1 + 0x10) + 0x28) = 0" (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x10) + 0x28)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x10) + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x10) + 0x28)" ( (binary_expression "*(int *)(param_1 + 0x10) + 0x28" (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) )))) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(*(int *)(param_1 + 0x10) + 0x30) = 0;" (assignment_expression "*(undefined4 *)(*(int *)(param_1 + 0x10) + 0x30) = 0" (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x10) + 0x30)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x10) + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x10) + 0x30)" ( (binary_expression "*(int *)(param_1 + 0x10) + 0x30" (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) )))) + number_literal) )))) = number_literal) ;) (expression_statement "piVar3 = *(int **)(param_1 + 0xc);" (assignment_expression "piVar3 = *(int **)(param_1 + 0xc)" identifier = (pointer_expression "*(int **)(param_1 + 0xc)" * (cast_expression "(int **)(param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if (puVar1 == (undefined *)0x0) {\n    iVar2 = piVar3[1];\n    piVar3[1] = iVar2 + -1;\n  }\n  else {\n    SYNC(0);\n    iVar2 = piVar3[1];\n    piVar3[1] = iVar2 + -1;\n    SYNC(0);\n  }" if (parenthesized_expression "(puVar1 == (undefined *)0x0)" ( (binary_expression "puVar1 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar2 = piVar3[1];\n    piVar3[1] = iVar2 + -1;\n  }" { (expression_statement "iVar2 = piVar3[1];" (assignment_expression "iVar2 = piVar3[1]" identifier = (subscript_expression "piVar3[1]" identifier [ number_literal ])) ;) (expression_statement "piVar3[1] = iVar2 + -1;" (assignment_expression "piVar3[1] = iVar2 + -1" (subscript_expression "piVar3[1]" identifier [ number_literal ]) = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n    SYNC(0);\n    iVar2 = piVar3[1];\n    piVar3[1] = iVar2 + -1;\n    SYNC(0);\n  }" else (compound_statement "{\n    SYNC(0);\n    iVar2 = piVar3[1];\n    piVar3[1] = iVar2 + -1;\n    SYNC(0);\n  }" { (expression_statement "SYNC(0);" (call_expression "SYNC(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (expression_statement "iVar2 = piVar3[1];" (assignment_expression "iVar2 = piVar3[1]" identifier = (subscript_expression "piVar3[1]" identifier [ number_literal ])) ;) (expression_statement "piVar3[1] = iVar2 + -1;" (assignment_expression "piVar3[1] = iVar2 + -1" (subscript_expression "piVar3[1]" identifier [ number_literal ]) = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (expression_statement "SYNC(0);" (call_expression "SYNC(0)" identifier (argument_list "(0)" ( number_literal ))) ;) }))) (if_statement "if (iVar2 == 1) {\n    (**(code **)(*piVar3 + 4))();\n  }" if (parenthesized_expression "(iVar2 == 1)" ( (binary_expression "iVar2 == 1" identifier == number_literal) )) (compound_statement "{\n    (**(code **)(*piVar3 + 4))();\n  }" { (expression_statement "(**(code **)(*piVar3 + 4))();" (call_expression "(**(code **)(*piVar3 + 4))()" (parenthesized_expression "(**(code **)(*piVar3 + 4))" ( (pointer_expression "**(code **)(*piVar3 + 4)" * (pointer_expression "*(code **)(*piVar3 + 4)" * (cast_expression "(code **)(*piVar3 + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar3 + 4)" ( (binary_expression "*piVar3 + 4" (pointer_expression "*piVar3" * identifier) + number_literal) ))))) )) (argument_list "()" ( ))) ;) })) (labeled_statement "std::moneypunct<wchar_t,false>::~moneypunct(param_1);" statement_identifier : (ERROR ":" :) (expression_statement "moneypunct<wchar_t,false>::~moneypunct(param_1);" (comma_expression "moneypunct<wchar_t,false>::~moneypunct(param_1)" (binary_expression "moneypunct<wchar_t" identifier < identifier) , (binary_expression "false>::~moneypunct(param_1)" false > (ERROR "::" : :) (unary_expression "~moneypunct(param_1)" ~ (call_expression "moneypunct(param_1)" identifier (argument_list "(param_1)" ( identifier )))))) ;)) (expression_statement "(*(code *)PTR_operator_delete_0043228c)(param_1);" (call_expression "(*(code *)PTR_operator_delete_0043228c)(param_1)" (parenthesized_expression "(*(code *)PTR_operator_delete_0043228c)" ( (pointer_expression "*(code *)PTR_operator_delete_0043228c" * (cast_expression "(code *)PTR_operator_delete_0043228c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* std::__facet_shims::(anonymous namespace)::moneypunct_shim<wchar_t, false>::~moneypunct_shim() */\n\nvoid __thiscall\nstd::__facet_shims::(anonymous_namespace)::moneypunct_shim<wchar_t,false>::~moneypunct_shim\n          (moneypunct_shim<wchar_t,false> *this)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int *piVar3;\n  \n  puVar1 = PTR___pthread_key_create_0043667c;\n  *(undefined **)this = PTR_PTR__wfilebuf_004321f8 + 0x680;\n  *(undefined4 *)(*(int *)(this + 0x10) + 0xc) = 0;\n  *(undefined4 *)(*(int *)(this + 0x10) + 0x20) = 0;\n  *(undefined4 *)(*(int *)(this + 0x10) + 0x28) = 0;\n  *(undefined4 *)(*(int *)(this + 0x10) + 0x30) = 0;\n  piVar3 = *(int **)(this + 0xc);\n  if (puVar1 == (undefined *)0x0) {\n    iVar2 = piVar3[1];\n    piVar3[1] = iVar2 + -1;\n  }\n  else {\n    SYNC(0);\n    iVar2 = piVar3[1];\n    piVar3[1] = iVar2 + -1;\n    SYNC(0);\n  }\n  if (iVar2 == 1) {\n    (**(code **)(*piVar3 + 4))();\n  }\n  moneypunct<wchar_t,false>::~moneypunct((moneypunct<wchar_t,false> *)this);\n  (*(code *)PTR_operator_delete_0043228c)(this);\n  return;\n}\n\n" comment (declaration "void __thiscall\nstd::__facet_shims::(anonymous_namespace)::moneypunct_shim<wchar_t,false>::~moneypunct_shim\n          (moneypunct_shim<wchar_t,false> *this)\n\n{\n  undefined *puVar1;" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::__facet_shims::(anonymous_namespace)::moneypunct_shim<" identifier : : identifier : : ( identifier ) : : identifier <) identifier , (ERROR "false>::~moneypunct_shim\n          (moneypunct_shim<wchar_t,false> *this)\n\n{\n  undefined" identifier > : : ~ (function_declarator "moneypunct_shim\n          (moneypunct_shim<wchar_t,false> *this)" identifier (parameter_list "(moneypunct_shim<wchar_t,false> *this)" ( (parameter_declaration "moneypunct_shim<wchar_t" type_identifier (ERROR "<" <) identifier) , (parameter_declaration "false> *this" type_identifier (ERROR ">" >) (pointer_declarator "*this" * identifier)) ))) { identifier) (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (expression_statement "puVar1 = PTR___pthread_key_create_0043667c;" (assignment_expression "puVar1 = PTR___pthread_key_create_0043667c" identifier = identifier) ;) (expression_statement "*(undefined **)this = PTR_PTR__wfilebuf_004321f8 + 0x680;" (assignment_expression "*(undefined **)this = PTR_PTR__wfilebuf_004321f8 + 0x680" (pointer_expression "*(undefined **)this" * (cast_expression "(undefined **)this" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = (binary_expression "PTR_PTR__wfilebuf_004321f8 + 0x680" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(*(int *)(this + 0x10) + 0xc) = 0;" (assignment_expression "*(undefined4 *)(*(int *)(this + 0x10) + 0xc) = 0" (pointer_expression "*(undefined4 *)(*(int *)(this + 0x10) + 0xc)" * (cast_expression "(undefined4 *)(*(int *)(this + 0x10) + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(this + 0x10) + 0xc)" ( (binary_expression "*(int *)(this + 0x10) + 0xc" (pointer_expression "*(int *)(this + 0x10)" * (cast_expression "(int *)(this + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) )))) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(*(int *)(this + 0x10) + 0x20) = 0;" (assignment_expression "*(undefined4 *)(*(int *)(this + 0x10) + 0x20) = 0" (pointer_expression "*(undefined4 *)(*(int *)(this + 0x10) + 0x20)" * (cast_expression "(undefined4 *)(*(int *)(this + 0x10) + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(this + 0x10) + 0x20)" ( (binary_expression "*(int *)(this + 0x10) + 0x20" (pointer_expression "*(int *)(this + 0x10)" * (cast_expression "(int *)(this + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) )))) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(*(int *)(this + 0x10) + 0x28) = 0;" (assignment_expression "*(undefined4 *)(*(int *)(this + 0x10) + 0x28) = 0" (pointer_expression "*(undefined4 *)(*(int *)(this + 0x10) + 0x28)" * (cast_expression "(undefined4 *)(*(int *)(this + 0x10) + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(this + 0x10) + 0x28)" ( (binary_expression "*(int *)(this + 0x10) + 0x28" (pointer_expression "*(int *)(this + 0x10)" * (cast_expression "(int *)(this + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) )))) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(*(int *)(this + 0x10) + 0x30) = 0;" (assignment_expression "*(undefined4 *)(*(int *)(this + 0x10) + 0x30) = 0" (pointer_expression "*(undefined4 *)(*(int *)(this + 0x10) + 0x30)" * (cast_expression "(undefined4 *)(*(int *)(this + 0x10) + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(this + 0x10) + 0x30)" ( (binary_expression "*(int *)(this + 0x10) + 0x30" (pointer_expression "*(int *)(this + 0x10)" * (cast_expression "(int *)(this + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) )))) + number_literal) )))) = number_literal) ;) (expression_statement "piVar3 = *(int **)(this + 0xc);" (assignment_expression "piVar3 = *(int **)(this + 0xc)" identifier = (pointer_expression "*(int **)(this + 0xc)" * (cast_expression "(int **)(this + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0xc)" ( (binary_expression "this + 0xc" identifier + number_literal) ))))) ;) (if_statement "if (puVar1 == (undefined *)0x0) {\n    iVar2 = piVar3[1];\n    piVar3[1] = iVar2 + -1;\n  }\n  else {\n    SYNC(0);\n    iVar2 = piVar3[1];\n    piVar3[1] = iVar2 + -1;\n    SYNC(0);\n  }" if (parenthesized_expression "(puVar1 == (undefined *)0x0)" ( (binary_expression "puVar1 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar2 = piVar3[1];\n    piVar3[1] = iVar2 + -1;\n  }" { (expression_statement "iVar2 = piVar3[1];" (assignment_expression "iVar2 = piVar3[1]" identifier = (subscript_expression "piVar3[1]" identifier [ number_literal ])) ;) (expression_statement "piVar3[1] = iVar2 + -1;" (assignment_expression "piVar3[1] = iVar2 + -1" (subscript_expression "piVar3[1]" identifier [ number_literal ]) = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n    SYNC(0);\n    iVar2 = piVar3[1];\n    piVar3[1] = iVar2 + -1;\n    SYNC(0);\n  }" else (compound_statement "{\n    SYNC(0);\n    iVar2 = piVar3[1];\n    piVar3[1] = iVar2 + -1;\n    SYNC(0);\n  }" { (expression_statement "SYNC(0);" (call_expression "SYNC(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (expression_statement "iVar2 = piVar3[1];" (assignment_expression "iVar2 = piVar3[1]" identifier = (subscript_expression "piVar3[1]" identifier [ number_literal ])) ;) (expression_statement "piVar3[1] = iVar2 + -1;" (assignment_expression "piVar3[1] = iVar2 + -1" (subscript_expression "piVar3[1]" identifier [ number_literal ]) = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (expression_statement "SYNC(0);" (call_expression "SYNC(0)" identifier (argument_list "(0)" ( number_literal ))) ;) }))) (if_statement "if (iVar2 == 1) {\n    (**(code **)(*piVar3 + 4))();\n  }" if (parenthesized_expression "(iVar2 == 1)" ( (binary_expression "iVar2 == 1" identifier == number_literal) )) (compound_statement "{\n    (**(code **)(*piVar3 + 4))();\n  }" { (expression_statement "(**(code **)(*piVar3 + 4))();" (call_expression "(**(code **)(*piVar3 + 4))()" (parenthesized_expression "(**(code **)(*piVar3 + 4))" ( (pointer_expression "**(code **)(*piVar3 + 4)" * (pointer_expression "*(code **)(*piVar3 + 4)" * (cast_expression "(code **)(*piVar3 + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar3 + 4)" ( (binary_expression "*piVar3 + 4" (pointer_expression "*piVar3" * identifier) + number_literal) ))))) )) (argument_list "()" ( ))) ;) })) (ERROR "moneypunct<wchar_t,false>::~moneypunct((moneypunct<wchar_t,false> *)this);\n  (*(code *)PTR_operator_delete_0043228c)(this);\n  return;\n}" (binary_expression "moneypunct<wchar_t" identifier < identifier) (ERROR ",false" , false) > (ERROR "::" : :) ~ identifier ( (call_expression "(moneypunct<wchar_t,false> *)this);\n  (*(code *)PTR_operator_delete_0043228c)(this)" (call_expression "(moneypunct<wchar_t,false> *)this);\n  (*(code *)PTR_operator_delete_0043228c)" (parenthesized_expression "(moneypunct<wchar_t,false> *)this)" ( (comma_expression "moneypunct<wchar_t,false> *)this" (binary_expression "moneypunct<wchar_t" identifier < identifier) , (binary_expression "false> *)this" false > (pointer_expression "*)this" * (ERROR ")" )) identifier))) )) (ERROR ";" ;) (argument_list "(*(code *)PTR_operator_delete_0043228c)" ( (pointer_expression "*(code *)PTR_operator_delete_0043228c" * (cast_expression "(code *)PTR_operator_delete_0043228c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) (argument_list "(this)" ( identifier ))) ; return ; }))
(translation_unit "void FUN_00301274(moneypunct<wchar_t,false> *param_1)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int *piVar3;\n  \n  puVar1 = PTR___pthread_key_create_0043667c;\n  *(undefined **)param_1 = PTR_PTR__wfilebuf_004321f8 + 0x680;\n  *(undefined4 *)(*(int *)(param_1 + 0x10) + 0xc) = 0;\n  *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x20) = 0;\n  *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x28) = 0;\n  *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x30) = 0;\n  piVar3 = *(int **)(param_1 + 0xc);\n  if (puVar1 == (undefined *)0x0) {\n    iVar2 = piVar3[1];\n    piVar3[1] = iVar2 + -1;\n  }\n  else {\n    SYNC(0);\n    iVar2 = piVar3[1];\n    piVar3[1] = iVar2 + -1;\n    SYNC(0);\n  }\n  if (iVar2 == 1) {\n    (**(code **)(*piVar3 + 4))();\n  }\n  std::moneypunct<wchar_t,false>::~moneypunct(param_1);\n  (*(code *)PTR_operator_delete_0043228c)(param_1);\n  return;\n}\n\n" (function_definition "void FUN_00301274(moneypunct<wchar_t,false> *param_1)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int *piVar3;\n  \n  puVar1 = PTR___pthread_key_create_0043667c;\n  *(undefined **)param_1 = PTR_PTR__wfilebuf_004321f8 + 0x680;\n  *(undefined4 *)(*(int *)(param_1 + 0x10) + 0xc) = 0;\n  *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x20) = 0;\n  *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x28) = 0;\n  *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x30) = 0;\n  piVar3 = *(int **)(param_1 + 0xc);\n  if (puVar1 == (undefined *)0x0) {\n    iVar2 = piVar3[1];\n    piVar3[1] = iVar2 + -1;\n  }\n  else {\n    SYNC(0);\n    iVar2 = piVar3[1];\n    piVar3[1] = iVar2 + -1;\n    SYNC(0);\n  }\n  if (iVar2 == 1) {\n    (**(code **)(*piVar3 + 4))();\n  }\n  std::moneypunct<wchar_t,false>::~moneypunct(param_1);\n  (*(code *)PTR_operator_delete_0043228c)(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_00301274(moneypunct<wchar_t,false> *param_1)" identifier (parameter_list "(moneypunct<wchar_t,false> *param_1)" ( (parameter_declaration "moneypunct<wchar_t" type_identifier (ERROR "<" <) identifier) , (parameter_declaration "false> *param_1" type_identifier (ERROR ">" >) (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int *piVar3;\n  \n  puVar1 = PTR___pthread_key_create_0043667c;\n  *(undefined **)param_1 = PTR_PTR__wfilebuf_004321f8 + 0x680;\n  *(undefined4 *)(*(int *)(param_1 + 0x10) + 0xc) = 0;\n  *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x20) = 0;\n  *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x28) = 0;\n  *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x30) = 0;\n  piVar3 = *(int **)(param_1 + 0xc);\n  if (puVar1 == (undefined *)0x0) {\n    iVar2 = piVar3[1];\n    piVar3[1] = iVar2 + -1;\n  }\n  else {\n    SYNC(0);\n    iVar2 = piVar3[1];\n    piVar3[1] = iVar2 + -1;\n    SYNC(0);\n  }\n  if (iVar2 == 1) {\n    (**(code **)(*piVar3 + 4))();\n  }\n  std::moneypunct<wchar_t,false>::~moneypunct(param_1);\n  (*(code *)PTR_operator_delete_0043228c)(param_1);\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (expression_statement "puVar1 = PTR___pthread_key_create_0043667c;" (assignment_expression "puVar1 = PTR___pthread_key_create_0043667c" identifier = identifier) ;) (expression_statement "*(undefined **)param_1 = PTR_PTR__wfilebuf_004321f8 + 0x680;" (assignment_expression "*(undefined **)param_1 = PTR_PTR__wfilebuf_004321f8 + 0x680" (pointer_expression "*(undefined **)param_1" * (cast_expression "(undefined **)param_1" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = (binary_expression "PTR_PTR__wfilebuf_004321f8 + 0x680" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(*(int *)(param_1 + 0x10) + 0xc) = 0;" (assignment_expression "*(undefined4 *)(*(int *)(param_1 + 0x10) + 0xc) = 0" (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x10) + 0xc)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x10) + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x10) + 0xc)" ( (binary_expression "*(int *)(param_1 + 0x10) + 0xc" (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) )))) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(*(int *)(param_1 + 0x10) + 0x20) = 0;" (assignment_expression "*(undefined4 *)(*(int *)(param_1 + 0x10) + 0x20) = 0" (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x10) + 0x20)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x10) + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x10) + 0x20)" ( (binary_expression "*(int *)(param_1 + 0x10) + 0x20" (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) )))) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(*(int *)(param_1 + 0x10) + 0x28) = 0;" (assignment_expression "*(undefined4 *)(*(int *)(param_1 + 0x10) + 0x28) = 0" (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x10) + 0x28)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x10) + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x10) + 0x28)" ( (binary_expression "*(int *)(param_1 + 0x10) + 0x28" (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) )))) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(*(int *)(param_1 + 0x10) + 0x30) = 0;" (assignment_expression "*(undefined4 *)(*(int *)(param_1 + 0x10) + 0x30) = 0" (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x10) + 0x30)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x10) + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x10) + 0x30)" ( (binary_expression "*(int *)(param_1 + 0x10) + 0x30" (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) )))) + number_literal) )))) = number_literal) ;) (expression_statement "piVar3 = *(int **)(param_1 + 0xc);" (assignment_expression "piVar3 = *(int **)(param_1 + 0xc)" identifier = (pointer_expression "*(int **)(param_1 + 0xc)" * (cast_expression "(int **)(param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if (puVar1 == (undefined *)0x0) {\n    iVar2 = piVar3[1];\n    piVar3[1] = iVar2 + -1;\n  }\n  else {\n    SYNC(0);\n    iVar2 = piVar3[1];\n    piVar3[1] = iVar2 + -1;\n    SYNC(0);\n  }" if (parenthesized_expression "(puVar1 == (undefined *)0x0)" ( (binary_expression "puVar1 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar2 = piVar3[1];\n    piVar3[1] = iVar2 + -1;\n  }" { (expression_statement "iVar2 = piVar3[1];" (assignment_expression "iVar2 = piVar3[1]" identifier = (subscript_expression "piVar3[1]" identifier [ number_literal ])) ;) (expression_statement "piVar3[1] = iVar2 + -1;" (assignment_expression "piVar3[1] = iVar2 + -1" (subscript_expression "piVar3[1]" identifier [ number_literal ]) = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n    SYNC(0);\n    iVar2 = piVar3[1];\n    piVar3[1] = iVar2 + -1;\n    SYNC(0);\n  }" else (compound_statement "{\n    SYNC(0);\n    iVar2 = piVar3[1];\n    piVar3[1] = iVar2 + -1;\n    SYNC(0);\n  }" { (expression_statement "SYNC(0);" (call_expression "SYNC(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (expression_statement "iVar2 = piVar3[1];" (assignment_expression "iVar2 = piVar3[1]" identifier = (subscript_expression "piVar3[1]" identifier [ number_literal ])) ;) (expression_statement "piVar3[1] = iVar2 + -1;" (assignment_expression "piVar3[1] = iVar2 + -1" (subscript_expression "piVar3[1]" identifier [ number_literal ]) = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (expression_statement "SYNC(0);" (call_expression "SYNC(0)" identifier (argument_list "(0)" ( number_literal ))) ;) }))) (if_statement "if (iVar2 == 1) {\n    (**(code **)(*piVar3 + 4))();\n  }" if (parenthesized_expression "(iVar2 == 1)" ( (binary_expression "iVar2 == 1" identifier == number_literal) )) (compound_statement "{\n    (**(code **)(*piVar3 + 4))();\n  }" { (expression_statement "(**(code **)(*piVar3 + 4))();" (call_expression "(**(code **)(*piVar3 + 4))()" (parenthesized_expression "(**(code **)(*piVar3 + 4))" ( (pointer_expression "**(code **)(*piVar3 + 4)" * (pointer_expression "*(code **)(*piVar3 + 4)" * (cast_expression "(code **)(*piVar3 + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar3 + 4)" ( (binary_expression "*piVar3 + 4" (pointer_expression "*piVar3" * identifier) + number_literal) ))))) )) (argument_list "()" ( ))) ;) })) (labeled_statement "std::moneypunct<wchar_t,false>::~moneypunct(param_1);" statement_identifier : (ERROR ":" :) (expression_statement "moneypunct<wchar_t,false>::~moneypunct(param_1);" (comma_expression "moneypunct<wchar_t,false>::~moneypunct(param_1)" (binary_expression "moneypunct<wchar_t" identifier < identifier) , (binary_expression "false>::~moneypunct(param_1)" false > (ERROR "::" : :) (unary_expression "~moneypunct(param_1)" ~ (call_expression "moneypunct(param_1)" identifier (argument_list "(param_1)" ( identifier )))))) ;)) (expression_statement "(*(code *)PTR_operator_delete_0043228c)(param_1);" (call_expression "(*(code *)PTR_operator_delete_0043228c)(param_1)" (parenthesized_expression "(*(code *)PTR_operator_delete_0043228c)" ( (pointer_expression "*(code *)PTR_operator_delete_0043228c" * (cast_expression "(code *)PTR_operator_delete_0043228c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (ERROR <) IDENT) , (parameter_declaration TYPE (ERROR >) (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT)) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( ))) ;) })) (labeled_statement statement_identifier : (ERROR :) (expression_statement (comma_expression (binary_expression IDENT < IDENT) , (binary_expression BOOL > (ERROR : :) (unary_expression ~ (call_expression IDENT (argument_list ( IDENT )))))) ;)) (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 FUN_00301274(moneypunct<wchar_t,false> *param_1)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int *piVar3;\n  \n  puVar1 = PTR___pthread_key_create_0043667c;\n  *(undefined **)param_1 = PTR_PTR__wfilebuf_004321f8 + 0x680;\n  *(undefined4 *)(*(int *)(param_1 + 0x10) + 0xc) = 0;\n  *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x20) = 0;\n  *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x28) = 0;\n  *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x30) = 0;\n  piVar3 = *(int **)(param_1 + 0xc);\n  if (puVar1 == (undefined *)0x0) {\n    iVar2 = piVar3[1];\n    piVar3[1] = iVar2 + -1;\n  }\n  else {\n    SYNC(0);\n    iVar2 = piVar3[1];\n    piVar3[1] = iVar2 + -1;\n    SYNC(0);\n  }\n  if (iVar2 == 1) {\n    (**(code **)(*piVar3 + 4))();\n  }\n  std::moneypunct<wchar_t,false>::~moneypunct(param_1);\n  (*(code *)PTR_operator_delete_0043228c)(param_1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00301274(moneypunct<wchar_t,false> *param_1)" (identifier "FUN_00301274") (parameter_list "(moneypunct<wchar_t,false> *param_1)" (( "(") (parameter_declaration "moneypunct<wchar_t" (type_identifier "moneypunct") (ERROR "<" (< "<")) (identifier "wchar_t")) (, ",") (parameter_declaration "false> *param_1" (type_identifier "false") (ERROR ">" (> ">")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int *piVar3;\n  \n  puVar1 = PTR___pthread_key_create_0043667c;\n  *(undefined **)param_1 = PTR_PTR__wfilebuf_004321f8 + 0x680;\n  *(undefined4 *)(*(int *)(param_1 + 0x10) + 0xc) = 0;\n  *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x20) = 0;\n  *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x28) = 0;\n  *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x30) = 0;\n  piVar3 = *(int **)(param_1 + 0xc);\n  if (puVar1 == (undefined *)0x0) {\n    iVar2 = piVar3[1];\n    piVar3[1] = iVar2 + -1;\n  }\n  else {\n    SYNC(0);\n    iVar2 = piVar3[1];\n    piVar3[1] = iVar2 + -1;\n    SYNC(0);\n  }\n  if (iVar2 == 1) {\n    (**(code **)(*piVar3 + 4))();\n  }\n  std::moneypunct<wchar_t,false>::~moneypunct(param_1);\n  (*(code *)PTR_operator_delete_0043228c)(param_1);\n  return;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (expression_statement "puVar1 = PTR___pthread_key_create_0043667c;" (assignment_expression "puVar1 = PTR___pthread_key_create_0043667c" (identifier "puVar1") (= "=") (identifier "PTR___pthread_key_create_0043667c")) (; ";")) (expression_statement "*(undefined **)param_1 = PTR_PTR__wfilebuf_004321f8 + 0x680;" (assignment_expression "*(undefined **)param_1 = PTR_PTR__wfilebuf_004321f8 + 0x680" (pointer_expression "*(undefined **)param_1" (* "*") (cast_expression "(undefined **)param_1" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "param_1"))) (= "=") (binary_expression "PTR_PTR__wfilebuf_004321f8 + 0x680" (identifier "PTR_PTR__wfilebuf_004321f8") (+ "+") (number_literal "0x680"))) (; ";")) (expression_statement "*(undefined4 *)(*(int *)(param_1 + 0x10) + 0xc) = 0;" (assignment_expression "*(undefined4 *)(*(int *)(param_1 + 0x10) + 0xc) = 0" (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x10) + 0xc)" (* "*") (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x10) + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x10) + 0xc)" (( "(") (binary_expression "*(int *)(param_1 + 0x10) + 0xc" (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")) () ")")))) (+ "+") (number_literal "0xc")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(*(int *)(param_1 + 0x10) + 0x20) = 0;" (assignment_expression "*(undefined4 *)(*(int *)(param_1 + 0x10) + 0x20) = 0" (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x10) + 0x20)" (* "*") (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x10) + 0x20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x10) + 0x20)" (( "(") (binary_expression "*(int *)(param_1 + 0x10) + 0x20" (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")) () ")")))) (+ "+") (number_literal "0x20")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(*(int *)(param_1 + 0x10) + 0x28) = 0;" (assignment_expression "*(undefined4 *)(*(int *)(param_1 + 0x10) + 0x28) = 0" (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x10) + 0x28)" (* "*") (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x10) + 0x28)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x10) + 0x28)" (( "(") (binary_expression "*(int *)(param_1 + 0x10) + 0x28" (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")) () ")")))) (+ "+") (number_literal "0x28")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(*(int *)(param_1 + 0x10) + 0x30) = 0;" (assignment_expression "*(undefined4 *)(*(int *)(param_1 + 0x10) + 0x30) = 0" (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x10) + 0x30)" (* "*") (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x10) + 0x30)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x10) + 0x30)" (( "(") (binary_expression "*(int *)(param_1 + 0x10) + 0x30" (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")) () ")")))) (+ "+") (number_literal "0x30")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar3 = *(int **)(param_1 + 0xc);" (assignment_expression "piVar3 = *(int **)(param_1 + 0xc)" (identifier "piVar3") (= "=") (pointer_expression "*(int **)(param_1 + 0xc)" (* "*") (cast_expression "(int **)(param_1 + 0xc)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (if_statement "if (puVar1 == (undefined *)0x0) {\n    iVar2 = piVar3[1];\n    piVar3[1] = iVar2 + -1;\n  }\n  else {\n    SYNC(0);\n    iVar2 = piVar3[1];\n    piVar3[1] = iVar2 + -1;\n    SYNC(0);\n  }" (if "if") (parenthesized_expression "(puVar1 == (undefined *)0x0)" (( "(") (binary_expression "puVar1 == (undefined *)0x0" (identifier "puVar1") (== "==") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    iVar2 = piVar3[1];\n    piVar3[1] = iVar2 + -1;\n  }" ({ "{") (expression_statement "iVar2 = piVar3[1];" (assignment_expression "iVar2 = piVar3[1]" (identifier "iVar2") (= "=") (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "piVar3[1] = iVar2 + -1;" (assignment_expression "piVar3[1] = iVar2 + -1" (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "iVar2 + -1" (identifier "iVar2") (+ "+") (number_literal "-1"))) (; ";")) (} "}")) (else_clause "else {\n    SYNC(0);\n    iVar2 = piVar3[1];\n    piVar3[1] = iVar2 + -1;\n    SYNC(0);\n  }" (else "else") (compound_statement "{\n    SYNC(0);\n    iVar2 = piVar3[1];\n    piVar3[1] = iVar2 + -1;\n    SYNC(0);\n  }" ({ "{") (expression_statement "SYNC(0);" (call_expression "SYNC(0)" (identifier "SYNC") (argument_list "(0)" (( "(") (number_literal "0") () ")"))) (; ";")) (expression_statement "iVar2 = piVar3[1];" (assignment_expression "iVar2 = piVar3[1]" (identifier "iVar2") (= "=") (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "piVar3[1] = iVar2 + -1;" (assignment_expression "piVar3[1] = iVar2 + -1" (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "iVar2 + -1" (identifier "iVar2") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "SYNC(0);" (call_expression "SYNC(0)" (identifier "SYNC") (argument_list "(0)" (( "(") (number_literal "0") () ")"))) (; ";")) (} "}")))) (if_statement "if (iVar2 == 1) {\n    (**(code **)(*piVar3 + 4))();\n  }" (if "if") (parenthesized_expression "(iVar2 == 1)" (( "(") (binary_expression "iVar2 == 1" (identifier "iVar2") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n    (**(code **)(*piVar3 + 4))();\n  }" ({ "{") (expression_statement "(**(code **)(*piVar3 + 4))();" (call_expression "(**(code **)(*piVar3 + 4))()" (parenthesized_expression "(**(code **)(*piVar3 + 4))" (( "(") (pointer_expression "**(code **)(*piVar3 + 4)" (* "*") (pointer_expression "*(code **)(*piVar3 + 4)" (* "*") (cast_expression "(code **)(*piVar3 + 4)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar3 + 4)" (( "(") (binary_expression "*piVar3 + 4" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (+ "+") (number_literal "4")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (labeled_statement "std::moneypunct<wchar_t,false>::~moneypunct(param_1);" (statement_identifier "std") (: ":") (ERROR ":" (: ":")) (expression_statement "moneypunct<wchar_t,false>::~moneypunct(param_1);" (comma_expression "moneypunct<wchar_t,false>::~moneypunct(param_1)" (binary_expression "moneypunct<wchar_t" (identifier "moneypunct") (< "<") (identifier "wchar_t")) (, ",") (binary_expression "false>::~moneypunct(param_1)" (false "false") (> ">") (ERROR "::" (: ":") (: ":")) (unary_expression "~moneypunct(param_1)" (~ "~") (call_expression "moneypunct(param_1)" (identifier "moneypunct") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))))) (; ";"))) (expression_statement "(*(code *)PTR_operator_delete_0043228c)(param_1);" (call_expression "(*(code *)PTR_operator_delete_0043228c)(param_1)" (parenthesized_expression "(*(code *)PTR_operator_delete_0043228c)" (( "(") (pointer_expression "*(code *)PTR_operator_delete_0043228c" (* "*") (cast_expression "(code *)PTR_operator_delete_0043228c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_operator_delete_0043228c"))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) (ERROR) declarator: (identifier)) (parameter_declaration type: (type_identifier) (ERROR) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier))) right: (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: (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: (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: (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: (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: (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: (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: (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: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))))) arguments: (argument_list))))) (labeled_statement label: (statement_identifier) (ERROR) (expression_statement (comma_expression left: (binary_expression left: (identifier) right: (identifier)) right: (binary_expression left: (false) (ERROR) right: (unary_expression argument: (call_expression function: (identifier) arguments: (argument_list (identifier)))))))) (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(moneypunct<wchar_t,false> *param_1)

{
  undefined *puVar1;
  int iVar2;
  int *piVar3;
  
  puVar1 = PTR___pthread_key_create_0043667c;
  *(undefined **)param_1 = PTR_PTR__wfilebuf_004321f8 + 0x680;
  *(undefined4 *)(*(int *)(param_1 + 0x10) + 0xc) = 0;
  *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x20) = 0;
  *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x28) = 0;
  *(undefined4 *)(*(int *)(param_1 + 0x10) + 0x30) = 0;
  piVar3 = *(int **)(param_1 + 0xc);
  if (puVar1 == (undefined *)0x0) {
    iVar2 = piVar3[1];
    piVar3[1] = iVar2 + -1;
  }
  else {
    SYNC(0);
    iVar2 = piVar3[1];
    piVar3[1] = iVar2 + -1;
    SYNC(0);
  }
  if (iVar2 == 1) {
    (**(code **)(*piVar3 + 4))();
  }
  std::moneypunct<wchar_t,false>::~moneypunct(param_1);
  (*(code *)PTR_operator_delete_0043228c)(param_1);
  return;
}

