
char * qrealloc(char *b,int n,int *size)

{
  char *pcVar1;
  
  if ((b != (char *)0x0) && (n < *size)) {
    return b;
  }
  *size = (n >> 1) + n + 0x50;
  pcVar1 = (char *)(*(code *)PTR_xrealloc_001312c8)(b);
  return pcVar1;
}



void FUN_000d0398(int param_1,int param_2,int *param_3)

{
  if ((param_1 != 0) && (param_2 < *param_3)) {
    return;
  }
  *param_3 = (param_2 >> 1) + param_2 + 0x50;
  (*(code *)PTR_FUN_001312c8)(param_1);
  return;
}


lui gp,0x7
addiu gp,gp,-0x7248
addu gp,gp,t9
beq a0,zero,0x000d03bc
_or v0,a0,zero
lw v1,0x0(a2)
slt v1,a1,v1
bne v1,zero,0x000d03f8
_nop
addiu sp,sp,-0x20
sw ra,0x1c(sp)
sw gp,0x10(sp)
sra v1,a1,0x1
addu a1,v1,a1
addiu a1,a1,0x50
sw a1,0x0(a2)
or a0,v0,zero
lw t9,-0x7e88(gp)
jalr t9
_nop
lw gp,0x10(sp)
lw ra,0x1c(sp)
jr ra
_addiu sp,sp,0x20
jr ra
_nop
(translation_unit "void FUN_000d0398(int param_1,int param_2,int *param_3)\n\n{\n  if ((param_1 != 0) && (param_2 < *param_3)) {\n    return;\n  }\n  *param_3 = (param_2 >> 1) + param_2 + 0x50;\n  (*(code *)PTR_FUN_001312c8)(param_1);\n  return;\n}\n\n" (function_definition "void FUN_000d0398(int param_1,int param_2,int *param_3)\n\n{\n  if ((param_1 != 0) && (param_2 < *param_3)) {\n    return;\n  }\n  *param_3 = (param_2 >> 1) + param_2 + 0x50;\n  (*(code *)PTR_FUN_001312c8)(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_000d0398(int param_1,int param_2,int *param_3)" identifier (parameter_list "(int param_1,int param_2,int *param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  if ((param_1 != 0) && (param_2 < *param_3)) {\n    return;\n  }\n  *param_3 = (param_2 >> 1) + param_2 + 0x50;\n  (*(code *)PTR_FUN_001312c8)(param_1);\n  return;\n}" { (if_statement "if ((param_1 != 0) && (param_2 < *param_3)) {\n    return;\n  }" if (parenthesized_expression "((param_1 != 0) && (param_2 < *param_3))" ( (binary_expression "(param_1 != 0) && (param_2 < *param_3)" (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) && (parenthesized_expression "(param_2 < *param_3)" ( (binary_expression "param_2 < *param_3" identifier < (pointer_expression "*param_3" * identifier)) ))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "*param_3 = (param_2 >> 1) + param_2 + 0x50;" (assignment_expression "*param_3 = (param_2 >> 1) + param_2 + 0x50" (pointer_expression "*param_3" * identifier) = (binary_expression "(param_2 >> 1) + param_2 + 0x50" (binary_expression "(param_2 >> 1) + param_2" (parenthesized_expression "(param_2 >> 1)" ( (binary_expression "param_2 >> 1" identifier >> number_literal) )) + identifier) + number_literal)) ;) (expression_statement "(*(code *)PTR_FUN_001312c8)(param_1);" (call_expression "(*(code *)PTR_FUN_001312c8)(param_1)" (parenthesized_expression "(*(code *)PTR_FUN_001312c8)" ( (pointer_expression "*(code *)PTR_FUN_001312c8" * (cast_expression "(code *)PTR_FUN_001312c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "char * qrealloc(char *b,int n,int *size)\n\n{\n  char *pcVar1;\n  \n  if ((b != (char *)0x0) && (n < *size)) {\n    return b;\n  }\n  *size = (n >> 1) + n + 0x50;\n  pcVar1 = (char *)(*(code *)PTR_xrealloc_001312c8)(b);\n  return pcVar1;\n}\n\n" (function_definition "char * qrealloc(char *b,int n,int *size)\n\n{\n  char *pcVar1;\n  \n  if ((b != (char *)0x0) && (n < *size)) {\n    return b;\n  }\n  *size = (n >> 1) + n + 0x50;\n  pcVar1 = (char *)(*(code *)PTR_xrealloc_001312c8)(b);\n  return pcVar1;\n}" primitive_type (pointer_declarator "* qrealloc(char *b,int n,int *size)" * (function_declarator "qrealloc(char *b,int n,int *size)" identifier (parameter_list "(char *b,int n,int *size)" ( (parameter_declaration "char *b" primitive_type (pointer_declarator "*b" * identifier)) , (parameter_declaration "int n" primitive_type identifier) , (parameter_declaration "int *size" primitive_type (pointer_declarator "*size" * identifier)) )))) (compound_statement "{\n  char *pcVar1;\n  \n  if ((b != (char *)0x0) && (n < *size)) {\n    return b;\n  }\n  *size = (n >> 1) + n + 0x50;\n  pcVar1 = (char *)(*(code *)PTR_xrealloc_001312c8)(b);\n  return pcVar1;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (if_statement "if ((b != (char *)0x0) && (n < *size)) {\n    return b;\n  }" if (parenthesized_expression "((b != (char *)0x0) && (n < *size))" ( (binary_expression "(b != (char *)0x0) && (n < *size)" (parenthesized_expression "(b != (char *)0x0)" ( (binary_expression "b != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(n < *size)" ( (binary_expression "n < *size" identifier < (pointer_expression "*size" * identifier)) ))) )) (compound_statement "{\n    return b;\n  }" { (return_statement "return b;" return identifier ;) })) (expression_statement "*size = (n >> 1) + n + 0x50;" (assignment_expression "*size = (n >> 1) + n + 0x50" (pointer_expression "*size" * identifier) = (binary_expression "(n >> 1) + n + 0x50" (binary_expression "(n >> 1) + n" (parenthesized_expression "(n >> 1)" ( (binary_expression "n >> 1" identifier >> number_literal) )) + identifier) + number_literal)) ;) (expression_statement "pcVar1 = (char *)(*(code *)PTR_xrealloc_001312c8)(b);" (assignment_expression "pcVar1 = (char *)(*(code *)PTR_xrealloc_001312c8)(b)" identifier = (cast_expression "(char *)(*(code *)PTR_xrealloc_001312c8)(b)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_xrealloc_001312c8)(b)" (parenthesized_expression "(*(code *)PTR_xrealloc_001312c8)" ( (pointer_expression "*(code *)PTR_xrealloc_001312c8" * (cast_expression "(code *)PTR_xrealloc_001312c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(b)" ( identifier ))))) ;) (return_statement "return pcVar1;" return identifier ;) })))
(translation_unit "void FUN_000d0398(int param_1,int param_2,int *param_3)\n\n{\n  if ((param_1 != 0) && (param_2 < *param_3)) {\n    return;\n  }\n  *param_3 = (param_2 >> 1) + param_2 + 0x50;\n  (*(code *)PTR_FUN_001312c8)(param_1);\n  return;\n}\n\n" (function_definition "void FUN_000d0398(int param_1,int param_2,int *param_3)\n\n{\n  if ((param_1 != 0) && (param_2 < *param_3)) {\n    return;\n  }\n  *param_3 = (param_2 >> 1) + param_2 + 0x50;\n  (*(code *)PTR_FUN_001312c8)(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_000d0398(int param_1,int param_2,int *param_3)" identifier (parameter_list "(int param_1,int param_2,int *param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  if ((param_1 != 0) && (param_2 < *param_3)) {\n    return;\n  }\n  *param_3 = (param_2 >> 1) + param_2 + 0x50;\n  (*(code *)PTR_FUN_001312c8)(param_1);\n  return;\n}" { (if_statement "if ((param_1 != 0) && (param_2 < *param_3)) {\n    return;\n  }" if (parenthesized_expression "((param_1 != 0) && (param_2 < *param_3))" ( (binary_expression "(param_1 != 0) && (param_2 < *param_3)" (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) && (parenthesized_expression "(param_2 < *param_3)" ( (binary_expression "param_2 < *param_3" identifier < (pointer_expression "*param_3" * identifier)) ))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "*param_3 = (param_2 >> 1) + param_2 + 0x50;" (assignment_expression "*param_3 = (param_2 >> 1) + param_2 + 0x50" (pointer_expression "*param_3" * identifier) = (binary_expression "(param_2 >> 1) + param_2 + 0x50" (binary_expression "(param_2 >> 1) + param_2" (parenthesized_expression "(param_2 >> 1)" ( (binary_expression "param_2 >> 1" identifier >> number_literal) )) + identifier) + number_literal)) ;) (expression_statement "(*(code *)PTR_FUN_001312c8)(param_1);" (call_expression "(*(code *)PTR_FUN_001312c8)(param_1)" (parenthesized_expression "(*(code *)PTR_FUN_001312c8)" ( (pointer_expression "*(code *)PTR_FUN_001312c8" * (cast_expression "(code *)PTR_FUN_001312c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * IDENT)) ))) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (binary_expression (parenthesized_expression ( (binary_expression IDENT >> LIT) )) + IDENT) + LIT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_000d0398(int param_1,int param_2,int *param_3)\n\n{\n  if ((param_1 != 0) && (param_2 < *param_3)) {\n    return;\n  }\n  *param_3 = (param_2 >> 1) + param_2 + 0x50;\n  (*(code *)PTR_FUN_001312c8)(param_1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000d0398(int param_1,int param_2,int *param_3)" (identifier "FUN_000d0398") (parameter_list "(int param_1,int param_2,int *param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int *param_3" (primitive_type "int") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  if ((param_1 != 0) && (param_2 < *param_3)) {\n    return;\n  }\n  *param_3 = (param_2 >> 1) + param_2 + 0x50;\n  (*(code *)PTR_FUN_001312c8)(param_1);\n  return;\n}" ({ "{") (if_statement "if ((param_1 != 0) && (param_2 < *param_3)) {\n    return;\n  }" (if "if") (parenthesized_expression "((param_1 != 0) && (param_2 < *param_3))" (( "(") (binary_expression "(param_1 != 0) && (param_2 < *param_3)" (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(param_2 < *param_3)" (( "(") (binary_expression "param_2 < *param_3" (identifier "param_2") (< "<") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) () ")"))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "*param_3 = (param_2 >> 1) + param_2 + 0x50;" (assignment_expression "*param_3 = (param_2 >> 1) + param_2 + 0x50" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (binary_expression "(param_2 >> 1) + param_2 + 0x50" (binary_expression "(param_2 >> 1) + param_2" (parenthesized_expression "(param_2 >> 1)" (( "(") (binary_expression "param_2 >> 1" (identifier "param_2") (>> ">>") (number_literal "1")) () ")")) (+ "+") (identifier "param_2")) (+ "+") (number_literal "0x50"))) (; ";")) (expression_statement "(*(code *)PTR_FUN_001312c8)(param_1);" (call_expression "(*(code *)PTR_FUN_001312c8)(param_1)" (parenthesized_expression "(*(code *)PTR_FUN_001312c8)" (( "(") (pointer_expression "*(code *)PTR_FUN_001312c8" (* "*") (cast_expression "(code *)PTR_FUN_001312c8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_001312c8"))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

char * function_1(char *var_1,int var_2,int *size)

{
  char *pcVar1;
  
  if ((var_1 != (char *)0x0) && (var_2 < *size)) {
    return var_1;
  }
  *size = (var_2 >> 1) + var_2 + 0x50;
  pcVar1 = (char *)(*(type_1 *)PTR_xrealloc_001312c8)(var_1);
  return pcVar1;
}


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

void MASKED(int param_1,int param_2,int *param_3)

{
  if ((param_1 != 0) && (param_2 < *param_3)) {
    return;
  }
  *param_3 = (param_2 >> 1) + param_2 + 0x50;
  (*(code *)PTR_FUN_001312c8)(param_1);
  return;
}

