
/* void std::__facet_shims::(anonymous namespace)::__destroy_string<char>(void*) */

void std::__facet_shims::(anonymous_namespace)::__destroy_string<char>(void *param_1)

{
  int iVar1;
  int iVar2;
  
                    /* WARNING: Load size is inaccurate */
  iVar1 = *param_1;
  if ((allocator *)(iVar1 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0) {
    if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {
      iVar2 = *(int *)(iVar1 + -4);
      *(int *)(iVar1 + -4) = iVar2 + -1;
    }
    else {
      SYNC(0);
      iVar2 = *(int *)(iVar1 + -4);
      *(int *)(iVar1 + -4) = iVar2 + -1;
      SYNC(0);
    }
    if (iVar2 < 1) {
      std::string::_Rep::_M_destroy((allocator *)(iVar1 + -0xc));
    }
  }
  return;
}



void FUN_003090d4(int *param_1)

{
  int iVar1;
  int iVar2;
  
  iVar1 = *param_1;
  if ((allocator *)(iVar1 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0) {
    if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {
      iVar2 = *(int *)(iVar1 + -4);
      *(int *)(iVar1 + -4) = iVar2 + -1;
    }
    else {
      SYNC(0);
      iVar2 = *(int *)(iVar1 + -4);
      *(int *)(iVar1 + -4) = iVar2 + -1;
      SYNC(0);
    }
    if (iVar2 < 1) {
      std::string::_Rep::_M_destroy((allocator *)(iVar1 + -0xc));
    }
  }
  return;
}


lui gp,0x13
addiu gp,gp,0x10fc
addu gp,gp,t9
lw v0,0x0(a0)
addiu sp,sp,-0x28
lw v1,-0x7f00(gp)
addiu a0,v0,-0xc
sw gp,0x10(sp)
sw ra,0x24(sp)
bne a0,v1,0x0030910c
_lw v1,-0x3b54(gp)
lw ra,0x24(sp)
jr ra
_addiu sp,sp,0x28
beq v1,zero,0x00309148
_nop
sync 0x0
ll v1,-0x4(v0)
addiu at,v1,-0x1
sc at,-0x4(v0)
beq at,zero,0x00309118
_nop
sync 0x0
bgtz v1,0x00309100
_lw t9,-0x7f84(gp)
bal 0x002fbc7c
_addiu a1,sp,0x18
b 0x00309104
_lw ra,0x24(sp)
lw v1,-0x4(v0)
addiu a1,v1,-0x1
b 0x00309130
_sw a1,-0x4(v0)
(translation_unit "void FUN_003090d4(int *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *param_1;\n  if ((allocator *)(iVar1 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0) {\n    if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n      iVar2 = *(int *)(iVar1 + -4);\n      *(int *)(iVar1 + -4) = iVar2 + -1;\n    }\n    else {\n      SYNC(0);\n      iVar2 = *(int *)(iVar1 + -4);\n      *(int *)(iVar1 + -4) = iVar2 + -1;\n      SYNC(0);\n    }\n    if (iVar2 < 1) {\n      std::string::_Rep::_M_destroy((allocator *)(iVar1 + -0xc));\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_003090d4(int *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *param_1;\n  if ((allocator *)(iVar1 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0) {\n    if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n      iVar2 = *(int *)(iVar1 + -4);\n      *(int *)(iVar1 + -4) = iVar2 + -1;\n    }\n    else {\n      SYNC(0);\n      iVar2 = *(int *)(iVar1 + -4);\n      *(int *)(iVar1 + -4) = iVar2 + -1;\n      SYNC(0);\n    }\n    if (iVar2 < 1) {\n      std::string::_Rep::_M_destroy((allocator *)(iVar1 + -0xc));\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_003090d4(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *param_1;\n  if ((allocator *)(iVar1 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0) {\n    if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n      iVar2 = *(int *)(iVar1 + -4);\n      *(int *)(iVar1 + -4) = iVar2 + -1;\n    }\n    else {\n      SYNC(0);\n      iVar2 = *(int *)(iVar1 + -4);\n      *(int *)(iVar1 + -4) = iVar2 + -1;\n      SYNC(0);\n    }\n    if (iVar2 < 1) {\n      std::string::_Rep::_M_destroy((allocator *)(iVar1 + -0xc));\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if ((allocator *)(iVar1 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0) {\n    if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n      iVar2 = *(int *)(iVar1 + -4);\n      *(int *)(iVar1 + -4) = iVar2 + -1;\n    }\n    else {\n      SYNC(0);\n      iVar2 = *(int *)(iVar1 + -4);\n      *(int *)(iVar1 + -4) = iVar2 + -1;\n      SYNC(0);\n    }\n    if (iVar2 < 1) {\n      std::string::_Rep::_M_destroy((allocator *)(iVar1 + -0xc));\n    }\n  }" if (parenthesized_expression "((allocator *)(iVar1 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0)" ( (binary_expression "(allocator *)(iVar1 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0" (cast_expression "(allocator *)(iVar1 + -0xc)" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0xc)" ( (binary_expression "iVar1 + -0xc" identifier + number_literal) ))) != (cast_expression "(allocator *)PTR__S_empty_rep_storage_004322d0" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n    if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n      iVar2 = *(int *)(iVar1 + -4);\n      *(int *)(iVar1 + -4) = iVar2 + -1;\n    }\n    else {\n      SYNC(0);\n      iVar2 = *(int *)(iVar1 + -4);\n      *(int *)(iVar1 + -4) = iVar2 + -1;\n      SYNC(0);\n    }\n    if (iVar2 < 1) {\n      std::string::_Rep::_M_destroy((allocator *)(iVar1 + -0xc));\n    }\n  }" { (if_statement "if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n      iVar2 = *(int *)(iVar1 + -4);\n      *(int *)(iVar1 + -4) = iVar2 + -1;\n    }\n    else {\n      SYNC(0);\n      iVar2 = *(int *)(iVar1 + -4);\n      *(int *)(iVar1 + -4) = iVar2 + -1;\n      SYNC(0);\n    }" if (parenthesized_expression "(PTR___pthread_key_create_0043667c == (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_0043667c == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar2 = *(int *)(iVar1 + -4);\n      *(int *)(iVar1 + -4) = iVar2 + -1;\n    }" { (expression_statement "iVar2 = *(int *)(iVar1 + -4);" (assignment_expression "iVar2 = *(int *)(iVar1 + -4)" identifier = (pointer_expression "*(int *)(iVar1 + -4)" * (cast_expression "(int *)(iVar1 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -4)" ( (binary_expression "iVar1 + -4" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(iVar1 + -4) = iVar2 + -1;" (assignment_expression "*(int *)(iVar1 + -4) = iVar2 + -1" (pointer_expression "*(int *)(iVar1 + -4)" * (cast_expression "(int *)(iVar1 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -4)" ( (binary_expression "iVar1 + -4" identifier + number_literal) )))) = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n      SYNC(0);\n      iVar2 = *(int *)(iVar1 + -4);\n      *(int *)(iVar1 + -4) = iVar2 + -1;\n      SYNC(0);\n    }" else (compound_statement "{\n      SYNC(0);\n      iVar2 = *(int *)(iVar1 + -4);\n      *(int *)(iVar1 + -4) = iVar2 + -1;\n      SYNC(0);\n    }" { (expression_statement "SYNC(0);" (call_expression "SYNC(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (expression_statement "iVar2 = *(int *)(iVar1 + -4);" (assignment_expression "iVar2 = *(int *)(iVar1 + -4)" identifier = (pointer_expression "*(int *)(iVar1 + -4)" * (cast_expression "(int *)(iVar1 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -4)" ( (binary_expression "iVar1 + -4" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(iVar1 + -4) = iVar2 + -1;" (assignment_expression "*(int *)(iVar1 + -4) = iVar2 + -1" (pointer_expression "*(int *)(iVar1 + -4)" * (cast_expression "(int *)(iVar1 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -4)" ( (binary_expression "iVar1 + -4" identifier + number_literal) )))) = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (expression_statement "SYNC(0);" (call_expression "SYNC(0)" identifier (argument_list "(0)" ( number_literal ))) ;) }))) (if_statement "if (iVar2 < 1) {\n      std::string::_Rep::_M_destroy((allocator *)(iVar1 + -0xc));\n    }" if (parenthesized_expression "(iVar2 < 1)" ( (binary_expression "iVar2 < 1" identifier < number_literal) )) (compound_statement "{\n      std::string::_Rep::_M_destroy((allocator *)(iVar1 + -0xc));\n    }" { (labeled_statement "std::string::_Rep::_M_destroy((allocator *)(iVar1 + -0xc));" statement_identifier : (ERROR ":" :) (labeled_statement "string::_Rep::_M_destroy((allocator *)(iVar1 + -0xc));" statement_identifier : (ERROR ":" :) (labeled_statement "_Rep::_M_destroy((allocator *)(iVar1 + -0xc));" statement_identifier : (ERROR ":" :) (expression_statement "_M_destroy((allocator *)(iVar1 + -0xc));" (call_expression "_M_destroy((allocator *)(iVar1 + -0xc))" identifier (argument_list "((allocator *)(iVar1 + -0xc))" ( (cast_expression "(allocator *)(iVar1 + -0xc)" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0xc)" ( (binary_expression "iVar1 + -0xc" identifier + number_literal) ))) ))) ;)))) })) })) (return_statement "return;" return ;) })))
(translation_unit "/* void std::__facet_shims::(anonymous namespace)::__destroy_string<char>(void*) */\n\nvoid std::__facet_shims::(anonymous_namespace)::__destroy_string<char>(void *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n                    /* WARNING: Load size is inaccurate */\n  iVar1 = *param_1;\n  if ((allocator *)(iVar1 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0) {\n    if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n      iVar2 = *(int *)(iVar1 + -4);\n      *(int *)(iVar1 + -4) = iVar2 + -1;\n    }\n    else {\n      SYNC(0);\n      iVar2 = *(int *)(iVar1 + -4);\n      *(int *)(iVar1 + -4) = iVar2 + -1;\n      SYNC(0);\n    }\n    if (iVar2 < 1) {\n      std::string::_Rep::_M_destroy((allocator *)(iVar1 + -0xc));\n    }\n  }\n  return;\n}\n\n" comment (function_definition "void std::__facet_shims::(anonymous_namespace)::__destroy_string<char>(void *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n                    /* WARNING: Load size is inaccurate */\n  iVar1 = *param_1;\n  if ((allocator *)(iVar1 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0) {\n    if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n      iVar2 = *(int *)(iVar1 + -4);\n      *(int *)(iVar1 + -4) = iVar2 + -1;\n    }\n    else {\n      SYNC(0);\n      iVar2 = *(int *)(iVar1 + -4);\n      *(int *)(iVar1 + -4) = iVar2 + -1;\n      SYNC(0);\n    }\n    if (iVar2 < 1) {\n      std::string::_Rep::_M_destroy((allocator *)(iVar1 + -0xc));\n    }\n  }\n  return;\n}" primitive_type (ERROR "std::__facet_shims::(anonymous_namespace)::__destroy_string<char>(void" identifier : : identifier : : ( identifier ) : : identifier < primitive_type > ( primitive_type) (pointer_declarator "*param_1" * identifier) (ERROR ")" )) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n                    /* WARNING: Load size is inaccurate */\n  iVar1 = *param_1;\n  if ((allocator *)(iVar1 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0) {\n    if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n      iVar2 = *(int *)(iVar1 + -4);\n      *(int *)(iVar1 + -4) = iVar2 + -1;\n    }\n    else {\n      SYNC(0);\n      iVar2 = *(int *)(iVar1 + -4);\n      *(int *)(iVar1 + -4) = iVar2 + -1;\n      SYNC(0);\n    }\n    if (iVar2 < 1) {\n      std::string::_Rep::_M_destroy((allocator *)(iVar1 + -0xc));\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) comment (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if ((allocator *)(iVar1 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0) {\n    if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n      iVar2 = *(int *)(iVar1 + -4);\n      *(int *)(iVar1 + -4) = iVar2 + -1;\n    }\n    else {\n      SYNC(0);\n      iVar2 = *(int *)(iVar1 + -4);\n      *(int *)(iVar1 + -4) = iVar2 + -1;\n      SYNC(0);\n    }\n    if (iVar2 < 1) {\n      std::string::_Rep::_M_destroy((allocator *)(iVar1 + -0xc));\n    }\n  }" if (parenthesized_expression "((allocator *)(iVar1 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0)" ( (binary_expression "(allocator *)(iVar1 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0" (cast_expression "(allocator *)(iVar1 + -0xc)" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0xc)" ( (binary_expression "iVar1 + -0xc" identifier + number_literal) ))) != (cast_expression "(allocator *)PTR__S_empty_rep_storage_004322d0" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n    if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n      iVar2 = *(int *)(iVar1 + -4);\n      *(int *)(iVar1 + -4) = iVar2 + -1;\n    }\n    else {\n      SYNC(0);\n      iVar2 = *(int *)(iVar1 + -4);\n      *(int *)(iVar1 + -4) = iVar2 + -1;\n      SYNC(0);\n    }\n    if (iVar2 < 1) {\n      std::string::_Rep::_M_destroy((allocator *)(iVar1 + -0xc));\n    }\n  }" { (if_statement "if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n      iVar2 = *(int *)(iVar1 + -4);\n      *(int *)(iVar1 + -4) = iVar2 + -1;\n    }\n    else {\n      SYNC(0);\n      iVar2 = *(int *)(iVar1 + -4);\n      *(int *)(iVar1 + -4) = iVar2 + -1;\n      SYNC(0);\n    }" if (parenthesized_expression "(PTR___pthread_key_create_0043667c == (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_0043667c == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar2 = *(int *)(iVar1 + -4);\n      *(int *)(iVar1 + -4) = iVar2 + -1;\n    }" { (expression_statement "iVar2 = *(int *)(iVar1 + -4);" (assignment_expression "iVar2 = *(int *)(iVar1 + -4)" identifier = (pointer_expression "*(int *)(iVar1 + -4)" * (cast_expression "(int *)(iVar1 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -4)" ( (binary_expression "iVar1 + -4" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(iVar1 + -4) = iVar2 + -1;" (assignment_expression "*(int *)(iVar1 + -4) = iVar2 + -1" (pointer_expression "*(int *)(iVar1 + -4)" * (cast_expression "(int *)(iVar1 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -4)" ( (binary_expression "iVar1 + -4" identifier + number_literal) )))) = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n      SYNC(0);\n      iVar2 = *(int *)(iVar1 + -4);\n      *(int *)(iVar1 + -4) = iVar2 + -1;\n      SYNC(0);\n    }" else (compound_statement "{\n      SYNC(0);\n      iVar2 = *(int *)(iVar1 + -4);\n      *(int *)(iVar1 + -4) = iVar2 + -1;\n      SYNC(0);\n    }" { (expression_statement "SYNC(0);" (call_expression "SYNC(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (expression_statement "iVar2 = *(int *)(iVar1 + -4);" (assignment_expression "iVar2 = *(int *)(iVar1 + -4)" identifier = (pointer_expression "*(int *)(iVar1 + -4)" * (cast_expression "(int *)(iVar1 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -4)" ( (binary_expression "iVar1 + -4" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(iVar1 + -4) = iVar2 + -1;" (assignment_expression "*(int *)(iVar1 + -4) = iVar2 + -1" (pointer_expression "*(int *)(iVar1 + -4)" * (cast_expression "(int *)(iVar1 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -4)" ( (binary_expression "iVar1 + -4" identifier + number_literal) )))) = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (expression_statement "SYNC(0);" (call_expression "SYNC(0)" identifier (argument_list "(0)" ( number_literal ))) ;) }))) (if_statement "if (iVar2 < 1) {\n      std::string::_Rep::_M_destroy((allocator *)(iVar1 + -0xc));\n    }" if (parenthesized_expression "(iVar2 < 1)" ( (binary_expression "iVar2 < 1" identifier < number_literal) )) (compound_statement "{\n      std::string::_Rep::_M_destroy((allocator *)(iVar1 + -0xc));\n    }" { (labeled_statement "std::string::_Rep::_M_destroy((allocator *)(iVar1 + -0xc));" statement_identifier : (ERROR ":" :) (labeled_statement "string::_Rep::_M_destroy((allocator *)(iVar1 + -0xc));" statement_identifier : (ERROR ":" :) (labeled_statement "_Rep::_M_destroy((allocator *)(iVar1 + -0xc));" statement_identifier : (ERROR ":" :) (expression_statement "_M_destroy((allocator *)(iVar1 + -0xc));" (call_expression "_M_destroy((allocator *)(iVar1 + -0xc))" identifier (argument_list "((allocator *)(iVar1 + -0xc))" ( (cast_expression "(allocator *)(iVar1 + -0xc)" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0xc)" ( (binary_expression "iVar1 + -0xc" identifier + number_literal) ))) ))) ;)))) })) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_003090d4(int *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *param_1;\n  if ((allocator *)(iVar1 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0) {\n    if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n      iVar2 = *(int *)(iVar1 + -4);\n      *(int *)(iVar1 + -4) = iVar2 + -1;\n    }\n    else {\n      SYNC(0);\n      iVar2 = *(int *)(iVar1 + -4);\n      *(int *)(iVar1 + -4) = iVar2 + -1;\n      SYNC(0);\n    }\n    if (iVar2 < 1) {\n      std::string::_Rep::_M_destroy((allocator *)(iVar1 + -0xc));\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_003090d4(int *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *param_1;\n  if ((allocator *)(iVar1 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0) {\n    if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n      iVar2 = *(int *)(iVar1 + -4);\n      *(int *)(iVar1 + -4) = iVar2 + -1;\n    }\n    else {\n      SYNC(0);\n      iVar2 = *(int *)(iVar1 + -4);\n      *(int *)(iVar1 + -4) = iVar2 + -1;\n      SYNC(0);\n    }\n    if (iVar2 < 1) {\n      std::string::_Rep::_M_destroy((allocator *)(iVar1 + -0xc));\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_003090d4(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *param_1;\n  if ((allocator *)(iVar1 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0) {\n    if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n      iVar2 = *(int *)(iVar1 + -4);\n      *(int *)(iVar1 + -4) = iVar2 + -1;\n    }\n    else {\n      SYNC(0);\n      iVar2 = *(int *)(iVar1 + -4);\n      *(int *)(iVar1 + -4) = iVar2 + -1;\n      SYNC(0);\n    }\n    if (iVar2 < 1) {\n      std::string::_Rep::_M_destroy((allocator *)(iVar1 + -0xc));\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if ((allocator *)(iVar1 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0) {\n    if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n      iVar2 = *(int *)(iVar1 + -4);\n      *(int *)(iVar1 + -4) = iVar2 + -1;\n    }\n    else {\n      SYNC(0);\n      iVar2 = *(int *)(iVar1 + -4);\n      *(int *)(iVar1 + -4) = iVar2 + -1;\n      SYNC(0);\n    }\n    if (iVar2 < 1) {\n      std::string::_Rep::_M_destroy((allocator *)(iVar1 + -0xc));\n    }\n  }" if (parenthesized_expression "((allocator *)(iVar1 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0)" ( (binary_expression "(allocator *)(iVar1 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0" (cast_expression "(allocator *)(iVar1 + -0xc)" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0xc)" ( (binary_expression "iVar1 + -0xc" identifier + number_literal) ))) != (cast_expression "(allocator *)PTR__S_empty_rep_storage_004322d0" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n    if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n      iVar2 = *(int *)(iVar1 + -4);\n      *(int *)(iVar1 + -4) = iVar2 + -1;\n    }\n    else {\n      SYNC(0);\n      iVar2 = *(int *)(iVar1 + -4);\n      *(int *)(iVar1 + -4) = iVar2 + -1;\n      SYNC(0);\n    }\n    if (iVar2 < 1) {\n      std::string::_Rep::_M_destroy((allocator *)(iVar1 + -0xc));\n    }\n  }" { (if_statement "if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n      iVar2 = *(int *)(iVar1 + -4);\n      *(int *)(iVar1 + -4) = iVar2 + -1;\n    }\n    else {\n      SYNC(0);\n      iVar2 = *(int *)(iVar1 + -4);\n      *(int *)(iVar1 + -4) = iVar2 + -1;\n      SYNC(0);\n    }" if (parenthesized_expression "(PTR___pthread_key_create_0043667c == (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_0043667c == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar2 = *(int *)(iVar1 + -4);\n      *(int *)(iVar1 + -4) = iVar2 + -1;\n    }" { (expression_statement "iVar2 = *(int *)(iVar1 + -4);" (assignment_expression "iVar2 = *(int *)(iVar1 + -4)" identifier = (pointer_expression "*(int *)(iVar1 + -4)" * (cast_expression "(int *)(iVar1 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -4)" ( (binary_expression "iVar1 + -4" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(iVar1 + -4) = iVar2 + -1;" (assignment_expression "*(int *)(iVar1 + -4) = iVar2 + -1" (pointer_expression "*(int *)(iVar1 + -4)" * (cast_expression "(int *)(iVar1 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -4)" ( (binary_expression "iVar1 + -4" identifier + number_literal) )))) = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n      SYNC(0);\n      iVar2 = *(int *)(iVar1 + -4);\n      *(int *)(iVar1 + -4) = iVar2 + -1;\n      SYNC(0);\n    }" else (compound_statement "{\n      SYNC(0);\n      iVar2 = *(int *)(iVar1 + -4);\n      *(int *)(iVar1 + -4) = iVar2 + -1;\n      SYNC(0);\n    }" { (expression_statement "SYNC(0);" (call_expression "SYNC(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (expression_statement "iVar2 = *(int *)(iVar1 + -4);" (assignment_expression "iVar2 = *(int *)(iVar1 + -4)" identifier = (pointer_expression "*(int *)(iVar1 + -4)" * (cast_expression "(int *)(iVar1 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -4)" ( (binary_expression "iVar1 + -4" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(iVar1 + -4) = iVar2 + -1;" (assignment_expression "*(int *)(iVar1 + -4) = iVar2 + -1" (pointer_expression "*(int *)(iVar1 + -4)" * (cast_expression "(int *)(iVar1 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -4)" ( (binary_expression "iVar1 + -4" identifier + number_literal) )))) = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (expression_statement "SYNC(0);" (call_expression "SYNC(0)" identifier (argument_list "(0)" ( number_literal ))) ;) }))) (if_statement "if (iVar2 < 1) {\n      std::string::_Rep::_M_destroy((allocator *)(iVar1 + -0xc));\n    }" if (parenthesized_expression "(iVar2 < 1)" ( (binary_expression "iVar2 < 1" identifier < number_literal) )) (compound_statement "{\n      std::string::_Rep::_M_destroy((allocator *)(iVar1 + -0xc));\n    }" { (labeled_statement "std::string::_Rep::_M_destroy((allocator *)(iVar1 + -0xc));" statement_identifier : (ERROR ":" :) (labeled_statement "string::_Rep::_M_destroy((allocator *)(iVar1 + -0xc));" statement_identifier : (ERROR ":" :) (labeled_statement "_Rep::_M_destroy((allocator *)(iVar1 + -0xc));" statement_identifier : (ERROR ":" :) (expression_statement "_M_destroy((allocator *)(iVar1 + -0xc));" (call_expression "_M_destroy((allocator *)(iVar1 + -0xc))" identifier (argument_list "((allocator *)(iVar1 + -0xc))" ( (cast_expression "(allocator *)(iVar1 + -0xc)" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0xc)" ( (binary_expression "iVar1 + -0xc" identifier + number_literal) ))) ))) ;)))) })) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) 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 ( LIT ))) ;) (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)) ;) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (labeled_statement statement_identifier : (ERROR :) (labeled_statement statement_identifier : (ERROR :) (labeled_statement statement_identifier : (ERROR :) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) ))) ;)))) })) })) (return_statement return ;) })))
(function_definition "void FUN_003090d4(int *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *param_1;\n  if ((allocator *)(iVar1 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0) {\n    if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n      iVar2 = *(int *)(iVar1 + -4);\n      *(int *)(iVar1 + -4) = iVar2 + -1;\n    }\n    else {\n      SYNC(0);\n      iVar2 = *(int *)(iVar1 + -4);\n      *(int *)(iVar1 + -4) = iVar2 + -1;\n      SYNC(0);\n    }\n    if (iVar2 < 1) {\n      std::string::_Rep::_M_destroy((allocator *)(iVar1 + -0xc));\n    }\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_003090d4(int *param_1)" (identifier "FUN_003090d4") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *param_1;\n  if ((allocator *)(iVar1 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0) {\n    if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n      iVar2 = *(int *)(iVar1 + -4);\n      *(int *)(iVar1 + -4) = iVar2 + -1;\n    }\n    else {\n      SYNC(0);\n      iVar2 = *(int *)(iVar1 + -4);\n      *(int *)(iVar1 + -4) = iVar2 + -1;\n      SYNC(0);\n    }\n    if (iVar2 < 1) {\n      std::string::_Rep::_M_destroy((allocator *)(iVar1 + -0xc));\n    }\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" (identifier "iVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if ((allocator *)(iVar1 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0) {\n    if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n      iVar2 = *(int *)(iVar1 + -4);\n      *(int *)(iVar1 + -4) = iVar2 + -1;\n    }\n    else {\n      SYNC(0);\n      iVar2 = *(int *)(iVar1 + -4);\n      *(int *)(iVar1 + -4) = iVar2 + -1;\n      SYNC(0);\n    }\n    if (iVar2 < 1) {\n      std::string::_Rep::_M_destroy((allocator *)(iVar1 + -0xc));\n    }\n  }" (if "if") (parenthesized_expression "((allocator *)(iVar1 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0)" (( "(") (binary_expression "(allocator *)(iVar1 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0" (cast_expression "(allocator *)(iVar1 + -0xc)" (( "(") (type_descriptor "allocator *" (type_identifier "allocator") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + -0xc)" (( "(") (binary_expression "iVar1 + -0xc" (identifier "iVar1") (+ "+") (number_literal "-0xc")) () ")"))) (!= "!=") (cast_expression "(allocator *)PTR__S_empty_rep_storage_004322d0" (( "(") (type_descriptor "allocator *" (type_identifier "allocator") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR__S_empty_rep_storage_004322d0"))) () ")")) (compound_statement "{\n    if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n      iVar2 = *(int *)(iVar1 + -4);\n      *(int *)(iVar1 + -4) = iVar2 + -1;\n    }\n    else {\n      SYNC(0);\n      iVar2 = *(int *)(iVar1 + -4);\n      *(int *)(iVar1 + -4) = iVar2 + -1;\n      SYNC(0);\n    }\n    if (iVar2 < 1) {\n      std::string::_Rep::_M_destroy((allocator *)(iVar1 + -0xc));\n    }\n  }" ({ "{") (if_statement "if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n      iVar2 = *(int *)(iVar1 + -4);\n      *(int *)(iVar1 + -4) = iVar2 + -1;\n    }\n    else {\n      SYNC(0);\n      iVar2 = *(int *)(iVar1 + -4);\n      *(int *)(iVar1 + -4) = iVar2 + -1;\n      SYNC(0);\n    }" (if "if") (parenthesized_expression "(PTR___pthread_key_create_0043667c == (undefined *)0x0)" (( "(") (binary_expression "PTR___pthread_key_create_0043667c == (undefined *)0x0" (identifier "PTR___pthread_key_create_0043667c") (== "==") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      iVar2 = *(int *)(iVar1 + -4);\n      *(int *)(iVar1 + -4) = iVar2 + -1;\n    }" ({ "{") (expression_statement "iVar2 = *(int *)(iVar1 + -4);" (assignment_expression "iVar2 = *(int *)(iVar1 + -4)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(iVar1 + -4)" (* "*") (cast_expression "(int *)(iVar1 + -4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + -4)" (( "(") (binary_expression "iVar1 + -4" (identifier "iVar1") (+ "+") (number_literal "-4")) () ")"))))) (; ";")) (expression_statement "*(int *)(iVar1 + -4) = iVar2 + -1;" (assignment_expression "*(int *)(iVar1 + -4) = iVar2 + -1" (pointer_expression "*(int *)(iVar1 + -4)" (* "*") (cast_expression "(int *)(iVar1 + -4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + -4)" (( "(") (binary_expression "iVar1 + -4" (identifier "iVar1") (+ "+") (number_literal "-4")) () ")")))) (= "=") (binary_expression "iVar2 + -1" (identifier "iVar2") (+ "+") (number_literal "-1"))) (; ";")) (} "}")) (else_clause "else {\n      SYNC(0);\n      iVar2 = *(int *)(iVar1 + -4);\n      *(int *)(iVar1 + -4) = iVar2 + -1;\n      SYNC(0);\n    }" (else "else") (compound_statement "{\n      SYNC(0);\n      iVar2 = *(int *)(iVar1 + -4);\n      *(int *)(iVar1 + -4) = iVar2 + -1;\n      SYNC(0);\n    }" ({ "{") (expression_statement "SYNC(0);" (call_expression "SYNC(0)" (identifier "SYNC") (argument_list "(0)" (( "(") (number_literal "0") () ")"))) (; ";")) (expression_statement "iVar2 = *(int *)(iVar1 + -4);" (assignment_expression "iVar2 = *(int *)(iVar1 + -4)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(iVar1 + -4)" (* "*") (cast_expression "(int *)(iVar1 + -4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + -4)" (( "(") (binary_expression "iVar1 + -4" (identifier "iVar1") (+ "+") (number_literal "-4")) () ")"))))) (; ";")) (expression_statement "*(int *)(iVar1 + -4) = iVar2 + -1;" (assignment_expression "*(int *)(iVar1 + -4) = iVar2 + -1" (pointer_expression "*(int *)(iVar1 + -4)" (* "*") (cast_expression "(int *)(iVar1 + -4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + -4)" (( "(") (binary_expression "iVar1 + -4" (identifier "iVar1") (+ "+") (number_literal "-4")) () ")")))) (= "=") (binary_expression "iVar2 + -1" (identifier "iVar2") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "SYNC(0);" (call_expression "SYNC(0)" (identifier "SYNC") (argument_list "(0)" (( "(") (number_literal "0") () ")"))) (; ";")) (} "}")))) (if_statement "if (iVar2 < 1) {\n      std::string::_Rep::_M_destroy((allocator *)(iVar1 + -0xc));\n    }" (if "if") (parenthesized_expression "(iVar2 < 1)" (( "(") (binary_expression "iVar2 < 1" (identifier "iVar2") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n      std::string::_Rep::_M_destroy((allocator *)(iVar1 + -0xc));\n    }" ({ "{") (labeled_statement "std::string::_Rep::_M_destroy((allocator *)(iVar1 + -0xc));" (statement_identifier "std") (: ":") (ERROR ":" (: ":")) (labeled_statement "string::_Rep::_M_destroy((allocator *)(iVar1 + -0xc));" (statement_identifier "string") (: ":") (ERROR ":" (: ":")) (labeled_statement "_Rep::_M_destroy((allocator *)(iVar1 + -0xc));" (statement_identifier "_Rep") (: ":") (ERROR ":" (: ":")) (expression_statement "_M_destroy((allocator *)(iVar1 + -0xc));" (call_expression "_M_destroy((allocator *)(iVar1 + -0xc))" (identifier "_M_destroy") (argument_list "((allocator *)(iVar1 + -0xc))" (( "(") (cast_expression "(allocator *)(iVar1 + -0xc)" (( "(") (type_descriptor "allocator *" (type_identifier "allocator") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + -0xc)" (( "(") (binary_expression "iVar1 + -0xc" (identifier "iVar1") (+ "+") (number_literal "-0xc")) () ")"))) () ")"))) (; ";"))))) (} "}"))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* void std::__facet_shims::(anonymous namespace)::__destroy_string<char>(void*) */

