
NODE * wstr2str(NODE *n)

{
  long lVar1;
  char *pcVar2;
  int *piVar3;
  char *mesg;
  char *pcVar4;
  size_t sVar5;
  size_t sVar6;
  wchar_t *pwVar7;
  long in_FS_OFFSET;
  mbstate_t mbs;
  
  lVar1 = *(long *)(in_FS_OFFSET + 0x28);
  mbs.__count = 0;
  mbs.__value = (anon_union_4_2_91654ee9_for___value)0x0;
  sVar5 = (n->sub).val.wslen;
  sVar6 = (long)gawk_mb_cur_max * sVar5 + 1;
  if (sVar6 == 0) {
    set_loc("awk.h",L'߅');
    r_fatal("%s:%d: emalloc called with zero bytes","node.c",0x35a);
  }
  pcVar2 = (char *)malloc(sVar6);
  if (pcVar2 == (char *)0x0) {
    set_loc("awk.h",L'߉');
    piVar3 = __errno_location();
    pcVar4 = strerror(*piVar3);
    mesg = (char *)dcgettext(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5);
    r_fatal(mesg,"node.c",0x35a,&DAT_00184348,"newval",sVar6,pcVar4);
  }
  pwVar7 = (n->sub).val.wsp;
  pcVar4 = pcVar2;
  while ((sVar5 != 0 &&
         (sVar6 = wcrtomb(pcVar4,*pwVar7,(mbstate_t *)&mbs), sVar6 != 0xffffffffffffffff))) {
    pcVar4 = pcVar4 + sVar6;
    pwVar7 = pwVar7 + 1;
    sVar5 = sVar5 - 1;
  }
  *pcVar4 = '\0';
  free((n->sub).val.sp);
  (n->sub).val.sp = pcVar2;
  (n->sub).val.slen = (long)pcVar4 - (long)pcVar2;
  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {
    return n;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}



long FUN_001580fe(long param_1)

{
  char *pcVar1;
  int *piVar2;
  undefined8 uVar3;
  char *pcVar4;
  long lVar5;
  size_t sVar6;
  wchar_t *pwVar7;
  long in_FS_OFFSET;
  mbstate_t local_48;
  long local_40;
  
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  local_48.__count = 0;
  local_48.__value = (_union_27)0x0;
  lVar5 = *(long *)(param_1 + 0x30);
  sVar6 = DAT_0039de00 * lVar5 + 1;
  if (sVar6 == 0) {
    FUN_00157301("awk.h",0x7c5);
    FUN_00157844("%s:%d: emalloc called with zero bytes","node.c",0x35a);
  }
  pcVar1 = (char *)malloc(sVar6);
  if (pcVar1 == (char *)0x0) {
    FUN_00157301("awk.h",0x7c9);
    piVar2 = __errno_location();
    pcVar4 = strerror(*piVar2);
    uVar3 = dcgettext(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5);
    FUN_00157844(uVar3,"node.c",0x35a,&DAT_00184348,"newval",sVar6,pcVar4);
  }
  pwVar7 = *(wchar_t **)(param_1 + 0x28);
  pcVar4 = pcVar1;
  while ((lVar5 != 0 && (sVar6 = wcrtomb(pcVar4,*pwVar7,&local_48), sVar6 != 0xffffffffffffffff))) {
    pcVar4 = pcVar4 + sVar6;
    pwVar7 = pwVar7 + 1;
    lVar5 = lVar5 + -1;
  }
  *pcVar4 = '\0';
  free(*(void **)(param_1 + 8));
  *(char **)(param_1 + 8) = pcVar1;
  *(long *)(param_1 + 0x10) = (long)pcVar4 - (long)pcVar1;
  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {
    return param_1;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}


PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x18
MOV R14,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RSP + 0x8],RAX
XOR EAX,EAX
MOV qword ptr [RSP],0x0
MOV RBP,qword ptr [RDI + 0x30]
MOVSXD RDI,dword ptr [0x0039de00]
IMUL RDI,RBP
ADD RDI,0x1
MOV RBX,RDI
JZ 0x001581c9
MOV RDI,RBX
CALL 0x00108f10
MOV R15,RAX
TEST RAX,RAX
JZ 0x001581fc
MOV R12,qword ptr [R14 + 0x28]
TEST RBP,RBP
JZ 0x0015826b
MOV RBX,R15
MOV R13,RSP
MOV RDX,R13
MOV ESI,dword ptr [R12]
MOV RDI,RBX
CALL 0x00108f30
CMP RAX,-0x1
JZ 0x0015818c
ADD RBX,RAX
ADD R12,0x4
SUB RBP,0x1
JNZ 0x0015816a
MOV byte ptr [RBX],0x0
MOV RDI,qword ptr [R14 + 0x8]
CALL 0x00108a20
MOV qword ptr [R14 + 0x8],R15
SUB RBX,R15
MOV qword ptr [R14 + 0x10],RBX
MOV RAX,R14
MOV RCX,qword ptr [RSP + 0x8]
XOR RCX,qword ptr FS:[0x28]
JNZ 0x00158273
ADD RSP,0x18
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
MOV ESI,0x7c5
LEA RDI,[0x177186]
CALL 0x00157301
MOV EDX,0x35a
LEA RSI,[0x18433a]
LEA RDI,[0x177310]
MOV EAX,0x0
CALL 0x00157844
JMP 0x00158143
MOV ESI,0x7c9
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 R9,RBX
LEA R8,[0x184341]
LEA RCX,[0x184348]
MOV EDX,0x35a
LEA RSI,[0x18433a]
MOV RDI,RAX
MOV EAX,0x0
CALL 0x00157844
ADD RSP,0x10
JMP 0x00158157
MOV RBX,R15
JMP 0x0015818c
CALL 0x00108c10
(translation_unit "long FUN_001580fe(long param_1)\n\n{\n  char *pcVar1;\n  int *piVar2;\n  undefined8 uVar3;\n  char *pcVar4;\n  long lVar5;\n  size_t sVar6;\n  wchar_t *pwVar7;\n  long in_FS_OFFSET;\n  mbstate_t local_48;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  local_48.__count = 0;\n  local_48.__value = (_union_27)0x0;\n  lVar5 = *(long *)(param_1 + 0x30);\n  sVar6 = DAT_0039de00 * lVar5 + 1;\n  if (sVar6 == 0) {\n    FUN_00157301("awk.h",0x7c5);\n    FUN_00157844("%s:%d: emalloc called with zero bytes","node.c",0x35a);\n  }\n  pcVar1 = (char *)malloc(sVar6);\n  if (pcVar1 == (char *)0x0) {\n    FUN_00157301("awk.h",0x7c9);\n    piVar2 = __errno_location();\n    pcVar4 = strerror(*piVar2);\n    uVar3 = dcgettext(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5);\n    FUN_00157844(uVar3,"node.c",0x35a,&DAT_00184348,"newval",sVar6,pcVar4);\n  }\n  pwVar7 = *(wchar_t **)(param_1 + 0x28);\n  pcVar4 = pcVar1;\n  while ((lVar5 != 0 && (sVar6 = wcrtomb(pcVar4,*pwVar7,&local_48), sVar6 != 0xffffffffffffffff))) {\n    pcVar4 = pcVar4 + sVar6;\n    pwVar7 = pwVar7 + 1;\n    lVar5 = lVar5 + -1;\n  }\n  *pcVar4 = '\0';\n  free(*(void **)(param_1 + 8));\n  *(char **)(param_1 + 8) = pcVar1;\n  *(long *)(param_1 + 0x10) = (long)pcVar4 - (long)pcVar1;\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return param_1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" (function_definition "long FUN_001580fe(long param_1)\n\n{\n  char *pcVar1;\n  int *piVar2;\n  undefined8 uVar3;\n  char *pcVar4;\n  long lVar5;\n  size_t sVar6;\n  wchar_t *pwVar7;\n  long in_FS_OFFSET;\n  mbstate_t local_48;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  local_48.__count = 0;\n  local_48.__value = (_union_27)0x0;\n  lVar5 = *(long *)(param_1 + 0x30);\n  sVar6 = DAT_0039de00 * lVar5 + 1;\n  if (sVar6 == 0) {\n    FUN_00157301("awk.h",0x7c5);\n    FUN_00157844("%s:%d: emalloc called with zero bytes","node.c",0x35a);\n  }\n  pcVar1 = (char *)malloc(sVar6);\n  if (pcVar1 == (char *)0x0) {\n    FUN_00157301("awk.h",0x7c9);\n    piVar2 = __errno_location();\n    pcVar4 = strerror(*piVar2);\n    uVar3 = dcgettext(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5);\n    FUN_00157844(uVar3,"node.c",0x35a,&DAT_00184348,"newval",sVar6,pcVar4);\n  }\n  pwVar7 = *(wchar_t **)(param_1 + 0x28);\n  pcVar4 = pcVar1;\n  while ((lVar5 != 0 && (sVar6 = wcrtomb(pcVar4,*pwVar7,&local_48), sVar6 != 0xffffffffffffffff))) {\n    pcVar4 = pcVar4 + sVar6;\n    pwVar7 = pwVar7 + 1;\n    lVar5 = lVar5 + -1;\n  }\n  *pcVar4 = '\0';\n  free(*(void **)(param_1 + 8));\n  *(char **)(param_1 + 8) = pcVar1;\n  *(long *)(param_1 + 0x10) = (long)pcVar4 - (long)pcVar1;\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return param_1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" (sized_type_specifier "long" long) (function_declarator "FUN_001580fe(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  char *pcVar1;\n  int *piVar2;\n  undefined8 uVar3;\n  char *pcVar4;\n  long lVar5;\n  size_t sVar6;\n  wchar_t *pwVar7;\n  long in_FS_OFFSET;\n  mbstate_t local_48;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  local_48.__count = 0;\n  local_48.__value = (_union_27)0x0;\n  lVar5 = *(long *)(param_1 + 0x30);\n  sVar6 = DAT_0039de00 * lVar5 + 1;\n  if (sVar6 == 0) {\n    FUN_00157301("awk.h",0x7c5);\n    FUN_00157844("%s:%d: emalloc called with zero bytes","node.c",0x35a);\n  }\n  pcVar1 = (char *)malloc(sVar6);\n  if (pcVar1 == (char *)0x0) {\n    FUN_00157301("awk.h",0x7c9);\n    piVar2 = __errno_location();\n    pcVar4 = strerror(*piVar2);\n    uVar3 = dcgettext(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5);\n    FUN_00157844(uVar3,"node.c",0x35a,&DAT_00184348,"newval",sVar6,pcVar4);\n  }\n  pwVar7 = *(wchar_t **)(param_1 + 0x28);\n  pcVar4 = pcVar1;\n  while ((lVar5 != 0 && (sVar6 = wcrtomb(pcVar4,*pwVar7,&local_48), sVar6 != 0xffffffffffffffff))) {\n    pcVar4 = pcVar4 + sVar6;\n    pwVar7 = pwVar7 + 1;\n    lVar5 = lVar5 + -1;\n  }\n  *pcVar4 = '\0';\n  free(*(void **)(param_1 + 8));\n  *(char **)(param_1 + 8) = pcVar1;\n  *(long *)(param_1 + 0x10) = (long)pcVar4 - (long)pcVar1;\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return param_1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (declaration "size_t sVar6;" primitive_type identifier ;) (declaration "wchar_t *pwVar7;" type_identifier (pointer_declarator "*pwVar7" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "mbstate_t local_48;" type_identifier identifier ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "local_48.__count = 0;" (assignment_expression "local_48.__count = 0" (field_expression "local_48.__count" identifier . field_identifier) = number_literal) ;) (expression_statement "local_48.__value = (_union_27)0x0;" (assignment_expression "local_48.__value = (_union_27)0x0" (field_expression "local_48.__value" identifier . field_identifier) = (cast_expression "(_union_27)0x0" ( (type_descriptor "_union_27" type_identifier) ) number_literal)) ;) (expression_statement "lVar5 = *(long *)(param_1 + 0x30);" (assignment_expression "lVar5 = *(long *)(param_1 + 0x30)" identifier = (pointer_expression "*(long *)(param_1 + 0x30)" * (cast_expression "(long *)(param_1 + 0x30)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) ))))) ;) (expression_statement "sVar6 = DAT_0039de00 * lVar5 + 1;" (assignment_expression "sVar6 = DAT_0039de00 * lVar5 + 1" identifier = (binary_expression "DAT_0039de00 * lVar5 + 1" (binary_expression "DAT_0039de00 * lVar5" identifier * identifier) + number_literal)) ;) (if_statement "if (sVar6 == 0) {\n    FUN_00157301("awk.h",0x7c5);\n    FUN_00157844("%s:%d: emalloc called with zero bytes","node.c",0x35a);\n  }" if (parenthesized_expression "(sVar6 == 0)" ( (binary_expression "sVar6 == 0" identifier == number_literal) )) (compound_statement "{\n    FUN_00157301("awk.h",0x7c5);\n    FUN_00157844("%s:%d: emalloc called with zero bytes","node.c",0x35a);\n  }" { (expression_statement "FUN_00157301("awk.h",0x7c5);" (call_expression "FUN_00157301("awk.h",0x7c5)" identifier (argument_list "("awk.h",0x7c5)" ( (string_literal ""awk.h"" " string_content ") , number_literal ))) ;) (expression_statement "FUN_00157844("%s:%d: emalloc called with zero bytes","node.c",0x35a);" (call_expression "FUN_00157844("%s:%d: emalloc called with zero bytes","node.c",0x35a)" identifier (argument_list "("%s:%d: emalloc called with zero bytes","node.c",0x35a)" ( (string_literal ""%s:%d: emalloc called with zero bytes"" " string_content ") , (string_literal ""node.c"" " string_content ") , number_literal ))) ;) })) (expression_statement "pcVar1 = (char *)malloc(sVar6);" (assignment_expression "pcVar1 = (char *)malloc(sVar6)" identifier = (cast_expression "(char *)malloc(sVar6)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(sVar6)" identifier (argument_list "(sVar6)" ( identifier ))))) ;) (if_statement "if (pcVar1 == (char *)0x0) {\n    FUN_00157301("awk.h",0x7c9);\n    piVar2 = __errno_location();\n    pcVar4 = strerror(*piVar2);\n    uVar3 = dcgettext(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5);\n    FUN_00157844(uVar3,"node.c",0x35a,&DAT_00184348,"newval",sVar6,pcVar4);\n  }" if (parenthesized_expression "(pcVar1 == (char *)0x0)" ( (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    FUN_00157301("awk.h",0x7c9);\n    piVar2 = __errno_location();\n    pcVar4 = strerror(*piVar2);\n    uVar3 = dcgettext(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5);\n    FUN_00157844(uVar3,"node.c",0x35a,&DAT_00184348,"newval",sVar6,pcVar4);\n  }" { (expression_statement "FUN_00157301("awk.h",0x7c9);" (call_expression "FUN_00157301("awk.h",0x7c9)" identifier (argument_list "("awk.h",0x7c9)" ( (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 "pcVar4 = strerror(*piVar2);" (assignment_expression "pcVar4 = strerror(*piVar2)" identifier = (call_expression "strerror(*piVar2)" identifier (argument_list "(*piVar2)" ( (pointer_expression "*piVar2" * identifier) )))) ;) (expression_statement "uVar3 = dcgettext(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5);" (assignment_expression "uVar3 = 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(uVar3,"node.c",0x35a,&DAT_00184348,"newval",sVar6,pcVar4);" (call_expression "FUN_00157844(uVar3,"node.c",0x35a,&DAT_00184348,"newval",sVar6,pcVar4)" identifier (argument_list "(uVar3,"node.c",0x35a,&DAT_00184348,"newval",sVar6,pcVar4)" ( identifier , (string_literal ""node.c"" " string_content ") , number_literal , (pointer_expression "&DAT_00184348" & identifier) , (string_literal ""newval"" " string_content ") , identifier , identifier ))) ;) })) (expression_statement "pwVar7 = *(wchar_t **)(param_1 + 0x28);" (assignment_expression "pwVar7 = *(wchar_t **)(param_1 + 0x28)" identifier = (pointer_expression "*(wchar_t **)(param_1 + 0x28)" * (cast_expression "(wchar_t **)(param_1 + 0x28)" ( (type_descriptor "wchar_t **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "pcVar4 = pcVar1;" (assignment_expression "pcVar4 = pcVar1" identifier = identifier) ;) (while_statement "while ((lVar5 != 0 && (sVar6 = wcrtomb(pcVar4,*pwVar7,&local_48), sVar6 != 0xffffffffffffffff))) {\n    pcVar4 = pcVar4 + sVar6;\n    pwVar7 = pwVar7 + 1;\n    lVar5 = lVar5 + -1;\n  }" while (parenthesized_expression "((lVar5 != 0 && (sVar6 = wcrtomb(pcVar4,*pwVar7,&local_48), sVar6 != 0xffffffffffffffff)))" ( (parenthesized_expression "(lVar5 != 0 && (sVar6 = wcrtomb(pcVar4,*pwVar7,&local_48), sVar6 != 0xffffffffffffffff))" ( (binary_expression "lVar5 != 0 && (sVar6 = wcrtomb(pcVar4,*pwVar7,&local_48), sVar6 != 0xffffffffffffffff)" (binary_expression "lVar5 != 0" identifier != number_literal) && (parenthesized_expression "(sVar6 = wcrtomb(pcVar4,*pwVar7,&local_48), sVar6 != 0xffffffffffffffff)" ( (comma_expression "sVar6 = wcrtomb(pcVar4,*pwVar7,&local_48), sVar6 != 0xffffffffffffffff" (assignment_expression "sVar6 = wcrtomb(pcVar4,*pwVar7,&local_48)" identifier = (call_expression "wcrtomb(pcVar4,*pwVar7,&local_48)" identifier (argument_list "(pcVar4,*pwVar7,&local_48)" ( identifier , (pointer_expression "*pwVar7" * identifier) , (pointer_expression "&local_48" & identifier) )))) , (binary_expression "sVar6 != 0xffffffffffffffff" identifier != number_literal)) ))) )) )) (compound_statement "{\n    pcVar4 = pcVar4 + sVar6;\n    pwVar7 = pwVar7 + 1;\n    lVar5 = lVar5 + -1;\n  }" { (expression_statement "pcVar4 = pcVar4 + sVar6;" (assignment_expression "pcVar4 = pcVar4 + sVar6" identifier = (binary_expression "pcVar4 + sVar6" identifier + identifier)) ;) (expression_statement "pwVar7 = pwVar7 + 1;" (assignment_expression "pwVar7 = pwVar7 + 1" identifier = (binary_expression "pwVar7 + 1" identifier + number_literal)) ;) (expression_statement "lVar5 = lVar5 + -1;" (assignment_expression "lVar5 = lVar5 + -1" identifier = (binary_expression "lVar5 + -1" identifier + number_literal)) ;) })) (expression_statement "*pcVar4 = '\0';" (assignment_expression "*pcVar4 = '\0'" (pointer_expression "*pcVar4" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "free(*(void **)(param_1 + 8));" (call_expression "free(*(void **)(param_1 + 8))" identifier (argument_list "(*(void **)(param_1 + 8))" ( (pointer_expression "*(void **)(param_1 + 8)" * (cast_expression "(void **)(param_1 + 8)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) ))) ;) (expression_statement "*(char **)(param_1 + 8) = pcVar1;" (assignment_expression "*(char **)(param_1 + 8) = pcVar1" (pointer_expression "*(char **)(param_1 + 8)" * (cast_expression "(char **)(param_1 + 8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(long *)(param_1 + 0x10) = (long)pcVar4 - (long)pcVar1;" (assignment_expression "*(long *)(param_1 + 0x10) = (long)pcVar4 - (long)pcVar1" (pointer_expression "*(long *)(param_1 + 0x10)" * (cast_expression "(long *)(param_1 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = (binary_expression "(long)pcVar4 - (long)pcVar1" (cast_expression "(long)pcVar4" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - (cast_expression "(long)pcVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (if_statement "if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return param_1;\n  }" if (parenthesized_expression "(local_40 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_40 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return param_1;\n  }" { (return_statement "return param_1;" return identifier ;) })) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "NODE * wstr2str(NODE *n)\n\n{\n  long lVar1;\n  char *pcVar2;\n  int *piVar3;\n  char *mesg;\n  char *pcVar4;\n  size_t sVar5;\n  size_t sVar6;\n  wchar_t *pwVar7;\n  long in_FS_OFFSET;\n  mbstate_t mbs;\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  mbs.__count = 0;\n  mbs.__value = (anon_union_4_2_91654ee9_for___value)0x0;\n  sVar5 = (n->sub).val.wslen;\n  sVar6 = (long)gawk_mb_cur_max * sVar5 + 1;\n  if (sVar6 == 0) {\n    set_loc("awk.h",L'߅');\n    r_fatal("%s:%d: emalloc called with zero bytes","node.c",0x35a);\n  }\n  pcVar2 = (char *)malloc(sVar6);\n  if (pcVar2 == (char *)0x0) {\n    set_loc("awk.h",L'߉');\n    piVar3 = __errno_location();\n    pcVar4 = strerror(*piVar3);\n    mesg = (char *)dcgettext(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5);\n    r_fatal(mesg,"node.c",0x35a,&DAT_00184348,"newval",sVar6,pcVar4);\n  }\n  pwVar7 = (n->sub).val.wsp;\n  pcVar4 = pcVar2;\n  while ((sVar5 != 0 &&\n         (sVar6 = wcrtomb(pcVar4,*pwVar7,(mbstate_t *)&mbs), sVar6 != 0xffffffffffffffff))) {\n    pcVar4 = pcVar4 + sVar6;\n    pwVar7 = pwVar7 + 1;\n    sVar5 = sVar5 - 1;\n  }\n  *pcVar4 = '\0';\n  free((n->sub).val.sp);\n  (n->sub).val.sp = pcVar2;\n  (n->sub).val.slen = (long)pcVar4 - (long)pcVar2;\n  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return n;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" (function_definition "NODE * wstr2str(NODE *n)\n\n{\n  long lVar1;\n  char *pcVar2;\n  int *piVar3;\n  char *mesg;\n  char *pcVar4;\n  size_t sVar5;\n  size_t sVar6;\n  wchar_t *pwVar7;\n  long in_FS_OFFSET;\n  mbstate_t mbs;\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  mbs.__count = 0;\n  mbs.__value = (anon_union_4_2_91654ee9_for___value)0x0;\n  sVar5 = (n->sub).val.wslen;\n  sVar6 = (long)gawk_mb_cur_max * sVar5 + 1;\n  if (sVar6 == 0) {\n    set_loc("awk.h",L'߅');\n    r_fatal("%s:%d: emalloc called with zero bytes","node.c",0x35a);\n  }\n  pcVar2 = (char *)malloc(sVar6);\n  if (pcVar2 == (char *)0x0) {\n    set_loc("awk.h",L'߉');\n    piVar3 = __errno_location();\n    pcVar4 = strerror(*piVar3);\n    mesg = (char *)dcgettext(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5);\n    r_fatal(mesg,"node.c",0x35a,&DAT_00184348,"newval",sVar6,pcVar4);\n  }\n  pwVar7 = (n->sub).val.wsp;\n  pcVar4 = pcVar2;\n  while ((sVar5 != 0 &&\n         (sVar6 = wcrtomb(pcVar4,*pwVar7,(mbstate_t *)&mbs), sVar6 != 0xffffffffffffffff))) {\n    pcVar4 = pcVar4 + sVar6;\n    pwVar7 = pwVar7 + 1;\n    sVar5 = sVar5 - 1;\n  }\n  *pcVar4 = '\0';\n  free((n->sub).val.sp);\n  (n->sub).val.sp = pcVar2;\n  (n->sub).val.slen = (long)pcVar4 - (long)pcVar2;\n  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return n;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" type_identifier (pointer_declarator "* wstr2str(NODE *n)" * (function_declarator "wstr2str(NODE *n)" identifier (parameter_list "(NODE *n)" ( (parameter_declaration "NODE *n" type_identifier (pointer_declarator "*n" * identifier)) )))) (compound_statement "{\n  long lVar1;\n  char *pcVar2;\n  int *piVar3;\n  char *mesg;\n  char *pcVar4;\n  size_t sVar5;\n  size_t sVar6;\n  wchar_t *pwVar7;\n  long in_FS_OFFSET;\n  mbstate_t mbs;\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  mbs.__count = 0;\n  mbs.__value = (anon_union_4_2_91654ee9_for___value)0x0;\n  sVar5 = (n->sub).val.wslen;\n  sVar6 = (long)gawk_mb_cur_max * sVar5 + 1;\n  if (sVar6 == 0) {\n    set_loc("awk.h",L'߅');\n    r_fatal("%s:%d: emalloc called with zero bytes","node.c",0x35a);\n  }\n  pcVar2 = (char *)malloc(sVar6);\n  if (pcVar2 == (char *)0x0) {\n    set_loc("awk.h",L'߉');\n    piVar3 = __errno_location();\n    pcVar4 = strerror(*piVar3);\n    mesg = (char *)dcgettext(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5);\n    r_fatal(mesg,"node.c",0x35a,&DAT_00184348,"newval",sVar6,pcVar4);\n  }\n  pwVar7 = (n->sub).val.wsp;\n  pcVar4 = pcVar2;\n  while ((sVar5 != 0 &&\n         (sVar6 = wcrtomb(pcVar4,*pwVar7,(mbstate_t *)&mbs), sVar6 != 0xffffffffffffffff))) {\n    pcVar4 = pcVar4 + sVar6;\n    pwVar7 = pwVar7 + 1;\n    sVar5 = sVar5 - 1;\n  }\n  *pcVar4 = '\0';\n  free((n->sub).val.sp);\n  (n->sub).val.sp = pcVar2;\n  (n->sub).val.slen = (long)pcVar4 - (long)pcVar2;\n  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return n;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "char *mesg;" primitive_type (pointer_declarator "*mesg" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "size_t sVar5;" primitive_type identifier ;) (declaration "size_t sVar6;" primitive_type identifier ;) (declaration "wchar_t *pwVar7;" type_identifier (pointer_declarator "*pwVar7" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "mbstate_t mbs;" type_identifier identifier ;) (expression_statement "lVar1 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "lVar1 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "mbs.__count = 0;" (assignment_expression "mbs.__count = 0" (field_expression "mbs.__count" identifier . field_identifier) = number_literal) ;) (expression_statement "mbs.__value = (anon_union_4_2_91654ee9_for___value)0x0;" (assignment_expression "mbs.__value = (anon_union_4_2_91654ee9_for___value)0x0" (field_expression "mbs.__value" identifier . field_identifier) = (cast_expression "(anon_union_4_2_91654ee9_for___value)0x0" ( (type_descriptor "anon_union_4_2_91654ee9_for___value" type_identifier) ) number_literal)) ;) (expression_statement "sVar5 = (n->sub).val.wslen;" (assignment_expression "sVar5 = (n->sub).val.wslen" identifier = (field_expression "(n->sub).val.wslen" (field_expression "(n->sub).val" (parenthesized_expression "(n->sub)" ( (field_expression "n->sub" identifier -> field_identifier) )) . field_identifier) . field_identifier)) ;) (expression_statement "sVar6 = (long)gawk_mb_cur_max * sVar5 + 1;" (assignment_expression "sVar6 = (long)gawk_mb_cur_max * sVar5 + 1" identifier = (binary_expression "(long)gawk_mb_cur_max * sVar5 + 1" (binary_expression "(long)gawk_mb_cur_max * sVar5" (cast_expression "(long)gawk_mb_cur_max" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * identifier) + number_literal)) ;) (if_statement "if (sVar6 == 0) {\n    set_loc("awk.h",L'߅');\n    r_fatal("%s:%d: emalloc called with zero bytes","node.c",0x35a);\n  }" if (parenthesized_expression "(sVar6 == 0)" ( (binary_expression "sVar6 == 0" identifier == number_literal) )) (compound_statement "{\n    set_loc("awk.h",L'߅');\n    r_fatal("%s:%d: emalloc called with zero bytes","node.c",0x35a);\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 "r_fatal("%s:%d: emalloc called with zero bytes","node.c",0x35a);" (call_expression "r_fatal("%s:%d: emalloc called with zero bytes","node.c",0x35a)" identifier (argument_list "("%s:%d: emalloc called with zero bytes","node.c",0x35a)" ( (string_literal ""%s:%d: emalloc called with zero bytes"" " string_content ") , (string_literal ""node.c"" " string_content ") , number_literal ))) ;) })) (expression_statement "pcVar2 = (char *)malloc(sVar6);" (assignment_expression "pcVar2 = (char *)malloc(sVar6)" identifier = (cast_expression "(char *)malloc(sVar6)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(sVar6)" identifier (argument_list "(sVar6)" ( identifier ))))) ;) (if_statement "if (pcVar2 == (char *)0x0) {\n    set_loc("awk.h",L'߉');\n    piVar3 = __errno_location();\n    pcVar4 = strerror(*piVar3);\n    mesg = (char *)dcgettext(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5);\n    r_fatal(mesg,"node.c",0x35a,&DAT_00184348,"newval",sVar6,pcVar4);\n  }" if (parenthesized_expression "(pcVar2 == (char *)0x0)" ( (binary_expression "pcVar2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    set_loc("awk.h",L'߉');\n    piVar3 = __errno_location();\n    pcVar4 = strerror(*piVar3);\n    mesg = (char *)dcgettext(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5);\n    r_fatal(mesg,"node.c",0x35a,&DAT_00184348,"newval",sVar6,pcVar4);\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 "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar4 = strerror(*piVar3);" (assignment_expression "pcVar4 = strerror(*piVar3)" identifier = (call_expression "strerror(*piVar3)" identifier (argument_list "(*piVar3)" ( (pointer_expression "*piVar3" * 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,"node.c",0x35a,&DAT_00184348,"newval",sVar6,pcVar4);" (call_expression "r_fatal(mesg,"node.c",0x35a,&DAT_00184348,"newval",sVar6,pcVar4)" identifier (argument_list "(mesg,"node.c",0x35a,&DAT_00184348,"newval",sVar6,pcVar4)" ( identifier , (string_literal ""node.c"" " string_content ") , number_literal , (pointer_expression "&DAT_00184348" & identifier) , (string_literal ""newval"" " string_content ") , identifier , identifier ))) ;) })) (expression_statement "pwVar7 = (n->sub).val.wsp;" (assignment_expression "pwVar7 = (n->sub).val.wsp" identifier = (field_expression "(n->sub).val.wsp" (field_expression "(n->sub).val" (parenthesized_expression "(n->sub)" ( (field_expression "n->sub" identifier -> field_identifier) )) . field_identifier) . field_identifier)) ;) (expression_statement "pcVar4 = pcVar2;" (assignment_expression "pcVar4 = pcVar2" identifier = identifier) ;) (while_statement "while ((sVar5 != 0 &&\n         (sVar6 = wcrtomb(pcVar4,*pwVar7,(mbstate_t *)&mbs), sVar6 != 0xffffffffffffffff))) {\n    pcVar4 = pcVar4 + sVar6;\n    pwVar7 = pwVar7 + 1;\n    sVar5 = sVar5 - 1;\n  }" while (parenthesized_expression "((sVar5 != 0 &&\n         (sVar6 = wcrtomb(pcVar4,*pwVar7,(mbstate_t *)&mbs), sVar6 != 0xffffffffffffffff)))" ( (parenthesized_expression "(sVar5 != 0 &&\n         (sVar6 = wcrtomb(pcVar4,*pwVar7,(mbstate_t *)&mbs), sVar6 != 0xffffffffffffffff))" ( (binary_expression "sVar5 != 0 &&\n         (sVar6 = wcrtomb(pcVar4,*pwVar7,(mbstate_t *)&mbs), sVar6 != 0xffffffffffffffff)" (binary_expression "sVar5 != 0" identifier != number_literal) && (parenthesized_expression "(sVar6 = wcrtomb(pcVar4,*pwVar7,(mbstate_t *)&mbs), sVar6 != 0xffffffffffffffff)" ( (comma_expression "sVar6 = wcrtomb(pcVar4,*pwVar7,(mbstate_t *)&mbs), sVar6 != 0xffffffffffffffff" (assignment_expression "sVar6 = wcrtomb(pcVar4,*pwVar7,(mbstate_t *)&mbs)" identifier = (call_expression "wcrtomb(pcVar4,*pwVar7,(mbstate_t *)&mbs)" identifier (argument_list "(pcVar4,*pwVar7,(mbstate_t *)&mbs)" ( identifier , (pointer_expression "*pwVar7" * identifier) , (cast_expression "(mbstate_t *)&mbs" ( (type_descriptor "mbstate_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&mbs" & identifier)) )))) , (binary_expression "sVar6 != 0xffffffffffffffff" identifier != number_literal)) ))) )) )) (compound_statement "{\n    pcVar4 = pcVar4 + sVar6;\n    pwVar7 = pwVar7 + 1;\n    sVar5 = sVar5 - 1;\n  }" { (expression_statement "pcVar4 = pcVar4 + sVar6;" (assignment_expression "pcVar4 = pcVar4 + sVar6" identifier = (binary_expression "pcVar4 + sVar6" identifier + identifier)) ;) (expression_statement "pwVar7 = pwVar7 + 1;" (assignment_expression "pwVar7 = pwVar7 + 1" identifier = (binary_expression "pwVar7 + 1" identifier + number_literal)) ;) (expression_statement "sVar5 = sVar5 - 1;" (assignment_expression "sVar5 = sVar5 - 1" identifier = (binary_expression "sVar5 - 1" identifier - number_literal)) ;) })) (expression_statement "*pcVar4 = '\0';" (assignment_expression "*pcVar4 = '\0'" (pointer_expression "*pcVar4" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "free((n->sub).val.sp);" (call_expression "free((n->sub).val.sp)" identifier (argument_list "((n->sub).val.sp)" ( (field_expression "(n->sub).val.sp" (field_expression "(n->sub).val" (parenthesized_expression "(n->sub)" ( (field_expression "n->sub" identifier -> field_identifier) )) . field_identifier) . field_identifier) ))) ;) (expression_statement "(n->sub).val.sp = pcVar2;" (assignment_expression "(n->sub).val.sp = pcVar2" (field_expression "(n->sub).val.sp" (field_expression "(n->sub).val" (parenthesized_expression "(n->sub)" ( (field_expression "n->sub" identifier -> field_identifier) )) . field_identifier) . field_identifier) = identifier) ;) (expression_statement "(n->sub).val.slen = (long)pcVar4 - (long)pcVar2;" (assignment_expression "(n->sub).val.slen = (long)pcVar4 - (long)pcVar2" (field_expression "(n->sub).val.slen" (field_expression "(n->sub).val" (parenthesized_expression "(n->sub)" ( (field_expression "n->sub" identifier -> field_identifier) )) . field_identifier) . field_identifier) = (binary_expression "(long)pcVar4 - (long)pcVar2" (cast_expression "(long)pcVar4" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - (cast_expression "(long)pcVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (if_statement "if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return n;\n  }" if (parenthesized_expression "(lVar1 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "lVar1 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return n;\n  }" { (return_statement "return n;" return identifier ;) })) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "long FUN_001580fe(long param_1)\n\n{\n  char *pcVar1;\n  int *piVar2;\n  undefined8 uVar3;\n  char *pcVar4;\n  long lVar5;\n  size_t sVar6;\n  wchar_t *pwVar7;\n  long in_FS_OFFSET;\n  mbstate_t local_48;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  local_48.__count = 0;\n  local_48.__value = (_union_27)0x0;\n  lVar5 = *(long *)(param_1 + 0x30);\n  sVar6 = DAT_0039de00 * lVar5 + 1;\n  if (sVar6 == 0) {\n    FUN_00157301("awk.h",0x7c5);\n    FUN_00157844("%s:%d: emalloc called with zero bytes","node.c",0x35a);\n  }\n  pcVar1 = (char *)malloc(sVar6);\n  if (pcVar1 == (char *)0x0) {\n    FUN_00157301("awk.h",0x7c9);\n    piVar2 = __errno_location();\n    pcVar4 = strerror(*piVar2);\n    uVar3 = dcgettext(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5);\n    FUN_00157844(uVar3,"node.c",0x35a,&DAT_00184348,"newval",sVar6,pcVar4);\n  }\n  pwVar7 = *(wchar_t **)(param_1 + 0x28);\n  pcVar4 = pcVar1;\n  while ((lVar5 != 0 && (sVar6 = wcrtomb(pcVar4,*pwVar7,&local_48), sVar6 != 0xffffffffffffffff))) {\n    pcVar4 = pcVar4 + sVar6;\n    pwVar7 = pwVar7 + 1;\n    lVar5 = lVar5 + -1;\n  }\n  *pcVar4 = '\0';\n  free(*(void **)(param_1 + 8));\n  *(char **)(param_1 + 8) = pcVar1;\n  *(long *)(param_1 + 0x10) = (long)pcVar4 - (long)pcVar1;\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return param_1;\n  }\n                    \n  __stack_chk_fail();\n}\n\n" (function_definition "long FUN_001580fe(long param_1)\n\n{\n  char *pcVar1;\n  int *piVar2;\n  undefined8 uVar3;\n  char *pcVar4;\n  long lVar5;\n  size_t sVar6;\n  wchar_t *pwVar7;\n  long in_FS_OFFSET;\n  mbstate_t local_48;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  local_48.__count = 0;\n  local_48.__value = (_union_27)0x0;\n  lVar5 = *(long *)(param_1 + 0x30);\n  sVar6 = DAT_0039de00 * lVar5 + 1;\n  if (sVar6 == 0) {\n    FUN_00157301("awk.h",0x7c5);\n    FUN_00157844("%s:%d: emalloc called with zero bytes","node.c",0x35a);\n  }\n  pcVar1 = (char *)malloc(sVar6);\n  if (pcVar1 == (char *)0x0) {\n    FUN_00157301("awk.h",0x7c9);\n    piVar2 = __errno_location();\n    pcVar4 = strerror(*piVar2);\n    uVar3 = dcgettext(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5);\n    FUN_00157844(uVar3,"node.c",0x35a,&DAT_00184348,"newval",sVar6,pcVar4);\n  }\n  pwVar7 = *(wchar_t **)(param_1 + 0x28);\n  pcVar4 = pcVar1;\n  while ((lVar5 != 0 && (sVar6 = wcrtomb(pcVar4,*pwVar7,&local_48), sVar6 != 0xffffffffffffffff))) {\n    pcVar4 = pcVar4 + sVar6;\n    pwVar7 = pwVar7 + 1;\n    lVar5 = lVar5 + -1;\n  }\n  *pcVar4 = '\0';\n  free(*(void **)(param_1 + 8));\n  *(char **)(param_1 + 8) = pcVar1;\n  *(long *)(param_1 + 0x10) = (long)pcVar4 - (long)pcVar1;\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return param_1;\n  }\n                    \n  __stack_chk_fail();\n}" (sized_type_specifier "long" long) (function_declarator "FUN_001580fe(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  char *pcVar1;\n  int *piVar2;\n  undefined8 uVar3;\n  char *pcVar4;\n  long lVar5;\n  size_t sVar6;\n  wchar_t *pwVar7;\n  long in_FS_OFFSET;\n  mbstate_t local_48;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  local_48.__count = 0;\n  local_48.__value = (_union_27)0x0;\n  lVar5 = *(long *)(param_1 + 0x30);\n  sVar6 = DAT_0039de00 * lVar5 + 1;\n  if (sVar6 == 0) {\n    FUN_00157301("awk.h",0x7c5);\n    FUN_00157844("%s:%d: emalloc called with zero bytes","node.c",0x35a);\n  }\n  pcVar1 = (char *)malloc(sVar6);\n  if (pcVar1 == (char *)0x0) {\n    FUN_00157301("awk.h",0x7c9);\n    piVar2 = __errno_location();\n    pcVar4 = strerror(*piVar2);\n    uVar3 = dcgettext(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5);\n    FUN_00157844(uVar3,"node.c",0x35a,&DAT_00184348,"newval",sVar6,pcVar4);\n  }\n  pwVar7 = *(wchar_t **)(param_1 + 0x28);\n  pcVar4 = pcVar1;\n  while ((lVar5 != 0 && (sVar6 = wcrtomb(pcVar4,*pwVar7,&local_48), sVar6 != 0xffffffffffffffff))) {\n    pcVar4 = pcVar4 + sVar6;\n    pwVar7 = pwVar7 + 1;\n    lVar5 = lVar5 + -1;\n  }\n  *pcVar4 = '\0';\n  free(*(void **)(param_1 + 8));\n  *(char **)(param_1 + 8) = pcVar1;\n  *(long *)(param_1 + 0x10) = (long)pcVar4 - (long)pcVar1;\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return param_1;\n  }\n                    \n  __stack_chk_fail();\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (declaration "size_t sVar6;" primitive_type identifier ;) (declaration "wchar_t *pwVar7;" type_identifier (pointer_declarator "*pwVar7" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "mbstate_t local_48;" type_identifier identifier ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "local_48.__count = 0;" (assignment_expression "local_48.__count = 0" (field_expression "local_48.__count" identifier . field_identifier) = number_literal) ;) (expression_statement "local_48.__value = (_union_27)0x0;" (assignment_expression "local_48.__value = (_union_27)0x0" (field_expression "local_48.__value" identifier . field_identifier) = (cast_expression "(_union_27)0x0" ( (type_descriptor "_union_27" type_identifier) ) number_literal)) ;) (expression_statement "lVar5 = *(long *)(param_1 + 0x30);" (assignment_expression "lVar5 = *(long *)(param_1 + 0x30)" identifier = (pointer_expression "*(long *)(param_1 + 0x30)" * (cast_expression "(long *)(param_1 + 0x30)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) ))))) ;) (expression_statement "sVar6 = DAT_0039de00 * lVar5 + 1;" (assignment_expression "sVar6 = DAT_0039de00 * lVar5 + 1" identifier = (binary_expression "DAT_0039de00 * lVar5 + 1" (binary_expression "DAT_0039de00 * lVar5" identifier * identifier) + number_literal)) ;) (if_statement "if (sVar6 == 0) {\n    FUN_00157301("awk.h",0x7c5);\n    FUN_00157844("%s:%d: emalloc called with zero bytes","node.c",0x35a);\n  }" if (parenthesized_expression "(sVar6 == 0)" ( (binary_expression "sVar6 == 0" identifier == number_literal) )) (compound_statement "{\n    FUN_00157301("awk.h",0x7c5);\n    FUN_00157844("%s:%d: emalloc called with zero bytes","node.c",0x35a);\n  }" { (expression_statement "FUN_00157301("awk.h",0x7c5);" (call_expression "FUN_00157301("awk.h",0x7c5)" identifier (argument_list "("awk.h",0x7c5)" ( (string_literal ""awk.h"" " string_content ") , number_literal ))) ;) (expression_statement "FUN_00157844("%s:%d: emalloc called with zero bytes","node.c",0x35a);" (call_expression "FUN_00157844("%s:%d: emalloc called with zero bytes","node.c",0x35a)" identifier (argument_list "("%s:%d: emalloc called with zero bytes","node.c",0x35a)" ( (string_literal ""%s:%d: emalloc called with zero bytes"" " string_content ") , (string_literal ""node.c"" " string_content ") , number_literal ))) ;) })) (expression_statement "pcVar1 = (char *)malloc(sVar6);" (assignment_expression "pcVar1 = (char *)malloc(sVar6)" identifier = (cast_expression "(char *)malloc(sVar6)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(sVar6)" identifier (argument_list "(sVar6)" ( identifier ))))) ;) (if_statement "if (pcVar1 == (char *)0x0) {\n    FUN_00157301("awk.h",0x7c9);\n    piVar2 = __errno_location();\n    pcVar4 = strerror(*piVar2);\n    uVar3 = dcgettext(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5);\n    FUN_00157844(uVar3,"node.c",0x35a,&DAT_00184348,"newval",sVar6,pcVar4);\n  }" if (parenthesized_expression "(pcVar1 == (char *)0x0)" ( (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    FUN_00157301("awk.h",0x7c9);\n    piVar2 = __errno_location();\n    pcVar4 = strerror(*piVar2);\n    uVar3 = dcgettext(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5);\n    FUN_00157844(uVar3,"node.c",0x35a,&DAT_00184348,"newval",sVar6,pcVar4);\n  }" { (expression_statement "FUN_00157301("awk.h",0x7c9);" (call_expression "FUN_00157301("awk.h",0x7c9)" identifier (argument_list "("awk.h",0x7c9)" ( (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 "pcVar4 = strerror(*piVar2);" (assignment_expression "pcVar4 = strerror(*piVar2)" identifier = (call_expression "strerror(*piVar2)" identifier (argument_list "(*piVar2)" ( (pointer_expression "*piVar2" * identifier) )))) ;) (expression_statement "uVar3 = dcgettext(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5);" (assignment_expression "uVar3 = 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(uVar3,"node.c",0x35a,&DAT_00184348,"newval",sVar6,pcVar4);" (call_expression "FUN_00157844(uVar3,"node.c",0x35a,&DAT_00184348,"newval",sVar6,pcVar4)" identifier (argument_list "(uVar3,"node.c",0x35a,&DAT_00184348,"newval",sVar6,pcVar4)" ( identifier , (string_literal ""node.c"" " string_content ") , number_literal , (pointer_expression "&DAT_00184348" & identifier) , (string_literal ""newval"" " string_content ") , identifier , identifier ))) ;) })) (expression_statement "pwVar7 = *(wchar_t **)(param_1 + 0x28);" (assignment_expression "pwVar7 = *(wchar_t **)(param_1 + 0x28)" identifier = (pointer_expression "*(wchar_t **)(param_1 + 0x28)" * (cast_expression "(wchar_t **)(param_1 + 0x28)" ( (type_descriptor "wchar_t **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "pcVar4 = pcVar1;" (assignment_expression "pcVar4 = pcVar1" identifier = identifier) ;) (while_statement "while ((lVar5 != 0 && (sVar6 = wcrtomb(pcVar4,*pwVar7,&local_48), sVar6 != 0xffffffffffffffff))) {\n    pcVar4 = pcVar4 + sVar6;\n    pwVar7 = pwVar7 + 1;\n    lVar5 = lVar5 + -1;\n  }" while (parenthesized_expression "((lVar5 != 0 && (sVar6 = wcrtomb(pcVar4,*pwVar7,&local_48), sVar6 != 0xffffffffffffffff)))" ( (parenthesized_expression "(lVar5 != 0 && (sVar6 = wcrtomb(pcVar4,*pwVar7,&local_48), sVar6 != 0xffffffffffffffff))" ( (binary_expression "lVar5 != 0 && (sVar6 = wcrtomb(pcVar4,*pwVar7,&local_48), sVar6 != 0xffffffffffffffff)" (binary_expression "lVar5 != 0" identifier != number_literal) && (parenthesized_expression "(sVar6 = wcrtomb(pcVar4,*pwVar7,&local_48), sVar6 != 0xffffffffffffffff)" ( (comma_expression "sVar6 = wcrtomb(pcVar4,*pwVar7,&local_48), sVar6 != 0xffffffffffffffff" (assignment_expression "sVar6 = wcrtomb(pcVar4,*pwVar7,&local_48)" identifier = (call_expression "wcrtomb(pcVar4,*pwVar7,&local_48)" identifier (argument_list "(pcVar4,*pwVar7,&local_48)" ( identifier , (pointer_expression "*pwVar7" * identifier) , (pointer_expression "&local_48" & identifier) )))) , (binary_expression "sVar6 != 0xffffffffffffffff" identifier != number_literal)) ))) )) )) (compound_statement "{\n    pcVar4 = pcVar4 + sVar6;\n    pwVar7 = pwVar7 + 1;\n    lVar5 = lVar5 + -1;\n  }" { (expression_statement "pcVar4 = pcVar4 + sVar6;" (assignment_expression "pcVar4 = pcVar4 + sVar6" identifier = (binary_expression "pcVar4 + sVar6" identifier + identifier)) ;) (expression_statement "pwVar7 = pwVar7 + 1;" (assignment_expression "pwVar7 = pwVar7 + 1" identifier = (binary_expression "pwVar7 + 1" identifier + number_literal)) ;) (expression_statement "lVar5 = lVar5 + -1;" (assignment_expression "lVar5 = lVar5 + -1" identifier = (binary_expression "lVar5 + -1" identifier + number_literal)) ;) })) (expression_statement "*pcVar4 = '\0';" (assignment_expression "*pcVar4 = '\0'" (pointer_expression "*pcVar4" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "free(*(void **)(param_1 + 8));" (call_expression "free(*(void **)(param_1 + 8))" identifier (argument_list "(*(void **)(param_1 + 8))" ( (pointer_expression "*(void **)(param_1 + 8)" * (cast_expression "(void **)(param_1 + 8)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) ))) ;) (expression_statement "*(char **)(param_1 + 8) = pcVar1;" (assignment_expression "*(char **)(param_1 + 8) = pcVar1" (pointer_expression "*(char **)(param_1 + 8)" * (cast_expression "(char **)(param_1 + 8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(long *)(param_1 + 0x10) = (long)pcVar4 - (long)pcVar1;" (assignment_expression "*(long *)(param_1 + 0x10) = (long)pcVar4 - (long)pcVar1" (pointer_expression "*(long *)(param_1 + 0x10)" * (cast_expression "(long *)(param_1 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = (binary_expression "(long)pcVar4 - (long)pcVar1" (cast_expression "(long)pcVar4" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - (cast_expression "(long)pcVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (if_statement "if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return param_1;\n  }" if (parenthesized_expression "(local_40 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_40 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return param_1;\n  }" { (return_statement "return param_1;" return identifier ;) })) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition (sized_type_specifier long) (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = LIT) ;) (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = (cast_expression ( (type_descriptor TYPE) ) LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT * IDENT) + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT ))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (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 , (pointer_expression & IDENT) , (string_literal " string_content ") , IDENT , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression IDENT != LIT) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression * IDENT) , (pointer_expression & IDENT) )))) , (binary_expression IDENT != LIT)) ))) )) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' escape_sequence ')) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) - (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "long FUN_001580fe(long param_1)\n\n{\n  char *pcVar1;\n  int *piVar2;\n  undefined8 uVar3;\n  char *pcVar4;\n  long lVar5;\n  size_t sVar6;\n  wchar_t *pwVar7;\n  long in_FS_OFFSET;\n  mbstate_t local_48;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  local_48.__count = 0;\n  local_48.__value = (_union_27)0x0;\n  lVar5 = *(long *)(param_1 + 0x30);\n  sVar6 = DAT_0039de00 * lVar5 + 1;\n  if (sVar6 == 0) {\n    FUN_00157301("awk.h",0x7c5);\n    FUN_00157844("%s:%d: emalloc called with zero bytes","node.c",0x35a);\n  }\n  pcVar1 = (char *)malloc(sVar6);\n  if (pcVar1 == (char *)0x0) {\n    FUN_00157301("awk.h",0x7c9);\n    piVar2 = __errno_location();\n    pcVar4 = strerror(*piVar2);\n    uVar3 = dcgettext(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5);\n    FUN_00157844(uVar3,"node.c",0x35a,&DAT_00184348,"newval",sVar6,pcVar4);\n  }\n  pwVar7 = *(wchar_t **)(param_1 + 0x28);\n  pcVar4 = pcVar1;\n  while ((lVar5 != 0 && (sVar6 = wcrtomb(pcVar4,*pwVar7,&local_48), sVar6 != 0xffffffffffffffff))) {\n    pcVar4 = pcVar4 + sVar6;\n    pwVar7 = pwVar7 + 1;\n    lVar5 = lVar5 + -1;\n  }\n  *pcVar4 = '\0';\n  free(*(void **)(param_1 + 8));\n  *(char **)(param_1 + 8) = pcVar1;\n  *(long *)(param_1 + 0x10) = (long)pcVar4 - (long)pcVar1;\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return param_1;\n  }\n                    \n  __stack_chk_fail();\n}" (sized_type_specifier "long" (long "long")) (function_declarator "FUN_001580fe(long param_1)" (identifier "FUN_001580fe") (parameter_list "(long param_1)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) () ")"))) (compound_statement "{\n  char *pcVar1;\n  int *piVar2;\n  undefined8 uVar3;\n  char *pcVar4;\n  long lVar5;\n  size_t sVar6;\n  wchar_t *pwVar7;\n  long in_FS_OFFSET;\n  mbstate_t local_48;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  local_48.__count = 0;\n  local_48.__value = (_union_27)0x0;\n  lVar5 = *(long *)(param_1 + 0x30);\n  sVar6 = DAT_0039de00 * lVar5 + 1;\n  if (sVar6 == 0) {\n    FUN_00157301("awk.h",0x7c5);\n    FUN_00157844("%s:%d: emalloc called with zero bytes","node.c",0x35a);\n  }\n  pcVar1 = (char *)malloc(sVar6);\n  if (pcVar1 == (char *)0x0) {\n    FUN_00157301("awk.h",0x7c9);\n    piVar2 = __errno_location();\n    pcVar4 = strerror(*piVar2);\n    uVar3 = dcgettext(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5);\n    FUN_00157844(uVar3,"node.c",0x35a,&DAT_00184348,"newval",sVar6,pcVar4);\n  }\n  pwVar7 = *(wchar_t **)(param_1 + 0x28);\n  pcVar4 = pcVar1;\n  while ((lVar5 != 0 && (sVar6 = wcrtomb(pcVar4,*pwVar7,&local_48), sVar6 != 0xffffffffffffffff))) {\n    pcVar4 = pcVar4 + sVar6;\n    pwVar7 = pwVar7 + 1;\n    lVar5 = lVar5 + -1;\n  }\n  *pcVar4 = '\0';\n  free(*(void **)(param_1 + 8));\n  *(char **)(param_1 + 8) = pcVar1;\n  *(long *)(param_1 + 0x10) = (long)pcVar4 - (long)pcVar1;\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return param_1;\n  }\n                    \n  __stack_chk_fail();\n}" ({ "{") (declaration "char *pcVar1;" (primitive_type "char") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "undefined8 uVar3;" (type_identifier "undefined8") (identifier "uVar3") (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "long lVar5;" (sized_type_specifier "long" (long "long")) (identifier "lVar5") (; ";")) (declaration "size_t sVar6;" (primitive_type "size_t") (identifier "sVar6") (; ";")) (declaration "wchar_t *pwVar7;" (type_identifier "wchar_t") (pointer_declarator "*pwVar7" (* "*") (identifier "pwVar7")) (; ";")) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" (long "long")) (identifier "in_FS_OFFSET") (; ";")) (declaration "mbstate_t local_48;" (type_identifier "mbstate_t") (identifier "local_48") (; ";")) (declaration "long local_40;" (sized_type_specifier "long" (long "long")) (identifier "local_40") (; ";")) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_40") (= "=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "local_48.__count = 0;" (assignment_expression "local_48.__count = 0" (field_expression "local_48.__count" (identifier "local_48") (. ".") (field_identifier "__count")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_48.__value = (_union_27)0x0;" (assignment_expression "local_48.__value = (_union_27)0x0" (field_expression "local_48.__value" (identifier "local_48") (. ".") (field_identifier "__value")) (= "=") (cast_expression "(_union_27)0x0" (( "(") (type_descriptor "_union_27" (type_identifier "_union_27")) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "lVar5 = *(long *)(param_1 + 0x30);" (assignment_expression "lVar5 = *(long *)(param_1 + 0x30)" (identifier "lVar5") (= "=") (pointer_expression "*(long *)(param_1 + 0x30)" (* "*") (cast_expression "(long *)(param_1 + 0x30)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x30)" (( "(") (binary_expression "param_1 + 0x30" (identifier "param_1") (+ "+") (number_literal "0x30")) () ")"))))) (; ";")) (expression_statement "sVar6 = DAT_0039de00 * lVar5 + 1;" (assignment_expression "sVar6 = DAT_0039de00 * lVar5 + 1" (identifier "sVar6") (= "=") (binary_expression "DAT_0039de00 * lVar5 + 1" (binary_expression "DAT_0039de00 * lVar5" (identifier "DAT_0039de00") (* "*") (identifier "lVar5")) (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (sVar6 == 0) {\n    FUN_00157301("awk.h",0x7c5);\n    FUN_00157844("%s:%d: emalloc called with zero bytes","node.c",0x35a);\n  }" (if "if") (parenthesized_expression "(sVar6 == 0)" (( "(") (binary_expression "sVar6 == 0" (identifier "sVar6") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_00157301("awk.h",0x7c5);\n    FUN_00157844("%s:%d: emalloc called with zero bytes","node.c",0x35a);\n  }" ({ "{") (expression_statement "FUN_00157301("awk.h",0x7c5);" (call_expression "FUN_00157301("awk.h",0x7c5)" (identifier "FUN_00157301") (argument_list "("awk.h",0x7c5)" (( "(") (string_literal ""awk.h"" (" """) (string_content "awk.h") (" """)) (, ",") (number_literal "0x7c5") () ")"))) (; ";")) (expression_statement "FUN_00157844("%s:%d: emalloc called with zero bytes","node.c",0x35a);" (call_expression "FUN_00157844("%s:%d: emalloc called with zero bytes","node.c",0x35a)" (identifier "FUN_00157844") (argument_list "("%s:%d: emalloc called with zero bytes","node.c",0x35a)" (( "(") (string_literal ""%s:%d: emalloc called with zero bytes"" (" """) (string_content "%s:%d: emalloc called with zero bytes") (" """)) (, ",") (string_literal ""node.c"" (" """) (string_content "node.c") (" """)) (, ",") (number_literal "0x35a") () ")"))) (; ";")) (} "}"))) (expression_statement "pcVar1 = (char *)malloc(sVar6);" (assignment_expression "pcVar1 = (char *)malloc(sVar6)" (identifier "pcVar1") (= "=") (cast_expression "(char *)malloc(sVar6)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "malloc(sVar6)" (identifier "malloc") (argument_list "(sVar6)" (( "(") (identifier "sVar6") () ")"))))) (; ";")) (if_statement "if (pcVar1 == (char *)0x0) {\n    FUN_00157301("awk.h",0x7c9);\n    piVar2 = __errno_location();\n    pcVar4 = strerror(*piVar2);\n    uVar3 = dcgettext(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5);\n    FUN_00157844(uVar3,"node.c",0x35a,&DAT_00184348,"newval",sVar6,pcVar4);\n  }" (if "if") (parenthesized_expression "(pcVar1 == (char *)0x0)" (( "(") (binary_expression "pcVar1 == (char *)0x0" (identifier "pcVar1") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    FUN_00157301("awk.h",0x7c9);\n    piVar2 = __errno_location();\n    pcVar4 = strerror(*piVar2);\n    uVar3 = dcgettext(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5);\n    FUN_00157844(uVar3,"node.c",0x35a,&DAT_00184348,"newval",sVar6,pcVar4);\n  }" ({ "{") (expression_statement "FUN_00157301("awk.h",0x7c9);" (call_expression "FUN_00157301("awk.h",0x7c9)" (identifier "FUN_00157301") (argument_list "("awk.h",0x7c9)" (( "(") (string_literal ""awk.h"" (" """) (string_content "awk.h") (" """)) (, ",") (number_literal "0x7c9") () ")"))) (; ";")) (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" (identifier "piVar2") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "pcVar4 = strerror(*piVar2);" (assignment_expression "pcVar4 = strerror(*piVar2)" (identifier "pcVar4") (= "=") (call_expression "strerror(*piVar2)" (identifier "strerror") (argument_list "(*piVar2)" (( "(") (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) () ")")))) (; ";")) (expression_statement "uVar3 = dcgettext(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5);" (assignment_expression "uVar3 = dcgettext(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5)" (identifier "uVar3") (= "=") (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(uVar3,"node.c",0x35a,&DAT_00184348,"newval",sVar6,pcVar4);" (call_expression "FUN_00157844(uVar3,"node.c",0x35a,&DAT_00184348,"newval",sVar6,pcVar4)" (identifier "FUN_00157844") (argument_list "(uVar3,"node.c",0x35a,&DAT_00184348,"newval",sVar6,pcVar4)" (( "(") (identifier "uVar3") (, ",") (string_literal ""node.c"" (" """) (string_content "node.c") (" """)) (, ",") (number_literal "0x35a") (, ",") (pointer_expression "&DAT_00184348" (& "&") (identifier "DAT_00184348")) (, ",") (string_literal ""newval"" (" """) (string_content "newval") (" """)) (, ",") (identifier "sVar6") (, ",") (identifier "pcVar4") () ")"))) (; ";")) (} "}"))) (expression_statement "pwVar7 = *(wchar_t **)(param_1 + 0x28);" (assignment_expression "pwVar7 = *(wchar_t **)(param_1 + 0x28)" (identifier "pwVar7") (= "=") (pointer_expression "*(wchar_t **)(param_1 + 0x28)" (* "*") (cast_expression "(wchar_t **)(param_1 + 0x28)" (( "(") (type_descriptor "wchar_t **" (type_identifier "wchar_t") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "pcVar4 = pcVar1;" (assignment_expression "pcVar4 = pcVar1" (identifier "pcVar4") (= "=") (identifier "pcVar1")) (; ";")) (while_statement "while ((lVar5 != 0 && (sVar6 = wcrtomb(pcVar4,*pwVar7,&local_48), sVar6 != 0xffffffffffffffff))) {\n    pcVar4 = pcVar4 + sVar6;\n    pwVar7 = pwVar7 + 1;\n    lVar5 = lVar5 + -1;\n  }" (while "while") (parenthesized_expression "((lVar5 != 0 && (sVar6 = wcrtomb(pcVar4,*pwVar7,&local_48), sVar6 != 0xffffffffffffffff)))" (( "(") (parenthesized_expression "(lVar5 != 0 && (sVar6 = wcrtomb(pcVar4,*pwVar7,&local_48), sVar6 != 0xffffffffffffffff))" (( "(") (binary_expression "lVar5 != 0 && (sVar6 = wcrtomb(pcVar4,*pwVar7,&local_48), sVar6 != 0xffffffffffffffff)" (binary_expression "lVar5 != 0" (identifier "lVar5") (!= "!=") (number_literal "0")) (&& "&&") (parenthesized_expression "(sVar6 = wcrtomb(pcVar4,*pwVar7,&local_48), sVar6 != 0xffffffffffffffff)" (( "(") (comma_expression "sVar6 = wcrtomb(pcVar4,*pwVar7,&local_48), sVar6 != 0xffffffffffffffff" (assignment_expression "sVar6 = wcrtomb(pcVar4,*pwVar7,&local_48)" (identifier "sVar6") (= "=") (call_expression "wcrtomb(pcVar4,*pwVar7,&local_48)" (identifier "wcrtomb") (argument_list "(pcVar4,*pwVar7,&local_48)" (( "(") (identifier "pcVar4") (, ",") (pointer_expression "*pwVar7" (* "*") (identifier "pwVar7")) (, ",") (pointer_expression "&local_48" (& "&") (identifier "local_48")) () ")")))) (, ",") (binary_expression "sVar6 != 0xffffffffffffffff" (identifier "sVar6") (!= "!=") (number_literal "0xffffffffffffffff"))) () ")"))) () ")")) () ")")) (compound_statement "{\n    pcVar4 = pcVar4 + sVar6;\n    pwVar7 = pwVar7 + 1;\n    lVar5 = lVar5 + -1;\n  }" ({ "{") (expression_statement "pcVar4 = pcVar4 + sVar6;" (assignment_expression "pcVar4 = pcVar4 + sVar6" (identifier "pcVar4") (= "=") (binary_expression "pcVar4 + sVar6" (identifier "pcVar4") (+ "+") (identifier "sVar6"))) (; ";")) (expression_statement "pwVar7 = pwVar7 + 1;" (assignment_expression "pwVar7 = pwVar7 + 1" (identifier "pwVar7") (= "=") (binary_expression "pwVar7 + 1" (identifier "pwVar7") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "lVar5 = lVar5 + -1;" (assignment_expression "lVar5 = lVar5 + -1" (identifier "lVar5") (= "=") (binary_expression "lVar5 + -1" (identifier "lVar5") (+ "+") (number_literal "-1"))) (; ";")) (} "}"))) (expression_statement "*pcVar4 = '\0';" (assignment_expression "*pcVar4 = '\0'" (pointer_expression "*pcVar4" (* "*") (identifier "pcVar4")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "free(*(void **)(param_1 + 8));" (call_expression "free(*(void **)(param_1 + 8))" (identifier "free") (argument_list "(*(void **)(param_1 + 8))" (( "(") (pointer_expression "*(void **)(param_1 + 8)" (* "*") (cast_expression "(void **)(param_1 + 8)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) () ")"))) (; ";")) (expression_statement "*(char **)(param_1 + 8) = pcVar1;" (assignment_expression "*(char **)(param_1 + 8) = pcVar1" (pointer_expression "*(char **)(param_1 + 8)" (* "*") (cast_expression "(char **)(param_1 + 8)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "pcVar1")) (; ";")) (expression_statement "*(long *)(param_1 + 0x10) = (long)pcVar4 - (long)pcVar1;" (assignment_expression "*(long *)(param_1 + 0x10) = (long)pcVar4 - (long)pcVar1" (pointer_expression "*(long *)(param_1 + 0x10)" (* "*") (cast_expression "(long *)(param_1 + 0x10)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (binary_expression "(long)pcVar4 - (long)pcVar1" (cast_expression "(long)pcVar4" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "pcVar4")) (- "-") (cast_expression "(long)pcVar1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "pcVar1")))) (; ";")) (if_statement "if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return param_1;\n  }" (if "if") (parenthesized_expression "(local_40 == *(long *)(in_FS_OFFSET + 0x28))" (( "(") (binary_expression "local_40 == *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_40") (== "==") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (compound_statement "{\n    return param_1;\n  }" ({ "{") (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" (identifier "__stack_chk_fail") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

type_1 * function_1(type_1 *n)

{
  long var_15;
  char *var_7;
  int *piVar3;
  char *mesg;
  char *var_12;
  size_t var_2;
  size_t var_3;
  type_2 *var_13;
  long var_1;
  type_3 mbs;
  
  var_15 = *(long *)(var_1 + 0x28);
  mbs.__count = 0;
  mbs.__value = (type_4)0x0;
  var_2 = (n->sub).val.wslen;
  var_3 = (long)gawk_mb_cur_max * var_2 + 1;
  if (var_3 == 0) {
    var_4("awk.h",L'߅');
    var_5("%s:%d: emalloc called with zero bytes","node.c",0x35a);
  }
  var_7 = (char *)var_6(var_3);
  if (var_7 == (char *)0x0) {
    var_4("awk.h",L'߉');
    piVar3 = var_8();
    var_12 = var_9(*piVar3);
    mesg = (char *)var_10(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5);
    var_5(mesg,"node.c",0x35a,&DAT_00184348,"newval",var_3,var_12);
  }
  var_13 = (n->sub).val.wsp;
  var_12 = var_7;
  while ((var_2 != 0 &&
         (var_3 = var_11(var_12,*var_13,(type_3 *)&mbs), var_3 != 0xffffffffffffffff))) {
    var_12 = var_12 + var_3;
    var_13 = var_13 + 1;
    var_2 = var_2 - 1;
  }
  *var_12 = '\0';
  var_14((n->sub).val.sp);
  (n->sub).val.sp = var_7;
  (n->sub).val.slen = (long)var_12 - (long)var_7;
  if (var_15 == *(long *)(var_1 + 0x28)) {
    return n;
  }
                    /* WARNING: Subroutine does not return */
  var_16();
}


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

long MASKED(long param_1)

{
  char *pcVar1;
  int *piVar2;
  undefined8 uVar3;
  char *pcVar4;
  long lVar5;
  size_t sVar6;
  wchar_t *pwVar7;
  long in_FS_OFFSET;
  mbstate_t local_48;
  long local_40;
  
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  local_48.__count = 0;
  local_48.__value = (_union_27)0x0;
  lVar5 = *(long *)(param_1 + 0x30);
  sVar6 = DAT_0039de00 * lVar5 + 1;
  if (sVar6 == 0) {
    FUN_00157301("awk.h",0x7c5);
    FUN_00157844("%s:%d: emalloc called with zero bytes","node.c",0x35a);
  }
  pcVar1 = (char *)malloc(sVar6);
  if (pcVar1 == (char *)0x0) {
    FUN_00157301("awk.h",0x7c9);
    piVar2 = __errno_location();
    pcVar4 = strerror(*piVar2);
    uVar3 = dcgettext(0,"%s:%d:%s: %s: cannot allocate %ld bytes of memory: %s",5);
    FUN_00157844(uVar3,"node.c",0x35a,&DAT_00184348,"newval",sVar6,pcVar4);
  }
  pwVar7 = *(wchar_t **)(param_1 + 0x28);
  pcVar4 = pcVar1;
  while ((lVar5 != 0 && (sVar6 = wcrtomb(pcVar4,*pwVar7,&local_48), sVar6 != 0xffffffffffffffff))) {
    pcVar4 = pcVar4 + sVar6;
    pwVar7 = pwVar7 + 1;
    lVar5 = lVar5 + -1;
  }
  *pcVar4 = '\0';
  free(*(void **)(param_1 + 8));
  *(char **)(param_1 + 8) = pcVar1;
  *(long *)(param_1 + 0x10) = (long)pcVar4 - (long)pcVar1;
  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {
    return param_1;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}

