
/* std::string::substr(unsigned int, unsigned int) const */

uint std::string::substr(uint param_1,uint param_2)

{
  uint in_a2;
  uint in_a3;
  
  if (in_a2 <= *(uint *)(*(int *)param_2 + -0xc)) {
    string((string *)param_1,(string *)param_2,in_a2,in_a3);
    return param_1;
  }
                    /* WARNING: Subroutine does not return */
  __throw_out_of_range_fmt
            (PTR_s__s_004c1a50 + -0xe00,PTR_s__s_004c1a50 + -0xe18,in_a2,
             *(uint *)(*(int *)param_2 + -0xc));
}



string * FUN_00379298(string *param_1,string *param_2,uint param_3,uint param_4)

{
  if (param_3 <= *(uint *)(*(int *)param_2 + -0xc)) {
    std::string::string(param_1,param_2,param_3,param_4);
    return param_1;
  }
                    /* WARNING: Subroutine does not return */
  std::__throw_out_of_range_fmt
            (PTR_s__s_004c1a50 + -0xe00,PTR_s__s_004c1a50 + -0xe18,param_3,
             *(uint *)(*(int *)param_2 + -0xc));
}


lui gp,0x15
addiu gp,gp,-0x58
addu gp,gp,t9
lw v1,0x0(a1)
addiu sp,sp,-0x20
sw gp,0x10(sp)
sw ra,0x1c(sp)
sw s0,0x18(sp)
lw v1,-0xc(v1)
sltu t0,v1,a2
bne t0,zero,0x003792e4
_lw t9,-0x3cc8(gp)
bal 0x00379208
_or s0,a0,zero
or v0,s0,zero
lw ra,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
lw a1,-0x77f0(gp)
or a3,v1,zero
lw a0,-0x77f0(gp)
lw t9,-0x6fe4(gp)
addiu a1,a1,-0xe18
bal 0x003898a4
_addiu a0,a0,-0xe00
(translation_unit "string * FUN_00379298(string *param_1,string *param_2,uint param_3,uint param_4)\n\n{\n  if (param_3 <= *(uint *)(*(int *)param_2 + -0xc)) {\n    std::string::string(param_1,param_2,param_3,param_4);\n    return param_1;\n  }\n                    /* WARNING: Subroutine does not return */\n  std::__throw_out_of_range_fmt\n            (PTR_s__s_004c1a50 + -0xe00,PTR_s__s_004c1a50 + -0xe18,param_3,\n             *(uint *)(*(int *)param_2 + -0xc));\n}\n\n" (function_definition "string * FUN_00379298(string *param_1,string *param_2,uint param_3,uint param_4)\n\n{\n  if (param_3 <= *(uint *)(*(int *)param_2 + -0xc)) {\n    std::string::string(param_1,param_2,param_3,param_4);\n    return param_1;\n  }\n                    /* WARNING: Subroutine does not return */\n  std::__throw_out_of_range_fmt\n            (PTR_s__s_004c1a50 + -0xe00,PTR_s__s_004c1a50 + -0xe18,param_3,\n             *(uint *)(*(int *)param_2 + -0xc));\n}" type_identifier (pointer_declarator "* FUN_00379298(string *param_1,string *param_2,uint param_3,uint param_4)" * (function_declarator "FUN_00379298(string *param_1,string *param_2,uint param_3,uint param_4)" identifier (parameter_list "(string *param_1,string *param_2,uint param_3,uint param_4)" ( (parameter_declaration "string *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "string *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "uint param_4" type_identifier identifier) )))) (compound_statement "{\n  if (param_3 <= *(uint *)(*(int *)param_2 + -0xc)) {\n    std::string::string(param_1,param_2,param_3,param_4);\n    return param_1;\n  }\n                    /* WARNING: Subroutine does not return */\n  std::__throw_out_of_range_fmt\n            (PTR_s__s_004c1a50 + -0xe00,PTR_s__s_004c1a50 + -0xe18,param_3,\n             *(uint *)(*(int *)param_2 + -0xc));\n}" { (if_statement "if (param_3 <= *(uint *)(*(int *)param_2 + -0xc)) {\n    std::string::string(param_1,param_2,param_3,param_4);\n    return param_1;\n  }" if (parenthesized_expression "(param_3 <= *(uint *)(*(int *)param_2 + -0xc))" ( (binary_expression "param_3 <= *(uint *)(*(int *)param_2 + -0xc)" identifier <= (pointer_expression "*(uint *)(*(int *)param_2 + -0xc)" * (cast_expression "(uint *)(*(int *)param_2 + -0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_2 + -0xc)" ( (binary_expression "*(int *)param_2 + -0xc" (pointer_expression "*(int *)param_2" * (cast_expression "(int *)param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )) (compound_statement "{\n    std::string::string(param_1,param_2,param_3,param_4);\n    return param_1;\n  }" { (labeled_statement "std::string::string(param_1,param_2,param_3,param_4);" statement_identifier : (ERROR ":" :) (labeled_statement "string::string(param_1,param_2,param_3,param_4);" statement_identifier : (ERROR ":" :) (expression_statement "string(param_1,param_2,param_3,param_4);" (call_expression "string(param_1,param_2,param_3,param_4)" identifier (argument_list "(param_1,param_2,param_3,param_4)" ( identifier , identifier , identifier , identifier ))) ;))) (return_statement "return param_1;" return identifier ;) })) comment (labeled_statement "std::__throw_out_of_range_fmt\n            (PTR_s__s_004c1a50 + -0xe00,PTR_s__s_004c1a50 + -0xe18,param_3,\n             *(uint *)(*(int *)param_2 + -0xc));" statement_identifier : (ERROR ":" :) (expression_statement "__throw_out_of_range_fmt\n            (PTR_s__s_004c1a50 + -0xe00,PTR_s__s_004c1a50 + -0xe18,param_3,\n             *(uint *)(*(int *)param_2 + -0xc));" (call_expression "__throw_out_of_range_fmt\n            (PTR_s__s_004c1a50 + -0xe00,PTR_s__s_004c1a50 + -0xe18,param_3,\n             *(uint *)(*(int *)param_2 + -0xc))" identifier (argument_list "(PTR_s__s_004c1a50 + -0xe00,PTR_s__s_004c1a50 + -0xe18,param_3,\n             *(uint *)(*(int *)param_2 + -0xc))" ( (binary_expression "PTR_s__s_004c1a50 + -0xe00" identifier + number_literal) , (binary_expression "PTR_s__s_004c1a50 + -0xe18" identifier + number_literal) , identifier , (pointer_expression "*(uint *)(*(int *)param_2 + -0xc)" * (cast_expression "(uint *)(*(int *)param_2 + -0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_2 + -0xc)" ( (binary_expression "*(int *)param_2 + -0xc" (pointer_expression "*(int *)param_2" * (cast_expression "(int *)param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) ))) ;)) })))
(translation_unit "/* std::string::substr(unsigned int, unsigned int) const */\n\nuint std::string::substr(uint param_1,uint param_2)\n\n{\n  uint in_a2;\n  uint in_a3;\n  \n  if (in_a2 <= *(uint *)(*(int *)param_2 + -0xc)) {\n    string((string *)param_1,(string *)param_2,in_a2,in_a3);\n    return param_1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_out_of_range_fmt\n            (PTR_s__s_004c1a50 + -0xe00,PTR_s__s_004c1a50 + -0xe18,in_a2,\n             *(uint *)(*(int *)param_2 + -0xc));\n}\n\n" comment (function_definition "uint std::string::substr(uint param_1,uint param_2)\n\n{\n  uint in_a2;\n  uint in_a3;\n  \n  if (in_a2 <= *(uint *)(*(int *)param_2 + -0xc)) {\n    string((string *)param_1,(string *)param_2,in_a2,in_a3);\n    return param_1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_out_of_range_fmt\n            (PTR_s__s_004c1a50 + -0xe00,PTR_s__s_004c1a50 + -0xe18,in_a2,\n             *(uint *)(*(int *)param_2 + -0xc));\n}" type_identifier (ERROR "std::string::" identifier : : identifier : :) (function_declarator "substr(uint param_1,uint param_2)" identifier (parameter_list "(uint param_1,uint param_2)" ( (parameter_declaration "uint param_1" type_identifier identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  uint in_a2;\n  uint in_a3;\n  \n  if (in_a2 <= *(uint *)(*(int *)param_2 + -0xc)) {\n    string((string *)param_1,(string *)param_2,in_a2,in_a3);\n    return param_1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_out_of_range_fmt\n            (PTR_s__s_004c1a50 + -0xe00,PTR_s__s_004c1a50 + -0xe18,in_a2,\n             *(uint *)(*(int *)param_2 + -0xc));\n}" { (declaration "uint in_a2;" type_identifier identifier ;) (declaration "uint in_a3;" type_identifier identifier ;) (if_statement "if (in_a2 <= *(uint *)(*(int *)param_2 + -0xc)) {\n    string((string *)param_1,(string *)param_2,in_a2,in_a3);\n    return param_1;\n  }" if (parenthesized_expression "(in_a2 <= *(uint *)(*(int *)param_2 + -0xc))" ( (binary_expression "in_a2 <= *(uint *)(*(int *)param_2 + -0xc)" identifier <= (pointer_expression "*(uint *)(*(int *)param_2 + -0xc)" * (cast_expression "(uint *)(*(int *)param_2 + -0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_2 + -0xc)" ( (binary_expression "*(int *)param_2 + -0xc" (pointer_expression "*(int *)param_2" * (cast_expression "(int *)param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )) (compound_statement "{\n    string((string *)param_1,(string *)param_2,in_a2,in_a3);\n    return param_1;\n  }" { (expression_statement "string((string *)param_1,(string *)param_2,in_a2,in_a3);" (call_expression "string((string *)param_1,(string *)param_2,in_a2,in_a3)" identifier (argument_list "((string *)param_1,(string *)param_2,in_a2,in_a3)" ( (cast_expression "(string *)param_1" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(string *)param_2" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , identifier ))) ;) (return_statement "return param_1;" return identifier ;) })) comment (expression_statement "__throw_out_of_range_fmt\n            (PTR_s__s_004c1a50 + -0xe00,PTR_s__s_004c1a50 + -0xe18,in_a2,\n             *(uint *)(*(int *)param_2 + -0xc));" (call_expression "__throw_out_of_range_fmt\n            (PTR_s__s_004c1a50 + -0xe00,PTR_s__s_004c1a50 + -0xe18,in_a2,\n             *(uint *)(*(int *)param_2 + -0xc))" identifier (argument_list "(PTR_s__s_004c1a50 + -0xe00,PTR_s__s_004c1a50 + -0xe18,in_a2,\n             *(uint *)(*(int *)param_2 + -0xc))" ( (binary_expression "PTR_s__s_004c1a50 + -0xe00" identifier + number_literal) , (binary_expression "PTR_s__s_004c1a50 + -0xe18" identifier + number_literal) , identifier , (pointer_expression "*(uint *)(*(int *)param_2 + -0xc)" * (cast_expression "(uint *)(*(int *)param_2 + -0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_2 + -0xc)" ( (binary_expression "*(int *)param_2 + -0xc" (pointer_expression "*(int *)param_2" * (cast_expression "(int *)param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) ))) ;) })))
(translation_unit "string * FUN_00379298(string *param_1,string *param_2,uint param_3,uint param_4)\n\n{\n  if (param_3 <= *(uint *)(*(int *)param_2 + -0xc)) {\n    std::string::string(param_1,param_2,param_3,param_4);\n    return param_1;\n  }\n                    \n  std::__throw_out_of_range_fmt\n            (PTR_s__s_004c1a50 + -0xe00,PTR_s__s_004c1a50 + -0xe18,param_3,\n             *(uint *)(*(int *)param_2 + -0xc));\n}\n\n" (function_definition "string * FUN_00379298(string *param_1,string *param_2,uint param_3,uint param_4)\n\n{\n  if (param_3 <= *(uint *)(*(int *)param_2 + -0xc)) {\n    std::string::string(param_1,param_2,param_3,param_4);\n    return param_1;\n  }\n                    \n  std::__throw_out_of_range_fmt\n            (PTR_s__s_004c1a50 + -0xe00,PTR_s__s_004c1a50 + -0xe18,param_3,\n             *(uint *)(*(int *)param_2 + -0xc));\n}" type_identifier (pointer_declarator "* FUN_00379298(string *param_1,string *param_2,uint param_3,uint param_4)" * (function_declarator "FUN_00379298(string *param_1,string *param_2,uint param_3,uint param_4)" identifier (parameter_list "(string *param_1,string *param_2,uint param_3,uint param_4)" ( (parameter_declaration "string *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "string *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "uint param_4" type_identifier identifier) )))) (compound_statement "{\n  if (param_3 <= *(uint *)(*(int *)param_2 + -0xc)) {\n    std::string::string(param_1,param_2,param_3,param_4);\n    return param_1;\n  }\n                    \n  std::__throw_out_of_range_fmt\n            (PTR_s__s_004c1a50 + -0xe00,PTR_s__s_004c1a50 + -0xe18,param_3,\n             *(uint *)(*(int *)param_2 + -0xc));\n}" { (if_statement "if (param_3 <= *(uint *)(*(int *)param_2 + -0xc)) {\n    std::string::string(param_1,param_2,param_3,param_4);\n    return param_1;\n  }" if (parenthesized_expression "(param_3 <= *(uint *)(*(int *)param_2 + -0xc))" ( (binary_expression "param_3 <= *(uint *)(*(int *)param_2 + -0xc)" identifier <= (pointer_expression "*(uint *)(*(int *)param_2 + -0xc)" * (cast_expression "(uint *)(*(int *)param_2 + -0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_2 + -0xc)" ( (binary_expression "*(int *)param_2 + -0xc" (pointer_expression "*(int *)param_2" * (cast_expression "(int *)param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )) (compound_statement "{\n    std::string::string(param_1,param_2,param_3,param_4);\n    return param_1;\n  }" { (labeled_statement "std::string::string(param_1,param_2,param_3,param_4);" statement_identifier : (ERROR ":" :) (labeled_statement "string::string(param_1,param_2,param_3,param_4);" statement_identifier : (ERROR ":" :) (expression_statement "string(param_1,param_2,param_3,param_4);" (call_expression "string(param_1,param_2,param_3,param_4)" identifier (argument_list "(param_1,param_2,param_3,param_4)" ( identifier , identifier , identifier , identifier ))) ;))) (return_statement "return param_1;" return identifier ;) })) (labeled_statement "std::__throw_out_of_range_fmt\n            (PTR_s__s_004c1a50 + -0xe00,PTR_s__s_004c1a50 + -0xe18,param_3,\n             *(uint *)(*(int *)param_2 + -0xc));" statement_identifier : (ERROR ":" :) (expression_statement "__throw_out_of_range_fmt\n            (PTR_s__s_004c1a50 + -0xe00,PTR_s__s_004c1a50 + -0xe18,param_3,\n             *(uint *)(*(int *)param_2 + -0xc));" (call_expression "__throw_out_of_range_fmt\n            (PTR_s__s_004c1a50 + -0xe00,PTR_s__s_004c1a50 + -0xe18,param_3,\n             *(uint *)(*(int *)param_2 + -0xc))" identifier (argument_list "(PTR_s__s_004c1a50 + -0xe00,PTR_s__s_004c1a50 + -0xe18,param_3,\n             *(uint *)(*(int *)param_2 + -0xc))" ( (binary_expression "PTR_s__s_004c1a50 + -0xe00" identifier + number_literal) , (binary_expression "PTR_s__s_004c1a50 + -0xe18" identifier + number_literal) , identifier , (pointer_expression "*(uint *)(*(int *)param_2 + -0xc)" * (cast_expression "(uint *)(*(int *)param_2 + -0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_2 + -0xc)" ( (binary_expression "*(int *)param_2 + -0xc" (pointer_expression "*(int *)param_2" * (cast_expression "(int *)param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) ))) ;)) })))
(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 IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT <= (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + LIT) ))))) )) (compound_statement { (labeled_statement statement_identifier : (ERROR :) (labeled_statement statement_identifier : (ERROR :) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT ))) ;))) (return_statement return IDENT ;) })) (labeled_statement statement_identifier : (ERROR :) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + LIT) )))) ))) ;)) })))
(function_definition "string * FUN_00379298(string *param_1,string *param_2,uint param_3,uint param_4)\n\n{\n  if (param_3 <= *(uint *)(*(int *)param_2 + -0xc)) {\n    std::string::string(param_1,param_2,param_3,param_4);\n    return param_1;\n  }\n                    \n  std::__throw_out_of_range_fmt\n            (PTR_s__s_004c1a50 + -0xe00,PTR_s__s_004c1a50 + -0xe18,param_3,\n             *(uint *)(*(int *)param_2 + -0xc));\n}" (type_identifier "string") (pointer_declarator "* FUN_00379298(string *param_1,string *param_2,uint param_3,uint param_4)" (* "*") (function_declarator "FUN_00379298(string *param_1,string *param_2,uint param_3,uint param_4)" (identifier "FUN_00379298") (parameter_list "(string *param_1,string *param_2,uint param_3,uint param_4)" (( "(") (parameter_declaration "string *param_1" (type_identifier "string") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "string *param_2" (type_identifier "string") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) (, ",") (parameter_declaration "uint param_4" (type_identifier "uint") (identifier "param_4")) () ")")))) (compound_statement "{\n  if (param_3 <= *(uint *)(*(int *)param_2 + -0xc)) {\n    std::string::string(param_1,param_2,param_3,param_4);\n    return param_1;\n  }\n                    \n  std::__throw_out_of_range_fmt\n            (PTR_s__s_004c1a50 + -0xe00,PTR_s__s_004c1a50 + -0xe18,param_3,\n             *(uint *)(*(int *)param_2 + -0xc));\n}" ({ "{") (if_statement "if (param_3 <= *(uint *)(*(int *)param_2 + -0xc)) {\n    std::string::string(param_1,param_2,param_3,param_4);\n    return param_1;\n  }" (if "if") (parenthesized_expression "(param_3 <= *(uint *)(*(int *)param_2 + -0xc))" (( "(") (binary_expression "param_3 <= *(uint *)(*(int *)param_2 + -0xc)" (identifier "param_3") (<= "<=") (pointer_expression "*(uint *)(*(int *)param_2 + -0xc)" (* "*") (cast_expression "(uint *)(*(int *)param_2 + -0xc)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)param_2 + -0xc)" (( "(") (binary_expression "*(int *)param_2 + -0xc" (pointer_expression "*(int *)param_2" (* "*") (cast_expression "(int *)param_2" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_2"))) (+ "+") (number_literal "-0xc")) () ")"))))) () ")")) (compound_statement "{\n    std::string::string(param_1,param_2,param_3,param_4);\n    return param_1;\n  }" ({ "{") (labeled_statement "std::string::string(param_1,param_2,param_3,param_4);" (statement_identifier "std") (: ":") (ERROR ":" (: ":")) (labeled_statement "string::string(param_1,param_2,param_3,param_4);" (statement_identifier "string") (: ":") (ERROR ":" (: ":")) (expression_statement "string(param_1,param_2,param_3,param_4);" (call_expression "string(param_1,param_2,param_3,param_4)" (identifier "string") (argument_list "(param_1,param_2,param_3,param_4)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") () ")"))) (; ";")))) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (labeled_statement "std::__throw_out_of_range_fmt\n            (PTR_s__s_004c1a50 + -0xe00,PTR_s__s_004c1a50 + -0xe18,param_3,\n             *(uint *)(*(int *)param_2 + -0xc));" (statement_identifier "std") (: ":") (ERROR ":" (: ":")) (expression_statement "__throw_out_of_range_fmt\n            (PTR_s__s_004c1a50 + -0xe00,PTR_s__s_004c1a50 + -0xe18,param_3,\n             *(uint *)(*(int *)param_2 + -0xc));" (call_expression "__throw_out_of_range_fmt\n            (PTR_s__s_004c1a50 + -0xe00,PTR_s__s_004c1a50 + -0xe18,param_3,\n             *(uint *)(*(int *)param_2 + -0xc))" (identifier "__throw_out_of_range_fmt") (argument_list "(PTR_s__s_004c1a50 + -0xe00,PTR_s__s_004c1a50 + -0xe18,param_3,\n             *(uint *)(*(int *)param_2 + -0xc))" (( "(") (binary_expression "PTR_s__s_004c1a50 + -0xe00" (identifier "PTR_s__s_004c1a50") (+ "+") (number_literal "-0xe00")) (, ",") (binary_expression "PTR_s__s_004c1a50 + -0xe18" (identifier "PTR_s__s_004c1a50") (+ "+") (number_literal "-0xe18")) (, ",") (identifier "param_3") (, ",") (pointer_expression "*(uint *)(*(int *)param_2 + -0xc)" (* "*") (cast_expression "(uint *)(*(int *)param_2 + -0xc)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)param_2 + -0xc)" (( "(") (binary_expression "*(int *)param_2 + -0xc" (pointer_expression "*(int *)param_2" (* "*") (cast_expression "(int *)param_2" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_2"))) (+ "+") (number_literal "-0xc")) () ")")))) () ")"))) (; ";"))) (} "}")))

