
/* std::wstring::_Rep::_M_set_length_and_sharable(unsigned int) */

void __thiscall std::wstring::_Rep::_M_set_length_and_sharable(_Rep *this,uint param_1)

{
  if (this == (_Rep *)PTR__S_empty_rep_storage_004c133c) {
    return;
  }
  *(undefined4 *)(this + 8) = 0;
  *(uint *)this = param_1;
  *(undefined4 *)(this + param_1 * 4 + 0xc) = 0;
  return;
}



void FUN_003d2214(int *param_1,int param_2)

{
  if (param_1 == (int *)PTR__S_empty_rep_storage_004c133c) {
    return;
  }
  param_1[2] = 0;
  *param_1 = param_2;
  param_1[param_2 + 3] = 0;
  return;
}


lui gp,0xf
addiu gp,gp,0x702c
addu gp,gp,t9
lw v0,-0x7f04(gp)
bne a0,v0,0x003d2234
_sll v0,a1,0x2
jr ra
_nop
sw zero,0x8(a0)
sw a1,0x0(a0)
addu a0,a0,v0
jr ra
_sw zero,0xc(a0)
(translation_unit "void FUN_003d2214(int *param_1,int param_2)\n\n{\n  if (param_1 == (int *)PTR__S_empty_rep_storage_004c133c) {\n    return;\n  }\n  param_1[2] = 0;\n  *param_1 = param_2;\n  param_1[param_2 + 3] = 0;\n  return;\n}\n\n" (function_definition "void FUN_003d2214(int *param_1,int param_2)\n\n{\n  if (param_1 == (int *)PTR__S_empty_rep_storage_004c133c) {\n    return;\n  }\n  param_1[2] = 0;\n  *param_1 = param_2;\n  param_1[param_2 + 3] = 0;\n  return;\n}" primitive_type (function_declarator "FUN_003d2214(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 identifier) ))) (compound_statement "{\n  if (param_1 == (int *)PTR__S_empty_rep_storage_004c133c) {\n    return;\n  }\n  param_1[2] = 0;\n  *param_1 = param_2;\n  param_1[param_2 + 3] = 0;\n  return;\n}" { (if_statement "if (param_1 == (int *)PTR__S_empty_rep_storage_004c133c) {\n    return;\n  }" if (parenthesized_expression "(param_1 == (int *)PTR__S_empty_rep_storage_004c133c)" ( (binary_expression "param_1 == (int *)PTR__S_empty_rep_storage_004c133c" identifier == (cast_expression "(int *)PTR__S_empty_rep_storage_004c133c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_1 = param_2;" (assignment_expression "*param_1 = param_2" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[param_2 + 3] = 0;" (assignment_expression "param_1[param_2 + 3] = 0" (subscript_expression "param_1[param_2 + 3]" identifier [ (binary_expression "param_2 + 3" identifier + number_literal) ]) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "/* std::wstring::_Rep::_M_set_length_and_sharable(unsigned int) */\n\nvoid __thiscall std::wstring::_Rep::_M_set_length_and_sharable(_Rep *this,uint param_1)\n\n{\n  if (this == (_Rep *)PTR__S_empty_rep_storage_004c133c) {\n    return;\n  }\n  *(undefined4 *)(this + 8) = 0;\n  *(uint *)this = param_1;\n  *(undefined4 *)(this + param_1 * 4 + 0xc) = 0;\n  return;\n}\n\n" comment (function_definition "void __thiscall std::wstring::_Rep::_M_set_length_and_sharable(_Rep *this,uint param_1)\n\n{\n  if (this == (_Rep *)PTR__S_empty_rep_storage_004c133c) {\n    return;\n  }\n  *(undefined4 *)(this + 8) = 0;\n  *(uint *)this = param_1;\n  *(undefined4 *)(this + param_1 * 4 + 0xc) = 0;\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::wstring::_Rep::" identifier : : identifier : : identifier : :) (function_declarator "_M_set_length_and_sharable(_Rep *this,uint param_1)" identifier (parameter_list "(_Rep *this,uint param_1)" ( (parameter_declaration "_Rep *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "uint param_1" type_identifier identifier) ))) (compound_statement "{\n  if (this == (_Rep *)PTR__S_empty_rep_storage_004c133c) {\n    return;\n  }\n  *(undefined4 *)(this + 8) = 0;\n  *(uint *)this = param_1;\n  *(undefined4 *)(this + param_1 * 4 + 0xc) = 0;\n  return;\n}" { (if_statement "if (this == (_Rep *)PTR__S_empty_rep_storage_004c133c) {\n    return;\n  }" if (parenthesized_expression "(this == (_Rep *)PTR__S_empty_rep_storage_004c133c)" ( (binary_expression "this == (_Rep *)PTR__S_empty_rep_storage_004c133c" identifier == (cast_expression "(_Rep *)PTR__S_empty_rep_storage_004c133c" ( (type_descriptor "_Rep *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "*(undefined4 *)(this + 8) = 0;" (assignment_expression "*(undefined4 *)(this + 8) = 0" (pointer_expression "*(undefined4 *)(this + 8)" * (cast_expression "(undefined4 *)(this + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(uint *)this = param_1;" (assignment_expression "*(uint *)this = param_1" (pointer_expression "*(uint *)this" * (cast_expression "(uint *)this" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "*(undefined4 *)(this + param_1 * 4 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(this + param_1 * 4 + 0xc) = 0" (pointer_expression "*(undefined4 *)(this + param_1 * 4 + 0xc)" * (cast_expression "(undefined4 *)(this + param_1 * 4 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + param_1 * 4 + 0xc)" ( (binary_expression "this + param_1 * 4 + 0xc" (binary_expression "this + param_1 * 4" identifier + (binary_expression "param_1 * 4" identifier * number_literal)) + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_003d2214(int *param_1,int param_2)\n\n{\n  if (param_1 == (int *)PTR__S_empty_rep_storage_004c133c) {\n    return;\n  }\n  param_1[2] = 0;\n  *param_1 = param_2;\n  param_1[param_2 + 3] = 0;\n  return;\n}\n\n" (function_definition "void FUN_003d2214(int *param_1,int param_2)\n\n{\n  if (param_1 == (int *)PTR__S_empty_rep_storage_004c133c) {\n    return;\n  }\n  param_1[2] = 0;\n  *param_1 = param_2;\n  param_1[param_2 + 3] = 0;\n  return;\n}" primitive_type (function_declarator "FUN_003d2214(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 identifier) ))) (compound_statement "{\n  if (param_1 == (int *)PTR__S_empty_rep_storage_004c133c) {\n    return;\n  }\n  param_1[2] = 0;\n  *param_1 = param_2;\n  param_1[param_2 + 3] = 0;\n  return;\n}" { (if_statement "if (param_1 == (int *)PTR__S_empty_rep_storage_004c133c) {\n    return;\n  }" if (parenthesized_expression "(param_1 == (int *)PTR__S_empty_rep_storage_004c133c)" ( (binary_expression "param_1 == (int *)PTR__S_empty_rep_storage_004c133c" identifier == (cast_expression "(int *)PTR__S_empty_rep_storage_004c133c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_1 = param_2;" (assignment_expression "*param_1 = param_2" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[param_2 + 3] = 0;" (assignment_expression "param_1[param_2 + 3] = 0" (subscript_expression "param_1[param_2 + 3]" identifier [ (binary_expression "param_2 + 3" identifier + number_literal) ]) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) = LIT) ;) (return_statement return ;) })))
(function_definition "void FUN_003d2214(int *param_1,int param_2)\n\n{\n  if (param_1 == (int *)PTR__S_empty_rep_storage_004c133c) {\n    return;\n  }\n  param_1[2] = 0;\n  *param_1 = param_2;\n  param_1[param_2 + 3] = 0;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_003d2214(int *param_1,int param_2)" (identifier "FUN_003d2214") (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") (identifier "param_2")) () ")"))) (compound_statement "{\n  if (param_1 == (int *)PTR__S_empty_rep_storage_004c133c) {\n    return;\n  }\n  param_1[2] = 0;\n  *param_1 = param_2;\n  param_1[param_2 + 3] = 0;\n  return;\n}" ({ "{") (if_statement "if (param_1 == (int *)PTR__S_empty_rep_storage_004c133c) {\n    return;\n  }" (if "if") (parenthesized_expression "(param_1 == (int *)PTR__S_empty_rep_storage_004c133c)" (( "(") (binary_expression "param_1 == (int *)PTR__S_empty_rep_storage_004c133c" (identifier "param_1") (== "==") (cast_expression "(int *)PTR__S_empty_rep_storage_004c133c" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR__S_empty_rep_storage_004c133c"))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*param_1 = param_2;" (assignment_expression "*param_1 = param_2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "param_1[param_2 + 3] = 0;" (assignment_expression "param_1[param_2 + 3] = 0" (subscript_expression "param_1[param_2 + 3]" (identifier "param_1") ([ "[") (binary_expression "param_2 + 3" (identifier "param_2") (+ "+") (number_literal "3")) (] "]")) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "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: (identifier)))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier)))) consequence: (compound_statement (return_statement))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) (return_statement))))

void MASKED(int *param_1,int param_2)

{
  if (param_1 == (int *)PTR__S_empty_rep_storage_004c133c) {
    return;
  }
  param_1[2] = 0;
  *param_1 = param_2;
  param_1[param_2 + 3] = 0;
  return;
}

