
void prompt_ensure_result_size(prompt_t *pr,int newlen)

{
  if (newlen <= (int)pr->resultsize) {
    return;
  }
  prompt_ensure_result_size(pr,newlen);
  return;
}



void prompt_ensure_result_size(int param_1,int param_2)

{
  if (param_2 <= *(int *)(param_1 + 0xc)) {
    return;
  }
  FUN_00022528();
  return;
}


lui gp,0x9
addiu gp,gp,0x2c80
addu gp,gp,t9
lw v0,0xc(a0)
slt v0,v0,a1
bne v0,zero,0x00022634
_lw t9,-0x7fcc(gp)
jr ra
_nop
addiu t9,t9,0x2528
b 0x00022528
_nop
(translation_unit "void prompt_ensure_result_size(int param_1,int param_2)\n\n{\n  if (param_2 <= *(int *)(param_1 + 0xc)) {\n    return;\n  }\n  FUN_00022528();\n  return;\n}\n\n" (function_definition "void prompt_ensure_result_size(int param_1,int param_2)\n\n{\n  if (param_2 <= *(int *)(param_1 + 0xc)) {\n    return;\n  }\n  FUN_00022528();\n  return;\n}" primitive_type (function_declarator "prompt_ensure_result_size(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  if (param_2 <= *(int *)(param_1 + 0xc)) {\n    return;\n  }\n  FUN_00022528();\n  return;\n}" { (if_statement "if (param_2 <= *(int *)(param_1 + 0xc)) {\n    return;\n  }" if (parenthesized_expression "(param_2 <= *(int *)(param_1 + 0xc))" ( (binary_expression "param_2 <= *(int *)(param_1 + 0xc)" identifier <= (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_00022528();" (call_expression "FUN_00022528()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void prompt_ensure_result_size(prompt_t *pr,int newlen)\n\n{\n  if (newlen <= (int)pr->resultsize) {\n    return;\n  }\n  prompt_ensure_result_size(pr,newlen);\n  return;\n}\n\n" (function_definition "void prompt_ensure_result_size(prompt_t *pr,int newlen)\n\n{\n  if (newlen <= (int)pr->resultsize) {\n    return;\n  }\n  prompt_ensure_result_size(pr,newlen);\n  return;\n}" primitive_type (function_declarator "prompt_ensure_result_size(prompt_t *pr,int newlen)" identifier (parameter_list "(prompt_t *pr,int newlen)" ( (parameter_declaration "prompt_t *pr" type_identifier (pointer_declarator "*pr" * identifier)) , (parameter_declaration "int newlen" primitive_type identifier) ))) (compound_statement "{\n  if (newlen <= (int)pr->resultsize) {\n    return;\n  }\n  prompt_ensure_result_size(pr,newlen);\n  return;\n}" { (if_statement "if (newlen <= (int)pr->resultsize) {\n    return;\n  }" if (parenthesized_expression "(newlen <= (int)pr->resultsize)" ( (binary_expression "newlen <= (int)pr->resultsize" identifier <= (cast_expression "(int)pr->resultsize" ( (type_descriptor "int" primitive_type) ) (field_expression "pr->resultsize" identifier -> field_identifier))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "prompt_ensure_result_size(pr,newlen);" (call_expression "prompt_ensure_result_size(pr,newlen)" identifier (argument_list "(pr,newlen)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void prompt_ensure_result_size(int param_1,int param_2)\n\n{\n  if (param_2 <= *(int *)(param_1 + 0xc)) {\n    return;\n  }\n  FUN_00022528();\n  return;\n}\n\n" (function_definition "void prompt_ensure_result_size(int param_1,int param_2)\n\n{\n  if (param_2 <= *(int *)(param_1 + 0xc)) {\n    return;\n  }\n  FUN_00022528();\n  return;\n}" primitive_type (function_declarator "prompt_ensure_result_size(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  if (param_2 <= *(int *)(param_1 + 0xc)) {\n    return;\n  }\n  FUN_00022528();\n  return;\n}" { (if_statement "if (param_2 <= *(int *)(param_1 + 0xc)) {\n    return;\n  }" if (parenthesized_expression "(param_2 <= *(int *)(param_1 + 0xc))" ( (binary_expression "param_2 <= *(int *)(param_1 + 0xc)" identifier <= (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_00022528();" (call_expression "FUN_00022528()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (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 IDENT + LIT) ))))) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })))
(function_definition "void prompt_ensure_result_size(int param_1,int param_2)\n\n{\n  if (param_2 <= *(int *)(param_1 + 0xc)) {\n    return;\n  }\n  FUN_00022528();\n  return;\n}" (primitive_type "void") (function_declarator "prompt_ensure_result_size(int param_1,int param_2)" (identifier "prompt_ensure_result_size") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  if (param_2 <= *(int *)(param_1 + 0xc)) {\n    return;\n  }\n  FUN_00022528();\n  return;\n}" ({ "{") (if_statement "if (param_2 <= *(int *)(param_1 + 0xc)) {\n    return;\n  }" (if "if") (parenthesized_expression "(param_2 <= *(int *)(param_1 + 0xc))" (( "(") (binary_expression "param_2 <= *(int *)(param_1 + 0xc)" (identifier "param_2") (<= "<=") (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_00022528();" (call_expression "FUN_00022528()" (identifier "FUN_00022528") (argument_list "()" (( "(") () ")"))) (; ";")) (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: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (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 (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (return_statement))))

void MASKED(int param_1,int param_2)

{
  if (param_2 <= *(int *)(param_1 + 0xc)) {
    return;
  }
  FUN_00022528();
  return;
}

