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

void __thiscall std::string::swap(string *this,string *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;
}



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

void __thiscall std::string::swap(string *this,string *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;
}


lw v0,0x0(a0)
lw v1,-0x4(v0)
bgez v1,0x00375b44
_nop
sw zero,-0x4(v0)
lw v1,0x0(a1)
lw a2,-0x4(v1)
bgez a2,0x00375b58
_nop
sw zero,-0x4(v1)
sw v1,0x0(a0)
jr ra
_sw v0,0x0(a1)
(translation_unit "/* std::string::swap(std::string&) */\n\nvoid __thiscall std::string::swap(string *this,string *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::string::swap(string *this,string *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::string::" identifier : : identifier : :) (function_declarator "swap(string *this,string *param_1)" identifier (parameter_list "(string *this,string *param_1)" ( (parameter_declaration "string *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "string *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 "/* std::string::swap(std::string&) */\n\nvoid __thiscall std::string::swap(string *this,string *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::string::swap(string *this,string *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::string::" identifier : : identifier : :) (function_declarator "swap(string *this,string *param_1)" identifier (parameter_list "(string *this,string *param_1)" ( (parameter_declaration "string *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "string *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 __thiscall std::string::swap(string *this,string *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" (function_definition "void __thiscall std::string::swap(string *this,string *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::string::" identifier : : identifier : :) (function_declarator "swap(string *this,string *param_1)" identifier (parameter_list "(string *this,string *param_1)" ( (parameter_declaration "string *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "string *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 (function_definition TYPE (ms_call_modifier __thiscall) (ERROR IDENT : : IDENT : :) (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 * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) 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 * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) 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 * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = IDENT) ;) (return_statement return ;) })))
(function_definition "void __thiscall std::string::swap(string *this,string *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 "void") (ms_call_modifier "__thiscall" (__thiscall "__thiscall")) (ERROR "std::string::" (identifier "std") (: ":") (: ":") (identifier "string") (: ":") (: ":")) (function_declarator "swap(string *this,string *param_1)" (identifier "swap") (parameter_list "(string *this,string *param_1)" (( "(") (parameter_declaration "string *this" (type_identifier "string") (pointer_declarator "*this" (* "*") (identifier "this"))) (, ",") (parameter_declaration "string *param_1" (type_identifier "string") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (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 "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "iVar1 = *(int *)this;" (assignment_expression "iVar1 = *(int *)this" (identifier "iVar1") (= "=") (pointer_expression "*(int *)this" (* "*") (cast_expression "(int *)this" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "this")))) (; ";")) (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 = *(int *)param_1;" (assignment_expression "iVar2 = *(int *)param_1" (identifier "iVar2") (= "=") (pointer_expression "*(int *)param_1" (* "*") (cast_expression "(int *)param_1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_1")))) (; ";")) (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 "*(int *)this = iVar2;" (assignment_expression "*(int *)this = iVar2" (pointer_expression "*(int *)this" (* "*") (cast_expression "(int *)this" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "this"))) (= "=") (identifier "iVar2")) (; ";")) (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 "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_1"))) (= "=") (identifier "iVar1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

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) (ms_call_modifier) (ERROR (identifier) (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) 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: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (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: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (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: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (identifier))) (return_statement))))

/* std::string::MASKED(std::string&) */

void __thiscall std::string::MASKED(string *this,string *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;
}

