
/* std::wstring::TEMPNAMEPLACEHOLDERVALUE(wchar_t) */

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

{
  ulong uVar1;
  long lVar2;
  
  lVar2 = *(long *)this;
  uVar1 = *(long *)(lVar2 + -0x18) + 1;
  if ((*(ulong *)(lVar2 + -0x10) < uVar1) || (0 < *(int *)(lVar2 + -8))) {
    reserve(this,uVar1);
  }
  lVar2 = *(long *)this;
  *(wchar_t *)(lVar2 + *(long *)(lVar2 + -0x18) * 4) = param_1;
  if ((undefined *)(lVar2 + -0x18) != PTR__S_empty_rep_storage_003bdcd8) {
    *(undefined4 *)(lVar2 + -8) = 0;
    *(ulong *)(lVar2 + -0x18) = uVar1;
    *(undefined4 *)(lVar2 + uVar1 * 4) = 0;
  }
  return this;
}



long * FUN_002f3030(long *param_1,undefined4 param_2)

{
  ulong uVar1;
  long lVar2;
  
  lVar2 = *param_1;
  uVar1 = *(long *)(lVar2 + -0x18) + 1;
  if ((*(ulong *)(lVar2 + -0x10) < uVar1) || (0 < *(int *)(lVar2 + -8))) {
    FUN_002f2aa0(param_1,uVar1);
  }
  lVar2 = *param_1;
  *(undefined4 *)(lVar2 + *(long *)(lVar2 + -0x18) * 4) = param_2;
  if ((undefined *)(lVar2 + -0x18) != PTR_DAT_003bdcd8) {
    *(undefined4 *)(lVar2 + -8) = 0;
    *(ulong *)(lVar2 + -0x18) = uVar1;
    *(undefined4 *)(lVar2 + uVar1 * 4) = 0;
  }
  return param_1;
}


