
/* operator new(unsigned int) */

void * operator_new(uint param_1)

{
  undefined *puVar1;
  undefined *puVar2;
  void *pvVar3;
  code *pcVar4;
  undefined4 *puVar5;
  
  if (param_1 == 0) {
    param_1 = 1;
  }
  while( true ) {
    pvVar3 = (void *)(*(code *)PTR_malloc_004c5b38)(param_1);
    if (pvVar3 != (void *)0x0) {
      return pvVar3;
    }
    pcVar4 = (code *)std::get_new_handler();
    if (pcVar4 == (code *)0x0) break;
    (*pcVar4)();
  }
  puVar5 = (undefined4 *)__cxa_allocate_exception(4);
  puVar2 = PTR_PTR_004c50b8;
  puVar1 = PTR__bad_alloc_004c50b4;
                    /* WARNING: Subroutine does not return */
  *puVar5 = PTR_vtable_004c50b0 + 8;
  __cxa_throw(puVar5,puVar2,puVar1);
}



/* operator new(unsigned int) */

void * operator_new(uint param_1)

{
  undefined *puVar1;
  undefined *puVar2;
  void *pvVar3;
  code *pcVar4;
  undefined4 *puVar5;
  
  if (param_1 == 0) {
    param_1 = 1;
  }
  while( true ) {
    pvVar3 = (void *)(*(code *)PTR_malloc_004c5b38)(param_1);
    if (pvVar3 != (void *)0x0) {
      return pvVar3;
    }
    pcVar4 = (code *)std::get_new_handler();
    if (pcVar4 == (code *)0x0) break;
    (*pcVar4)();
  }
  puVar5 = (undefined4 *)__cxa_allocate_exception(4);
  puVar2 = PTR_PTR_004c50b8;
  puVar1 = PTR__bad_alloc_004c50b4;
                    /* WARNING: Subroutine does not return */
  *puVar5 = PTR_vtable_004c50b0 + 8;
  __cxa_throw(puVar5,puVar2,puVar1);
}


