
/* std::string::capacity() const */

undefined4 __thiscall std::string::capacity(string *this)

{
  if (*(string **)this != this + 8) {
    return *(undefined4 *)(this + 8);
  }
  return 0xf;
}



int FUN_002c0178(int *param_1)

{
  if ((int *)*param_1 != param_1 + 2) {
    return param_1[2];
  }
  return 0xf;
}


lw v1,0x0(a0)
addiu v0,a0,0x8
beq v1,v0,0x002c0190
_nop
jr ra
_lw v0,0x8(a0)
jr ra
_li v0,0xf
(translation_unit "int FUN_002c0178(int *param_1)\n\n{\n  if ((int *)*param_1 != param_1 + 2) {\n    return param_1[2];\n  }\n  return 0xf;\n}\n\n" (function_definition "int FUN_002c0178(int *param_1)\n\n{\n  if ((int *)*param_1 != param_1 + 2) {\n    return param_1[2];\n  }\n  return 0xf;\n}" primitive_type (function_declarator "FUN_002c0178(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  if ((int *)*param_1 != param_1 + 2) {\n    return param_1[2];\n  }\n  return 0xf;\n}" { (if_statement "if ((int *)*param_1 != param_1 + 2) {\n    return param_1[2];\n  }" if (parenthesized_expression "((int *)*param_1 != param_1 + 2)" ( (binary_expression "(int *)*param_1 != param_1 + 2" (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) != (binary_expression "param_1 + 2" identifier + number_literal)) )) (compound_statement "{\n    return param_1[2];\n  }" { (return_statement "return param_1[2];" return (subscript_expression "param_1[2]" identifier [ number_literal ]) ;) })) (return_statement "return 0xf;" return number_literal ;) })))
(translation_unit "/* std::string::capacity() const */\n\nundefined4 __thiscall std::string::capacity(string *this)\n\n{\n  if (*(string **)this != this + 8) {\n    return *(undefined4 *)(this + 8);\n  }\n  return 0xf;\n}\n\n" comment (function_definition "undefined4 __thiscall std::string::capacity(string *this)\n\n{\n  if (*(string **)this != this + 8) {\n    return *(undefined4 *)(this + 8);\n  }\n  return 0xf;\n}" type_identifier (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::string::" identifier : : identifier : :) (function_declarator "capacity(string *this)" identifier (parameter_list "(string *this)" ( (parameter_declaration "string *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  if (*(string **)this != this + 8) {\n    return *(undefined4 *)(this + 8);\n  }\n  return 0xf;\n}" { (if_statement "if (*(string **)this != this + 8) {\n    return *(undefined4 *)(this + 8);\n  }" if (parenthesized_expression "(*(string **)this != this + 8)" ( (binary_expression "*(string **)this != this + 8" (pointer_expression "*(string **)this" * (cast_expression "(string **)this" ( (type_descriptor "string **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) != (binary_expression "this + 8" identifier + number_literal)) )) (compound_statement "{\n    return *(undefined4 *)(this + 8);\n  }" { (return_statement "return *(undefined4 *)(this + 8);" return (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) )))) ;) })) (return_statement "return 0xf;" return number_literal ;) })))
(translation_unit "int FUN_002c0178(int *param_1)\n\n{\n  if ((int *)*param_1 != param_1 + 2) {\n    return param_1[2];\n  }\n  return 0xf;\n}\n\n" (function_definition "int FUN_002c0178(int *param_1)\n\n{\n  if ((int *)*param_1 != param_1 + 2) {\n    return param_1[2];\n  }\n  return 0xf;\n}" primitive_type (function_declarator "FUN_002c0178(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  if ((int *)*param_1 != param_1 + 2) {\n    return param_1[2];\n  }\n  return 0xf;\n}" { (if_statement "if ((int *)*param_1 != param_1 + 2) {\n    return param_1[2];\n  }" if (parenthesized_expression "((int *)*param_1 != param_1 + 2)" ( (binary_expression "(int *)*param_1 != param_1 + 2" (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) != (binary_expression "param_1 + 2" identifier + number_literal)) )) (compound_statement "{\n    return param_1[2];\n  }" { (return_statement "return param_1[2];" return (subscript_expression "param_1[2]" identifier [ number_literal ]) ;) })) (return_statement "return 0xf;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) != (binary_expression IDENT + LIT)) )) (compound_statement { (return_statement return (subscript_expression IDENT [ LIT ]) ;) })) (return_statement return LIT ;) })))
(function_definition "int FUN_002c0178(int *param_1)\n\n{\n  if ((int *)*param_1 != param_1 + 2) {\n    return param_1[2];\n  }\n  return 0xf;\n}" (primitive_type "int") (function_declarator "FUN_002c0178(int *param_1)" (identifier "FUN_002c0178") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  if ((int *)*param_1 != param_1 + 2) {\n    return param_1[2];\n  }\n  return 0xf;\n}" ({ "{") (if_statement "if ((int *)*param_1 != param_1 + 2) {\n    return param_1[2];\n  }" (if "if") (parenthesized_expression "((int *)*param_1 != param_1 + 2)" (( "(") (binary_expression "(int *)*param_1 != param_1 + 2" (cast_expression "(int *)*param_1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (!= "!=") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2"))) () ")")) (compound_statement "{\n    return param_1[2];\n  }" ({ "{") (return_statement "return param_1[2];" (return "return") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (; ";")) (} "}"))) (return_statement "return 0xf;" (return "return") (number_literal "0xf") (; ";")) (} "}")))

/* std::string::capacity() const */

type_1 __thiscall std::type_2::function_1(type_2 *var_1)

{
  if (*(type_2 **)var_1 != var_1 + 8) {
    return *(type_1 *)(var_1 + 8);
  }
  return 0xf;
}


(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))))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))) right: (binary_expression left: (identifier) right: (number_literal)))) consequence: (compound_statement (return_statement (subscript_expression argument: (identifier) index: (number_literal))))) (return_statement (number_literal)))))

int MASKED(int *param_1)

{
  if ((int *)*param_1 != param_1 + 2) {
    return param_1[2];
  }
  return 0xf;
}

