
/* std::locale::name() const [clone .cold.37] */

void std::locale::name(void)

{
  int *piVar1;
  int iVar2;
  int iVar3;
  int unaff_EBP;
  int *unaff_ESI;
  
  iVar2 = *unaff_ESI;
  if ((allocator *)(iVar2 + -0xc) != *(allocator **)(unaff_EBP + -0x34)) {
    if (*(int *)(*(int *)(unaff_EBP + -0x2c) + -0xdc) == 0) {
      iVar3 = *(int *)(iVar2 + -4);
      *(int *)(iVar2 + -4) = iVar3 + -1;
    }
    else {
      LOCK();
      piVar1 = (int *)(iVar2 + -4);
      iVar3 = *piVar1;
      *piVar1 = *piVar1 + -1;
      UNLOCK();
    }
    if (iVar3 < 1) {
      std::string::_Rep::_M_destroy((allocator *)(iVar2 + -0xc));
    }
  }
                    /* WARNING: Subroutine does not return */
  _Unwind_Resume();
}



void FUN_0003446c(void)

{
  int *piVar1;
  int iVar2;
  int iVar3;
  int unaff_EBP;
  int *unaff_ESI;
  
  iVar2 = *unaff_ESI;
  if (iVar2 + -0xc != *(int *)(unaff_EBP + -0x34)) {
    if (*(int *)(*(int *)(unaff_EBP + -0x2c) + -0xdc) == 0) {
      iVar3 = *(int *)(iVar2 + -4);
      *(int *)(iVar2 + -4) = iVar3 + -1;
    }
    else {
      LOCK();
      piVar1 = (int *)(iVar2 + -4);
      iVar3 = *piVar1;
      *piVar1 = *piVar1 + -1;
      UNLOCK();
    }
    if (iVar3 < 1) {
      FUN_0021e9c0(iVar2 + -0xc,unaff_EBP + -0x19,iVar2,iVar2);
    }
  }
                    /* WARNING: Subroutine does not return */
  FUN_0027dd90();
}


