
void * cmalloc(size_t nmemb,size_t size)

{
  void *pvVar1;
  
  if (size == 0) {
    trap(7);
  }
  if (nmemb < 0xffffffff / size) {
                    /* WARNING: Could not recover jumptable at 0x00035b44. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    pvVar1 = (void *)(*(code *)PTR_xmalloc_000823c4)(size * nmemb);
    return pvVar1;
  }
  return (void *)0x0;
}



undefined4 FUN_00035b1c(uint param_1,uint param_2)

{
  undefined4 uVar1;
  
  if (param_2 == 0) {
    trap(7);
  }
  if (param_1 < 0xffffffff / param_2) {
                    /* WARNING: Could not recover jumptable at 0x00035b44. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    uVar1 = (*(code *)PTR_xmalloc_000823c4)(param_2 * param_1);
    return uVar1;
  }
  return 0;
}


lui gp,0x5
addiu gp,gp,0x4454
addu gp,gp,t9
li v0,-0x1
teq a1,zero
divu v0,a1
mflo v0
sltu v0,a0,v0
beq v0,zero,0x00035b4c
_lw t9,-0x7bac(gp)
jr t9
_mul a0,a1,a0
jr ra
_or v0,zero,zero
(translation_unit "undefined4 FUN_00035b1c(uint param_1,uint param_2)\n\n{\n  undefined4 uVar1;\n  \n  if (param_2 == 0) {\n    trap(7);\n  }\n  if (param_1 < 0xffffffff / param_2) {\n                    /* WARNING: Could not recover jumptable at 0x00035b44. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar1 = (*(code *)PTR_xmalloc_000823c4)(param_2 * param_1);\n    return uVar1;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_00035b1c(uint param_1,uint param_2)\n\n{\n  undefined4 uVar1;\n  \n  if (param_2 == 0) {\n    trap(7);\n  }\n  if (param_1 < 0xffffffff / param_2) {\n                    /* WARNING: Could not recover jumptable at 0x00035b44. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar1 = (*(code *)PTR_xmalloc_000823c4)(param_2 * param_1);\n    return uVar1;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00035b1c(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  undefined4 uVar1;\n  \n  if (param_2 == 0) {\n    trap(7);\n  }\n  if (param_1 < 0xffffffff / param_2) {\n                    /* WARNING: Could not recover jumptable at 0x00035b44. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar1 = (*(code *)PTR_xmalloc_000823c4)(param_2 * param_1);\n    return uVar1;\n  }\n  return 0;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if (param_2 == 0) {\n    trap(7);\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    trap(7);\n  }" { (expression_statement "trap(7);" (call_expression "trap(7)" identifier (argument_list "(7)" ( number_literal ))) ;) })) (if_statement "if (param_1 < 0xffffffff / param_2) {\n                    /* WARNING: Could not recover jumptable at 0x00035b44. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar1 = (*(code *)PTR_xmalloc_000823c4)(param_2 * param_1);\n    return uVar1;\n  }" if (parenthesized_expression "(param_1 < 0xffffffff / param_2)" ( (binary_expression "param_1 < 0xffffffff / param_2" identifier < (binary_expression "0xffffffff / param_2" number_literal / identifier)) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x00035b44. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar1 = (*(code *)PTR_xmalloc_000823c4)(param_2 * param_1);\n    return uVar1;\n  }" { comment comment (expression_statement "uVar1 = (*(code *)PTR_xmalloc_000823c4)(param_2 * param_1);" (assignment_expression "uVar1 = (*(code *)PTR_xmalloc_000823c4)(param_2 * param_1)" identifier = (call_expression "(*(code *)PTR_xmalloc_000823c4)(param_2 * param_1)" (parenthesized_expression "(*(code *)PTR_xmalloc_000823c4)" ( (pointer_expression "*(code *)PTR_xmalloc_000823c4" * (cast_expression "(code *)PTR_xmalloc_000823c4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2 * param_1)" ( (binary_expression "param_2 * param_1" identifier * identifier) )))) ;) (return_statement "return uVar1;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "void * cmalloc(size_t nmemb,size_t size)\n\n{\n  void *pvVar1;\n  \n  if (size == 0) {\n    trap(7);\n  }\n  if (nmemb < 0xffffffff / size) {\n                    /* WARNING: Could not recover jumptable at 0x00035b44. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    pvVar1 = (void *)(*(code *)PTR_xmalloc_000823c4)(size * nmemb);\n    return pvVar1;\n  }\n  return (void *)0x0;\n}\n\n" (function_definition "void * cmalloc(size_t nmemb,size_t size)\n\n{\n  void *pvVar1;\n  \n  if (size == 0) {\n    trap(7);\n  }\n  if (nmemb < 0xffffffff / size) {\n                    /* WARNING: Could not recover jumptable at 0x00035b44. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    pvVar1 = (void *)(*(code *)PTR_xmalloc_000823c4)(size * nmemb);\n    return pvVar1;\n  }\n  return (void *)0x0;\n}" primitive_type (pointer_declarator "* cmalloc(size_t nmemb,size_t size)" * (function_declarator "cmalloc(size_t nmemb,size_t size)" identifier (parameter_list "(size_t nmemb,size_t size)" ( (parameter_declaration "size_t nmemb" primitive_type identifier) , (parameter_declaration "size_t size" primitive_type identifier) )))) (compound_statement "{\n  void *pvVar1;\n  \n  if (size == 0) {\n    trap(7);\n  }\n  if (nmemb < 0xffffffff / size) {\n                    /* WARNING: Could not recover jumptable at 0x00035b44. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    pvVar1 = (void *)(*(code *)PTR_xmalloc_000823c4)(size * nmemb);\n    return pvVar1;\n  }\n  return (void *)0x0;\n}" { (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (if_statement "if (size == 0) {\n    trap(7);\n  }" if (parenthesized_expression "(size == 0)" ( (binary_expression "size == 0" identifier == number_literal) )) (compound_statement "{\n    trap(7);\n  }" { (expression_statement "trap(7);" (call_expression "trap(7)" identifier (argument_list "(7)" ( number_literal ))) ;) })) (if_statement "if (nmemb < 0xffffffff / size) {\n                    /* WARNING: Could not recover jumptable at 0x00035b44. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    pvVar1 = (void *)(*(code *)PTR_xmalloc_000823c4)(size * nmemb);\n    return pvVar1;\n  }" if (parenthesized_expression "(nmemb < 0xffffffff / size)" ( (binary_expression "nmemb < 0xffffffff / size" identifier < (binary_expression "0xffffffff / size" number_literal / identifier)) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x00035b44. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    pvVar1 = (void *)(*(code *)PTR_xmalloc_000823c4)(size * nmemb);\n    return pvVar1;\n  }" { comment comment (expression_statement "pvVar1 = (void *)(*(code *)PTR_xmalloc_000823c4)(size * nmemb);" (assignment_expression "pvVar1 = (void *)(*(code *)PTR_xmalloc_000823c4)(size * nmemb)" identifier = (cast_expression "(void *)(*(code *)PTR_xmalloc_000823c4)(size * nmemb)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_xmalloc_000823c4)(size * nmemb)" (parenthesized_expression "(*(code *)PTR_xmalloc_000823c4)" ( (pointer_expression "*(code *)PTR_xmalloc_000823c4" * (cast_expression "(code *)PTR_xmalloc_000823c4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(size * nmemb)" ( (binary_expression "size * nmemb" identifier * identifier) ))))) ;) (return_statement "return pvVar1;" return identifier ;) })) (return_statement "return (void *)0x0;" return (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "undefined4 FUN_00035b1c(uint param_1,uint param_2)\n\n{\n  undefined4 uVar1;\n  \n  if (param_2 == 0) {\n    trap(7);\n  }\n  if (param_1 < 0xffffffff / param_2) {\n                    \n                    \n    uVar1 = (*(code *)PTR_xmalloc_000823c4)(param_2 * param_1);\n    return uVar1;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_00035b1c(uint param_1,uint param_2)\n\n{\n  undefined4 uVar1;\n  \n  if (param_2 == 0) {\n    trap(7);\n  }\n  if (param_1 < 0xffffffff / param_2) {\n                    \n                    \n    uVar1 = (*(code *)PTR_xmalloc_000823c4)(param_2 * param_1);\n    return uVar1;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00035b1c(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  undefined4 uVar1;\n  \n  if (param_2 == 0) {\n    trap(7);\n  }\n  if (param_1 < 0xffffffff / param_2) {\n                    \n                    \n    uVar1 = (*(code *)PTR_xmalloc_000823c4)(param_2 * param_1);\n    return uVar1;\n  }\n  return 0;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if (param_2 == 0) {\n    trap(7);\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    trap(7);\n  }" { (expression_statement "trap(7);" (call_expression "trap(7)" identifier (argument_list "(7)" ( number_literal ))) ;) })) (if_statement "if (param_1 < 0xffffffff / param_2) {\n                    \n                    \n    uVar1 = (*(code *)PTR_xmalloc_000823c4)(param_2 * param_1);\n    return uVar1;\n  }" if (parenthesized_expression "(param_1 < 0xffffffff / param_2)" ( (binary_expression "param_1 < 0xffffffff / param_2" identifier < (binary_expression "0xffffffff / param_2" number_literal / identifier)) )) (compound_statement "{\n                    \n                    \n    uVar1 = (*(code *)PTR_xmalloc_000823c4)(param_2 * param_1);\n    return uVar1;\n  }" { (expression_statement "uVar1 = (*(code *)PTR_xmalloc_000823c4)(param_2 * param_1);" (assignment_expression "uVar1 = (*(code *)PTR_xmalloc_000823c4)(param_2 * param_1)" identifier = (call_expression "(*(code *)PTR_xmalloc_000823c4)(param_2 * param_1)" (parenthesized_expression "(*(code *)PTR_xmalloc_000823c4)" ( (pointer_expression "*(code *)PTR_xmalloc_000823c4" * (cast_expression "(code *)PTR_xmalloc_000823c4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2 * param_1)" ( (binary_expression "param_2 * param_1" identifier * identifier) )))) ;) (return_statement "return uVar1;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (binary_expression LIT / IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT * IDENT) )))) ;) (return_statement return IDENT ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_00035b1c(uint param_1,uint param_2)\n\n{\n  undefined4 uVar1;\n  \n  if (param_2 == 0) {\n    trap(7);\n  }\n  if (param_1 < 0xffffffff / param_2) {\n                    \n                    \n    uVar1 = (*(code *)PTR_xmalloc_000823c4)(param_2 * param_1);\n    return uVar1;\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_00035b1c(uint param_1,uint param_2)" (identifier "FUN_00035b1c") (parameter_list "(uint param_1,uint param_2)" (( "(") (parameter_declaration "uint param_1" (type_identifier "uint") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (param_2 == 0) {\n    trap(7);\n  }\n  if (param_1 < 0xffffffff / param_2) {\n                    \n                    \n    uVar1 = (*(code *)PTR_xmalloc_000823c4)(param_2 * param_1);\n    return uVar1;\n  }\n  return 0;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (if_statement "if (param_2 == 0) {\n    trap(7);\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    trap(7);\n  }" ({ "{") (expression_statement "trap(7);" (call_expression "trap(7)" (identifier "trap") (argument_list "(7)" (( "(") (number_literal "7") () ")"))) (; ";")) (} "}"))) (if_statement "if (param_1 < 0xffffffff / param_2) {\n                    \n                    \n    uVar1 = (*(code *)PTR_xmalloc_000823c4)(param_2 * param_1);\n    return uVar1;\n  }" (if "if") (parenthesized_expression "(param_1 < 0xffffffff / param_2)" (( "(") (binary_expression "param_1 < 0xffffffff / param_2" (identifier "param_1") (< "<") (binary_expression "0xffffffff / param_2" (number_literal "0xffffffff") (/ "/") (identifier "param_2"))) () ")")) (compound_statement "{\n                    \n                    \n    uVar1 = (*(code *)PTR_xmalloc_000823c4)(param_2 * param_1);\n    return uVar1;\n  }" ({ "{") (expression_statement "uVar1 = (*(code *)PTR_xmalloc_000823c4)(param_2 * param_1);" (assignment_expression "uVar1 = (*(code *)PTR_xmalloc_000823c4)(param_2 * param_1)" (identifier "uVar1") (= "=") (call_expression "(*(code *)PTR_xmalloc_000823c4)(param_2 * param_1)" (parenthesized_expression "(*(code *)PTR_xmalloc_000823c4)" (( "(") (pointer_expression "*(code *)PTR_xmalloc_000823c4" (* "*") (cast_expression "(code *)PTR_xmalloc_000823c4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_xmalloc_000823c4"))) () ")")) (argument_list "(param_2 * param_1)" (( "(") (binary_expression "param_2 * param_1" (identifier "param_2") (* "*") (identifier "param_1")) () ")")))) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

void * function_1(size_t var_3,size_t var_1)

{
  void *pvVar1;
  
  if (var_1 == 0) {
    var_2(7);
  }
  if (var_3 < 0xffffffff / var_1) {
                    /* WARNING: Could not recover jumptable at 0x00035b44. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    pvVar1 = (void *)(*(type_1 *)PTR_xmalloc_000823c4)(var_1 * var_3);
    return pvVar1;
  }
  return (void *)0x0;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (number_literal) right: (identifier)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (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 (binary_expression left: (identifier) right: (identifier)))))) (return_statement (identifier)))) (return_statement (number_literal)))))

undefined4 MASKED(uint param_1,uint param_2)

{
  undefined4 uVar1;
  
  if (param_2 == 0) {
    trap(7);
  }
  if (param_1 < 0xffffffff / param_2) {
                    /* WARNING: Could not recover jumptable at 0x00035b44. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    uVar1 = (*(code *)PTR_xmalloc_000823c4)(param_2 * param_1);
    return uVar1;
  }
  return 0;
}

