
/* operator new(unsigned long) */

void * operator_new(ulong param_1)

{
  void *pvVar1;
  code *pcVar2;
  undefined8 *puVar3;
  
  if (param_1 == 0) {
    param_1 = 1;
  }
  while( true ) {
    pvVar1 = malloc(param_1);
    if (pvVar1 != (void *)0x0) {
      return pvVar1;
    }
    pcVar2 = (code *)std::get_new_handler();
    if (pcVar2 == (code *)0x0) break;
    (*pcVar2)();
  }
  puVar3 = (undefined8 *)__cxa_allocate_exception(8);
  *puVar3 = &PTR__bad_alloc_003b8618;
                    /* WARNING: Subroutine does not return */
  __cxa_throw(puVar3,&std::bad_alloc::typeinfo,std::bad_alloc::~bad_alloc);
}



void FUN_00275550(size_t param_1)

{
  void *pvVar1;
  code *pcVar2;
  undefined8 *puVar3;
  
  if (param_1 == 0) {
    param_1 = 1;
  }
  while( true ) {
    pvVar1 = malloc(param_1);
    if (pvVar1 != (void *)0x0) {
      return;
    }
    pcVar2 = (code *)FUN_002755c0();
    if (pcVar2 == (code *)0x0) break;
    (*pcVar2)();
  }
  puVar3 = (undefined8 *)FUN_00276bb0(8);
  *puVar3 = &PTR_FUN_003b8618;
                    /* WARNING: Subroutine does not return */
  FUN_002758d0(puVar3,&PTR_PTR_FUN_003b85f0,FUN_00277070);
}