MOV EDX,dword ptr [ESI]
LEA EAX,[EDX + -0xc]
CMP EAX,dword ptr [EBP + -0x34]
JZ 0x000344a0
MOV ESI,dword ptr [EBP + -0x2c]
CMP dword ptr [ESI + 0xffffff24],0x0
JZ 0x000344ac
OR ECX,0xffffffff
XADD.LOCK dword ptr [EDX + -0x4],ECX
TEST ECX,ECX
JG 0x000344a0
PUSH EDX
MOV EBX,dword ptr [EBP + -0x2c]
PUSH EDX
LEA EDX,[EBP + -0x19]
PUSH EDX
PUSH EAX
CALL 0x0021e9c0
ADD ESP,0x10
SUB ESP,0xc
MOV EBX,dword ptr [EBP + -0x2c]
PUSH EDI
CALL 0x0027dd90
MOV ECX,dword ptr [EDX + -0x4]
LEA EBX,[ECX + -0x1]
MOV dword ptr [EDX + -0x4],EBX
JMP 0x0003448a
(translation_unit "void FUN_0003446c(void)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  int unaff_EBP;\n  int *unaff_ESI;\n  \n  iVar2 = *unaff_ESI;\n  if (iVar2 + -0xc != *(int *)(unaff_EBP + -0x34)) {\n    if (*(int *)(*(int *)(unaff_EBP + -0x2c) + -0xdc) == 0) {\n      iVar3 = *(int *)(iVar2 + -4);\n      *(int *)(iVar2 + -4) = iVar3 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(iVar2 + -4);\n      iVar3 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar3 < 1) {\n      FUN_0021e9c0(iVar2 + -0xc,unaff_EBP + -0x19,iVar2,iVar2);\n    }\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0027dd90();\n}\n\n" (function_definition "void FUN_0003446c(void)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  int unaff_EBP;\n  int *unaff_ESI;\n  \n  iVar2 = *unaff_ESI;\n  if (iVar2 + -0xc != *(int *)(unaff_EBP + -0x34)) {\n    if (*(int *)(*(int *)(unaff_EBP + -0x2c) + -0xdc) == 0) {\n      iVar3 = *(int *)(iVar2 + -4);\n      *(int *)(iVar2 + -4) = iVar3 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(iVar2 + -4);\n      iVar3 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar3 < 1) {\n      FUN_0021e9c0(iVar2 + -0xc,unaff_EBP + -0x19,iVar2,iVar2);\n    }\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0027dd90();\n}" primitive_type (function_declarator "FUN_0003446c(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  int unaff_EBP;\n  int *unaff_ESI;\n  \n  iVar2 = *unaff_ESI;\n  if (iVar2 + -0xc != *(int *)(unaff_EBP + -0x34)) {\n    if (*(int *)(*(int *)(unaff_EBP + -0x2c) + -0xdc) == 0) {\n      iVar3 = *(int *)(iVar2 + -4);\n      *(int *)(iVar2 + -4) = iVar3 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(iVar2 + -4);\n      iVar3 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar3 < 1) {\n      FUN_0021e9c0(iVar2 + -0xc,unaff_EBP + -0x19,iVar2,iVar2);\n    }\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0027dd90();\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int unaff_EBP;" primitive_type identifier ;) (declaration "int *unaff_ESI;" primitive_type (pointer_declarator "*unaff_ESI" * identifier) ;) (expression_statement "iVar2 = *unaff_ESI;" (assignment_expression "iVar2 = *unaff_ESI" identifier = (pointer_expression "*unaff_ESI" * identifier)) ;) (if_statement "if (iVar2 + -0xc != *(int *)(unaff_EBP + -0x34)) {\n    if (*(int *)(*(int *)(unaff_EBP + -0x2c) + -0xdc) == 0) {\n      iVar3 = *(int *)(iVar2 + -4);\n      *(int *)(iVar2 + -4) = iVar3 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(iVar2 + -4);\n      iVar3 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar3 < 1) {\n      FUN_0021e9c0(iVar2 + -0xc,unaff_EBP + -0x19,iVar2,iVar2);\n    }\n  }" if (parenthesized_expression "(iVar2 + -0xc != *(int *)(unaff_EBP + -0x34))" ( (binary_expression "iVar2 + -0xc != *(int *)(unaff_EBP + -0x34)" (binary_expression "iVar2 + -0xc" identifier + number_literal) != (pointer_expression "*(int *)(unaff_EBP + -0x34)" * (cast_expression "(int *)(unaff_EBP + -0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EBP + -0x34)" ( (binary_expression "unaff_EBP + -0x34" identifier + number_literal) ))))) )) (compound_statement "{\n    if (*(int *)(*(int *)(unaff_EBP + -0x2c) + -0xdc) == 0) {\n      iVar3 = *(int *)(iVar2 + -4);\n      *(int *)(iVar2 + -4) = iVar3 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(iVar2 + -4);\n      iVar3 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar3 < 1) {\n      FUN_0021e9c0(iVar2 + -0xc,unaff_EBP + -0x19,iVar2,iVar2);\n    }\n  }" { (if_statement "if (*(int *)(*(int *)(unaff_EBP + -0x2c) + -0xdc) == 0) {\n      iVar3 = *(int *)(iVar2 + -4);\n      *(int *)(iVar2 + -4) = iVar3 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(iVar2 + -4);\n      iVar3 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }" if (parenthesized_expression "(*(int *)(*(int *)(unaff_EBP + -0x2c) + -0xdc) == 0)" ( (binary_expression "*(int *)(*(int *)(unaff_EBP + -0x2c) + -0xdc) == 0" (pointer_expression "*(int *)(*(int *)(unaff_EBP + -0x2c) + -0xdc)" * (cast_expression "(int *)(*(int *)(unaff_EBP + -0x2c) + -0xdc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(unaff_EBP + -0x2c) + -0xdc)" ( (binary_expression "*(int *)(unaff_EBP + -0x2c) + -0xdc" (pointer_expression "*(int *)(unaff_EBP + -0x2c)" * (cast_expression "(int *)(unaff_EBP + -0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EBP + -0x2c)" ( (binary_expression "unaff_EBP + -0x2c" identifier + number_literal) )))) + number_literal) )))) == number_literal) )) (compound_statement "{\n      iVar3 = *(int *)(iVar2 + -4);\n      *(int *)(iVar2 + -4) = iVar3 + -1;\n    }" { (expression_statement "iVar3 = *(int *)(iVar2 + -4);" (assignment_expression "iVar3 = *(int *)(iVar2 + -4)" identifier = (pointer_expression "*(int *)(iVar2 + -4)" * (cast_expression "(int *)(iVar2 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -4)" ( (binary_expression "iVar2 + -4" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(iVar2 + -4) = iVar3 + -1;" (assignment_expression "*(int *)(iVar2 + -4) = iVar3 + -1" (pointer_expression "*(int *)(iVar2 + -4)" * (cast_expression "(int *)(iVar2 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -4)" ( (binary_expression "iVar2 + -4" identifier + number_literal) )))) = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n      LOCK();\n      piVar1 = (int *)(iVar2 + -4);\n      iVar3 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }" else (compound_statement "{\n      LOCK();\n      piVar1 = (int *)(iVar2 + -4);\n      iVar3 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar1 = (int *)(iVar2 + -4);" (assignment_expression "piVar1 = (int *)(iVar2 + -4)" identifier = (cast_expression "(int *)(iVar2 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -4)" ( (binary_expression "iVar2 + -4" identifier + number_literal) )))) ;) (expression_statement "iVar3 = *piVar1;" (assignment_expression "iVar3 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }))) (if_statement "if (iVar3 < 1) {\n      FUN_0021e9c0(iVar2 + -0xc,unaff_EBP + -0x19,iVar2,iVar2);\n    }" if (parenthesized_expression "(iVar3 < 1)" ( (binary_expression "iVar3 < 1" identifier < number_literal) )) (compound_statement "{\n      FUN_0021e9c0(iVar2 + -0xc,unaff_EBP + -0x19,iVar2,iVar2);\n    }" { (expression_statement "FUN_0021e9c0(iVar2 + -0xc,unaff_EBP + -0x19,iVar2,iVar2);" (call_expression "FUN_0021e9c0(iVar2 + -0xc,unaff_EBP + -0x19,iVar2,iVar2)" identifier (argument_list "(iVar2 + -0xc,unaff_EBP + -0x19,iVar2,iVar2)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) , (binary_expression "unaff_EBP + -0x19" identifier + number_literal) , identifier , identifier ))) ;) })) })) comment (expression_statement "FUN_0027dd90();" (call_expression "FUN_0027dd90()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* std::locale::name() const [clone .cold.37] */\n\nvoid std::locale::name(void)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  int unaff_EBP;\n  int *unaff_ESI;\n  \n  iVar2 = *unaff_ESI;\n  if ((allocator *)(iVar2 + -0xc) != *(allocator **)(unaff_EBP + -0x34)) {\n    if (*(int *)(*(int *)(unaff_EBP + -0x2c) + -0xdc) == 0) {\n      iVar3 = *(int *)(iVar2 + -4);\n      *(int *)(iVar2 + -4) = iVar3 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(iVar2 + -4);\n      iVar3 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar3 < 1) {\n      std::string::_Rep::_M_destroy((allocator *)(iVar2 + -0xc));\n    }\n  }\n                    /* WARNING: Subroutine does not return */\n  _Unwind_Resume();\n}\n\n" comment (function_definition "void std::locale::name(void)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  int unaff_EBP;\n  int *unaff_ESI;\n  \n  iVar2 = *unaff_ESI;\n  if ((allocator *)(iVar2 + -0xc) != *(allocator **)(unaff_EBP + -0x34)) {\n    if (*(int *)(*(int *)(unaff_EBP + -0x2c) + -0xdc) == 0) {\n      iVar3 = *(int *)(iVar2 + -4);\n      *(int *)(iVar2 + -4) = iVar3 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(iVar2 + -4);\n      iVar3 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar3 < 1) {\n      std::string::_Rep::_M_destroy((allocator *)(iVar2 + -0xc));\n    }\n  }\n                    /* WARNING: Subroutine does not return */\n  _Unwind_Resume();\n}" primitive_type (ERROR "std::locale::" identifier : : identifier : :) (function_declarator "name(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  int unaff_EBP;\n  int *unaff_ESI;\n  \n  iVar2 = *unaff_ESI;\n  if ((allocator *)(iVar2 + -0xc) != *(allocator **)(unaff_EBP + -0x34)) {\n    if (*(int *)(*(int *)(unaff_EBP + -0x2c) + -0xdc) == 0) {\n      iVar3 = *(int *)(iVar2 + -4);\n      *(int *)(iVar2 + -4) = iVar3 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(iVar2 + -4);\n      iVar3 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar3 < 1) {\n      std::string::_Rep::_M_destroy((allocator *)(iVar2 + -0xc));\n    }\n  }\n                    /* WARNING: Subroutine does not return */\n  _Unwind_Resume();\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int unaff_EBP;" primitive_type identifier ;) (declaration "int *unaff_ESI;" primitive_type (pointer_declarator "*unaff_ESI" * identifier) ;) (expression_statement "iVar2 = *unaff_ESI;" (assignment_expression "iVar2 = *unaff_ESI" identifier = (pointer_expression "*unaff_ESI" * identifier)) ;) (if_statement "if ((allocator *)(iVar2 + -0xc) != *(allocator **)(unaff_EBP + -0x34)) {\n    if (*(int *)(*(int *)(unaff_EBP + -0x2c) + -0xdc) == 0) {\n      iVar3 = *(int *)(iVar2 + -4);\n      *(int *)(iVar2 + -4) = iVar3 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(iVar2 + -4);\n      iVar3 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar3 < 1) {\n      std::string::_Rep::_M_destroy((allocator *)(iVar2 + -0xc));\n    }\n  }" if (parenthesized_expression "((allocator *)(iVar2 + -0xc) != *(allocator **)(unaff_EBP + -0x34))" ( (binary_expression "(allocator *)(iVar2 + -0xc) != *(allocator **)(unaff_EBP + -0x34)" (cast_expression "(allocator *)(iVar2 + -0xc)" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) ))) != (pointer_expression "*(allocator **)(unaff_EBP + -0x34)" * (cast_expression "(allocator **)(unaff_EBP + -0x34)" ( (type_descriptor "allocator **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EBP + -0x34)" ( (binary_expression "unaff_EBP + -0x34" identifier + number_literal) ))))) )) (compound_statement "{\n    if (*(int *)(*(int *)(unaff_EBP + -0x2c) + -0xdc) == 0) {\n      iVar3 = *(int *)(iVar2 + -4);\n      *(int *)(iVar2 + -4) = iVar3 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(iVar2 + -4);\n      iVar3 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar3 < 1) {\n      std::string::_Rep::_M_destroy((allocator *)(iVar2 + -0xc));\n    }\n  }" { (if_statement "if (*(int *)(*(int *)(unaff_EBP + -0x2c) + -0xdc) == 0) {\n      iVar3 = *(int *)(iVar2 + -4);\n      *(int *)(iVar2 + -4) = iVar3 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(iVar2 + -4);\n      iVar3 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }" if (parenthesized_expression "(*(int *)(*(int *)(unaff_EBP + -0x2c) + -0xdc) == 0)" ( (binary_expression "*(int *)(*(int *)(unaff_EBP + -0x2c) + -0xdc) == 0" (pointer_expression "*(int *)(*(int *)(unaff_EBP + -0x2c) + -0xdc)" * (cast_expression "(int *)(*(int *)(unaff_EBP + -0x2c) + -0xdc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(unaff_EBP + -0x2c) + -0xdc)" ( (binary_expression "*(int *)(unaff_EBP + -0x2c) + -0xdc" (pointer_expression "*(int *)(unaff_EBP + -0x2c)" * (cast_expression "(int *)(unaff_EBP + -0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EBP + -0x2c)" ( (binary_expression "unaff_EBP + -0x2c" identifier + number_literal) )))) + number_literal) )))) == number_literal) )) (compound_statement "{\n      iVar3 = *(int *)(iVar2 + -4);\n      *(int *)(iVar2 + -4) = iVar3 + -1;\n    }" { (expression_statement "iVar3 = *(int *)(iVar2 + -4);" (assignment_expression "iVar3 = *(int *)(iVar2 + -4)" identifier = (pointer_expression "*(int *)(iVar2 + -4)" * (cast_expression "(int *)(iVar2 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -4)" ( (binary_expression "iVar2 + -4" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(iVar2 + -4) = iVar3 + -1;" (assignment_expression "*(int *)(iVar2 + -4) = iVar3 + -1" (pointer_expression "*(int *)(iVar2 + -4)" * (cast_expression "(int *)(iVar2 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -4)" ( (binary_expression "iVar2 + -4" identifier + number_literal) )))) = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n      LOCK();\n      piVar1 = (int *)(iVar2 + -4);\n      iVar3 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }" else (compound_statement "{\n      LOCK();\n      piVar1 = (int *)(iVar2 + -4);\n      iVar3 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar1 = (int *)(iVar2 + -4);" (assignment_expression "piVar1 = (int *)(iVar2 + -4)" identifier = (cast_expression "(int *)(iVar2 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -4)" ( (binary_expression "iVar2 + -4" identifier + number_literal) )))) ;) (expression_statement "iVar3 = *piVar1;" (assignment_expression "iVar3 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }))) (if_statement "if (iVar3 < 1) {\n      std::string::_Rep::_M_destroy((allocator *)(iVar2 + -0xc));\n    }" if (parenthesized_expression "(iVar3 < 1)" ( (binary_expression "iVar3 < 1" identifier < number_literal) )) (compound_statement "{\n      std::string::_Rep::_M_destroy((allocator *)(iVar2 + -0xc));\n    }" { (labeled_statement "std::string::_Rep::_M_destroy((allocator *)(iVar2 + -0xc));" statement_identifier : (ERROR ":" :) (labeled_statement "string::_Rep::_M_destroy((allocator *)(iVar2 + -0xc));" statement_identifier : (ERROR ":" :) (labeled_statement "_Rep::_M_destroy((allocator *)(iVar2 + -0xc));" statement_identifier : (ERROR ":" :) (expression_statement "_M_destroy((allocator *)(iVar2 + -0xc));" (call_expression "_M_destroy((allocator *)(iVar2 + -0xc))" identifier (argument_list "((allocator *)(iVar2 + -0xc))" ( (cast_expression "(allocator *)(iVar2 + -0xc)" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) ))) ))) ;)))) })) })) comment (expression_statement "_Unwind_Resume();" (call_expression "_Unwind_Resume()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void FUN_0003446c(void)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  int unaff_EBP;\n  int *unaff_ESI;\n  \n  iVar2 = *unaff_ESI;\n  if (iVar2 + -0xc != *(int *)(unaff_EBP + -0x34)) {\n    if (*(int *)(*(int *)(unaff_EBP + -0x2c) + -0xdc) == 0) {\n      iVar3 = *(int *)(iVar2 + -4);\n      *(int *)(iVar2 + -4) = iVar3 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(iVar2 + -4);\n      iVar3 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar3 < 1) {\n      FUN_0021e9c0(iVar2 + -0xc,unaff_EBP + -0x19,iVar2,iVar2);\n    }\n  }\n                    \n  FUN_0027dd90();\n}\n\n" (function_definition "void FUN_0003446c(void)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  int unaff_EBP;\n  int *unaff_ESI;\n  \n  iVar2 = *unaff_ESI;\n  if (iVar2 + -0xc != *(int *)(unaff_EBP + -0x34)) {\n    if (*(int *)(*(int *)(unaff_EBP + -0x2c) + -0xdc) == 0) {\n      iVar3 = *(int *)(iVar2 + -4);\n      *(int *)(iVar2 + -4) = iVar3 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(iVar2 + -4);\n      iVar3 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar3 < 1) {\n      FUN_0021e9c0(iVar2 + -0xc,unaff_EBP + -0x19,iVar2,iVar2);\n    }\n  }\n                    \n  FUN_0027dd90();\n}" primitive_type (function_declarator "FUN_0003446c(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  int unaff_EBP;\n  int *unaff_ESI;\n  \n  iVar2 = *unaff_ESI;\n  if (iVar2 + -0xc != *(int *)(unaff_EBP + -0x34)) {\n    if (*(int *)(*(int *)(unaff_EBP + -0x2c) + -0xdc) == 0) {\n      iVar3 = *(int *)(iVar2 + -4);\n      *(int *)(iVar2 + -4) = iVar3 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(iVar2 + -4);\n      iVar3 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar3 < 1) {\n      FUN_0021e9c0(iVar2 + -0xc,unaff_EBP + -0x19,iVar2,iVar2);\n    }\n  }\n                    \n  FUN_0027dd90();\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int unaff_EBP;" primitive_type identifier ;) (declaration "int *unaff_ESI;" primitive_type (pointer_declarator "*unaff_ESI" * identifier) ;) (expression_statement "iVar2 = *unaff_ESI;" (assignment_expression "iVar2 = *unaff_ESI" identifier = (pointer_expression "*unaff_ESI" * identifier)) ;) (if_statement "if (iVar2 + -0xc != *(int *)(unaff_EBP + -0x34)) {\n    if (*(int *)(*(int *)(unaff_EBP + -0x2c) + -0xdc) == 0) {\n      iVar3 = *(int *)(iVar2 + -4);\n      *(int *)(iVar2 + -4) = iVar3 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(iVar2 + -4);\n      iVar3 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar3 < 1) {\n      FUN_0021e9c0(iVar2 + -0xc,unaff_EBP + -0x19,iVar2,iVar2);\n    }\n  }" if (parenthesized_expression "(iVar2 + -0xc != *(int *)(unaff_EBP + -0x34))" ( (binary_expression "iVar2 + -0xc != *(int *)(unaff_EBP + -0x34)" (binary_expression "iVar2 + -0xc" identifier + number_literal) != (pointer_expression "*(int *)(unaff_EBP + -0x34)" * (cast_expression "(int *)(unaff_EBP + -0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EBP + -0x34)" ( (binary_expression "unaff_EBP + -0x34" identifier + number_literal) ))))) )) (compound_statement "{\n    if (*(int *)(*(int *)(unaff_EBP + -0x2c) + -0xdc) == 0) {\n      iVar3 = *(int *)(iVar2 + -4);\n      *(int *)(iVar2 + -4) = iVar3 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(iVar2 + -4);\n      iVar3 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar3 < 1) {\n      FUN_0021e9c0(iVar2 + -0xc,unaff_EBP + -0x19,iVar2,iVar2);\n    }\n  }" { (if_statement "if (*(int *)(*(int *)(unaff_EBP + -0x2c) + -0xdc) == 0) {\n      iVar3 = *(int *)(iVar2 + -4);\n      *(int *)(iVar2 + -4) = iVar3 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(iVar2 + -4);\n      iVar3 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }" if (parenthesized_expression "(*(int *)(*(int *)(unaff_EBP + -0x2c) + -0xdc) == 0)" ( (binary_expression "*(int *)(*(int *)(unaff_EBP + -0x2c) + -0xdc) == 0" (pointer_expression "*(int *)(*(int *)(unaff_EBP + -0x2c) + -0xdc)" * (cast_expression "(int *)(*(int *)(unaff_EBP + -0x2c) + -0xdc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(unaff_EBP + -0x2c) + -0xdc)" ( (binary_expression "*(int *)(unaff_EBP + -0x2c) + -0xdc" (pointer_expression "*(int *)(unaff_EBP + -0x2c)" * (cast_expression "(int *)(unaff_EBP + -0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EBP + -0x2c)" ( (binary_expression "unaff_EBP + -0x2c" identifier + number_literal) )))) + number_literal) )))) == number_literal) )) (compound_statement "{\n      iVar3 = *(int *)(iVar2 + -4);\n      *(int *)(iVar2 + -4) = iVar3 + -1;\n    }" { (expression_statement "iVar3 = *(int *)(iVar2 + -4);" (assignment_expression "iVar3 = *(int *)(iVar2 + -4)" identifier = (pointer_expression "*(int *)(iVar2 + -4)" * (cast_expression "(int *)(iVar2 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -4)" ( (binary_expression "iVar2 + -4" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(iVar2 + -4) = iVar3 + -1;" (assignment_expression "*(int *)(iVar2 + -4) = iVar3 + -1" (pointer_expression "*(int *)(iVar2 + -4)" * (cast_expression "(int *)(iVar2 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -4)" ( (binary_expression "iVar2 + -4" identifier + number_literal) )))) = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n      LOCK();\n      piVar1 = (int *)(iVar2 + -4);\n      iVar3 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }" else (compound_statement "{\n      LOCK();\n      piVar1 = (int *)(iVar2 + -4);\n      iVar3 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar1 = (int *)(iVar2 + -4);" (assignment_expression "piVar1 = (int *)(iVar2 + -4)" identifier = (cast_expression "(int *)(iVar2 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -4)" ( (binary_expression "iVar2 + -4" identifier + number_literal) )))) ;) (expression_statement "iVar3 = *piVar1;" (assignment_expression "iVar3 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }))) (if_statement "if (iVar3 < 1) {\n      FUN_0021e9c0(iVar2 + -0xc,unaff_EBP + -0x19,iVar2,iVar2);\n    }" if (parenthesized_expression "(iVar3 < 1)" ( (binary_expression "iVar3 < 1" identifier < number_literal) )) (compound_statement "{\n      FUN_0021e9c0(iVar2 + -0xc,unaff_EBP + -0x19,iVar2,iVar2);\n    }" { (expression_statement "FUN_0021e9c0(iVar2 + -0xc,unaff_EBP + -0x19,iVar2,iVar2);" (call_expression "FUN_0021e9c0(iVar2 + -0xc,unaff_EBP + -0x19,iVar2,iVar2)" identifier (argument_list "(iVar2 + -0xc,unaff_EBP + -0x19,iVar2,iVar2)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) , (binary_expression "unaff_EBP + -0x19" identifier + number_literal) , identifier , identifier ))) ;) })) })) (expression_statement "FUN_0027dd90();" (call_expression "FUN_0027dd90()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_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) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_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 = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (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 IDENT (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , IDENT , IDENT ))) ;) })) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void FUN_0003446c(void)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  int unaff_EBP;\n  int *unaff_ESI;\n  \n  iVar2 = *unaff_ESI;\n  if (iVar2 + -0xc != *(int *)(unaff_EBP + -0x34)) {\n    if (*(int *)(*(int *)(unaff_EBP + -0x2c) + -0xdc) == 0) {\n      iVar3 = *(int *)(iVar2 + -4);\n      *(int *)(iVar2 + -4) = iVar3 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(iVar2 + -4);\n      iVar3 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar3 < 1) {\n      FUN_0021e9c0(iVar2 + -0xc,unaff_EBP + -0x19,iVar2,iVar2);\n    }\n  }\n                    \n  FUN_0027dd90();\n}" (primitive_type "void") (function_declarator "FUN_0003446c(void)" (identifier "FUN_0003446c") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  int unaff_EBP;\n  int *unaff_ESI;\n  \n  iVar2 = *unaff_ESI;\n  if (iVar2 + -0xc != *(int *)(unaff_EBP + -0x34)) {\n    if (*(int *)(*(int *)(unaff_EBP + -0x2c) + -0xdc) == 0) {\n      iVar3 = *(int *)(iVar2 + -4);\n      *(int *)(iVar2 + -4) = iVar3 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(iVar2 + -4);\n      iVar3 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar3 < 1) {\n      FUN_0021e9c0(iVar2 + -0xc,unaff_EBP + -0x19,iVar2,iVar2);\n    }\n  }\n                    \n  FUN_0027dd90();\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int unaff_EBP;" (primitive_type "int") (identifier "unaff_EBP") (; ";")) (declaration "int *unaff_ESI;" (primitive_type "int") (pointer_declarator "*unaff_ESI" (* "*") (identifier "unaff_ESI")) (; ";")) (expression_statement "iVar2 = *unaff_ESI;" (assignment_expression "iVar2 = *unaff_ESI" (identifier "iVar2") (= "=") (pointer_expression "*unaff_ESI" (* "*") (identifier "unaff_ESI"))) (; ";")) (if_statement "if (iVar2 + -0xc != *(int *)(unaff_EBP + -0x34)) {\n    if (*(int *)(*(int *)(unaff_EBP + -0x2c) + -0xdc) == 0) {\n      iVar3 = *(int *)(iVar2 + -4);\n      *(int *)(iVar2 + -4) = iVar3 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(iVar2 + -4);\n      iVar3 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar3 < 1) {\n      FUN_0021e9c0(iVar2 + -0xc,unaff_EBP + -0x19,iVar2,iVar2);\n    }\n  }" (if "if") (parenthesized_expression "(iVar2 + -0xc != *(int *)(unaff_EBP + -0x34))" (( "(") (binary_expression "iVar2 + -0xc != *(int *)(unaff_EBP + -0x34)" (binary_expression "iVar2 + -0xc" (identifier "iVar2") (+ "+") (number_literal "-0xc")) (!= "!=") (pointer_expression "*(int *)(unaff_EBP + -0x34)" (* "*") (cast_expression "(int *)(unaff_EBP + -0x34)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EBP + -0x34)" (( "(") (binary_expression "unaff_EBP + -0x34" (identifier "unaff_EBP") (+ "+") (number_literal "-0x34")) () ")"))))) () ")")) (compound_statement "{\n    if (*(int *)(*(int *)(unaff_EBP + -0x2c) + -0xdc) == 0) {\n      iVar3 = *(int *)(iVar2 + -4);\n      *(int *)(iVar2 + -4) = iVar3 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(iVar2 + -4);\n      iVar3 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar3 < 1) {\n      FUN_0021e9c0(iVar2 + -0xc,unaff_EBP + -0x19,iVar2,iVar2);\n    }\n  }" ({ "{") (if_statement "if (*(int *)(*(int *)(unaff_EBP + -0x2c) + -0xdc) == 0) {\n      iVar3 = *(int *)(iVar2 + -4);\n      *(int *)(iVar2 + -4) = iVar3 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(iVar2 + -4);\n      iVar3 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }" (if "if") (parenthesized_expression "(*(int *)(*(int *)(unaff_EBP + -0x2c) + -0xdc) == 0)" (( "(") (binary_expression "*(int *)(*(int *)(unaff_EBP + -0x2c) + -0xdc) == 0" (pointer_expression "*(int *)(*(int *)(unaff_EBP + -0x2c) + -0xdc)" (* "*") (cast_expression "(int *)(*(int *)(unaff_EBP + -0x2c) + -0xdc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(unaff_EBP + -0x2c) + -0xdc)" (( "(") (binary_expression "*(int *)(unaff_EBP + -0x2c) + -0xdc" (pointer_expression "*(int *)(unaff_EBP + -0x2c)" (* "*") (cast_expression "(int *)(unaff_EBP + -0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EBP + -0x2c)" (( "(") (binary_expression "unaff_EBP + -0x2c" (identifier "unaff_EBP") (+ "+") (number_literal "-0x2c")) () ")")))) (+ "+") (number_literal "-0xdc")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar3 = *(int *)(iVar2 + -4);\n      *(int *)(iVar2 + -4) = iVar3 + -1;\n    }" ({ "{") (expression_statement "iVar3 = *(int *)(iVar2 + -4);" (assignment_expression "iVar3 = *(int *)(iVar2 + -4)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(iVar2 + -4)" (* "*") (cast_expression "(int *)(iVar2 + -4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + -4)" (( "(") (binary_expression "iVar2 + -4" (identifier "iVar2") (+ "+") (number_literal "-4")) () ")"))))) (; ";")) (expression_statement "*(int *)(iVar2 + -4) = iVar3 + -1;" (assignment_expression "*(int *)(iVar2 + -4) = iVar3 + -1" (pointer_expression "*(int *)(iVar2 + -4)" (* "*") (cast_expression "(int *)(iVar2 + -4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + -4)" (( "(") (binary_expression "iVar2 + -4" (identifier "iVar2") (+ "+") (number_literal "-4")) () ")")))) (= "=") (binary_expression "iVar3 + -1" (identifier "iVar3") (+ "+") (number_literal "-1"))) (; ";")) (} "}")) (else_clause "else {\n      LOCK();\n      piVar1 = (int *)(iVar2 + -4);\n      iVar3 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }" (else "else") (compound_statement "{\n      LOCK();\n      piVar1 = (int *)(iVar2 + -4);\n      iVar3 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }" ({ "{") (expression_statement "LOCK();" (call_expression "LOCK()" (identifier "LOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "piVar1 = (int *)(iVar2 + -4);" (assignment_expression "piVar1 = (int *)(iVar2 + -4)" (identifier "piVar1") (= "=") (cast_expression "(int *)(iVar2 + -4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + -4)" (( "(") (binary_expression "iVar2 + -4" (identifier "iVar2") (+ "+") (number_literal "-4")) () ")")))) (; ";")) (expression_statement "iVar3 = *piVar1;" (assignment_expression "iVar3 = *piVar1" (identifier "iVar3") (= "=") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (; ";")) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" (identifier "UNLOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (if_statement "if (iVar3 < 1) {\n      FUN_0021e9c0(iVar2 + -0xc,unaff_EBP + -0x19,iVar2,iVar2);\n    }" (if "if") (parenthesized_expression "(iVar3 < 1)" (( "(") (binary_expression "iVar3 < 1" (identifier "iVar3") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n      FUN_0021e9c0(iVar2 + -0xc,unaff_EBP + -0x19,iVar2,iVar2);\n    }" ({ "{") (expression_statement "FUN_0021e9c0(iVar2 + -0xc,unaff_EBP + -0x19,iVar2,iVar2);" (call_expression "FUN_0021e9c0(iVar2 + -0xc,unaff_EBP + -0x19,iVar2,iVar2)" (identifier "FUN_0021e9c0") (argument_list "(iVar2 + -0xc,unaff_EBP + -0x19,iVar2,iVar2)" (( "(") (binary_expression "iVar2 + -0xc" (identifier "iVar2") (+ "+") (number_literal "-0xc")) (, ",") (binary_expression "unaff_EBP + -0x19" (identifier "unaff_EBP") (+ "+") (number_literal "-0x19")) (, ",") (identifier "iVar2") (, ",") (identifier "iVar2") () ")"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "FUN_0027dd90();" (call_expression "FUN_0027dd90()" (identifier "FUN_0027dd90") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* std::locale::name() const [clone .cold.37] */

void std::locale::function_1(void)

{
  int *piVar1;
  int var_1;
  int var_3;
  int var_2;
  int *unaff_ESI;
  
  var_1 = *unaff_ESI;
  if ((type_1 *)(var_1 + -0xc) != *(type_1 **)(var_2 + -0x34)) {
    if (*(int *)(*(int *)(var_2 + -0x2c) + -0xdc) == 0) {
      var_3 = *(int *)(var_1 + -4);
      *(int *)(var_1 + -4) = var_3 + -1;
    }
    else {
      var_4();
      piVar1 = (int *)(var_1 + -4);
      var_3 = *piVar1;
      *piVar1 = *piVar1 + -1;
      var_5();
    }
    if (var_3 < 1) {
      std::string::_Rep::var_6((type_1 *)(var_1 + -0xc));
    }
  }
                    /* WARNING: Subroutine does not return */
  var_7();
}


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

void MASKED(void)

{
  int *piVar1;
  int iVar2;
  int iVar3;
  int unaff_EBP;
  int *unaff_ESI;
  
  iVar2 = *unaff_ESI;
  if (iVar2 + -0xc != *(int *)(unaff_EBP + -0x34)) {
    if (*(int *)(*(int *)(unaff_EBP + -0x2c) + -0xdc) == 0) {
      iVar3 = *(int *)(iVar2 + -4);
      *(int *)(iVar2 + -4) = iVar3 + -1;
    }
    else {
      LOCK();
      piVar1 = (int *)(iVar2 + -4);
      iVar3 = *piVar1;
      *piVar1 = *piVar1 + -1;
      UNLOCK();
    }
    if (iVar3 < 1) {
      FUN_0021e9c0(iVar2 + -0xc,unaff_EBP + -0x19,iVar2,iVar2);
    }
  }
                    /* WARNING: Subroutine does not return */
  FUN_0027dd90();
}

