
void * xcalloc(size_t n,size_t s)

{
  void *pvVar1;
  
  if (((-1 < (int)((ulonglong)n * (ulonglong)s)) &&
      ((int)((ulonglong)n * (ulonglong)s >> 0x20) == 0)) &&
     (pvVar1 = (void *)(*(code *)PTR_calloc_0003c218)(), pvVar1 != (void *)0x0)) {
    return pvVar1;
  }
                    /* WARNING: Subroutine does not return */
  xalloc_die();
}



void FUN_00016904(uint param_1,uint param_2)

{
  int iVar1;
  undefined4 uVar2;
  undefined *puVar3;
  
  if ((-1 < (int)((ulonglong)param_1 * (ulonglong)param_2)) &&
     ((int)((ulonglong)param_1 * (ulonglong)param_2 >> 0x20) == 0)) {
    iVar1 = (*(code *)PTR_calloc_0003c218)();
    if (iVar1 != 0) {
      return;
    }
  }
  puVar3 = PTR_xalloc_die_0003c120;
  xalloc_die();
  uVar2 = xmalloc(param_2);
                    /* WARNING: Could not recover jumptable at 0x000169b4. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (**(code **)(puVar3 + 0x259b8))(uVar2,param_1,param_2);
  return;
}


lui gp,0x3
addiu gp,gp,-0x2834
addu gp,gp,t9
multu a0,a1
addiu sp,sp,-0x20
mflo a3
sw gp,0x10(sp)
sw ra,0x1c(sp)
bltz a3,0x00016954
_mfhi a2
sltu v0,zero,a2
bne v0,zero,0x00016954
_lw t9,-0x7eb8(gp)
jalr t9
_nop
beq v0,zero,0x00016954
_lw gp,0x10(sp)
lw ra,0x1c(sp)
jr ra
_addiu sp,sp,0x20
lw t9,-0x7fb0(gp)
bal 0x00016a10
_nop
(translation_unit "void FUN_00016904(uint param_1,uint param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined *puVar3;\n  \n  if ((-1 < (int)((ulonglong)param_1 * (ulonglong)param_2)) &&\n     ((int)((ulonglong)param_1 * (ulonglong)param_2 >> 0x20) == 0)) {\n    iVar1 = (*(code *)PTR_calloc_0003c218)();\n    if (iVar1 != 0) {\n      return;\n    }\n  }\n  puVar3 = PTR_xalloc_die_0003c120;\n  xalloc_die();\n  uVar2 = xmalloc(param_2);\n                    /* WARNING: Could not recover jumptable at 0x000169b4. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (**(code **)(puVar3 + 0x259b8))(uVar2,param_1,param_2);\n  return;\n}\n\n" (function_definition "void FUN_00016904(uint param_1,uint param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined *puVar3;\n  \n  if ((-1 < (int)((ulonglong)param_1 * (ulonglong)param_2)) &&\n     ((int)((ulonglong)param_1 * (ulonglong)param_2 >> 0x20) == 0)) {\n    iVar1 = (*(code *)PTR_calloc_0003c218)();\n    if (iVar1 != 0) {\n      return;\n    }\n  }\n  puVar3 = PTR_xalloc_die_0003c120;\n  xalloc_die();\n  uVar2 = xmalloc(param_2);\n                    /* WARNING: Could not recover jumptable at 0x000169b4. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (**(code **)(puVar3 + 0x259b8))(uVar2,param_1,param_2);\n  return;\n}" primitive_type (function_declarator "FUN_00016904(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  int iVar1;\n  undefined4 uVar2;\n  undefined *puVar3;\n  \n  if ((-1 < (int)((ulonglong)param_1 * (ulonglong)param_2)) &&\n     ((int)((ulonglong)param_1 * (ulonglong)param_2 >> 0x20) == 0)) {\n    iVar1 = (*(code *)PTR_calloc_0003c218)();\n    if (iVar1 != 0) {\n      return;\n    }\n  }\n  puVar3 = PTR_xalloc_die_0003c120;\n  xalloc_die();\n  uVar2 = xmalloc(param_2);\n                    /* WARNING: Could not recover jumptable at 0x000169b4. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (**(code **)(puVar3 + 0x259b8))(uVar2,param_1,param_2);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (if_statement "if ((-1 < (int)((ulonglong)param_1 * (ulonglong)param_2)) &&\n     ((int)((ulonglong)param_1 * (ulonglong)param_2 >> 0x20) == 0)) {\n    iVar1 = (*(code *)PTR_calloc_0003c218)();\n    if (iVar1 != 0) {\n      return;\n    }\n  }" if (parenthesized_expression "((-1 < (int)((ulonglong)param_1 * (ulonglong)param_2)) &&\n     ((int)((ulonglong)param_1 * (ulonglong)param_2 >> 0x20) == 0))" ( (binary_expression "(-1 < (int)((ulonglong)param_1 * (ulonglong)param_2)) &&\n     ((int)((ulonglong)param_1 * (ulonglong)param_2 >> 0x20) == 0)" (parenthesized_expression "(-1 < (int)((ulonglong)param_1 * (ulonglong)param_2))" ( (binary_expression "-1 < (int)((ulonglong)param_1 * (ulonglong)param_2)" number_literal < (cast_expression "(int)((ulonglong)param_1 * (ulonglong)param_2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)param_1 * (ulonglong)param_2)" ( (binary_expression "(ulonglong)param_1 * (ulonglong)param_2" (cast_expression "(ulonglong)param_1" ( (type_descriptor "ulonglong" type_identifier) ) identifier) * (cast_expression "(ulonglong)param_2" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) )))) )) && (parenthesized_expression "((int)((ulonglong)param_1 * (ulonglong)param_2 >> 0x20) == 0)" ( (binary_expression "(int)((ulonglong)param_1 * (ulonglong)param_2 >> 0x20) == 0" (cast_expression "(int)((ulonglong)param_1 * (ulonglong)param_2 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)param_1 * (ulonglong)param_2 >> 0x20)" ( (binary_expression "(ulonglong)param_1 * (ulonglong)param_2 >> 0x20" (binary_expression "(ulonglong)param_1 * (ulonglong)param_2" (cast_expression "(ulonglong)param_1" ( (type_descriptor "ulonglong" type_identifier) ) identifier) * (cast_expression "(ulonglong)param_2" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) >> number_literal) ))) == number_literal) ))) )) (compound_statement "{\n    iVar1 = (*(code *)PTR_calloc_0003c218)();\n    if (iVar1 != 0) {\n      return;\n    }\n  }" { (expression_statement "iVar1 = (*(code *)PTR_calloc_0003c218)();" (assignment_expression "iVar1 = (*(code *)PTR_calloc_0003c218)()" identifier = (call_expression "(*(code *)PTR_calloc_0003c218)()" (parenthesized_expression "(*(code *)PTR_calloc_0003c218)" ( (pointer_expression "*(code *)PTR_calloc_0003c218" * (cast_expression "(code *)PTR_calloc_0003c218" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar1 != 0) {\n      return;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) })) (expression_statement "puVar3 = PTR_xalloc_die_0003c120;" (assignment_expression "puVar3 = PTR_xalloc_die_0003c120" identifier = identifier) ;) (expression_statement "xalloc_die();" (call_expression "xalloc_die()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar2 = xmalloc(param_2);" (assignment_expression "uVar2 = xmalloc(param_2)" identifier = (call_expression "xmalloc(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) comment comment (expression_statement "(**(code **)(puVar3 + 0x259b8))(uVar2,param_1,param_2);" (call_expression "(**(code **)(puVar3 + 0x259b8))(uVar2,param_1,param_2)" (parenthesized_expression "(**(code **)(puVar3 + 0x259b8))" ( (pointer_expression "**(code **)(puVar3 + 0x259b8)" * (pointer_expression "*(code **)(puVar3 + 0x259b8)" * (cast_expression "(code **)(puVar3 + 0x259b8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + 0x259b8)" ( (binary_expression "puVar3 + 0x259b8" identifier + number_literal) ))))) )) (argument_list "(uVar2,param_1,param_2)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void * xcalloc(size_t n,size_t s)\n\n{\n  void *pvVar1;\n  \n  if (((-1 < (int)((ulonglong)n * (ulonglong)s)) &&\n      ((int)((ulonglong)n * (ulonglong)s >> 0x20) == 0)) &&\n     (pvVar1 = (void *)(*(code *)PTR_calloc_0003c218)(), pvVar1 != (void *)0x0)) {\n    return pvVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  xalloc_die();\n}\n\n" (function_definition "void * xcalloc(size_t n,size_t s)\n\n{\n  void *pvVar1;\n  \n  if (((-1 < (int)((ulonglong)n * (ulonglong)s)) &&\n      ((int)((ulonglong)n * (ulonglong)s >> 0x20) == 0)) &&\n     (pvVar1 = (void *)(*(code *)PTR_calloc_0003c218)(), pvVar1 != (void *)0x0)) {\n    return pvVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  xalloc_die();\n}" primitive_type (pointer_declarator "* xcalloc(size_t n,size_t s)" * (function_declarator "xcalloc(size_t n,size_t s)" identifier (parameter_list "(size_t n,size_t s)" ( (parameter_declaration "size_t n" primitive_type identifier) , (parameter_declaration "size_t s" primitive_type identifier) )))) (compound_statement "{\n  void *pvVar1;\n  \n  if (((-1 < (int)((ulonglong)n * (ulonglong)s)) &&\n      ((int)((ulonglong)n * (ulonglong)s >> 0x20) == 0)) &&\n     (pvVar1 = (void *)(*(code *)PTR_calloc_0003c218)(), pvVar1 != (void *)0x0)) {\n    return pvVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  xalloc_die();\n}" { (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (if_statement "if (((-1 < (int)((ulonglong)n * (ulonglong)s)) &&\n      ((int)((ulonglong)n * (ulonglong)s >> 0x20) == 0)) &&\n     (pvVar1 = (void *)(*(code *)PTR_calloc_0003c218)(), pvVar1 != (void *)0x0)) {\n    return pvVar1;\n  }" if (parenthesized_expression "(((-1 < (int)((ulonglong)n * (ulonglong)s)) &&\n      ((int)((ulonglong)n * (ulonglong)s >> 0x20) == 0)) &&\n     (pvVar1 = (void *)(*(code *)PTR_calloc_0003c218)(), pvVar1 != (void *)0x0))" ( (binary_expression "((-1 < (int)((ulonglong)n * (ulonglong)s)) &&\n      ((int)((ulonglong)n * (ulonglong)s >> 0x20) == 0)) &&\n     (pvVar1 = (void *)(*(code *)PTR_calloc_0003c218)(), pvVar1 != (void *)0x0)" (parenthesized_expression "((-1 < (int)((ulonglong)n * (ulonglong)s)) &&\n      ((int)((ulonglong)n * (ulonglong)s >> 0x20) == 0))" ( (binary_expression "(-1 < (int)((ulonglong)n * (ulonglong)s)) &&\n      ((int)((ulonglong)n * (ulonglong)s >> 0x20) == 0)" (parenthesized_expression "(-1 < (int)((ulonglong)n * (ulonglong)s))" ( (binary_expression "-1 < (int)((ulonglong)n * (ulonglong)s)" number_literal < (cast_expression "(int)((ulonglong)n * (ulonglong)s)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)n * (ulonglong)s)" ( (binary_expression "(ulonglong)n * (ulonglong)s" (cast_expression "(ulonglong)n" ( (type_descriptor "ulonglong" type_identifier) ) identifier) * (cast_expression "(ulonglong)s" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) )))) )) && (parenthesized_expression "((int)((ulonglong)n * (ulonglong)s >> 0x20) == 0)" ( (binary_expression "(int)((ulonglong)n * (ulonglong)s >> 0x20) == 0" (cast_expression "(int)((ulonglong)n * (ulonglong)s >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)n * (ulonglong)s >> 0x20)" ( (binary_expression "(ulonglong)n * (ulonglong)s >> 0x20" (binary_expression "(ulonglong)n * (ulonglong)s" (cast_expression "(ulonglong)n" ( (type_descriptor "ulonglong" type_identifier) ) identifier) * (cast_expression "(ulonglong)s" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) >> number_literal) ))) == number_literal) ))) )) && (parenthesized_expression "(pvVar1 = (void *)(*(code *)PTR_calloc_0003c218)(), pvVar1 != (void *)0x0)" ( (comma_expression "pvVar1 = (void *)(*(code *)PTR_calloc_0003c218)(), pvVar1 != (void *)0x0" (assignment_expression "pvVar1 = (void *)(*(code *)PTR_calloc_0003c218)()" identifier = (cast_expression "(void *)(*(code *)PTR_calloc_0003c218)()" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_calloc_0003c218)()" (parenthesized_expression "(*(code *)PTR_calloc_0003c218)" ( (pointer_expression "*(code *)PTR_calloc_0003c218" * (cast_expression "(code *)PTR_calloc_0003c218" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) , (binary_expression "pvVar1 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    return pvVar1;\n  }" { (return_statement "return pvVar1;" return identifier ;) })) comment (expression_statement "xalloc_die();" (call_expression "xalloc_die()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void FUN_00016904(uint param_1,uint param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined *puVar3;\n  \n  if ((-1 < (int)((ulonglong)param_1 * (ulonglong)param_2)) &&\n     ((int)((ulonglong)param_1 * (ulonglong)param_2 >> 0x20) == 0)) {\n    iVar1 = (*(code *)PTR_calloc_0003c218)();\n    if (iVar1 != 0) {\n      return;\n    }\n  }\n  puVar3 = PTR_xalloc_die_0003c120;\n  xalloc_die();\n  uVar2 = xmalloc(param_2);\n                    \n                    \n  (**(code **)(puVar3 + 0x259b8))(uVar2,param_1,param_2);\n  return;\n}\n\n" (function_definition "void FUN_00016904(uint param_1,uint param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined *puVar3;\n  \n  if ((-1 < (int)((ulonglong)param_1 * (ulonglong)param_2)) &&\n     ((int)((ulonglong)param_1 * (ulonglong)param_2 >> 0x20) == 0)) {\n    iVar1 = (*(code *)PTR_calloc_0003c218)();\n    if (iVar1 != 0) {\n      return;\n    }\n  }\n  puVar3 = PTR_xalloc_die_0003c120;\n  xalloc_die();\n  uVar2 = xmalloc(param_2);\n                    \n                    \n  (**(code **)(puVar3 + 0x259b8))(uVar2,param_1,param_2);\n  return;\n}" primitive_type (function_declarator "FUN_00016904(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  int iVar1;\n  undefined4 uVar2;\n  undefined *puVar3;\n  \n  if ((-1 < (int)((ulonglong)param_1 * (ulonglong)param_2)) &&\n     ((int)((ulonglong)param_1 * (ulonglong)param_2 >> 0x20) == 0)) {\n    iVar1 = (*(code *)PTR_calloc_0003c218)();\n    if (iVar1 != 0) {\n      return;\n    }\n  }\n  puVar3 = PTR_xalloc_die_0003c120;\n  xalloc_die();\n  uVar2 = xmalloc(param_2);\n                    \n                    \n  (**(code **)(puVar3 + 0x259b8))(uVar2,param_1,param_2);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (if_statement "if ((-1 < (int)((ulonglong)param_1 * (ulonglong)param_2)) &&\n     ((int)((ulonglong)param_1 * (ulonglong)param_2 >> 0x20) == 0)) {\n    iVar1 = (*(code *)PTR_calloc_0003c218)();\n    if (iVar1 != 0) {\n      return;\n    }\n  }" if (parenthesized_expression "((-1 < (int)((ulonglong)param_1 * (ulonglong)param_2)) &&\n     ((int)((ulonglong)param_1 * (ulonglong)param_2 >> 0x20) == 0))" ( (binary_expression "(-1 < (int)((ulonglong)param_1 * (ulonglong)param_2)) &&\n     ((int)((ulonglong)param_1 * (ulonglong)param_2 >> 0x20) == 0)" (parenthesized_expression "(-1 < (int)((ulonglong)param_1 * (ulonglong)param_2))" ( (binary_expression "-1 < (int)((ulonglong)param_1 * (ulonglong)param_2)" number_literal < (cast_expression "(int)((ulonglong)param_1 * (ulonglong)param_2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)param_1 * (ulonglong)param_2)" ( (binary_expression "(ulonglong)param_1 * (ulonglong)param_2" (cast_expression "(ulonglong)param_1" ( (type_descriptor "ulonglong" type_identifier) ) identifier) * (cast_expression "(ulonglong)param_2" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) )))) )) && (parenthesized_expression "((int)((ulonglong)param_1 * (ulonglong)param_2 >> 0x20) == 0)" ( (binary_expression "(int)((ulonglong)param_1 * (ulonglong)param_2 >> 0x20) == 0" (cast_expression "(int)((ulonglong)param_1 * (ulonglong)param_2 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)param_1 * (ulonglong)param_2 >> 0x20)" ( (binary_expression "(ulonglong)param_1 * (ulonglong)param_2 >> 0x20" (binary_expression "(ulonglong)param_1 * (ulonglong)param_2" (cast_expression "(ulonglong)param_1" ( (type_descriptor "ulonglong" type_identifier) ) identifier) * (cast_expression "(ulonglong)param_2" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) >> number_literal) ))) == number_literal) ))) )) (compound_statement "{\n    iVar1 = (*(code *)PTR_calloc_0003c218)();\n    if (iVar1 != 0) {\n      return;\n    }\n  }" { (expression_statement "iVar1 = (*(code *)PTR_calloc_0003c218)();" (assignment_expression "iVar1 = (*(code *)PTR_calloc_0003c218)()" identifier = (call_expression "(*(code *)PTR_calloc_0003c218)()" (parenthesized_expression "(*(code *)PTR_calloc_0003c218)" ( (pointer_expression "*(code *)PTR_calloc_0003c218" * (cast_expression "(code *)PTR_calloc_0003c218" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar1 != 0) {\n      return;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) })) (expression_statement "puVar3 = PTR_xalloc_die_0003c120;" (assignment_expression "puVar3 = PTR_xalloc_die_0003c120" identifier = identifier) ;) (expression_statement "xalloc_die();" (call_expression "xalloc_die()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar2 = xmalloc(param_2);" (assignment_expression "uVar2 = xmalloc(param_2)" identifier = (call_expression "xmalloc(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "(**(code **)(puVar3 + 0x259b8))(uVar2,param_1,param_2);" (call_expression "(**(code **)(puVar3 + 0x259b8))(uVar2,param_1,param_2)" (parenthesized_expression "(**(code **)(puVar3 + 0x259b8))" ( (pointer_expression "**(code **)(puVar3 + 0x259b8)" * (pointer_expression "*(code **)(puVar3 + 0x259b8)" * (cast_expression "(code **)(puVar3 + 0x259b8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + 0x259b8)" ( (binary_expression "puVar3 + 0x259b8" identifier + number_literal) ))))) )) (argument_list "(uVar2,param_1,param_2)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * (cast_expression ( (type_descriptor TYPE) ) IDENT)) )))) )) && (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * (cast_expression ( (type_descriptor TYPE) ) IDENT)) >> LIT) ))) == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return ;) })) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT , IDENT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_00016904(uint param_1,uint param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined *puVar3;\n  \n  if ((-1 < (int)((ulonglong)param_1 * (ulonglong)param_2)) &&\n     ((int)((ulonglong)param_1 * (ulonglong)param_2 >> 0x20) == 0)) {\n    iVar1 = (*(code *)PTR_calloc_0003c218)();\n    if (iVar1 != 0) {\n      return;\n    }\n  }\n  puVar3 = PTR_xalloc_die_0003c120;\n  xalloc_die();\n  uVar2 = xmalloc(param_2);\n                    \n                    \n  (**(code **)(puVar3 + 0x259b8))(uVar2,param_1,param_2);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00016904(uint param_1,uint param_2)" (identifier "FUN_00016904") (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  int iVar1;\n  undefined4 uVar2;\n  undefined *puVar3;\n  \n  if ((-1 < (int)((ulonglong)param_1 * (ulonglong)param_2)) &&\n     ((int)((ulonglong)param_1 * (ulonglong)param_2 >> 0x20) == 0)) {\n    iVar1 = (*(code *)PTR_calloc_0003c218)();\n    if (iVar1 != 0) {\n      return;\n    }\n  }\n  puVar3 = PTR_xalloc_die_0003c120;\n  xalloc_die();\n  uVar2 = xmalloc(param_2);\n                    \n                    \n  (**(code **)(puVar3 + 0x259b8))(uVar2,param_1,param_2);\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined *puVar3;" (type_identifier "undefined") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (if_statement "if ((-1 < (int)((ulonglong)param_1 * (ulonglong)param_2)) &&\n     ((int)((ulonglong)param_1 * (ulonglong)param_2 >> 0x20) == 0)) {\n    iVar1 = (*(code *)PTR_calloc_0003c218)();\n    if (iVar1 != 0) {\n      return;\n    }\n  }" (if "if") (parenthesized_expression "((-1 < (int)((ulonglong)param_1 * (ulonglong)param_2)) &&\n     ((int)((ulonglong)param_1 * (ulonglong)param_2 >> 0x20) == 0))" (( "(") (binary_expression "(-1 < (int)((ulonglong)param_1 * (ulonglong)param_2)) &&\n     ((int)((ulonglong)param_1 * (ulonglong)param_2 >> 0x20) == 0)" (parenthesized_expression "(-1 < (int)((ulonglong)param_1 * (ulonglong)param_2))" (( "(") (binary_expression "-1 < (int)((ulonglong)param_1 * (ulonglong)param_2)" (number_literal "-1") (< "<") (cast_expression "(int)((ulonglong)param_1 * (ulonglong)param_2)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((ulonglong)param_1 * (ulonglong)param_2)" (( "(") (binary_expression "(ulonglong)param_1 * (ulonglong)param_2" (cast_expression "(ulonglong)param_1" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "param_1")) (* "*") (cast_expression "(ulonglong)param_2" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "param_2"))) () ")")))) () ")")) (&& "&&") (parenthesized_expression "((int)((ulonglong)param_1 * (ulonglong)param_2 >> 0x20) == 0)" (( "(") (binary_expression "(int)((ulonglong)param_1 * (ulonglong)param_2 >> 0x20) == 0" (cast_expression "(int)((ulonglong)param_1 * (ulonglong)param_2 >> 0x20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((ulonglong)param_1 * (ulonglong)param_2 >> 0x20)" (( "(") (binary_expression "(ulonglong)param_1 * (ulonglong)param_2 >> 0x20" (binary_expression "(ulonglong)param_1 * (ulonglong)param_2" (cast_expression "(ulonglong)param_1" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "param_1")) (* "*") (cast_expression "(ulonglong)param_2" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "param_2"))) (>> ">>") (number_literal "0x20")) () ")"))) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    iVar1 = (*(code *)PTR_calloc_0003c218)();\n    if (iVar1 != 0) {\n      return;\n    }\n  }" ({ "{") (expression_statement "iVar1 = (*(code *)PTR_calloc_0003c218)();" (assignment_expression "iVar1 = (*(code *)PTR_calloc_0003c218)()" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_calloc_0003c218)()" (parenthesized_expression "(*(code *)PTR_calloc_0003c218)" (( "(") (pointer_expression "*(code *)PTR_calloc_0003c218" (* "*") (cast_expression "(code *)PTR_calloc_0003c218" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_calloc_0003c218"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n      return;\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (expression_statement "puVar3 = PTR_xalloc_die_0003c120;" (assignment_expression "puVar3 = PTR_xalloc_die_0003c120" (identifier "puVar3") (= "=") (identifier "PTR_xalloc_die_0003c120")) (; ";")) (expression_statement "xalloc_die();" (call_expression "xalloc_die()" (identifier "xalloc_die") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "uVar2 = xmalloc(param_2);" (assignment_expression "uVar2 = xmalloc(param_2)" (identifier "uVar2") (= "=") (call_expression "xmalloc(param_2)" (identifier "xmalloc") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "(**(code **)(puVar3 + 0x259b8))(uVar2,param_1,param_2);" (call_expression "(**(code **)(puVar3 + 0x259b8))(uVar2,param_1,param_2)" (parenthesized_expression "(**(code **)(puVar3 + 0x259b8))" (( "(") (pointer_expression "**(code **)(puVar3 + 0x259b8)" (* "*") (pointer_expression "*(code **)(puVar3 + 0x259b8)" (* "*") (cast_expression "(code **)(puVar3 + 0x259b8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar3 + 0x259b8)" (( "(") (binary_expression "puVar3 + 0x259b8" (identifier "puVar3") (+ "+") (number_literal "0x259b8")) () ")"))))) () ")")) (argument_list "(uVar2,param_1,param_2)" (( "(") (identifier "uVar2") (, ",") (identifier "param_1") (, ",") (identifier "param_2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) 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: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (number_literal) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier))))))) right: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier))) right: (number_literal)))) right: (number_literal))))) 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)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (identifier) (identifier) (identifier)))) (return_statement))))

void MASKED(uint param_1,uint param_2)

{
  int iVar1;
  undefined4 uVar2;
  undefined *puVar3;
  
  if ((-1 < (int)((ulonglong)param_1 * (ulonglong)param_2)) &&
     ((int)((ulonglong)param_1 * (ulonglong)param_2 >> 0x20) == 0)) {
    iVar1 = (*(code *)PTR_calloc_0003c218)();
    if (iVar1 != 0) {
      return;
    }
  }
  puVar3 = PTR_xalloc_die_0003c120;
  xalloc_die();
  uVar2 = xmalloc(param_2);
                    /* WARNING: Could not recover jumptable at 0x000169b4. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (**(code **)(puVar3 + 0x259b8))(uVar2,param_1,param_2);
  return;
}

