
/* std::string::erase(__normal_iterator<char const*, std::string >, __normal_iterator<char const*,
   std::string >) */

int * std::string::erase(int *param_1,string *param_2,undefined1 *param_3,int param_4)

{
  uint uVar1;
  
  uVar1 = (int)param_3 - *(int *)param_2;
  if (param_4 != *(int *)param_2 + *(int *)(param_2 + 4)) {
    _M_erase(param_2,uVar1,param_4 - (int)param_3);
    *param_1 = *(int *)param_2 + uVar1;
    return param_1;
  }
  *(uint *)(param_2 + 4) = uVar1;
  *param_3 = 0;
  *param_1 = *(int *)param_2 + uVar1;
  return param_1;
}



int * FUN_0033b934(int *param_1,string *param_2,undefined1 *param_3,int param_4)

{
  uint uVar1;
  
  uVar1 = (int)param_3 - *(int *)param_2;
  if (param_4 != *(int *)param_2 + *(int *)(param_2 + 4)) {
    std::string::_M_erase(param_2,uVar1,param_4 - (int)param_3);
    *param_1 = *(int *)param_2 + uVar1;
    return param_1;
  }
  *(uint *)(param_2 + 4) = uVar1;
  *param_3 = 0;
  *param_1 = *(int *)param_2 + uVar1;
  return param_1;
}


