
/* std::wstring::TEMPNAMEPLACEHOLDERVALUE(std::wstring const&) */

wstring * __thiscall std::wstring::operator=(wstring *this,wstring *param_1)

{
  int *piVar1;
  long lVar2;
  long lVar3;
  int iVar4;
  allocator aStack_9;
  
  lVar3 = *(long *)param_1;
  if (*(long *)this != lVar3) {
    if (*(int *)(lVar3 + -8) < 0) {
      lVar3 = _Rep::_M_clone((_Rep *)(lVar3 + -0x18),&aStack_9,0);
    }
    else if ((_Rep *)(lVar3 + -0x18) != (_Rep *)&_Rep::_S_empty_rep_storage) {
      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {
        *(int *)(lVar3 + -8) = *(int *)(lVar3 + -8) + 1;
      }
      else {
        LOCK();
        *(int *)(lVar3 + -8) = *(int *)(lVar3 + -8) + 1;
        UNLOCK();
      }
    }
    lVar2 = *(long *)this;
    if ((allocator *)(lVar2 + -0x18) != (allocator *)&_Rep::_S_empty_rep_storage) {
      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {
        iVar4 = *(int *)(lVar2 + -8);
        *(int *)(lVar2 + -8) = iVar4 + -1;
      }
      else {
        LOCK();
        piVar1 = (int *)(lVar2 + -8);
        iVar4 = *piVar1;
        *piVar1 = *piVar1 + -1;
        UNLOCK();
      }
      if (iVar4 < 1) {
        _Rep::_M_destroy((allocator *)(lVar2 + -0x18));
      }
    }
    *(long *)this = lVar3;
  }
  return this;
}



long * thunk_FUN_002f3160(long *param_1,long *param_2)

{
  int *piVar1;
  int iVar2;
  long lVar3;
  long lVar4;
  undefined1 uStack_9;
  
  lVar4 = *param_2;
  if (*param_1 != lVar4) {
    if (*(int *)(lVar4 + -8) < 0) {
      lVar4 = FUN_002f2a20((undefined8 *)(lVar4 + -0x18),&uStack_9,0);
    }
    else if ((undefined8 *)(lVar4 + -0x18) != &DAT_003cbdc0) {
      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {
        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;
      }
      else {
        LOCK();
        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;
        UNLOCK();
      }
    }
    lVar3 = *param_1;
    if ((undefined8 *)(lVar3 + -0x18) != &DAT_003cbdc0) {
      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {
        iVar2 = *(int *)(lVar3 + -8);
        *(int *)(lVar3 + -8) = iVar2 + -1;
      }
      else {
        LOCK();
        piVar1 = (int *)(lVar3 + -8);
        iVar2 = *piVar1;
        *piVar1 = *piVar1 + -1;
        UNLOCK();
      }
      if (iVar2 < 1) {
        thunk_FUN_00276d20((undefined8 *)(lVar3 + -0x18),&uStack_9);
      }
    }
    *param_1 = lVar4;
  }
  return param_1;
}


