
/* std::__facet_shims::(anonymous namespace)::money_get_shim<char>::~money_get_shim() */

void __thiscall
std::__facet_shims::(anonymous_namespace)::money_get_shim<char>::~money_get_shim
          (money_get_shim<char> *this)

{
  bool bVar1;
  undefined *puVar2;
  int iVar3;
  int *piVar4;
  
  piVar4 = *(int **)(this + 8);
  bVar1 = PTR___pthread_key_create_004c5aa0 == (undefined *)0x0;
  *(undefined **)this = PTR_uleb128_004affff_1_004c1274 + 0x7620;
  if (bVar1) {
    iVar3 = piVar4[1];
    piVar4[1] = iVar3 + -1;
  }
  else {
    SYNC(0);
    iVar3 = piVar4[1];
    piVar4[1] = iVar3 + -1;
    SYNC(0);
  }
  if (iVar3 == 1) {
    (**(code **)(*piVar4 + 4))();
  }
  puVar2 = PTR__facet_004c12f8;
  *(undefined **)this = PTR_vtable_004c1328 + 8;
  (*(code *)puVar2)(this);
  (*(code *)PTR_operator_delete_004c12fc)(this);
  return;
}



void FUN_00383840(undefined4 *param_1)

{
  bool bVar1;
  undefined *puVar2;
  int iVar3;
  int *piVar4;
  
  piVar4 = (int *)param_1[2];
  bVar1 = PTR___pthread_key_create_004c5aa0 == (undefined *)0x0;
  *param_1 = PTR_uleb128_004affff_1_004c1274 + 0x7620;
  if (bVar1) {
    iVar3 = piVar4[1];
    piVar4[1] = iVar3 + -1;
  }
  else {
    SYNC(0);
    iVar3 = piVar4[1];
    piVar4[1] = iVar3 + -1;
    SYNC(0);
  }
  if (iVar3 == 1) {
    (**(code **)(*piVar4 + 4))();
  }
  puVar2 = PTR__facet_004c12f8;
  *param_1 = PTR_vtable_004c1328 + 8;
  (*(code *)puVar2)(param_1);
  (*(code *)PTR_operator_delete_004c12fc)(param_1);
  return;
}


