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

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

{
  long *plVar1;
  long *plVar2;
  int iVar3;
  bool bVar4;
  
  bVar4 = PTR___pthread_key_create_003bdee8 == (undefined *)0x0;
  *(undefined ***)this = &PTR__money_put_shim_003b0b60;
  plVar2 = *(long **)(this + 0x10);
  if (bVar4) {
    iVar3 = (int)plVar2[1];
    *(int *)(plVar2 + 1) = iVar3 + -1;
  }
  else {
    LOCK();
    plVar1 = plVar2 + 1;
    iVar3 = (int)*plVar1;
    *(int *)plVar1 = (int)*plVar1 + -1;
    UNLOCK();
  }
  if (iVar3 == 1) {
    (**(code **)(*plVar2 + 8))();
  }
  *(undefined ***)this = &PTR__money_put_003bd110;
  locale::facet::~facet((facet *)this);
  return;
}



void FUN_002ad380(undefined8 *param_1)

{
  long *plVar1;
  long *plVar2;
  int iVar3;
  bool bVar4;
  
  bVar4 = PTR___pthread_key_create_003bdee8 == (undefined *)0x0;
  *param_1 = &PTR_FUN_003b0b60;
  plVar2 = (long *)param_1[2];
  if (bVar4) {
    iVar3 = (int)plVar2[1];
    *(int *)(plVar2 + 1) = iVar3 + -1;
  }
  else {
    LOCK();
    plVar1 = plVar2 + 1;
    iVar3 = (int)*plVar1;
    *(int *)plVar1 = (int)*plVar1 + -1;
    UNLOCK();
  }
  if (iVar3 == 1) {
    (**(code **)(*plVar2 + 8))();
  }
  *param_1 = &PTR_FUN_003bd110;
  FUN_00278a50(param_1);
  return;
}