JMP 0x002f3160
(translation_unit "long * thunk_FUN_002f3160(long *param_1,long *param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  long lVar3;\n  long lVar4;\n  undefined1 uStack_9;\n  \n  lVar4 = *param_2;\n  if (*param_1 != lVar4) {\n    if (*(int *)(lVar4 + -8) < 0) {\n      lVar4 = FUN_002f2a20((undefined8 *)(lVar4 + -0x18),&uStack_9,0);\n    }\n    else if ((undefined8 *)(lVar4 + -0x18) != &DAT_003cbdc0) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n        UNLOCK();\n      }\n    }\n    lVar3 = *param_1;\n    if ((undefined8 *)(lVar3 + -0x18) != &DAT_003cbdc0) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        iVar2 = *(int *)(lVar3 + -8);\n        *(int *)(lVar3 + -8) = iVar2 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(lVar3 + -8);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar2 < 1) {\n        thunk_FUN_00276d20((undefined8 *)(lVar3 + -0x18),&uStack_9);\n      }\n    }\n    *param_1 = lVar4;\n  }\n  return param_1;\n}\n\n" (function_definition "long * thunk_FUN_002f3160(long *param_1,long *param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  long lVar3;\n  long lVar4;\n  undefined1 uStack_9;\n  \n  lVar4 = *param_2;\n  if (*param_1 != lVar4) {\n    if (*(int *)(lVar4 + -8) < 0) {\n      lVar4 = FUN_002f2a20((undefined8 *)(lVar4 + -0x18),&uStack_9,0);\n    }\n    else if ((undefined8 *)(lVar4 + -0x18) != &DAT_003cbdc0) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n        UNLOCK();\n      }\n    }\n    lVar3 = *param_1;\n    if ((undefined8 *)(lVar3 + -0x18) != &DAT_003cbdc0) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        iVar2 = *(int *)(lVar3 + -8);\n        *(int *)(lVar3 + -8) = iVar2 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(lVar3 + -8);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar2 < 1) {\n        thunk_FUN_00276d20((undefined8 *)(lVar3 + -0x18),&uStack_9);\n      }\n    }\n    *param_1 = lVar4;\n  }\n  return param_1;\n}" (sized_type_specifier "long" long) (pointer_declarator "* thunk_FUN_002f3160(long *param_1,long *param_2)" * (function_declarator "thunk_FUN_002f3160(long *param_1,long *param_2)" identifier (parameter_list "(long *param_1,long *param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long *param_2" (sized_type_specifier "long" long) (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  long lVar3;\n  long lVar4;\n  undefined1 uStack_9;\n  \n  lVar4 = *param_2;\n  if (*param_1 != lVar4) {\n    if (*(int *)(lVar4 + -8) < 0) {\n      lVar4 = FUN_002f2a20((undefined8 *)(lVar4 + -0x18),&uStack_9,0);\n    }\n    else if ((undefined8 *)(lVar4 + -0x18) != &DAT_003cbdc0) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n        UNLOCK();\n      }\n    }\n    lVar3 = *param_1;\n    if ((undefined8 *)(lVar3 + -0x18) != &DAT_003cbdc0) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        iVar2 = *(int *)(lVar3 + -8);\n        *(int *)(lVar3 + -8) = iVar2 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(lVar3 + -8);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar2 < 1) {\n        thunk_FUN_00276d20((undefined8 *)(lVar3 + -0x18),&uStack_9);\n      }\n    }\n    *param_1 = lVar4;\n  }\n  return param_1;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined1 uStack_9;" type_identifier identifier ;) (expression_statement "lVar4 = *param_2;" (assignment_expression "lVar4 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (if_statement "if (*param_1 != lVar4) {\n    if (*(int *)(lVar4 + -8) < 0) {\n      lVar4 = FUN_002f2a20((undefined8 *)(lVar4 + -0x18),&uStack_9,0);\n    }\n    else if ((undefined8 *)(lVar4 + -0x18) != &DAT_003cbdc0) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n        UNLOCK();\n      }\n    }\n    lVar3 = *param_1;\n    if ((undefined8 *)(lVar3 + -0x18) != &DAT_003cbdc0) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        iVar2 = *(int *)(lVar3 + -8);\n        *(int *)(lVar3 + -8) = iVar2 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(lVar3 + -8);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar2 < 1) {\n        thunk_FUN_00276d20((undefined8 *)(lVar3 + -0x18),&uStack_9);\n      }\n    }\n    *param_1 = lVar4;\n  }" if (parenthesized_expression "(*param_1 != lVar4)" ( (binary_expression "*param_1 != lVar4" (pointer_expression "*param_1" * identifier) != identifier) )) (compound_statement "{\n    if (*(int *)(lVar4 + -8) < 0) {\n      lVar4 = FUN_002f2a20((undefined8 *)(lVar4 + -0x18),&uStack_9,0);\n    }\n    else if ((undefined8 *)(lVar4 + -0x18) != &DAT_003cbdc0) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n        UNLOCK();\n      }\n    }\n    lVar3 = *param_1;\n    if ((undefined8 *)(lVar3 + -0x18) != &DAT_003cbdc0) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        iVar2 = *(int *)(lVar3 + -8);\n        *(int *)(lVar3 + -8) = iVar2 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(lVar3 + -8);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar2 < 1) {\n        thunk_FUN_00276d20((undefined8 *)(lVar3 + -0x18),&uStack_9);\n      }\n    }\n    *param_1 = lVar4;\n  }" { (if_statement "if (*(int *)(lVar4 + -8) < 0) {\n      lVar4 = FUN_002f2a20((undefined8 *)(lVar4 + -0x18),&uStack_9,0);\n    }\n    else if ((undefined8 *)(lVar4 + -0x18) != &DAT_003cbdc0) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n        UNLOCK();\n      }\n    }" if (parenthesized_expression "(*(int *)(lVar4 + -8) < 0)" ( (binary_expression "*(int *)(lVar4 + -8) < 0" (pointer_expression "*(int *)(lVar4 + -8)" * (cast_expression "(int *)(lVar4 + -8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + -8)" ( (binary_expression "lVar4 + -8" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\n      lVar4 = FUN_002f2a20((undefined8 *)(lVar4 + -0x18),&uStack_9,0);\n    }" { (expression_statement "lVar4 = FUN_002f2a20((undefined8 *)(lVar4 + -0x18),&uStack_9,0);" (assignment_expression "lVar4 = FUN_002f2a20((undefined8 *)(lVar4 + -0x18),&uStack_9,0)" identifier = (call_expression "FUN_002f2a20((undefined8 *)(lVar4 + -0x18),&uStack_9,0)" identifier (argument_list "((undefined8 *)(lVar4 + -0x18),&uStack_9,0)" ( (cast_expression "(undefined8 *)(lVar4 + -0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + -0x18)" ( (binary_expression "lVar4 + -0x18" identifier + number_literal) ))) , (pointer_expression "&uStack_9" & identifier) , number_literal )))) ;) }) (else_clause "else if ((undefined8 *)(lVar4 + -0x18) != &DAT_003cbdc0) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n        UNLOCK();\n      }\n    }" else (if_statement "if ((undefined8 *)(lVar4 + -0x18) != &DAT_003cbdc0) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n        UNLOCK();\n      }\n    }" if (parenthesized_expression "((undefined8 *)(lVar4 + -0x18) != &DAT_003cbdc0)" ( (binary_expression "(undefined8 *)(lVar4 + -0x18) != &DAT_003cbdc0" (cast_expression "(undefined8 *)(lVar4 + -0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + -0x18)" ( (binary_expression "lVar4 + -0x18" identifier + number_literal) ))) != (pointer_expression "&DAT_003cbdc0" & identifier)) )) (compound_statement "{\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n        UNLOCK();\n      }\n    }" { (if_statement "if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n        UNLOCK();\n      }" if (parenthesized_expression "(PTR___pthread_key_create_003bdee8 == (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_003bdee8 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n      }" { (expression_statement "*(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;" (assignment_expression "*(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1" (pointer_expression "*(int *)(lVar4 + -8)" * (cast_expression "(int *)(lVar4 + -8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + -8)" ( (binary_expression "lVar4 + -8" identifier + number_literal) )))) = (binary_expression "*(int *)(lVar4 + -8) + 1" (pointer_expression "*(int *)(lVar4 + -8)" * (cast_expression "(int *)(lVar4 + -8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + -8)" ( (binary_expression "lVar4 + -8" identifier + number_literal) )))) + number_literal)) ;) }) (else_clause "else {\n        LOCK();\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n        UNLOCK();\n      }" else (compound_statement "{\n        LOCK();\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n        UNLOCK();\n      }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;" (assignment_expression "*(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1" (pointer_expression "*(int *)(lVar4 + -8)" * (cast_expression "(int *)(lVar4 + -8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + -8)" ( (binary_expression "lVar4 + -8" identifier + number_literal) )))) = (binary_expression "*(int *)(lVar4 + -8) + 1" (pointer_expression "*(int *)(lVar4 + -8)" * (cast_expression "(int *)(lVar4 + -8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + -8)" ( (binary_expression "lVar4 + -8" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }))) })))) (expression_statement "lVar3 = *param_1;" (assignment_expression "lVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if ((undefined8 *)(lVar3 + -0x18) != &DAT_003cbdc0) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        iVar2 = *(int *)(lVar3 + -8);\n        *(int *)(lVar3 + -8) = iVar2 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(lVar3 + -8);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar2 < 1) {\n        thunk_FUN_00276d20((undefined8 *)(lVar3 + -0x18),&uStack_9);\n      }\n    }" if (parenthesized_expression "((undefined8 *)(lVar3 + -0x18) != &DAT_003cbdc0)" ( (binary_expression "(undefined8 *)(lVar3 + -0x18) != &DAT_003cbdc0" (cast_expression "(undefined8 *)(lVar3 + -0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + -0x18)" ( (binary_expression "lVar3 + -0x18" identifier + number_literal) ))) != (pointer_expression "&DAT_003cbdc0" & identifier)) )) (compound_statement "{\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        iVar2 = *(int *)(lVar3 + -8);\n        *(int *)(lVar3 + -8) = iVar2 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(lVar3 + -8);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar2 < 1) {\n        thunk_FUN_00276d20((undefined8 *)(lVar3 + -0x18),&uStack_9);\n      }\n    }" { (if_statement "if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        iVar2 = *(int *)(lVar3 + -8);\n        *(int *)(lVar3 + -8) = iVar2 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(lVar3 + -8);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" if (parenthesized_expression "(PTR___pthread_key_create_003bdee8 == (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_003bdee8 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        iVar2 = *(int *)(lVar3 + -8);\n        *(int *)(lVar3 + -8) = iVar2 + -1;\n      }" { (expression_statement "iVar2 = *(int *)(lVar3 + -8);" (assignment_expression "iVar2 = *(int *)(lVar3 + -8)" identifier = (pointer_expression "*(int *)(lVar3 + -8)" * (cast_expression "(int *)(lVar3 + -8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + -8)" ( (binary_expression "lVar3 + -8" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(lVar3 + -8) = iVar2 + -1;" (assignment_expression "*(int *)(lVar3 + -8) = iVar2 + -1" (pointer_expression "*(int *)(lVar3 + -8)" * (cast_expression "(int *)(lVar3 + -8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + -8)" ( (binary_expression "lVar3 + -8" identifier + number_literal) )))) = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n        LOCK();\n        piVar1 = (int *)(lVar3 + -8);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" else (compound_statement "{\n        LOCK();\n        piVar1 = (int *)(lVar3 + -8);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar1 = (int *)(lVar3 + -8);" (assignment_expression "piVar1 = (int *)(lVar3 + -8)" identifier = (cast_expression "(int *)(lVar3 + -8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + -8)" ( (binary_expression "lVar3 + -8" identifier + number_literal) )))) ;) (expression_statement "iVar2 = *piVar1;" (assignment_expression "iVar2 = *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 (iVar2 < 1) {\n        thunk_FUN_00276d20((undefined8 *)(lVar3 + -0x18),&uStack_9);\n      }" if (parenthesized_expression "(iVar2 < 1)" ( (binary_expression "iVar2 < 1" identifier < number_literal) )) (compound_statement "{\n        thunk_FUN_00276d20((undefined8 *)(lVar3 + -0x18),&uStack_9);\n      }" { (expression_statement "thunk_FUN_00276d20((undefined8 *)(lVar3 + -0x18),&uStack_9);" (call_expression "thunk_FUN_00276d20((undefined8 *)(lVar3 + -0x18),&uStack_9)" identifier (argument_list "((undefined8 *)(lVar3 + -0x18),&uStack_9)" ( (cast_expression "(undefined8 *)(lVar3 + -0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + -0x18)" ( (binary_expression "lVar3 + -0x18" identifier + number_literal) ))) , (pointer_expression "&uStack_9" & identifier) ))) ;) })) })) (expression_statement "*param_1 = lVar4;" (assignment_expression "*param_1 = lVar4" (pointer_expression "*param_1" * identifier) = identifier) ;) })) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "/* std::wstring::TEMPNAMEPLACEHOLDERVALUE(std::wstring const&) */\n\nwstring * __thiscall std::wstring::operator=(wstring *this,wstring *param_1)\n\n{\n  int *piVar1;\n  long lVar2;\n  long lVar3;\n  int iVar4;\n  allocator aStack_9;\n  \n  lVar3 = *(long *)param_1;\n  if (*(long *)this != lVar3) {\n    if (*(int *)(lVar3 + -8) < 0) {\n      lVar3 = _Rep::_M_clone((_Rep *)(lVar3 + -0x18),&aStack_9,0);\n    }\n    else if ((_Rep *)(lVar3 + -0x18) != (_Rep *)&_Rep::_S_empty_rep_storage) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        *(int *)(lVar3 + -8) = *(int *)(lVar3 + -8) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(lVar3 + -8) = *(int *)(lVar3 + -8) + 1;\n        UNLOCK();\n      }\n    }\n    lVar2 = *(long *)this;\n    if ((allocator *)(lVar2 + -0x18) != (allocator *)&_Rep::_S_empty_rep_storage) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        iVar4 = *(int *)(lVar2 + -8);\n        *(int *)(lVar2 + -8) = iVar4 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(lVar2 + -8);\n        iVar4 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar4 < 1) {\n        _Rep::_M_destroy((allocator *)(lVar2 + -0x18));\n      }\n    }\n    *(long *)this = lVar3;\n  }\n  return this;\n}\n\n" comment (ERROR "wstring * __thiscall std::wstring::operator=(wstring *this,wstring *param_1)" (binary_expression "wstring * __thiscall std::wstring::operator=(wstring *this,wstring *param_1)" identifier * (assignment_expression "__thiscall std::wstring::operator=(wstring *this,wstring *param_1)" identifier (ERROR "std::wstring::operator" identifier : : identifier : : identifier) = (parenthesized_expression "(wstring *this,wstring *param_1)" ( (comma_expression "wstring *this,wstring *param_1" (binary_expression "wstring *this" identifier * identifier) , (binary_expression "wstring *param_1" identifier * identifier)) ))))) (compound_statement "{\n  int *piVar1;\n  long lVar2;\n  long lVar3;\n  int iVar4;\n  allocator aStack_9;\n  \n  lVar3 = *(long *)param_1;\n  if (*(long *)this != lVar3) {\n    if (*(int *)(lVar3 + -8) < 0) {\n      lVar3 = _Rep::_M_clone((_Rep *)(lVar3 + -0x18),&aStack_9,0);\n    }\n    else if ((_Rep *)(lVar3 + -0x18) != (_Rep *)&_Rep::_S_empty_rep_storage) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        *(int *)(lVar3 + -8) = *(int *)(lVar3 + -8) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(lVar3 + -8) = *(int *)(lVar3 + -8) + 1;\n        UNLOCK();\n      }\n    }\n    lVar2 = *(long *)this;\n    if ((allocator *)(lVar2 + -0x18) != (allocator *)&_Rep::_S_empty_rep_storage) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        iVar4 = *(int *)(lVar2 + -8);\n        *(int *)(lVar2 + -8) = iVar4 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(lVar2 + -8);\n        iVar4 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar4 < 1) {\n        _Rep::_M_destroy((allocator *)(lVar2 + -0x18));\n      }\n    }\n    *(long *)this = lVar3;\n  }\n  return this;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "allocator aStack_9;" type_identifier identifier ;) (expression_statement "lVar3 = *(long *)param_1;" (assignment_expression "lVar3 = *(long *)param_1" identifier = (pointer_expression "*(long *)param_1" * (cast_expression "(long *)param_1" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (*(long *)this != lVar3) {\n    if (*(int *)(lVar3 + -8) < 0) {\n      lVar3 = _Rep::_M_clone((_Rep *)(lVar3 + -0x18),&aStack_9,0);\n    }\n    else if ((_Rep *)(lVar3 + -0x18) != (_Rep *)&_Rep::_S_empty_rep_storage) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        *(int *)(lVar3 + -8) = *(int *)(lVar3 + -8) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(lVar3 + -8) = *(int *)(lVar3 + -8) + 1;\n        UNLOCK();\n      }\n    }\n    lVar2 = *(long *)this;\n    if ((allocator *)(lVar2 + -0x18) != (allocator *)&_Rep::_S_empty_rep_storage) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        iVar4 = *(int *)(lVar2 + -8);\n        *(int *)(lVar2 + -8) = iVar4 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(lVar2 + -8);\n        iVar4 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar4 < 1) {\n        _Rep::_M_destroy((allocator *)(lVar2 + -0x18));\n      }\n    }\n    *(long *)this = lVar3;\n  }" if (parenthesized_expression "(*(long *)this != lVar3)" ( (binary_expression "*(long *)this != lVar3" (pointer_expression "*(long *)this" * (cast_expression "(long *)this" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) != identifier) )) (compound_statement "{\n    if (*(int *)(lVar3 + -8) < 0) {\n      lVar3 = _Rep::_M_clone((_Rep *)(lVar3 + -0x18),&aStack_9,0);\n    }\n    else if ((_Rep *)(lVar3 + -0x18) != (_Rep *)&_Rep::_S_empty_rep_storage) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        *(int *)(lVar3 + -8) = *(int *)(lVar3 + -8) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(lVar3 + -8) = *(int *)(lVar3 + -8) + 1;\n        UNLOCK();\n      }\n    }\n    lVar2 = *(long *)this;\n    if ((allocator *)(lVar2 + -0x18) != (allocator *)&_Rep::_S_empty_rep_storage) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        iVar4 = *(int *)(lVar2 + -8);\n        *(int *)(lVar2 + -8) = iVar4 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(lVar2 + -8);\n        iVar4 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar4 < 1) {\n        _Rep::_M_destroy((allocator *)(lVar2 + -0x18));\n      }\n    }\n    *(long *)this = lVar3;\n  }" { (if_statement "if (*(int *)(lVar3 + -8) < 0) {\n      lVar3 = _Rep::_M_clone((_Rep *)(lVar3 + -0x18),&aStack_9,0);\n    }\n    else if ((_Rep *)(lVar3 + -0x18) != (_Rep *)&_Rep::_S_empty_rep_storage) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        *(int *)(lVar3 + -8) = *(int *)(lVar3 + -8) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(lVar3 + -8) = *(int *)(lVar3 + -8) + 1;\n        UNLOCK();\n      }\n    }" if (parenthesized_expression "(*(int *)(lVar3 + -8) < 0)" ( (binary_expression "*(int *)(lVar3 + -8) < 0" (pointer_expression "*(int *)(lVar3 + -8)" * (cast_expression "(int *)(lVar3 + -8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + -8)" ( (binary_expression "lVar3 + -8" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\n      lVar3 = _Rep::_M_clone((_Rep *)(lVar3 + -0x18),&aStack_9,0);\n    }" { (ERROR "lVar3 = _Rep::" (assignment_expression "lVar3 = _Rep" identifier = identifier) : :) (expression_statement "_M_clone((_Rep *)(lVar3 + -0x18),&aStack_9,0);" (call_expression "_M_clone((_Rep *)(lVar3 + -0x18),&aStack_9,0)" identifier (argument_list "((_Rep *)(lVar3 + -0x18),&aStack_9,0)" ( (cast_expression "(_Rep *)(lVar3 + -0x18)" ( (type_descriptor "_Rep *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + -0x18)" ( (binary_expression "lVar3 + -0x18" identifier + number_literal) ))) , (pointer_expression "&aStack_9" & identifier) , number_literal ))) ;) }) (else_clause "else if ((_Rep *)(lVar3 + -0x18) != (_Rep *)&_Rep::_S_empty_rep_storage) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        *(int *)(lVar3 + -8) = *(int *)(lVar3 + -8) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(lVar3 + -8) = *(int *)(lVar3 + -8) + 1;\n        UNLOCK();\n      }\n    }" else (if_statement "if ((_Rep *)(lVar3 + -0x18) != (_Rep *)&_Rep::_S_empty_rep_storage) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        *(int *)(lVar3 + -8) = *(int *)(lVar3 + -8) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(lVar3 + -8) = *(int *)(lVar3 + -8) + 1;\n        UNLOCK();\n      }\n    }" if (parenthesized_expression "((_Rep *)(lVar3 + -0x18) != (_Rep *)&_Rep::_S_empty_rep_storage)" ( (binary_expression "(_Rep *)(lVar3 + -0x18) != (_Rep *)&_Rep" (cast_expression "(_Rep *)(lVar3 + -0x18)" ( (type_descriptor "_Rep *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + -0x18)" ( (binary_expression "lVar3 + -0x18" identifier + number_literal) ))) != (cast_expression "(_Rep *)&_Rep" ( (type_descriptor "_Rep *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&_Rep" & identifier))) (ERROR "::_S_empty_rep_storage" : : identifier) )) (compound_statement "{\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        *(int *)(lVar3 + -8) = *(int *)(lVar3 + -8) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(lVar3 + -8) = *(int *)(lVar3 + -8) + 1;\n        UNLOCK();\n      }\n    }" { (if_statement "if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        *(int *)(lVar3 + -8) = *(int *)(lVar3 + -8) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(lVar3 + -8) = *(int *)(lVar3 + -8) + 1;\n        UNLOCK();\n      }" if (parenthesized_expression "(PTR___pthread_key_create_003bdee8 == (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_003bdee8 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        *(int *)(lVar3 + -8) = *(int *)(lVar3 + -8) + 1;\n      }" { (expression_statement "*(int *)(lVar3 + -8) = *(int *)(lVar3 + -8) + 1;" (assignment_expression "*(int *)(lVar3 + -8) = *(int *)(lVar3 + -8) + 1" (pointer_expression "*(int *)(lVar3 + -8)" * (cast_expression "(int *)(lVar3 + -8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + -8)" ( (binary_expression "lVar3 + -8" identifier + number_literal) )))) = (binary_expression "*(int *)(lVar3 + -8) + 1" (pointer_expression "*(int *)(lVar3 + -8)" * (cast_expression "(int *)(lVar3 + -8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + -8)" ( (binary_expression "lVar3 + -8" identifier + number_literal) )))) + number_literal)) ;) }) (else_clause "else {\n        LOCK();\n        *(int *)(lVar3 + -8) = *(int *)(lVar3 + -8) + 1;\n        UNLOCK();\n      }" else (compound_statement "{\n        LOCK();\n        *(int *)(lVar3 + -8) = *(int *)(lVar3 + -8) + 1;\n        UNLOCK();\n      }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(int *)(lVar3 + -8) = *(int *)(lVar3 + -8) + 1;" (assignment_expression "*(int *)(lVar3 + -8) = *(int *)(lVar3 + -8) + 1" (pointer_expression "*(int *)(lVar3 + -8)" * (cast_expression "(int *)(lVar3 + -8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + -8)" ( (binary_expression "lVar3 + -8" identifier + number_literal) )))) = (binary_expression "*(int *)(lVar3 + -8) + 1" (pointer_expression "*(int *)(lVar3 + -8)" * (cast_expression "(int *)(lVar3 + -8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + -8)" ( (binary_expression "lVar3 + -8" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }))) })))) (expression_statement "lVar2 = *(long *)this;" (assignment_expression "lVar2 = *(long *)this" identifier = (pointer_expression "*(long *)this" * (cast_expression "(long *)this" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if ((allocator *)(lVar2 + -0x18) != (allocator *)&_Rep::_S_empty_rep_storage) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        iVar4 = *(int *)(lVar2 + -8);\n        *(int *)(lVar2 + -8) = iVar4 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(lVar2 + -8);\n        iVar4 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar4 < 1) {\n        _Rep::_M_destroy((allocator *)(lVar2 + -0x18));\n      }\n    }" if (parenthesized_expression "((allocator *)(lVar2 + -0x18) != (allocator *)&_Rep::_S_empty_rep_storage)" ( (binary_expression "(allocator *)(lVar2 + -0x18) != (allocator *)&_Rep" (cast_expression "(allocator *)(lVar2 + -0x18)" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + -0x18)" ( (binary_expression "lVar2 + -0x18" identifier + number_literal) ))) != (cast_expression "(allocator *)&_Rep" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&_Rep" & identifier))) (ERROR "::_S_empty_rep_storage" : : identifier) )) (compound_statement "{\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        iVar4 = *(int *)(lVar2 + -8);\n        *(int *)(lVar2 + -8) = iVar4 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(lVar2 + -8);\n        iVar4 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar4 < 1) {\n        _Rep::_M_destroy((allocator *)(lVar2 + -0x18));\n      }\n    }" { (if_statement "if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        iVar4 = *(int *)(lVar2 + -8);\n        *(int *)(lVar2 + -8) = iVar4 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(lVar2 + -8);\n        iVar4 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" if (parenthesized_expression "(PTR___pthread_key_create_003bdee8 == (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_003bdee8 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        iVar4 = *(int *)(lVar2 + -8);\n        *(int *)(lVar2 + -8) = iVar4 + -1;\n      }" { (expression_statement "iVar4 = *(int *)(lVar2 + -8);" (assignment_expression "iVar4 = *(int *)(lVar2 + -8)" identifier = (pointer_expression "*(int *)(lVar2 + -8)" * (cast_expression "(int *)(lVar2 + -8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + -8)" ( (binary_expression "lVar2 + -8" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(lVar2 + -8) = iVar4 + -1;" (assignment_expression "*(int *)(lVar2 + -8) = iVar4 + -1" (pointer_expression "*(int *)(lVar2 + -8)" * (cast_expression "(int *)(lVar2 + -8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + -8)" ( (binary_expression "lVar2 + -8" identifier + number_literal) )))) = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n        LOCK();\n        piVar1 = (int *)(lVar2 + -8);\n        iVar4 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" else (compound_statement "{\n        LOCK();\n        piVar1 = (int *)(lVar2 + -8);\n        iVar4 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar1 = (int *)(lVar2 + -8);" (assignment_expression "piVar1 = (int *)(lVar2 + -8)" identifier = (cast_expression "(int *)(lVar2 + -8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + -8)" ( (binary_expression "lVar2 + -8" identifier + number_literal) )))) ;) (expression_statement "iVar4 = *piVar1;" (assignment_expression "iVar4 = *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 (iVar4 < 1) {\n        _Rep::_M_destroy((allocator *)(lVar2 + -0x18));\n      }" if (parenthesized_expression "(iVar4 < 1)" ( (binary_expression "iVar4 < 1" identifier < number_literal) )) (compound_statement "{\n        _Rep::_M_destroy((allocator *)(lVar2 + -0x18));\n      }" { (labeled_statement "_Rep::_M_destroy((allocator *)(lVar2 + -0x18));" statement_identifier : (ERROR ":" :) (expression_statement "_M_destroy((allocator *)(lVar2 + -0x18));" (call_expression "_M_destroy((allocator *)(lVar2 + -0x18))" identifier (argument_list "((allocator *)(lVar2 + -0x18))" ( (cast_expression "(allocator *)(lVar2 + -0x18)" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + -0x18)" ( (binary_expression "lVar2 + -0x18" identifier + number_literal) ))) ))) ;)) })) })) (expression_statement "*(long *)this = lVar3;" (assignment_expression "*(long *)this = lVar3" (pointer_expression "*(long *)this" * (cast_expression "(long *)this" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) })) (return_statement "return this;" return identifier ;) }))
(translation_unit "long * thunk_FUN_002f3160(long *param_1,long *param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  long lVar3;\n  long lVar4;\n  undefined1 uStack_9;\n  \n  lVar4 = *param_2;\n  if (*param_1 != lVar4) {\n    if (*(int *)(lVar4 + -8) < 0) {\n      lVar4 = FUN_002f2a20((undefined8 *)(lVar4 + -0x18),&uStack_9,0);\n    }\n    else if ((undefined8 *)(lVar4 + -0x18) != &DAT_003cbdc0) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n        UNLOCK();\n      }\n    }\n    lVar3 = *param_1;\n    if ((undefined8 *)(lVar3 + -0x18) != &DAT_003cbdc0) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        iVar2 = *(int *)(lVar3 + -8);\n        *(int *)(lVar3 + -8) = iVar2 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(lVar3 + -8);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar2 < 1) {\n        thunk_FUN_00276d20((undefined8 *)(lVar3 + -0x18),&uStack_9);\n      }\n    }\n    *param_1 = lVar4;\n  }\n  return param_1;\n}\n\n" (function_definition "long * thunk_FUN_002f3160(long *param_1,long *param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  long lVar3;\n  long lVar4;\n  undefined1 uStack_9;\n  \n  lVar4 = *param_2;\n  if (*param_1 != lVar4) {\n    if (*(int *)(lVar4 + -8) < 0) {\n      lVar4 = FUN_002f2a20((undefined8 *)(lVar4 + -0x18),&uStack_9,0);\n    }\n    else if ((undefined8 *)(lVar4 + -0x18) != &DAT_003cbdc0) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n        UNLOCK();\n      }\n    }\n    lVar3 = *param_1;\n    if ((undefined8 *)(lVar3 + -0x18) != &DAT_003cbdc0) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        iVar2 = *(int *)(lVar3 + -8);\n        *(int *)(lVar3 + -8) = iVar2 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(lVar3 + -8);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar2 < 1) {\n        thunk_FUN_00276d20((undefined8 *)(lVar3 + -0x18),&uStack_9);\n      }\n    }\n    *param_1 = lVar4;\n  }\n  return param_1;\n}" (sized_type_specifier "long" long) (pointer_declarator "* thunk_FUN_002f3160(long *param_1,long *param_2)" * (function_declarator "thunk_FUN_002f3160(long *param_1,long *param_2)" identifier (parameter_list "(long *param_1,long *param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long *param_2" (sized_type_specifier "long" long) (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  long lVar3;\n  long lVar4;\n  undefined1 uStack_9;\n  \n  lVar4 = *param_2;\n  if (*param_1 != lVar4) {\n    if (*(int *)(lVar4 + -8) < 0) {\n      lVar4 = FUN_002f2a20((undefined8 *)(lVar4 + -0x18),&uStack_9,0);\n    }\n    else if ((undefined8 *)(lVar4 + -0x18) != &DAT_003cbdc0) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n        UNLOCK();\n      }\n    }\n    lVar3 = *param_1;\n    if ((undefined8 *)(lVar3 + -0x18) != &DAT_003cbdc0) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        iVar2 = *(int *)(lVar3 + -8);\n        *(int *)(lVar3 + -8) = iVar2 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(lVar3 + -8);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar2 < 1) {\n        thunk_FUN_00276d20((undefined8 *)(lVar3 + -0x18),&uStack_9);\n      }\n    }\n    *param_1 = lVar4;\n  }\n  return param_1;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined1 uStack_9;" type_identifier identifier ;) (expression_statement "lVar4 = *param_2;" (assignment_expression "lVar4 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (if_statement "if (*param_1 != lVar4) {\n    if (*(int *)(lVar4 + -8) < 0) {\n      lVar4 = FUN_002f2a20((undefined8 *)(lVar4 + -0x18),&uStack_9,0);\n    }\n    else if ((undefined8 *)(lVar4 + -0x18) != &DAT_003cbdc0) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n        UNLOCK();\n      }\n    }\n    lVar3 = *param_1;\n    if ((undefined8 *)(lVar3 + -0x18) != &DAT_003cbdc0) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        iVar2 = *(int *)(lVar3 + -8);\n        *(int *)(lVar3 + -8) = iVar2 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(lVar3 + -8);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar2 < 1) {\n        thunk_FUN_00276d20((undefined8 *)(lVar3 + -0x18),&uStack_9);\n      }\n    }\n    *param_1 = lVar4;\n  }" if (parenthesized_expression "(*param_1 != lVar4)" ( (binary_expression "*param_1 != lVar4" (pointer_expression "*param_1" * identifier) != identifier) )) (compound_statement "{\n    if (*(int *)(lVar4 + -8) < 0) {\n      lVar4 = FUN_002f2a20((undefined8 *)(lVar4 + -0x18),&uStack_9,0);\n    }\n    else if ((undefined8 *)(lVar4 + -0x18) != &DAT_003cbdc0) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n        UNLOCK();\n      }\n    }\n    lVar3 = *param_1;\n    if ((undefined8 *)(lVar3 + -0x18) != &DAT_003cbdc0) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        iVar2 = *(int *)(lVar3 + -8);\n        *(int *)(lVar3 + -8) = iVar2 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(lVar3 + -8);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar2 < 1) {\n        thunk_FUN_00276d20((undefined8 *)(lVar3 + -0x18),&uStack_9);\n      }\n    }\n    *param_1 = lVar4;\n  }" { (if_statement "if (*(int *)(lVar4 + -8) < 0) {\n      lVar4 = FUN_002f2a20((undefined8 *)(lVar4 + -0x18),&uStack_9,0);\n    }\n    else if ((undefined8 *)(lVar4 + -0x18) != &DAT_003cbdc0) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n        UNLOCK();\n      }\n    }" if (parenthesized_expression "(*(int *)(lVar4 + -8) < 0)" ( (binary_expression "*(int *)(lVar4 + -8) < 0" (pointer_expression "*(int *)(lVar4 + -8)" * (cast_expression "(int *)(lVar4 + -8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + -8)" ( (binary_expression "lVar4 + -8" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\n      lVar4 = FUN_002f2a20((undefined8 *)(lVar4 + -0x18),&uStack_9,0);\n    }" { (expression_statement "lVar4 = FUN_002f2a20((undefined8 *)(lVar4 + -0x18),&uStack_9,0);" (assignment_expression "lVar4 = FUN_002f2a20((undefined8 *)(lVar4 + -0x18),&uStack_9,0)" identifier = (call_expression "FUN_002f2a20((undefined8 *)(lVar4 + -0x18),&uStack_9,0)" identifier (argument_list "((undefined8 *)(lVar4 + -0x18),&uStack_9,0)" ( (cast_expression "(undefined8 *)(lVar4 + -0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + -0x18)" ( (binary_expression "lVar4 + -0x18" identifier + number_literal) ))) , (pointer_expression "&uStack_9" & identifier) , number_literal )))) ;) }) (else_clause "else if ((undefined8 *)(lVar4 + -0x18) != &DAT_003cbdc0) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n        UNLOCK();\n      }\n    }" else (if_statement "if ((undefined8 *)(lVar4 + -0x18) != &DAT_003cbdc0) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n        UNLOCK();\n      }\n    }" if (parenthesized_expression "((undefined8 *)(lVar4 + -0x18) != &DAT_003cbdc0)" ( (binary_expression "(undefined8 *)(lVar4 + -0x18) != &DAT_003cbdc0" (cast_expression "(undefined8 *)(lVar4 + -0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + -0x18)" ( (binary_expression "lVar4 + -0x18" identifier + number_literal) ))) != (pointer_expression "&DAT_003cbdc0" & identifier)) )) (compound_statement "{\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n        UNLOCK();\n      }\n    }" { (if_statement "if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n        UNLOCK();\n      }" if (parenthesized_expression "(PTR___pthread_key_create_003bdee8 == (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_003bdee8 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n      }" { (expression_statement "*(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;" (assignment_expression "*(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1" (pointer_expression "*(int *)(lVar4 + -8)" * (cast_expression "(int *)(lVar4 + -8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + -8)" ( (binary_expression "lVar4 + -8" identifier + number_literal) )))) = (binary_expression "*(int *)(lVar4 + -8) + 1" (pointer_expression "*(int *)(lVar4 + -8)" * (cast_expression "(int *)(lVar4 + -8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + -8)" ( (binary_expression "lVar4 + -8" identifier + number_literal) )))) + number_literal)) ;) }) (else_clause "else {\n        LOCK();\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n        UNLOCK();\n      }" else (compound_statement "{\n        LOCK();\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n        UNLOCK();\n      }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;" (assignment_expression "*(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1" (pointer_expression "*(int *)(lVar4 + -8)" * (cast_expression "(int *)(lVar4 + -8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + -8)" ( (binary_expression "lVar4 + -8" identifier + number_literal) )))) = (binary_expression "*(int *)(lVar4 + -8) + 1" (pointer_expression "*(int *)(lVar4 + -8)" * (cast_expression "(int *)(lVar4 + -8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + -8)" ( (binary_expression "lVar4 + -8" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }))) })))) (expression_statement "lVar3 = *param_1;" (assignment_expression "lVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if ((undefined8 *)(lVar3 + -0x18) != &DAT_003cbdc0) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        iVar2 = *(int *)(lVar3 + -8);\n        *(int *)(lVar3 + -8) = iVar2 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(lVar3 + -8);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar2 < 1) {\n        thunk_FUN_00276d20((undefined8 *)(lVar3 + -0x18),&uStack_9);\n      }\n    }" if (parenthesized_expression "((undefined8 *)(lVar3 + -0x18) != &DAT_003cbdc0)" ( (binary_expression "(undefined8 *)(lVar3 + -0x18) != &DAT_003cbdc0" (cast_expression "(undefined8 *)(lVar3 + -0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + -0x18)" ( (binary_expression "lVar3 + -0x18" identifier + number_literal) ))) != (pointer_expression "&DAT_003cbdc0" & identifier)) )) (compound_statement "{\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        iVar2 = *(int *)(lVar3 + -8);\n        *(int *)(lVar3 + -8) = iVar2 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(lVar3 + -8);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar2 < 1) {\n        thunk_FUN_00276d20((undefined8 *)(lVar3 + -0x18),&uStack_9);\n      }\n    }" { (if_statement "if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        iVar2 = *(int *)(lVar3 + -8);\n        *(int *)(lVar3 + -8) = iVar2 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(lVar3 + -8);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" if (parenthesized_expression "(PTR___pthread_key_create_003bdee8 == (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_003bdee8 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        iVar2 = *(int *)(lVar3 + -8);\n        *(int *)(lVar3 + -8) = iVar2 + -1;\n      }" { (expression_statement "iVar2 = *(int *)(lVar3 + -8);" (assignment_expression "iVar2 = *(int *)(lVar3 + -8)" identifier = (pointer_expression "*(int *)(lVar3 + -8)" * (cast_expression "(int *)(lVar3 + -8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + -8)" ( (binary_expression "lVar3 + -8" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(lVar3 + -8) = iVar2 + -1;" (assignment_expression "*(int *)(lVar3 + -8) = iVar2 + -1" (pointer_expression "*(int *)(lVar3 + -8)" * (cast_expression "(int *)(lVar3 + -8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + -8)" ( (binary_expression "lVar3 + -8" identifier + number_literal) )))) = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n        LOCK();\n        piVar1 = (int *)(lVar3 + -8);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" else (compound_statement "{\n        LOCK();\n        piVar1 = (int *)(lVar3 + -8);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar1 = (int *)(lVar3 + -8);" (assignment_expression "piVar1 = (int *)(lVar3 + -8)" identifier = (cast_expression "(int *)(lVar3 + -8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + -8)" ( (binary_expression "lVar3 + -8" identifier + number_literal) )))) ;) (expression_statement "iVar2 = *piVar1;" (assignment_expression "iVar2 = *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 (iVar2 < 1) {\n        thunk_FUN_00276d20((undefined8 *)(lVar3 + -0x18),&uStack_9);\n      }" if (parenthesized_expression "(iVar2 < 1)" ( (binary_expression "iVar2 < 1" identifier < number_literal) )) (compound_statement "{\n        thunk_FUN_00276d20((undefined8 *)(lVar3 + -0x18),&uStack_9);\n      }" { (expression_statement "thunk_FUN_00276d20((undefined8 *)(lVar3 + -0x18),&uStack_9);" (call_expression "thunk_FUN_00276d20((undefined8 *)(lVar3 + -0x18),&uStack_9)" identifier (argument_list "((undefined8 *)(lVar3 + -0x18),&uStack_9)" ( (cast_expression "(undefined8 *)(lVar3 + -0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + -0x18)" ( (binary_expression "lVar3 + -0x18" identifier + number_literal) ))) , (pointer_expression "&uStack_9" & identifier) ))) ;) })) })) (expression_statement "*param_1 = lVar4;" (assignment_expression "*param_1 = lVar4" (pointer_expression "*param_1" * identifier) = identifier) ;) })) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition (sized_type_specifier long) (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) , (pointer_expression & IDENT) , LIT )))) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) != (pointer_expression & 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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) })))) (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) ))) != (pointer_expression & 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 ( ))) ;) (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 ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) , (pointer_expression & IDENT) ))) ;) })) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) })) (return_statement return IDENT ;) })))
(function_definition "long * thunk_FUN_002f3160(long *param_1,long *param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  long lVar3;\n  long lVar4;\n  undefined1 uStack_9;\n  \n  lVar4 = *param_2;\n  if (*param_1 != lVar4) {\n    if (*(int *)(lVar4 + -8) < 0) {\n      lVar4 = FUN_002f2a20((undefined8 *)(lVar4 + -0x18),&uStack_9,0);\n    }\n    else if ((undefined8 *)(lVar4 + -0x18) != &DAT_003cbdc0) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n        UNLOCK();\n      }\n    }\n    lVar3 = *param_1;\n    if ((undefined8 *)(lVar3 + -0x18) != &DAT_003cbdc0) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        iVar2 = *(int *)(lVar3 + -8);\n        *(int *)(lVar3 + -8) = iVar2 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(lVar3 + -8);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar2 < 1) {\n        thunk_FUN_00276d20((undefined8 *)(lVar3 + -0x18),&uStack_9);\n      }\n    }\n    *param_1 = lVar4;\n  }\n  return param_1;\n}" (sized_type_specifier "long" (long "long")) (pointer_declarator "* thunk_FUN_002f3160(long *param_1,long *param_2)" (* "*") (function_declarator "thunk_FUN_002f3160(long *param_1,long *param_2)" (identifier "thunk_FUN_002f3160") (parameter_list "(long *param_1,long *param_2)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "long *param_2" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")")))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  long lVar3;\n  long lVar4;\n  undefined1 uStack_9;\n  \n  lVar4 = *param_2;\n  if (*param_1 != lVar4) {\n    if (*(int *)(lVar4 + -8) < 0) {\n      lVar4 = FUN_002f2a20((undefined8 *)(lVar4 + -0x18),&uStack_9,0);\n    }\n    else if ((undefined8 *)(lVar4 + -0x18) != &DAT_003cbdc0) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n        UNLOCK();\n      }\n    }\n    lVar3 = *param_1;\n    if ((undefined8 *)(lVar3 + -0x18) != &DAT_003cbdc0) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        iVar2 = *(int *)(lVar3 + -8);\n        *(int *)(lVar3 + -8) = iVar2 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(lVar3 + -8);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar2 < 1) {\n        thunk_FUN_00276d20((undefined8 *)(lVar3 + -0x18),&uStack_9);\n      }\n    }\n    *param_1 = lVar4;\n  }\n  return param_1;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "long lVar3;" (sized_type_specifier "long" (long "long")) (identifier "lVar3") (; ";")) (declaration "long lVar4;" (sized_type_specifier "long" (long "long")) (identifier "lVar4") (; ";")) (declaration "undefined1 uStack_9;" (type_identifier "undefined1") (identifier "uStack_9") (; ";")) (expression_statement "lVar4 = *param_2;" (assignment_expression "lVar4 = *param_2" (identifier "lVar4") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (if_statement "if (*param_1 != lVar4) {\n    if (*(int *)(lVar4 + -8) < 0) {\n      lVar4 = FUN_002f2a20((undefined8 *)(lVar4 + -0x18),&uStack_9,0);\n    }\n    else if ((undefined8 *)(lVar4 + -0x18) != &DAT_003cbdc0) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n        UNLOCK();\n      }\n    }\n    lVar3 = *param_1;\n    if ((undefined8 *)(lVar3 + -0x18) != &DAT_003cbdc0) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        iVar2 = *(int *)(lVar3 + -8);\n        *(int *)(lVar3 + -8) = iVar2 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(lVar3 + -8);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar2 < 1) {\n        thunk_FUN_00276d20((undefined8 *)(lVar3 + -0x18),&uStack_9);\n      }\n    }\n    *param_1 = lVar4;\n  }" (if "if") (parenthesized_expression "(*param_1 != lVar4)" (( "(") (binary_expression "*param_1 != lVar4" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (!= "!=") (identifier "lVar4")) () ")")) (compound_statement "{\n    if (*(int *)(lVar4 + -8) < 0) {\n      lVar4 = FUN_002f2a20((undefined8 *)(lVar4 + -0x18),&uStack_9,0);\n    }\n    else if ((undefined8 *)(lVar4 + -0x18) != &DAT_003cbdc0) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n        UNLOCK();\n      }\n    }\n    lVar3 = *param_1;\n    if ((undefined8 *)(lVar3 + -0x18) != &DAT_003cbdc0) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        iVar2 = *(int *)(lVar3 + -8);\n        *(int *)(lVar3 + -8) = iVar2 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(lVar3 + -8);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar2 < 1) {\n        thunk_FUN_00276d20((undefined8 *)(lVar3 + -0x18),&uStack_9);\n      }\n    }\n    *param_1 = lVar4;\n  }" ({ "{") (if_statement "if (*(int *)(lVar4 + -8) < 0) {\n      lVar4 = FUN_002f2a20((undefined8 *)(lVar4 + -0x18),&uStack_9,0);\n    }\n    else if ((undefined8 *)(lVar4 + -0x18) != &DAT_003cbdc0) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n        UNLOCK();\n      }\n    }" (if "if") (parenthesized_expression "(*(int *)(lVar4 + -8) < 0)" (( "(") (binary_expression "*(int *)(lVar4 + -8) < 0" (pointer_expression "*(int *)(lVar4 + -8)" (* "*") (cast_expression "(int *)(lVar4 + -8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + -8)" (( "(") (binary_expression "lVar4 + -8" (identifier "lVar4") (+ "+") (number_literal "-8")) () ")")))) (< "<") (number_literal "0")) () ")")) (compound_statement "{\n      lVar4 = FUN_002f2a20((undefined8 *)(lVar4 + -0x18),&uStack_9,0);\n    }" ({ "{") (expression_statement "lVar4 = FUN_002f2a20((undefined8 *)(lVar4 + -0x18),&uStack_9,0);" (assignment_expression "lVar4 = FUN_002f2a20((undefined8 *)(lVar4 + -0x18),&uStack_9,0)" (identifier "lVar4") (= "=") (call_expression "FUN_002f2a20((undefined8 *)(lVar4 + -0x18),&uStack_9,0)" (identifier "FUN_002f2a20") (argument_list "((undefined8 *)(lVar4 + -0x18),&uStack_9,0)" (( "(") (cast_expression "(undefined8 *)(lVar4 + -0x18)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + -0x18)" (( "(") (binary_expression "lVar4 + -0x18" (identifier "lVar4") (+ "+") (number_literal "-0x18")) () ")"))) (, ",") (pointer_expression "&uStack_9" (& "&") (identifier "uStack_9")) (, ",") (number_literal "0") () ")")))) (; ";")) (} "}")) (else_clause "else if ((undefined8 *)(lVar4 + -0x18) != &DAT_003cbdc0) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n        UNLOCK();\n      }\n    }" (else "else") (if_statement "if ((undefined8 *)(lVar4 + -0x18) != &DAT_003cbdc0) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n        UNLOCK();\n      }\n    }" (if "if") (parenthesized_expression "((undefined8 *)(lVar4 + -0x18) != &DAT_003cbdc0)" (( "(") (binary_expression "(undefined8 *)(lVar4 + -0x18) != &DAT_003cbdc0" (cast_expression "(undefined8 *)(lVar4 + -0x18)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + -0x18)" (( "(") (binary_expression "lVar4 + -0x18" (identifier "lVar4") (+ "+") (number_literal "-0x18")) () ")"))) (!= "!=") (pointer_expression "&DAT_003cbdc0" (& "&") (identifier "DAT_003cbdc0"))) () ")")) (compound_statement "{\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n        UNLOCK();\n      }\n    }" ({ "{") (if_statement "if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n        UNLOCK();\n      }" (if "if") (parenthesized_expression "(PTR___pthread_key_create_003bdee8 == (undefined *)0x0)" (( "(") (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"))) () ")")) (compound_statement "{\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n      }" ({ "{") (expression_statement "*(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;" (assignment_expression "*(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1" (pointer_expression "*(int *)(lVar4 + -8)" (* "*") (cast_expression "(int *)(lVar4 + -8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + -8)" (( "(") (binary_expression "lVar4 + -8" (identifier "lVar4") (+ "+") (number_literal "-8")) () ")")))) (= "=") (binary_expression "*(int *)(lVar4 + -8) + 1" (pointer_expression "*(int *)(lVar4 + -8)" (* "*") (cast_expression "(int *)(lVar4 + -8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + -8)" (( "(") (binary_expression "lVar4 + -8" (identifier "lVar4") (+ "+") (number_literal "-8")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (else_clause "else {\n        LOCK();\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n        UNLOCK();\n      }" (else "else") (compound_statement "{\n        LOCK();\n        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;\n        UNLOCK();\n      }" ({ "{") (expression_statement "LOCK();" (call_expression "LOCK()" (identifier "LOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "*(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;" (assignment_expression "*(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1" (pointer_expression "*(int *)(lVar4 + -8)" (* "*") (cast_expression "(int *)(lVar4 + -8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + -8)" (( "(") (binary_expression "lVar4 + -8" (identifier "lVar4") (+ "+") (number_literal "-8")) () ")")))) (= "=") (binary_expression "*(int *)(lVar4 + -8) + 1" (pointer_expression "*(int *)(lVar4 + -8)" (* "*") (cast_expression "(int *)(lVar4 + -8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + -8)" (( "(") (binary_expression "lVar4 + -8" (identifier "lVar4") (+ "+") (number_literal "-8")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" (identifier "UNLOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (} "}"))))) (expression_statement "lVar3 = *param_1;" (assignment_expression "lVar3 = *param_1" (identifier "lVar3") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if ((undefined8 *)(lVar3 + -0x18) != &DAT_003cbdc0) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        iVar2 = *(int *)(lVar3 + -8);\n        *(int *)(lVar3 + -8) = iVar2 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(lVar3 + -8);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar2 < 1) {\n        thunk_FUN_00276d20((undefined8 *)(lVar3 + -0x18),&uStack_9);\n      }\n    }" (if "if") (parenthesized_expression "((undefined8 *)(lVar3 + -0x18) != &DAT_003cbdc0)" (( "(") (binary_expression "(undefined8 *)(lVar3 + -0x18) != &DAT_003cbdc0" (cast_expression "(undefined8 *)(lVar3 + -0x18)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar3 + -0x18)" (( "(") (binary_expression "lVar3 + -0x18" (identifier "lVar3") (+ "+") (number_literal "-0x18")) () ")"))) (!= "!=") (pointer_expression "&DAT_003cbdc0" (& "&") (identifier "DAT_003cbdc0"))) () ")")) (compound_statement "{\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        iVar2 = *(int *)(lVar3 + -8);\n        *(int *)(lVar3 + -8) = iVar2 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(lVar3 + -8);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar2 < 1) {\n        thunk_FUN_00276d20((undefined8 *)(lVar3 + -0x18),&uStack_9);\n      }\n    }" ({ "{") (if_statement "if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        iVar2 = *(int *)(lVar3 + -8);\n        *(int *)(lVar3 + -8) = iVar2 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(lVar3 + -8);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" (if "if") (parenthesized_expression "(PTR___pthread_key_create_003bdee8 == (undefined *)0x0)" (( "(") (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"))) () ")")) (compound_statement "{\n        iVar2 = *(int *)(lVar3 + -8);\n        *(int *)(lVar3 + -8) = iVar2 + -1;\n      }" ({ "{") (expression_statement "iVar2 = *(int *)(lVar3 + -8);" (assignment_expression "iVar2 = *(int *)(lVar3 + -8)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(lVar3 + -8)" (* "*") (cast_expression "(int *)(lVar3 + -8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar3 + -8)" (( "(") (binary_expression "lVar3 + -8" (identifier "lVar3") (+ "+") (number_literal "-8")) () ")"))))) (; ";")) (expression_statement "*(int *)(lVar3 + -8) = iVar2 + -1;" (assignment_expression "*(int *)(lVar3 + -8) = iVar2 + -1" (pointer_expression "*(int *)(lVar3 + -8)" (* "*") (cast_expression "(int *)(lVar3 + -8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar3 + -8)" (( "(") (binary_expression "lVar3 + -8" (identifier "lVar3") (+ "+") (number_literal "-8")) () ")")))) (= "=") (binary_expression "iVar2 + -1" (identifier "iVar2") (+ "+") (number_literal "-1"))) (; ";")) (} "}")) (else_clause "else {\n        LOCK();\n        piVar1 = (int *)(lVar3 + -8);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" (else "else") (compound_statement "{\n        LOCK();\n        piVar1 = (int *)(lVar3 + -8);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" ({ "{") (expression_statement "LOCK();" (call_expression "LOCK()" (identifier "LOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "piVar1 = (int *)(lVar3 + -8);" (assignment_expression "piVar1 = (int *)(lVar3 + -8)" (identifier "piVar1") (= "=") (cast_expression "(int *)(lVar3 + -8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar3 + -8)" (( "(") (binary_expression "lVar3 + -8" (identifier "lVar3") (+ "+") (number_literal "-8")) () ")")))) (; ";")) (expression_statement "iVar2 = *piVar1;" (assignment_expression "iVar2 = *piVar1" (identifier "iVar2") (= "=") (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 (iVar2 < 1) {\n        thunk_FUN_00276d20((undefined8 *)(lVar3 + -0x18),&uStack_9);\n      }" (if "if") (parenthesized_expression "(iVar2 < 1)" (( "(") (binary_expression "iVar2 < 1" (identifier "iVar2") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n        thunk_FUN_00276d20((undefined8 *)(lVar3 + -0x18),&uStack_9);\n      }" ({ "{") (expression_statement "thunk_FUN_00276d20((undefined8 *)(lVar3 + -0x18),&uStack_9);" (call_expression "thunk_FUN_00276d20((undefined8 *)(lVar3 + -0x18),&uStack_9)" (identifier "thunk_FUN_00276d20") (argument_list "((undefined8 *)(lVar3 + -0x18),&uStack_9)" (( "(") (cast_expression "(undefined8 *)(lVar3 + -0x18)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar3 + -0x18)" (( "(") (binary_expression "lVar3 + -0x18" (identifier "lVar3") (+ "+") (number_literal "-0x18")) () ")"))) (, ",") (pointer_expression "&uStack_9" (& "&") (identifier "uStack_9")) () ")"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "*param_1 = lVar4;" (assignment_expression "*param_1 = lVar4" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "lVar4")) (; ";")) (} "}"))) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

/* std::wstring::TEMPNAMEPLACEHOLDERVALUE(std::wstring const&) */

wstring * __thiscall std::wstring::operator=(wstring *this,wstring *param_1)

{
  int *piVar1;
  long var_6;
  long var_1;
  int var_7;
  type_1 aStack_9;
  
  var_1 = *(long *)param_1;
  if (*(long *)this != var_1) {
    if (*(int *)(var_1 + -8) < 0) {
      var_1 = type_2::var_2((type_2 *)(var_1 + -0x18),&aStack_9,0);
    }
    else if ((type_2 *)(var_1 + -0x18) != (type_2 *)&type_2::_S_empty_rep_storage) {
      if (var_3 == (type_3 *)0x0) {
        *(int *)(var_1 + -8) = *(int *)(var_1 + -8) + 1;
      }
      else {
        var_4();
        *(int *)(var_1 + -8) = *(int *)(var_1 + -8) + 1;
        var_5();
      }
    }
    var_6 = *(long *)this;
    if ((type_1 *)(var_6 + -0x18) != (type_1 *)&type_2::_S_empty_rep_storage) {
      if (var_3 == (type_3 *)0x0) {
        var_7 = *(int *)(var_6 + -8);
        *(int *)(var_6 + -8) = var_7 + -1;
      }
      else {
        var_4();
        piVar1 = (int *)(var_6 + -8);
        var_7 = *piVar1;
        *piVar1 = *piVar1 + -1;
        var_5();
      }
      if (var_7 < 1) {
        _Rep::var_8((type_1 *)(var_6 + -0x18));
      }
    }
    *(long *)this = var_1;
  }
  return this;
}


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

long * MASKED(long *param_1,long *param_2)

{
  int *piVar1;
  int iVar2;
  long lVar3;
  long lVar4;
  undefined1 uStack_9;
  
  lVar4 = *param_2;
  if (*param_1 != lVar4) {
    if (*(int *)(lVar4 + -8) < 0) {
      lVar4 = FUN_002f2a20((undefined8 *)(lVar4 + -0x18),&uStack_9,0);
    }
    else if ((undefined8 *)(lVar4 + -0x18) != &DAT_003cbdc0) {
      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {
        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;
      }
      else {
        LOCK();
        *(int *)(lVar4 + -8) = *(int *)(lVar4 + -8) + 1;
        UNLOCK();
      }
    }
    lVar3 = *param_1;
    if ((undefined8 *)(lVar3 + -0x18) != &DAT_003cbdc0) {
      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {
        iVar2 = *(int *)(lVar3 + -8);
        *(int *)(lVar3 + -8) = iVar2 + -1;
      }
      else {
        LOCK();
        piVar1 = (int *)(lVar3 + -8);
        iVar2 = *piVar1;
        *piVar1 = *piVar1 + -1;
        UNLOCK();
      }
      if (iVar2 < 1) {
        thunk_FUN_00276d20((undefined8 *)(lVar3 + -0x18),&uStack_9);
      }
    }
    *param_1 = lVar4;
  }
  return param_1;
}

