
void * xmalloc(size_t n)

{
  void *pvVar1;
  
  pvVar1 = (void *)(*(code *)PTR_malloc_0002a290)();
  if ((pvVar1 == (void *)0x0) && (n != 0)) {
                    /* WARNING: Subroutine does not return */
    xalloc_die();
  }
  return pvVar1;
}



void xmalloc(uint param_1,uint param_2)

{
  int iVar1;
  uint uVar2;
  
  uVar2 = param_1;
  iVar1 = (*(code *)PTR_malloc_0002a290)();
  if ((iVar1 == 0) && (param_1 != 0)) {
    xalloc_die();
    if (-1 < (int)((ulonglong)uVar2 * (ulonglong)param_2) &&
        (int)((ulonglong)uVar2 * (ulonglong)param_2 >> 0x20) == 0) {
      xmalloc();
      return;
    }
    xalloc_die(uVar2 * param_2);
    xmalloc();
    return;
  }
  return;
}


lui gp,0x2
addiu gp,gp,-0x42a0
addu gp,gp,t9
addiu sp,sp,-0x20
sw ra,0x1c(sp)
sw s0,0x18(sp)
sw gp,0x10(sp)
or s0,a0,zero
lw t9,-0x7e60(gp)
jalr t9
_nop
lw gp,0x10(sp)
beq v0,zero,0x000163d4
_lw ra,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
beq s0,zero,0x000163c8
_nop
lw t9,-0x7f6c(gp)
bal 0x00016840
_nop
lui gp,0x2
addiu gp,gp,-0x42f8
addu gp,gp,t9
addiu sp,sp,-0x20
sw ra,0x1c(sp)
sw gp,0x10(sp)
multu a0,a1
mflo v1
mfhi v0
sltu a2,zero,v0
slti v0,v1,0x0
li v1,0x1
movz v1,a2,v0
bne v1,zero,0x00016440
_mul a0,a0,a1
lw t9,-0x7f9c(gp)
bal 0x00016390
_nop
lw gp,0x10(sp)
lw ra,0x1c(sp)
jr ra
_addiu sp,sp,0x20
lw t9,-0x7f6c(gp)
bal 0x00016840
_nop
lui gp,0x2
addiu gp,gp,-0x435c
addu gp,gp,t9
addiu sp,sp,-0x20
sw ra,0x1c(sp)
sw gp,0x10(sp)
lw t9,-0x7f9c(gp)
bal 0x00016390
_nop
lw gp,0x10(sp)
lw ra,0x1c(sp)
jr ra
_addiu sp,sp,0x20
(translation_unit "void xmalloc(uint param_1,uint param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  uVar2 = param_1;\n  iVar1 = (*(code *)PTR_malloc_0002a290)();\n  if ((iVar1 == 0) && (param_1 != 0)) {\n    xalloc_die();\n    if (-1 < (int)((ulonglong)uVar2 * (ulonglong)param_2) &&\n        (int)((ulonglong)uVar2 * (ulonglong)param_2 >> 0x20) == 0) {\n      xmalloc();\n      return;\n    }\n    xalloc_die(uVar2 * param_2);\n    xmalloc();\n    return;\n  }\n  return;\n}\n\n" (function_definition "void xmalloc(uint param_1,uint param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  uVar2 = param_1;\n  iVar1 = (*(code *)PTR_malloc_0002a290)();\n  if ((iVar1 == 0) && (param_1 != 0)) {\n    xalloc_die();\n    if (-1 < (int)((ulonglong)uVar2 * (ulonglong)param_2) &&\n        (int)((ulonglong)uVar2 * (ulonglong)param_2 >> 0x20) == 0) {\n      xmalloc();\n      return;\n    }\n    xalloc_die(uVar2 * param_2);\n    xmalloc();\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "xmalloc(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  uint uVar2;\n  \n  uVar2 = param_1;\n  iVar1 = (*(code *)PTR_malloc_0002a290)();\n  if ((iVar1 == 0) && (param_1 != 0)) {\n    xalloc_die();\n    if (-1 < (int)((ulonglong)uVar2 * (ulonglong)param_2) &&\n        (int)((ulonglong)uVar2 * (ulonglong)param_2 >> 0x20) == 0) {\n      xmalloc();\n      return;\n    }\n    xalloc_die(uVar2 * param_2);\n    xmalloc();\n    return;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (expression_statement "uVar2 = param_1;" (assignment_expression "uVar2 = param_1" identifier = identifier) ;) (expression_statement "iVar1 = (*(code *)PTR_malloc_0002a290)();" (assignment_expression "iVar1 = (*(code *)PTR_malloc_0002a290)()" identifier = (call_expression "(*(code *)PTR_malloc_0002a290)()" (parenthesized_expression "(*(code *)PTR_malloc_0002a290)" ( (pointer_expression "*(code *)PTR_malloc_0002a290" * (cast_expression "(code *)PTR_malloc_0002a290" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (if_statement "if ((iVar1 == 0) && (param_1 != 0)) {\n    xalloc_die();\n    if (-1 < (int)((ulonglong)uVar2 * (ulonglong)param_2) &&\n        (int)((ulonglong)uVar2 * (ulonglong)param_2 >> 0x20) == 0) {\n      xmalloc();\n      return;\n    }\n    xalloc_die(uVar2 * param_2);\n    xmalloc();\n    return;\n  }" if (parenthesized_expression "((iVar1 == 0) && (param_1 != 0))" ( (binary_expression "(iVar1 == 0) && (param_1 != 0)" (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) && (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) ))) )) (compound_statement "{\n    xalloc_die();\n    if (-1 < (int)((ulonglong)uVar2 * (ulonglong)param_2) &&\n        (int)((ulonglong)uVar2 * (ulonglong)param_2 >> 0x20) == 0) {\n      xmalloc();\n      return;\n    }\n    xalloc_die(uVar2 * param_2);\n    xmalloc();\n    return;\n  }" { (expression_statement "xalloc_die();" (call_expression "xalloc_die()" identifier (argument_list "()" ( ))) ;) (if_statement "if (-1 < (int)((ulonglong)uVar2 * (ulonglong)param_2) &&\n        (int)((ulonglong)uVar2 * (ulonglong)param_2 >> 0x20) == 0) {\n      xmalloc();\n      return;\n    }" if (parenthesized_expression "(-1 < (int)((ulonglong)uVar2 * (ulonglong)param_2) &&\n        (int)((ulonglong)uVar2 * (ulonglong)param_2 >> 0x20) == 0)" ( (binary_expression "-1 < (int)((ulonglong)uVar2 * (ulonglong)param_2) &&\n        (int)((ulonglong)uVar2 * (ulonglong)param_2 >> 0x20) == 0" (binary_expression "-1 < (int)((ulonglong)uVar2 * (ulonglong)param_2)" number_literal < (cast_expression "(int)((ulonglong)uVar2 * (ulonglong)param_2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar2 * (ulonglong)param_2)" ( (binary_expression "(ulonglong)uVar2 * (ulonglong)param_2" (cast_expression "(ulonglong)uVar2" ( (type_descriptor "ulonglong" type_identifier) ) identifier) * (cast_expression "(ulonglong)param_2" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) )))) && (binary_expression "(int)((ulonglong)uVar2 * (ulonglong)param_2 >> 0x20) == 0" (cast_expression "(int)((ulonglong)uVar2 * (ulonglong)param_2 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar2 * (ulonglong)param_2 >> 0x20)" ( (binary_expression "(ulonglong)uVar2 * (ulonglong)param_2 >> 0x20" (binary_expression "(ulonglong)uVar2 * (ulonglong)param_2" (cast_expression "(ulonglong)uVar2" ( (type_descriptor "ulonglong" type_identifier) ) identifier) * (cast_expression "(ulonglong)param_2" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) >> number_literal) ))) == number_literal)) )) (compound_statement "{\n      xmalloc();\n      return;\n    }" { (expression_statement "xmalloc();" (call_expression "xmalloc()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (expression_statement "xalloc_die(uVar2 * param_2);" (call_expression "xalloc_die(uVar2 * param_2)" identifier (argument_list "(uVar2 * param_2)" ( (binary_expression "uVar2 * param_2" identifier * identifier) ))) ;) (expression_statement "xmalloc();" (call_expression "xmalloc()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void * xmalloc(size_t n)\n\n{\n  void *pvVar1;\n  \n  pvVar1 = (void *)(*(code *)PTR_malloc_0002a290)();\n  if ((pvVar1 == (void *)0x0) && (n != 0)) {\n                    /* WARNING: Subroutine does not return */\n    xalloc_die();\n  }\n  return pvVar1;\n}\n\n" (function_definition "void * xmalloc(size_t n)\n\n{\n  void *pvVar1;\n  \n  pvVar1 = (void *)(*(code *)PTR_malloc_0002a290)();\n  if ((pvVar1 == (void *)0x0) && (n != 0)) {\n                    /* WARNING: Subroutine does not return */\n    xalloc_die();\n  }\n  return pvVar1;\n}" primitive_type (pointer_declarator "* xmalloc(size_t n)" * (function_declarator "xmalloc(size_t n)" identifier (parameter_list "(size_t n)" ( (parameter_declaration "size_t n" primitive_type identifier) )))) (compound_statement "{\n  void *pvVar1;\n  \n  pvVar1 = (void *)(*(code *)PTR_malloc_0002a290)();\n  if ((pvVar1 == (void *)0x0) && (n != 0)) {\n                    /* WARNING: Subroutine does not return */\n    xalloc_die();\n  }\n  return pvVar1;\n}" { (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (expression_statement "pvVar1 = (void *)(*(code *)PTR_malloc_0002a290)();" (assignment_expression "pvVar1 = (void *)(*(code *)PTR_malloc_0002a290)()" identifier = (cast_expression "(void *)(*(code *)PTR_malloc_0002a290)()" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_malloc_0002a290)()" (parenthesized_expression "(*(code *)PTR_malloc_0002a290)" ( (pointer_expression "*(code *)PTR_malloc_0002a290" * (cast_expression "(code *)PTR_malloc_0002a290" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (if_statement "if ((pvVar1 == (void *)0x0) && (n != 0)) {\n                    /* WARNING: Subroutine does not return */\n    xalloc_die();\n  }" if (parenthesized_expression "((pvVar1 == (void *)0x0) && (n != 0))" ( (binary_expression "(pvVar1 == (void *)0x0) && (n != 0)" (parenthesized_expression "(pvVar1 == (void *)0x0)" ( (binary_expression "pvVar1 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(n != 0)" ( (binary_expression "n != 0" identifier != number_literal) ))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    xalloc_die();\n  }" { comment (expression_statement "xalloc_die();" (call_expression "xalloc_die()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return pvVar1;" return identifier ;) })))
(translation_unit "void xmalloc(uint param_1,uint param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  uVar2 = param_1;\n  iVar1 = (*(code *)PTR_malloc_0002a290)();\n  if ((iVar1 == 0) && (param_1 != 0)) {\n    xalloc_die();\n    if (-1 < (int)((ulonglong)uVar2 * (ulonglong)param_2) &&\n        (int)((ulonglong)uVar2 * (ulonglong)param_2 >> 0x20) == 0) {\n      xmalloc();\n      return;\n    }\n    xalloc_die(uVar2 * param_2);\n    xmalloc();\n    return;\n  }\n  return;\n}\n\n" (function_definition "void xmalloc(uint param_1,uint param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  uVar2 = param_1;\n  iVar1 = (*(code *)PTR_malloc_0002a290)();\n  if ((iVar1 == 0) && (param_1 != 0)) {\n    xalloc_die();\n    if (-1 < (int)((ulonglong)uVar2 * (ulonglong)param_2) &&\n        (int)((ulonglong)uVar2 * (ulonglong)param_2 >> 0x20) == 0) {\n      xmalloc();\n      return;\n    }\n    xalloc_die(uVar2 * param_2);\n    xmalloc();\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "xmalloc(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  uint uVar2;\n  \n  uVar2 = param_1;\n  iVar1 = (*(code *)PTR_malloc_0002a290)();\n  if ((iVar1 == 0) && (param_1 != 0)) {\n    xalloc_die();\n    if (-1 < (int)((ulonglong)uVar2 * (ulonglong)param_2) &&\n        (int)((ulonglong)uVar2 * (ulonglong)param_2 >> 0x20) == 0) {\n      xmalloc();\n      return;\n    }\n    xalloc_die(uVar2 * param_2);\n    xmalloc();\n    return;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (expression_statement "uVar2 = param_1;" (assignment_expression "uVar2 = param_1" identifier = identifier) ;) (expression_statement "iVar1 = (*(code *)PTR_malloc_0002a290)();" (assignment_expression "iVar1 = (*(code *)PTR_malloc_0002a290)()" identifier = (call_expression "(*(code *)PTR_malloc_0002a290)()" (parenthesized_expression "(*(code *)PTR_malloc_0002a290)" ( (pointer_expression "*(code *)PTR_malloc_0002a290" * (cast_expression "(code *)PTR_malloc_0002a290" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (if_statement "if ((iVar1 == 0) && (param_1 != 0)) {\n    xalloc_die();\n    if (-1 < (int)((ulonglong)uVar2 * (ulonglong)param_2) &&\n        (int)((ulonglong)uVar2 * (ulonglong)param_2 >> 0x20) == 0) {\n      xmalloc();\n      return;\n    }\n    xalloc_die(uVar2 * param_2);\n    xmalloc();\n    return;\n  }" if (parenthesized_expression "((iVar1 == 0) && (param_1 != 0))" ( (binary_expression "(iVar1 == 0) && (param_1 != 0)" (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) && (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) ))) )) (compound_statement "{\n    xalloc_die();\n    if (-1 < (int)((ulonglong)uVar2 * (ulonglong)param_2) &&\n        (int)((ulonglong)uVar2 * (ulonglong)param_2 >> 0x20) == 0) {\n      xmalloc();\n      return;\n    }\n    xalloc_die(uVar2 * param_2);\n    xmalloc();\n    return;\n  }" { (expression_statement "xalloc_die();" (call_expression "xalloc_die()" identifier (argument_list "()" ( ))) ;) (if_statement "if (-1 < (int)((ulonglong)uVar2 * (ulonglong)param_2) &&\n        (int)((ulonglong)uVar2 * (ulonglong)param_2 >> 0x20) == 0) {\n      xmalloc();\n      return;\n    }" if (parenthesized_expression "(-1 < (int)((ulonglong)uVar2 * (ulonglong)param_2) &&\n        (int)((ulonglong)uVar2 * (ulonglong)param_2 >> 0x20) == 0)" ( (binary_expression "-1 < (int)((ulonglong)uVar2 * (ulonglong)param_2) &&\n        (int)((ulonglong)uVar2 * (ulonglong)param_2 >> 0x20) == 0" (binary_expression "-1 < (int)((ulonglong)uVar2 * (ulonglong)param_2)" number_literal < (cast_expression "(int)((ulonglong)uVar2 * (ulonglong)param_2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar2 * (ulonglong)param_2)" ( (binary_expression "(ulonglong)uVar2 * (ulonglong)param_2" (cast_expression "(ulonglong)uVar2" ( (type_descriptor "ulonglong" type_identifier) ) identifier) * (cast_expression "(ulonglong)param_2" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) )))) && (binary_expression "(int)((ulonglong)uVar2 * (ulonglong)param_2 >> 0x20) == 0" (cast_expression "(int)((ulonglong)uVar2 * (ulonglong)param_2 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar2 * (ulonglong)param_2 >> 0x20)" ( (binary_expression "(ulonglong)uVar2 * (ulonglong)param_2 >> 0x20" (binary_expression "(ulonglong)uVar2 * (ulonglong)param_2" (cast_expression "(ulonglong)uVar2" ( (type_descriptor "ulonglong" type_identifier) ) identifier) * (cast_expression "(ulonglong)param_2" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) >> number_literal) ))) == number_literal)) )) (compound_statement "{\n      xmalloc();\n      return;\n    }" { (expression_statement "xmalloc();" (call_expression "xmalloc()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (expression_statement "xalloc_die(uVar2 * param_2);" (call_expression "xalloc_die(uVar2 * param_2)" identifier (argument_list "(uVar2 * param_2)" ( (binary_expression "uVar2 * param_2" identifier * identifier) ))) ;) (expression_statement "xmalloc();" (call_expression "xmalloc()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (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 ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (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 (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_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)) )))) && (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 (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT * IDENT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })) (return_statement return ;) })))
(function_definition "void xmalloc(uint param_1,uint param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  uVar2 = param_1;\n  iVar1 = (*(code *)PTR_malloc_0002a290)();\n  if ((iVar1 == 0) && (param_1 != 0)) {\n    xalloc_die();\n    if (-1 < (int)((ulonglong)uVar2 * (ulonglong)param_2) &&\n        (int)((ulonglong)uVar2 * (ulonglong)param_2 >> 0x20) == 0) {\n      xmalloc();\n      return;\n    }\n    xalloc_die(uVar2 * param_2);\n    xmalloc();\n    return;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "xmalloc(uint param_1,uint param_2)" (identifier "xmalloc") (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  uint uVar2;\n  \n  uVar2 = param_1;\n  iVar1 = (*(code *)PTR_malloc_0002a290)();\n  if ((iVar1 == 0) && (param_1 != 0)) {\n    xalloc_die();\n    if (-1 < (int)((ulonglong)uVar2 * (ulonglong)param_2) &&\n        (int)((ulonglong)uVar2 * (ulonglong)param_2 >> 0x20) == 0) {\n      xmalloc();\n      return;\n    }\n    xalloc_die(uVar2 * param_2);\n    xmalloc();\n    return;\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (expression_statement "uVar2 = param_1;" (assignment_expression "uVar2 = param_1" (identifier "uVar2") (= "=") (identifier "param_1")) (; ";")) (expression_statement "iVar1 = (*(code *)PTR_malloc_0002a290)();" (assignment_expression "iVar1 = (*(code *)PTR_malloc_0002a290)()" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_malloc_0002a290)()" (parenthesized_expression "(*(code *)PTR_malloc_0002a290)" (( "(") (pointer_expression "*(code *)PTR_malloc_0002a290" (* "*") (cast_expression "(code *)PTR_malloc_0002a290" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_malloc_0002a290"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if ((iVar1 == 0) && (param_1 != 0)) {\n    xalloc_die();\n    if (-1 < (int)((ulonglong)uVar2 * (ulonglong)param_2) &&\n        (int)((ulonglong)uVar2 * (ulonglong)param_2 >> 0x20) == 0) {\n      xmalloc();\n      return;\n    }\n    xalloc_die(uVar2 * param_2);\n    xmalloc();\n    return;\n  }" (if "if") (parenthesized_expression "((iVar1 == 0) && (param_1 != 0))" (( "(") (binary_expression "(iVar1 == 0) && (param_1 != 0)" (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    xalloc_die();\n    if (-1 < (int)((ulonglong)uVar2 * (ulonglong)param_2) &&\n        (int)((ulonglong)uVar2 * (ulonglong)param_2 >> 0x20) == 0) {\n      xmalloc();\n      return;\n    }\n    xalloc_die(uVar2 * param_2);\n    xmalloc();\n    return;\n  }" ({ "{") (expression_statement "xalloc_die();" (call_expression "xalloc_die()" (identifier "xalloc_die") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (-1 < (int)((ulonglong)uVar2 * (ulonglong)param_2) &&\n        (int)((ulonglong)uVar2 * (ulonglong)param_2 >> 0x20) == 0) {\n      xmalloc();\n      return;\n    }" (if "if") (parenthesized_expression "(-1 < (int)((ulonglong)uVar2 * (ulonglong)param_2) &&\n        (int)((ulonglong)uVar2 * (ulonglong)param_2 >> 0x20) == 0)" (( "(") (binary_expression "-1 < (int)((ulonglong)uVar2 * (ulonglong)param_2) &&\n        (int)((ulonglong)uVar2 * (ulonglong)param_2 >> 0x20) == 0" (binary_expression "-1 < (int)((ulonglong)uVar2 * (ulonglong)param_2)" (number_literal "-1") (< "<") (cast_expression "(int)((ulonglong)uVar2 * (ulonglong)param_2)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((ulonglong)uVar2 * (ulonglong)param_2)" (( "(") (binary_expression "(ulonglong)uVar2 * (ulonglong)param_2" (cast_expression "(ulonglong)uVar2" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar2")) (* "*") (cast_expression "(ulonglong)param_2" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "param_2"))) () ")")))) (&& "&&") (binary_expression "(int)((ulonglong)uVar2 * (ulonglong)param_2 >> 0x20) == 0" (cast_expression "(int)((ulonglong)uVar2 * (ulonglong)param_2 >> 0x20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((ulonglong)uVar2 * (ulonglong)param_2 >> 0x20)" (( "(") (binary_expression "(ulonglong)uVar2 * (ulonglong)param_2 >> 0x20" (binary_expression "(ulonglong)uVar2 * (ulonglong)param_2" (cast_expression "(ulonglong)uVar2" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar2")) (* "*") (cast_expression "(ulonglong)param_2" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "param_2"))) (>> ">>") (number_literal "0x20")) () ")"))) (== "==") (number_literal "0"))) () ")")) (compound_statement "{\n      xmalloc();\n      return;\n    }" ({ "{") (expression_statement "xmalloc();" (call_expression "xmalloc()" (identifier "xmalloc") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "xalloc_die(uVar2 * param_2);" (call_expression "xalloc_die(uVar2 * param_2)" (identifier "xalloc_die") (argument_list "(uVar2 * param_2)" (( "(") (binary_expression "uVar2 * param_2" (identifier "uVar2") (* "*") (identifier "param_2")) () ")"))) (; ";")) (expression_statement "xmalloc();" (call_expression "xmalloc()" (identifier "xmalloc") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (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)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (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: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (if_statement condition: (parenthesized_expression (binary_expression left: (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: (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 (call_expression function: (identifier) arguments: (argument_list))) (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (return_statement))) (return_statement))))

void MASKED(uint param_1,uint param_2)

{
  int iVar1;
  uint uVar2;
  
  uVar2 = param_1;
  iVar1 = (*(code *)PTR_malloc_0002a290)();
  if ((iVar1 == 0) && (param_1 != 0)) {
    xalloc_die();
    if (-1 < (int)((ulonglong)uVar2 * (ulonglong)param_2) &&
        (int)((ulonglong)uVar2 * (ulonglong)param_2 >> 0x20) == 0) {
      MASKED();
      return;
    }
    xalloc_die(uVar2 * param_2);
    MASKED();
    return;
  }
  return;
}