lui gp,0x19
addiu gp,gp,-0x26f4
addu gp,gp,t9
addiu sp,sp,-0x28
sw s2,0x20(sp)
sw s1,0x1c(sp)
or s1,a0,zero
sw s0,0x18(sp)
sw gp,0x10(sp)
sw ra,0x24(sp)
lw v0,0x0(a1)
lw v1,0x4(a1)
subu s2,a2,v0
addu v0,v0,v1
beq a3,v0,0x0033b9b0
_or s0,a1,zero
lw t9,-0x6ad4(gp)
subu a2,a3,a2
or a1,s2,zero
bal 0x0033ad74
_or a0,s0,zero
or v0,s1,zero
lw a1,0x0(s0)
lw ra,0x24(sp)
lw s0,0x18(sp)
addu a1,a1,s2
lw s2,0x20(sp)
sw a1,0x0(s1)
lw s1,0x1c(sp)
jr ra
_addiu sp,sp,0x28
sw s2,0x4(a1)
or v0,s1,zero
sb zero,0x0(a2)
lw a1,0x0(s0)
lw ra,0x24(sp)
lw s0,0x18(sp)
addu a1,a1,s2
lw s2,0x20(sp)
sw a1,0x0(s1)
lw s1,0x1c(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "int * FUN_0033b934(int *param_1,string *param_2,undefined1 *param_3,int param_4)\n\n{\n  uint uVar1;\n  \n  uVar1 = (int)param_3 - *(int *)param_2;\n  if (param_4 != *(int *)param_2 + *(int *)(param_2 + 4)) {\n    std::string::_M_erase(param_2,uVar1,param_4 - (int)param_3);\n    *param_1 = *(int *)param_2 + uVar1;\n    return param_1;\n  }\n  *(uint *)(param_2 + 4) = uVar1;\n  *param_3 = 0;\n  *param_1 = *(int *)param_2 + uVar1;\n  return param_1;\n}\n\n" (function_definition "int * FUN_0033b934(int *param_1,string *param_2,undefined1 *param_3,int param_4)\n\n{\n  uint uVar1;\n  \n  uVar1 = (int)param_3 - *(int *)param_2;\n  if (param_4 != *(int *)param_2 + *(int *)(param_2 + 4)) {\n    std::string::_M_erase(param_2,uVar1,param_4 - (int)param_3);\n    *param_1 = *(int *)param_2 + uVar1;\n    return param_1;\n  }\n  *(uint *)(param_2 + 4) = uVar1;\n  *param_3 = 0;\n  *param_1 = *(int *)param_2 + uVar1;\n  return param_1;\n}" primitive_type (pointer_declarator "* FUN_0033b934(int *param_1,string *param_2,undefined1 *param_3,int param_4)" * (function_declarator "FUN_0033b934(int *param_1,string *param_2,undefined1 *param_3,int param_4)" identifier (parameter_list "(int *param_1,string *param_2,undefined1 *param_3,int param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "string *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined1 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "int param_4" primitive_type identifier) )))) (compound_statement "{\n  uint uVar1;\n  \n  uVar1 = (int)param_3 - *(int *)param_2;\n  if (param_4 != *(int *)param_2 + *(int *)(param_2 + 4)) {\n    std::string::_M_erase(param_2,uVar1,param_4 - (int)param_3);\n    *param_1 = *(int *)param_2 + uVar1;\n    return param_1;\n  }\n  *(uint *)(param_2 + 4) = uVar1;\n  *param_3 = 0;\n  *param_1 = *(int *)param_2 + uVar1;\n  return param_1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = (int)param_3 - *(int *)param_2;" (assignment_expression "uVar1 = (int)param_3 - *(int *)param_2" identifier = (binary_expression "(int)param_3 - *(int *)param_2" (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) - (pointer_expression "*(int *)param_2" * (cast_expression "(int *)param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)))) ;) (if_statement "if (param_4 != *(int *)param_2 + *(int *)(param_2 + 4)) {\n    std::string::_M_erase(param_2,uVar1,param_4 - (int)param_3);\n    *param_1 = *(int *)param_2 + uVar1;\n    return param_1;\n  }" if (parenthesized_expression "(param_4 != *(int *)param_2 + *(int *)(param_2 + 4))" ( (binary_expression "param_4 != *(int *)param_2 + *(int *)(param_2 + 4)" identifier != (binary_expression "*(int *)param_2 + *(int *)(param_2 + 4)" (pointer_expression "*(int *)param_2" * (cast_expression "(int *)param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))))) )) (compound_statement "{\n    std::string::_M_erase(param_2,uVar1,param_4 - (int)param_3);\n    *param_1 = *(int *)param_2 + uVar1;\n    return param_1;\n  }" { (labeled_statement "std::string::_M_erase(param_2,uVar1,param_4 - (int)param_3);" statement_identifier : (ERROR ":" :) (labeled_statement "string::_M_erase(param_2,uVar1,param_4 - (int)param_3);" statement_identifier : (ERROR ":" :) (expression_statement "_M_erase(param_2,uVar1,param_4 - (int)param_3);" (call_expression "_M_erase(param_2,uVar1,param_4 - (int)param_3)" identifier (argument_list "(param_2,uVar1,param_4 - (int)param_3)" ( identifier , identifier , (binary_expression "param_4 - (int)param_3" identifier - (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ;))) (expression_statement "*param_1 = *(int *)param_2 + uVar1;" (assignment_expression "*param_1 = *(int *)param_2 + uVar1" (pointer_expression "*param_1" * identifier) = (binary_expression "*(int *)param_2 + uVar1" (pointer_expression "*(int *)param_2" * (cast_expression "(int *)param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + identifier)) ;) (return_statement "return param_1;" return identifier ;) })) (expression_statement "*(uint *)(param_2 + 4) = uVar1;" (assignment_expression "*(uint *)(param_2 + 4) = uVar1" (pointer_expression "*(uint *)(param_2 + 4)" * (cast_expression "(uint *)(param_2 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" * identifier) = number_literal) ;) (expression_statement "*param_1 = *(int *)param_2 + uVar1;" (assignment_expression "*param_1 = *(int *)param_2 + uVar1" (pointer_expression "*param_1" * identifier) = (binary_expression "*(int *)param_2 + uVar1" (pointer_expression "*(int *)param_2" * (cast_expression "(int *)param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + identifier)) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "/* std::string::erase(__normal_iterator<char const*, std::string >, __normal_iterator<char const*,\n   std::string >) */\n\nint * std::string::erase(int *param_1,string *param_2,undefined1 *param_3,int param_4)\n\n{\n  uint uVar1;\n  \n  uVar1 = (int)param_3 - *(int *)param_2;\n  if (param_4 != *(int *)param_2 + *(int *)(param_2 + 4)) {\n    _M_erase(param_2,uVar1,param_4 - (int)param_3);\n    *param_1 = *(int *)param_2 + uVar1;\n    return param_1;\n  }\n  *(uint *)(param_2 + 4) = uVar1;\n  *param_3 = 0;\n  *param_1 = *(int *)param_2 + uVar1;\n  return param_1;\n}\n\n" comment (function_definition "int * std::string::erase(int *param_1,string *param_2,undefined1 *param_3,int param_4)\n\n{\n  uint uVar1;\n  \n  uVar1 = (int)param_3 - *(int *)param_2;\n  if (param_4 != *(int *)param_2 + *(int *)(param_2 + 4)) {\n    _M_erase(param_2,uVar1,param_4 - (int)param_3);\n    *param_1 = *(int *)param_2 + uVar1;\n    return param_1;\n  }\n  *(uint *)(param_2 + 4) = uVar1;\n  *param_3 = 0;\n  *param_1 = *(int *)param_2 + uVar1;\n  return param_1;\n}" primitive_type (pointer_declarator "* std::string::erase(int *param_1,string *param_2,undefined1 *param_3,int param_4)" * (ERROR "std::string::" identifier : : identifier : :) (function_declarator "erase(int *param_1,string *param_2,undefined1 *param_3,int param_4)" identifier (parameter_list "(int *param_1,string *param_2,undefined1 *param_3,int param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "string *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined1 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "int param_4" primitive_type identifier) )))) (compound_statement "{\n  uint uVar1;\n  \n  uVar1 = (int)param_3 - *(int *)param_2;\n  if (param_4 != *(int *)param_2 + *(int *)(param_2 + 4)) {\n    _M_erase(param_2,uVar1,param_4 - (int)param_3);\n    *param_1 = *(int *)param_2 + uVar1;\n    return param_1;\n  }\n  *(uint *)(param_2 + 4) = uVar1;\n  *param_3 = 0;\n  *param_1 = *(int *)param_2 + uVar1;\n  return param_1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = (int)param_3 - *(int *)param_2;" (assignment_expression "uVar1 = (int)param_3 - *(int *)param_2" identifier = (binary_expression "(int)param_3 - *(int *)param_2" (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) - (pointer_expression "*(int *)param_2" * (cast_expression "(int *)param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)))) ;) (if_statement "if (param_4 != *(int *)param_2 + *(int *)(param_2 + 4)) {\n    _M_erase(param_2,uVar1,param_4 - (int)param_3);\n    *param_1 = *(int *)param_2 + uVar1;\n    return param_1;\n  }" if (parenthesized_expression "(param_4 != *(int *)param_2 + *(int *)(param_2 + 4))" ( (binary_expression "param_4 != *(int *)param_2 + *(int *)(param_2 + 4)" identifier != (binary_expression "*(int *)param_2 + *(int *)(param_2 + 4)" (pointer_expression "*(int *)param_2" * (cast_expression "(int *)param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))))) )) (compound_statement "{\n    _M_erase(param_2,uVar1,param_4 - (int)param_3);\n    *param_1 = *(int *)param_2 + uVar1;\n    return param_1;\n  }" { (expression_statement "_M_erase(param_2,uVar1,param_4 - (int)param_3);" (call_expression "_M_erase(param_2,uVar1,param_4 - (int)param_3)" identifier (argument_list "(param_2,uVar1,param_4 - (int)param_3)" ( identifier , identifier , (binary_expression "param_4 - (int)param_3" identifier - (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ;) (expression_statement "*param_1 = *(int *)param_2 + uVar1;" (assignment_expression "*param_1 = *(int *)param_2 + uVar1" (pointer_expression "*param_1" * identifier) = (binary_expression "*(int *)param_2 + uVar1" (pointer_expression "*(int *)param_2" * (cast_expression "(int *)param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + identifier)) ;) (return_statement "return param_1;" return identifier ;) })) (expression_statement "*(uint *)(param_2 + 4) = uVar1;" (assignment_expression "*(uint *)(param_2 + 4) = uVar1" (pointer_expression "*(uint *)(param_2 + 4)" * (cast_expression "(uint *)(param_2 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" * identifier) = number_literal) ;) (expression_statement "*param_1 = *(int *)param_2 + uVar1;" (assignment_expression "*param_1 = *(int *)param_2 + uVar1" (pointer_expression "*param_1" * identifier) = (binary_expression "*(int *)param_2 + uVar1" (pointer_expression "*(int *)param_2" * (cast_expression "(int *)param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + identifier)) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "int * FUN_0033b934(int *param_1,string *param_2,undefined1 *param_3,int param_4)\n\n{\n  uint uVar1;\n  \n  uVar1 = (int)param_3 - *(int *)param_2;\n  if (param_4 != *(int *)param_2 + *(int *)(param_2 + 4)) {\n    std::string::_M_erase(param_2,uVar1,param_4 - (int)param_3);\n    *param_1 = *(int *)param_2 + uVar1;\n    return param_1;\n  }\n  *(uint *)(param_2 + 4) = uVar1;\n  *param_3 = 0;\n  *param_1 = *(int *)param_2 + uVar1;\n  return param_1;\n}\n\n" (function_definition "int * FUN_0033b934(int *param_1,string *param_2,undefined1 *param_3,int param_4)\n\n{\n  uint uVar1;\n  \n  uVar1 = (int)param_3 - *(int *)param_2;\n  if (param_4 != *(int *)param_2 + *(int *)(param_2 + 4)) {\n    std::string::_M_erase(param_2,uVar1,param_4 - (int)param_3);\n    *param_1 = *(int *)param_2 + uVar1;\n    return param_1;\n  }\n  *(uint *)(param_2 + 4) = uVar1;\n  *param_3 = 0;\n  *param_1 = *(int *)param_2 + uVar1;\n  return param_1;\n}" primitive_type (pointer_declarator "* FUN_0033b934(int *param_1,string *param_2,undefined1 *param_3,int param_4)" * (function_declarator "FUN_0033b934(int *param_1,string *param_2,undefined1 *param_3,int param_4)" identifier (parameter_list "(int *param_1,string *param_2,undefined1 *param_3,int param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "string *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined1 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "int param_4" primitive_type identifier) )))) (compound_statement "{\n  uint uVar1;\n  \n  uVar1 = (int)param_3 - *(int *)param_2;\n  if (param_4 != *(int *)param_2 + *(int *)(param_2 + 4)) {\n    std::string::_M_erase(param_2,uVar1,param_4 - (int)param_3);\n    *param_1 = *(int *)param_2 + uVar1;\n    return param_1;\n  }\n  *(uint *)(param_2 + 4) = uVar1;\n  *param_3 = 0;\n  *param_1 = *(int *)param_2 + uVar1;\n  return param_1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = (int)param_3 - *(int *)param_2;" (assignment_expression "uVar1 = (int)param_3 - *(int *)param_2" identifier = (binary_expression "(int)param_3 - *(int *)param_2" (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) - (pointer_expression "*(int *)param_2" * (cast_expression "(int *)param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)))) ;) (if_statement "if (param_4 != *(int *)param_2 + *(int *)(param_2 + 4)) {\n    std::string::_M_erase(param_2,uVar1,param_4 - (int)param_3);\n    *param_1 = *(int *)param_2 + uVar1;\n    return param_1;\n  }" if (parenthesized_expression "(param_4 != *(int *)param_2 + *(int *)(param_2 + 4))" ( (binary_expression "param_4 != *(int *)param_2 + *(int *)(param_2 + 4)" identifier != (binary_expression "*(int *)param_2 + *(int *)(param_2 + 4)" (pointer_expression "*(int *)param_2" * (cast_expression "(int *)param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))))) )) (compound_statement "{\n    std::string::_M_erase(param_2,uVar1,param_4 - (int)param_3);\n    *param_1 = *(int *)param_2 + uVar1;\n    return param_1;\n  }" { (labeled_statement "std::string::_M_erase(param_2,uVar1,param_4 - (int)param_3);" statement_identifier : (ERROR ":" :) (labeled_statement "string::_M_erase(param_2,uVar1,param_4 - (int)param_3);" statement_identifier : (ERROR ":" :) (expression_statement "_M_erase(param_2,uVar1,param_4 - (int)param_3);" (call_expression "_M_erase(param_2,uVar1,param_4 - (int)param_3)" identifier (argument_list "(param_2,uVar1,param_4 - (int)param_3)" ( identifier , identifier , (binary_expression "param_4 - (int)param_3" identifier - (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ;))) (expression_statement "*param_1 = *(int *)param_2 + uVar1;" (assignment_expression "*param_1 = *(int *)param_2 + uVar1" (pointer_expression "*param_1" * identifier) = (binary_expression "*(int *)param_2 + uVar1" (pointer_expression "*(int *)param_2" * (cast_expression "(int *)param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + identifier)) ;) (return_statement "return param_1;" return identifier ;) })) (expression_statement "*(uint *)(param_2 + 4) = uVar1;" (assignment_expression "*(uint *)(param_2 + 4) = uVar1" (pointer_expression "*(uint *)(param_2 + 4)" * (cast_expression "(uint *)(param_2 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" * identifier) = number_literal) ;) (expression_statement "*param_1 = *(int *)param_2 + uVar1;" (assignment_expression "*param_1 = *(int *)param_2 + uVar1" (pointer_expression "*param_1" * identifier) = (binary_expression "*(int *)param_2 + uVar1" (pointer_expression "*(int *)param_2" * (cast_expression "(int *)param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + identifier)) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) )) (compound_statement { (labeled_statement statement_identifier : (ERROR :) (labeled_statement statement_identifier : (ERROR :) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (binary_expression IDENT - (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))) ;))) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + IDENT)) ;) (return_statement return IDENT ;) })) (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 * IDENT) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + IDENT)) ;) (return_statement return IDENT ;) })))
(function_definition "int * FUN_0033b934(int *param_1,string *param_2,undefined1 *param_3,int param_4)\n\n{\n  uint uVar1;\n  \n  uVar1 = (int)param_3 - *(int *)param_2;\n  if (param_4 != *(int *)param_2 + *(int *)(param_2 + 4)) {\n    std::string::_M_erase(param_2,uVar1,param_4 - (int)param_3);\n    *param_1 = *(int *)param_2 + uVar1;\n    return param_1;\n  }\n  *(uint *)(param_2 + 4) = uVar1;\n  *param_3 = 0;\n  *param_1 = *(int *)param_2 + uVar1;\n  return param_1;\n}" (primitive_type "int") (pointer_declarator "* FUN_0033b934(int *param_1,string *param_2,undefined1 *param_3,int param_4)" (* "*") (function_declarator "FUN_0033b934(int *param_1,string *param_2,undefined1 *param_3,int param_4)" (identifier "FUN_0033b934") (parameter_list "(int *param_1,string *param_2,undefined1 *param_3,int param_4)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "string *param_2" (type_identifier "string") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined1 *param_3" (type_identifier "undefined1") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) () ")")))) (compound_statement "{\n  uint uVar1;\n  \n  uVar1 = (int)param_3 - *(int *)param_2;\n  if (param_4 != *(int *)param_2 + *(int *)(param_2 + 4)) {\n    std::string::_M_erase(param_2,uVar1,param_4 - (int)param_3);\n    *param_1 = *(int *)param_2 + uVar1;\n    return param_1;\n  }\n  *(uint *)(param_2 + 4) = uVar1;\n  *param_3 = 0;\n  *param_1 = *(int *)param_2 + uVar1;\n  return param_1;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (expression_statement "uVar1 = (int)param_3 - *(int *)param_2;" (assignment_expression "uVar1 = (int)param_3 - *(int *)param_2" (identifier "uVar1") (= "=") (binary_expression "(int)param_3 - *(int *)param_2" (cast_expression "(int)param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_3")) (- "-") (pointer_expression "*(int *)param_2" (* "*") (cast_expression "(int *)param_2" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_2"))))) (; ";")) (if_statement "if (param_4 != *(int *)param_2 + *(int *)(param_2 + 4)) {\n    std::string::_M_erase(param_2,uVar1,param_4 - (int)param_3);\n    *param_1 = *(int *)param_2 + uVar1;\n    return param_1;\n  }" (if "if") (parenthesized_expression "(param_4 != *(int *)param_2 + *(int *)(param_2 + 4))" (( "(") (binary_expression "param_4 != *(int *)param_2 + *(int *)(param_2 + 4)" (identifier "param_4") (!= "!=") (binary_expression "*(int *)param_2 + *(int *)(param_2 + 4)" (pointer_expression "*(int *)param_2" (* "*") (cast_expression "(int *)param_2" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_2"))) (+ "+") (pointer_expression "*(int *)(param_2 + 4)" (* "*") (cast_expression "(int *)(param_2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")")))))) () ")")) (compound_statement "{\n    std::string::_M_erase(param_2,uVar1,param_4 - (int)param_3);\n    *param_1 = *(int *)param_2 + uVar1;\n    return param_1;\n  }" ({ "{") (labeled_statement "std::string::_M_erase(param_2,uVar1,param_4 - (int)param_3);" (statement_identifier "std") (: ":") (ERROR ":" (: ":")) (labeled_statement "string::_M_erase(param_2,uVar1,param_4 - (int)param_3);" (statement_identifier "string") (: ":") (ERROR ":" (: ":")) (expression_statement "_M_erase(param_2,uVar1,param_4 - (int)param_3);" (call_expression "_M_erase(param_2,uVar1,param_4 - (int)param_3)" (identifier "_M_erase") (argument_list "(param_2,uVar1,param_4 - (int)param_3)" (( "(") (identifier "param_2") (, ",") (identifier "uVar1") (, ",") (binary_expression "param_4 - (int)param_3" (identifier "param_4") (- "-") (cast_expression "(int)param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_3"))) () ")"))) (; ";")))) (expression_statement "*param_1 = *(int *)param_2 + uVar1;" (assignment_expression "*param_1 = *(int *)param_2 + uVar1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (binary_expression "*(int *)param_2 + uVar1" (pointer_expression "*(int *)param_2" (* "*") (cast_expression "(int *)param_2" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_2"))) (+ "+") (identifier "uVar1"))) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "*(uint *)(param_2 + 4) = uVar1;" (assignment_expression "*(uint *)(param_2 + 4) = uVar1" (pointer_expression "*(uint *)(param_2 + 4)" (* "*") (cast_expression "(uint *)(param_2 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*param_1 = *(int *)param_2 + uVar1;" (assignment_expression "*param_1 = *(int *)param_2 + uVar1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (binary_expression "*(int *)param_2 + uVar1" (pointer_expression "*(int *)param_2" (* "*") (cast_expression "(int *)param_2" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_2"))) (+ "+") (identifier "uVar1"))) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (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: (identifier) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) 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 (labeled_statement label: (statement_identifier) (ERROR) (labeled_statement label: (statement_identifier) (ERROR) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (identifier)))) (return_statement (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: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (identifier)))) (return_statement (identifier)))))

int * MASKED(int *param_1,string *param_2,undefined1 *param_3,int param_4)

{
  uint uVar1;
  
  uVar1 = (int)param_3 - *(int *)param_2;
  if (param_4 != *(int *)param_2 + *(int *)(param_2 + 4)) {
    std::string::_M_erase(param_2,uVar1,param_4 - (int)param_3);
    *param_1 = *(int *)param_2 + uVar1;
    return param_1;
  }
  *(uint *)(param_2 + 4) = uVar1;
  *param_3 = 0;
  *param_1 = *(int *)param_2 + uVar1;
  return param_1;
}

