
/* std::wstring::swap(std::wstring&) */

void __thiscall std::wstring::swap(wstring *this,wstring *param_1)

{
  int iVar1;
  int iVar2;
  
  iVar1 = *(int *)this;
  if (*(int *)(iVar1 + -4) < 0) {
    *(undefined4 *)(iVar1 + -4) = 0;
  }
  iVar2 = *(int *)param_1;
  if (*(int *)(iVar2 + -4) < 0) {
    *(undefined4 *)(iVar2 + -4) = 0;
  }
  *(int *)this = iVar2;
  *(int *)param_1 = iVar1;
  return;
}



void FUN_004301a0(int *param_1,int *param_2)

{
  int iVar1;
  int iVar2;
  
  iVar1 = *param_1;
  if (*(int *)(iVar1 + -4) < 0) {
    *(undefined4 *)(iVar1 + -4) = 0;
  }
  iVar2 = *param_2;
  if (*(int *)(iVar2 + -4) < 0) {
    *(undefined4 *)(iVar2 + -4) = 0;
  }
  *param_1 = iVar2;
  *param_2 = iVar1;
  return;
}


PUSH ESI
PUSH EBX
MOV EBX,dword ptr [ESP + 0xc]
MOV ECX,dword ptr [ESP + 0x10]
MOV EAX,dword ptr [EBX]
MOV EDX,dword ptr [EAX + -0x4]
TEST EDX,EDX
JNS 0x004301ba
MOV dword ptr [EAX + -0x4],0x0
MOV EDX,dword ptr [ECX]
MOV ESI,dword ptr [EDX + -0x4]
TEST ESI,ESI
JNS 0x004301ca
MOV dword ptr [EDX + -0x4],0x0
MOV dword ptr [EBX],EDX
MOV dword ptr [ECX],EAX
POP EBX
POP ESI
RET
(translation_unit "void FUN_004301a0(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *param_1;\n  if (*(int *)(iVar1 + -4) < 0) {\n    *(undefined4 *)(iVar1 + -4) = 0;\n  }\n  iVar2 = *param_2;\n  if (*(int *)(iVar2 + -4) < 0) {\n    *(undefined4 *)(iVar2 + -4) = 0;\n  }\n  *param_1 = iVar2;\n  *param_2 = iVar1;\n  return;\n}\n\n" (function_definition "void FUN_004301a0(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *param_1;\n  if (*(int *)(iVar1 + -4) < 0) {\n    *(undefined4 *)(iVar1 + -4) = 0;\n  }\n  iVar2 = *param_2;\n  if (*(int *)(iVar2 + -4) < 0) {\n    *(undefined4 *)(iVar2 + -4) = 0;\n  }\n  *param_1 = iVar2;\n  *param_2 = iVar1;\n  return;\n}" primitive_type (function_declarator "FUN_004301a0(int *param_1,int *param_2)" identifier (parameter_list "(int *param_1,int *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *param_1;\n  if (*(int *)(iVar1 + -4) < 0) {\n    *(undefined4 *)(iVar1 + -4) = 0;\n  }\n  iVar2 = *param_2;\n  if (*(int *)(iVar2 + -4) < 0) {\n    *(undefined4 *)(iVar2 + -4) = 0;\n  }\n  *param_1 = iVar2;\n  *param_2 = iVar1;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (*(int *)(iVar1 + -4) < 0) {\n    *(undefined4 *)(iVar1 + -4) = 0;\n  }" if (parenthesized_expression "(*(int *)(iVar1 + -4) < 0)" ( (binary_expression "*(int *)(iVar1 + -4) < 0" (pointer_expression "*(int *)(iVar1 + -4)" * (cast_expression "(int *)(iVar1 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -4)" ( (binary_expression "iVar1 + -4" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\n    *(undefined4 *)(iVar1 + -4) = 0;\n  }" { (expression_statement "*(undefined4 *)(iVar1 + -4) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + -4) = 0" (pointer_expression "*(undefined4 *)(iVar1 + -4)" * (cast_expression "(undefined4 *)(iVar1 + -4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -4)" ( (binary_expression "iVar1 + -4" identifier + number_literal) )))) = number_literal) ;) })) (expression_statement "iVar2 = *param_2;" (assignment_expression "iVar2 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (if_statement "if (*(int *)(iVar2 + -4) < 0) {\n    *(undefined4 *)(iVar2 + -4) = 0;\n  }" if (parenthesized_expression "(*(int *)(iVar2 + -4) < 0)" ( (binary_expression "*(int *)(iVar2 + -4) < 0" (pointer_expression "*(int *)(iVar2 + -4)" * (cast_expression "(int *)(iVar2 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -4)" ( (binary_expression "iVar2 + -4" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\n    *(undefined4 *)(iVar2 + -4) = 0;\n  }" { (expression_statement "*(undefined4 *)(iVar2 + -4) = 0;" (assignment_expression "*(undefined4 *)(iVar2 + -4) = 0" (pointer_expression "*(undefined4 *)(iVar2 + -4)" * (cast_expression "(undefined4 *)(iVar2 + -4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -4)" ( (binary_expression "iVar2 + -4" identifier + number_literal) )))) = number_literal) ;) })) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "*param_2 = iVar1;" (assignment_expression "*param_2 = iVar1" (pointer_expression "*param_2" * identifier) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "/* std::wstring::swap(std::wstring&) */\n\nvoid __thiscall std::wstring::swap(wstring *this,wstring *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *(int *)this;\n  if (*(int *)(iVar1 + -4) < 0) {\n    *(undefined4 *)(iVar1 + -4) = 0;\n  }\n  iVar2 = *(int *)param_1;\n  if (*(int *)(iVar2 + -4) < 0) {\n    *(undefined4 *)(iVar2 + -4) = 0;\n  }\n  *(int *)this = iVar2;\n  *(int *)param_1 = iVar1;\n  return;\n}\n\n" comment (function_definition "void __thiscall std::wstring::swap(wstring *this,wstring *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *(int *)this;\n  if (*(int *)(iVar1 + -4) < 0) {\n    *(undefined4 *)(iVar1 + -4) = 0;\n  }\n  iVar2 = *(int *)param_1;\n  if (*(int *)(iVar2 + -4) < 0) {\n    *(undefined4 *)(iVar2 + -4) = 0;\n  }\n  *(int *)this = iVar2;\n  *(int *)param_1 = iVar1;\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::wstring::" identifier : : identifier : :) (function_declarator "swap(wstring *this,wstring *param_1)" identifier (parameter_list "(wstring *this,wstring *param_1)" ( (parameter_declaration "wstring *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "wstring *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *(int *)this;\n  if (*(int *)(iVar1 + -4) < 0) {\n    *(undefined4 *)(iVar1 + -4) = 0;\n  }\n  iVar2 = *(int *)param_1;\n  if (*(int *)(iVar2 + -4) < 0) {\n    *(undefined4 *)(iVar2 + -4) = 0;\n  }\n  *(int *)this = iVar2;\n  *(int *)param_1 = iVar1;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)this;" (assignment_expression "iVar1 = *(int *)this" identifier = (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (*(int *)(iVar1 + -4) < 0) {\n    *(undefined4 *)(iVar1 + -4) = 0;\n  }" if (parenthesized_expression "(*(int *)(iVar1 + -4) < 0)" ( (binary_expression "*(int *)(iVar1 + -4) < 0" (pointer_expression "*(int *)(iVar1 + -4)" * (cast_expression "(int *)(iVar1 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -4)" ( (binary_expression "iVar1 + -4" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\n    *(undefined4 *)(iVar1 + -4) = 0;\n  }" { (expression_statement "*(undefined4 *)(iVar1 + -4) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + -4) = 0" (pointer_expression "*(undefined4 *)(iVar1 + -4)" * (cast_expression "(undefined4 *)(iVar1 + -4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -4)" ( (binary_expression "iVar1 + -4" identifier + number_literal) )))) = number_literal) ;) })) (expression_statement "iVar2 = *(int *)param_1;" (assignment_expression "iVar2 = *(int *)param_1" identifier = (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (*(int *)(iVar2 + -4) < 0) {\n    *(undefined4 *)(iVar2 + -4) = 0;\n  }" if (parenthesized_expression "(*(int *)(iVar2 + -4) < 0)" ( (binary_expression "*(int *)(iVar2 + -4) < 0" (pointer_expression "*(int *)(iVar2 + -4)" * (cast_expression "(int *)(iVar2 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -4)" ( (binary_expression "iVar2 + -4" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\n    *(undefined4 *)(iVar2 + -4) = 0;\n  }" { (expression_statement "*(undefined4 *)(iVar2 + -4) = 0;" (assignment_expression "*(undefined4 *)(iVar2 + -4) = 0" (pointer_expression "*(undefined4 *)(iVar2 + -4)" * (cast_expression "(undefined4 *)(iVar2 + -4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -4)" ( (binary_expression "iVar2 + -4" identifier + number_literal) )))) = number_literal) ;) })) (expression_statement "*(int *)this = iVar2;" (assignment_expression "*(int *)this = iVar2" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "*(int *)param_1 = iVar1;" (assignment_expression "*(int *)param_1 = iVar1" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_004301a0(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *param_1;\n  if (*(int *)(iVar1 + -4) < 0) {\n    *(undefined4 *)(iVar1 + -4) = 0;\n  }\n  iVar2 = *param_2;\n  if (*(int *)(iVar2 + -4) < 0) {\n    *(undefined4 *)(iVar2 + -4) = 0;\n  }\n  *param_1 = iVar2;\n  *param_2 = iVar1;\n  return;\n}\n\n" (function_definition "void FUN_004301a0(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *param_1;\n  if (*(int *)(iVar1 + -4) < 0) {\n    *(undefined4 *)(iVar1 + -4) = 0;\n  }\n  iVar2 = *param_2;\n  if (*(int *)(iVar2 + -4) < 0) {\n    *(undefined4 *)(iVar2 + -4) = 0;\n  }\n  *param_1 = iVar2;\n  *param_2 = iVar1;\n  return;\n}" primitive_type (function_declarator "FUN_004301a0(int *param_1,int *param_2)" identifier (parameter_list "(int *param_1,int *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *param_1;\n  if (*(int *)(iVar1 + -4) < 0) {\n    *(undefined4 *)(iVar1 + -4) = 0;\n  }\n  iVar2 = *param_2;\n  if (*(int *)(iVar2 + -4) < 0) {\n    *(undefined4 *)(iVar2 + -4) = 0;\n  }\n  *param_1 = iVar2;\n  *param_2 = iVar1;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (*(int *)(iVar1 + -4) < 0) {\n    *(undefined4 *)(iVar1 + -4) = 0;\n  }" if (parenthesized_expression "(*(int *)(iVar1 + -4) < 0)" ( (binary_expression "*(int *)(iVar1 + -4) < 0" (pointer_expression "*(int *)(iVar1 + -4)" * (cast_expression "(int *)(iVar1 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -4)" ( (binary_expression "iVar1 + -4" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\n    *(undefined4 *)(iVar1 + -4) = 0;\n  }" { (expression_statement "*(undefined4 *)(iVar1 + -4) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + -4) = 0" (pointer_expression "*(undefined4 *)(iVar1 + -4)" * (cast_expression "(undefined4 *)(iVar1 + -4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -4)" ( (binary_expression "iVar1 + -4" identifier + number_literal) )))) = number_literal) ;) })) (expression_statement "iVar2 = *param_2;" (assignment_expression "iVar2 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (if_statement "if (*(int *)(iVar2 + -4) < 0) {\n    *(undefined4 *)(iVar2 + -4) = 0;\n  }" if (parenthesized_expression "(*(int *)(iVar2 + -4) < 0)" ( (binary_expression "*(int *)(iVar2 + -4) < 0" (pointer_expression "*(int *)(iVar2 + -4)" * (cast_expression "(int *)(iVar2 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -4)" ( (binary_expression "iVar2 + -4" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\n    *(undefined4 *)(iVar2 + -4) = 0;\n  }" { (expression_statement "*(undefined4 *)(iVar2 + -4) = 0;" (assignment_expression "*(undefined4 *)(iVar2 + -4) = 0" (pointer_expression "*(undefined4 *)(iVar2 + -4)" * (cast_expression "(undefined4 *)(iVar2 + -4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -4)" ( (binary_expression "iVar2 + -4" identifier + number_literal) )))) = number_literal) ;) })) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "*param_2 = iVar1;" (assignment_expression "*param_2 = iVar1" (pointer_expression "*param_2" * identifier) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < LIT) )) (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 IDENT = (pointer_expression * IDENT)) ;) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return ;) })))
(function_definition "void FUN_004301a0(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *param_1;\n  if (*(int *)(iVar1 + -4) < 0) {\n    *(undefined4 *)(iVar1 + -4) = 0;\n  }\n  iVar2 = *param_2;\n  if (*(int *)(iVar2 + -4) < 0) {\n    *(undefined4 *)(iVar2 + -4) = 0;\n  }\n  *param_1 = iVar2;\n  *param_2 = iVar1;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_004301a0(int *param_1,int *param_2)" (identifier "FUN_004301a0") (parameter_list "(int *param_1,int *param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *param_1;\n  if (*(int *)(iVar1 + -4) < 0) {\n    *(undefined4 *)(iVar1 + -4) = 0;\n  }\n  iVar2 = *param_2;\n  if (*(int *)(iVar2 + -4) < 0) {\n    *(undefined4 *)(iVar2 + -4) = 0;\n  }\n  *param_1 = iVar2;\n  *param_2 = iVar1;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" (identifier "iVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (*(int *)(iVar1 + -4) < 0) {\n    *(undefined4 *)(iVar1 + -4) = 0;\n  }" (if "if") (parenthesized_expression "(*(int *)(iVar1 + -4) < 0)" (( "(") (binary_expression "*(int *)(iVar1 + -4) < 0" (pointer_expression "*(int *)(iVar1 + -4)" (* "*") (cast_expression "(int *)(iVar1 + -4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + -4)" (( "(") (binary_expression "iVar1 + -4" (identifier "iVar1") (+ "+") (number_literal "-4")) () ")")))) (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    *(undefined4 *)(iVar1 + -4) = 0;\n  }" ({ "{") (expression_statement "*(undefined4 *)(iVar1 + -4) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + -4) = 0" (pointer_expression "*(undefined4 *)(iVar1 + -4)" (* "*") (cast_expression "(undefined4 *)(iVar1 + -4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + -4)" (( "(") (binary_expression "iVar1 + -4" (identifier "iVar1") (+ "+") (number_literal "-4")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "iVar2 = *param_2;" (assignment_expression "iVar2 = *param_2" (identifier "iVar2") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (if_statement "if (*(int *)(iVar2 + -4) < 0) {\n    *(undefined4 *)(iVar2 + -4) = 0;\n  }" (if "if") (parenthesized_expression "(*(int *)(iVar2 + -4) < 0)" (( "(") (binary_expression "*(int *)(iVar2 + -4) < 0" (pointer_expression "*(int *)(iVar2 + -4)" (* "*") (cast_expression "(int *)(iVar2 + -4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + -4)" (( "(") (binary_expression "iVar2 + -4" (identifier "iVar2") (+ "+") (number_literal "-4")) () ")")))) (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    *(undefined4 *)(iVar2 + -4) = 0;\n  }" ({ "{") (expression_statement "*(undefined4 *)(iVar2 + -4) = 0;" (assignment_expression "*(undefined4 *)(iVar2 + -4) = 0" (pointer_expression "*(undefined4 *)(iVar2 + -4)" (* "*") (cast_expression "(undefined4 *)(iVar2 + -4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + -4)" (( "(") (binary_expression "iVar2 + -4" (identifier "iVar2") (+ "+") (number_literal "-4")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "*param_2 = iVar1;" (assignment_expression "*param_2 = iVar1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "iVar1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* std::wstring::swap(std::wstring&) */

void __thiscall std::type_1::function_1(type_1 *this,type_1 *param_1)

{
  int var_1;
  int var_2;
  
  var_1 = *(int *)this;
  if (*(int *)(var_1 + -4) < 0) {
    *(type_2 *)(var_1 + -4) = 0;
  }
  var_2 = *(int *)param_1;
  if (*(int *)(var_2 + -4) < 0) {
    *(type_2 *)(var_2 + -4) = 0;
  }
  *(int *)this = var_2;
  *(int *)param_1 = var_1;
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (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: (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: (identifier) right: (pointer_expression argument: (identifier)))) (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: (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: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (return_statement))))

void MASKED(int *param_1,int *param_2)

{
  int iVar1;
  int iVar2;
  
  iVar1 = *param_1;
  if (*(int *)(iVar1 + -4) < 0) {
    *(undefined4 *)(iVar1 + -4) = 0;
  }
  iVar2 = *param_2;
  if (*(int *)(iVar2 + -4) < 0) {
    *(undefined4 *)(iVar2 + -4) = 0;
  }
  *param_1 = iVar2;
  *param_2 = iVar1;
  return;
}