PUSH R12
MOV R12D,ESI
PUSH RBP
MOV RBP,RDI
PUSH RBX
MOV RAX,qword ptr [RDI]
MOV RCX,qword ptr [RAX + -0x18]
LEA RBX,[RCX + 0x1]
CMP RBX,qword ptr [RAX + -0x10]
JA 0x002f3052
MOV EAX,dword ptr [RAX + -0x8]
TEST EAX,EAX
JLE 0x002f305d
MOV RSI,RBX
MOV RDI,RBP
CALL 0x002f2aa0
MOV RAX,qword ptr [RBP]
MOV RDX,qword ptr [RAX + -0x18]
MOV dword ptr [RAX + RDX*0x4],R12D
LEA RDX,[RAX + -0x18]
CMP RDX,qword ptr [0x003bdcd8]
JNZ 0x002f3080
MOV RAX,RBP
POP RBX
POP RBP
POP R12
RET
MOV dword ptr [RAX + -0x8],0x0
MOV qword ptr [RAX + -0x18],RBX
MOV dword ptr [RAX + RBX*0x4],0x0
JMP 0x002f3076
(translation_unit "long * FUN_002f3030(long *param_1,undefined4 param_2)\n\n{\n  ulong uVar1;\n  long lVar2;\n  \n  lVar2 = *param_1;\n  uVar1 = *(long *)(lVar2 + -0x18) + 1;\n  if ((*(ulong *)(lVar2 + -0x10) < uVar1) || (0 < *(int *)(lVar2 + -8))) {\n    FUN_002f2aa0(param_1,uVar1);\n  }\n  lVar2 = *param_1;\n  *(undefined4 *)(lVar2 + *(long *)(lVar2 + -0x18) * 4) = param_2;\n  if ((undefined *)(lVar2 + -0x18) != PTR_DAT_003bdcd8) {\n    *(undefined4 *)(lVar2 + -8) = 0;\n    *(ulong *)(lVar2 + -0x18) = uVar1;\n    *(undefined4 *)(lVar2 + uVar1 * 4) = 0;\n  }\n  return param_1;\n}\n\n" (function_definition "long * FUN_002f3030(long *param_1,undefined4 param_2)\n\n{\n  ulong uVar1;\n  long lVar2;\n  \n  lVar2 = *param_1;\n  uVar1 = *(long *)(lVar2 + -0x18) + 1;\n  if ((*(ulong *)(lVar2 + -0x10) < uVar1) || (0 < *(int *)(lVar2 + -8))) {\n    FUN_002f2aa0(param_1,uVar1);\n  }\n  lVar2 = *param_1;\n  *(undefined4 *)(lVar2 + *(long *)(lVar2 + -0x18) * 4) = param_2;\n  if ((undefined *)(lVar2 + -0x18) != PTR_DAT_003bdcd8) {\n    *(undefined4 *)(lVar2 + -8) = 0;\n    *(ulong *)(lVar2 + -0x18) = uVar1;\n    *(undefined4 *)(lVar2 + uVar1 * 4) = 0;\n  }\n  return param_1;\n}" (sized_type_specifier "long" long) (pointer_declarator "* FUN_002f3030(long *param_1,undefined4 param_2)" * (function_declarator "FUN_002f3030(long *param_1,undefined4 param_2)" identifier (parameter_list "(long *param_1,undefined4 param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) )))) (compound_statement "{\n  ulong uVar1;\n  long lVar2;\n  \n  lVar2 = *param_1;\n  uVar1 = *(long *)(lVar2 + -0x18) + 1;\n  if ((*(ulong *)(lVar2 + -0x10) < uVar1) || (0 < *(int *)(lVar2 + -8))) {\n    FUN_002f2aa0(param_1,uVar1);\n  }\n  lVar2 = *param_1;\n  *(undefined4 *)(lVar2 + *(long *)(lVar2 + -0x18) * 4) = param_2;\n  if ((undefined *)(lVar2 + -0x18) != PTR_DAT_003bdcd8) {\n    *(undefined4 *)(lVar2 + -8) = 0;\n    *(ulong *)(lVar2 + -0x18) = uVar1;\n    *(undefined4 *)(lVar2 + uVar1 * 4) = 0;\n  }\n  return param_1;\n}" { (declaration "ulong uVar1;" type_identifier identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar2 = *param_1;" (assignment_expression "lVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar1 = *(long *)(lVar2 + -0x18) + 1;" (assignment_expression "uVar1 = *(long *)(lVar2 + -0x18) + 1" identifier = (binary_expression "*(long *)(lVar2 + -0x18) + 1" (pointer_expression "*(long *)(lVar2 + -0x18)" * (cast_expression "(long *)(lVar2 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + -0x18)" ( (binary_expression "lVar2 + -0x18" identifier + number_literal) )))) + number_literal)) ;) (if_statement "if ((*(ulong *)(lVar2 + -0x10) < uVar1) || (0 < *(int *)(lVar2 + -8))) {\n    FUN_002f2aa0(param_1,uVar1);\n  }" if (parenthesized_expression "((*(ulong *)(lVar2 + -0x10) < uVar1) || (0 < *(int *)(lVar2 + -8)))" ( (binary_expression "(*(ulong *)(lVar2 + -0x10) < uVar1) || (0 < *(int *)(lVar2 + -8))" (parenthesized_expression "(*(ulong *)(lVar2 + -0x10) < uVar1)" ( (binary_expression "*(ulong *)(lVar2 + -0x10) < uVar1" (pointer_expression "*(ulong *)(lVar2 + -0x10)" * (cast_expression "(ulong *)(lVar2 + -0x10)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + -0x10)" ( (binary_expression "lVar2 + -0x10" identifier + number_literal) )))) < identifier) )) || (parenthesized_expression "(0 < *(int *)(lVar2 + -8))" ( (binary_expression "0 < *(int *)(lVar2 + -8)" number_literal < (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) ))))) ))) )) (compound_statement "{\n    FUN_002f2aa0(param_1,uVar1);\n  }" { (expression_statement "FUN_002f2aa0(param_1,uVar1);" (call_expression "FUN_002f2aa0(param_1,uVar1)" identifier (argument_list "(param_1,uVar1)" ( identifier , identifier ))) ;) })) (expression_statement "lVar2 = *param_1;" (assignment_expression "lVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "*(undefined4 *)(lVar2 + *(long *)(lVar2 + -0x18) * 4) = param_2;" (assignment_expression "*(undefined4 *)(lVar2 + *(long *)(lVar2 + -0x18) * 4) = param_2" (pointer_expression "*(undefined4 *)(lVar2 + *(long *)(lVar2 + -0x18) * 4)" * (cast_expression "(undefined4 *)(lVar2 + *(long *)(lVar2 + -0x18) * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + *(long *)(lVar2 + -0x18) * 4)" ( (binary_expression "lVar2 + *(long *)(lVar2 + -0x18) * 4" identifier + (binary_expression "*(long *)(lVar2 + -0x18) * 4" (pointer_expression "*(long *)(lVar2 + -0x18)" * (cast_expression "(long *)(lVar2 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + -0x18)" ( (binary_expression "lVar2 + -0x18" identifier + number_literal) )))) * number_literal)) )))) = identifier) ;) (if_statement "if ((undefined *)(lVar2 + -0x18) != PTR_DAT_003bdcd8) {\n    *(undefined4 *)(lVar2 + -8) = 0;\n    *(ulong *)(lVar2 + -0x18) = uVar1;\n    *(undefined4 *)(lVar2 + uVar1 * 4) = 0;\n  }" if (parenthesized_expression "((undefined *)(lVar2 + -0x18) != PTR_DAT_003bdcd8)" ( (binary_expression "(undefined *)(lVar2 + -0x18) != PTR_DAT_003bdcd8" (cast_expression "(undefined *)(lVar2 + -0x18)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + -0x18)" ( (binary_expression "lVar2 + -0x18" identifier + number_literal) ))) != identifier) )) (compound_statement "{\n    *(undefined4 *)(lVar2 + -8) = 0;\n    *(ulong *)(lVar2 + -0x18) = uVar1;\n    *(undefined4 *)(lVar2 + uVar1 * 4) = 0;\n  }" { (expression_statement "*(undefined4 *)(lVar2 + -8) = 0;" (assignment_expression "*(undefined4 *)(lVar2 + -8) = 0" (pointer_expression "*(undefined4 *)(lVar2 + -8)" * (cast_expression "(undefined4 *)(lVar2 + -8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + -8)" ( (binary_expression "lVar2 + -8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(ulong *)(lVar2 + -0x18) = uVar1;" (assignment_expression "*(ulong *)(lVar2 + -0x18) = uVar1" (pointer_expression "*(ulong *)(lVar2 + -0x18)" * (cast_expression "(ulong *)(lVar2 + -0x18)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + -0x18)" ( (binary_expression "lVar2 + -0x18" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(lVar2 + uVar1 * 4) = 0;" (assignment_expression "*(undefined4 *)(lVar2 + uVar1 * 4) = 0" (pointer_expression "*(undefined4 *)(lVar2 + uVar1 * 4)" * (cast_expression "(undefined4 *)(lVar2 + uVar1 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + uVar1 * 4)" ( (binary_expression "lVar2 + uVar1 * 4" identifier + (binary_expression "uVar1 * 4" identifier * number_literal)) )))) = number_literal) ;) })) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "/* std::wstring::TEMPNAMEPLACEHOLDERVALUE(wchar_t) */\n\nwstring * __thiscall std::wstring::operator+=(wstring *this,wchar_t param_1)\n\n{\n  ulong uVar1;\n  long lVar2;\n  \n  lVar2 = *(long *)this;\n  uVar1 = *(long *)(lVar2 + -0x18) + 1;\n  if ((*(ulong *)(lVar2 + -0x10) < uVar1) || (0 < *(int *)(lVar2 + -8))) {\n    reserve(this,uVar1);\n  }\n  lVar2 = *(long *)this;\n  *(wchar_t *)(lVar2 + *(long *)(lVar2 + -0x18) * 4) = param_1;\n  if ((undefined *)(lVar2 + -0x18) != PTR__S_empty_rep_storage_003bdcd8) {\n    *(undefined4 *)(lVar2 + -8) = 0;\n    *(ulong *)(lVar2 + -0x18) = uVar1;\n    *(undefined4 *)(lVar2 + uVar1 * 4) = 0;\n  }\n  return this;\n}\n\n" comment (ERROR "wstring * __thiscall std::wstring::operator+=(wstring *this,wchar_t param_1)" (binary_expression "wstring * __thiscall std::wstring::operator+=(wstring *this,wchar_t param_1)" identifier * (assignment_expression "__thiscall std::wstring::operator+=(wstring *this,wchar_t param_1)" identifier (ERROR "std::wstring::operator" identifier : : identifier : : identifier) += (parenthesized_expression "(wstring *this,wchar_t param_1)" ( (comma_expression "wstring *this,wchar_t" (binary_expression "wstring *this" identifier * identifier) , identifier) (ERROR "param_1" identifier) ))))) (compound_statement "{\n  ulong uVar1;\n  long lVar2;\n  \n  lVar2 = *(long *)this;\n  uVar1 = *(long *)(lVar2 + -0x18) + 1;\n  if ((*(ulong *)(lVar2 + -0x10) < uVar1) || (0 < *(int *)(lVar2 + -8))) {\n    reserve(this,uVar1);\n  }\n  lVar2 = *(long *)this;\n  *(wchar_t *)(lVar2 + *(long *)(lVar2 + -0x18) * 4) = param_1;\n  if ((undefined *)(lVar2 + -0x18) != PTR__S_empty_rep_storage_003bdcd8) {\n    *(undefined4 *)(lVar2 + -8) = 0;\n    *(ulong *)(lVar2 + -0x18) = uVar1;\n    *(undefined4 *)(lVar2 + uVar1 * 4) = 0;\n  }\n  return this;\n}" { (declaration "ulong uVar1;" type_identifier identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (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))) ;) (expression_statement "uVar1 = *(long *)(lVar2 + -0x18) + 1;" (assignment_expression "uVar1 = *(long *)(lVar2 + -0x18) + 1" identifier = (binary_expression "*(long *)(lVar2 + -0x18) + 1" (pointer_expression "*(long *)(lVar2 + -0x18)" * (cast_expression "(long *)(lVar2 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + -0x18)" ( (binary_expression "lVar2 + -0x18" identifier + number_literal) )))) + number_literal)) ;) (if_statement "if ((*(ulong *)(lVar2 + -0x10) < uVar1) || (0 < *(int *)(lVar2 + -8))) {\n    reserve(this,uVar1);\n  }" if (parenthesized_expression "((*(ulong *)(lVar2 + -0x10) < uVar1) || (0 < *(int *)(lVar2 + -8)))" ( (binary_expression "(*(ulong *)(lVar2 + -0x10) < uVar1) || (0 < *(int *)(lVar2 + -8))" (parenthesized_expression "(*(ulong *)(lVar2 + -0x10) < uVar1)" ( (binary_expression "*(ulong *)(lVar2 + -0x10) < uVar1" (pointer_expression "*(ulong *)(lVar2 + -0x10)" * (cast_expression "(ulong *)(lVar2 + -0x10)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + -0x10)" ( (binary_expression "lVar2 + -0x10" identifier + number_literal) )))) < identifier) )) || (parenthesized_expression "(0 < *(int *)(lVar2 + -8))" ( (binary_expression "0 < *(int *)(lVar2 + -8)" number_literal < (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) ))))) ))) )) (compound_statement "{\n    reserve(this,uVar1);\n  }" { (expression_statement "reserve(this,uVar1);" (call_expression "reserve(this,uVar1)" identifier (argument_list "(this,uVar1)" ( identifier , identifier ))) ;) })) (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))) ;) (expression_statement "*(wchar_t *)(lVar2 + *(long *)(lVar2 + -0x18) * 4) = param_1;" (assignment_expression "*(wchar_t *)(lVar2 + *(long *)(lVar2 + -0x18) * 4) = param_1" (pointer_expression "*(wchar_t *)(lVar2 + *(long *)(lVar2 + -0x18) * 4)" * (cast_expression "(wchar_t *)(lVar2 + *(long *)(lVar2 + -0x18) * 4)" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + *(long *)(lVar2 + -0x18) * 4)" ( (binary_expression "lVar2 + *(long *)(lVar2 + -0x18) * 4" identifier + (binary_expression "*(long *)(lVar2 + -0x18) * 4" (pointer_expression "*(long *)(lVar2 + -0x18)" * (cast_expression "(long *)(lVar2 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + -0x18)" ( (binary_expression "lVar2 + -0x18" identifier + number_literal) )))) * number_literal)) )))) = identifier) ;) (if_statement "if ((undefined *)(lVar2 + -0x18) != PTR__S_empty_rep_storage_003bdcd8) {\n    *(undefined4 *)(lVar2 + -8) = 0;\n    *(ulong *)(lVar2 + -0x18) = uVar1;\n    *(undefined4 *)(lVar2 + uVar1 * 4) = 0;\n  }" if (parenthesized_expression "((undefined *)(lVar2 + -0x18) != PTR__S_empty_rep_storage_003bdcd8)" ( (binary_expression "(undefined *)(lVar2 + -0x18) != PTR__S_empty_rep_storage_003bdcd8" (cast_expression "(undefined *)(lVar2 + -0x18)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + -0x18)" ( (binary_expression "lVar2 + -0x18" identifier + number_literal) ))) != identifier) )) (compound_statement "{\n    *(undefined4 *)(lVar2 + -8) = 0;\n    *(ulong *)(lVar2 + -0x18) = uVar1;\n    *(undefined4 *)(lVar2 + uVar1 * 4) = 0;\n  }" { (expression_statement "*(undefined4 *)(lVar2 + -8) = 0;" (assignment_expression "*(undefined4 *)(lVar2 + -8) = 0" (pointer_expression "*(undefined4 *)(lVar2 + -8)" * (cast_expression "(undefined4 *)(lVar2 + -8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + -8)" ( (binary_expression "lVar2 + -8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(ulong *)(lVar2 + -0x18) = uVar1;" (assignment_expression "*(ulong *)(lVar2 + -0x18) = uVar1" (pointer_expression "*(ulong *)(lVar2 + -0x18)" * (cast_expression "(ulong *)(lVar2 + -0x18)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + -0x18)" ( (binary_expression "lVar2 + -0x18" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(lVar2 + uVar1 * 4) = 0;" (assignment_expression "*(undefined4 *)(lVar2 + uVar1 * 4) = 0" (pointer_expression "*(undefined4 *)(lVar2 + uVar1 * 4)" * (cast_expression "(undefined4 *)(lVar2 + uVar1 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + uVar1 * 4)" ( (binary_expression "lVar2 + uVar1 * 4" identifier + (binary_expression "uVar1 * 4" identifier * number_literal)) )))) = number_literal) ;) })) (return_statement "return this;" return identifier ;) }))
(translation_unit "long * FUN_002f3030(long *param_1,undefined4 param_2)\n\n{\n  ulong uVar1;\n  long lVar2;\n  \n  lVar2 = *param_1;\n  uVar1 = *(long *)(lVar2 + -0x18) + 1;\n  if ((*(ulong *)(lVar2 + -0x10) < uVar1) || (0 < *(int *)(lVar2 + -8))) {\n    FUN_002f2aa0(param_1,uVar1);\n  }\n  lVar2 = *param_1;\n  *(undefined4 *)(lVar2 + *(long *)(lVar2 + -0x18) * 4) = param_2;\n  if ((undefined *)(lVar2 + -0x18) != PTR_DAT_003bdcd8) {\n    *(undefined4 *)(lVar2 + -8) = 0;\n    *(ulong *)(lVar2 + -0x18) = uVar1;\n    *(undefined4 *)(lVar2 + uVar1 * 4) = 0;\n  }\n  return param_1;\n}\n\n" (function_definition "long * FUN_002f3030(long *param_1,undefined4 param_2)\n\n{\n  ulong uVar1;\n  long lVar2;\n  \n  lVar2 = *param_1;\n  uVar1 = *(long *)(lVar2 + -0x18) + 1;\n  if ((*(ulong *)(lVar2 + -0x10) < uVar1) || (0 < *(int *)(lVar2 + -8))) {\n    FUN_002f2aa0(param_1,uVar1);\n  }\n  lVar2 = *param_1;\n  *(undefined4 *)(lVar2 + *(long *)(lVar2 + -0x18) * 4) = param_2;\n  if ((undefined *)(lVar2 + -0x18) != PTR_DAT_003bdcd8) {\n    *(undefined4 *)(lVar2 + -8) = 0;\n    *(ulong *)(lVar2 + -0x18) = uVar1;\n    *(undefined4 *)(lVar2 + uVar1 * 4) = 0;\n  }\n  return param_1;\n}" (sized_type_specifier "long" long) (pointer_declarator "* FUN_002f3030(long *param_1,undefined4 param_2)" * (function_declarator "FUN_002f3030(long *param_1,undefined4 param_2)" identifier (parameter_list "(long *param_1,undefined4 param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) )))) (compound_statement "{\n  ulong uVar1;\n  long lVar2;\n  \n  lVar2 = *param_1;\n  uVar1 = *(long *)(lVar2 + -0x18) + 1;\n  if ((*(ulong *)(lVar2 + -0x10) < uVar1) || (0 < *(int *)(lVar2 + -8))) {\n    FUN_002f2aa0(param_1,uVar1);\n  }\n  lVar2 = *param_1;\n  *(undefined4 *)(lVar2 + *(long *)(lVar2 + -0x18) * 4) = param_2;\n  if ((undefined *)(lVar2 + -0x18) != PTR_DAT_003bdcd8) {\n    *(undefined4 *)(lVar2 + -8) = 0;\n    *(ulong *)(lVar2 + -0x18) = uVar1;\n    *(undefined4 *)(lVar2 + uVar1 * 4) = 0;\n  }\n  return param_1;\n}" { (declaration "ulong uVar1;" type_identifier identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar2 = *param_1;" (assignment_expression "lVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar1 = *(long *)(lVar2 + -0x18) + 1;" (assignment_expression "uVar1 = *(long *)(lVar2 + -0x18) + 1" identifier = (binary_expression "*(long *)(lVar2 + -0x18) + 1" (pointer_expression "*(long *)(lVar2 + -0x18)" * (cast_expression "(long *)(lVar2 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + -0x18)" ( (binary_expression "lVar2 + -0x18" identifier + number_literal) )))) + number_literal)) ;) (if_statement "if ((*(ulong *)(lVar2 + -0x10) < uVar1) || (0 < *(int *)(lVar2 + -8))) {\n    FUN_002f2aa0(param_1,uVar1);\n  }" if (parenthesized_expression "((*(ulong *)(lVar2 + -0x10) < uVar1) || (0 < *(int *)(lVar2 + -8)))" ( (binary_expression "(*(ulong *)(lVar2 + -0x10) < uVar1) || (0 < *(int *)(lVar2 + -8))" (parenthesized_expression "(*(ulong *)(lVar2 + -0x10) < uVar1)" ( (binary_expression "*(ulong *)(lVar2 + -0x10) < uVar1" (pointer_expression "*(ulong *)(lVar2 + -0x10)" * (cast_expression "(ulong *)(lVar2 + -0x10)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + -0x10)" ( (binary_expression "lVar2 + -0x10" identifier + number_literal) )))) < identifier) )) || (parenthesized_expression "(0 < *(int *)(lVar2 + -8))" ( (binary_expression "0 < *(int *)(lVar2 + -8)" number_literal < (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) ))))) ))) )) (compound_statement "{\n    FUN_002f2aa0(param_1,uVar1);\n  }" { (expression_statement "FUN_002f2aa0(param_1,uVar1);" (call_expression "FUN_002f2aa0(param_1,uVar1)" identifier (argument_list "(param_1,uVar1)" ( identifier , identifier ))) ;) })) (expression_statement "lVar2 = *param_1;" (assignment_expression "lVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "*(undefined4 *)(lVar2 + *(long *)(lVar2 + -0x18) * 4) = param_2;" (assignment_expression "*(undefined4 *)(lVar2 + *(long *)(lVar2 + -0x18) * 4) = param_2" (pointer_expression "*(undefined4 *)(lVar2 + *(long *)(lVar2 + -0x18) * 4)" * (cast_expression "(undefined4 *)(lVar2 + *(long *)(lVar2 + -0x18) * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + *(long *)(lVar2 + -0x18) * 4)" ( (binary_expression "lVar2 + *(long *)(lVar2 + -0x18) * 4" identifier + (binary_expression "*(long *)(lVar2 + -0x18) * 4" (pointer_expression "*(long *)(lVar2 + -0x18)" * (cast_expression "(long *)(lVar2 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + -0x18)" ( (binary_expression "lVar2 + -0x18" identifier + number_literal) )))) * number_literal)) )))) = identifier) ;) (if_statement "if ((undefined *)(lVar2 + -0x18) != PTR_DAT_003bdcd8) {\n    *(undefined4 *)(lVar2 + -8) = 0;\n    *(ulong *)(lVar2 + -0x18) = uVar1;\n    *(undefined4 *)(lVar2 + uVar1 * 4) = 0;\n  }" if (parenthesized_expression "((undefined *)(lVar2 + -0x18) != PTR_DAT_003bdcd8)" ( (binary_expression "(undefined *)(lVar2 + -0x18) != PTR_DAT_003bdcd8" (cast_expression "(undefined *)(lVar2 + -0x18)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + -0x18)" ( (binary_expression "lVar2 + -0x18" identifier + number_literal) ))) != identifier) )) (compound_statement "{\n    *(undefined4 *)(lVar2 + -8) = 0;\n    *(ulong *)(lVar2 + -0x18) = uVar1;\n    *(undefined4 *)(lVar2 + uVar1 * 4) = 0;\n  }" { (expression_statement "*(undefined4 *)(lVar2 + -8) = 0;" (assignment_expression "*(undefined4 *)(lVar2 + -8) = 0" (pointer_expression "*(undefined4 *)(lVar2 + -8)" * (cast_expression "(undefined4 *)(lVar2 + -8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + -8)" ( (binary_expression "lVar2 + -8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(ulong *)(lVar2 + -0x18) = uVar1;" (assignment_expression "*(ulong *)(lVar2 + -0x18) = uVar1" (pointer_expression "*(ulong *)(lVar2 + -0x18)" * (cast_expression "(ulong *)(lVar2 + -0x18)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + -0x18)" ( (binary_expression "lVar2 + -0x18" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(lVar2 + uVar1 * 4) = 0;" (assignment_expression "*(undefined4 *)(lVar2 + uVar1 * 4) = 0" (pointer_expression "*(undefined4 *)(lVar2 + uVar1 * 4)" * (cast_expression "(undefined4 *)(lVar2 + uVar1 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + uVar1 * 4)" ( (binary_expression "lVar2 + uVar1 * 4" identifier + (binary_expression "uVar1 * 4" identifier * number_literal)) )))) = number_literal) ;) })) (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 TYPE IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < IDENT) )) || (parenthesized_expression ( (binary_expression LIT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) * LIT)) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) != IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) = LIT) ;) })) (return_statement return IDENT ;) })))
(function_definition "long * FUN_002f3030(long *param_1,undefined4 param_2)\n\n{\n  ulong uVar1;\n  long lVar2;\n  \n  lVar2 = *param_1;\n  uVar1 = *(long *)(lVar2 + -0x18) + 1;\n  if ((*(ulong *)(lVar2 + -0x10) < uVar1) || (0 < *(int *)(lVar2 + -8))) {\n    FUN_002f2aa0(param_1,uVar1);\n  }\n  lVar2 = *param_1;\n  *(undefined4 *)(lVar2 + *(long *)(lVar2 + -0x18) * 4) = param_2;\n  if ((undefined *)(lVar2 + -0x18) != PTR_DAT_003bdcd8) {\n    *(undefined4 *)(lVar2 + -8) = 0;\n    *(ulong *)(lVar2 + -0x18) = uVar1;\n    *(undefined4 *)(lVar2 + uVar1 * 4) = 0;\n  }\n  return param_1;\n}" (sized_type_specifier "long" (long "long")) (pointer_declarator "* FUN_002f3030(long *param_1,undefined4 param_2)" (* "*") (function_declarator "FUN_002f3030(long *param_1,undefined4 param_2)" (identifier "FUN_002f3030") (parameter_list "(long *param_1,undefined4 param_2)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")")))) (compound_statement "{\n  ulong uVar1;\n  long lVar2;\n  \n  lVar2 = *param_1;\n  uVar1 = *(long *)(lVar2 + -0x18) + 1;\n  if ((*(ulong *)(lVar2 + -0x10) < uVar1) || (0 < *(int *)(lVar2 + -8))) {\n    FUN_002f2aa0(param_1,uVar1);\n  }\n  lVar2 = *param_1;\n  *(undefined4 *)(lVar2 + *(long *)(lVar2 + -0x18) * 4) = param_2;\n  if ((undefined *)(lVar2 + -0x18) != PTR_DAT_003bdcd8) {\n    *(undefined4 *)(lVar2 + -8) = 0;\n    *(ulong *)(lVar2 + -0x18) = uVar1;\n    *(undefined4 *)(lVar2 + uVar1 * 4) = 0;\n  }\n  return param_1;\n}" ({ "{") (declaration "ulong uVar1;" (type_identifier "ulong") (identifier "uVar1") (; ";")) (declaration "long lVar2;" (sized_type_specifier "long" (long "long")) (identifier "lVar2") (; ";")) (expression_statement "lVar2 = *param_1;" (assignment_expression "lVar2 = *param_1" (identifier "lVar2") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "uVar1 = *(long *)(lVar2 + -0x18) + 1;" (assignment_expression "uVar1 = *(long *)(lVar2 + -0x18) + 1" (identifier "uVar1") (= "=") (binary_expression "*(long *)(lVar2 + -0x18) + 1" (pointer_expression "*(long *)(lVar2 + -0x18)" (* "*") (cast_expression "(long *)(lVar2 + -0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + -0x18)" (( "(") (binary_expression "lVar2 + -0x18" (identifier "lVar2") (+ "+") (number_literal "-0x18")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (if_statement "if ((*(ulong *)(lVar2 + -0x10) < uVar1) || (0 < *(int *)(lVar2 + -8))) {\n    FUN_002f2aa0(param_1,uVar1);\n  }" (if "if") (parenthesized_expression "((*(ulong *)(lVar2 + -0x10) < uVar1) || (0 < *(int *)(lVar2 + -8)))" (( "(") (binary_expression "(*(ulong *)(lVar2 + -0x10) < uVar1) || (0 < *(int *)(lVar2 + -8))" (parenthesized_expression "(*(ulong *)(lVar2 + -0x10) < uVar1)" (( "(") (binary_expression "*(ulong *)(lVar2 + -0x10) < uVar1" (pointer_expression "*(ulong *)(lVar2 + -0x10)" (* "*") (cast_expression "(ulong *)(lVar2 + -0x10)" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + -0x10)" (( "(") (binary_expression "lVar2 + -0x10" (identifier "lVar2") (+ "+") (number_literal "-0x10")) () ")")))) (< "<") (identifier "uVar1")) () ")")) (|| "||") (parenthesized_expression "(0 < *(int *)(lVar2 + -8))" (( "(") (binary_expression "0 < *(int *)(lVar2 + -8)" (number_literal "0") (< "<") (pointer_expression "*(int *)(lVar2 + -8)" (* "*") (cast_expression "(int *)(lVar2 + -8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + -8)" (( "(") (binary_expression "lVar2 + -8" (identifier "lVar2") (+ "+") (number_literal "-8")) () ")"))))) () ")"))) () ")")) (compound_statement "{\n    FUN_002f2aa0(param_1,uVar1);\n  }" ({ "{") (expression_statement "FUN_002f2aa0(param_1,uVar1);" (call_expression "FUN_002f2aa0(param_1,uVar1)" (identifier "FUN_002f2aa0") (argument_list "(param_1,uVar1)" (( "(") (identifier "param_1") (, ",") (identifier "uVar1") () ")"))) (; ";")) (} "}"))) (expression_statement "lVar2 = *param_1;" (assignment_expression "lVar2 = *param_1" (identifier "lVar2") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "*(undefined4 *)(lVar2 + *(long *)(lVar2 + -0x18) * 4) = param_2;" (assignment_expression "*(undefined4 *)(lVar2 + *(long *)(lVar2 + -0x18) * 4) = param_2" (pointer_expression "*(undefined4 *)(lVar2 + *(long *)(lVar2 + -0x18) * 4)" (* "*") (cast_expression "(undefined4 *)(lVar2 + *(long *)(lVar2 + -0x18) * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + *(long *)(lVar2 + -0x18) * 4)" (( "(") (binary_expression "lVar2 + *(long *)(lVar2 + -0x18) * 4" (identifier "lVar2") (+ "+") (binary_expression "*(long *)(lVar2 + -0x18) * 4" (pointer_expression "*(long *)(lVar2 + -0x18)" (* "*") (cast_expression "(long *)(lVar2 + -0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + -0x18)" (( "(") (binary_expression "lVar2 + -0x18" (identifier "lVar2") (+ "+") (number_literal "-0x18")) () ")")))) (* "*") (number_literal "4"))) () ")")))) (= "=") (identifier "param_2")) (; ";")) (if_statement "if ((undefined *)(lVar2 + -0x18) != PTR_DAT_003bdcd8) {\n    *(undefined4 *)(lVar2 + -8) = 0;\n    *(ulong *)(lVar2 + -0x18) = uVar1;\n    *(undefined4 *)(lVar2 + uVar1 * 4) = 0;\n  }" (if "if") (parenthesized_expression "((undefined *)(lVar2 + -0x18) != PTR_DAT_003bdcd8)" (( "(") (binary_expression "(undefined *)(lVar2 + -0x18) != PTR_DAT_003bdcd8" (cast_expression "(undefined *)(lVar2 + -0x18)" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + -0x18)" (( "(") (binary_expression "lVar2 + -0x18" (identifier "lVar2") (+ "+") (number_literal "-0x18")) () ")"))) (!= "!=") (identifier "PTR_DAT_003bdcd8")) () ")")) (compound_statement "{\n    *(undefined4 *)(lVar2 + -8) = 0;\n    *(ulong *)(lVar2 + -0x18) = uVar1;\n    *(undefined4 *)(lVar2 + uVar1 * 4) = 0;\n  }" ({ "{") (expression_statement "*(undefined4 *)(lVar2 + -8) = 0;" (assignment_expression "*(undefined4 *)(lVar2 + -8) = 0" (pointer_expression "*(undefined4 *)(lVar2 + -8)" (* "*") (cast_expression "(undefined4 *)(lVar2 + -8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + -8)" (( "(") (binary_expression "lVar2 + -8" (identifier "lVar2") (+ "+") (number_literal "-8")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(ulong *)(lVar2 + -0x18) = uVar1;" (assignment_expression "*(ulong *)(lVar2 + -0x18) = uVar1" (pointer_expression "*(ulong *)(lVar2 + -0x18)" (* "*") (cast_expression "(ulong *)(lVar2 + -0x18)" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + -0x18)" (( "(") (binary_expression "lVar2 + -0x18" (identifier "lVar2") (+ "+") (number_literal "-0x18")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "*(undefined4 *)(lVar2 + uVar1 * 4) = 0;" (assignment_expression "*(undefined4 *)(lVar2 + uVar1 * 4) = 0" (pointer_expression "*(undefined4 *)(lVar2 + uVar1 * 4)" (* "*") (cast_expression "(undefined4 *)(lVar2 + uVar1 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + uVar1 * 4)" (( "(") (binary_expression "lVar2 + uVar1 * 4" (identifier "lVar2") (+ "+") (binary_expression "uVar1 * 4" (identifier "uVar1") (* "*") (number_literal "4"))) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

/* std::wstring::TEMPNAMEPLACEHOLDERVALUE(wchar_t) */

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

{
  type_1 var_2;
  long var_1;
  
  var_1 = *(long *)this;
  var_2 = *(long *)(var_1 + -0x18) + 1;
  if ((*(type_1 *)(var_1 + -0x10) < var_2) || (0 < *(int *)(var_1 + -8))) {
    var_3(this,var_2);
  }
  var_1 = *(long *)this;
  *(type_2 *)(var_1 + *(long *)(var_1 + -0x18) * 4) = param_1;
  if ((type_3 *)(var_1 + -0x18) != var_4) {
    *(type_4 *)(var_1 + -8) = 0;
    *(type_1 *)(var_1 + -0x18) = var_2;
    *(type_4 *)(var_1 + var_2 * 4) = 0;
  }
  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: (type_identifier) declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) right: (parenthesized_expression (binary_expression left: (number_literal) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))))) right: (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: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) right: (number_literal))))) (return_statement (identifier)))))

long * MASKED(long *param_1,undefined4 param_2)

{
  ulong uVar1;
  long lVar2;
  
  lVar2 = *param_1;
  uVar1 = *(long *)(lVar2 + -0x18) + 1;
  if ((*(ulong *)(lVar2 + -0x10) < uVar1) || (0 < *(int *)(lVar2 + -8))) {
    FUN_002f2aa0(param_1,uVar1);
  }
  lVar2 = *param_1;
  *(undefined4 *)(lVar2 + *(long *)(lVar2 + -0x18) * 4) = param_2;
  if ((undefined *)(lVar2 + -0x18) != PTR_DAT_003bdcd8) {
    *(undefined4 *)(lVar2 + -8) = 0;
    *(ulong *)(lVar2 + -0x18) = uVar1;
    *(undefined4 *)(lVar2 + uVar1 * 4) = 0;
  }
  return param_1;
}