void std::__facet_shims::(anonymous_namespace)::__destroy_string<char>(void *param_1)

{
  int var_1;
  int var_3;
  
                    /* WARNING: Load size is inaccurate */
  var_1 = *param_1;
  if ((type_1 *)(var_1 + -0xc) != (type_1 *)PTR__S_empty_rep_storage_004322d0) {
    if (var_2 == (type_2 *)0x0) {
      var_3 = *(int *)(var_1 + -4);
      *(int *)(var_1 + -4) = var_3 + -1;
    }
    else {
      var_4(0);
      var_3 = *(int *)(var_1 + -4);
      *(int *)(var_1 + -4) = var_3 + -1;
      var_4(0);
    }
    if (var_3 < 1) {
      std::string::_Rep::var_5((type_1 *)(var_1 + -0xc));
    }
  }
  return;
}


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

void MASKED(int *param_1)

{
  int iVar1;
  int iVar2;
  
  iVar1 = *param_1;
  if ((allocator *)(iVar1 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0) {
    if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {
      iVar2 = *(int *)(iVar1 + -4);
      *(int *)(iVar1 + -4) = iVar2 + -1;
    }
    else {
      SYNC(0);
      iVar2 = *(int *)(iVar1 + -4);
      *(int *)(iVar1 + -4) = iVar2 + -1;
      SYNC(0);
    }
    if (iVar2 < 1) {
      std::string::_Rep::_M_destroy((allocator *)(iVar1 + -0xc));
    }
  }
  return;
}

