
void * xrealloc(void *oldmem,size_t size)

{
  void *pvVar1;
  
  if (size == 0) {
    size = 1;
  }
  if (oldmem == (void *)0x0) {
    pvVar1 = (void *)(*(code *)PTR_malloc_000c35dc)(size);
  }
  else {
    pvVar1 = (void *)(*(code *)PTR_realloc_000c35e0)(oldmem,size);
  }
  if (pvVar1 != (void *)0x0) {
    return pvVar1;
  }
                    /* WARNING: Subroutine does not return */
  xmalloc_failed(size);
}



void xrealloc(int param_1,int param_2)

{
  int iVar1;
  
  if (param_2 == 0) {
    param_2 = 1;
  }
  if (param_1 == 0) {
    iVar1 = (*(code *)PTR_malloc_000c35dc)(param_2);
  }
  else {
    iVar1 = (*(code *)PTR_realloc_000c35e0)(param_1,param_2);
  }
  if (iVar1 != 0) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  xmalloc_failed(param_2);
}


lui gp,0x5
addiu gp,gp,-0x36b8
addu gp,gp,t9
addiu sp,sp,-0x20
sw gp,0x10(sp)
sw ra,0x1c(sp)
bne a1,zero,0x0007ea54
_sw s0,0x18(sp)
beq a0,zero,0x0007ea5c
_li s0,0x1
lw t9,-0x7d70(gp)
jalr t9
_or a1,s0,zero
lw gp,0x10(sp)
beq v0,zero,0x0007ea70
_lw ra,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
bne a0,zero,0x0007ea30
_or s0,a1,zero
lw t9,-0x7d74(gp)
jalr t9
_or a0,s0,zero
b 0x0007ea40
_lw gp,0x10(sp)
lw t9,-0x7e4c(gp)
bal 0x0007e880
_or a0,s0,zero
(translation_unit "void xrealloc(int param_1,int param_2)\n\n{\n  int iVar1;\n  \n  if (param_2 == 0) {\n    param_2 = 1;\n  }\n  if (param_1 == 0) {\n    iVar1 = (*(code *)PTR_malloc_000c35dc)(param_2);\n  }\n  else {\n    iVar1 = (*(code *)PTR_realloc_000c35e0)(param_1,param_2);\n  }\n  if (iVar1 != 0) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  xmalloc_failed(param_2);\n}\n\n" (function_definition "void xrealloc(int param_1,int param_2)\n\n{\n  int iVar1;\n  \n  if (param_2 == 0) {\n    param_2 = 1;\n  }\n  if (param_1 == 0) {\n    iVar1 = (*(code *)PTR_malloc_000c35dc)(param_2);\n  }\n  else {\n    iVar1 = (*(code *)PTR_realloc_000c35e0)(param_1,param_2);\n  }\n  if (iVar1 != 0) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  xmalloc_failed(param_2);\n}" primitive_type (function_declarator "xrealloc(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  int iVar1;\n  \n  if (param_2 == 0) {\n    param_2 = 1;\n  }\n  if (param_1 == 0) {\n    iVar1 = (*(code *)PTR_malloc_000c35dc)(param_2);\n  }\n  else {\n    iVar1 = (*(code *)PTR_realloc_000c35e0)(param_1,param_2);\n  }\n  if (iVar1 != 0) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  xmalloc_failed(param_2);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (param_2 == 0) {\n    param_2 = 1;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    param_2 = 1;\n  }" { (expression_statement "param_2 = 1;" (assignment_expression "param_2 = 1" identifier = number_literal) ;) })) (if_statement "if (param_1 == 0) {\n    iVar1 = (*(code *)PTR_malloc_000c35dc)(param_2);\n  }\n  else {\n    iVar1 = (*(code *)PTR_realloc_000c35e0)(param_1,param_2);\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = (*(code *)PTR_malloc_000c35dc)(param_2);\n  }" { (expression_statement "iVar1 = (*(code *)PTR_malloc_000c35dc)(param_2);" (assignment_expression "iVar1 = (*(code *)PTR_malloc_000c35dc)(param_2)" identifier = (call_expression "(*(code *)PTR_malloc_000c35dc)(param_2)" (parenthesized_expression "(*(code *)PTR_malloc_000c35dc)" ( (pointer_expression "*(code *)PTR_malloc_000c35dc" * (cast_expression "(code *)PTR_malloc_000c35dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) }) (else_clause "else {\n    iVar1 = (*(code *)PTR_realloc_000c35e0)(param_1,param_2);\n  }" else (compound_statement "{\n    iVar1 = (*(code *)PTR_realloc_000c35e0)(param_1,param_2);\n  }" { (expression_statement "iVar1 = (*(code *)PTR_realloc_000c35e0)(param_1,param_2);" (assignment_expression "iVar1 = (*(code *)PTR_realloc_000c35e0)(param_1,param_2)" identifier = (call_expression "(*(code *)PTR_realloc_000c35e0)(param_1,param_2)" (parenthesized_expression "(*(code *)PTR_realloc_000c35e0)" ( (pointer_expression "*(code *)PTR_realloc_000c35e0" * (cast_expression "(code *)PTR_realloc_000c35e0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;) }))) (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 ;) })) comment (expression_statement "xmalloc_failed(param_2);" (call_expression "xmalloc_failed(param_2)" identifier (argument_list "(param_2)" ( identifier ))) ;) })))
(translation_unit "void * xrealloc(void *oldmem,size_t size)\n\n{\n  void *pvVar1;\n  \n  if (size == 0) {\n    size = 1;\n  }\n  if (oldmem == (void *)0x0) {\n    pvVar1 = (void *)(*(code *)PTR_malloc_000c35dc)(size);\n  }\n  else {\n    pvVar1 = (void *)(*(code *)PTR_realloc_000c35e0)(oldmem,size);\n  }\n  if (pvVar1 != (void *)0x0) {\n    return pvVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  xmalloc_failed(size);\n}\n\n" (function_definition "void * xrealloc(void *oldmem,size_t size)\n\n{\n  void *pvVar1;\n  \n  if (size == 0) {\n    size = 1;\n  }\n  if (oldmem == (void *)0x0) {\n    pvVar1 = (void *)(*(code *)PTR_malloc_000c35dc)(size);\n  }\n  else {\n    pvVar1 = (void *)(*(code *)PTR_realloc_000c35e0)(oldmem,size);\n  }\n  if (pvVar1 != (void *)0x0) {\n    return pvVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  xmalloc_failed(size);\n}" primitive_type (pointer_declarator "* xrealloc(void *oldmem,size_t size)" * (function_declarator "xrealloc(void *oldmem,size_t size)" identifier (parameter_list "(void *oldmem,size_t size)" ( (parameter_declaration "void *oldmem" primitive_type (pointer_declarator "*oldmem" * identifier)) , (parameter_declaration "size_t size" primitive_type identifier) )))) (compound_statement "{\n  void *pvVar1;\n  \n  if (size == 0) {\n    size = 1;\n  }\n  if (oldmem == (void *)0x0) {\n    pvVar1 = (void *)(*(code *)PTR_malloc_000c35dc)(size);\n  }\n  else {\n    pvVar1 = (void *)(*(code *)PTR_realloc_000c35e0)(oldmem,size);\n  }\n  if (pvVar1 != (void *)0x0) {\n    return pvVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  xmalloc_failed(size);\n}" { (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (if_statement "if (size == 0) {\n    size = 1;\n  }" if (parenthesized_expression "(size == 0)" ( (binary_expression "size == 0" identifier == number_literal) )) (compound_statement "{\n    size = 1;\n  }" { (expression_statement "size = 1;" (assignment_expression "size = 1" identifier = number_literal) ;) })) (if_statement "if (oldmem == (void *)0x0) {\n    pvVar1 = (void *)(*(code *)PTR_malloc_000c35dc)(size);\n  }\n  else {\n    pvVar1 = (void *)(*(code *)PTR_realloc_000c35e0)(oldmem,size);\n  }" if (parenthesized_expression "(oldmem == (void *)0x0)" ( (binary_expression "oldmem == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pvVar1 = (void *)(*(code *)PTR_malloc_000c35dc)(size);\n  }" { (expression_statement "pvVar1 = (void *)(*(code *)PTR_malloc_000c35dc)(size);" (assignment_expression "pvVar1 = (void *)(*(code *)PTR_malloc_000c35dc)(size)" identifier = (cast_expression "(void *)(*(code *)PTR_malloc_000c35dc)(size)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_malloc_000c35dc)(size)" (parenthesized_expression "(*(code *)PTR_malloc_000c35dc)" ( (pointer_expression "*(code *)PTR_malloc_000c35dc" * (cast_expression "(code *)PTR_malloc_000c35dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(size)" ( identifier ))))) ;) }) (else_clause "else {\n    pvVar1 = (void *)(*(code *)PTR_realloc_000c35e0)(oldmem,size);\n  }" else (compound_statement "{\n    pvVar1 = (void *)(*(code *)PTR_realloc_000c35e0)(oldmem,size);\n  }" { (expression_statement "pvVar1 = (void *)(*(code *)PTR_realloc_000c35e0)(oldmem,size);" (assignment_expression "pvVar1 = (void *)(*(code *)PTR_realloc_000c35e0)(oldmem,size)" identifier = (cast_expression "(void *)(*(code *)PTR_realloc_000c35e0)(oldmem,size)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_realloc_000c35e0)(oldmem,size)" (parenthesized_expression "(*(code *)PTR_realloc_000c35e0)" ( (pointer_expression "*(code *)PTR_realloc_000c35e0" * (cast_expression "(code *)PTR_realloc_000c35e0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(oldmem,size)" ( identifier , identifier ))))) ;) }))) (if_statement "if (pvVar1 != (void *)0x0) {\n    return pvVar1;\n  }" if (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)) )) (compound_statement "{\n    return pvVar1;\n  }" { (return_statement "return pvVar1;" return identifier ;) })) comment (expression_statement "xmalloc_failed(size);" (call_expression "xmalloc_failed(size)" identifier (argument_list "(size)" ( identifier ))) ;) })))
(translation_unit "void xrealloc(int param_1,int param_2)\n\n{\n  int iVar1;\n  \n  if (param_2 == 0) {\n    param_2 = 1;\n  }\n  if (param_1 == 0) {\n    iVar1 = (*(code *)PTR_malloc_000c35dc)(param_2);\n  }\n  else {\n    iVar1 = (*(code *)PTR_realloc_000c35e0)(param_1,param_2);\n  }\n  if (iVar1 != 0) {\n    return;\n  }\n                    \n  xmalloc_failed(param_2);\n}\n\n" (function_definition "void xrealloc(int param_1,int param_2)\n\n{\n  int iVar1;\n  \n  if (param_2 == 0) {\n    param_2 = 1;\n  }\n  if (param_1 == 0) {\n    iVar1 = (*(code *)PTR_malloc_000c35dc)(param_2);\n  }\n  else {\n    iVar1 = (*(code *)PTR_realloc_000c35e0)(param_1,param_2);\n  }\n  if (iVar1 != 0) {\n    return;\n  }\n                    \n  xmalloc_failed(param_2);\n}" primitive_type (function_declarator "xrealloc(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  int iVar1;\n  \n  if (param_2 == 0) {\n    param_2 = 1;\n  }\n  if (param_1 == 0) {\n    iVar1 = (*(code *)PTR_malloc_000c35dc)(param_2);\n  }\n  else {\n    iVar1 = (*(code *)PTR_realloc_000c35e0)(param_1,param_2);\n  }\n  if (iVar1 != 0) {\n    return;\n  }\n                    \n  xmalloc_failed(param_2);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (param_2 == 0) {\n    param_2 = 1;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    param_2 = 1;\n  }" { (expression_statement "param_2 = 1;" (assignment_expression "param_2 = 1" identifier = number_literal) ;) })) (if_statement "if (param_1 == 0) {\n    iVar1 = (*(code *)PTR_malloc_000c35dc)(param_2);\n  }\n  else {\n    iVar1 = (*(code *)PTR_realloc_000c35e0)(param_1,param_2);\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = (*(code *)PTR_malloc_000c35dc)(param_2);\n  }" { (expression_statement "iVar1 = (*(code *)PTR_malloc_000c35dc)(param_2);" (assignment_expression "iVar1 = (*(code *)PTR_malloc_000c35dc)(param_2)" identifier = (call_expression "(*(code *)PTR_malloc_000c35dc)(param_2)" (parenthesized_expression "(*(code *)PTR_malloc_000c35dc)" ( (pointer_expression "*(code *)PTR_malloc_000c35dc" * (cast_expression "(code *)PTR_malloc_000c35dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) }) (else_clause "else {\n    iVar1 = (*(code *)PTR_realloc_000c35e0)(param_1,param_2);\n  }" else (compound_statement "{\n    iVar1 = (*(code *)PTR_realloc_000c35e0)(param_1,param_2);\n  }" { (expression_statement "iVar1 = (*(code *)PTR_realloc_000c35e0)(param_1,param_2);" (assignment_expression "iVar1 = (*(code *)PTR_realloc_000c35e0)(param_1,param_2)" identifier = (call_expression "(*(code *)PTR_realloc_000c35e0)(param_1,param_2)" (parenthesized_expression "(*(code *)PTR_realloc_000c35e0)" ( (pointer_expression "*(code *)PTR_realloc_000c35e0" * (cast_expression "(code *)PTR_realloc_000c35e0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;) }))) (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 "xmalloc_failed(param_2);" (call_expression "xmalloc_failed(param_2)" identifier (argument_list "(param_2)" ( identifier ))) ;) })))
(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 (assignment_expression IDENT = LIT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == 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 ( IDENT )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT )))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })))
(function_definition "void xrealloc(int param_1,int param_2)\n\n{\n  int iVar1;\n  \n  if (param_2 == 0) {\n    param_2 = 1;\n  }\n  if (param_1 == 0) {\n    iVar1 = (*(code *)PTR_malloc_000c35dc)(param_2);\n  }\n  else {\n    iVar1 = (*(code *)PTR_realloc_000c35e0)(param_1,param_2);\n  }\n  if (iVar1 != 0) {\n    return;\n  }\n                    \n  xmalloc_failed(param_2);\n}" (primitive_type "void") (function_declarator "xrealloc(int param_1,int param_2)" (identifier "xrealloc") (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  int iVar1;\n  \n  if (param_2 == 0) {\n    param_2 = 1;\n  }\n  if (param_1 == 0) {\n    iVar1 = (*(code *)PTR_malloc_000c35dc)(param_2);\n  }\n  else {\n    iVar1 = (*(code *)PTR_realloc_000c35e0)(param_1,param_2);\n  }\n  if (iVar1 != 0) {\n    return;\n  }\n                    \n  xmalloc_failed(param_2);\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (if_statement "if (param_2 == 0) {\n    param_2 = 1;\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    param_2 = 1;\n  }" ({ "{") (expression_statement "param_2 = 1;" (assignment_expression "param_2 = 1" (identifier "param_2") (= "=") (number_literal "1")) (; ";")) (} "}"))) (if_statement "if (param_1 == 0) {\n    iVar1 = (*(code *)PTR_malloc_000c35dc)(param_2);\n  }\n  else {\n    iVar1 = (*(code *)PTR_realloc_000c35e0)(param_1,param_2);\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = (*(code *)PTR_malloc_000c35dc)(param_2);\n  }" ({ "{") (expression_statement "iVar1 = (*(code *)PTR_malloc_000c35dc)(param_2);" (assignment_expression "iVar1 = (*(code *)PTR_malloc_000c35dc)(param_2)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_malloc_000c35dc)(param_2)" (parenthesized_expression "(*(code *)PTR_malloc_000c35dc)" (( "(") (pointer_expression "*(code *)PTR_malloc_000c35dc" (* "*") (cast_expression "(code *)PTR_malloc_000c35dc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_malloc_000c35dc"))) () ")")) (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (} "}")) (else_clause "else {\n    iVar1 = (*(code *)PTR_realloc_000c35e0)(param_1,param_2);\n  }" (else "else") (compound_statement "{\n    iVar1 = (*(code *)PTR_realloc_000c35e0)(param_1,param_2);\n  }" ({ "{") (expression_statement "iVar1 = (*(code *)PTR_realloc_000c35e0)(param_1,param_2);" (assignment_expression "iVar1 = (*(code *)PTR_realloc_000c35e0)(param_1,param_2)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_realloc_000c35e0)(param_1,param_2)" (parenthesized_expression "(*(code *)PTR_realloc_000c35e0)" (( "(") (pointer_expression "*(code *)PTR_realloc_000c35e0" (* "*") (cast_expression "(code *)PTR_realloc_000c35e0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_realloc_000c35e0"))) () ")")) (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")")))) (; ";")) (} "}")))) (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 "xmalloc_failed(param_2);" (call_expression "xmalloc_failed(param_2)" (identifier "xmalloc_failed") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")"))) (; ";")) (} "}")))

void * function_1(void *var_2,size_t var_1)

{
  void *var_3;
  
  if (var_1 == 0) {
    var_1 = 1;
  }
  if (var_2 == (void *)0x0) {
    var_3 = (void *)(*(type_1 *)PTR_malloc_000c35dc)(var_1);
  }
  else {
    var_3 = (void *)(*(type_1 *)PTR_realloc_000c35e0)(var_2,var_1);
  }
  if (var_3 != (void *)0x0) {
    return var_3;
  }
                    /* WARNING: Subroutine does not return */
  var_4(var_1);
}


(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 (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) 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 (identifier)))))) alternative: (else_clause (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 (identifier) (identifier)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))))))

void MASKED(int param_1,int param_2)

{
  int iVar1;
  
  if (param_2 == 0) {
    param_2 = 1;
  }
  if (param_1 == 0) {
    iVar1 = (*(code *)PTR_malloc_000c35dc)(param_2);
  }
  else {
    iVar1 = (*(code *)PTR_realloc_000c35e0)(param_1,param_2);
  }
  if (iVar1 != 0) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  xmalloc_failed(param_2);
}

