
void xmalloc_failed(size_t size)

{
  void *pvVar1;
  long lVar2;
  char *pcVar3;
  
  pcVar3 = first_break;
  if (first_break == (char *)0x0) {
    pvVar1 = sbrk(0);
    lVar2 = (long)pvVar1 + -0x43e840;
  }
  else {
    pvVar1 = sbrk(0);
    lVar2 = (long)pvVar1 - (long)pcVar3;
  }
  pcVar3 = ": ";
  if (*name == '\0') {
    pcVar3 = "";
  }
  fprintf(stderr,"\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n",name,pcVar3
          ,size,lVar2);
                    /* WARNING: Subroutine does not return */
  xexit(1);
}



void FUN_002d8fe0(undefined8 param_1)

{
  void *pvVar1;
  long lVar2;
  char *pcVar3;
  intptr_t __delta;
  
  lVar2 = DAT_00449270;
  __delta = 0;
  if (DAT_00449270 == 0) goto LAB_002d9040;
  pvVar1 = sbrk(0);
  lVar2 = (long)pvVar1 - lVar2;
  do {
    pcVar3 = ": ";
    if (*PTR_s__0043e6c0 == '\0') {
      pcVar3 = "";
    }
    fprintf(stderr,"\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n",
            PTR_s__0043e6c0,pcVar3,param_1,lVar2);
    __delta = 1;
    FUN_002d8f90();
LAB_002d9040:
    pvVar1 = sbrk(__delta);
    lVar2 = (long)pvVar1 + -0x43e840;
  } while( true );
}


