
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void * __regparm3 erealloc_real(void *ptr,size_t count,char *where,char *var,char *file,int line)

{
  void *pvVar1;
  int *piVar2;
  char *pcVar3;
  char *mesg;
  
  if (count == 0) {
    set_loc("awk.h",0x7e9);
                    /* WARNING: Subroutine does not return */
    r_fatal("%s:%d: erealloc called with zero bytes","awkgram.y",file,ptr);
  }
  pvVar1 = realloc(ptr,count);
  if (pvVar1 == (void *)0x0) {
    set_loc("awk.h",0x7ed);
    piVar2 = __errno_location();
    pcVar3 = strerror(*piVar2);
    mesg = (char *)dcgettext(0,"%s:%d:%s: %s: cannot reallocate %ld bytes of memory: %s",5,pvVar1);
                    /* WARNING: Subroutine does not return */
    r_fatal(mesg,"awkgram.y",file,where,var,count,pcVar3);
  }
  return pvVar1;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void * __regparm3
FUN_0001477e(void *param_1,size_t param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5)

{
  void *pvVar1;
  int *piVar2;
  char *pcVar3;
  undefined4 uVar4;
  
  if (param_2 == 0) {
    FUN_00074330("awk.h",0x7e9,param_1,param_1);
    FUN_00074d10("%s:%d: erealloc called with zero bytes","awkgram.y",param_5);
  }
  pvVar1 = realloc(param_1,param_2);
  if (pvVar1 == (void *)0x0) {
    FUN_00074330("awk.h",0x7ed,0,0);
    piVar2 = __errno_location();
    pcVar3 = strerror(*piVar2);
    uVar4 = dcgettext(0,"%s:%d:%s: %s: cannot reallocate %ld bytes of memory: %s",5);
    FUN_00074d10(uVar4,"awkgram.y",param_5,param_3,param_4,param_2,pcVar3);
  }
  return pvVar1;
}


PUSH EBP
PUSH EDI
MOV EBP,ECX
PUSH ESI
PUSH EBX
MOV EDI,EAX
CALL 0x00016f80
ADD EBX,0xc8559
SUB ESP,0x1c
TEST EDX,EDX
MOV ESI,EDX
JNZ 0x000147ca
LEA EDX,[EBX + 0xfffc4704]
PUSH EAX
PUSH EAX
PUSH 0x7e9
PUSH EDX
CALL 0x00074330
LEA EDX,[EBX + 0xfffc4bbc]
ADD ESP,0xc
PUSH dword ptr [ESP + 0x38]
PUSH EDX
LEA EDX,[EBX + 0xfffc486c]
PUSH EDX
CALL 0x00074d10
ADD ESP,0x10
PUSH ECX
PUSH ECX
PUSH ESI
PUSH EDI
CALL 0x00014130
ADD ESP,0x10
TEST EAX,EAX
MOV EDI,EAX
JNZ 0x00014835
PUSH EAX
PUSH EAX
LEA EAX,[EBX + 0xfffc4704]
PUSH 0x7ed
PUSH EAX
CALL 0x00074330
CALL 0x00014330
POP EDX
PUSH dword ptr [EAX]
CALL 0x00014180
MOV dword ptr [ESP + 0x1c],EAX
LEA EAX,[EBX + 0xfffc4894]
ADD ESP,0xc
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x00013f40
ADD ESP,0xc
MOV ECX,dword ptr [ESP + 0x10]
PUSH ECX
LEA ECX,[EBX + 0xfffc4bbc]
PUSH ESI
PUSH dword ptr [ESP + 0x3c]
PUSH EBP
PUSH dword ptr [ESP + 0x48]
PUSH ECX
PUSH EAX
CALL 0x00074d10
ADD ESP,0x20
ADD ESP,0x1c
MOV EAX,EDI
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid * __regparm3\nFUN_0001477e(void *param_1,size_t param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5)\n\n{\n  void *pvVar1;\n  int *piVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  \n  if (param_2 == 0) {\n    FUN_00074330("awk.h",0x7e9,param_1,param_1);\n    FUN_00074d10("%s:%d: erealloc called with zero bytes","awkgram.y",param_5);\n  }\n  pvVar1 = realloc(param_1,param_2);\n  if (pvVar1 == (void *)0x0) {\n    FUN_00074330("awk.h",0x7ed,0,0);\n    piVar2 = __errno_location();\n    pcVar3 = strerror(*piVar2);\n    uVar4 = dcgettext(0,"%s:%d:%s: %s: cannot reallocate %ld bytes of memory: %s",5);\n    FUN_00074d10(uVar4,"awkgram.y",param_5,param_3,param_4,param_2,pcVar3);\n  }\n  return pvVar1;\n}\n\n" comment (function_definition "void * __regparm3\nFUN_0001477e(void *param_1,size_t param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5)\n\n{\n  void *pvVar1;\n  int *piVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  \n  if (param_2 == 0) {\n    FUN_00074330("awk.h",0x7e9,param_1,param_1);\n    FUN_00074d10("%s:%d: erealloc called with zero bytes","awkgram.y",param_5);\n  }\n  pvVar1 = realloc(param_1,param_2);\n  if (pvVar1 == (void *)0x0) {\n    FUN_00074330("awk.h",0x7ed,0,0);\n    piVar2 = __errno_location();\n    pcVar3 = strerror(*piVar2);\n    uVar4 = dcgettext(0,"%s:%d:%s: %s: cannot reallocate %ld bytes of memory: %s",5);\n    FUN_00074d10(uVar4,"awkgram.y",param_5,param_3,param_4,param_2,pcVar3);\n  }\n  return pvVar1;\n}" primitive_type (pointer_declarator "* __regparm3\nFUN_0001477e(void *param_1,size_t param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5)" * (ERROR "__regparm3" identifier) (function_declarator "FUN_0001477e(void *param_1,size_t param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5)" identifier (parameter_list "(void *param_1,size_t param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5)" ( (parameter_declaration "void *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "size_t param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) )))) (compound_statement "{\n  void *pvVar1;\n  int *piVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  \n  if (param_2 == 0) {\n    FUN_00074330("awk.h",0x7e9,param_1,param_1);\n    FUN_00074d10("%s:%d: erealloc called with zero bytes","awkgram.y",param_5);\n  }\n  pvVar1 = realloc(param_1,param_2);\n  if (pvVar1 == (void *)0x0) {\n    FUN_00074330("awk.h",0x7ed,0,0);\n    piVar2 = __errno_location();\n    pcVar3 = strerror(*piVar2);\n    uVar4 = dcgettext(0,"%s:%d:%s: %s: cannot reallocate %ld bytes of memory: %s",5);\n    FUN_00074d10(uVar4,"awkgram.y",param_5,param_3,param_4,param_2,pcVar3);\n  }\n  return pvVar1;\n}" { (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (if_statement "if (param_2 == 0) {\n    FUN_00074330("awk.h",0x7e9,param_1,param_1);\n    FUN_00074d10("%s:%d: erealloc called with zero bytes","awkgram.y",param_5);\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    FUN_00074330("awk.h",0x7e9,param_1,param_1);\n    FUN_00074d10("%s:%d: erealloc called with zero bytes","awkgram.y",param_5);\n  }" { (expression_statement "FUN_00074330("awk.h",0x7e9,param_1,param_1);" (call_expression "FUN_00074330("awk.h",0x7e9,param_1,param_1)" identifier (argument_list "("awk.h",0x7e9,param_1,param_1)" ( (string_literal ""awk.h"" " string_content ") , number_literal , identifier , identifier ))) ;) (expression_statement "FUN_00074d10("%s:%d: erealloc called with zero bytes","awkgram.y",param_5);" (call_expression "FUN_00074d10("%s:%d: erealloc called with zero bytes","awkgram.y",param_5)" identifier (argument_list "("%s:%d: erealloc called with zero bytes","awkgram.y",param_5)" ( (string_literal ""%s:%d: erealloc called with zero bytes"" " string_content ") , (string_literal ""awkgram.y"" " string_content ") , identifier ))) ;) })) (expression_statement "pvVar1 = realloc(param_1,param_2);" (assignment_expression "pvVar1 = realloc(param_1,param_2)" identifier = (call_expression "realloc(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;) (if_statement "if (pvVar1 == (void *)0x0) {\n    FUN_00074330("awk.h",0x7ed,0,0);\n    piVar2 = __errno_location();\n    pcVar3 = strerror(*piVar2);\n    uVar4 = dcgettext(0,"%s:%d:%s: %s: cannot reallocate %ld bytes of memory: %s",5);\n    FUN_00074d10(uVar4,"awkgram.y",param_5,param_3,param_4,param_2,pcVar3);\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    FUN_00074330("awk.h",0x7ed,0,0);\n    piVar2 = __errno_location();\n    pcVar3 = strerror(*piVar2);\n    uVar4 = dcgettext(0,"%s:%d:%s: %s: cannot reallocate %ld bytes of memory: %s",5);\n    FUN_00074d10(uVar4,"awkgram.y",param_5,param_3,param_4,param_2,pcVar3);\n  }" { (expression_statement "FUN_00074330("awk.h",0x7ed,0,0);" (call_expression "FUN_00074330("awk.h",0x7ed,0,0)" identifier (argument_list "("awk.h",0x7ed,0,0)" ( (string_literal ""awk.h"" " string_content ") , number_literal , number_literal , number_literal ))) ;) (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar3 = strerror(*piVar2);" (assignment_expression "pcVar3 = strerror(*piVar2)" identifier = (call_expression "strerror(*piVar2)" identifier (argument_list "(*piVar2)" ( (pointer_expression "*piVar2" * identifier) )))) ;) (expression_statement "uVar4 = dcgettext(0,"%s:%d:%s: %s: cannot reallocate %ld bytes of memory: %s",5);" (assignment_expression "uVar4 = dcgettext(0,"%s:%d:%s: %s: cannot reallocate %ld bytes of memory: %s",5)" identifier = (call_expression "dcgettext(0,"%s:%d:%s: %s: cannot reallocate %ld bytes of memory: %s",5)" identifier (argument_list "(0,"%s:%d:%s: %s: cannot reallocate %ld bytes of memory: %s",5)" ( number_literal , (string_literal ""%s:%d:%s: %s: cannot reallocate %ld bytes of memory: %s"" " string_content ") , number_literal )))) ;) (expression_statement "FUN_00074d10(uVar4,"awkgram.y",param_5,param_3,param_4,param_2,pcVar3);" (call_expression "FUN_00074d10(uVar4,"awkgram.y",param_5,param_3,param_4,param_2,pcVar3)" identifier (argument_list "(uVar4,"awkgram.y",param_5,param_3,param_4,param_2,pcVar3)" ( identifier , (string_literal ""awkgram.y"" " string_content ") , identifier , identifier , identifier , identifier , identifier ))) ;) })) (return_statement "return pvVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid * __regparm3 erealloc_real(void *ptr,size_t count,char *where,char *var,char *file,int line)\n\n{\n  void *pvVar1;\n  int *piVar2;\n  char *pcVar3;\n  char *mesg;\n  \n  if (count == 0) {\n    set_loc("awk.h",0x7e9);\n                    /* WARNING: Subroutine does not return */\n    r_fatal("%s:%d: erealloc called with zero bytes","awkgram.y",file,ptr);\n  }\n  pvVar1 = realloc(ptr,count);\n  if (pvVar1 == (void *)0x0) {\n    set_loc("awk.h",0x7ed);\n    piVar2 = __errno_location();\n    pcVar3 = strerror(*piVar2);\n    mesg = (char *)dcgettext(0,"%s:%d:%s: %s: cannot reallocate %ld bytes of memory: %s",5,pvVar1);\n                    /* WARNING: Subroutine does not return */\n    r_fatal(mesg,"awkgram.y",file,where,var,count,pcVar3);\n  }\n  return pvVar1;\n}\n\n" comment (function_definition "void * __regparm3 erealloc_real(void *ptr,size_t count,char *where,char *var,char *file,int line)\n\n{\n  void *pvVar1;\n  int *piVar2;\n  char *pcVar3;\n  char *mesg;\n  \n  if (count == 0) {\n    set_loc("awk.h",0x7e9);\n                    /* WARNING: Subroutine does not return */\n    r_fatal("%s:%d: erealloc called with zero bytes","awkgram.y",file,ptr);\n  }\n  pvVar1 = realloc(ptr,count);\n  if (pvVar1 == (void *)0x0) {\n    set_loc("awk.h",0x7ed);\n    piVar2 = __errno_location();\n    pcVar3 = strerror(*piVar2);\n    mesg = (char *)dcgettext(0,"%s:%d:%s: %s: cannot reallocate %ld bytes of memory: %s",5,pvVar1);\n                    /* WARNING: Subroutine does not return */\n    r_fatal(mesg,"awkgram.y",file,where,var,count,pcVar3);\n  }\n  return pvVar1;\n}" primitive_type (pointer_declarator "* __regparm3 erealloc_real(void *ptr,size_t count,char *where,char *var,char *file,int line)" * (ERROR "__regparm3" identifier) (function_declarator "erealloc_real(void *ptr,size_t count,char *where,char *var,char *file,int line)" identifier (parameter_list "(void *ptr,size_t count,char *where,char *var,char *file,int line)" ( (parameter_declaration "void *ptr" primitive_type (pointer_declarator "*ptr" * identifier)) , (parameter_declaration "size_t count" primitive_type identifier) , (parameter_declaration "char *where" primitive_type (pointer_declarator "*where" * identifier)) , (parameter_declaration "char *var" primitive_type (pointer_declarator "*var" * identifier)) , (parameter_declaration "char *file" primitive_type (pointer_declarator "*file" * identifier)) , (parameter_declaration "int line" primitive_type identifier) )))) (compound_statement "{\n  void *pvVar1;\n  int *piVar2;\n  char *pcVar3;\n  char *mesg;\n  \n  if (count == 0) {\n    set_loc("awk.h",0x7e9);\n                    /* WARNING: Subroutine does not return */\n    r_fatal("%s:%d: erealloc called with zero bytes","awkgram.y",file,ptr);\n  }\n  pvVar1 = realloc(ptr,count);\n  if (pvVar1 == (void *)0x0) {\n    set_loc("awk.h",0x7ed);\n    piVar2 = __errno_location();\n    pcVar3 = strerror(*piVar2);\n    mesg = (char *)dcgettext(0,"%s:%d:%s: %s: cannot reallocate %ld bytes of memory: %s",5,pvVar1);\n                    /* WARNING: Subroutine does not return */\n    r_fatal(mesg,"awkgram.y",file,where,var,count,pcVar3);\n  }\n  return pvVar1;\n}" { (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char *mesg;" primitive_type (pointer_declarator "*mesg" * identifier) ;) (if_statement "if (count == 0) {\n    set_loc("awk.h",0x7e9);\n                    /* WARNING: Subroutine does not return */\n    r_fatal("%s:%d: erealloc called with zero bytes","awkgram.y",file,ptr);\n  }" if (parenthesized_expression "(count == 0)" ( (binary_expression "count == 0" identifier == number_literal) )) (compound_statement "{\n    set_loc("awk.h",0x7e9);\n                    /* WARNING: Subroutine does not return */\n    r_fatal("%s:%d: erealloc called with zero bytes","awkgram.y",file,ptr);\n  }" { (expression_statement "set_loc("awk.h",0x7e9);" (call_expression "set_loc("awk.h",0x7e9)" identifier (argument_list "("awk.h",0x7e9)" ( (string_literal ""awk.h"" " string_content ") , number_literal ))) ;) comment (expression_statement "r_fatal("%s:%d: erealloc called with zero bytes","awkgram.y",file,ptr);" (call_expression "r_fatal("%s:%d: erealloc called with zero bytes","awkgram.y",file,ptr)" identifier (argument_list "("%s:%d: erealloc called with zero bytes","awkgram.y",file,ptr)" ( (string_literal ""%s:%d: erealloc called with zero bytes"" " string_content ") , (string_literal ""awkgram.y"" " string_content ") , identifier , identifier ))) ;) })) (expression_statement "pvVar1 = realloc(ptr,count);" (assignment_expression "pvVar1 = realloc(ptr,count)" identifier = (call_expression "realloc(ptr,count)" identifier (argument_list "(ptr,count)" ( identifier , identifier )))) ;) (if_statement "if (pvVar1 == (void *)0x0) {\n    set_loc("awk.h",0x7ed);\n    piVar2 = __errno_location();\n    pcVar3 = strerror(*piVar2);\n    mesg = (char *)dcgettext(0,"%s:%d:%s: %s: cannot reallocate %ld bytes of memory: %s",5,pvVar1);\n                    /* WARNING: Subroutine does not return */\n    r_fatal(mesg,"awkgram.y",file,where,var,count,pcVar3);\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    set_loc("awk.h",0x7ed);\n    piVar2 = __errno_location();\n    pcVar3 = strerror(*piVar2);\n    mesg = (char *)dcgettext(0,"%s:%d:%s: %s: cannot reallocate %ld bytes of memory: %s",5,pvVar1);\n                    /* WARNING: Subroutine does not return */\n    r_fatal(mesg,"awkgram.y",file,where,var,count,pcVar3);\n  }" { (expression_statement "set_loc("awk.h",0x7ed);" (call_expression "set_loc("awk.h",0x7ed)" identifier (argument_list "("awk.h",0x7ed)" ( (string_literal ""awk.h"" " string_content ") , number_literal ))) ;) (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar3 = strerror(*piVar2);" (assignment_expression "pcVar3 = strerror(*piVar2)" identifier = (call_expression "strerror(*piVar2)" identifier (argument_list "(*piVar2)" ( (pointer_expression "*piVar2" * identifier) )))) ;) (expression_statement "mesg = (char *)dcgettext(0,"%s:%d:%s: %s: cannot reallocate %ld bytes of memory: %s",5,pvVar1);" (assignment_expression "mesg = (char *)dcgettext(0,"%s:%d:%s: %s: cannot reallocate %ld bytes of memory: %s",5,pvVar1)" identifier = (cast_expression "(char *)dcgettext(0,"%s:%d:%s: %s: cannot reallocate %ld bytes of memory: %s",5,pvVar1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"%s:%d:%s: %s: cannot reallocate %ld bytes of memory: %s",5,pvVar1)" identifier (argument_list "(0,"%s:%d:%s: %s: cannot reallocate %ld bytes of memory: %s",5,pvVar1)" ( number_literal , (string_literal ""%s:%d:%s: %s: cannot reallocate %ld bytes of memory: %s"" " string_content ") , number_literal , identifier ))))) ;) comment (expression_statement "r_fatal(mesg,"awkgram.y",file,where,var,count,pcVar3);" (call_expression "r_fatal(mesg,"awkgram.y",file,where,var,count,pcVar3)" identifier (argument_list "(mesg,"awkgram.y",file,where,var,count,pcVar3)" ( identifier , (string_literal ""awkgram.y"" " string_content ") , identifier , identifier , identifier , identifier , identifier ))) ;) })) (return_statement "return pvVar1;" return identifier ;) })))
(translation_unit "void * __regparm3\nFUN_0001477e(void *param_1,size_t param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5)\n\n{\n  void *pvVar1;\n  int *piVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  \n  if (param_2 == 0) {\n    FUN_00074330("awk.h",0x7e9,param_1,param_1);\n    FUN_00074d10("%s:%d: erealloc called with zero bytes","awkgram.y",param_5);\n  }\n  pvVar1 = realloc(param_1,param_2);\n  if (pvVar1 == (void *)0x0) {\n    FUN_00074330("awk.h",0x7ed,0,0);\n    piVar2 = __errno_location();\n    pcVar3 = strerror(*piVar2);\n    uVar4 = dcgettext(0,"%s:%d:%s: %s: cannot reallocate %ld bytes of memory: %s",5);\n    FUN_00074d10(uVar4,"awkgram.y",param_5,param_3,param_4,param_2,pcVar3);\n  }\n  return pvVar1;\n}\n\n" (function_definition "void * __regparm3\nFUN_0001477e(void *param_1,size_t param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5)\n\n{\n  void *pvVar1;\n  int *piVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  \n  if (param_2 == 0) {\n    FUN_00074330("awk.h",0x7e9,param_1,param_1);\n    FUN_00074d10("%s:%d: erealloc called with zero bytes","awkgram.y",param_5);\n  }\n  pvVar1 = realloc(param_1,param_2);\n  if (pvVar1 == (void *)0x0) {\n    FUN_00074330("awk.h",0x7ed,0,0);\n    piVar2 = __errno_location();\n    pcVar3 = strerror(*piVar2);\n    uVar4 = dcgettext(0,"%s:%d:%s: %s: cannot reallocate %ld bytes of memory: %s",5);\n    FUN_00074d10(uVar4,"awkgram.y",param_5,param_3,param_4,param_2,pcVar3);\n  }\n  return pvVar1;\n}" primitive_type (pointer_declarator "* __regparm3\nFUN_0001477e(void *param_1,size_t param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5)" * (ERROR "__regparm3" identifier) (function_declarator "FUN_0001477e(void *param_1,size_t param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5)" identifier (parameter_list "(void *param_1,size_t param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5)" ( (parameter_declaration "void *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "size_t param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) )))) (compound_statement "{\n  void *pvVar1;\n  int *piVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  \n  if (param_2 == 0) {\n    FUN_00074330("awk.h",0x7e9,param_1,param_1);\n    FUN_00074d10("%s:%d: erealloc called with zero bytes","awkgram.y",param_5);\n  }\n  pvVar1 = realloc(param_1,param_2);\n  if (pvVar1 == (void *)0x0) {\n    FUN_00074330("awk.h",0x7ed,0,0);\n    piVar2 = __errno_location();\n    pcVar3 = strerror(*piVar2);\n    uVar4 = dcgettext(0,"%s:%d:%s: %s: cannot reallocate %ld bytes of memory: %s",5);\n    FUN_00074d10(uVar4,"awkgram.y",param_5,param_3,param_4,param_2,pcVar3);\n  }\n  return pvVar1;\n}" { (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (if_statement "if (param_2 == 0) {\n    FUN_00074330("awk.h",0x7e9,param_1,param_1);\n    FUN_00074d10("%s:%d: erealloc called with zero bytes","awkgram.y",param_5);\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    FUN_00074330("awk.h",0x7e9,param_1,param_1);\n    FUN_00074d10("%s:%d: erealloc called with zero bytes","awkgram.y",param_5);\n  }" { (expression_statement "FUN_00074330("awk.h",0x7e9,param_1,param_1);" (call_expression "FUN_00074330("awk.h",0x7e9,param_1,param_1)" identifier (argument_list "("awk.h",0x7e9,param_1,param_1)" ( (string_literal ""awk.h"" " string_content ") , number_literal , identifier , identifier ))) ;) (expression_statement "FUN_00074d10("%s:%d: erealloc called with zero bytes","awkgram.y",param_5);" (call_expression "FUN_00074d10("%s:%d: erealloc called with zero bytes","awkgram.y",param_5)" identifier (argument_list "("%s:%d: erealloc called with zero bytes","awkgram.y",param_5)" ( (string_literal ""%s:%d: erealloc called with zero bytes"" " string_content ") , (string_literal ""awkgram.y"" " string_content ") , identifier ))) ;) })) (expression_statement "pvVar1 = realloc(param_1,param_2);" (assignment_expression "pvVar1 = realloc(param_1,param_2)" identifier = (call_expression "realloc(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;) (if_statement "if (pvVar1 == (void *)0x0) {\n    FUN_00074330("awk.h",0x7ed,0,0);\n    piVar2 = __errno_location();\n    pcVar3 = strerror(*piVar2);\n    uVar4 = dcgettext(0,"%s:%d:%s: %s: cannot reallocate %ld bytes of memory: %s",5);\n    FUN_00074d10(uVar4,"awkgram.y",param_5,param_3,param_4,param_2,pcVar3);\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    FUN_00074330("awk.h",0x7ed,0,0);\n    piVar2 = __errno_location();\n    pcVar3 = strerror(*piVar2);\n    uVar4 = dcgettext(0,"%s:%d:%s: %s: cannot reallocate %ld bytes of memory: %s",5);\n    FUN_00074d10(uVar4,"awkgram.y",param_5,param_3,param_4,param_2,pcVar3);\n  }" { (expression_statement "FUN_00074330("awk.h",0x7ed,0,0);" (call_expression "FUN_00074330("awk.h",0x7ed,0,0)" identifier (argument_list "("awk.h",0x7ed,0,0)" ( (string_literal ""awk.h"" " string_content ") , number_literal , number_literal , number_literal ))) ;) (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar3 = strerror(*piVar2);" (assignment_expression "pcVar3 = strerror(*piVar2)" identifier = (call_expression "strerror(*piVar2)" identifier (argument_list "(*piVar2)" ( (pointer_expression "*piVar2" * identifier) )))) ;) (expression_statement "uVar4 = dcgettext(0,"%s:%d:%s: %s: cannot reallocate %ld bytes of memory: %s",5);" (assignment_expression "uVar4 = dcgettext(0,"%s:%d:%s: %s: cannot reallocate %ld bytes of memory: %s",5)" identifier = (call_expression "dcgettext(0,"%s:%d:%s: %s: cannot reallocate %ld bytes of memory: %s",5)" identifier (argument_list "(0,"%s:%d:%s: %s: cannot reallocate %ld bytes of memory: %s",5)" ( number_literal , (string_literal ""%s:%d:%s: %s: cannot reallocate %ld bytes of memory: %s"" " string_content ") , number_literal )))) ;) (expression_statement "FUN_00074d10(uVar4,"awkgram.y",param_5,param_3,param_4,param_2,pcVar3);" (call_expression "FUN_00074d10(uVar4,"awkgram.y",param_5,param_3,param_4,param_2,pcVar3)" identifier (argument_list "(uVar4,"awkgram.y",param_5,param_3,param_4,param_2,pcVar3)" ( identifier , (string_literal ""awkgram.y"" " string_content ") , identifier , identifier , identifier , identifier , identifier ))) ;) })) (return_statement "return pvVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , LIT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , IDENT , IDENT , IDENT , IDENT , IDENT ))) ;) })) (return_statement return IDENT ;) })))
(function_definition "void * __regparm3\nFUN_0001477e(void *param_1,size_t param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5)\n\n{\n  void *pvVar1;\n  int *piVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  \n  if (param_2 == 0) {\n    FUN_00074330("awk.h",0x7e9,param_1,param_1);\n    FUN_00074d10("%s:%d: erealloc called with zero bytes","awkgram.y",param_5);\n  }\n  pvVar1 = realloc(param_1,param_2);\n  if (pvVar1 == (void *)0x0) {\n    FUN_00074330("awk.h",0x7ed,0,0);\n    piVar2 = __errno_location();\n    pcVar3 = strerror(*piVar2);\n    uVar4 = dcgettext(0,"%s:%d:%s: %s: cannot reallocate %ld bytes of memory: %s",5);\n    FUN_00074d10(uVar4,"awkgram.y",param_5,param_3,param_4,param_2,pcVar3);\n  }\n  return pvVar1;\n}" (primitive_type "void") (pointer_declarator "* __regparm3\nFUN_0001477e(void *param_1,size_t param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5)" (* "*") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0001477e(void *param_1,size_t param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5)" (identifier "FUN_0001477e") (parameter_list "(void *param_1,size_t param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5)" (( "(") (parameter_declaration "void *param_1" (primitive_type "void") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "size_t param_2" (primitive_type "size_t") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) (, ",") (parameter_declaration "undefined4 param_5" (type_identifier "undefined4") (identifier "param_5")) () ")")))) (compound_statement "{\n  void *pvVar1;\n  int *piVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  \n  if (param_2 == 0) {\n    FUN_00074330("awk.h",0x7e9,param_1,param_1);\n    FUN_00074d10("%s:%d: erealloc called with zero bytes","awkgram.y",param_5);\n  }\n  pvVar1 = realloc(param_1,param_2);\n  if (pvVar1 == (void *)0x0) {\n    FUN_00074330("awk.h",0x7ed,0,0);\n    piVar2 = __errno_location();\n    pcVar3 = strerror(*piVar2);\n    uVar4 = dcgettext(0,"%s:%d:%s: %s: cannot reallocate %ld bytes of memory: %s",5);\n    FUN_00074d10(uVar4,"awkgram.y",param_5,param_3,param_4,param_2,pcVar3);\n  }\n  return pvVar1;\n}" ({ "{") (declaration "void *pvVar1;" (primitive_type "void") (pointer_declarator "*pvVar1" (* "*") (identifier "pvVar1")) (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (if_statement "if (param_2 == 0) {\n    FUN_00074330("awk.h",0x7e9,param_1,param_1);\n    FUN_00074d10("%s:%d: erealloc called with zero bytes","awkgram.y",param_5);\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_00074330("awk.h",0x7e9,param_1,param_1);\n    FUN_00074d10("%s:%d: erealloc called with zero bytes","awkgram.y",param_5);\n  }" ({ "{") (expression_statement "FUN_00074330("awk.h",0x7e9,param_1,param_1);" (call_expression "FUN_00074330("awk.h",0x7e9,param_1,param_1)" (identifier "FUN_00074330") (argument_list "("awk.h",0x7e9,param_1,param_1)" (( "(") (string_literal ""awk.h"" (" """) (string_content "awk.h") (" """)) (, ",") (number_literal "0x7e9") (, ",") (identifier "param_1") (, ",") (identifier "param_1") () ")"))) (; ";")) (expression_statement "FUN_00074d10("%s:%d: erealloc called with zero bytes","awkgram.y",param_5);" (call_expression "FUN_00074d10("%s:%d: erealloc called with zero bytes","awkgram.y",param_5)" (identifier "FUN_00074d10") (argument_list "("%s:%d: erealloc called with zero bytes","awkgram.y",param_5)" (( "(") (string_literal ""%s:%d: erealloc called with zero bytes"" (" """) (string_content "%s:%d: erealloc called with zero bytes") (" """)) (, ",") (string_literal ""awkgram.y"" (" """) (string_content "awkgram.y") (" """)) (, ",") (identifier "param_5") () ")"))) (; ";")) (} "}"))) (expression_statement "pvVar1 = realloc(param_1,param_2);" (assignment_expression "pvVar1 = realloc(param_1,param_2)" (identifier "pvVar1") (= "=") (call_expression "realloc(param_1,param_2)" (identifier "realloc") (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (pvVar1 == (void *)0x0) {\n    FUN_00074330("awk.h",0x7ed,0,0);\n    piVar2 = __errno_location();\n    pcVar3 = strerror(*piVar2);\n    uVar4 = dcgettext(0,"%s:%d:%s: %s: cannot reallocate %ld bytes of memory: %s",5);\n    FUN_00074d10(uVar4,"awkgram.y",param_5,param_3,param_4,param_2,pcVar3);\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    FUN_00074330("awk.h",0x7ed,0,0);\n    piVar2 = __errno_location();\n    pcVar3 = strerror(*piVar2);\n    uVar4 = dcgettext(0,"%s:%d:%s: %s: cannot reallocate %ld bytes of memory: %s",5);\n    FUN_00074d10(uVar4,"awkgram.y",param_5,param_3,param_4,param_2,pcVar3);\n  }" ({ "{") (expression_statement "FUN_00074330("awk.h",0x7ed,0,0);" (call_expression "FUN_00074330("awk.h",0x7ed,0,0)" (identifier "FUN_00074330") (argument_list "("awk.h",0x7ed,0,0)" (( "(") (string_literal ""awk.h"" (" """) (string_content "awk.h") (" """)) (, ",") (number_literal "0x7ed") (, ",") (number_literal "0") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" (identifier "piVar2") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "pcVar3 = strerror(*piVar2);" (assignment_expression "pcVar3 = strerror(*piVar2)" (identifier "pcVar3") (= "=") (call_expression "strerror(*piVar2)" (identifier "strerror") (argument_list "(*piVar2)" (( "(") (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) () ")")))) (; ";")) (expression_statement "uVar4 = dcgettext(0,"%s:%d:%s: %s: cannot reallocate %ld bytes of memory: %s",5);" (assignment_expression "uVar4 = dcgettext(0,"%s:%d:%s: %s: cannot reallocate %ld bytes of memory: %s",5)" (identifier "uVar4") (= "=") (call_expression "dcgettext(0,"%s:%d:%s: %s: cannot reallocate %ld bytes of memory: %s",5)" (identifier "dcgettext") (argument_list "(0,"%s:%d:%s: %s: cannot reallocate %ld bytes of memory: %s",5)" (( "(") (number_literal "0") (, ",") (string_literal ""%s:%d:%s: %s: cannot reallocate %ld bytes of memory: %s"" (" """) (string_content "%s:%d:%s: %s: cannot reallocate %ld bytes of memory: %s") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_00074d10(uVar4,"awkgram.y",param_5,param_3,param_4,param_2,pcVar3);" (call_expression "FUN_00074d10(uVar4,"awkgram.y",param_5,param_3,param_4,param_2,pcVar3)" (identifier "FUN_00074d10") (argument_list "(uVar4,"awkgram.y",param_5,param_3,param_4,param_2,pcVar3)" (( "(") (identifier "uVar4") (, ",") (string_literal ""awkgram.y"" (" """) (string_content "awkgram.y") (" """)) (, ",") (identifier "param_5") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "param_2") (, ",") (identifier "pcVar3") () ")"))) (; ";")) (} "}"))) (return_statement "return pvVar1;" (return "return") (identifier "pvVar1") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void * __regparm3 function_1(void *ptr,size_t var_1,char *where,char *var,char *file,int line)

{
  void *var_5;
  int *piVar2;
  char *pcVar3;
  char *mesg;
  
  if (var_1 == 0) {
    var_2("awk.h",0x7e9);
                    /* WARNING: Subroutine does not return */
    var_3("%s:%d: erealloc called with zero bytes","awkgram.y",file,ptr);
  }
  var_5 = var_4(ptr,var_1);
  if (var_5 == (void *)0x0) {
    var_2("awk.h",0x7ed);
    piVar2 = var_6();
    pcVar3 = var_7(*piVar2);
    mesg = (char *)var_8(0,"%s:%d:%s: %s: cannot reallocate %ld bytes of memory: %s",5,var_5);
                    /* WARNING: Subroutine does not return */
    var_3(mesg,"awkgram.y",file,where,var,var_1,pcVar3);
  }
  return var_5;
}


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

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void * __regparm3
MASKED(void *param_1,size_t param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5)

{
  void *pvVar1;
  int *piVar2;
  char *pcVar3;
  undefined4 uVar4;
  
  if (param_2 == 0) {
    FUN_00074330("awk.h",0x7e9,param_1,param_1);
    FUN_00074d10("%s:%d: erealloc called with zero bytes","awkgram.y",param_5);
  }
  pvVar1 = realloc(param_1,param_2);
  if (pvVar1 == (void *)0x0) {
    FUN_00074330("awk.h",0x7ed,0,0);
    piVar2 = __errno_location();
    pcVar3 = strerror(*piVar2);
    uVar4 = dcgettext(0,"%s:%d:%s: %s: cannot reallocate %ld bytes of memory: %s",5);
    FUN_00074d10(uVar4,"awkgram.y",param_5,param_3,param_4,param_2,pcVar3);
  }
  return pvVar1;
}