/* std::string::substr(unsigned int, unsigned int) const */

type_1 std::var_2::function_1(type_1 param_1,type_1 param_2)

{
  type_1 var_1;
  type_1 in_a3;
  
  if (var_1 <= *(type_1 *)(*(int *)param_2 + -0xc)) {
    var_2((var_2 *)param_1,(var_2 *)param_2,var_1,in_a3);
    return param_1;
  }
                    /* WARNING: Subroutine does not return */
  var_3
            (var_4 + -0xe00,var_4 + -0xe18,var_1,
             *(type_1 *)(*(int *)param_2 + -0xc));
}


(translation_unit (function_definition type: (type_identifier) declarator: (pointer_declarator 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))) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier))))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (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) (identifier) (identifier)))))) (return_statement (identifier)))) (labeled_statement label: (statement_identifier) (ERROR) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)) (identifier) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal))))))))))))

string * MASKED(string *param_1,string *param_2,uint param_3,uint param_4)

{
  if (param_3 <= *(uint *)(*(int *)param_2 + -0xc)) {
    std::string::string(param_1,param_2,param_3,param_4);
    return param_1;
  }
                    /* WARNING: Subroutine does not return */
  std::__throw_out_of_range_fmt
            (PTR_s__s_004c1a50 + -0xe00,PTR_s__s_004c1a50 + -0xe18,param_3,
             *(uint *)(*(int *)param_2 + -0xc));
}