lui gp,0x14
addiu gp,gp,0x5a00
addu gp,gp,t9
addiu sp,sp,-0x20
lw v0,-0x7fcc(gp)
lw v1,-0x37a0(gp)
sw s0,0x18(sp)
addiu v0,v0,0x7620
or s0,a0,zero
sw gp,0x10(sp)
sw ra,0x1c(sp)
lw a0,0x8(a0)
beq v1,zero,0x003838e8
_sw v0,0x0(s0)
sync 0x0
ll v0,0x4(a0)
addiu at,v0,-0x1
sc at,0x4(a0)
beq at,zero,0x0038387c
_nop
sync 0x0
li v1,0x1
bne v0,v1,0x003838b4
_nop
lw v0,0x0(a0)
lw t9,0x4(v0)
jalr t9
_nop
lw gp,0x10(sp)
lw v0,-0x7f18(gp)
or a0,s0,zero
lw t9,-0x7f48(gp)
addiu v0,v0,0x8
jalr t9
_sw v0,0x0(s0)
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 0x00383894
_sw v1,0x4(a0)
(translation_unit "void FUN_00383840(undefined4 *param_1)\n\n{\n  bool bVar1;\n  undefined *puVar2;\n  int iVar3;\n  int *piVar4;\n  \n  piVar4 = (int *)param_1[2];\n  bVar1 = PTR___pthread_key_create_004c5aa0 == (undefined *)0x0;\n  *param_1 = PTR_uleb128_004affff_1_004c1274 + 0x7620;\n  if (bVar1) {\n    iVar3 = piVar4[1];\n    piVar4[1] = iVar3 + -1;\n  }\n  else {\n    SYNC(0);\n    iVar3 = piVar4[1];\n    piVar4[1] = iVar3 + -1;\n    SYNC(0);\n  }\n  if (iVar3 == 1) {\n    (**(code **)(*piVar4 + 4))();\n  }\n  puVar2 = PTR__facet_004c12f8;\n  *param_1 = PTR_vtable_004c1328 + 8;\n  (*(code *)puVar2)(param_1);\n  (*(code *)PTR_operator_delete_004c12fc)(param_1);\n  return;\n}\n\n" (function_definition "void FUN_00383840(undefined4 *param_1)\n\n{\n  bool bVar1;\n  undefined *puVar2;\n  int iVar3;\n  int *piVar4;\n  \n  piVar4 = (int *)param_1[2];\n  bVar1 = PTR___pthread_key_create_004c5aa0 == (undefined *)0x0;\n  *param_1 = PTR_uleb128_004affff_1_004c1274 + 0x7620;\n  if (bVar1) {\n    iVar3 = piVar4[1];\n    piVar4[1] = iVar3 + -1;\n  }\n  else {\n    SYNC(0);\n    iVar3 = piVar4[1];\n    piVar4[1] = iVar3 + -1;\n    SYNC(0);\n  }\n  if (iVar3 == 1) {\n    (**(code **)(*piVar4 + 4))();\n  }\n  puVar2 = PTR__facet_004c12f8;\n  *param_1 = PTR_vtable_004c1328 + 8;\n  (*(code *)puVar2)(param_1);\n  (*(code *)PTR_operator_delete_004c12fc)(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_00383840(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  bool bVar1;\n  undefined *puVar2;\n  int iVar3;\n  int *piVar4;\n  \n  piVar4 = (int *)param_1[2];\n  bVar1 = PTR___pthread_key_create_004c5aa0 == (undefined *)0x0;\n  *param_1 = PTR_uleb128_004affff_1_004c1274 + 0x7620;\n  if (bVar1) {\n    iVar3 = piVar4[1];\n    piVar4[1] = iVar3 + -1;\n  }\n  else {\n    SYNC(0);\n    iVar3 = piVar4[1];\n    piVar4[1] = iVar3 + -1;\n    SYNC(0);\n  }\n  if (iVar3 == 1) {\n    (**(code **)(*piVar4 + 4))();\n  }\n  puVar2 = PTR__facet_004c12f8;\n  *param_1 = PTR_vtable_004c1328 + 8;\n  (*(code *)puVar2)(param_1);\n  (*(code *)PTR_operator_delete_004c12fc)(param_1);\n  return;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (expression_statement "piVar4 = (int *)param_1[2];" (assignment_expression "piVar4 = (int *)param_1[2]" identifier = (cast_expression "(int *)param_1[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) (expression_statement "bVar1 = PTR___pthread_key_create_004c5aa0 == (undefined *)0x0;" (assignment_expression "bVar1 = PTR___pthread_key_create_004c5aa0 == (undefined *)0x0" identifier = (binary_expression "PTR___pthread_key_create_004c5aa0 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ;) (expression_statement "*param_1 = PTR_uleb128_004affff_1_004c1274 + 0x7620;" (assignment_expression "*param_1 = PTR_uleb128_004affff_1_004c1274 + 0x7620" (pointer_expression "*param_1" * identifier) = (binary_expression "PTR_uleb128_004affff_1_004c1274 + 0x7620" identifier + number_literal)) ;) (if_statement "if (bVar1) {\n    iVar3 = piVar4[1];\n    piVar4[1] = iVar3 + -1;\n  }\n  else {\n    SYNC(0);\n    iVar3 = piVar4[1];\n    piVar4[1] = iVar3 + -1;\n    SYNC(0);\n  }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n    iVar3 = piVar4[1];\n    piVar4[1] = iVar3 + -1;\n  }" { (expression_statement "iVar3 = piVar4[1];" (assignment_expression "iVar3 = piVar4[1]" identifier = (subscript_expression "piVar4[1]" identifier [ number_literal ])) ;) (expression_statement "piVar4[1] = iVar3 + -1;" (assignment_expression "piVar4[1] = iVar3 + -1" (subscript_expression "piVar4[1]" identifier [ number_literal ]) = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n    SYNC(0);\n    iVar3 = piVar4[1];\n    piVar4[1] = iVar3 + -1;\n    SYNC(0);\n  }" else (compound_statement "{\n    SYNC(0);\n    iVar3 = piVar4[1];\n    piVar4[1] = iVar3 + -1;\n    SYNC(0);\n  }" { (expression_statement "SYNC(0);" (call_expression "SYNC(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (expression_statement "iVar3 = piVar4[1];" (assignment_expression "iVar3 = piVar4[1]" identifier = (subscript_expression "piVar4[1]" identifier [ number_literal ])) ;) (expression_statement "piVar4[1] = iVar3 + -1;" (assignment_expression "piVar4[1] = iVar3 + -1" (subscript_expression "piVar4[1]" identifier [ number_literal ]) = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) (expression_statement "SYNC(0);" (call_expression "SYNC(0)" identifier (argument_list "(0)" ( number_literal ))) ;) }))) (if_statement "if (iVar3 == 1) {\n    (**(code **)(*piVar4 + 4))();\n  }" if (parenthesized_expression "(iVar3 == 1)" ( (binary_expression "iVar3 == 1" identifier == number_literal) )) (compound_statement "{\n    (**(code **)(*piVar4 + 4))();\n  }" { (expression_statement "(**(code **)(*piVar4 + 4))();" (call_expression "(**(code **)(*piVar4 + 4))()" (parenthesized_expression "(**(code **)(*piVar4 + 4))" ( (pointer_expression "**(code **)(*piVar4 + 4)" * (pointer_expression "*(code **)(*piVar4 + 4)" * (cast_expression "(code **)(*piVar4 + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar4 + 4)" ( (binary_expression "*piVar4 + 4" (pointer_expression "*piVar4" * identifier) + number_literal) ))))) )) (argument_list "()" ( ))) ;) })) (expression_statement "puVar2 = PTR__facet_004c12f8;" (assignment_expression "puVar2 = PTR__facet_004c12f8" identifier = identifier) ;) (expression_statement "*param_1 = PTR_vtable_004c1328 + 8;" (assignment_expression "*param_1 = PTR_vtable_004c1328 + 8" (pointer_expression "*param_1" * identifier) = (binary_expression "PTR_vtable_004c1328 + 8" identifier + number_literal)) ;) (expression_statement "(*(code *)puVar2)(param_1);" (call_expression "(*(code *)puVar2)(param_1)" (parenthesized_expression "(*(code *)puVar2)" ( (pointer_expression "*(code *)puVar2" * (cast_expression "(code *)puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_operator_delete_004c12fc)(param_1);" (call_expression "(*(code *)PTR_operator_delete_004c12fc)(param_1)" (parenthesized_expression "(*(code *)PTR_operator_delete_004c12fc)" ( (pointer_expression "*(code *)PTR_operator_delete_004c12fc" * (cast_expression "(code *)PTR_operator_delete_004c12fc" ( (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)::money_get_shim<char>::~money_get_shim() */\n\nvoid __thiscall\nstd::__facet_shims::(anonymous_namespace)::money_get_shim<char>::~money_get_shim\n          (money_get_shim<char> *this)\n\n{\n  bool bVar1;\n  undefined *puVar2;\n  int iVar3;\n  int *piVar4;\n  \n  piVar4 = *(int **)(this + 8);\n  bVar1 = PTR___pthread_key_create_004c5aa0 == (undefined *)0x0;\n  *(undefined **)this = PTR_uleb128_004affff_1_004c1274 + 0x7620;\n  if (bVar1) {\n    iVar3 = piVar4[1];\n    piVar4[1] = iVar3 + -1;\n  }\n  else {\n    SYNC(0);\n    iVar3 = piVar4[1];\n    piVar4[1] = iVar3 + -1;\n    SYNC(0);\n  }\n  if (iVar3 == 1) {\n    (**(code **)(*piVar4 + 4))();\n  }\n  puVar2 = PTR__facet_004c12f8;\n  *(undefined **)this = PTR_vtable_004c1328 + 8;\n  (*(code *)puVar2)(this);\n  (*(code *)PTR_operator_delete_004c12fc)(this);\n  return;\n}\n\n" comment (function_definition "void __thiscall\nstd::__facet_shims::(anonymous_namespace)::money_get_shim<char>::~money_get_shim\n          (money_get_shim<char> *this)\n\n{\n  bool bVar1;\n  undefined *puVar2;\n  int iVar3;\n  int *piVar4;\n  \n  piVar4 = *(int **)(this + 8);\n  bVar1 = PTR___pthread_key_create_004c5aa0 == (undefined *)0x0;\n  *(undefined **)this = PTR_uleb128_004affff_1_004c1274 + 0x7620;\n  if (bVar1) {\n    iVar3 = piVar4[1];\n    piVar4[1] = iVar3 + -1;\n  }\n  else {\n    SYNC(0);\n    iVar3 = piVar4[1];\n    piVar4[1] = iVar3 + -1;\n    SYNC(0);\n  }\n  if (iVar3 == 1) {\n    (**(code **)(*piVar4 + 4))();\n  }\n  puVar2 = PTR__facet_004c12f8;\n  *(undefined **)this = PTR_vtable_004c1328 + 8;\n  (*(code *)puVar2)(this);\n  (*(code *)PTR_operator_delete_004c12fc)(this);\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::__facet_shims::(anonymous_namespace)::money_get_shim<char>::~" identifier : : identifier : : ( identifier ) : : identifier < primitive_type > : : ~) (function_declarator "money_get_shim\n          (money_get_shim<char> *this)" identifier (parameter_list "(money_get_shim<char> *this)" ( (parameter_declaration "money_get_shim<char> *this" type_identifier (ERROR "<char>" < primitive_type >) (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  bool bVar1;\n  undefined *puVar2;\n  int iVar3;\n  int *piVar4;\n  \n  piVar4 = *(int **)(this + 8);\n  bVar1 = PTR___pthread_key_create_004c5aa0 == (undefined *)0x0;\n  *(undefined **)this = PTR_uleb128_004affff_1_004c1274 + 0x7620;\n  if (bVar1) {\n    iVar3 = piVar4[1];\n    piVar4[1] = iVar3 + -1;\n  }\n  else {\n    SYNC(0);\n    iVar3 = piVar4[1];\n    piVar4[1] = iVar3 + -1;\n    SYNC(0);\n  }\n  if (iVar3 == 1) {\n    (**(code **)(*piVar4 + 4))();\n  }\n  puVar2 = PTR__facet_004c12f8;\n  *(undefined **)this = PTR_vtable_004c1328 + 8;\n  (*(code *)puVar2)(this);\n  (*(code *)PTR_operator_delete_004c12fc)(this);\n  return;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (expression_statement "piVar4 = *(int **)(this + 8);" (assignment_expression "piVar4 = *(int **)(this + 8)" identifier = (pointer_expression "*(int **)(this + 8)" * (cast_expression "(int **)(this + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) ))))) ;) (expression_statement "bVar1 = PTR___pthread_key_create_004c5aa0 == (undefined *)0x0;" (assignment_expression "bVar1 = PTR___pthread_key_create_004c5aa0 == (undefined *)0x0" identifier = (binary_expression "PTR___pthread_key_create_004c5aa0 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ;) (expression_statement "*(undefined **)this = PTR_uleb128_004affff_1_004c1274 + 0x7620;" (assignment_expression "*(undefined **)this = PTR_uleb128_004affff_1_004c1274 + 0x7620" (pointer_expression "*(undefined **)this" * (cast_expression "(undefined **)this" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = (binary_expression "PTR_uleb128_004affff_1_004c1274 + 0x7620" identifier + number_literal)) ;) (if_statement "if (bVar1) {\n    iVar3 = piVar4[1];\n    piVar4[1] = iVar3 + -1;\n  }\n  else {\n    SYNC(0);\n    iVar3 = piVar4[1];\n    piVar4[1] = iVar3 + -1;\n    SYNC(0);\n  }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n    iVar3 = piVar4[1];\n    piVar4[1] = iVar3 + -1;\n  }" { (expression_statement "iVar3 = piVar4[1];" (assignment_expression "iVar3 = piVar4[1]" identifier = (subscript_expression "piVar4[1]" identifier [ number_literal ])) ;) (expression_statement "piVar4[1] = iVar3 + -1;" (assignment_expression "piVar4[1] = iVar3 + -1" (subscript_expression "piVar4[1]" identifier [ number_literal ]) = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n    SYNC(0);\n    iVar3 = piVar4[1];\n    piVar4[1] = iVar3 + -1;\n    SYNC(0);\n  }" else (compound_statement "{\n    SYNC(0);\n    iVar3 = piVar4[1];\n    piVar4[1] = iVar3 + -1;\n    SYNC(0);\n  }" { (expression_statement "SYNC(0);" (call_expression "SYNC(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (expression_statement "iVar3 = piVar4[1];" (assignment_expression "iVar3 = piVar4[1]" identifier = (subscript_expression "piVar4[1]" identifier [ number_literal ])) ;) (expression_statement "piVar4[1] = iVar3 + -1;" (assignment_expression "piVar4[1] = iVar3 + -1" (subscript_expression "piVar4[1]" identifier [ number_literal ]) = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) (expression_statement "SYNC(0);" (call_expression "SYNC(0)" identifier (argument_list "(0)" ( number_literal ))) ;) }))) (if_statement "if (iVar3 == 1) {\n    (**(code **)(*piVar4 + 4))();\n  }" if (parenthesized_expression "(iVar3 == 1)" ( (binary_expression "iVar3 == 1" identifier == number_literal) )) (compound_statement "{\n    (**(code **)(*piVar4 + 4))();\n  }" { (expression_statement "(**(code **)(*piVar4 + 4))();" (call_expression "(**(code **)(*piVar4 + 4))()" (parenthesized_expression "(**(code **)(*piVar4 + 4))" ( (pointer_expression "**(code **)(*piVar4 + 4)" * (pointer_expression "*(code **)(*piVar4 + 4)" * (cast_expression "(code **)(*piVar4 + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar4 + 4)" ( (binary_expression "*piVar4 + 4" (pointer_expression "*piVar4" * identifier) + number_literal) ))))) )) (argument_list "()" ( ))) ;) })) (expression_statement "puVar2 = PTR__facet_004c12f8;" (assignment_expression "puVar2 = PTR__facet_004c12f8" identifier = identifier) ;) (expression_statement "*(undefined **)this = PTR_vtable_004c1328 + 8;" (assignment_expression "*(undefined **)this = PTR_vtable_004c1328 + 8" (pointer_expression "*(undefined **)this" * (cast_expression "(undefined **)this" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = (binary_expression "PTR_vtable_004c1328 + 8" identifier + number_literal)) ;) (expression_statement "(*(code *)puVar2)(this);" (call_expression "(*(code *)puVar2)(this)" (parenthesized_expression "(*(code *)puVar2)" ( (pointer_expression "*(code *)puVar2" * (cast_expression "(code *)puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(this)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_operator_delete_004c12fc)(this);" (call_expression "(*(code *)PTR_operator_delete_004c12fc)(this)" (parenthesized_expression "(*(code *)PTR_operator_delete_004c12fc)" ( (pointer_expression "*(code *)PTR_operator_delete_004c12fc" * (cast_expression "(code *)PTR_operator_delete_004c12fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(this)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00383840(undefined4 *param_1)\n\n{\n  bool bVar1;\n  undefined *puVar2;\n  int iVar3;\n  int *piVar4;\n  \n  piVar4 = (int *)param_1[2];\n  bVar1 = PTR___pthread_key_create_004c5aa0 == (undefined *)0x0;\n  *param_1 = PTR_uleb128_004affff_1_004c1274 + 0x7620;\n  if (bVar1) {\n    iVar3 = piVar4[1];\n    piVar4[1] = iVar3 + -1;\n  }\n  else {\n    SYNC(0);\n    iVar3 = piVar4[1];\n    piVar4[1] = iVar3 + -1;\n    SYNC(0);\n  }\n  if (iVar3 == 1) {\n    (**(code **)(*piVar4 + 4))();\n  }\n  puVar2 = PTR__facet_004c12f8;\n  *param_1 = PTR_vtable_004c1328 + 8;\n  (*(code *)puVar2)(param_1);\n  (*(code *)PTR_operator_delete_004c12fc)(param_1);\n  return;\n}\n\n" (function_definition "void FUN_00383840(undefined4 *param_1)\n\n{\n  bool bVar1;\n  undefined *puVar2;\n  int iVar3;\n  int *piVar4;\n  \n  piVar4 = (int *)param_1[2];\n  bVar1 = PTR___pthread_key_create_004c5aa0 == (undefined *)0x0;\n  *param_1 = PTR_uleb128_004affff_1_004c1274 + 0x7620;\n  if (bVar1) {\n    iVar3 = piVar4[1];\n    piVar4[1] = iVar3 + -1;\n  }\n  else {\n    SYNC(0);\n    iVar3 = piVar4[1];\n    piVar4[1] = iVar3 + -1;\n    SYNC(0);\n  }\n  if (iVar3 == 1) {\n    (**(code **)(*piVar4 + 4))();\n  }\n  puVar2 = PTR__facet_004c12f8;\n  *param_1 = PTR_vtable_004c1328 + 8;\n  (*(code *)puVar2)(param_1);\n  (*(code *)PTR_operator_delete_004c12fc)(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_00383840(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  bool bVar1;\n  undefined *puVar2;\n  int iVar3;\n  int *piVar4;\n  \n  piVar4 = (int *)param_1[2];\n  bVar1 = PTR___pthread_key_create_004c5aa0 == (undefined *)0x0;\n  *param_1 = PTR_uleb128_004affff_1_004c1274 + 0x7620;\n  if (bVar1) {\n    iVar3 = piVar4[1];\n    piVar4[1] = iVar3 + -1;\n  }\n  else {\n    SYNC(0);\n    iVar3 = piVar4[1];\n    piVar4[1] = iVar3 + -1;\n    SYNC(0);\n  }\n  if (iVar3 == 1) {\n    (**(code **)(*piVar4 + 4))();\n  }\n  puVar2 = PTR__facet_004c12f8;\n  *param_1 = PTR_vtable_004c1328 + 8;\n  (*(code *)puVar2)(param_1);\n  (*(code *)PTR_operator_delete_004c12fc)(param_1);\n  return;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (expression_statement "piVar4 = (int *)param_1[2];" (assignment_expression "piVar4 = (int *)param_1[2]" identifier = (cast_expression "(int *)param_1[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) (expression_statement "bVar1 = PTR___pthread_key_create_004c5aa0 == (undefined *)0x0;" (assignment_expression "bVar1 = PTR___pthread_key_create_004c5aa0 == (undefined *)0x0" identifier = (binary_expression "PTR___pthread_key_create_004c5aa0 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ;) (expression_statement "*param_1 = PTR_uleb128_004affff_1_004c1274 + 0x7620;" (assignment_expression "*param_1 = PTR_uleb128_004affff_1_004c1274 + 0x7620" (pointer_expression "*param_1" * identifier) = (binary_expression "PTR_uleb128_004affff_1_004c1274 + 0x7620" identifier + number_literal)) ;) (if_statement "if (bVar1) {\n    iVar3 = piVar4[1];\n    piVar4[1] = iVar3 + -1;\n  }\n  else {\n    SYNC(0);\n    iVar3 = piVar4[1];\n    piVar4[1] = iVar3 + -1;\n    SYNC(0);\n  }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n    iVar3 = piVar4[1];\n    piVar4[1] = iVar3 + -1;\n  }" { (expression_statement "iVar3 = piVar4[1];" (assignment_expression "iVar3 = piVar4[1]" identifier = (subscript_expression "piVar4[1]" identifier [ number_literal ])) ;) (expression_statement "piVar4[1] = iVar3 + -1;" (assignment_expression "piVar4[1] = iVar3 + -1" (subscript_expression "piVar4[1]" identifier [ number_literal ]) = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n    SYNC(0);\n    iVar3 = piVar4[1];\n    piVar4[1] = iVar3 + -1;\n    SYNC(0);\n  }" else (compound_statement "{\n    SYNC(0);\n    iVar3 = piVar4[1];\n    piVar4[1] = iVar3 + -1;\n    SYNC(0);\n  }" { (expression_statement "SYNC(0);" (call_expression "SYNC(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (expression_statement "iVar3 = piVar4[1];" (assignment_expression "iVar3 = piVar4[1]" identifier = (subscript_expression "piVar4[1]" identifier [ number_literal ])) ;) (expression_statement "piVar4[1] = iVar3 + -1;" (assignment_expression "piVar4[1] = iVar3 + -1" (subscript_expression "piVar4[1]" identifier [ number_literal ]) = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) (expression_statement "SYNC(0);" (call_expression "SYNC(0)" identifier (argument_list "(0)" ( number_literal ))) ;) }))) (if_statement "if (iVar3 == 1) {\n    (**(code **)(*piVar4 + 4))();\n  }" if (parenthesized_expression "(iVar3 == 1)" ( (binary_expression "iVar3 == 1" identifier == number_literal) )) (compound_statement "{\n    (**(code **)(*piVar4 + 4))();\n  }" { (expression_statement "(**(code **)(*piVar4 + 4))();" (call_expression "(**(code **)(*piVar4 + 4))()" (parenthesized_expression "(**(code **)(*piVar4 + 4))" ( (pointer_expression "**(code **)(*piVar4 + 4)" * (pointer_expression "*(code **)(*piVar4 + 4)" * (cast_expression "(code **)(*piVar4 + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar4 + 4)" ( (binary_expression "*piVar4 + 4" (pointer_expression "*piVar4" * identifier) + number_literal) ))))) )) (argument_list "()" ( ))) ;) })) (expression_statement "puVar2 = PTR__facet_004c12f8;" (assignment_expression "puVar2 = PTR__facet_004c12f8" identifier = identifier) ;) (expression_statement "*param_1 = PTR_vtable_004c1328 + 8;" (assignment_expression "*param_1 = PTR_vtable_004c1328 + 8" (pointer_expression "*param_1" * identifier) = (binary_expression "PTR_vtable_004c1328 + 8" identifier + number_literal)) ;) (expression_statement "(*(code *)puVar2)(param_1);" (call_expression "(*(code *)puVar2)(param_1)" (parenthesized_expression "(*(code *)puVar2)" ( (pointer_expression "*(code *)puVar2" * (cast_expression "(code *)puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_operator_delete_004c12fc)(param_1);" (call_expression "(*(code *)PTR_operator_delete_004c12fc)(param_1)" (parenthesized_expression "(*(code *)PTR_operator_delete_004c12fc)" ( (pointer_expression "*(code *)PTR_operator_delete_004c12fc" * (cast_expression "(code *)PTR_operator_delete_004c12fc" ( (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 (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( IDENT )) (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 ( ))) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) 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_00383840(undefined4 *param_1)\n\n{\n  bool bVar1;\n  undefined *puVar2;\n  int iVar3;\n  int *piVar4;\n  \n  piVar4 = (int *)param_1[2];\n  bVar1 = PTR___pthread_key_create_004c5aa0 == (undefined *)0x0;\n  *param_1 = PTR_uleb128_004affff_1_004c1274 + 0x7620;\n  if (bVar1) {\n    iVar3 = piVar4[1];\n    piVar4[1] = iVar3 + -1;\n  }\n  else {\n    SYNC(0);\n    iVar3 = piVar4[1];\n    piVar4[1] = iVar3 + -1;\n    SYNC(0);\n  }\n  if (iVar3 == 1) {\n    (**(code **)(*piVar4 + 4))();\n  }\n  puVar2 = PTR__facet_004c12f8;\n  *param_1 = PTR_vtable_004c1328 + 8;\n  (*(code *)puVar2)(param_1);\n  (*(code *)PTR_operator_delete_004c12fc)(param_1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00383840(undefined4 *param_1)" (identifier "FUN_00383840") (parameter_list "(undefined4 *param_1)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  bool bVar1;\n  undefined *puVar2;\n  int iVar3;\n  int *piVar4;\n  \n  piVar4 = (int *)param_1[2];\n  bVar1 = PTR___pthread_key_create_004c5aa0 == (undefined *)0x0;\n  *param_1 = PTR_uleb128_004affff_1_004c1274 + 0x7620;\n  if (bVar1) {\n    iVar3 = piVar4[1];\n    piVar4[1] = iVar3 + -1;\n  }\n  else {\n    SYNC(0);\n    iVar3 = piVar4[1];\n    piVar4[1] = iVar3 + -1;\n    SYNC(0);\n  }\n  if (iVar3 == 1) {\n    (**(code **)(*piVar4 + 4))();\n  }\n  puVar2 = PTR__facet_004c12f8;\n  *param_1 = PTR_vtable_004c1328 + 8;\n  (*(code *)puVar2)(param_1);\n  (*(code *)PTR_operator_delete_004c12fc)(param_1);\n  return;\n}" ({ "{") (declaration "bool bVar1;" (primitive_type "bool") (identifier "bVar1") (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (expression_statement "piVar4 = (int *)param_1[2];" (assignment_expression "piVar4 = (int *)param_1[2]" (identifier "piVar4") (= "=") (cast_expression "(int *)param_1[2]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (expression_statement "bVar1 = PTR___pthread_key_create_004c5aa0 == (undefined *)0x0;" (assignment_expression "bVar1 = PTR___pthread_key_create_004c5aa0 == (undefined *)0x0" (identifier "bVar1") (= "=") (binary_expression "PTR___pthread_key_create_004c5aa0 == (undefined *)0x0" (identifier "PTR___pthread_key_create_004c5aa0") (== "==") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) (; ";")) (expression_statement "*param_1 = PTR_uleb128_004affff_1_004c1274 + 0x7620;" (assignment_expression "*param_1 = PTR_uleb128_004affff_1_004c1274 + 0x7620" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (binary_expression "PTR_uleb128_004affff_1_004c1274 + 0x7620" (identifier "PTR_uleb128_004affff_1_004c1274") (+ "+") (number_literal "0x7620"))) (; ";")) (if_statement "if (bVar1) {\n    iVar3 = piVar4[1];\n    piVar4[1] = iVar3 + -1;\n  }\n  else {\n    SYNC(0);\n    iVar3 = piVar4[1];\n    piVar4[1] = iVar3 + -1;\n    SYNC(0);\n  }" (if "if") (parenthesized_expression "(bVar1)" (( "(") (identifier "bVar1") () ")")) (compound_statement "{\n    iVar3 = piVar4[1];\n    piVar4[1] = iVar3 + -1;\n  }" ({ "{") (expression_statement "iVar3 = piVar4[1];" (assignment_expression "iVar3 = piVar4[1]" (identifier "iVar3") (= "=") (subscript_expression "piVar4[1]" (identifier "piVar4") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "piVar4[1] = iVar3 + -1;" (assignment_expression "piVar4[1] = iVar3 + -1" (subscript_expression "piVar4[1]" (identifier "piVar4") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "iVar3 + -1" (identifier "iVar3") (+ "+") (number_literal "-1"))) (; ";")) (} "}")) (else_clause "else {\n    SYNC(0);\n    iVar3 = piVar4[1];\n    piVar4[1] = iVar3 + -1;\n    SYNC(0);\n  }" (else "else") (compound_statement "{\n    SYNC(0);\n    iVar3 = piVar4[1];\n    piVar4[1] = iVar3 + -1;\n    SYNC(0);\n  }" ({ "{") (expression_statement "SYNC(0);" (call_expression "SYNC(0)" (identifier "SYNC") (argument_list "(0)" (( "(") (number_literal "0") () ")"))) (; ";")) (expression_statement "iVar3 = piVar4[1];" (assignment_expression "iVar3 = piVar4[1]" (identifier "iVar3") (= "=") (subscript_expression "piVar4[1]" (identifier "piVar4") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "piVar4[1] = iVar3 + -1;" (assignment_expression "piVar4[1] = iVar3 + -1" (subscript_expression "piVar4[1]" (identifier "piVar4") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "iVar3 + -1" (identifier "iVar3") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "SYNC(0);" (call_expression "SYNC(0)" (identifier "SYNC") (argument_list "(0)" (( "(") (number_literal "0") () ")"))) (; ";")) (} "}")))) (if_statement "if (iVar3 == 1) {\n    (**(code **)(*piVar4 + 4))();\n  }" (if "if") (parenthesized_expression "(iVar3 == 1)" (( "(") (binary_expression "iVar3 == 1" (identifier "iVar3") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n    (**(code **)(*piVar4 + 4))();\n  }" ({ "{") (expression_statement "(**(code **)(*piVar4 + 4))();" (call_expression "(**(code **)(*piVar4 + 4))()" (parenthesized_expression "(**(code **)(*piVar4 + 4))" (( "(") (pointer_expression "**(code **)(*piVar4 + 4)" (* "*") (pointer_expression "*(code **)(*piVar4 + 4)" (* "*") (cast_expression "(code **)(*piVar4 + 4)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar4 + 4)" (( "(") (binary_expression "*piVar4 + 4" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (+ "+") (number_literal "4")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "puVar2 = PTR__facet_004c12f8;" (assignment_expression "puVar2 = PTR__facet_004c12f8" (identifier "puVar2") (= "=") (identifier "PTR__facet_004c12f8")) (; ";")) (expression_statement "*param_1 = PTR_vtable_004c1328 + 8;" (assignment_expression "*param_1 = PTR_vtable_004c1328 + 8" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (binary_expression "PTR_vtable_004c1328 + 8" (identifier "PTR_vtable_004c1328") (+ "+") (number_literal "8"))) (; ";")) (expression_statement "(*(code *)puVar2)(param_1);" (call_expression "(*(code *)puVar2)(param_1)" (parenthesized_expression "(*(code *)puVar2)" (( "(") (pointer_expression "*(code *)puVar2" (* "*") (cast_expression "(code *)puVar2" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar2"))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_operator_delete_004c12fc)(param_1);" (call_expression "(*(code *)PTR_operator_delete_004c12fc)(param_1)" (parenthesized_expression "(*(code *)PTR_operator_delete_004c12fc)" (( "(") (pointer_expression "*(code *)PTR_operator_delete_004c12fc" (* "*") (cast_expression "(code *)PTR_operator_delete_004c12fc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_operator_delete_004c12fc"))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* std::__facet_shims::(anonymous namespace)::money_get_shim<char>::~money_get_shim() */

void __thiscall
std::__facet_shims::(anonymous_namespace)::function_1<char>::~function_1
          (function_1<char> *var_1)

{
  bool bVar1;
  type_1 *puVar2;
  int var_4;
  int *piVar4;
  
  piVar4 = *(int **)(var_1 + 8);
  bVar1 = var_2 == (type_1 *)0x0;
  *(type_1 **)var_1 = var_3 + 0x7620;
  if (bVar1) {
    var_4 = piVar4[1];
    piVar4[1] = var_4 + -1;
  }
  else {
    var_5(0);
    var_4 = piVar4[1];
    piVar4[1] = var_4 + -1;
    var_5(0);
  }
  if (var_4 == 1) {
    (**(type_2 **)(*piVar4 + 4))();
  }
  puVar2 = PTR__facet_004c12f8;
  *(type_1 **)var_1 = var_6 + 8;
  (*(type_2 *)puVar2)(var_1);
  (*(type_2 *)PTR_operator_delete_004c12fc)(var_1);
  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 (declaration type: (primitive_type) declarator: (identifier)) (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: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (identifier)) 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))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (number_literal)))) (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)))) (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(undefined4 *param_1)

{
  bool bVar1;
  undefined *puVar2;
  int iVar3;
  int *piVar4;
  
  piVar4 = (int *)param_1[2];
  bVar1 = PTR___pthread_key_create_004c5aa0 == (undefined *)0x0;
  *param_1 = PTR_uleb128_004affff_1_004c1274 + 0x7620;
  if (bVar1) {
    iVar3 = piVar4[1];
    piVar4[1] = iVar3 + -1;
  }
  else {
    SYNC(0);
    iVar3 = piVar4[1];
    piVar4[1] = iVar3 + -1;
    SYNC(0);
  }
  if (iVar3 == 1) {
    (**(code **)(*piVar4 + 4))();
  }
  puVar2 = PTR__facet_004c12f8;
  *param_1 = PTR_vtable_004c1328 + 8;
  (*(code *)puVar2)(param_1);
  (*(code *)PTR_operator_delete_004c12fc)(param_1);
  return;
}