PUSH RBX
TEST RDI,RDI
MOV RBX,RDI
MOV EAX,0x1
CMOVZ RBX,RAX
MOV RDI,RBX
CALL 0x0013e300
TEST RAX,RAX
JZ 0x00275570
POP RBX
RET
CALL 0x002755c0
TEST RAX,RAX
JZ 0x0027557e
CALL RAX
JMP 0x00275560
MOV EDI,0x8
CALL 0x00276bb0
LEA RDX,[0x3b8608]
LEA RSI,[0x3b85f0]
MOV RDI,RAX
ADD RDX,0x10
MOV qword ptr [RAX],RDX
LEA RDX,[0x277070]
CALL 0x002758d0
(translation_unit "void FUN_00275550(size_t param_1)\n\n{\n  void *pvVar1;\n  code *pcVar2;\n  undefined8 *puVar3;\n  \n  if (param_1 == 0) {\n    param_1 = 1;\n  }\n  while( true ) {\n    pvVar1 = malloc(param_1);\n    if (pvVar1 != (void *)0x0) {\n      return;\n    }\n    pcVar2 = (code *)FUN_002755c0();\n    if (pcVar2 == (code *)0x0) break;\n    (*pcVar2)();\n  }\n  puVar3 = (undefined8 *)FUN_00276bb0(8);\n  *puVar3 = &PTR_FUN_003b8618;\n                    /* WARNING: Subroutine does not return */\n  FUN_002758d0(puVar3,&PTR_PTR_FUN_003b85f0,FUN_00277070);\n}\n\n" (function_definition "void FUN_00275550(size_t param_1)\n\n{\n  void *pvVar1;\n  code *pcVar2;\n  undefined8 *puVar3;\n  \n  if (param_1 == 0) {\n    param_1 = 1;\n  }\n  while( true ) {\n    pvVar1 = malloc(param_1);\n    if (pvVar1 != (void *)0x0) {\n      return;\n    }\n    pcVar2 = (code *)FUN_002755c0();\n    if (pcVar2 == (code *)0x0) break;\n    (*pcVar2)();\n  }\n  puVar3 = (undefined8 *)FUN_00276bb0(8);\n  *puVar3 = &PTR_FUN_003b8618;\n                    /* WARNING: Subroutine does not return */\n  FUN_002758d0(puVar3,&PTR_PTR_FUN_003b85f0,FUN_00277070);\n}" primitive_type (function_declarator "FUN_00275550(size_t param_1)" identifier (parameter_list "(size_t param_1)" ( (parameter_declaration "size_t param_1" primitive_type identifier) ))) (compound_statement "{\n  void *pvVar1;\n  code *pcVar2;\n  undefined8 *puVar3;\n  \n  if (param_1 == 0) {\n    param_1 = 1;\n  }\n  while( true ) {\n    pvVar1 = malloc(param_1);\n    if (pvVar1 != (void *)0x0) {\n      return;\n    }\n    pcVar2 = (code *)FUN_002755c0();\n    if (pcVar2 == (code *)0x0) break;\n    (*pcVar2)();\n  }\n  puVar3 = (undefined8 *)FUN_00276bb0(8);\n  *puVar3 = &PTR_FUN_003b8618;\n                    /* WARNING: Subroutine does not return */\n  FUN_002758d0(puVar3,&PTR_PTR_FUN_003b85f0,FUN_00277070);\n}" { (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (declaration "code *pcVar2;" type_identifier (pointer_declarator "*pcVar2" * identifier) ;) (declaration "undefined8 *puVar3;" type_identifier (pointer_declarator "*puVar3" * 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    pvVar1 = malloc(param_1);\n    if (pvVar1 != (void *)0x0) {\n      return;\n    }\n    pcVar2 = (code *)FUN_002755c0();\n    if (pcVar2 == (code *)0x0) break;\n    (*pcVar2)();\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    pvVar1 = malloc(param_1);\n    if (pvVar1 != (void *)0x0) {\n      return;\n    }\n    pcVar2 = (code *)FUN_002755c0();\n    if (pcVar2 == (code *)0x0) break;\n    (*pcVar2)();\n  }" { (expression_statement "pvVar1 = malloc(param_1);" (assignment_expression "pvVar1 = malloc(param_1)" identifier = (call_expression "malloc(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (pvVar1 != (void *)0x0) {\n      return;\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;\n    }" { (return_statement "return;" return ;) })) (expression_statement "pcVar2 = (code *)FUN_002755c0();" (assignment_expression "pcVar2 = (code *)FUN_002755c0()" identifier = (cast_expression "(code *)FUN_002755c0()" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_002755c0()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (pcVar2 == (code *)0x0) break;" if (parenthesized_expression "(pcVar2 == (code *)0x0)" ( (binary_expression "pcVar2 == (code *)0x0" identifier == (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "(*pcVar2)();" (call_expression "(*pcVar2)()" (parenthesized_expression "(*pcVar2)" ( (pointer_expression "*pcVar2" * identifier) )) (argument_list "()" ( ))) ;) })) (expression_statement "puVar3 = (undefined8 *)FUN_00276bb0(8);" (assignment_expression "puVar3 = (undefined8 *)FUN_00276bb0(8)" identifier = (cast_expression "(undefined8 *)FUN_00276bb0(8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00276bb0(8)" identifier (argument_list "(8)" ( number_literal ))))) ;) (expression_statement "*puVar3 = &PTR_FUN_003b8618;" (assignment_expression "*puVar3 = &PTR_FUN_003b8618" (pointer_expression "*puVar3" * identifier) = (pointer_expression "&PTR_FUN_003b8618" & identifier)) ;) comment (expression_statement "FUN_002758d0(puVar3,&PTR_PTR_FUN_003b85f0,FUN_00277070);" (call_expression "FUN_002758d0(puVar3,&PTR_PTR_FUN_003b85f0,FUN_00277070)" identifier (argument_list "(puVar3,&PTR_PTR_FUN_003b85f0,FUN_00277070)" ( identifier , (pointer_expression "&PTR_PTR_FUN_003b85f0" & identifier) , identifier ))) ;) })))
(translation_unit "/* operator new(unsigned long) */\n\nvoid * operator_new(ulong param_1)\n\n{\n  void *pvVar1;\n  code *pcVar2;\n  undefined8 *puVar3;\n  \n  if (param_1 == 0) {\n    param_1 = 1;\n  }\n  while( true ) {\n    pvVar1 = malloc(param_1);\n    if (pvVar1 != (void *)0x0) {\n      return pvVar1;\n    }\n    pcVar2 = (code *)std::get_new_handler();\n    if (pcVar2 == (code *)0x0) break;\n    (*pcVar2)();\n  }\n  puVar3 = (undefined8 *)__cxa_allocate_exception(8);\n  *puVar3 = &PTR__bad_alloc_003b8618;\n                    /* WARNING: Subroutine does not return */\n  __cxa_throw(puVar3,&std::bad_alloc::typeinfo,std::bad_alloc::~bad_alloc);\n}\n\n" comment (function_definition "void * operator_new(ulong param_1)\n\n{\n  void *pvVar1;\n  code *pcVar2;\n  undefined8 *puVar3;\n  \n  if (param_1 == 0) {\n    param_1 = 1;\n  }\n  while( true ) {\n    pvVar1 = malloc(param_1);\n    if (pvVar1 != (void *)0x0) {\n      return pvVar1;\n    }\n    pcVar2 = (code *)std::get_new_handler();\n    if (pcVar2 == (code *)0x0) break;\n    (*pcVar2)();\n  }\n  puVar3 = (undefined8 *)__cxa_allocate_exception(8);\n  *puVar3 = &PTR__bad_alloc_003b8618;\n                    /* WARNING: Subroutine does not return */\n  __cxa_throw(puVar3,&std::bad_alloc::typeinfo,std::bad_alloc::~bad_alloc);\n}" primitive_type (pointer_declarator "* operator_new(ulong param_1)" * (function_declarator "operator_new(ulong param_1)" identifier (parameter_list "(ulong param_1)" ( (parameter_declaration "ulong param_1" type_identifier identifier) )))) (compound_statement "{\n  void *pvVar1;\n  code *pcVar2;\n  undefined8 *puVar3;\n  \n  if (param_1 == 0) {\n    param_1 = 1;\n  }\n  while( true ) {\n    pvVar1 = malloc(param_1);\n    if (pvVar1 != (void *)0x0) {\n      return pvVar1;\n    }\n    pcVar2 = (code *)std::get_new_handler();\n    if (pcVar2 == (code *)0x0) break;\n    (*pcVar2)();\n  }\n  puVar3 = (undefined8 *)__cxa_allocate_exception(8);\n  *puVar3 = &PTR__bad_alloc_003b8618;\n                    /* WARNING: Subroutine does not return */\n  __cxa_throw(puVar3,&std::bad_alloc::typeinfo,std::bad_alloc::~bad_alloc);\n}" { (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (declaration "code *pcVar2;" type_identifier (pointer_declarator "*pcVar2" * identifier) ;) (declaration "undefined8 *puVar3;" type_identifier (pointer_declarator "*puVar3" * 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    pvVar1 = malloc(param_1);\n    if (pvVar1 != (void *)0x0) {\n      return pvVar1;\n    }\n    pcVar2 = (code *)std::get_new_handler();\n    if (pcVar2 == (code *)0x0) break;\n    (*pcVar2)();\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    pvVar1 = malloc(param_1);\n    if (pvVar1 != (void *)0x0) {\n      return pvVar1;\n    }\n    pcVar2 = (code *)std::get_new_handler();\n    if (pcVar2 == (code *)0x0) break;\n    (*pcVar2)();\n  }" { (expression_statement "pvVar1 = malloc(param_1);" (assignment_expression "pvVar1 = malloc(param_1)" identifier = (call_expression "malloc(param_1)" identifier (argument_list "(param_1)" ( 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 ;) })) (ERROR "pcVar2 = (code *)std::" (assignment_expression "pcVar2 = (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 (pcVar2 == (code *)0x0) break;" if (parenthesized_expression "(pcVar2 == (code *)0x0)" ( (binary_expression "pcVar2 == (code *)0x0" identifier == (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "(*pcVar2)();" (call_expression "(*pcVar2)()" (parenthesized_expression "(*pcVar2)" ( (pointer_expression "*pcVar2" * identifier) )) (argument_list "()" ( ))) ;) })) (expression_statement "puVar3 = (undefined8 *)__cxa_allocate_exception(8);" (assignment_expression "puVar3 = (undefined8 *)__cxa_allocate_exception(8)" identifier = (cast_expression "(undefined8 *)__cxa_allocate_exception(8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "__cxa_allocate_exception(8)" identifier (argument_list "(8)" ( number_literal ))))) ;) (expression_statement "*puVar3 = &PTR__bad_alloc_003b8618;" (assignment_expression "*puVar3 = &PTR__bad_alloc_003b8618" (pointer_expression "*puVar3" * identifier) = (pointer_expression "&PTR__bad_alloc_003b8618" & identifier)) ;) comment (expression_statement "__cxa_throw(puVar3,&std::bad_alloc::typeinfo,std::bad_alloc::~bad_alloc);" (call_expression "__cxa_throw(puVar3,&std::bad_alloc::typeinfo,std::bad_alloc::~bad_alloc)" identifier (argument_list "(puVar3,&std::bad_alloc::typeinfo,std::bad_alloc::~bad_alloc)" ( identifier , (ERROR "&std::bad_alloc::" (pointer_expression "&std" & identifier) : : identifier : :) identifier , (ERROR "std::bad_alloc::" identifier : : identifier : :) (unary_expression "~bad_alloc" ~ identifier) ))) ;) })))
(translation_unit "void FUN_00275550(size_t param_1)\n\n{\n  void *pvVar1;\n  code *pcVar2;\n  undefined8 *puVar3;\n  \n  if (param_1 == 0) {\n    param_1 = 1;\n  }\n  while( true ) {\n    pvVar1 = malloc(param_1);\n    if (pvVar1 != (void *)0x0) {\n      return;\n    }\n    pcVar2 = (code *)FUN_002755c0();\n    if (pcVar2 == (code *)0x0) break;\n    (*pcVar2)();\n  }\n  puVar3 = (undefined8 *)FUN_00276bb0(8);\n  *puVar3 = &PTR_FUN_003b8618;\n                    \n  FUN_002758d0(puVar3,&PTR_PTR_FUN_003b85f0,FUN_00277070);\n}\n\n" (function_definition "void FUN_00275550(size_t param_1)\n\n{\n  void *pvVar1;\n  code *pcVar2;\n  undefined8 *puVar3;\n  \n  if (param_1 == 0) {\n    param_1 = 1;\n  }\n  while( true ) {\n    pvVar1 = malloc(param_1);\n    if (pvVar1 != (void *)0x0) {\n      return;\n    }\n    pcVar2 = (code *)FUN_002755c0();\n    if (pcVar2 == (code *)0x0) break;\n    (*pcVar2)();\n  }\n  puVar3 = (undefined8 *)FUN_00276bb0(8);\n  *puVar3 = &PTR_FUN_003b8618;\n                    \n  FUN_002758d0(puVar3,&PTR_PTR_FUN_003b85f0,FUN_00277070);\n}" primitive_type (function_declarator "FUN_00275550(size_t param_1)" identifier (parameter_list "(size_t param_1)" ( (parameter_declaration "size_t param_1" primitive_type identifier) ))) (compound_statement "{\n  void *pvVar1;\n  code *pcVar2;\n  undefined8 *puVar3;\n  \n  if (param_1 == 0) {\n    param_1 = 1;\n  }\n  while( true ) {\n    pvVar1 = malloc(param_1);\n    if (pvVar1 != (void *)0x0) {\n      return;\n    }\n    pcVar2 = (code *)FUN_002755c0();\n    if (pcVar2 == (code *)0x0) break;\n    (*pcVar2)();\n  }\n  puVar3 = (undefined8 *)FUN_00276bb0(8);\n  *puVar3 = &PTR_FUN_003b8618;\n                    \n  FUN_002758d0(puVar3,&PTR_PTR_FUN_003b85f0,FUN_00277070);\n}" { (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (declaration "code *pcVar2;" type_identifier (pointer_declarator "*pcVar2" * identifier) ;) (declaration "undefined8 *puVar3;" type_identifier (pointer_declarator "*puVar3" * 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    pvVar1 = malloc(param_1);\n    if (pvVar1 != (void *)0x0) {\n      return;\n    }\n    pcVar2 = (code *)FUN_002755c0();\n    if (pcVar2 == (code *)0x0) break;\n    (*pcVar2)();\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    pvVar1 = malloc(param_1);\n    if (pvVar1 != (void *)0x0) {\n      return;\n    }\n    pcVar2 = (code *)FUN_002755c0();\n    if (pcVar2 == (code *)0x0) break;\n    (*pcVar2)();\n  }" { (expression_statement "pvVar1 = malloc(param_1);" (assignment_expression "pvVar1 = malloc(param_1)" identifier = (call_expression "malloc(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (pvVar1 != (void *)0x0) {\n      return;\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;\n    }" { (return_statement "return;" return ;) })) (expression_statement "pcVar2 = (code *)FUN_002755c0();" (assignment_expression "pcVar2 = (code *)FUN_002755c0()" identifier = (cast_expression "(code *)FUN_002755c0()" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_002755c0()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (pcVar2 == (code *)0x0) break;" if (parenthesized_expression "(pcVar2 == (code *)0x0)" ( (binary_expression "pcVar2 == (code *)0x0" identifier == (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "(*pcVar2)();" (call_expression "(*pcVar2)()" (parenthesized_expression "(*pcVar2)" ( (pointer_expression "*pcVar2" * identifier) )) (argument_list "()" ( ))) ;) })) (expression_statement "puVar3 = (undefined8 *)FUN_00276bb0(8);" (assignment_expression "puVar3 = (undefined8 *)FUN_00276bb0(8)" identifier = (cast_expression "(undefined8 *)FUN_00276bb0(8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00276bb0(8)" identifier (argument_list "(8)" ( number_literal ))))) ;) (expression_statement "*puVar3 = &PTR_FUN_003b8618;" (assignment_expression "*puVar3 = &PTR_FUN_003b8618" (pointer_expression "*puVar3" * identifier) = (pointer_expression "&PTR_FUN_003b8618" & identifier)) ;) (expression_statement "FUN_002758d0(puVar3,&PTR_PTR_FUN_003b85f0,FUN_00277070);" (call_expression "FUN_002758d0(puVar3,&PTR_PTR_FUN_003b85f0,FUN_00277070)" identifier (argument_list "(puVar3,&PTR_PTR_FUN_003b85f0,FUN_00277070)" ( identifier , (pointer_expression "&PTR_PTR_FUN_003b85f0" & identifier) , identifier ))) ;) })))
(translation_unit (function_definition TYPE (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) ;) (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 = (call_expression 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 ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (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 (pointer_expression * IDENT) = (pointer_expression & IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , IDENT ))) ;) })))
(function_definition "void FUN_00275550(size_t param_1)\n\n{\n  void *pvVar1;\n  code *pcVar2;\n  undefined8 *puVar3;\n  \n  if (param_1 == 0) {\n    param_1 = 1;\n  }\n  while( true ) {\n    pvVar1 = malloc(param_1);\n    if (pvVar1 != (void *)0x0) {\n      return;\n    }\n    pcVar2 = (code *)FUN_002755c0();\n    if (pcVar2 == (code *)0x0) break;\n    (*pcVar2)();\n  }\n  puVar3 = (undefined8 *)FUN_00276bb0(8);\n  *puVar3 = &PTR_FUN_003b8618;\n                    \n  FUN_002758d0(puVar3,&PTR_PTR_FUN_003b85f0,FUN_00277070);\n}" (primitive_type "void") (function_declarator "FUN_00275550(size_t param_1)" (identifier "FUN_00275550") (parameter_list "(size_t param_1)" (( "(") (parameter_declaration "size_t param_1" (primitive_type "size_t") (identifier "param_1")) () ")"))) (compound_statement "{\n  void *pvVar1;\n  code *pcVar2;\n  undefined8 *puVar3;\n  \n  if (param_1 == 0) {\n    param_1 = 1;\n  }\n  while( true ) {\n    pvVar1 = malloc(param_1);\n    if (pvVar1 != (void *)0x0) {\n      return;\n    }\n    pcVar2 = (code *)FUN_002755c0();\n    if (pcVar2 == (code *)0x0) break;\n    (*pcVar2)();\n  }\n  puVar3 = (undefined8 *)FUN_00276bb0(8);\n  *puVar3 = &PTR_FUN_003b8618;\n                    \n  FUN_002758d0(puVar3,&PTR_PTR_FUN_003b85f0,FUN_00277070);\n}" ({ "{") (declaration "void *pvVar1;" (primitive_type "void") (pointer_declarator "*pvVar1" (* "*") (identifier "pvVar1")) (; ";")) (declaration "code *pcVar2;" (type_identifier "code") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "undefined8 *puVar3;" (type_identifier "undefined8") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (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    pvVar1 = malloc(param_1);\n    if (pvVar1 != (void *)0x0) {\n      return;\n    }\n    pcVar2 = (code *)FUN_002755c0();\n    if (pcVar2 == (code *)0x0) break;\n    (*pcVar2)();\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    pvVar1 = malloc(param_1);\n    if (pvVar1 != (void *)0x0) {\n      return;\n    }\n    pcVar2 = (code *)FUN_002755c0();\n    if (pcVar2 == (code *)0x0) break;\n    (*pcVar2)();\n  }" ({ "{") (expression_statement "pvVar1 = malloc(param_1);" (assignment_expression "pvVar1 = malloc(param_1)" (identifier "pvVar1") (= "=") (call_expression "malloc(param_1)" (identifier "malloc") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (pvVar1 != (void *)0x0) {\n      return;\n    }" (if "if") (parenthesized_expression "(pvVar1 != (void *)0x0)" (( "(") (binary_expression "pvVar1 != (void *)0x0" (identifier "pvVar1") (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "pcVar2 = (code *)FUN_002755c0();" (assignment_expression "pcVar2 = (code *)FUN_002755c0()" (identifier "pcVar2") (= "=") (cast_expression "(code *)FUN_002755c0()" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_002755c0()" (identifier "FUN_002755c0") (argument_list "()" (( "(") () ")"))))) (; ";")) (if_statement "if (pcVar2 == (code *)0x0) break;" (if "if") (parenthesized_expression "(pcVar2 == (code *)0x0)" (( "(") (binary_expression "pcVar2 == (code *)0x0" (identifier "pcVar2") (== "==") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "(*pcVar2)();" (call_expression "(*pcVar2)()" (parenthesized_expression "(*pcVar2)" (( "(") (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2")) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "puVar3 = (undefined8 *)FUN_00276bb0(8);" (assignment_expression "puVar3 = (undefined8 *)FUN_00276bb0(8)" (identifier "puVar3") (= "=") (cast_expression "(undefined8 *)FUN_00276bb0(8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00276bb0(8)" (identifier "FUN_00276bb0") (argument_list "(8)" (( "(") (number_literal "8") () ")"))))) (; ";")) (expression_statement "*puVar3 = &PTR_FUN_003b8618;" (assignment_expression "*puVar3 = &PTR_FUN_003b8618" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (pointer_expression "&PTR_FUN_003b8618" (& "&") (identifier "PTR_FUN_003b8618"))) (; ";")) (expression_statement "FUN_002758d0(puVar3,&PTR_PTR_FUN_003b85f0,FUN_00277070);" (call_expression "FUN_002758d0(puVar3,&PTR_PTR_FUN_003b85f0,FUN_00277070)" (identifier "FUN_002758d0") (argument_list "(puVar3,&PTR_PTR_FUN_003b85f0,FUN_00277070)" (( "(") (identifier "puVar3") (, ",") (pointer_expression "&PTR_PTR_FUN_003b85f0" (& "&") (identifier "PTR_PTR_FUN_003b85f0")) (, ",") (identifier "FUN_00277070") () ")"))) (; ";")) (} "}")))

/* operator new(unsigned long) */

void * function_1(type_1 var_1)

{
  void *var_3;
  type_2 *var_5;
  type_3 *puVar3;
  
  if (var_1 == 0) {
    var_1 = 1;
  }
  while( true ) {
    var_3 = var_2(var_1);
    if (var_3 != (void *)0x0) {
      return var_3;
    }
    var_5 = (type_2 *)std::var_4();
    if (var_5 == (type_2 *)0x0) break;
    (*var_5)();
  }
  puVar3 = (type_3 *)var_6(8);
  *puVar3 = &PTR__bad_alloc_003b8618;
                    /* WARNING: Subroutine does not return */
  var_7(puVar3,&std::bad_alloc::typeinfo,std::bad_alloc::~bad_alloc);
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (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: (call_expression function: (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))) (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))))) (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: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (identifier)) (identifier)))))))

void MASKED(size_t param_1)

{
  void *pvVar1;
  code *pcVar2;
  undefined8 *puVar3;
  
  if (param_1 == 0) {
    param_1 = 1;
  }
  while( true ) {
    pvVar1 = malloc(param_1);
    if (pvVar1 != (void *)0x0) {
      return;
    }
    pcVar2 = (code *)FUN_002755c0();
    if (pcVar2 == (code *)0x0) break;
    (*pcVar2)();
  }
  puVar3 = (undefined8 *)FUN_00276bb0(8);
  *puVar3 = &PTR_FUN_003b8618;
                    /* WARNING: Subroutine does not return */
  FUN_002758d0(puVar3,&PTR_PTR_FUN_003b85f0,FUN_00277070);
}

