
CMDARG * mk_cmdarg(argtype type)

{
  CMDARG *pCVar1;
  int *piVar2;
  char *pcVar3;
  char *mesg;
  
  pCVar1 = (CMDARG *)calloc(1,0x20);
  if (pCVar1 == (CMDARG *)0x0) {
    set_loc("awk.h",L'ߛ');
    piVar2 = __errno_location();
    pcVar3 = strerror(*piVar2);
    mesg = (char *)dcgettext(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5);
    r_fatal(mesg,"command.y",0x3c1,"mk_cmdarg","arg",0x20,pcVar3);
  }
  pCVar1->type = type;
  return pCVar1;
}



void * FUN_00129f09(undefined4 param_1)

{
  void *pvVar1;
  int *piVar2;
  char *pcVar3;
  undefined8 uVar4;
  
  pvVar1 = calloc(1,0x20);
  if (pvVar1 == (void *)0x0) {
    FUN_00157301("awk.h",0x7db);
    piVar2 = __errno_location();
    pcVar3 = strerror(*piVar2);
    uVar4 = dcgettext(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5);
    FUN_00157844(uVar4,"command.y",0x3c1,"mk_cmdarg","arg",0x20,pcVar3);
  }
  *(undefined4 *)((long)pvVar1 + 8) = param_1;
  return pvVar1;
}