PUSH RBP
PUSH RBX
MOV RBX,RDI
XOR EDI,EDI
SUB RSP,0x8
MOV RBP,qword ptr [0x00449270]
TEST RBP,RBP
JZ 0x002d9040
CALL 0x00147380
SUB RAX,RBP
MOV R9,RAX
MOV RDX,qword ptr [0x0043e6c0]
LEA RAX,[0x38b016]
MOV R8,RBX
LEA RCX,[0x38c3ad]
MOV RDI,qword ptr [0x0043e860]
LEA RSI,[0x390be0]
CMP byte ptr [RDX],0x0
CMOVZ RCX,RAX
XOR EAX,EAX
CALL 0x00147a00
MOV EDI,0x1
CALL 0x002d8f90
CALL 0x00147380
LEA RDX,[0x43e840]
SUB RAX,RDX
MOV R9,RAX
JMP 0x002d9002
(translation_unit "void FUN_002d8fe0(undefined8 param_1)\n\n{\n  void *pvVar1;\n  long lVar2;\n  char *pcVar3;\n  intptr_t __delta;\n  \n  lVar2 = DAT_00449270;\n  __delta = 0;\n  if (DAT_00449270 == 0) goto LAB_002d9040;\n  pvVar1 = sbrk(0);\n  lVar2 = (long)pvVar1 - lVar2;\n  do {\n    pcVar3 = ": ";\n    if (*PTR_s__0043e6c0 == '\0') {\n      pcVar3 = "";\n    }\n    fprintf(stderr,"\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n",\n            PTR_s__0043e6c0,pcVar3,param_1,lVar2);\n    __delta = 1;\n    FUN_002d8f90();\nLAB_002d9040:\n    pvVar1 = sbrk(__delta);\n    lVar2 = (long)pvVar1 + -0x43e840;\n  } while( true );\n}\n\n" (function_definition "void FUN_002d8fe0(undefined8 param_1)\n\n{\n  void *pvVar1;\n  long lVar2;\n  char *pcVar3;\n  intptr_t __delta;\n  \n  lVar2 = DAT_00449270;\n  __delta = 0;\n  if (DAT_00449270 == 0) goto LAB_002d9040;\n  pvVar1 = sbrk(0);\n  lVar2 = (long)pvVar1 - lVar2;\n  do {\n    pcVar3 = ": ";\n    if (*PTR_s__0043e6c0 == '\0') {\n      pcVar3 = "";\n    }\n    fprintf(stderr,"\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n",\n            PTR_s__0043e6c0,pcVar3,param_1,lVar2);\n    __delta = 1;\n    FUN_002d8f90();\nLAB_002d9040:\n    pvVar1 = sbrk(__delta);\n    lVar2 = (long)pvVar1 + -0x43e840;\n  } while( true );\n}" primitive_type (function_declarator "FUN_002d8fe0(undefined8 param_1)" identifier (parameter_list "(undefined8 param_1)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) ))) (compound_statement "{\n  void *pvVar1;\n  long lVar2;\n  char *pcVar3;\n  intptr_t __delta;\n  \n  lVar2 = DAT_00449270;\n  __delta = 0;\n  if (DAT_00449270 == 0) goto LAB_002d9040;\n  pvVar1 = sbrk(0);\n  lVar2 = (long)pvVar1 - lVar2;\n  do {\n    pcVar3 = ": ";\n    if (*PTR_s__0043e6c0 == '\0') {\n      pcVar3 = "";\n    }\n    fprintf(stderr,"\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n",\n            PTR_s__0043e6c0,pcVar3,param_1,lVar2);\n    __delta = 1;\n    FUN_002d8f90();\nLAB_002d9040:\n    pvVar1 = sbrk(__delta);\n    lVar2 = (long)pvVar1 + -0x43e840;\n  } while( true );\n}" { (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "intptr_t __delta;" primitive_type identifier ;) (expression_statement "lVar2 = DAT_00449270;" (assignment_expression "lVar2 = DAT_00449270" identifier = identifier) ;) (expression_statement "__delta = 0;" (assignment_expression "__delta = 0" identifier = number_literal) ;) (if_statement "if (DAT_00449270 == 0) goto LAB_002d9040;" if (parenthesized_expression "(DAT_00449270 == 0)" ( (binary_expression "DAT_00449270 == 0" identifier == number_literal) )) (goto_statement "goto LAB_002d9040;" goto statement_identifier ;)) (expression_statement "pvVar1 = sbrk(0);" (assignment_expression "pvVar1 = sbrk(0)" identifier = (call_expression "sbrk(0)" identifier (argument_list "(0)" ( number_literal )))) ;) (expression_statement "lVar2 = (long)pvVar1 - lVar2;" (assignment_expression "lVar2 = (long)pvVar1 - lVar2" identifier = (binary_expression "(long)pvVar1 - lVar2" (cast_expression "(long)pvVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - identifier)) ;) (do_statement "do {\n    pcVar3 = ": ";\n    if (*PTR_s__0043e6c0 == '\0') {\n      pcVar3 = "";\n    }\n    fprintf(stderr,"\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n",\n            PTR_s__0043e6c0,pcVar3,param_1,lVar2);\n    __delta = 1;\n    FUN_002d8f90();\nLAB_002d9040:\n    pvVar1 = sbrk(__delta);\n    lVar2 = (long)pvVar1 + -0x43e840;\n  } while( true );" do (compound_statement "{\n    pcVar3 = ": ";\n    if (*PTR_s__0043e6c0 == '\0') {\n      pcVar3 = "";\n    }\n    fprintf(stderr,"\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n",\n            PTR_s__0043e6c0,pcVar3,param_1,lVar2);\n    __delta = 1;\n    FUN_002d8f90();\nLAB_002d9040:\n    pvVar1 = sbrk(__delta);\n    lVar2 = (long)pvVar1 + -0x43e840;\n  }" { (expression_statement "pcVar3 = ": ";" (assignment_expression "pcVar3 = ": "" identifier = (string_literal "": "" " string_content ")) ;) (if_statement "if (*PTR_s__0043e6c0 == '\0') {\n      pcVar3 = "";\n    }" if (parenthesized_expression "(*PTR_s__0043e6c0 == '\0')" ( (binary_expression "*PTR_s__0043e6c0 == '\0'" (pointer_expression "*PTR_s__0043e6c0" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      pcVar3 = "";\n    }" { (expression_statement "pcVar3 = "";" (assignment_expression "pcVar3 = """ identifier = (string_literal """" " ")) ;) })) (expression_statement "fprintf(stderr,"\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n",\n            PTR_s__0043e6c0,pcVar3,param_1,lVar2);" (call_expression "fprintf(stderr,"\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n",\n            PTR_s__0043e6c0,pcVar3,param_1,lVar2)" identifier (argument_list "(stderr,"\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n",\n            PTR_s__0043e6c0,pcVar3,param_1,lVar2)" ( identifier , (string_literal ""\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n"" " escape_sequence string_content escape_sequence ") , identifier , identifier , identifier , identifier ))) ;) (expression_statement "__delta = 1;" (assignment_expression "__delta = 1" identifier = number_literal) ;) (expression_statement "FUN_002d8f90();" (call_expression "FUN_002d8f90()" identifier (argument_list "()" ( ))) ;) (labeled_statement "LAB_002d9040:\n    pvVar1 = sbrk(__delta);" statement_identifier : (expression_statement "pvVar1 = sbrk(__delta);" (assignment_expression "pvVar1 = sbrk(__delta)" identifier = (call_expression "sbrk(__delta)" identifier (argument_list "(__delta)" ( identifier )))) ;)) (expression_statement "lVar2 = (long)pvVar1 + -0x43e840;" (assignment_expression "lVar2 = (long)pvVar1 + -0x43e840" identifier = (binary_expression "(long)pvVar1 + -0x43e840" (cast_expression "(long)pvVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "void xmalloc_failed(size_t size)\n\n{\n  void *pvVar1;\n  long lVar2;\n  char *pcVar3;\n  \n  pcVar3 = first_break;\n  if (first_break == (char *)0x0) {\n    pvVar1 = sbrk(0);\n    lVar2 = (long)pvVar1 + -0x43e840;\n  }\n  else {\n    pvVar1 = sbrk(0);\n    lVar2 = (long)pvVar1 - (long)pcVar3;\n  }\n  pcVar3 = ": ";\n  if (*name == '\0') {\n    pcVar3 = "";\n  }\n  fprintf(stderr,"\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n",name,pcVar3\n          ,size,lVar2);\n                    /* WARNING: Subroutine does not return */\n  xexit(1);\n}\n\n" (function_definition "void xmalloc_failed(size_t size)\n\n{\n  void *pvVar1;\n  long lVar2;\n  char *pcVar3;\n  \n  pcVar3 = first_break;\n  if (first_break == (char *)0x0) {\n    pvVar1 = sbrk(0);\n    lVar2 = (long)pvVar1 + -0x43e840;\n  }\n  else {\n    pvVar1 = sbrk(0);\n    lVar2 = (long)pvVar1 - (long)pcVar3;\n  }\n  pcVar3 = ": ";\n  if (*name == '\0') {\n    pcVar3 = "";\n  }\n  fprintf(stderr,"\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n",name,pcVar3\n          ,size,lVar2);\n                    /* WARNING: Subroutine does not return */\n  xexit(1);\n}" primitive_type (function_declarator "xmalloc_failed(size_t size)" identifier (parameter_list "(size_t size)" ( (parameter_declaration "size_t size" primitive_type identifier) ))) (compound_statement "{\n  void *pvVar1;\n  long lVar2;\n  char *pcVar3;\n  \n  pcVar3 = first_break;\n  if (first_break == (char *)0x0) {\n    pvVar1 = sbrk(0);\n    lVar2 = (long)pvVar1 + -0x43e840;\n  }\n  else {\n    pvVar1 = sbrk(0);\n    lVar2 = (long)pvVar1 - (long)pcVar3;\n  }\n  pcVar3 = ": ";\n  if (*name == '\0') {\n    pcVar3 = "";\n  }\n  fprintf(stderr,"\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n",name,pcVar3\n          ,size,lVar2);\n                    /* WARNING: Subroutine does not return */\n  xexit(1);\n}" { (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (expression_statement "pcVar3 = first_break;" (assignment_expression "pcVar3 = first_break" identifier = identifier) ;) (if_statement "if (first_break == (char *)0x0) {\n    pvVar1 = sbrk(0);\n    lVar2 = (long)pvVar1 + -0x43e840;\n  }\n  else {\n    pvVar1 = sbrk(0);\n    lVar2 = (long)pvVar1 - (long)pcVar3;\n  }" if (parenthesized_expression "(first_break == (char *)0x0)" ( (binary_expression "first_break == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pvVar1 = sbrk(0);\n    lVar2 = (long)pvVar1 + -0x43e840;\n  }" { (expression_statement "pvVar1 = sbrk(0);" (assignment_expression "pvVar1 = sbrk(0)" identifier = (call_expression "sbrk(0)" identifier (argument_list "(0)" ( number_literal )))) ;) (expression_statement "lVar2 = (long)pvVar1 + -0x43e840;" (assignment_expression "lVar2 = (long)pvVar1 + -0x43e840" identifier = (binary_expression "(long)pvVar1 + -0x43e840" (cast_expression "(long)pvVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal)) ;) }) (else_clause "else {\n    pvVar1 = sbrk(0);\n    lVar2 = (long)pvVar1 - (long)pcVar3;\n  }" else (compound_statement "{\n    pvVar1 = sbrk(0);\n    lVar2 = (long)pvVar1 - (long)pcVar3;\n  }" { (expression_statement "pvVar1 = sbrk(0);" (assignment_expression "pvVar1 = sbrk(0)" identifier = (call_expression "sbrk(0)" identifier (argument_list "(0)" ( number_literal )))) ;) (expression_statement "lVar2 = (long)pvVar1 - (long)pcVar3;" (assignment_expression "lVar2 = (long)pvVar1 - (long)pcVar3" identifier = (binary_expression "(long)pvVar1 - (long)pcVar3" (cast_expression "(long)pvVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - (cast_expression "(long)pcVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) }))) (expression_statement "pcVar3 = ": ";" (assignment_expression "pcVar3 = ": "" identifier = (string_literal "": "" " string_content ")) ;) (if_statement "if (*name == '\0') {\n    pcVar3 = "";\n  }" if (parenthesized_expression "(*name == '\0')" ( (binary_expression "*name == '\0'" (pointer_expression "*name" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    pcVar3 = "";\n  }" { (expression_statement "pcVar3 = "";" (assignment_expression "pcVar3 = """ identifier = (string_literal """" " ")) ;) })) (expression_statement "fprintf(stderr,"\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n",name,pcVar3\n          ,size,lVar2);" (call_expression "fprintf(stderr,"\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n",name,pcVar3\n          ,size,lVar2)" identifier (argument_list "(stderr,"\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n",name,pcVar3\n          ,size,lVar2)" ( identifier , (string_literal ""\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n"" " escape_sequence string_content escape_sequence ") , identifier , identifier , identifier , identifier ))) ;) comment (expression_statement "xexit(1);" (call_expression "xexit(1)" identifier (argument_list "(1)" ( number_literal ))) ;) })))
(translation_unit "void FUN_002d8fe0(undefined8 param_1)\n\n{\n  void *pvVar1;\n  long lVar2;\n  char *pcVar3;\n  intptr_t __delta;\n  \n  lVar2 = DAT_00449270;\n  __delta = 0;\n  if (DAT_00449270 == 0) goto LAB_002d9040;\n  pvVar1 = sbrk(0);\n  lVar2 = (long)pvVar1 - lVar2;\n  do {\n    pcVar3 = ": ";\n    if (*PTR_s__0043e6c0 == '\0') {\n      pcVar3 = "";\n    }\n    fprintf(stderr,"\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n",\n            PTR_s__0043e6c0,pcVar3,param_1,lVar2);\n    __delta = 1;\n    FUN_002d8f90();\nLAB_002d9040:\n    pvVar1 = sbrk(__delta);\n    lVar2 = (long)pvVar1 + -0x43e840;\n  } while( true );\n}\n\n" (function_definition "void FUN_002d8fe0(undefined8 param_1)\n\n{\n  void *pvVar1;\n  long lVar2;\n  char *pcVar3;\n  intptr_t __delta;\n  \n  lVar2 = DAT_00449270;\n  __delta = 0;\n  if (DAT_00449270 == 0) goto LAB_002d9040;\n  pvVar1 = sbrk(0);\n  lVar2 = (long)pvVar1 - lVar2;\n  do {\n    pcVar3 = ": ";\n    if (*PTR_s__0043e6c0 == '\0') {\n      pcVar3 = "";\n    }\n    fprintf(stderr,"\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n",\n            PTR_s__0043e6c0,pcVar3,param_1,lVar2);\n    __delta = 1;\n    FUN_002d8f90();\nLAB_002d9040:\n    pvVar1 = sbrk(__delta);\n    lVar2 = (long)pvVar1 + -0x43e840;\n  } while( true );\n}" primitive_type (function_declarator "FUN_002d8fe0(undefined8 param_1)" identifier (parameter_list "(undefined8 param_1)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) ))) (compound_statement "{\n  void *pvVar1;\n  long lVar2;\n  char *pcVar3;\n  intptr_t __delta;\n  \n  lVar2 = DAT_00449270;\n  __delta = 0;\n  if (DAT_00449270 == 0) goto LAB_002d9040;\n  pvVar1 = sbrk(0);\n  lVar2 = (long)pvVar1 - lVar2;\n  do {\n    pcVar3 = ": ";\n    if (*PTR_s__0043e6c0 == '\0') {\n      pcVar3 = "";\n    }\n    fprintf(stderr,"\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n",\n            PTR_s__0043e6c0,pcVar3,param_1,lVar2);\n    __delta = 1;\n    FUN_002d8f90();\nLAB_002d9040:\n    pvVar1 = sbrk(__delta);\n    lVar2 = (long)pvVar1 + -0x43e840;\n  } while( true );\n}" { (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "intptr_t __delta;" primitive_type identifier ;) (expression_statement "lVar2 = DAT_00449270;" (assignment_expression "lVar2 = DAT_00449270" identifier = identifier) ;) (expression_statement "__delta = 0;" (assignment_expression "__delta = 0" identifier = number_literal) ;) (if_statement "if (DAT_00449270 == 0) goto LAB_002d9040;" if (parenthesized_expression "(DAT_00449270 == 0)" ( (binary_expression "DAT_00449270 == 0" identifier == number_literal) )) (goto_statement "goto LAB_002d9040;" goto statement_identifier ;)) (expression_statement "pvVar1 = sbrk(0);" (assignment_expression "pvVar1 = sbrk(0)" identifier = (call_expression "sbrk(0)" identifier (argument_list "(0)" ( number_literal )))) ;) (expression_statement "lVar2 = (long)pvVar1 - lVar2;" (assignment_expression "lVar2 = (long)pvVar1 - lVar2" identifier = (binary_expression "(long)pvVar1 - lVar2" (cast_expression "(long)pvVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - identifier)) ;) (do_statement "do {\n    pcVar3 = ": ";\n    if (*PTR_s__0043e6c0 == '\0') {\n      pcVar3 = "";\n    }\n    fprintf(stderr,"\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n",\n            PTR_s__0043e6c0,pcVar3,param_1,lVar2);\n    __delta = 1;\n    FUN_002d8f90();\nLAB_002d9040:\n    pvVar1 = sbrk(__delta);\n    lVar2 = (long)pvVar1 + -0x43e840;\n  } while( true );" do (compound_statement "{\n    pcVar3 = ": ";\n    if (*PTR_s__0043e6c0 == '\0') {\n      pcVar3 = "";\n    }\n    fprintf(stderr,"\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n",\n            PTR_s__0043e6c0,pcVar3,param_1,lVar2);\n    __delta = 1;\n    FUN_002d8f90();\nLAB_002d9040:\n    pvVar1 = sbrk(__delta);\n    lVar2 = (long)pvVar1 + -0x43e840;\n  }" { (expression_statement "pcVar3 = ": ";" (assignment_expression "pcVar3 = ": "" identifier = (string_literal "": "" " string_content ")) ;) (if_statement "if (*PTR_s__0043e6c0 == '\0') {\n      pcVar3 = "";\n    }" if (parenthesized_expression "(*PTR_s__0043e6c0 == '\0')" ( (binary_expression "*PTR_s__0043e6c0 == '\0'" (pointer_expression "*PTR_s__0043e6c0" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      pcVar3 = "";\n    }" { (expression_statement "pcVar3 = "";" (assignment_expression "pcVar3 = """ identifier = (string_literal """" " ")) ;) })) (expression_statement "fprintf(stderr,"\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n",\n            PTR_s__0043e6c0,pcVar3,param_1,lVar2);" (call_expression "fprintf(stderr,"\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n",\n            PTR_s__0043e6c0,pcVar3,param_1,lVar2)" identifier (argument_list "(stderr,"\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n",\n            PTR_s__0043e6c0,pcVar3,param_1,lVar2)" ( identifier , (string_literal ""\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n"" " escape_sequence string_content escape_sequence ") , identifier , identifier , identifier , identifier ))) ;) (expression_statement "__delta = 1;" (assignment_expression "__delta = 1" identifier = number_literal) ;) (expression_statement "FUN_002d8f90();" (call_expression "FUN_002d8f90()" identifier (argument_list "()" ( ))) ;) (labeled_statement "LAB_002d9040:\n    pvVar1 = sbrk(__delta);" statement_identifier : (expression_statement "pvVar1 = sbrk(__delta);" (assignment_expression "pvVar1 = sbrk(__delta)" identifier = (call_expression "sbrk(__delta)" identifier (argument_list "(__delta)" ( identifier )))) ;)) (expression_statement "lVar2 = (long)pvVar1 + -0x43e840;" (assignment_expression "lVar2 = (long)pvVar1 + -0x43e840" identifier = (binary_expression "(long)pvVar1 + -0x43e840" (cast_expression "(long)pvVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) - IDENT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " ")) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " escape_sequence string_content escape_sequence ") , IDENT , IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;)) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT)) ;) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "void FUN_002d8fe0(undefined8 param_1)\n\n{\n  void *pvVar1;\n  long lVar2;\n  char *pcVar3;\n  intptr_t __delta;\n  \n  lVar2 = DAT_00449270;\n  __delta = 0;\n  if (DAT_00449270 == 0) goto LAB_002d9040;\n  pvVar1 = sbrk(0);\n  lVar2 = (long)pvVar1 - lVar2;\n  do {\n    pcVar3 = ": ";\n    if (*PTR_s__0043e6c0 == '\0') {\n      pcVar3 = "";\n    }\n    fprintf(stderr,"\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n",\n            PTR_s__0043e6c0,pcVar3,param_1,lVar2);\n    __delta = 1;\n    FUN_002d8f90();\nLAB_002d9040:\n    pvVar1 = sbrk(__delta);\n    lVar2 = (long)pvVar1 + -0x43e840;\n  } while( true );\n}" (primitive_type "void") (function_declarator "FUN_002d8fe0(undefined8 param_1)" (identifier "FUN_002d8fe0") (parameter_list "(undefined8 param_1)" (( "(") (parameter_declaration "undefined8 param_1" (type_identifier "undefined8") (identifier "param_1")) () ")"))) (compound_statement "{\n  void *pvVar1;\n  long lVar2;\n  char *pcVar3;\n  intptr_t __delta;\n  \n  lVar2 = DAT_00449270;\n  __delta = 0;\n  if (DAT_00449270 == 0) goto LAB_002d9040;\n  pvVar1 = sbrk(0);\n  lVar2 = (long)pvVar1 - lVar2;\n  do {\n    pcVar3 = ": ";\n    if (*PTR_s__0043e6c0 == '\0') {\n      pcVar3 = "";\n    }\n    fprintf(stderr,"\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n",\n            PTR_s__0043e6c0,pcVar3,param_1,lVar2);\n    __delta = 1;\n    FUN_002d8f90();\nLAB_002d9040:\n    pvVar1 = sbrk(__delta);\n    lVar2 = (long)pvVar1 + -0x43e840;\n  } while( true );\n}" ({ "{") (declaration "void *pvVar1;" (primitive_type "void") (pointer_declarator "*pvVar1" (* "*") (identifier "pvVar1")) (; ";")) (declaration "long lVar2;" (sized_type_specifier "long" (long "long")) (identifier "lVar2") (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "intptr_t __delta;" (primitive_type "intptr_t") (identifier "__delta") (; ";")) (expression_statement "lVar2 = DAT_00449270;" (assignment_expression "lVar2 = DAT_00449270" (identifier "lVar2") (= "=") (identifier "DAT_00449270")) (; ";")) (expression_statement "__delta = 0;" (assignment_expression "__delta = 0" (identifier "__delta") (= "=") (number_literal "0")) (; ";")) (if_statement "if (DAT_00449270 == 0) goto LAB_002d9040;" (if "if") (parenthesized_expression "(DAT_00449270 == 0)" (( "(") (binary_expression "DAT_00449270 == 0" (identifier "DAT_00449270") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_002d9040;" (goto "goto") (statement_identifier "LAB_002d9040") (; ";"))) (expression_statement "pvVar1 = sbrk(0);" (assignment_expression "pvVar1 = sbrk(0)" (identifier "pvVar1") (= "=") (call_expression "sbrk(0)" (identifier "sbrk") (argument_list "(0)" (( "(") (number_literal "0") () ")")))) (; ";")) (expression_statement "lVar2 = (long)pvVar1 - lVar2;" (assignment_expression "lVar2 = (long)pvVar1 - lVar2" (identifier "lVar2") (= "=") (binary_expression "(long)pvVar1 - lVar2" (cast_expression "(long)pvVar1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "pvVar1")) (- "-") (identifier "lVar2"))) (; ";")) (do_statement "do {\n    pcVar3 = ": ";\n    if (*PTR_s__0043e6c0 == '\0') {\n      pcVar3 = "";\n    }\n    fprintf(stderr,"\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n",\n            PTR_s__0043e6c0,pcVar3,param_1,lVar2);\n    __delta = 1;\n    FUN_002d8f90();\nLAB_002d9040:\n    pvVar1 = sbrk(__delta);\n    lVar2 = (long)pvVar1 + -0x43e840;\n  } while( true );" (do "do") (compound_statement "{\n    pcVar3 = ": ";\n    if (*PTR_s__0043e6c0 == '\0') {\n      pcVar3 = "";\n    }\n    fprintf(stderr,"\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n",\n            PTR_s__0043e6c0,pcVar3,param_1,lVar2);\n    __delta = 1;\n    FUN_002d8f90();\nLAB_002d9040:\n    pvVar1 = sbrk(__delta);\n    lVar2 = (long)pvVar1 + -0x43e840;\n  }" ({ "{") (expression_statement "pcVar3 = ": ";" (assignment_expression "pcVar3 = ": "" (identifier "pcVar3") (= "=") (string_literal "": "" (" """) (string_content ": ") (" """))) (; ";")) (if_statement "if (*PTR_s__0043e6c0 == '\0') {\n      pcVar3 = "";\n    }" (if "if") (parenthesized_expression "(*PTR_s__0043e6c0 == '\0')" (( "(") (binary_expression "*PTR_s__0043e6c0 == '\0'" (pointer_expression "*PTR_s__0043e6c0" (* "*") (identifier "PTR_s__0043e6c0")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      pcVar3 = "";\n    }" ({ "{") (expression_statement "pcVar3 = "";" (assignment_expression "pcVar3 = """ (identifier "pcVar3") (= "=") (string_literal """" (" """) (" """))) (; ";")) (} "}"))) (expression_statement "fprintf(stderr,"\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n",\n            PTR_s__0043e6c0,pcVar3,param_1,lVar2);" (call_expression "fprintf(stderr,"\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n",\n            PTR_s__0043e6c0,pcVar3,param_1,lVar2)" (identifier "fprintf") (argument_list "(stderr,"\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n",\n            PTR_s__0043e6c0,pcVar3,param_1,lVar2)" (( "(") (identifier "stderr") (, ",") (string_literal ""\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n"" (" """) (escape_sequence "\n") (string_content "%s%sout of memory allocating %lu bytes after a total of %lu bytes") (escape_sequence "\n") (" """)) (, ",") (identifier "PTR_s__0043e6c0") (, ",") (identifier "pcVar3") (, ",") (identifier "param_1") (, ",") (identifier "lVar2") () ")"))) (; ";")) (expression_statement "__delta = 1;" (assignment_expression "__delta = 1" (identifier "__delta") (= "=") (number_literal "1")) (; ";")) (expression_statement "FUN_002d8f90();" (call_expression "FUN_002d8f90()" (identifier "FUN_002d8f90") (argument_list "()" (( "(") () ")"))) (; ";")) (labeled_statement "LAB_002d9040:\n    pvVar1 = sbrk(__delta);" (statement_identifier "LAB_002d9040") (: ":") (expression_statement "pvVar1 = sbrk(__delta);" (assignment_expression "pvVar1 = sbrk(__delta)" (identifier "pvVar1") (= "=") (call_expression "sbrk(__delta)" (identifier "sbrk") (argument_list "(__delta)" (( "(") (identifier "__delta") () ")")))) (; ";"))) (expression_statement "lVar2 = (long)pvVar1 + -0x43e840;" (assignment_expression "lVar2 = (long)pvVar1 + -0x43e840" (identifier "lVar2") (= "=") (binary_expression "(long)pvVar1 + -0x43e840" (cast_expression "(long)pvVar1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "pvVar1")) (+ "+") (number_literal "-0x43e840"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

void function_1(size_t size)

{
  void *pvVar1;
  long lVar2;
  char *pcVar3;
  
  pcVar3 = var_1;
  if (var_1 == (char *)0x0) {
    pvVar1 = var_2(0);
    lVar2 = (long)pvVar1 + -0x43e840;
  }
  else {
    pvVar1 = var_2(0);
    lVar2 = (long)pvVar1 - (long)pcVar3;
  }
  pcVar3 = ": ";
  if (*name == '\0') {
    pcVar3 = "";
  }
  var_3(stderr,"\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n",name,pcVar3
          ,size,lVar2);
                    /* WARNING: Subroutine does not return */
  var_4(1);
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (identifier)))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (string_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (escape_sequence) (string_content) (escape_sequence)) (identifier) (identifier) (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))) condition: (parenthesized_expression (true))))))

void MASKED(undefined8 param_1)

{
  void *pvVar1;
  long lVar2;
  char *pcVar3;
  intptr_t __delta;
  
  lVar2 = DAT_00449270;
  __delta = 0;
  if (DAT_00449270 == 0) goto LAB_002d9040;
  pvVar1 = sbrk(0);
  lVar2 = (long)pvVar1 - lVar2;
  do {
    pcVar3 = ": ";
    if (*PTR_s__0043e6c0 == '\0') {
      pcVar3 = "";
    }
    fprintf(stderr,"\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n",
            PTR_s__0043e6c0,pcVar3,param_1,lVar2);
    __delta = 1;
    FUN_002d8f90();
LAB_002d9040:
    pvVar1 = sbrk(__delta);
    lVar2 = (long)pvVar1 + -0x43e840;
  } while( true );
}

