
/* std::wstring::end() */

int * std::wstring::end(void)

{
  int iVar1;
  int *in_a0;
  wstring *in_a1;
  
  iVar1 = *(int *)in_a1;
  if (-1 < *(int *)(iVar1 + -4)) {
    _M_leak_hard(in_a1);
    iVar1 = *(int *)in_a1;
  }
  *in_a0 = iVar1 + *(int *)(iVar1 + -0xc) * 4;
  return in_a0;
}



int * FUN_003d2be8(int *param_1,wstring *param_2)

{
  int iVar1;
  
  iVar1 = *(int *)param_2;
  if (-1 < *(int *)(iVar1 + -4)) {
    std::wstring::_M_leak_hard(param_2);
    iVar1 = *(int *)param_2;
  }
  *param_1 = iVar1 + *(int *)(iVar1 + -0xc) * 4;
  return param_1;
}


lui gp,0xf
addiu gp,gp,0x6658
addu gp,gp,t9
addiu sp,sp,-0x20
lw v1,0x0(a1)
sw s0,0x18(sp)
or s0,a0,zero
sw gp,0x10(sp)
sw ra,0x1c(sp)
lw v0,-0x4(v1)
bltz v0,0x003d2c2c
_lw t9,-0x6298(gp)
or a0,a1,zero
bal 0x003d29c4
_sw a1,0x24(sp)
lw a1,0x24(sp)
lw v1,0x0(a1)
lw a0,-0xc(v1)
or v0,s0,zero
lw ra,0x1c(sp)
sll a0,a0,0x2
addu v1,v1,a0
sw v1,0x0(s0)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
(translation_unit "int * FUN_003d2be8(int *param_1,wstring *param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)param_2;\n  if (-1 < *(int *)(iVar1 + -4)) {\n    std::wstring::_M_leak_hard(param_2);\n    iVar1 = *(int *)param_2;\n  }\n  *param_1 = iVar1 + *(int *)(iVar1 + -0xc) * 4;\n  return param_1;\n}\n\n" (function_definition "int * FUN_003d2be8(int *param_1,wstring *param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)param_2;\n  if (-1 < *(int *)(iVar1 + -4)) {\n    std::wstring::_M_leak_hard(param_2);\n    iVar1 = *(int *)param_2;\n  }\n  *param_1 = iVar1 + *(int *)(iVar1 + -0xc) * 4;\n  return param_1;\n}" primitive_type (pointer_declarator "* FUN_003d2be8(int *param_1,wstring *param_2)" * (function_declarator "FUN_003d2be8(int *param_1,wstring *param_2)" identifier (parameter_list "(int *param_1,wstring *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "wstring *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *(int *)param_2;\n  if (-1 < *(int *)(iVar1 + -4)) {\n    std::wstring::_M_leak_hard(param_2);\n    iVar1 = *(int *)param_2;\n  }\n  *param_1 = iVar1 + *(int *)(iVar1 + -0xc) * 4;\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)param_2;" (assignment_expression "iVar1 = *(int *)param_2" identifier = (pointer_expression "*(int *)param_2" * (cast_expression "(int *)param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (-1 < *(int *)(iVar1 + -4)) {\n    std::wstring::_M_leak_hard(param_2);\n    iVar1 = *(int *)param_2;\n  }" if (parenthesized_expression "(-1 < *(int *)(iVar1 + -4))" ( (binary_expression "-1 < *(int *)(iVar1 + -4)" number_literal < (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) ))))) )) (compound_statement "{\n    std::wstring::_M_leak_hard(param_2);\n    iVar1 = *(int *)param_2;\n  }" { (labeled_statement "std::wstring::_M_leak_hard(param_2);" statement_identifier : (ERROR ":" :) (labeled_statement "wstring::_M_leak_hard(param_2);" statement_identifier : (ERROR ":" :) (expression_statement "_M_leak_hard(param_2);" (call_expression "_M_leak_hard(param_2)" identifier (argument_list "(param_2)" ( identifier ))) ;))) (expression_statement "iVar1 = *(int *)param_2;" (assignment_expression "iVar1 = *(int *)param_2" identifier = (pointer_expression "*(int *)param_2" * (cast_expression "(int *)param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) })) (expression_statement "*param_1 = iVar1 + *(int *)(iVar1 + -0xc) * 4;" (assignment_expression "*param_1 = iVar1 + *(int *)(iVar1 + -0xc) * 4" (pointer_expression "*param_1" * identifier) = (binary_expression "iVar1 + *(int *)(iVar1 + -0xc) * 4" identifier + (binary_expression "*(int *)(iVar1 + -0xc) * 4" (pointer_expression "*(int *)(iVar1 + -0xc)" * (cast_expression "(int *)(iVar1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0xc)" ( (binary_expression "iVar1 + -0xc" identifier + number_literal) )))) * number_literal))) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "/* std::wstring::end() */\n\nint * std::wstring::end(void)\n\n{\n  int iVar1;\n  int *in_a0;\n  wstring *in_a1;\n  \n  iVar1 = *(int *)in_a1;\n  if (-1 < *(int *)(iVar1 + -4)) {\n    _M_leak_hard(in_a1);\n    iVar1 = *(int *)in_a1;\n  }\n  *in_a0 = iVar1 + *(int *)(iVar1 + -0xc) * 4;\n  return in_a0;\n}\n\n" comment (function_definition "int * std::wstring::end(void)\n\n{\n  int iVar1;\n  int *in_a0;\n  wstring *in_a1;\n  \n  iVar1 = *(int *)in_a1;\n  if (-1 < *(int *)(iVar1 + -4)) {\n    _M_leak_hard(in_a1);\n    iVar1 = *(int *)in_a1;\n  }\n  *in_a0 = iVar1 + *(int *)(iVar1 + -0xc) * 4;\n  return in_a0;\n}" primitive_type (pointer_declarator "* std::wstring::end(void)" * (ERROR "std::wstring::" identifier : : identifier : :) (function_declarator "end(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) )))) (compound_statement "{\n  int iVar1;\n  int *in_a0;\n  wstring *in_a1;\n  \n  iVar1 = *(int *)in_a1;\n  if (-1 < *(int *)(iVar1 + -4)) {\n    _M_leak_hard(in_a1);\n    iVar1 = *(int *)in_a1;\n  }\n  *in_a0 = iVar1 + *(int *)(iVar1 + -0xc) * 4;\n  return in_a0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *in_a0;" primitive_type (pointer_declarator "*in_a0" * identifier) ;) (declaration "wstring *in_a1;" type_identifier (pointer_declarator "*in_a1" * identifier) ;) (expression_statement "iVar1 = *(int *)in_a1;" (assignment_expression "iVar1 = *(int *)in_a1" identifier = (pointer_expression "*(int *)in_a1" * (cast_expression "(int *)in_a1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (-1 < *(int *)(iVar1 + -4)) {\n    _M_leak_hard(in_a1);\n    iVar1 = *(int *)in_a1;\n  }" if (parenthesized_expression "(-1 < *(int *)(iVar1 + -4))" ( (binary_expression "-1 < *(int *)(iVar1 + -4)" number_literal < (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) ))))) )) (compound_statement "{\n    _M_leak_hard(in_a1);\n    iVar1 = *(int *)in_a1;\n  }" { (expression_statement "_M_leak_hard(in_a1);" (call_expression "_M_leak_hard(in_a1)" identifier (argument_list "(in_a1)" ( identifier ))) ;) (expression_statement "iVar1 = *(int *)in_a1;" (assignment_expression "iVar1 = *(int *)in_a1" identifier = (pointer_expression "*(int *)in_a1" * (cast_expression "(int *)in_a1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) })) (expression_statement "*in_a0 = iVar1 + *(int *)(iVar1 + -0xc) * 4;" (assignment_expression "*in_a0 = iVar1 + *(int *)(iVar1 + -0xc) * 4" (pointer_expression "*in_a0" * identifier) = (binary_expression "iVar1 + *(int *)(iVar1 + -0xc) * 4" identifier + (binary_expression "*(int *)(iVar1 + -0xc) * 4" (pointer_expression "*(int *)(iVar1 + -0xc)" * (cast_expression "(int *)(iVar1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0xc)" ( (binary_expression "iVar1 + -0xc" identifier + number_literal) )))) * number_literal))) ;) (return_statement "return in_a0;" return identifier ;) })))
(translation_unit "int * FUN_003d2be8(int *param_1,wstring *param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)param_2;\n  if (-1 < *(int *)(iVar1 + -4)) {\n    std::wstring::_M_leak_hard(param_2);\n    iVar1 = *(int *)param_2;\n  }\n  *param_1 = iVar1 + *(int *)(iVar1 + -0xc) * 4;\n  return param_1;\n}\n\n" (function_definition "int * FUN_003d2be8(int *param_1,wstring *param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)param_2;\n  if (-1 < *(int *)(iVar1 + -4)) {\n    std::wstring::_M_leak_hard(param_2);\n    iVar1 = *(int *)param_2;\n  }\n  *param_1 = iVar1 + *(int *)(iVar1 + -0xc) * 4;\n  return param_1;\n}" primitive_type (pointer_declarator "* FUN_003d2be8(int *param_1,wstring *param_2)" * (function_declarator "FUN_003d2be8(int *param_1,wstring *param_2)" identifier (parameter_list "(int *param_1,wstring *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "wstring *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *(int *)param_2;\n  if (-1 < *(int *)(iVar1 + -4)) {\n    std::wstring::_M_leak_hard(param_2);\n    iVar1 = *(int *)param_2;\n  }\n  *param_1 = iVar1 + *(int *)(iVar1 + -0xc) * 4;\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)param_2;" (assignment_expression "iVar1 = *(int *)param_2" identifier = (pointer_expression "*(int *)param_2" * (cast_expression "(int *)param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (-1 < *(int *)(iVar1 + -4)) {\n    std::wstring::_M_leak_hard(param_2);\n    iVar1 = *(int *)param_2;\n  }" if (parenthesized_expression "(-1 < *(int *)(iVar1 + -4))" ( (binary_expression "-1 < *(int *)(iVar1 + -4)" number_literal < (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) ))))) )) (compound_statement "{\n    std::wstring::_M_leak_hard(param_2);\n    iVar1 = *(int *)param_2;\n  }" { (labeled_statement "std::wstring::_M_leak_hard(param_2);" statement_identifier : (ERROR ":" :) (labeled_statement "wstring::_M_leak_hard(param_2);" statement_identifier : (ERROR ":" :) (expression_statement "_M_leak_hard(param_2);" (call_expression "_M_leak_hard(param_2)" identifier (argument_list "(param_2)" ( identifier ))) ;))) (expression_statement "iVar1 = *(int *)param_2;" (assignment_expression "iVar1 = *(int *)param_2" identifier = (pointer_expression "*(int *)param_2" * (cast_expression "(int *)param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) })) (expression_statement "*param_1 = iVar1 + *(int *)(iVar1 + -0xc) * 4;" (assignment_expression "*param_1 = iVar1 + *(int *)(iVar1 + -0xc) * 4" (pointer_expression "*param_1" * identifier) = (binary_expression "iVar1 + *(int *)(iVar1 + -0xc) * 4" identifier + (binary_expression "*(int *)(iVar1 + -0xc) * 4" (pointer_expression "*(int *)(iVar1 + -0xc)" * (cast_expression "(int *)(iVar1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0xc)" ( (binary_expression "iVar1 + -0xc" identifier + number_literal) )))) * number_literal))) ;) (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)) )))) (compound_statement { (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 LIT < (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 ))) ;))) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) * LIT))) ;) (return_statement return IDENT ;) })))
(function_definition "int * FUN_003d2be8(int *param_1,wstring *param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)param_2;\n  if (-1 < *(int *)(iVar1 + -4)) {\n    std::wstring::_M_leak_hard(param_2);\n    iVar1 = *(int *)param_2;\n  }\n  *param_1 = iVar1 + *(int *)(iVar1 + -0xc) * 4;\n  return param_1;\n}" (primitive_type "int") (pointer_declarator "* FUN_003d2be8(int *param_1,wstring *param_2)" (* "*") (function_declarator "FUN_003d2be8(int *param_1,wstring *param_2)" (identifier "FUN_003d2be8") (parameter_list "(int *param_1,wstring *param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "wstring *param_2" (type_identifier "wstring") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")")))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *(int *)param_2;\n  if (-1 < *(int *)(iVar1 + -4)) {\n    std::wstring::_M_leak_hard(param_2);\n    iVar1 = *(int *)param_2;\n  }\n  *param_1 = iVar1 + *(int *)(iVar1 + -0xc) * 4;\n  return param_1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = *(int *)param_2;" (assignment_expression "iVar1 = *(int *)param_2" (identifier "iVar1") (= "=") (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 (-1 < *(int *)(iVar1 + -4)) {\n    std::wstring::_M_leak_hard(param_2);\n    iVar1 = *(int *)param_2;\n  }" (if "if") (parenthesized_expression "(-1 < *(int *)(iVar1 + -4))" (( "(") (binary_expression "-1 < *(int *)(iVar1 + -4)" (number_literal "-1") (< "<") (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")) () ")"))))) () ")")) (compound_statement "{\n    std::wstring::_M_leak_hard(param_2);\n    iVar1 = *(int *)param_2;\n  }" ({ "{") (labeled_statement "std::wstring::_M_leak_hard(param_2);" (statement_identifier "std") (: ":") (ERROR ":" (: ":")) (labeled_statement "wstring::_M_leak_hard(param_2);" (statement_identifier "wstring") (: ":") (ERROR ":" (: ":")) (expression_statement "_M_leak_hard(param_2);" (call_expression "_M_leak_hard(param_2)" (identifier "_M_leak_hard") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")"))) (; ";")))) (expression_statement "iVar1 = *(int *)param_2;" (assignment_expression "iVar1 = *(int *)param_2" (identifier "iVar1") (= "=") (pointer_expression "*(int *)param_2" (* "*") (cast_expression "(int *)param_2" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_2")))) (; ";")) (} "}"))) (expression_statement "*param_1 = iVar1 + *(int *)(iVar1 + -0xc) * 4;" (assignment_expression "*param_1 = iVar1 + *(int *)(iVar1 + -0xc) * 4" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (binary_expression "iVar1 + *(int *)(iVar1 + -0xc) * 4" (identifier "iVar1") (+ "+") (binary_expression "*(int *)(iVar1 + -0xc) * 4" (pointer_expression "*(int *)(iVar1 + -0xc)" (* "*") (cast_expression "(int *)(iVar1 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + -0xc)" (( "(") (binary_expression "iVar1 + -0xc" (identifier "iVar1") (+ "+") (number_literal "-0xc")) () ")")))) (* "*") (number_literal "4")))) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

/* std::wstring::end() */

int * std::type_1::function_1(void)

{
  int var_1;
  int *in_a0;
  type_1 *in_a1;
  
  var_1 = *(int *)in_a1;
  if (-1 < *(int *)(var_1 + -4)) {
    var_2(in_a1);
    var_1 = *(int *)in_a1;
  }
  *in_a0 = var_1 + *(int *)(var_1 + -0xc) * 4;
  return in_a0;
}


(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)))))) body: (compound_statement (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: (number_literal) 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)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (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))))) (return_statement (identifier)))))

int * MASKED(int *param_1,wstring *param_2)

{
  int iVar1;
  
  iVar1 = *(int *)param_2;
  if (-1 < *(int *)(iVar1 + -4)) {
    std::wstring::_M_leak_hard(param_2);
    iVar1 = *(int *)param_2;
  }
  *param_1 = iVar1 + *(int *)(iVar1 + -0xc) * 4;
  return param_1;
}