LEA RAX,[0x3b0b60]
CMP qword ptr [0x003bdee8],0x0
PUSH RBX
MOV RBX,RDI
MOV qword ptr [RDI],RAX
MOV RDI,qword ptr [RDI + 0x10]
JZ 0x002ad3d0
MOV EAX,0xffffffff
XADD.LOCK dword ptr [RDI + 0x8],EAX
CMP EAX,0x1
JNZ 0x002ad3b1
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x8]
LEA RAX,[0x3bd100]
MOV RDI,RBX
ADD RAX,0x10
MOV qword ptr [RBX],RAX
POP RBX
JMP 0x00278a50
MOV EAX,dword ptr [RDI + 0x8]
LEA EDX,[RAX + -0x1]
MOV dword ptr [RDI + 0x8],EDX
JMP 0x002ad3a6
(translation_unit "void FUN_002ad380(undefined8 *param_1)\n\n{\n  long *plVar1;\n  long *plVar2;\n  int iVar3;\n  bool bVar4;\n  \n  bVar4 = PTR___pthread_key_create_003bdee8 == (undefined *)0x0;\n  *param_1 = &PTR_FUN_003b0b60;\n  plVar2 = (long *)param_1[2];\n  if (bVar4) {\n    iVar3 = (int)plVar2[1];\n    *(int *)(plVar2 + 1) = iVar3 + -1;\n  }\n  else {\n    LOCK();\n    plVar1 = plVar2 + 1;\n    iVar3 = (int)*plVar1;\n    *(int *)plVar1 = (int)*plVar1 + -1;\n    UNLOCK();\n  }\n  if (iVar3 == 1) {\n    (**(code **)(*plVar2 + 8))();\n  }\n  *param_1 = &PTR_FUN_003bd110;\n  FUN_00278a50(param_1);\n  return;\n}\n\n" (function_definition "void FUN_002ad380(undefined8 *param_1)\n\n{\n  long *plVar1;\n  long *plVar2;\n  int iVar3;\n  bool bVar4;\n  \n  bVar4 = PTR___pthread_key_create_003bdee8 == (undefined *)0x0;\n  *param_1 = &PTR_FUN_003b0b60;\n  plVar2 = (long *)param_1[2];\n  if (bVar4) {\n    iVar3 = (int)plVar2[1];\n    *(int *)(plVar2 + 1) = iVar3 + -1;\n  }\n  else {\n    LOCK();\n    plVar1 = plVar2 + 1;\n    iVar3 = (int)*plVar1;\n    *(int *)plVar1 = (int)*plVar1 + -1;\n    UNLOCK();\n  }\n  if (iVar3 == 1) {\n    (**(code **)(*plVar2 + 8))();\n  }\n  *param_1 = &PTR_FUN_003bd110;\n  FUN_00278a50(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_002ad380(undefined8 *param_1)" identifier (parameter_list "(undefined8 *param_1)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  long *plVar1;\n  long *plVar2;\n  int iVar3;\n  bool bVar4;\n  \n  bVar4 = PTR___pthread_key_create_003bdee8 == (undefined *)0x0;\n  *param_1 = &PTR_FUN_003b0b60;\n  plVar2 = (long *)param_1[2];\n  if (bVar4) {\n    iVar3 = (int)plVar2[1];\n    *(int *)(plVar2 + 1) = iVar3 + -1;\n  }\n  else {\n    LOCK();\n    plVar1 = plVar2 + 1;\n    iVar3 = (int)*plVar1;\n    *(int *)plVar1 = (int)*plVar1 + -1;\n    UNLOCK();\n  }\n  if (iVar3 == 1) {\n    (**(code **)(*plVar2 + 8))();\n  }\n  *param_1 = &PTR_FUN_003bd110;\n  FUN_00278a50(param_1);\n  return;\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "long *plVar2;" (sized_type_specifier "long" long) (pointer_declarator "*plVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "bool bVar4;" primitive_type identifier ;) (expression_statement "bVar4 = PTR___pthread_key_create_003bdee8 == (undefined *)0x0;" (assignment_expression "bVar4 = PTR___pthread_key_create_003bdee8 == (undefined *)0x0" identifier = (binary_expression "PTR___pthread_key_create_003bdee8 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ;) (expression_statement "*param_1 = &PTR_FUN_003b0b60;" (assignment_expression "*param_1 = &PTR_FUN_003b0b60" (pointer_expression "*param_1" * identifier) = (pointer_expression "&PTR_FUN_003b0b60" & identifier)) ;) (expression_statement "plVar2 = (long *)param_1[2];" (assignment_expression "plVar2 = (long *)param_1[2]" identifier = (cast_expression "(long *)param_1[2]" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) (if_statement "if (bVar4) {\n    iVar3 = (int)plVar2[1];\n    *(int *)(plVar2 + 1) = iVar3 + -1;\n  }\n  else {\n    LOCK();\n    plVar1 = plVar2 + 1;\n    iVar3 = (int)*plVar1;\n    *(int *)plVar1 = (int)*plVar1 + -1;\n    UNLOCK();\n  }" if (parenthesized_expression "(bVar4)" ( identifier )) (compound_statement "{\n    iVar3 = (int)plVar2[1];\n    *(int *)(plVar2 + 1) = iVar3 + -1;\n  }" { (expression_statement "iVar3 = (int)plVar2[1];" (assignment_expression "iVar3 = (int)plVar2[1]" identifier = (cast_expression "(int)plVar2[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "plVar2[1]" identifier [ number_literal ]))) ;) (expression_statement "*(int *)(plVar2 + 1) = iVar3 + -1;" (assignment_expression "*(int *)(plVar2 + 1) = iVar3 + -1" (pointer_expression "*(int *)(plVar2 + 1)" * (cast_expression "(int *)(plVar2 + 1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar2 + 1)" ( (binary_expression "plVar2 + 1" identifier + number_literal) )))) = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n    LOCK();\n    plVar1 = plVar2 + 1;\n    iVar3 = (int)*plVar1;\n    *(int *)plVar1 = (int)*plVar1 + -1;\n    UNLOCK();\n  }" else (compound_statement "{\n    LOCK();\n    plVar1 = plVar2 + 1;\n    iVar3 = (int)*plVar1;\n    *(int *)plVar1 = (int)*plVar1 + -1;\n    UNLOCK();\n  }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "plVar1 = plVar2 + 1;" (assignment_expression "plVar1 = plVar2 + 1" identifier = (binary_expression "plVar2 + 1" identifier + number_literal)) ;) (expression_statement "iVar3 = (int)*plVar1;" (assignment_expression "iVar3 = (int)*plVar1" identifier = (cast_expression "(int)*plVar1" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*plVar1" * identifier))) ;) (expression_statement "*(int *)plVar1 = (int)*plVar1 + -1;" (assignment_expression "*(int *)plVar1 = (int)*plVar1 + -1" (pointer_expression "*(int *)plVar1" * (cast_expression "(int *)plVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "(int)*plVar1 + -1" (cast_expression "(int)*plVar1" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*plVar1" * identifier)) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }))) (if_statement "if (iVar3 == 1) {\n    (**(code **)(*plVar2 + 8))();\n  }" if (parenthesized_expression "(iVar3 == 1)" ( (binary_expression "iVar3 == 1" identifier == number_literal) )) (compound_statement "{\n    (**(code **)(*plVar2 + 8))();\n  }" { (expression_statement "(**(code **)(*plVar2 + 8))();" (call_expression "(**(code **)(*plVar2 + 8))()" (parenthesized_expression "(**(code **)(*plVar2 + 8))" ( (pointer_expression "**(code **)(*plVar2 + 8)" * (pointer_expression "*(code **)(*plVar2 + 8)" * (cast_expression "(code **)(*plVar2 + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar2 + 8)" ( (binary_expression "*plVar2 + 8" (pointer_expression "*plVar2" * identifier) + number_literal) ))))) )) (argument_list "()" ( ))) ;) })) (expression_statement "*param_1 = &PTR_FUN_003bd110;" (assignment_expression "*param_1 = &PTR_FUN_003bd110" (pointer_expression "*param_1" * identifier) = (pointer_expression "&PTR_FUN_003bd110" & identifier)) ;) (expression_statement "FUN_00278a50(param_1);" (call_expression "FUN_00278a50(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* std::__facet_shims::(anonymous namespace)::money_put_shim<char>::~money_put_shim() */\n\nvoid __thiscall\nstd::__facet_shims::(anonymous_namespace)::money_put_shim<char>::~money_put_shim\n          (money_put_shim<char> *this)\n\n{\n  long *plVar1;\n  long *plVar2;\n  int iVar3;\n  bool bVar4;\n  \n  bVar4 = PTR___pthread_key_create_003bdee8 == (undefined *)0x0;\n  *(undefined ***)this = &PTR__money_put_shim_003b0b60;\n  plVar2 = *(long **)(this + 0x10);\n  if (bVar4) {\n    iVar3 = (int)plVar2[1];\n    *(int *)(plVar2 + 1) = iVar3 + -1;\n  }\n  else {\n    LOCK();\n    plVar1 = plVar2 + 1;\n    iVar3 = (int)*plVar1;\n    *(int *)plVar1 = (int)*plVar1 + -1;\n    UNLOCK();\n  }\n  if (iVar3 == 1) {\n    (**(code **)(*plVar2 + 8))();\n  }\n  *(undefined ***)this = &PTR__money_put_003bd110;\n  locale::facet::~facet((facet *)this);\n  return;\n}\n\n" comment (function_definition "void __thiscall\nstd::__facet_shims::(anonymous_namespace)::money_put_shim<char>::~money_put_shim\n          (money_put_shim<char> *this)\n\n{\n  long *plVar1;\n  long *plVar2;\n  int iVar3;\n  bool bVar4;\n  \n  bVar4 = PTR___pthread_key_create_003bdee8 == (undefined *)0x0;\n  *(undefined ***)this = &PTR__money_put_shim_003b0b60;\n  plVar2 = *(long **)(this + 0x10);\n  if (bVar4) {\n    iVar3 = (int)plVar2[1];\n    *(int *)(plVar2 + 1) = iVar3 + -1;\n  }\n  else {\n    LOCK();\n    plVar1 = plVar2 + 1;\n    iVar3 = (int)*plVar1;\n    *(int *)plVar1 = (int)*plVar1 + -1;\n    UNLOCK();\n  }\n  if (iVar3 == 1) {\n    (**(code **)(*plVar2 + 8))();\n  }\n  *(undefined ***)this = &PTR__money_put_003bd110;\n  locale::facet::~facet((facet *)this);\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::__facet_shims::(anonymous_namespace)::money_put_shim<char>::~" identifier : : identifier : : ( identifier ) : : identifier < primitive_type > : : ~) (function_declarator "money_put_shim\n          (money_put_shim<char> *this)" identifier (parameter_list "(money_put_shim<char> *this)" ( (parameter_declaration "money_put_shim<char> *this" type_identifier (ERROR "<char>" < primitive_type >) (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  long *plVar1;\n  long *plVar2;\n  int iVar3;\n  bool bVar4;\n  \n  bVar4 = PTR___pthread_key_create_003bdee8 == (undefined *)0x0;\n  *(undefined ***)this = &PTR__money_put_shim_003b0b60;\n  plVar2 = *(long **)(this + 0x10);\n  if (bVar4) {\n    iVar3 = (int)plVar2[1];\n    *(int *)(plVar2 + 1) = iVar3 + -1;\n  }\n  else {\n    LOCK();\n    plVar1 = plVar2 + 1;\n    iVar3 = (int)*plVar1;\n    *(int *)plVar1 = (int)*plVar1 + -1;\n    UNLOCK();\n  }\n  if (iVar3 == 1) {\n    (**(code **)(*plVar2 + 8))();\n  }\n  *(undefined ***)this = &PTR__money_put_003bd110;\n  locale::facet::~facet((facet *)this);\n  return;\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "long *plVar2;" (sized_type_specifier "long" long) (pointer_declarator "*plVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "bool bVar4;" primitive_type identifier ;) (expression_statement "bVar4 = PTR___pthread_key_create_003bdee8 == (undefined *)0x0;" (assignment_expression "bVar4 = PTR___pthread_key_create_003bdee8 == (undefined *)0x0" identifier = (binary_expression "PTR___pthread_key_create_003bdee8 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ;) (expression_statement "*(undefined ***)this = &PTR__money_put_shim_003b0b60;" (assignment_expression "*(undefined ***)this = &PTR__money_put_shim_003b0b60" (pointer_expression "*(undefined ***)this" * (cast_expression "(undefined ***)this" ( (type_descriptor "undefined ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) identifier)) = (pointer_expression "&PTR__money_put_shim_003b0b60" & identifier)) ;) (expression_statement "plVar2 = *(long **)(this + 0x10);" (assignment_expression "plVar2 = *(long **)(this + 0x10)" identifier = (pointer_expression "*(long **)(this + 0x10)" * (cast_expression "(long **)(this + 0x10)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) ))))) ;) (if_statement "if (bVar4) {\n    iVar3 = (int)plVar2[1];\n    *(int *)(plVar2 + 1) = iVar3 + -1;\n  }\n  else {\n    LOCK();\n    plVar1 = plVar2 + 1;\n    iVar3 = (int)*plVar1;\n    *(int *)plVar1 = (int)*plVar1 + -1;\n    UNLOCK();\n  }" if (parenthesized_expression "(bVar4)" ( identifier )) (compound_statement "{\n    iVar3 = (int)plVar2[1];\n    *(int *)(plVar2 + 1) = iVar3 + -1;\n  }" { (expression_statement "iVar3 = (int)plVar2[1];" (assignment_expression "iVar3 = (int)plVar2[1]" identifier = (cast_expression "(int)plVar2[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "plVar2[1]" identifier [ number_literal ]))) ;) (expression_statement "*(int *)(plVar2 + 1) = iVar3 + -1;" (assignment_expression "*(int *)(plVar2 + 1) = iVar3 + -1" (pointer_expression "*(int *)(plVar2 + 1)" * (cast_expression "(int *)(plVar2 + 1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar2 + 1)" ( (binary_expression "plVar2 + 1" identifier + number_literal) )))) = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n    LOCK();\n    plVar1 = plVar2 + 1;\n    iVar3 = (int)*plVar1;\n    *(int *)plVar1 = (int)*plVar1 + -1;\n    UNLOCK();\n  }" else (compound_statement "{\n    LOCK();\n    plVar1 = plVar2 + 1;\n    iVar3 = (int)*plVar1;\n    *(int *)plVar1 = (int)*plVar1 + -1;\n    UNLOCK();\n  }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "plVar1 = plVar2 + 1;" (assignment_expression "plVar1 = plVar2 + 1" identifier = (binary_expression "plVar2 + 1" identifier + number_literal)) ;) (expression_statement "iVar3 = (int)*plVar1;" (assignment_expression "iVar3 = (int)*plVar1" identifier = (cast_expression "(int)*plVar1" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*plVar1" * identifier))) ;) (expression_statement "*(int *)plVar1 = (int)*plVar1 + -1;" (assignment_expression "*(int *)plVar1 = (int)*plVar1 + -1" (pointer_expression "*(int *)plVar1" * (cast_expression "(int *)plVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "(int)*plVar1 + -1" (cast_expression "(int)*plVar1" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*plVar1" * identifier)) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }))) (if_statement "if (iVar3 == 1) {\n    (**(code **)(*plVar2 + 8))();\n  }" if (parenthesized_expression "(iVar3 == 1)" ( (binary_expression "iVar3 == 1" identifier == number_literal) )) (compound_statement "{\n    (**(code **)(*plVar2 + 8))();\n  }" { (expression_statement "(**(code **)(*plVar2 + 8))();" (call_expression "(**(code **)(*plVar2 + 8))()" (parenthesized_expression "(**(code **)(*plVar2 + 8))" ( (pointer_expression "**(code **)(*plVar2 + 8)" * (pointer_expression "*(code **)(*plVar2 + 8)" * (cast_expression "(code **)(*plVar2 + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar2 + 8)" ( (binary_expression "*plVar2 + 8" (pointer_expression "*plVar2" * identifier) + number_literal) ))))) )) (argument_list "()" ( ))) ;) })) (expression_statement "*(undefined ***)this = &PTR__money_put_003bd110;" (assignment_expression "*(undefined ***)this = &PTR__money_put_003bd110" (pointer_expression "*(undefined ***)this" * (cast_expression "(undefined ***)this" ( (type_descriptor "undefined ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) identifier)) = (pointer_expression "&PTR__money_put_003bd110" & identifier)) ;) (labeled_statement "locale::facet::~facet((facet *)this);" statement_identifier : (ERROR ":" :) (labeled_statement "facet::~facet((facet *)this);" statement_identifier : (ERROR ":" :) (expression_statement "~facet((facet *)this);" (unary_expression "~facet((facet *)this)" ~ (call_expression "facet((facet *)this)" identifier (argument_list "((facet *)this)" ( (cast_expression "(facet *)this" ( (type_descriptor "facet *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;))) (return_statement "return;" return ;) })))
(translation_unit "void FUN_002ad380(undefined8 *param_1)\n\n{\n  long *plVar1;\n  long *plVar2;\n  int iVar3;\n  bool bVar4;\n  \n  bVar4 = PTR___pthread_key_create_003bdee8 == (undefined *)0x0;\n  *param_1 = &PTR_FUN_003b0b60;\n  plVar2 = (long *)param_1[2];\n  if (bVar4) {\n    iVar3 = (int)plVar2[1];\n    *(int *)(plVar2 + 1) = iVar3 + -1;\n  }\n  else {\n    LOCK();\n    plVar1 = plVar2 + 1;\n    iVar3 = (int)*plVar1;\n    *(int *)plVar1 = (int)*plVar1 + -1;\n    UNLOCK();\n  }\n  if (iVar3 == 1) {\n    (**(code **)(*plVar2 + 8))();\n  }\n  *param_1 = &PTR_FUN_003bd110;\n  FUN_00278a50(param_1);\n  return;\n}\n\n" (function_definition "void FUN_002ad380(undefined8 *param_1)\n\n{\n  long *plVar1;\n  long *plVar2;\n  int iVar3;\n  bool bVar4;\n  \n  bVar4 = PTR___pthread_key_create_003bdee8 == (undefined *)0x0;\n  *param_1 = &PTR_FUN_003b0b60;\n  plVar2 = (long *)param_1[2];\n  if (bVar4) {\n    iVar3 = (int)plVar2[1];\n    *(int *)(plVar2 + 1) = iVar3 + -1;\n  }\n  else {\n    LOCK();\n    plVar1 = plVar2 + 1;\n    iVar3 = (int)*plVar1;\n    *(int *)plVar1 = (int)*plVar1 + -1;\n    UNLOCK();\n  }\n  if (iVar3 == 1) {\n    (**(code **)(*plVar2 + 8))();\n  }\n  *param_1 = &PTR_FUN_003bd110;\n  FUN_00278a50(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_002ad380(undefined8 *param_1)" identifier (parameter_list "(undefined8 *param_1)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  long *plVar1;\n  long *plVar2;\n  int iVar3;\n  bool bVar4;\n  \n  bVar4 = PTR___pthread_key_create_003bdee8 == (undefined *)0x0;\n  *param_1 = &PTR_FUN_003b0b60;\n  plVar2 = (long *)param_1[2];\n  if (bVar4) {\n    iVar3 = (int)plVar2[1];\n    *(int *)(plVar2 + 1) = iVar3 + -1;\n  }\n  else {\n    LOCK();\n    plVar1 = plVar2 + 1;\n    iVar3 = (int)*plVar1;\n    *(int *)plVar1 = (int)*plVar1 + -1;\n    UNLOCK();\n  }\n  if (iVar3 == 1) {\n    (**(code **)(*plVar2 + 8))();\n  }\n  *param_1 = &PTR_FUN_003bd110;\n  FUN_00278a50(param_1);\n  return;\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "long *plVar2;" (sized_type_specifier "long" long) (pointer_declarator "*plVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "bool bVar4;" primitive_type identifier ;) (expression_statement "bVar4 = PTR___pthread_key_create_003bdee8 == (undefined *)0x0;" (assignment_expression "bVar4 = PTR___pthread_key_create_003bdee8 == (undefined *)0x0" identifier = (binary_expression "PTR___pthread_key_create_003bdee8 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ;) (expression_statement "*param_1 = &PTR_FUN_003b0b60;" (assignment_expression "*param_1 = &PTR_FUN_003b0b60" (pointer_expression "*param_1" * identifier) = (pointer_expression "&PTR_FUN_003b0b60" & identifier)) ;) (expression_statement "plVar2 = (long *)param_1[2];" (assignment_expression "plVar2 = (long *)param_1[2]" identifier = (cast_expression "(long *)param_1[2]" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) (if_statement "if (bVar4) {\n    iVar3 = (int)plVar2[1];\n    *(int *)(plVar2 + 1) = iVar3 + -1;\n  }\n  else {\n    LOCK();\n    plVar1 = plVar2 + 1;\n    iVar3 = (int)*plVar1;\n    *(int *)plVar1 = (int)*plVar1 + -1;\n    UNLOCK();\n  }" if (parenthesized_expression "(bVar4)" ( identifier )) (compound_statement "{\n    iVar3 = (int)plVar2[1];\n    *(int *)(plVar2 + 1) = iVar3 + -1;\n  }" { (expression_statement "iVar3 = (int)plVar2[1];" (assignment_expression "iVar3 = (int)plVar2[1]" identifier = (cast_expression "(int)plVar2[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "plVar2[1]" identifier [ number_literal ]))) ;) (expression_statement "*(int *)(plVar2 + 1) = iVar3 + -1;" (assignment_expression "*(int *)(plVar2 + 1) = iVar3 + -1" (pointer_expression "*(int *)(plVar2 + 1)" * (cast_expression "(int *)(plVar2 + 1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar2 + 1)" ( (binary_expression "plVar2 + 1" identifier + number_literal) )))) = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n    LOCK();\n    plVar1 = plVar2 + 1;\n    iVar3 = (int)*plVar1;\n    *(int *)plVar1 = (int)*plVar1 + -1;\n    UNLOCK();\n  }" else (compound_statement "{\n    LOCK();\n    plVar1 = plVar2 + 1;\n    iVar3 = (int)*plVar1;\n    *(int *)plVar1 = (int)*plVar1 + -1;\n    UNLOCK();\n  }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "plVar1 = plVar2 + 1;" (assignment_expression "plVar1 = plVar2 + 1" identifier = (binary_expression "plVar2 + 1" identifier + number_literal)) ;) (expression_statement "iVar3 = (int)*plVar1;" (assignment_expression "iVar3 = (int)*plVar1" identifier = (cast_expression "(int)*plVar1" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*plVar1" * identifier))) ;) (expression_statement "*(int *)plVar1 = (int)*plVar1 + -1;" (assignment_expression "*(int *)plVar1 = (int)*plVar1 + -1" (pointer_expression "*(int *)plVar1" * (cast_expression "(int *)plVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "(int)*plVar1 + -1" (cast_expression "(int)*plVar1" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*plVar1" * identifier)) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }))) (if_statement "if (iVar3 == 1) {\n    (**(code **)(*plVar2 + 8))();\n  }" if (parenthesized_expression "(iVar3 == 1)" ( (binary_expression "iVar3 == 1" identifier == number_literal) )) (compound_statement "{\n    (**(code **)(*plVar2 + 8))();\n  }" { (expression_statement "(**(code **)(*plVar2 + 8))();" (call_expression "(**(code **)(*plVar2 + 8))()" (parenthesized_expression "(**(code **)(*plVar2 + 8))" ( (pointer_expression "**(code **)(*plVar2 + 8)" * (pointer_expression "*(code **)(*plVar2 + 8)" * (cast_expression "(code **)(*plVar2 + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar2 + 8)" ( (binary_expression "*plVar2 + 8" (pointer_expression "*plVar2" * identifier) + number_literal) ))))) )) (argument_list "()" ( ))) ;) })) (expression_statement "*param_1 = &PTR_FUN_003bd110;" (assignment_expression "*param_1 = &PTR_FUN_003bd110" (pointer_expression "*param_1" * identifier) = (pointer_expression "&PTR_FUN_003bd110" & identifier)) ;) (expression_statement "FUN_00278a50(param_1);" (call_expression "FUN_00278a50(param_1)" 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 (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = (binary_expression (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * IDENT)) + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (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 (pointer_expression * IDENT) = (pointer_expression & IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_002ad380(undefined8 *param_1)\n\n{\n  long *plVar1;\n  long *plVar2;\n  int iVar3;\n  bool bVar4;\n  \n  bVar4 = PTR___pthread_key_create_003bdee8 == (undefined *)0x0;\n  *param_1 = &PTR_FUN_003b0b60;\n  plVar2 = (long *)param_1[2];\n  if (bVar4) {\n    iVar3 = (int)plVar2[1];\n    *(int *)(plVar2 + 1) = iVar3 + -1;\n  }\n  else {\n    LOCK();\n    plVar1 = plVar2 + 1;\n    iVar3 = (int)*plVar1;\n    *(int *)plVar1 = (int)*plVar1 + -1;\n    UNLOCK();\n  }\n  if (iVar3 == 1) {\n    (**(code **)(*plVar2 + 8))();\n  }\n  *param_1 = &PTR_FUN_003bd110;\n  FUN_00278a50(param_1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_002ad380(undefined8 *param_1)" (identifier "FUN_002ad380") (parameter_list "(undefined8 *param_1)" (( "(") (parameter_declaration "undefined8 *param_1" (type_identifier "undefined8") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  long *plVar1;\n  long *plVar2;\n  int iVar3;\n  bool bVar4;\n  \n  bVar4 = PTR___pthread_key_create_003bdee8 == (undefined *)0x0;\n  *param_1 = &PTR_FUN_003b0b60;\n  plVar2 = (long *)param_1[2];\n  if (bVar4) {\n    iVar3 = (int)plVar2[1];\n    *(int *)(plVar2 + 1) = iVar3 + -1;\n  }\n  else {\n    LOCK();\n    plVar1 = plVar2 + 1;\n    iVar3 = (int)*plVar1;\n    *(int *)plVar1 = (int)*plVar1 + -1;\n    UNLOCK();\n  }\n  if (iVar3 == 1) {\n    (**(code **)(*plVar2 + 8))();\n  }\n  *param_1 = &PTR_FUN_003bd110;\n  FUN_00278a50(param_1);\n  return;\n}" ({ "{") (declaration "long *plVar1;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar1" (* "*") (identifier "plVar1")) (; ";")) (declaration "long *plVar2;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar2" (* "*") (identifier "plVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "bool bVar4;" (primitive_type "bool") (identifier "bVar4") (; ";")) (expression_statement "bVar4 = PTR___pthread_key_create_003bdee8 == (undefined *)0x0;" (assignment_expression "bVar4 = PTR___pthread_key_create_003bdee8 == (undefined *)0x0" (identifier "bVar4") (= "=") (binary_expression "PTR___pthread_key_create_003bdee8 == (undefined *)0x0" (identifier "PTR___pthread_key_create_003bdee8") (== "==") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) (; ";")) (expression_statement "*param_1 = &PTR_FUN_003b0b60;" (assignment_expression "*param_1 = &PTR_FUN_003b0b60" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (pointer_expression "&PTR_FUN_003b0b60" (& "&") (identifier "PTR_FUN_003b0b60"))) (; ";")) (expression_statement "plVar2 = (long *)param_1[2];" (assignment_expression "plVar2 = (long *)param_1[2]" (identifier "plVar2") (= "=") (cast_expression "(long *)param_1[2]" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (if_statement "if (bVar4) {\n    iVar3 = (int)plVar2[1];\n    *(int *)(plVar2 + 1) = iVar3 + -1;\n  }\n  else {\n    LOCK();\n    plVar1 = plVar2 + 1;\n    iVar3 = (int)*plVar1;\n    *(int *)plVar1 = (int)*plVar1 + -1;\n    UNLOCK();\n  }" (if "if") (parenthesized_expression "(bVar4)" (( "(") (identifier "bVar4") () ")")) (compound_statement "{\n    iVar3 = (int)plVar2[1];\n    *(int *)(plVar2 + 1) = iVar3 + -1;\n  }" ({ "{") (expression_statement "iVar3 = (int)plVar2[1];" (assignment_expression "iVar3 = (int)plVar2[1]" (identifier "iVar3") (= "=") (cast_expression "(int)plVar2[1]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "plVar2[1]" (identifier "plVar2") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "*(int *)(plVar2 + 1) = iVar3 + -1;" (assignment_expression "*(int *)(plVar2 + 1) = iVar3 + -1" (pointer_expression "*(int *)(plVar2 + 1)" (* "*") (cast_expression "(int *)(plVar2 + 1)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(plVar2 + 1)" (( "(") (binary_expression "plVar2 + 1" (identifier "plVar2") (+ "+") (number_literal "1")) () ")")))) (= "=") (binary_expression "iVar3 + -1" (identifier "iVar3") (+ "+") (number_literal "-1"))) (; ";")) (} "}")) (else_clause "else {\n    LOCK();\n    plVar1 = plVar2 + 1;\n    iVar3 = (int)*plVar1;\n    *(int *)plVar1 = (int)*plVar1 + -1;\n    UNLOCK();\n  }" (else "else") (compound_statement "{\n    LOCK();\n    plVar1 = plVar2 + 1;\n    iVar3 = (int)*plVar1;\n    *(int *)plVar1 = (int)*plVar1 + -1;\n    UNLOCK();\n  }" ({ "{") (expression_statement "LOCK();" (call_expression "LOCK()" (identifier "LOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "plVar1 = plVar2 + 1;" (assignment_expression "plVar1 = plVar2 + 1" (identifier "plVar1") (= "=") (binary_expression "plVar2 + 1" (identifier "plVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar3 = (int)*plVar1;" (assignment_expression "iVar3 = (int)*plVar1" (identifier "iVar3") (= "=") (cast_expression "(int)*plVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*plVar1" (* "*") (identifier "plVar1")))) (; ";")) (expression_statement "*(int *)plVar1 = (int)*plVar1 + -1;" (assignment_expression "*(int *)plVar1 = (int)*plVar1 + -1" (pointer_expression "*(int *)plVar1" (* "*") (cast_expression "(int *)plVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "plVar1"))) (= "=") (binary_expression "(int)*plVar1 + -1" (cast_expression "(int)*plVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*plVar1" (* "*") (identifier "plVar1"))) (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" (identifier "UNLOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (if_statement "if (iVar3 == 1) {\n    (**(code **)(*plVar2 + 8))();\n  }" (if "if") (parenthesized_expression "(iVar3 == 1)" (( "(") (binary_expression "iVar3 == 1" (identifier "iVar3") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n    (**(code **)(*plVar2 + 8))();\n  }" ({ "{") (expression_statement "(**(code **)(*plVar2 + 8))();" (call_expression "(**(code **)(*plVar2 + 8))()" (parenthesized_expression "(**(code **)(*plVar2 + 8))" (( "(") (pointer_expression "**(code **)(*plVar2 + 8)" (* "*") (pointer_expression "*(code **)(*plVar2 + 8)" (* "*") (cast_expression "(code **)(*plVar2 + 8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*plVar2 + 8)" (( "(") (binary_expression "*plVar2 + 8" (pointer_expression "*plVar2" (* "*") (identifier "plVar2")) (+ "+") (number_literal "8")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "*param_1 = &PTR_FUN_003bd110;" (assignment_expression "*param_1 = &PTR_FUN_003bd110" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (pointer_expression "&PTR_FUN_003bd110" (& "&") (identifier "PTR_FUN_003bd110"))) (; ";")) (expression_statement "FUN_00278a50(param_1);" (call_expression "FUN_00278a50(param_1)" (identifier "FUN_00278a50") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

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

{
  long *plVar1;
  long *var_3;
  int var_4;
  bool bVar4;
  
  bVar4 = var_1 == (type_1 *)0x0;
  *(type_1 ***)var_2 = &PTR__money_put_shim_003b0b60;
  var_3 = *(long **)(var_2 + 0x10);
  if (bVar4) {
    var_4 = (int)var_3[1];
    *(int *)(var_3 + 1) = var_4 + -1;
  }
  else {
    var_5();
    plVar1 = var_3 + 1;
    var_4 = (int)*plVar1;
    *(int *)plVar1 = (int)*plVar1 + -1;
    var_6();
  }
  if (var_4 == 1) {
    (**(type_2 **)(*var_3 + 8))();
  }
  *(type_1 ***)var_2 = &PTR__money_put_003bd110;
  locale::facet::~var_7((var_7 *)var_2);
  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: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (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: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (if_statement condition: (parenthesized_expression (identifier)) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_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: (binary_expression left: (identifier) right: (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (pointer_expression argument: (identifier))) right: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list)))))) (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: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement))))

void MASKED(undefined8 *param_1)

{
  long *plVar1;
  long *plVar2;
  int iVar3;
  bool bVar4;
  
  bVar4 = PTR___pthread_key_create_003bdee8 == (undefined *)0x0;
  *param_1 = &PTR_FUN_003b0b60;
  plVar2 = (long *)param_1[2];
  if (bVar4) {
    iVar3 = (int)plVar2[1];
    *(int *)(plVar2 + 1) = iVar3 + -1;
  }
  else {
    LOCK();
    plVar1 = plVar2 + 1;
    iVar3 = (int)*plVar1;
    *(int *)plVar1 = (int)*plVar1 + -1;
    UNLOCK();
  }
  if (iVar3 == 1) {
    (**(code **)(*plVar2 + 8))();
  }
  *param_1 = &PTR_FUN_003bd110;
  FUN_00278a50(param_1);
  return;
}