PUSH R12
PUSH RBP
PUSH RBX
MOV EBP,EDI
MOV ESI,0x20
MOV EDI,0x1
CALL 0x00108e00
MOV RBX,RAX
TEST RAX,RAX
JZ 0x00129f31
MOV dword ptr [RBX + 0x8],EBP
MOV RAX,RBX
POP RBX
POP RBP
POP R12
RET
MOV ESI,0x7db
LEA RDI,[0x177186]
CALL 0x00157301
CALL 0x00108a80
MOV EDI,dword ptr [RAX]
CALL 0x00109290
MOV R12,RAX
MOV EDX,0x5
LEA RSI,[0x177338]
MOV EDI,0x0
CALL 0x00108bf0
SUB RSP,0x8
PUSH R12
MOV R9D,0x20
LEA R8,[0x1804bb]
LEA RCX,[0x17c68b]
MOV EDX,0x3c1
LEA RSI,[0x17c695]
MOV RDI,RAX
MOV EAX,0x0
CALL 0x00157844
ADD RSP,0x10
JMP 0x00129f26
(translation_unit "void * FUN_00129f09(undefined4 param_1)\n\n{\n  void *pvVar1;\n  int *piVar2;\n  char *pcVar3;\n  undefined8 uVar4;\n  \n  pvVar1 = calloc(1,0x20);\n  if (pvVar1 == (void *)0x0) {\n    FUN_00157301("awk.h",0x7db);\n    piVar2 = __errno_location();\n    pcVar3 = strerror(*piVar2);\n    uVar4 = dcgettext(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5);\n    FUN_00157844(uVar4,"command.y",0x3c1,"mk_cmdarg","arg",0x20,pcVar3);\n  }\n  *(undefined4 *)((long)pvVar1 + 8) = param_1;\n  return pvVar1;\n}\n\n" (function_definition "void * FUN_00129f09(undefined4 param_1)\n\n{\n  void *pvVar1;\n  int *piVar2;\n  char *pcVar3;\n  undefined8 uVar4;\n  \n  pvVar1 = calloc(1,0x20);\n  if (pvVar1 == (void *)0x0) {\n    FUN_00157301("awk.h",0x7db);\n    piVar2 = __errno_location();\n    pcVar3 = strerror(*piVar2);\n    uVar4 = dcgettext(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5);\n    FUN_00157844(uVar4,"command.y",0x3c1,"mk_cmdarg","arg",0x20,pcVar3);\n  }\n  *(undefined4 *)((long)pvVar1 + 8) = param_1;\n  return pvVar1;\n}" primitive_type (pointer_declarator "* FUN_00129f09(undefined4 param_1)" * (function_declarator "FUN_00129f09(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) )))) (compound_statement "{\n  void *pvVar1;\n  int *piVar2;\n  char *pcVar3;\n  undefined8 uVar4;\n  \n  pvVar1 = calloc(1,0x20);\n  if (pvVar1 == (void *)0x0) {\n    FUN_00157301("awk.h",0x7db);\n    piVar2 = __errno_location();\n    pcVar3 = strerror(*piVar2);\n    uVar4 = dcgettext(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5);\n    FUN_00157844(uVar4,"command.y",0x3c1,"mk_cmdarg","arg",0x20,pcVar3);\n  }\n  *(undefined4 *)((long)pvVar1 + 8) = param_1;\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 "undefined8 uVar4;" type_identifier identifier ;) (expression_statement "pvVar1 = calloc(1,0x20);" (assignment_expression "pvVar1 = calloc(1,0x20)" identifier = (call_expression "calloc(1,0x20)" identifier (argument_list "(1,0x20)" ( number_literal , number_literal )))) ;) (if_statement "if (pvVar1 == (void *)0x0) {\n    FUN_00157301("awk.h",0x7db);\n    piVar2 = __errno_location();\n    pcVar3 = strerror(*piVar2);\n    uVar4 = dcgettext(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5);\n    FUN_00157844(uVar4,"command.y",0x3c1,"mk_cmdarg","arg",0x20,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_00157301("awk.h",0x7db);\n    piVar2 = __errno_location();\n    pcVar3 = strerror(*piVar2);\n    uVar4 = dcgettext(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5);\n    FUN_00157844(uVar4,"command.y",0x3c1,"mk_cmdarg","arg",0x20,pcVar3);\n  }" { (expression_statement "FUN_00157301("awk.h",0x7db);" (call_expression "FUN_00157301("awk.h",0x7db)" identifier (argument_list "("awk.h",0x7db)" ( (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 "uVar4 = dcgettext(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5);" (assignment_expression "uVar4 = dcgettext(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5)" identifier = (call_expression "dcgettext(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5)" identifier (argument_list "(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5)" ( number_literal , (string_literal ""%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s"" " string_content ") , number_literal )))) ;) (expression_statement "FUN_00157844(uVar4,"command.y",0x3c1,"mk_cmdarg","arg",0x20,pcVar3);" (call_expression "FUN_00157844(uVar4,"command.y",0x3c1,"mk_cmdarg","arg",0x20,pcVar3)" identifier (argument_list "(uVar4,"command.y",0x3c1,"mk_cmdarg","arg",0x20,pcVar3)" ( identifier , (string_literal ""command.y"" " string_content ") , number_literal , (string_literal ""mk_cmdarg"" " string_content ") , (string_literal ""arg"" " string_content ") , number_literal , identifier ))) ;) })) (expression_statement "*(undefined4 *)((long)pvVar1 + 8) = param_1;" (assignment_expression "*(undefined4 *)((long)pvVar1 + 8) = param_1" (pointer_expression "*(undefined4 *)((long)pvVar1 + 8)" * (cast_expression "(undefined4 *)((long)pvVar1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)pvVar1 + 8)" ( (binary_expression "(long)pvVar1 + 8" (cast_expression "(long)pvVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = identifier) ;) (return_statement "return pvVar1;" return identifier ;) })))
(translation_unit "CMDARG * mk_cmdarg(argtype type)\n\n{\n  CMDARG *pCVar1;\n  int *piVar2;\n  char *pcVar3;\n  char *mesg;\n  \n  pCVar1 = (CMDARG *)calloc(1,0x20);\n  if (pCVar1 == (CMDARG *)0x0) {\n    set_loc("awk.h",L'ߛ');\n    piVar2 = __errno_location();\n    pcVar3 = strerror(*piVar2);\n    mesg = (char *)dcgettext(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5);\n    r_fatal(mesg,"command.y",0x3c1,"mk_cmdarg","arg",0x20,pcVar3);\n  }\n  pCVar1->type = type;\n  return pCVar1;\n}\n\n" (function_definition "CMDARG * mk_cmdarg(argtype type)\n\n{\n  CMDARG *pCVar1;\n  int *piVar2;\n  char *pcVar3;\n  char *mesg;\n  \n  pCVar1 = (CMDARG *)calloc(1,0x20);\n  if (pCVar1 == (CMDARG *)0x0) {\n    set_loc("awk.h",L'ߛ');\n    piVar2 = __errno_location();\n    pcVar3 = strerror(*piVar2);\n    mesg = (char *)dcgettext(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5);\n    r_fatal(mesg,"command.y",0x3c1,"mk_cmdarg","arg",0x20,pcVar3);\n  }\n  pCVar1->type = type;\n  return pCVar1;\n}" type_identifier (pointer_declarator "* mk_cmdarg(argtype type)" * (function_declarator "mk_cmdarg(argtype type)" identifier (parameter_list "(argtype type)" ( (parameter_declaration "argtype type" type_identifier identifier) )))) (compound_statement "{\n  CMDARG *pCVar1;\n  int *piVar2;\n  char *pcVar3;\n  char *mesg;\n  \n  pCVar1 = (CMDARG *)calloc(1,0x20);\n  if (pCVar1 == (CMDARG *)0x0) {\n    set_loc("awk.h",L'ߛ');\n    piVar2 = __errno_location();\n    pcVar3 = strerror(*piVar2);\n    mesg = (char *)dcgettext(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5);\n    r_fatal(mesg,"command.y",0x3c1,"mk_cmdarg","arg",0x20,pcVar3);\n  }\n  pCVar1->type = type;\n  return pCVar1;\n}" { (declaration "CMDARG *pCVar1;" type_identifier (pointer_declarator "*pCVar1" * 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) ;) (expression_statement "pCVar1 = (CMDARG *)calloc(1,0x20);" (assignment_expression "pCVar1 = (CMDARG *)calloc(1,0x20)" identifier = (cast_expression "(CMDARG *)calloc(1,0x20)" ( (type_descriptor "CMDARG *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "calloc(1,0x20)" identifier (argument_list "(1,0x20)" ( number_literal , number_literal ))))) ;) (if_statement "if (pCVar1 == (CMDARG *)0x0) {\n    set_loc("awk.h",L'ߛ');\n    piVar2 = __errno_location();\n    pcVar3 = strerror(*piVar2);\n    mesg = (char *)dcgettext(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5);\n    r_fatal(mesg,"command.y",0x3c1,"mk_cmdarg","arg",0x20,pcVar3);\n  }" if (parenthesized_expression "(pCVar1 == (CMDARG *)0x0)" ( (binary_expression "pCVar1 == (CMDARG *)0x0" identifier == (cast_expression "(CMDARG *)0x0" ( (type_descriptor "CMDARG *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    set_loc("awk.h",L'ߛ');\n    piVar2 = __errno_location();\n    pcVar3 = strerror(*piVar2);\n    mesg = (char *)dcgettext(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5);\n    r_fatal(mesg,"command.y",0x3c1,"mk_cmdarg","arg",0x20,pcVar3);\n  }" { (expression_statement "set_loc("awk.h",L'ߛ');" (call_expression "set_loc("awk.h",L'ߛ')" identifier (argument_list "("awk.h",L'ߛ')" ( (string_literal ""awk.h"" " string_content ") , (char_literal "L'ߛ'" L' character ') ))) ;) (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 allocate %ld bytes of memory: %s",5);" (assignment_expression "mesg = (char *)dcgettext(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5)" identifier = (cast_expression "(char *)dcgettext(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5)" identifier (argument_list "(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5)" ( number_literal , (string_literal ""%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s"" " string_content ") , number_literal ))))) ;) (expression_statement "r_fatal(mesg,"command.y",0x3c1,"mk_cmdarg","arg",0x20,pcVar3);" (call_expression "r_fatal(mesg,"command.y",0x3c1,"mk_cmdarg","arg",0x20,pcVar3)" identifier (argument_list "(mesg,"command.y",0x3c1,"mk_cmdarg","arg",0x20,pcVar3)" ( identifier , (string_literal ""command.y"" " string_content ") , number_literal , (string_literal ""mk_cmdarg"" " string_content ") , (string_literal ""arg"" " string_content ") , number_literal , identifier ))) ;) })) (expression_statement "pCVar1->type = type;" (assignment_expression "pCVar1->type = type" (field_expression "pCVar1->type" identifier -> field_identifier) = identifier) ;) (return_statement "return pCVar1;" return identifier ;) })))
(translation_unit "void * FUN_00129f09(undefined4 param_1)\n\n{\n  void *pvVar1;\n  int *piVar2;\n  char *pcVar3;\n  undefined8 uVar4;\n  \n  pvVar1 = calloc(1,0x20);\n  if (pvVar1 == (void *)0x0) {\n    FUN_00157301("awk.h",0x7db);\n    piVar2 = __errno_location();\n    pcVar3 = strerror(*piVar2);\n    uVar4 = dcgettext(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5);\n    FUN_00157844(uVar4,"command.y",0x3c1,"mk_cmdarg","arg",0x20,pcVar3);\n  }\n  *(undefined4 *)((long)pvVar1 + 8) = param_1;\n  return pvVar1;\n}\n\n" (function_definition "void * FUN_00129f09(undefined4 param_1)\n\n{\n  void *pvVar1;\n  int *piVar2;\n  char *pcVar3;\n  undefined8 uVar4;\n  \n  pvVar1 = calloc(1,0x20);\n  if (pvVar1 == (void *)0x0) {\n    FUN_00157301("awk.h",0x7db);\n    piVar2 = __errno_location();\n    pcVar3 = strerror(*piVar2);\n    uVar4 = dcgettext(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5);\n    FUN_00157844(uVar4,"command.y",0x3c1,"mk_cmdarg","arg",0x20,pcVar3);\n  }\n  *(undefined4 *)((long)pvVar1 + 8) = param_1;\n  return pvVar1;\n}" primitive_type (pointer_declarator "* FUN_00129f09(undefined4 param_1)" * (function_declarator "FUN_00129f09(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) )))) (compound_statement "{\n  void *pvVar1;\n  int *piVar2;\n  char *pcVar3;\n  undefined8 uVar4;\n  \n  pvVar1 = calloc(1,0x20);\n  if (pvVar1 == (void *)0x0) {\n    FUN_00157301("awk.h",0x7db);\n    piVar2 = __errno_location();\n    pcVar3 = strerror(*piVar2);\n    uVar4 = dcgettext(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5);\n    FUN_00157844(uVar4,"command.y",0x3c1,"mk_cmdarg","arg",0x20,pcVar3);\n  }\n  *(undefined4 *)((long)pvVar1 + 8) = param_1;\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 "undefined8 uVar4;" type_identifier identifier ;) (expression_statement "pvVar1 = calloc(1,0x20);" (assignment_expression "pvVar1 = calloc(1,0x20)" identifier = (call_expression "calloc(1,0x20)" identifier (argument_list "(1,0x20)" ( number_literal , number_literal )))) ;) (if_statement "if (pvVar1 == (void *)0x0) {\n    FUN_00157301("awk.h",0x7db);\n    piVar2 = __errno_location();\n    pcVar3 = strerror(*piVar2);\n    uVar4 = dcgettext(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5);\n    FUN_00157844(uVar4,"command.y",0x3c1,"mk_cmdarg","arg",0x20,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_00157301("awk.h",0x7db);\n    piVar2 = __errno_location();\n    pcVar3 = strerror(*piVar2);\n    uVar4 = dcgettext(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5);\n    FUN_00157844(uVar4,"command.y",0x3c1,"mk_cmdarg","arg",0x20,pcVar3);\n  }" { (expression_statement "FUN_00157301("awk.h",0x7db);" (call_expression "FUN_00157301("awk.h",0x7db)" identifier (argument_list "("awk.h",0x7db)" ( (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 "uVar4 = dcgettext(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5);" (assignment_expression "uVar4 = dcgettext(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5)" identifier = (call_expression "dcgettext(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5)" identifier (argument_list "(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5)" ( number_literal , (string_literal ""%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s"" " string_content ") , number_literal )))) ;) (expression_statement "FUN_00157844(uVar4,"command.y",0x3c1,"mk_cmdarg","arg",0x20,pcVar3);" (call_expression "FUN_00157844(uVar4,"command.y",0x3c1,"mk_cmdarg","arg",0x20,pcVar3)" identifier (argument_list "(uVar4,"command.y",0x3c1,"mk_cmdarg","arg",0x20,pcVar3)" ( identifier , (string_literal ""command.y"" " string_content ") , number_literal , (string_literal ""mk_cmdarg"" " string_content ") , (string_literal ""arg"" " string_content ") , number_literal , identifier ))) ;) })) (expression_statement "*(undefined4 *)((long)pvVar1 + 8) = param_1;" (assignment_expression "*(undefined4 *)((long)pvVar1 + 8) = param_1" (pointer_expression "*(undefined4 *)((long)pvVar1 + 8)" * (cast_expression "(undefined4 *)((long)pvVar1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)pvVar1 + 8)" ( (binary_expression "(long)pvVar1 + 8" (cast_expression "(long)pvVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = identifier) ;) (return_statement "return pvVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , LIT )))) ;) (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 ))) ;) (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 ") , LIT , (string_literal " string_content ") , (string_literal " string_content ") , LIT , IDENT ))) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) = IDENT) ;) (return_statement return IDENT ;) })))
(function_definition "void * FUN_00129f09(undefined4 param_1)\n\n{\n  void *pvVar1;\n  int *piVar2;\n  char *pcVar3;\n  undefined8 uVar4;\n  \n  pvVar1 = calloc(1,0x20);\n  if (pvVar1 == (void *)0x0) {\n    FUN_00157301("awk.h",0x7db);\n    piVar2 = __errno_location();\n    pcVar3 = strerror(*piVar2);\n    uVar4 = dcgettext(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5);\n    FUN_00157844(uVar4,"command.y",0x3c1,"mk_cmdarg","arg",0x20,pcVar3);\n  }\n  *(undefined4 *)((long)pvVar1 + 8) = param_1;\n  return pvVar1;\n}" (primitive_type "void") (pointer_declarator "* FUN_00129f09(undefined4 param_1)" (* "*") (function_declarator "FUN_00129f09(undefined4 param_1)" (identifier "FUN_00129f09") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")")))) (compound_statement "{\n  void *pvVar1;\n  int *piVar2;\n  char *pcVar3;\n  undefined8 uVar4;\n  \n  pvVar1 = calloc(1,0x20);\n  if (pvVar1 == (void *)0x0) {\n    FUN_00157301("awk.h",0x7db);\n    piVar2 = __errno_location();\n    pcVar3 = strerror(*piVar2);\n    uVar4 = dcgettext(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5);\n    FUN_00157844(uVar4,"command.y",0x3c1,"mk_cmdarg","arg",0x20,pcVar3);\n  }\n  *(undefined4 *)((long)pvVar1 + 8) = param_1;\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 "undefined8 uVar4;" (type_identifier "undefined8") (identifier "uVar4") (; ";")) (expression_statement "pvVar1 = calloc(1,0x20);" (assignment_expression "pvVar1 = calloc(1,0x20)" (identifier "pvVar1") (= "=") (call_expression "calloc(1,0x20)" (identifier "calloc") (argument_list "(1,0x20)" (( "(") (number_literal "1") (, ",") (number_literal "0x20") () ")")))) (; ";")) (if_statement "if (pvVar1 == (void *)0x0) {\n    FUN_00157301("awk.h",0x7db);\n    piVar2 = __errno_location();\n    pcVar3 = strerror(*piVar2);\n    uVar4 = dcgettext(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5);\n    FUN_00157844(uVar4,"command.y",0x3c1,"mk_cmdarg","arg",0x20,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_00157301("awk.h",0x7db);\n    piVar2 = __errno_location();\n    pcVar3 = strerror(*piVar2);\n    uVar4 = dcgettext(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5);\n    FUN_00157844(uVar4,"command.y",0x3c1,"mk_cmdarg","arg",0x20,pcVar3);\n  }" ({ "{") (expression_statement "FUN_00157301("awk.h",0x7db);" (call_expression "FUN_00157301("awk.h",0x7db)" (identifier "FUN_00157301") (argument_list "("awk.h",0x7db)" (( "(") (string_literal ""awk.h"" (" """) (string_content "awk.h") (" """)) (, ",") (number_literal "0x7db") () ")"))) (; ";")) (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 allocate %ld bytes of memory: %s",5);" (assignment_expression "uVar4 = dcgettext(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5)" (identifier "uVar4") (= "=") (call_expression "dcgettext(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5)" (identifier "dcgettext") (argument_list "(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5)" (( "(") (number_literal "0") (, ",") (string_literal ""%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s"" (" """) (string_content "%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_00157844(uVar4,"command.y",0x3c1,"mk_cmdarg","arg",0x20,pcVar3);" (call_expression "FUN_00157844(uVar4,"command.y",0x3c1,"mk_cmdarg","arg",0x20,pcVar3)" (identifier "FUN_00157844") (argument_list "(uVar4,"command.y",0x3c1,"mk_cmdarg","arg",0x20,pcVar3)" (( "(") (identifier "uVar4") (, ",") (string_literal ""command.y"" (" """) (string_content "command.y") (" """)) (, ",") (number_literal "0x3c1") (, ",") (string_literal ""mk_cmdarg"" (" """) (string_content "mk_cmdarg") (" """)) (, ",") (string_literal ""arg"" (" """) (string_content "arg") (" """)) (, ",") (number_literal "0x20") (, ",") (identifier "pcVar3") () ")"))) (; ";")) (} "}"))) (expression_statement "*(undefined4 *)((long)pvVar1 + 8) = param_1;" (assignment_expression "*(undefined4 *)((long)pvVar1 + 8) = param_1" (pointer_expression "*(undefined4 *)((long)pvVar1 + 8)" (* "*") (cast_expression "(undefined4 *)((long)pvVar1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)pvVar1 + 8)" (( "(") (binary_expression "(long)pvVar1 + 8" (cast_expression "(long)pvVar1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "pvVar1")) (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "param_1")) (; ";")) (return_statement "return pvVar1;" (return "return") (identifier "pvVar1") (; ";")) (} "}")))

type_1 * function_1(type_2 type)

{
  type_1 *var_2;
  int *piVar2;
  char *pcVar3;
  char *mesg;
  
  var_2 = (type_1 *)var_1(1,0x20);
  if (var_2 == (type_1 *)0x0) {
    var_3("awk.h",L'ߛ');
    piVar2 = var_4();
    pcVar3 = var_5(*piVar2);
    mesg = (char *)var_6(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5);
    var_7(mesg,"command.y",0x3c1,"mk_cmdarg","arg",0x20,pcVar3);
  }
  var_2->type = type;
  return var_2;
}


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

void * MASKED(undefined4 param_1)

{
  void *pvVar1;
  int *piVar2;
  char *pcVar3;
  undefined8 uVar4;
  
  pvVar1 = calloc(1,0x20);
  if (pvVar1 == (void *)0x0) {
    FUN_00157301("awk.h",0x7db);
    piVar2 = __errno_location();
    pcVar3 = strerror(*piVar2);
    uVar4 = dcgettext(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5);
    FUN_00157844(uVar4,"command.y",0x3c1,"mk_cmdarg","arg",0x20,pcVar3);
  }
  *(undefined4 *)((long)pvVar1 + 8) = param_1;
  return pvVar1;
}