lui gp,0x1a
addiu gp,gp,-0x5830
addu gp,gp,t9
addiu sp,sp,-0x20
sw gp,0x10(sp)
sw s0,0x18(sp)
or s0,a0,zero
bne a0,zero,0x0032ea98
_sw ra,0x1c(sp)
li s0,0x1
lw t9,-0x3708(gp)
jalr t9
_or a0,s0,zero
beq v0,zero,0x0032eabc
_lw gp,0x10(sp)
lw ra,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
lw t9,-0x4194(gp)
bal 0x0032eb54
_nop
beq v0,zero,0x0032eae4
_lw gp,0x10(sp)
or t9,v0,zero
jalr t9
_nop
b 0x0032ea98
_lw gp,0x10(sp)
lw t9,-0x66dc(gp)
bal 0x00330cd4
_li a0,0x4
lw gp,0x10(sp)
or a0,v0,zero
lw v1,-0x4190(gp)
lw a2,-0x418c(gp)
lw a1,-0x4188(gp)
addiu v1,v1,0x8
lw t9,-0x66d0(gp)
bal 0x0032f044
_sw v1,0x0(v0)
(translation_unit "/* operator new(unsigned int) */\n\nvoid * operator_new(uint param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  void *pvVar3;\n  code *pcVar4;\n  undefined4 *puVar5;\n  \n  if (param_1 == 0) {\n    param_1 = 1;\n  }\n  while( true ) {\n    pvVar3 = (void *)(*(code *)PTR_malloc_004c5b38)(param_1);\n    if (pvVar3 != (void *)0x0) {\n      return pvVar3;\n    }\n    pcVar4 = (code *)std::get_new_handler();\n    if (pcVar4 == (code *)0x0) break;\n    (*pcVar4)();\n  }\n  puVar5 = (undefined4 *)__cxa_allocate_exception(4);\n  puVar2 = PTR_PTR_004c50b8;\n  puVar1 = PTR__bad_alloc_004c50b4;\n                    /* WARNING: Subroutine does not return */\n  *puVar5 = PTR_vtable_004c50b0 + 8;\n  __cxa_throw(puVar5,puVar2,puVar1);\n}\n\n" comment (function_definition "void * operator_new(uint param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  void *pvVar3;\n  code *pcVar4;\n  undefined4 *puVar5;\n  \n  if (param_1 == 0) {\n    param_1 = 1;\n  }\n  while( true ) {\n    pvVar3 = (void *)(*(code *)PTR_malloc_004c5b38)(param_1);\n    if (pvVar3 != (void *)0x0) {\n      return pvVar3;\n    }\n    pcVar4 = (code *)std::get_new_handler();\n    if (pcVar4 == (code *)0x0) break;\n    (*pcVar4)();\n  }\n  puVar5 = (undefined4 *)__cxa_allocate_exception(4);\n  puVar2 = PTR_PTR_004c50b8;\n  puVar1 = PTR__bad_alloc_004c50b4;\n                    /* WARNING: Subroutine does not return */\n  *puVar5 = PTR_vtable_004c50b0 + 8;\n  __cxa_throw(puVar5,puVar2,puVar1);\n}" primitive_type (pointer_declarator "* operator_new(uint param_1)" * (function_declarator "operator_new(uint param_1)" identifier (parameter_list "(uint param_1)" ( (parameter_declaration "uint param_1" type_identifier identifier) )))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  void *pvVar3;\n  code *pcVar4;\n  undefined4 *puVar5;\n  \n  if (param_1 == 0) {\n    param_1 = 1;\n  }\n  while( true ) {\n    pvVar3 = (void *)(*(code *)PTR_malloc_004c5b38)(param_1);\n    if (pvVar3 != (void *)0x0) {\n      return pvVar3;\n    }\n    pcVar4 = (code *)std::get_new_handler();\n    if (pcVar4 == (code *)0x0) break;\n    (*pcVar4)();\n  }\n  puVar5 = (undefined4 *)__cxa_allocate_exception(4);\n  puVar2 = PTR_PTR_004c50b8;\n  puVar1 = PTR__bad_alloc_004c50b4;\n                    /* WARNING: Subroutine does not return */\n  *puVar5 = PTR_vtable_004c50b0 + 8;\n  __cxa_throw(puVar5,puVar2,puVar1);\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "void *pvVar3;" primitive_type (pointer_declarator "*pvVar3" * identifier) ;) (declaration "code *pcVar4;" type_identifier (pointer_declarator "*pcVar4" * identifier) ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (if_statement "if (param_1 == 0) {\n    param_1 = 1;\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    param_1 = 1;\n  }" { (expression_statement "param_1 = 1;" (assignment_expression "param_1 = 1" identifier = number_literal) ;) })) (while_statement "while( true ) {\n    pvVar3 = (void *)(*(code *)PTR_malloc_004c5b38)(param_1);\n    if (pvVar3 != (void *)0x0) {\n      return pvVar3;\n    }\n    pcVar4 = (code *)std::get_new_handler();\n    if (pcVar4 == (code *)0x0) break;\n    (*pcVar4)();\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    pvVar3 = (void *)(*(code *)PTR_malloc_004c5b38)(param_1);\n    if (pvVar3 != (void *)0x0) {\n      return pvVar3;\n    }\n    pcVar4 = (code *)std::get_new_handler();\n    if (pcVar4 == (code *)0x0) break;\n    (*pcVar4)();\n  }" { (expression_statement "pvVar3 = (void *)(*(code *)PTR_malloc_004c5b38)(param_1);" (assignment_expression "pvVar3 = (void *)(*(code *)PTR_malloc_004c5b38)(param_1)" identifier = (cast_expression "(void *)(*(code *)PTR_malloc_004c5b38)(param_1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_malloc_004c5b38)(param_1)" (parenthesized_expression "(*(code *)PTR_malloc_004c5b38)" ( (pointer_expression "*(code *)PTR_malloc_004c5b38" * (cast_expression "(code *)PTR_malloc_004c5b38" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier ))))) ;) (if_statement "if (pvVar3 != (void *)0x0) {\n      return pvVar3;\n    }" if (parenthesized_expression "(pvVar3 != (void *)0x0)" ( (binary_expression "pvVar3 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return pvVar3;\n    }" { (return_statement "return pvVar3;" return identifier ;) })) (ERROR "pcVar4 = (code *)std::" (assignment_expression "pcVar4 = (code *)std" identifier = (cast_expression "(code *)std" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) : :) (expression_statement "get_new_handler();" (call_expression "get_new_handler()" identifier (argument_list "()" ( ))) ;) (if_statement "if (pcVar4 == (code *)0x0) break;" if (parenthesized_expression "(pcVar4 == (code *)0x0)" ( (binary_expression "pcVar4 == (code *)0x0" identifier == (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "(*pcVar4)();" (call_expression "(*pcVar4)()" (parenthesized_expression "(*pcVar4)" ( (pointer_expression "*pcVar4" * identifier) )) (argument_list "()" ( ))) ;) })) (expression_statement "puVar5 = (undefined4 *)__cxa_allocate_exception(4);" (assignment_expression "puVar5 = (undefined4 *)__cxa_allocate_exception(4)" identifier = (cast_expression "(undefined4 *)__cxa_allocate_exception(4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "__cxa_allocate_exception(4)" identifier (argument_list "(4)" ( number_literal ))))) ;) (expression_statement "puVar2 = PTR_PTR_004c50b8;" (assignment_expression "puVar2 = PTR_PTR_004c50b8" identifier = identifier) ;) (expression_statement "puVar1 = PTR__bad_alloc_004c50b4;" (assignment_expression "puVar1 = PTR__bad_alloc_004c50b4" identifier = identifier) ;) comment (expression_statement "*puVar5 = PTR_vtable_004c50b0 + 8;" (assignment_expression "*puVar5 = PTR_vtable_004c50b0 + 8" (pointer_expression "*puVar5" * identifier) = (binary_expression "PTR_vtable_004c50b0 + 8" identifier + number_literal)) ;) (expression_statement "__cxa_throw(puVar5,puVar2,puVar1);" (call_expression "__cxa_throw(puVar5,puVar2,puVar1)" identifier (argument_list "(puVar5,puVar2,puVar1)" ( identifier , identifier , identifier ))) ;) })))
(translation_unit "/* operator new(unsigned int) */\n\nvoid * operator_new(uint param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  void *pvVar3;\n  code *pcVar4;\n  undefined4 *puVar5;\n  \n  if (param_1 == 0) {\n    param_1 = 1;\n  }\n  while( true ) {\n    pvVar3 = (void *)(*(code *)PTR_malloc_004c5b38)(param_1);\n    if (pvVar3 != (void *)0x0) {\n      return pvVar3;\n    }\n    pcVar4 = (code *)std::get_new_handler();\n    if (pcVar4 == (code *)0x0) break;\n    (*pcVar4)();\n  }\n  puVar5 = (undefined4 *)__cxa_allocate_exception(4);\n  puVar2 = PTR_PTR_004c50b8;\n  puVar1 = PTR__bad_alloc_004c50b4;\n                    /* WARNING: Subroutine does not return */\n  *puVar5 = PTR_vtable_004c50b0 + 8;\n  __cxa_throw(puVar5,puVar2,puVar1);\n}\n\n" comment (function_definition "void * operator_new(uint param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  void *pvVar3;\n  code *pcVar4;\n  undefined4 *puVar5;\n  \n  if (param_1 == 0) {\n    param_1 = 1;\n  }\n  while( true ) {\n    pvVar3 = (void *)(*(code *)PTR_malloc_004c5b38)(param_1);\n    if (pvVar3 != (void *)0x0) {\n      return pvVar3;\n    }\n    pcVar4 = (code *)std::get_new_handler();\n    if (pcVar4 == (code *)0x0) break;\n    (*pcVar4)();\n  }\n  puVar5 = (undefined4 *)__cxa_allocate_exception(4);\n  puVar2 = PTR_PTR_004c50b8;\n  puVar1 = PTR__bad_alloc_004c50b4;\n                    /* WARNING: Subroutine does not return */\n  *puVar5 = PTR_vtable_004c50b0 + 8;\n  __cxa_throw(puVar5,puVar2,puVar1);\n}" primitive_type (pointer_declarator "* operator_new(uint param_1)" * (function_declarator "operator_new(uint param_1)" identifier (parameter_list "(uint param_1)" ( (parameter_declaration "uint param_1" type_identifier identifier) )))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  void *pvVar3;\n  code *pcVar4;\n  undefined4 *puVar5;\n  \n  if (param_1 == 0) {\n    param_1 = 1;\n  }\n  while( true ) {\n    pvVar3 = (void *)(*(code *)PTR_malloc_004c5b38)(param_1);\n    if (pvVar3 != (void *)0x0) {\n      return pvVar3;\n    }\n    pcVar4 = (code *)std::get_new_handler();\n    if (pcVar4 == (code *)0x0) break;\n    (*pcVar4)();\n  }\n  puVar5 = (undefined4 *)__cxa_allocate_exception(4);\n  puVar2 = PTR_PTR_004c50b8;\n  puVar1 = PTR__bad_alloc_004c50b4;\n                    /* WARNING: Subroutine does not return */\n  *puVar5 = PTR_vtable_004c50b0 + 8;\n  __cxa_throw(puVar5,puVar2,puVar1);\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "void *pvVar3;" primitive_type (pointer_declarator "*pvVar3" * identifier) ;) (declaration "code *pcVar4;" type_identifier (pointer_declarator "*pcVar4" * identifier) ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (if_statement "if (param_1 == 0) {\n    param_1 = 1;\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    param_1 = 1;\n  }" { (expression_statement "param_1 = 1;" (assignment_expression "param_1 = 1" identifier = number_literal) ;) })) (while_statement "while( true ) {\n    pvVar3 = (void *)(*(code *)PTR_malloc_004c5b38)(param_1);\n    if (pvVar3 != (void *)0x0) {\n      return pvVar3;\n    }\n    pcVar4 = (code *)std::get_new_handler();\n    if (pcVar4 == (code *)0x0) break;\n    (*pcVar4)();\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    pvVar3 = (void *)(*(code *)PTR_malloc_004c5b38)(param_1);\n    if (pvVar3 != (void *)0x0) {\n      return pvVar3;\n    }\n    pcVar4 = (code *)std::get_new_handler();\n    if (pcVar4 == (code *)0x0) break;\n    (*pcVar4)();\n  }" { (expression_statement "pvVar3 = (void *)(*(code *)PTR_malloc_004c5b38)(param_1);" (assignment_expression "pvVar3 = (void *)(*(code *)PTR_malloc_004c5b38)(param_1)" identifier = (cast_expression "(void *)(*(code *)PTR_malloc_004c5b38)(param_1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_malloc_004c5b38)(param_1)" (parenthesized_expression "(*(code *)PTR_malloc_004c5b38)" ( (pointer_expression "*(code *)PTR_malloc_004c5b38" * (cast_expression "(code *)PTR_malloc_004c5b38" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier ))))) ;) (if_statement "if (pvVar3 != (void *)0x0) {\n      return pvVar3;\n    }" if (parenthesized_expression "(pvVar3 != (void *)0x0)" ( (binary_expression "pvVar3 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return pvVar3;\n    }" { (return_statement "return pvVar3;" return identifier ;) })) (ERROR "pcVar4 = (code *)std::" (assignment_expression "pcVar4 = (code *)std" identifier = (cast_expression "(code *)std" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) : :) (expression_statement "get_new_handler();" (call_expression "get_new_handler()" identifier (argument_list "()" ( ))) ;) (if_statement "if (pcVar4 == (code *)0x0) break;" if (parenthesized_expression "(pcVar4 == (code *)0x0)" ( (binary_expression "pcVar4 == (code *)0x0" identifier == (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "(*pcVar4)();" (call_expression "(*pcVar4)()" (parenthesized_expression "(*pcVar4)" ( (pointer_expression "*pcVar4" * identifier) )) (argument_list "()" ( ))) ;) })) (expression_statement "puVar5 = (undefined4 *)__cxa_allocate_exception(4);" (assignment_expression "puVar5 = (undefined4 *)__cxa_allocate_exception(4)" identifier = (cast_expression "(undefined4 *)__cxa_allocate_exception(4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "__cxa_allocate_exception(4)" identifier (argument_list "(4)" ( number_literal ))))) ;) (expression_statement "puVar2 = PTR_PTR_004c50b8;" (assignment_expression "puVar2 = PTR_PTR_004c50b8" identifier = identifier) ;) (expression_statement "puVar1 = PTR__bad_alloc_004c50b4;" (assignment_expression "puVar1 = PTR__bad_alloc_004c50b4" identifier = identifier) ;) comment (expression_statement "*puVar5 = PTR_vtable_004c50b0 + 8;" (assignment_expression "*puVar5 = PTR_vtable_004c50b0 + 8" (pointer_expression "*puVar5" * identifier) = (binary_expression "PTR_vtable_004c50b0 + 8" identifier + number_literal)) ;) (expression_statement "__cxa_throw(puVar5,puVar2,puVar1);" (call_expression "__cxa_throw(puVar5,puVar2,puVar1)" identifier (argument_list "(puVar5,puVar2,puVar1)" ( identifier , identifier , identifier ))) ;) })))
(translation_unit "void * operator_new(uint param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  void *pvVar3;\n  code *pcVar4;\n  undefined4 *puVar5;\n  \n  if (param_1 == 0) {\n    param_1 = 1;\n  }\n  while( true ) {\n    pvVar3 = (void *)(*(code *)PTR_malloc_004c5b38)(param_1);\n    if (pvVar3 != (void *)0x0) {\n      return pvVar3;\n    }\n    pcVar4 = (code *)std::get_new_handler();\n    if (pcVar4 == (code *)0x0) break;\n    (*pcVar4)();\n  }\n  puVar5 = (undefined4 *)__cxa_allocate_exception(4);\n  puVar2 = PTR_PTR_004c50b8;\n  puVar1 = PTR__bad_alloc_004c50b4;\n                    \n  *puVar5 = PTR_vtable_004c50b0 + 8;\n  __cxa_throw(puVar5,puVar2,puVar1);\n}\n\n" (function_definition "void * operator_new(uint param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  void *pvVar3;\n  code *pcVar4;\n  undefined4 *puVar5;\n  \n  if (param_1 == 0) {\n    param_1 = 1;\n  }\n  while( true ) {\n    pvVar3 = (void *)(*(code *)PTR_malloc_004c5b38)(param_1);\n    if (pvVar3 != (void *)0x0) {\n      return pvVar3;\n    }\n    pcVar4 = (code *)std::get_new_handler();\n    if (pcVar4 == (code *)0x0) break;\n    (*pcVar4)();\n  }\n  puVar5 = (undefined4 *)__cxa_allocate_exception(4);\n  puVar2 = PTR_PTR_004c50b8;\n  puVar1 = PTR__bad_alloc_004c50b4;\n                    \n  *puVar5 = PTR_vtable_004c50b0 + 8;\n  __cxa_throw(puVar5,puVar2,puVar1);\n}" primitive_type (pointer_declarator "* operator_new(uint param_1)" * (function_declarator "operator_new(uint param_1)" identifier (parameter_list "(uint param_1)" ( (parameter_declaration "uint param_1" type_identifier identifier) )))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  void *pvVar3;\n  code *pcVar4;\n  undefined4 *puVar5;\n  \n  if (param_1 == 0) {\n    param_1 = 1;\n  }\n  while( true ) {\n    pvVar3 = (void *)(*(code *)PTR_malloc_004c5b38)(param_1);\n    if (pvVar3 != (void *)0x0) {\n      return pvVar3;\n    }\n    pcVar4 = (code *)std::get_new_handler();\n    if (pcVar4 == (code *)0x0) break;\n    (*pcVar4)();\n  }\n  puVar5 = (undefined4 *)__cxa_allocate_exception(4);\n  puVar2 = PTR_PTR_004c50b8;\n  puVar1 = PTR__bad_alloc_004c50b4;\n                    \n  *puVar5 = PTR_vtable_004c50b0 + 8;\n  __cxa_throw(puVar5,puVar2,puVar1);\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "void *pvVar3;" primitive_type (pointer_declarator "*pvVar3" * identifier) ;) (declaration "code *pcVar4;" type_identifier (pointer_declarator "*pcVar4" * identifier) ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (if_statement "if (param_1 == 0) {\n    param_1 = 1;\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    param_1 = 1;\n  }" { (expression_statement "param_1 = 1;" (assignment_expression "param_1 = 1" identifier = number_literal) ;) })) (while_statement "while( true ) {\n    pvVar3 = (void *)(*(code *)PTR_malloc_004c5b38)(param_1);\n    if (pvVar3 != (void *)0x0) {\n      return pvVar3;\n    }\n    pcVar4 = (code *)std::get_new_handler();\n    if (pcVar4 == (code *)0x0) break;\n    (*pcVar4)();\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    pvVar3 = (void *)(*(code *)PTR_malloc_004c5b38)(param_1);\n    if (pvVar3 != (void *)0x0) {\n      return pvVar3;\n    }\n    pcVar4 = (code *)std::get_new_handler();\n    if (pcVar4 == (code *)0x0) break;\n    (*pcVar4)();\n  }" { (expression_statement "pvVar3 = (void *)(*(code *)PTR_malloc_004c5b38)(param_1);" (assignment_expression "pvVar3 = (void *)(*(code *)PTR_malloc_004c5b38)(param_1)" identifier = (cast_expression "(void *)(*(code *)PTR_malloc_004c5b38)(param_1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_malloc_004c5b38)(param_1)" (parenthesized_expression "(*(code *)PTR_malloc_004c5b38)" ( (pointer_expression "*(code *)PTR_malloc_004c5b38" * (cast_expression "(code *)PTR_malloc_004c5b38" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier ))))) ;) (if_statement "if (pvVar3 != (void *)0x0) {\n      return pvVar3;\n    }" if (parenthesized_expression "(pvVar3 != (void *)0x0)" ( (binary_expression "pvVar3 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return pvVar3;\n    }" { (return_statement "return pvVar3;" return identifier ;) })) (ERROR "pcVar4 = (code *)std::" (assignment_expression "pcVar4 = (code *)std" identifier = (cast_expression "(code *)std" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) : :) (expression_statement "get_new_handler();" (call_expression "get_new_handler()" identifier (argument_list "()" ( ))) ;) (if_statement "if (pcVar4 == (code *)0x0) break;" if (parenthesized_expression "(pcVar4 == (code *)0x0)" ( (binary_expression "pcVar4 == (code *)0x0" identifier == (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "(*pcVar4)();" (call_expression "(*pcVar4)()" (parenthesized_expression "(*pcVar4)" ( (pointer_expression "*pcVar4" * identifier) )) (argument_list "()" ( ))) ;) })) (expression_statement "puVar5 = (undefined4 *)__cxa_allocate_exception(4);" (assignment_expression "puVar5 = (undefined4 *)__cxa_allocate_exception(4)" identifier = (cast_expression "(undefined4 *)__cxa_allocate_exception(4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "__cxa_allocate_exception(4)" identifier (argument_list "(4)" ( number_literal ))))) ;) (expression_statement "puVar2 = PTR_PTR_004c50b8;" (assignment_expression "puVar2 = PTR_PTR_004c50b8" identifier = identifier) ;) (expression_statement "puVar1 = PTR__bad_alloc_004c50b4;" (assignment_expression "puVar1 = PTR__bad_alloc_004c50b4" identifier = identifier) ;) (expression_statement "*puVar5 = PTR_vtable_004c50b0 + 8;" (assignment_expression "*puVar5 = PTR_vtable_004c50b0 + 8" (pointer_expression "*puVar5" * identifier) = (binary_expression "PTR_vtable_004c50b0 + 8" identifier + number_literal)) ;) (expression_statement "__cxa_throw(puVar5,puVar2,puVar1);" (call_expression "__cxa_throw(puVar5,puVar2,puVar1)" identifier (argument_list "(puVar5,puVar2,puVar1)" ( identifier , identifier , identifier ))) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return IDENT ;) })) (ERROR (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) : :) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (break_statement break ;)) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) })))
(function_definition "void * operator_new(uint param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  void *pvVar3;\n  code *pcVar4;\n  undefined4 *puVar5;\n  \n  if (param_1 == 0) {\n    param_1 = 1;\n  }\n  while( true ) {\n    pvVar3 = (void *)(*(code *)PTR_malloc_004c5b38)(param_1);\n    if (pvVar3 != (void *)0x0) {\n      return pvVar3;\n    }\n    pcVar4 = (code *)std::get_new_handler();\n    if (pcVar4 == (code *)0x0) break;\n    (*pcVar4)();\n  }\n  puVar5 = (undefined4 *)__cxa_allocate_exception(4);\n  puVar2 = PTR_PTR_004c50b8;\n  puVar1 = PTR__bad_alloc_004c50b4;\n                    \n  *puVar5 = PTR_vtable_004c50b0 + 8;\n  __cxa_throw(puVar5,puVar2,puVar1);\n}" (primitive_type "void") (pointer_declarator "* operator_new(uint param_1)" (* "*") (function_declarator "operator_new(uint param_1)" (identifier "operator_new") (parameter_list "(uint param_1)" (( "(") (parameter_declaration "uint param_1" (type_identifier "uint") (identifier "param_1")) () ")")))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  void *pvVar3;\n  code *pcVar4;\n  undefined4 *puVar5;\n  \n  if (param_1 == 0) {\n    param_1 = 1;\n  }\n  while( true ) {\n    pvVar3 = (void *)(*(code *)PTR_malloc_004c5b38)(param_1);\n    if (pvVar3 != (void *)0x0) {\n      return pvVar3;\n    }\n    pcVar4 = (code *)std::get_new_handler();\n    if (pcVar4 == (code *)0x0) break;\n    (*pcVar4)();\n  }\n  puVar5 = (undefined4 *)__cxa_allocate_exception(4);\n  puVar2 = PTR_PTR_004c50b8;\n  puVar1 = PTR__bad_alloc_004c50b4;\n                    \n  *puVar5 = PTR_vtable_004c50b0 + 8;\n  __cxa_throw(puVar5,puVar2,puVar1);\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "void *pvVar3;" (primitive_type "void") (pointer_declarator "*pvVar3" (* "*") (identifier "pvVar3")) (; ";")) (declaration "code *pcVar4;" (type_identifier "code") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "undefined4 *puVar5;" (type_identifier "undefined4") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (if_statement "if (param_1 == 0) {\n    param_1 = 1;\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    param_1 = 1;\n  }" ({ "{") (expression_statement "param_1 = 1;" (assignment_expression "param_1 = 1" (identifier "param_1") (= "=") (number_literal "1")) (; ";")) (} "}"))) (while_statement "while( true ) {\n    pvVar3 = (void *)(*(code *)PTR_malloc_004c5b38)(param_1);\n    if (pvVar3 != (void *)0x0) {\n      return pvVar3;\n    }\n    pcVar4 = (code *)std::get_new_handler();\n    if (pcVar4 == (code *)0x0) break;\n    (*pcVar4)();\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    pvVar3 = (void *)(*(code *)PTR_malloc_004c5b38)(param_1);\n    if (pvVar3 != (void *)0x0) {\n      return pvVar3;\n    }\n    pcVar4 = (code *)std::get_new_handler();\n    if (pcVar4 == (code *)0x0) break;\n    (*pcVar4)();\n  }" ({ "{") (expression_statement "pvVar3 = (void *)(*(code *)PTR_malloc_004c5b38)(param_1);" (assignment_expression "pvVar3 = (void *)(*(code *)PTR_malloc_004c5b38)(param_1)" (identifier "pvVar3") (= "=") (cast_expression "(void *)(*(code *)PTR_malloc_004c5b38)(param_1)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_malloc_004c5b38)(param_1)" (parenthesized_expression "(*(code *)PTR_malloc_004c5b38)" (( "(") (pointer_expression "*(code *)PTR_malloc_004c5b38" (* "*") (cast_expression "(code *)PTR_malloc_004c5b38" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_malloc_004c5b38"))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))))) (; ";")) (if_statement "if (pvVar3 != (void *)0x0) {\n      return pvVar3;\n    }" (if "if") (parenthesized_expression "(pvVar3 != (void *)0x0)" (( "(") (binary_expression "pvVar3 != (void *)0x0" (identifier "pvVar3") (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      return pvVar3;\n    }" ({ "{") (return_statement "return pvVar3;" (return "return") (identifier "pvVar3") (; ";")) (} "}"))) (ERROR "pcVar4 = (code *)std::" (assignment_expression "pcVar4 = (code *)std" (identifier "pcVar4") (= "=") (cast_expression "(code *)std" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "std"))) (: ":") (: ":")) (expression_statement "get_new_handler();" (call_expression "get_new_handler()" (identifier "get_new_handler") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (pcVar4 == (code *)0x0) break;" (if "if") (parenthesized_expression "(pcVar4 == (code *)0x0)" (( "(") (binary_expression "pcVar4 == (code *)0x0" (identifier "pcVar4") (== "==") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "(*pcVar4)();" (call_expression "(*pcVar4)()" (parenthesized_expression "(*pcVar4)" (( "(") (pointer_expression "*pcVar4" (* "*") (identifier "pcVar4")) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "puVar5 = (undefined4 *)__cxa_allocate_exception(4);" (assignment_expression "puVar5 = (undefined4 *)__cxa_allocate_exception(4)" (identifier "puVar5") (= "=") (cast_expression "(undefined4 *)__cxa_allocate_exception(4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "__cxa_allocate_exception(4)" (identifier "__cxa_allocate_exception") (argument_list "(4)" (( "(") (number_literal "4") () ")"))))) (; ";")) (expression_statement "puVar2 = PTR_PTR_004c50b8;" (assignment_expression "puVar2 = PTR_PTR_004c50b8" (identifier "puVar2") (= "=") (identifier "PTR_PTR_004c50b8")) (; ";")) (expression_statement "puVar1 = PTR__bad_alloc_004c50b4;" (assignment_expression "puVar1 = PTR__bad_alloc_004c50b4" (identifier "puVar1") (= "=") (identifier "PTR__bad_alloc_004c50b4")) (; ";")) (expression_statement "*puVar5 = PTR_vtable_004c50b0 + 8;" (assignment_expression "*puVar5 = PTR_vtable_004c50b0 + 8" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (binary_expression "PTR_vtable_004c50b0 + 8" (identifier "PTR_vtable_004c50b0") (+ "+") (number_literal "8"))) (; ";")) (expression_statement "__cxa_throw(puVar5,puVar2,puVar1);" (call_expression "__cxa_throw(puVar5,puVar2,puVar1)" (identifier "__cxa_throw") (argument_list "(puVar5,puVar2,puVar1)" (( "(") (identifier "puVar5") (, ",") (identifier "puVar2") (, ",") (identifier "puVar1") () ")"))) (; ";")) (} "}")))

/* operator new(unsigned int) */

void * function_1(type_1 var_1)

{
  type_2 *puVar1;
  type_2 *puVar2;
  void *var_2;
  type_3 *var_4;
  type_4 *puVar5;
  
  if (var_1 == 0) {
    var_1 = 1;
  }
  while( true ) {
    var_2 = (void *)(*(type_3 *)PTR_malloc_004c5b38)(var_1);
    if (var_2 != (void *)0x0) {
      return var_2;
    }
    var_4 = (type_3 *)std::var_3();
    if (var_4 == (type_3 *)0x0) break;
    (*var_4)();
  }
  puVar5 = (type_4 *)var_5(4);
  puVar2 = PTR_PTR_004c50b8;
  puVar1 = PTR__bad_alloc_004c50b4;
                    /* WARNING: Subroutine does not return */
  *puVar5 = var_6 + 8;
  var_7(puVar5,puVar2,puVar1);
}


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

/* operator new(unsigned int) */

void * operator_new(uint param_1)

{
  undefined *puVar1;
  undefined *puVar2;
  void *pvVar3;
  code *pcVar4;
  undefined4 *puVar5;
  
  if (param_1 == 0) {
    param_1 = 1;
  }
  while( true ) {
    pvVar3 = (void *)(*(code *)PTR_malloc_004c5b38)(param_1);
    if (pvVar3 != (void *)0x0) {
      return pvVar3;
    }
    pcVar4 = (code *)std::get_new_handler();
    if (pcVar4 == (code *)0x0) break;
    (*pcVar4)();
  }
  puVar5 = (undefined4 *)__cxa_allocate_exception(4);
  puVar2 = PTR_PTR_004c50b8;
  puVar1 = PTR__bad_alloc_004c50b4;
                    /* WARNING: Subroutine does not return */
  *puVar5 = PTR_vtable_004c50b0 + 8;
  __cxa_throw(puVar5,puVar2,puVar1);
}

