
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention -- yet parameter storage is locked */

void pop_stream(void)

{
  sh_cunget_func_t *psVar1;
  undefined1 *puVar2;
  INPUT_STREAM IVar3;
  stream_saver **ppsVar4;
  int iVar5;
  STREAM_SAVER *__ptr;
  size_t sVar6;
  char *__dest;
  char *pcVar7;
  BUFFERED_STREAM *bp;
  
  __ptr = stream_list;
  if (stream_list != (STREAM_SAVER *)0x0) {
    ppsVar4 = &stream_list->next;
    psVar1 = (stream_list->bash_input).ungetter;
    EOF_Reached = 0;
    pcVar7 = (stream_list->bash_input).name;
    bash_input.type = (stream_list->bash_input).type;
    puVar2 = (stream_list->bash_input).getter;
    IVar3 = (stream_list->bash_input).location;
    stream_list = *ppsVar4;
    if (bash_input.name != (char *)0x0) {
      free(bash_input.name);
    }
    if (pcVar7 != (char *)0x0) {
      sVar6 = strlen(pcVar7);
      __dest = (char *)xmalloc(sVar6 + 1);
      pcVar7 = strcpy(__dest,pcVar7);
    }
    iVar5 = default_buffered_input;
    bash_input.name = pcVar7;
    bash_input.location = IVar3;
    bash_input.getter = puVar2;
    bash_input.ungetter = psVar1;
    if ((bash_input.type == st_bstream) && (-1 < (int)IVar3)) {
      bp = __ptr->bstream;
      if ((bash_input_fd_changed != 0) && (bash_input_fd_changed = 0, -1 < default_buffered_input))
      {
        bash_input.location.buffered_fd = default_buffered_input;
        bp->b_fd = default_buffered_input;
        fcntl64(iVar5,2,1);
        bp = __ptr->bstream;
      }
      set_buffered_stream(bash_input.location.buffered_fd,bp);
      line_number = __ptr->line;
      pcVar7 = (__ptr->bash_input).name;
    }
    else {
      line_number = __ptr->line;
      pcVar7 = (__ptr->bash_input).name;
    }
    if (pcVar7 != (char *)0x0) {
      free(pcVar7);
    }
    free(__ptr);
    return;
  }
  EOF_Reached = 1;
  return;
}



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

void pop_stream(void)

{
  undefined4 uVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  int iVar4;
  void *__ptr;
  int iVar5;
  undefined4 *__ptr_00;
  size_t sVar6;
  char *__dest;
  char *__s;
  int *piVar7;
  
  __ptr_00 = stream_list;
  if (stream_list != (undefined4 *)0x0) {
    uVar1 = *stream_list;
    uVar2 = stream_list[5];
    EOF_Reached = 0;
    __s = (char *)stream_list[2];
    bash_input = stream_list[1];
    uVar3 = stream_list[4];
    iVar4 = stream_list[3];
    stream_list = (undefined4 *)uVar1;
    if (DAT_0017ac80 != (char *)0x0) {
      free(DAT_0017ac80);
    }
    if (__s != (char *)0x0) {
      sVar6 = strlen(__s);
      __dest = (char *)xmalloc(sVar6 + 1);
      __s = strcpy(__dest,__s);
    }
    iVar5 = default_buffered_input;
    DAT_0017ac80 = __s;
    DAT_0017ac84 = iVar4;
    DAT_0017ac88 = uVar3;
    DAT_0017ac8c = uVar2;
    if ((bash_input == 4) && (-1 < iVar4)) {
      piVar7 = (int *)__ptr_00[7];
      if ((bash_input_fd_changed != 0) && (bash_input_fd_changed = 0, -1 < default_buffered_input))
      {
        DAT_0017ac84 = default_buffered_input;
        *piVar7 = default_buffered_input;
        fcntl64(iVar5,2,1);
        piVar7 = (int *)__ptr_00[7];
      }
      set_buffered_stream(DAT_0017ac84,piVar7);
      line_number = __ptr_00[6];
      __ptr = (void *)__ptr_00[2];
    }
    else {
      line_number = __ptr_00[6];
      __ptr = (void *)__ptr_00[2];
    }
    if (__ptr != (void *)0x0) {
      free(__ptr);
    }
    free(__ptr_00);
    return;
  }
  EOF_Reached = 1;
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000312b0
ADD EBX,0x13e547
SUB ESP,0x1c
MOV ESI,dword ptr [EBX + 0x48b8]
TEST ESI,ESI
JZ 0x00033b98
MOV EAX,dword ptr [ESI]
MOV ECX,dword ptr [ESI + 0x14]
MOV dword ptr [EBX + 0x48d0],0x0
LEA EDI,[EBX + 0x8c7c]
MOV EDX,dword ptr [ESI + 0x8]
MOV dword ptr [EBX + 0x48b8],EAX
MOV EAX,dword ptr [ESI + 0x4]
MOV dword ptr [ESP + 0x4],ECX
MOV ECX,dword ptr [ESI + 0x10]
MOV dword ptr [EDI],EAX
MOV EAX,dword ptr [EDI + 0x4]
MOV dword ptr [ESP + 0x8],ECX
MOV EBP,dword ptr [ESI + 0xc]
TEST EAX,EAX
JZ 0x00033b1c
MOV dword ptr [ESP + 0xc],EDX
SUB ESP,0xc
PUSH EAX
CALL 0x0002e200
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0xc]
TEST EDX,EDX
JZ 0x00033b4a
SUB ESP,0xc
PUSH EDX
MOV dword ptr [ESP + 0x1c],EDX
CALL 0x0002e760
ADD EAX,0x1
MOV dword ptr [ESP],EAX
CALL 0x000ad700
POP EDX
POP ECX
MOV EDX,dword ptr [ESP + 0x14]
PUSH EDX
PUSH EAX
CALL 0x0002e580
ADD ESP,0x10
MOV EDX,EAX
MOV EAX,dword ptr [ESP + 0x8]
CMP dword ptr [EDI],0x4
MOV dword ptr [EDI + 0x4],EDX
MOV dword ptr [EDI + 0x8],EBP
MOV dword ptr [EDI + 0xc],EAX
MOV EAX,dword ptr [ESP + 0x4]
MOV dword ptr [EDI + 0x10],EAX
JZ 0x00033bb0
MOV EAX,dword ptr [ESI + 0x18]
MOV dword ptr [EBX + 0x48c0],EAX
MOV EAX,dword ptr [ESI + 0x8]
TEST EAX,EAX
JZ 0x00033b7f
SUB ESP,0xc
PUSH EAX
CALL 0x0002e200
ADD ESP,0x10
SUB ESP,0xc
PUSH ESI
CALL 0x0002e200
ADD ESP,0x10
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [EBX + 0x48d0],0x1
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV ECX,EBP
TEST EBP,EBP
JS 0x00033b63
LEA EAX,[EBX + 0xd344]
MOV EDX,dword ptr [ESI + 0x1c]
MOV EBP,dword ptr [EAX]
TEST EBP,EBP
JZ 0x00033bd7
MOV dword ptr [EAX],0x0
LEA EAX,[EBX + 0x388]
MOV EAX,dword ptr [EAX]
TEST EAX,EAX
JNS 0x00033c00
SUB ESP,0x8
PUSH EDX
PUSH ECX
CALL 0x0008d6b0
MOV EAX,dword ptr [ESI + 0x18]
ADD ESP,0x10
MOV dword ptr [EBX + 0x48c0],EAX
MOV EAX,dword ptr [ESI + 0x8]
TEST EAX,EAX
JNZ 0x00033b73
JMP 0x00033b7f
SUB ESP,0x4
MOV dword ptr [EDI + 0x8],EAX
MOV dword ptr [EDX],EAX
PUSH 0x1
PUSH 0x2
PUSH EAX
CALL 0x0002ea20
MOV ECX,dword ptr [EDI + 0x8]
MOV EDX,dword ptr [ESI + 0x1c]
ADD ESP,0x10
JMP 0x00033bd7
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid pop_stream(void)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  void *__ptr;\n  int iVar5;\n  undefined4 *__ptr_00;\n  size_t sVar6;\n  char *__dest;\n  char *__s;\n  int *piVar7;\n  \n  __ptr_00 = stream_list;\n  if (stream_list != (undefined4 *)0x0) {\n    uVar1 = *stream_list;\n    uVar2 = stream_list[5];\n    EOF_Reached = 0;\n    __s = (char *)stream_list[2];\n    bash_input = stream_list[1];\n    uVar3 = stream_list[4];\n    iVar4 = stream_list[3];\n    stream_list = (undefined4 *)uVar1;\n    if (DAT_0017ac80 != (char *)0x0) {\n      free(DAT_0017ac80);\n    }\n    if (__s != (char *)0x0) {\n      sVar6 = strlen(__s);\n      __dest = (char *)xmalloc(sVar6 + 1);\n      __s = strcpy(__dest,__s);\n    }\n    iVar5 = default_buffered_input;\n    DAT_0017ac80 = __s;\n    DAT_0017ac84 = iVar4;\n    DAT_0017ac88 = uVar3;\n    DAT_0017ac8c = uVar2;\n    if ((bash_input == 4) && (-1 < iVar4)) {\n      piVar7 = (int *)__ptr_00[7];\n      if ((bash_input_fd_changed != 0) && (bash_input_fd_changed = 0, -1 < default_buffered_input))\n      {\n        DAT_0017ac84 = default_buffered_input;\n        *piVar7 = default_buffered_input;\n        fcntl64(iVar5,2,1);\n        piVar7 = (int *)__ptr_00[7];\n      }\n      set_buffered_stream(DAT_0017ac84,piVar7);\n      line_number = __ptr_00[6];\n      __ptr = (void *)__ptr_00[2];\n    }\n    else {\n      line_number = __ptr_00[6];\n      __ptr = (void *)__ptr_00[2];\n    }\n    if (__ptr != (void *)0x0) {\n      free(__ptr);\n    }\n    free(__ptr_00);\n    return;\n  }\n  EOF_Reached = 1;\n  return;\n}\n\n" comment (function_definition "void pop_stream(void)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  void *__ptr;\n  int iVar5;\n  undefined4 *__ptr_00;\n  size_t sVar6;\n  char *__dest;\n  char *__s;\n  int *piVar7;\n  \n  __ptr_00 = stream_list;\n  if (stream_list != (undefined4 *)0x0) {\n    uVar1 = *stream_list;\n    uVar2 = stream_list[5];\n    EOF_Reached = 0;\n    __s = (char *)stream_list[2];\n    bash_input = stream_list[1];\n    uVar3 = stream_list[4];\n    iVar4 = stream_list[3];\n    stream_list = (undefined4 *)uVar1;\n    if (DAT_0017ac80 != (char *)0x0) {\n      free(DAT_0017ac80);\n    }\n    if (__s != (char *)0x0) {\n      sVar6 = strlen(__s);\n      __dest = (char *)xmalloc(sVar6 + 1);\n      __s = strcpy(__dest,__s);\n    }\n    iVar5 = default_buffered_input;\n    DAT_0017ac80 = __s;\n    DAT_0017ac84 = iVar4;\n    DAT_0017ac88 = uVar3;\n    DAT_0017ac8c = uVar2;\n    if ((bash_input == 4) && (-1 < iVar4)) {\n      piVar7 = (int *)__ptr_00[7];\n      if ((bash_input_fd_changed != 0) && (bash_input_fd_changed = 0, -1 < default_buffered_input))\n      {\n        DAT_0017ac84 = default_buffered_input;\n        *piVar7 = default_buffered_input;\n        fcntl64(iVar5,2,1);\n        piVar7 = (int *)__ptr_00[7];\n      }\n      set_buffered_stream(DAT_0017ac84,piVar7);\n      line_number = __ptr_00[6];\n      __ptr = (void *)__ptr_00[2];\n    }\n    else {\n      line_number = __ptr_00[6];\n      __ptr = (void *)__ptr_00[2];\n    }\n    if (__ptr != (void *)0x0) {\n      free(__ptr);\n    }\n    free(__ptr_00);\n    return;\n  }\n  EOF_Reached = 1;\n  return;\n}" primitive_type (function_declarator "pop_stream(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  void *__ptr;\n  int iVar5;\n  undefined4 *__ptr_00;\n  size_t sVar6;\n  char *__dest;\n  char *__s;\n  int *piVar7;\n  \n  __ptr_00 = stream_list;\n  if (stream_list != (undefined4 *)0x0) {\n    uVar1 = *stream_list;\n    uVar2 = stream_list[5];\n    EOF_Reached = 0;\n    __s = (char *)stream_list[2];\n    bash_input = stream_list[1];\n    uVar3 = stream_list[4];\n    iVar4 = stream_list[3];\n    stream_list = (undefined4 *)uVar1;\n    if (DAT_0017ac80 != (char *)0x0) {\n      free(DAT_0017ac80);\n    }\n    if (__s != (char *)0x0) {\n      sVar6 = strlen(__s);\n      __dest = (char *)xmalloc(sVar6 + 1);\n      __s = strcpy(__dest,__s);\n    }\n    iVar5 = default_buffered_input;\n    DAT_0017ac80 = __s;\n    DAT_0017ac84 = iVar4;\n    DAT_0017ac88 = uVar3;\n    DAT_0017ac8c = uVar2;\n    if ((bash_input == 4) && (-1 < iVar4)) {\n      piVar7 = (int *)__ptr_00[7];\n      if ((bash_input_fd_changed != 0) && (bash_input_fd_changed = 0, -1 < default_buffered_input))\n      {\n        DAT_0017ac84 = default_buffered_input;\n        *piVar7 = default_buffered_input;\n        fcntl64(iVar5,2,1);\n        piVar7 = (int *)__ptr_00[7];\n      }\n      set_buffered_stream(DAT_0017ac84,piVar7);\n      line_number = __ptr_00[6];\n      __ptr = (void *)__ptr_00[2];\n    }\n    else {\n      line_number = __ptr_00[6];\n      __ptr = (void *)__ptr_00[2];\n    }\n    if (__ptr != (void *)0x0) {\n      free(__ptr);\n    }\n    free(__ptr_00);\n    return;\n  }\n  EOF_Reached = 1;\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 *__ptr_00;" type_identifier (pointer_declarator "*__ptr_00" * identifier) ;) (declaration "size_t sVar6;" primitive_type identifier ;) (declaration "char *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (expression_statement "__ptr_00 = stream_list;" (assignment_expression "__ptr_00 = stream_list" identifier = identifier) ;) (if_statement "if (stream_list != (undefined4 *)0x0) {\n    uVar1 = *stream_list;\n    uVar2 = stream_list[5];\n    EOF_Reached = 0;\n    __s = (char *)stream_list[2];\n    bash_input = stream_list[1];\n    uVar3 = stream_list[4];\n    iVar4 = stream_list[3];\n    stream_list = (undefined4 *)uVar1;\n    if (DAT_0017ac80 != (char *)0x0) {\n      free(DAT_0017ac80);\n    }\n    if (__s != (char *)0x0) {\n      sVar6 = strlen(__s);\n      __dest = (char *)xmalloc(sVar6 + 1);\n      __s = strcpy(__dest,__s);\n    }\n    iVar5 = default_buffered_input;\n    DAT_0017ac80 = __s;\n    DAT_0017ac84 = iVar4;\n    DAT_0017ac88 = uVar3;\n    DAT_0017ac8c = uVar2;\n    if ((bash_input == 4) && (-1 < iVar4)) {\n      piVar7 = (int *)__ptr_00[7];\n      if ((bash_input_fd_changed != 0) && (bash_input_fd_changed = 0, -1 < default_buffered_input))\n      {\n        DAT_0017ac84 = default_buffered_input;\n        *piVar7 = default_buffered_input;\n        fcntl64(iVar5,2,1);\n        piVar7 = (int *)__ptr_00[7];\n      }\n      set_buffered_stream(DAT_0017ac84,piVar7);\n      line_number = __ptr_00[6];\n      __ptr = (void *)__ptr_00[2];\n    }\n    else {\n      line_number = __ptr_00[6];\n      __ptr = (void *)__ptr_00[2];\n    }\n    if (__ptr != (void *)0x0) {\n      free(__ptr);\n    }\n    free(__ptr_00);\n    return;\n  }" if (parenthesized_expression "(stream_list != (undefined4 *)0x0)" ( (binary_expression "stream_list != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar1 = *stream_list;\n    uVar2 = stream_list[5];\n    EOF_Reached = 0;\n    __s = (char *)stream_list[2];\n    bash_input = stream_list[1];\n    uVar3 = stream_list[4];\n    iVar4 = stream_list[3];\n    stream_list = (undefined4 *)uVar1;\n    if (DAT_0017ac80 != (char *)0x0) {\n      free(DAT_0017ac80);\n    }\n    if (__s != (char *)0x0) {\n      sVar6 = strlen(__s);\n      __dest = (char *)xmalloc(sVar6 + 1);\n      __s = strcpy(__dest,__s);\n    }\n    iVar5 = default_buffered_input;\n    DAT_0017ac80 = __s;\n    DAT_0017ac84 = iVar4;\n    DAT_0017ac88 = uVar3;\n    DAT_0017ac8c = uVar2;\n    if ((bash_input == 4) && (-1 < iVar4)) {\n      piVar7 = (int *)__ptr_00[7];\n      if ((bash_input_fd_changed != 0) && (bash_input_fd_changed = 0, -1 < default_buffered_input))\n      {\n        DAT_0017ac84 = default_buffered_input;\n        *piVar7 = default_buffered_input;\n        fcntl64(iVar5,2,1);\n        piVar7 = (int *)__ptr_00[7];\n      }\n      set_buffered_stream(DAT_0017ac84,piVar7);\n      line_number = __ptr_00[6];\n      __ptr = (void *)__ptr_00[2];\n    }\n    else {\n      line_number = __ptr_00[6];\n      __ptr = (void *)__ptr_00[2];\n    }\n    if (__ptr != (void *)0x0) {\n      free(__ptr);\n    }\n    free(__ptr_00);\n    return;\n  }" { (expression_statement "uVar1 = *stream_list;" (assignment_expression "uVar1 = *stream_list" identifier = (pointer_expression "*stream_list" * identifier)) ;) (expression_statement "uVar2 = stream_list[5];" (assignment_expression "uVar2 = stream_list[5]" identifier = (subscript_expression "stream_list[5]" identifier [ number_literal ])) ;) (expression_statement "EOF_Reached = 0;" (assignment_expression "EOF_Reached = 0" identifier = number_literal) ;) (expression_statement "__s = (char *)stream_list[2];" (assignment_expression "__s = (char *)stream_list[2]" identifier = (cast_expression "(char *)stream_list[2]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "stream_list[2]" identifier [ number_literal ]))) ;) (expression_statement "bash_input = stream_list[1];" (assignment_expression "bash_input = stream_list[1]" identifier = (subscript_expression "stream_list[1]" identifier [ number_literal ])) ;) (expression_statement "uVar3 = stream_list[4];" (assignment_expression "uVar3 = stream_list[4]" identifier = (subscript_expression "stream_list[4]" identifier [ number_literal ])) ;) (expression_statement "iVar4 = stream_list[3];" (assignment_expression "iVar4 = stream_list[3]" identifier = (subscript_expression "stream_list[3]" identifier [ number_literal ])) ;) (expression_statement "stream_list = (undefined4 *)uVar1;" (assignment_expression "stream_list = (undefined4 *)uVar1" identifier = (cast_expression "(undefined4 *)uVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (DAT_0017ac80 != (char *)0x0) {\n      free(DAT_0017ac80);\n    }" if (parenthesized_expression "(DAT_0017ac80 != (char *)0x0)" ( (binary_expression "DAT_0017ac80 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      free(DAT_0017ac80);\n    }" { (expression_statement "free(DAT_0017ac80);" (call_expression "free(DAT_0017ac80)" identifier (argument_list "(DAT_0017ac80)" ( identifier ))) ;) })) (if_statement "if (__s != (char *)0x0) {\n      sVar6 = strlen(__s);\n      __dest = (char *)xmalloc(sVar6 + 1);\n      __s = strcpy(__dest,__s);\n    }" if (parenthesized_expression "(__s != (char *)0x0)" ( (binary_expression "__s != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      sVar6 = strlen(__s);\n      __dest = (char *)xmalloc(sVar6 + 1);\n      __s = strcpy(__dest,__s);\n    }" { (expression_statement "sVar6 = strlen(__s);" (assignment_expression "sVar6 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "__dest = (char *)xmalloc(sVar6 + 1);" (assignment_expression "__dest = (char *)xmalloc(sVar6 + 1)" identifier = (cast_expression "(char *)xmalloc(sVar6 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar6 + 1)" identifier (argument_list "(sVar6 + 1)" ( (binary_expression "sVar6 + 1" identifier + number_literal) ))))) ;) (expression_statement "__s = strcpy(__dest,__s);" (assignment_expression "__s = strcpy(__dest,__s)" identifier = (call_expression "strcpy(__dest,__s)" identifier (argument_list "(__dest,__s)" ( identifier , identifier )))) ;) })) (expression_statement "iVar5 = default_buffered_input;" (assignment_expression "iVar5 = default_buffered_input" identifier = identifier) ;) (expression_statement "DAT_0017ac80 = __s;" (assignment_expression "DAT_0017ac80 = __s" identifier = identifier) ;) (expression_statement "DAT_0017ac84 = iVar4;" (assignment_expression "DAT_0017ac84 = iVar4" identifier = identifier) ;) (expression_statement "DAT_0017ac88 = uVar3;" (assignment_expression "DAT_0017ac88 = uVar3" identifier = identifier) ;) (expression_statement "DAT_0017ac8c = uVar2;" (assignment_expression "DAT_0017ac8c = uVar2" identifier = identifier) ;) (if_statement "if ((bash_input == 4) && (-1 < iVar4)) {\n      piVar7 = (int *)__ptr_00[7];\n      if ((bash_input_fd_changed != 0) && (bash_input_fd_changed = 0, -1 < default_buffered_input))\n      {\n        DAT_0017ac84 = default_buffered_input;\n        *piVar7 = default_buffered_input;\n        fcntl64(iVar5,2,1);\n        piVar7 = (int *)__ptr_00[7];\n      }\n      set_buffered_stream(DAT_0017ac84,piVar7);\n      line_number = __ptr_00[6];\n      __ptr = (void *)__ptr_00[2];\n    }\n    else {\n      line_number = __ptr_00[6];\n      __ptr = (void *)__ptr_00[2];\n    }" if (parenthesized_expression "((bash_input == 4) && (-1 < iVar4))" ( (binary_expression "(bash_input == 4) && (-1 < iVar4)" (parenthesized_expression "(bash_input == 4)" ( (binary_expression "bash_input == 4" identifier == number_literal) )) && (parenthesized_expression "(-1 < iVar4)" ( (binary_expression "-1 < iVar4" number_literal < identifier) ))) )) (compound_statement "{\n      piVar7 = (int *)__ptr_00[7];\n      if ((bash_input_fd_changed != 0) && (bash_input_fd_changed = 0, -1 < default_buffered_input))\n      {\n        DAT_0017ac84 = default_buffered_input;\n        *piVar7 = default_buffered_input;\n        fcntl64(iVar5,2,1);\n        piVar7 = (int *)__ptr_00[7];\n      }\n      set_buffered_stream(DAT_0017ac84,piVar7);\n      line_number = __ptr_00[6];\n      __ptr = (void *)__ptr_00[2];\n    }" { (expression_statement "piVar7 = (int *)__ptr_00[7];" (assignment_expression "piVar7 = (int *)__ptr_00[7]" identifier = (cast_expression "(int *)__ptr_00[7]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "__ptr_00[7]" identifier [ number_literal ]))) ;) (if_statement "if ((bash_input_fd_changed != 0) && (bash_input_fd_changed = 0, -1 < default_buffered_input))\n      {\n        DAT_0017ac84 = default_buffered_input;\n        *piVar7 = default_buffered_input;\n        fcntl64(iVar5,2,1);\n        piVar7 = (int *)__ptr_00[7];\n      }" if (parenthesized_expression "((bash_input_fd_changed != 0) && (bash_input_fd_changed = 0, -1 < default_buffered_input))" ( (binary_expression "(bash_input_fd_changed != 0) && (bash_input_fd_changed = 0, -1 < default_buffered_input)" (parenthesized_expression "(bash_input_fd_changed != 0)" ( (binary_expression "bash_input_fd_changed != 0" identifier != number_literal) )) && (parenthesized_expression "(bash_input_fd_changed = 0, -1 < default_buffered_input)" ( (comma_expression "bash_input_fd_changed = 0, -1 < default_buffered_input" (assignment_expression "bash_input_fd_changed = 0" identifier = number_literal) , (binary_expression "-1 < default_buffered_input" number_literal < identifier)) ))) )) (compound_statement "{\n        DAT_0017ac84 = default_buffered_input;\n        *piVar7 = default_buffered_input;\n        fcntl64(iVar5,2,1);\n        piVar7 = (int *)__ptr_00[7];\n      }" { (expression_statement "DAT_0017ac84 = default_buffered_input;" (assignment_expression "DAT_0017ac84 = default_buffered_input" identifier = identifier) ;) (expression_statement "*piVar7 = default_buffered_input;" (assignment_expression "*piVar7 = default_buffered_input" (pointer_expression "*piVar7" * identifier) = identifier) ;) (expression_statement "fcntl64(iVar5,2,1);" (call_expression "fcntl64(iVar5,2,1)" identifier (argument_list "(iVar5,2,1)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "piVar7 = (int *)__ptr_00[7];" (assignment_expression "piVar7 = (int *)__ptr_00[7]" identifier = (cast_expression "(int *)__ptr_00[7]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "__ptr_00[7]" identifier [ number_literal ]))) ;) })) (expression_statement "set_buffered_stream(DAT_0017ac84,piVar7);" (call_expression "set_buffered_stream(DAT_0017ac84,piVar7)" identifier (argument_list "(DAT_0017ac84,piVar7)" ( identifier , identifier ))) ;) (expression_statement "line_number = __ptr_00[6];" (assignment_expression "line_number = __ptr_00[6]" identifier = (subscript_expression "__ptr_00[6]" identifier [ number_literal ])) ;) (expression_statement "__ptr = (void *)__ptr_00[2];" (assignment_expression "__ptr = (void *)__ptr_00[2]" identifier = (cast_expression "(void *)__ptr_00[2]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "__ptr_00[2]" identifier [ number_literal ]))) ;) }) (else_clause "else {\n      line_number = __ptr_00[6];\n      __ptr = (void *)__ptr_00[2];\n    }" else (compound_statement "{\n      line_number = __ptr_00[6];\n      __ptr = (void *)__ptr_00[2];\n    }" { (expression_statement "line_number = __ptr_00[6];" (assignment_expression "line_number = __ptr_00[6]" identifier = (subscript_expression "__ptr_00[6]" identifier [ number_literal ])) ;) (expression_statement "__ptr = (void *)__ptr_00[2];" (assignment_expression "__ptr = (void *)__ptr_00[2]" identifier = (cast_expression "(void *)__ptr_00[2]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "__ptr_00[2]" identifier [ number_literal ]))) ;) }))) (if_statement "if (__ptr != (void *)0x0) {\n      free(__ptr);\n    }" if (parenthesized_expression "(__ptr != (void *)0x0)" ( (binary_expression "__ptr != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      free(__ptr);\n    }" { (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) })) (expression_statement "free(__ptr_00);" (call_expression "free(__ptr_00)" identifier (argument_list "(__ptr_00)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "EOF_Reached = 1;" (assignment_expression "EOF_Reached = 1" identifier = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention -- yet parameter storage is locked */\n\nvoid pop_stream(void)\n\n{\n  sh_cunget_func_t *psVar1;\n  undefined1 *puVar2;\n  INPUT_STREAM IVar3;\n  stream_saver **ppsVar4;\n  int iVar5;\n  STREAM_SAVER *__ptr;\n  size_t sVar6;\n  char *__dest;\n  char *pcVar7;\n  BUFFERED_STREAM *bp;\n  \n  __ptr = stream_list;\n  if (stream_list != (STREAM_SAVER *)0x0) {\n    ppsVar4 = &stream_list->next;\n    psVar1 = (stream_list->bash_input).ungetter;\n    EOF_Reached = 0;\n    pcVar7 = (stream_list->bash_input).name;\n    bash_input.type = (stream_list->bash_input).type;\n    puVar2 = (stream_list->bash_input).getter;\n    IVar3 = (stream_list->bash_input).location;\n    stream_list = *ppsVar4;\n    if (bash_input.name != (char *)0x0) {\n      free(bash_input.name);\n    }\n    if (pcVar7 != (char *)0x0) {\n      sVar6 = strlen(pcVar7);\n      __dest = (char *)xmalloc(sVar6 + 1);\n      pcVar7 = strcpy(__dest,pcVar7);\n    }\n    iVar5 = default_buffered_input;\n    bash_input.name = pcVar7;\n    bash_input.location = IVar3;\n    bash_input.getter = puVar2;\n    bash_input.ungetter = psVar1;\n    if ((bash_input.type == st_bstream) && (-1 < (int)IVar3)) {\n      bp = __ptr->bstream;\n      if ((bash_input_fd_changed != 0) && (bash_input_fd_changed = 0, -1 < default_buffered_input))\n      {\n        bash_input.location.buffered_fd = default_buffered_input;\n        bp->b_fd = default_buffered_input;\n        fcntl64(iVar5,2,1);\n        bp = __ptr->bstream;\n      }\n      set_buffered_stream(bash_input.location.buffered_fd,bp);\n      line_number = __ptr->line;\n      pcVar7 = (__ptr->bash_input).name;\n    }\n    else {\n      line_number = __ptr->line;\n      pcVar7 = (__ptr->bash_input).name;\n    }\n    if (pcVar7 != (char *)0x0) {\n      free(pcVar7);\n    }\n    free(__ptr);\n    return;\n  }\n  EOF_Reached = 1;\n  return;\n}\n\n" comment comment (function_definition "void pop_stream(void)\n\n{\n  sh_cunget_func_t *psVar1;\n  undefined1 *puVar2;\n  INPUT_STREAM IVar3;\n  stream_saver **ppsVar4;\n  int iVar5;\n  STREAM_SAVER *__ptr;\n  size_t sVar6;\n  char *__dest;\n  char *pcVar7;\n  BUFFERED_STREAM *bp;\n  \n  __ptr = stream_list;\n  if (stream_list != (STREAM_SAVER *)0x0) {\n    ppsVar4 = &stream_list->next;\n    psVar1 = (stream_list->bash_input).ungetter;\n    EOF_Reached = 0;\n    pcVar7 = (stream_list->bash_input).name;\n    bash_input.type = (stream_list->bash_input).type;\n    puVar2 = (stream_list->bash_input).getter;\n    IVar3 = (stream_list->bash_input).location;\n    stream_list = *ppsVar4;\n    if (bash_input.name != (char *)0x0) {\n      free(bash_input.name);\n    }\n    if (pcVar7 != (char *)0x0) {\n      sVar6 = strlen(pcVar7);\n      __dest = (char *)xmalloc(sVar6 + 1);\n      pcVar7 = strcpy(__dest,pcVar7);\n    }\n    iVar5 = default_buffered_input;\n    bash_input.name = pcVar7;\n    bash_input.location = IVar3;\n    bash_input.getter = puVar2;\n    bash_input.ungetter = psVar1;\n    if ((bash_input.type == st_bstream) && (-1 < (int)IVar3)) {\n      bp = __ptr->bstream;\n      if ((bash_input_fd_changed != 0) && (bash_input_fd_changed = 0, -1 < default_buffered_input))\n      {\n        bash_input.location.buffered_fd = default_buffered_input;\n        bp->b_fd = default_buffered_input;\n        fcntl64(iVar5,2,1);\n        bp = __ptr->bstream;\n      }\n      set_buffered_stream(bash_input.location.buffered_fd,bp);\n      line_number = __ptr->line;\n      pcVar7 = (__ptr->bash_input).name;\n    }\n    else {\n      line_number = __ptr->line;\n      pcVar7 = (__ptr->bash_input).name;\n    }\n    if (pcVar7 != (char *)0x0) {\n      free(pcVar7);\n    }\n    free(__ptr);\n    return;\n  }\n  EOF_Reached = 1;\n  return;\n}" primitive_type (function_declarator "pop_stream(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  sh_cunget_func_t *psVar1;\n  undefined1 *puVar2;\n  INPUT_STREAM IVar3;\n  stream_saver **ppsVar4;\n  int iVar5;\n  STREAM_SAVER *__ptr;\n  size_t sVar6;\n  char *__dest;\n  char *pcVar7;\n  BUFFERED_STREAM *bp;\n  \n  __ptr = stream_list;\n  if (stream_list != (STREAM_SAVER *)0x0) {\n    ppsVar4 = &stream_list->next;\n    psVar1 = (stream_list->bash_input).ungetter;\n    EOF_Reached = 0;\n    pcVar7 = (stream_list->bash_input).name;\n    bash_input.type = (stream_list->bash_input).type;\n    puVar2 = (stream_list->bash_input).getter;\n    IVar3 = (stream_list->bash_input).location;\n    stream_list = *ppsVar4;\n    if (bash_input.name != (char *)0x0) {\n      free(bash_input.name);\n    }\n    if (pcVar7 != (char *)0x0) {\n      sVar6 = strlen(pcVar7);\n      __dest = (char *)xmalloc(sVar6 + 1);\n      pcVar7 = strcpy(__dest,pcVar7);\n    }\n    iVar5 = default_buffered_input;\n    bash_input.name = pcVar7;\n    bash_input.location = IVar3;\n    bash_input.getter = puVar2;\n    bash_input.ungetter = psVar1;\n    if ((bash_input.type == st_bstream) && (-1 < (int)IVar3)) {\n      bp = __ptr->bstream;\n      if ((bash_input_fd_changed != 0) && (bash_input_fd_changed = 0, -1 < default_buffered_input))\n      {\n        bash_input.location.buffered_fd = default_buffered_input;\n        bp->b_fd = default_buffered_input;\n        fcntl64(iVar5,2,1);\n        bp = __ptr->bstream;\n      }\n      set_buffered_stream(bash_input.location.buffered_fd,bp);\n      line_number = __ptr->line;\n      pcVar7 = (__ptr->bash_input).name;\n    }\n    else {\n      line_number = __ptr->line;\n      pcVar7 = (__ptr->bash_input).name;\n    }\n    if (pcVar7 != (char *)0x0) {\n      free(pcVar7);\n    }\n    free(__ptr);\n    return;\n  }\n  EOF_Reached = 1;\n  return;\n}" { (declaration "sh_cunget_func_t *psVar1;" type_identifier (pointer_declarator "*psVar1" * identifier) ;) (declaration "undefined1 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "INPUT_STREAM IVar3;" type_identifier identifier ;) (declaration "stream_saver **ppsVar4;" type_identifier (pointer_declarator "**ppsVar4" * (pointer_declarator "*ppsVar4" * identifier)) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "STREAM_SAVER *__ptr;" type_identifier (pointer_declarator "*__ptr" * identifier) ;) (declaration "size_t sVar6;" primitive_type identifier ;) (declaration "char *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "BUFFERED_STREAM *bp;" type_identifier (pointer_declarator "*bp" * identifier) ;) (expression_statement "__ptr = stream_list;" (assignment_expression "__ptr = stream_list" identifier = identifier) ;) (if_statement "if (stream_list != (STREAM_SAVER *)0x0) {\n    ppsVar4 = &stream_list->next;\n    psVar1 = (stream_list->bash_input).ungetter;\n    EOF_Reached = 0;\n    pcVar7 = (stream_list->bash_input).name;\n    bash_input.type = (stream_list->bash_input).type;\n    puVar2 = (stream_list->bash_input).getter;\n    IVar3 = (stream_list->bash_input).location;\n    stream_list = *ppsVar4;\n    if (bash_input.name != (char *)0x0) {\n      free(bash_input.name);\n    }\n    if (pcVar7 != (char *)0x0) {\n      sVar6 = strlen(pcVar7);\n      __dest = (char *)xmalloc(sVar6 + 1);\n      pcVar7 = strcpy(__dest,pcVar7);\n    }\n    iVar5 = default_buffered_input;\n    bash_input.name = pcVar7;\n    bash_input.location = IVar3;\n    bash_input.getter = puVar2;\n    bash_input.ungetter = psVar1;\n    if ((bash_input.type == st_bstream) && (-1 < (int)IVar3)) {\n      bp = __ptr->bstream;\n      if ((bash_input_fd_changed != 0) && (bash_input_fd_changed = 0, -1 < default_buffered_input))\n      {\n        bash_input.location.buffered_fd = default_buffered_input;\n        bp->b_fd = default_buffered_input;\n        fcntl64(iVar5,2,1);\n        bp = __ptr->bstream;\n      }\n      set_buffered_stream(bash_input.location.buffered_fd,bp);\n      line_number = __ptr->line;\n      pcVar7 = (__ptr->bash_input).name;\n    }\n    else {\n      line_number = __ptr->line;\n      pcVar7 = (__ptr->bash_input).name;\n    }\n    if (pcVar7 != (char *)0x0) {\n      free(pcVar7);\n    }\n    free(__ptr);\n    return;\n  }" if (parenthesized_expression "(stream_list != (STREAM_SAVER *)0x0)" ( (binary_expression "stream_list != (STREAM_SAVER *)0x0" identifier != (cast_expression "(STREAM_SAVER *)0x0" ( (type_descriptor "STREAM_SAVER *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    ppsVar4 = &stream_list->next;\n    psVar1 = (stream_list->bash_input).ungetter;\n    EOF_Reached = 0;\n    pcVar7 = (stream_list->bash_input).name;\n    bash_input.type = (stream_list->bash_input).type;\n    puVar2 = (stream_list->bash_input).getter;\n    IVar3 = (stream_list->bash_input).location;\n    stream_list = *ppsVar4;\n    if (bash_input.name != (char *)0x0) {\n      free(bash_input.name);\n    }\n    if (pcVar7 != (char *)0x0) {\n      sVar6 = strlen(pcVar7);\n      __dest = (char *)xmalloc(sVar6 + 1);\n      pcVar7 = strcpy(__dest,pcVar7);\n    }\n    iVar5 = default_buffered_input;\n    bash_input.name = pcVar7;\n    bash_input.location = IVar3;\n    bash_input.getter = puVar2;\n    bash_input.ungetter = psVar1;\n    if ((bash_input.type == st_bstream) && (-1 < (int)IVar3)) {\n      bp = __ptr->bstream;\n      if ((bash_input_fd_changed != 0) && (bash_input_fd_changed = 0, -1 < default_buffered_input))\n      {\n        bash_input.location.buffered_fd = default_buffered_input;\n        bp->b_fd = default_buffered_input;\n        fcntl64(iVar5,2,1);\n        bp = __ptr->bstream;\n      }\n      set_buffered_stream(bash_input.location.buffered_fd,bp);\n      line_number = __ptr->line;\n      pcVar7 = (__ptr->bash_input).name;\n    }\n    else {\n      line_number = __ptr->line;\n      pcVar7 = (__ptr->bash_input).name;\n    }\n    if (pcVar7 != (char *)0x0) {\n      free(pcVar7);\n    }\n    free(__ptr);\n    return;\n  }" { (expression_statement "ppsVar4 = &stream_list->next;" (assignment_expression "ppsVar4 = &stream_list->next" identifier = (pointer_expression "&stream_list->next" & (field_expression "stream_list->next" identifier -> field_identifier))) ;) (expression_statement "psVar1 = (stream_list->bash_input).ungetter;" (assignment_expression "psVar1 = (stream_list->bash_input).ungetter" identifier = (field_expression "(stream_list->bash_input).ungetter" (parenthesized_expression "(stream_list->bash_input)" ( (field_expression "stream_list->bash_input" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "EOF_Reached = 0;" (assignment_expression "EOF_Reached = 0" identifier = number_literal) ;) (expression_statement "pcVar7 = (stream_list->bash_input).name;" (assignment_expression "pcVar7 = (stream_list->bash_input).name" identifier = (field_expression "(stream_list->bash_input).name" (parenthesized_expression "(stream_list->bash_input)" ( (field_expression "stream_list->bash_input" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "bash_input.type = (stream_list->bash_input).type;" (assignment_expression "bash_input.type = (stream_list->bash_input).type" (field_expression "bash_input.type" identifier . field_identifier) = (field_expression "(stream_list->bash_input).type" (parenthesized_expression "(stream_list->bash_input)" ( (field_expression "stream_list->bash_input" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "puVar2 = (stream_list->bash_input).getter;" (assignment_expression "puVar2 = (stream_list->bash_input).getter" identifier = (field_expression "(stream_list->bash_input).getter" (parenthesized_expression "(stream_list->bash_input)" ( (field_expression "stream_list->bash_input" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "IVar3 = (stream_list->bash_input).location;" (assignment_expression "IVar3 = (stream_list->bash_input).location" identifier = (field_expression "(stream_list->bash_input).location" (parenthesized_expression "(stream_list->bash_input)" ( (field_expression "stream_list->bash_input" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "stream_list = *ppsVar4;" (assignment_expression "stream_list = *ppsVar4" identifier = (pointer_expression "*ppsVar4" * identifier)) ;) (if_statement "if (bash_input.name != (char *)0x0) {\n      free(bash_input.name);\n    }" if (parenthesized_expression "(bash_input.name != (char *)0x0)" ( (binary_expression "bash_input.name != (char *)0x0" (field_expression "bash_input.name" identifier . field_identifier) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      free(bash_input.name);\n    }" { (expression_statement "free(bash_input.name);" (call_expression "free(bash_input.name)" identifier (argument_list "(bash_input.name)" ( (field_expression "bash_input.name" identifier . field_identifier) ))) ;) })) (if_statement "if (pcVar7 != (char *)0x0) {\n      sVar6 = strlen(pcVar7);\n      __dest = (char *)xmalloc(sVar6 + 1);\n      pcVar7 = strcpy(__dest,pcVar7);\n    }" if (parenthesized_expression "(pcVar7 != (char *)0x0)" ( (binary_expression "pcVar7 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      sVar6 = strlen(pcVar7);\n      __dest = (char *)xmalloc(sVar6 + 1);\n      pcVar7 = strcpy(__dest,pcVar7);\n    }" { (expression_statement "sVar6 = strlen(pcVar7);" (assignment_expression "sVar6 = strlen(pcVar7)" identifier = (call_expression "strlen(pcVar7)" identifier (argument_list "(pcVar7)" ( identifier )))) ;) (expression_statement "__dest = (char *)xmalloc(sVar6 + 1);" (assignment_expression "__dest = (char *)xmalloc(sVar6 + 1)" identifier = (cast_expression "(char *)xmalloc(sVar6 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar6 + 1)" identifier (argument_list "(sVar6 + 1)" ( (binary_expression "sVar6 + 1" identifier + number_literal) ))))) ;) (expression_statement "pcVar7 = strcpy(__dest,pcVar7);" (assignment_expression "pcVar7 = strcpy(__dest,pcVar7)" identifier = (call_expression "strcpy(__dest,pcVar7)" identifier (argument_list "(__dest,pcVar7)" ( identifier , identifier )))) ;) })) (expression_statement "iVar5 = default_buffered_input;" (assignment_expression "iVar5 = default_buffered_input" identifier = identifier) ;) (expression_statement "bash_input.name = pcVar7;" (assignment_expression "bash_input.name = pcVar7" (field_expression "bash_input.name" identifier . field_identifier) = identifier) ;) (expression_statement "bash_input.location = IVar3;" (assignment_expression "bash_input.location = IVar3" (field_expression "bash_input.location" identifier . field_identifier) = identifier) ;) (expression_statement "bash_input.getter = puVar2;" (assignment_expression "bash_input.getter = puVar2" (field_expression "bash_input.getter" identifier . field_identifier) = identifier) ;) (expression_statement "bash_input.ungetter = psVar1;" (assignment_expression "bash_input.ungetter = psVar1" (field_expression "bash_input.ungetter" identifier . field_identifier) = identifier) ;) (if_statement "if ((bash_input.type == st_bstream) && (-1 < (int)IVar3)) {\n      bp = __ptr->bstream;\n      if ((bash_input_fd_changed != 0) && (bash_input_fd_changed = 0, -1 < default_buffered_input))\n      {\n        bash_input.location.buffered_fd = default_buffered_input;\n        bp->b_fd = default_buffered_input;\n        fcntl64(iVar5,2,1);\n        bp = __ptr->bstream;\n      }\n      set_buffered_stream(bash_input.location.buffered_fd,bp);\n      line_number = __ptr->line;\n      pcVar7 = (__ptr->bash_input).name;\n    }\n    else {\n      line_number = __ptr->line;\n      pcVar7 = (__ptr->bash_input).name;\n    }" if (parenthesized_expression "((bash_input.type == st_bstream) && (-1 < (int)IVar3))" ( (binary_expression "(bash_input.type == st_bstream) && (-1 < (int)IVar3)" (parenthesized_expression "(bash_input.type == st_bstream)" ( (binary_expression "bash_input.type == st_bstream" (field_expression "bash_input.type" identifier . field_identifier) == identifier) )) && (parenthesized_expression "(-1 < (int)IVar3)" ( (binary_expression "-1 < (int)IVar3" number_literal < (cast_expression "(int)IVar3" ( (type_descriptor "int" primitive_type) ) identifier)) ))) )) (compound_statement "{\n      bp = __ptr->bstream;\n      if ((bash_input_fd_changed != 0) && (bash_input_fd_changed = 0, -1 < default_buffered_input))\n      {\n        bash_input.location.buffered_fd = default_buffered_input;\n        bp->b_fd = default_buffered_input;\n        fcntl64(iVar5,2,1);\n        bp = __ptr->bstream;\n      }\n      set_buffered_stream(bash_input.location.buffered_fd,bp);\n      line_number = __ptr->line;\n      pcVar7 = (__ptr->bash_input).name;\n    }" { (expression_statement "bp = __ptr->bstream;" (assignment_expression "bp = __ptr->bstream" identifier = (field_expression "__ptr->bstream" identifier -> field_identifier)) ;) (if_statement "if ((bash_input_fd_changed != 0) && (bash_input_fd_changed = 0, -1 < default_buffered_input))\n      {\n        bash_input.location.buffered_fd = default_buffered_input;\n        bp->b_fd = default_buffered_input;\n        fcntl64(iVar5,2,1);\n        bp = __ptr->bstream;\n      }" if (parenthesized_expression "((bash_input_fd_changed != 0) && (bash_input_fd_changed = 0, -1 < default_buffered_input))" ( (binary_expression "(bash_input_fd_changed != 0) && (bash_input_fd_changed = 0, -1 < default_buffered_input)" (parenthesized_expression "(bash_input_fd_changed != 0)" ( (binary_expression "bash_input_fd_changed != 0" identifier != number_literal) )) && (parenthesized_expression "(bash_input_fd_changed = 0, -1 < default_buffered_input)" ( (comma_expression "bash_input_fd_changed = 0, -1 < default_buffered_input" (assignment_expression "bash_input_fd_changed = 0" identifier = number_literal) , (binary_expression "-1 < default_buffered_input" number_literal < identifier)) ))) )) (compound_statement "{\n        bash_input.location.buffered_fd = default_buffered_input;\n        bp->b_fd = default_buffered_input;\n        fcntl64(iVar5,2,1);\n        bp = __ptr->bstream;\n      }" { (expression_statement "bash_input.location.buffered_fd = default_buffered_input;" (assignment_expression "bash_input.location.buffered_fd = default_buffered_input" (field_expression "bash_input.location.buffered_fd" (field_expression "bash_input.location" identifier . field_identifier) . field_identifier) = identifier) ;) (expression_statement "bp->b_fd = default_buffered_input;" (assignment_expression "bp->b_fd = default_buffered_input" (field_expression "bp->b_fd" identifier -> field_identifier) = identifier) ;) (expression_statement "fcntl64(iVar5,2,1);" (call_expression "fcntl64(iVar5,2,1)" identifier (argument_list "(iVar5,2,1)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "bp = __ptr->bstream;" (assignment_expression "bp = __ptr->bstream" identifier = (field_expression "__ptr->bstream" identifier -> field_identifier)) ;) })) (expression_statement "set_buffered_stream(bash_input.location.buffered_fd,bp);" (call_expression "set_buffered_stream(bash_input.location.buffered_fd,bp)" identifier (argument_list "(bash_input.location.buffered_fd,bp)" ( (field_expression "bash_input.location.buffered_fd" (field_expression "bash_input.location" identifier . field_identifier) . field_identifier) , identifier ))) ;) (expression_statement "line_number = __ptr->line;" (assignment_expression "line_number = __ptr->line" identifier = (field_expression "__ptr->line" identifier -> field_identifier)) ;) (expression_statement "pcVar7 = (__ptr->bash_input).name;" (assignment_expression "pcVar7 = (__ptr->bash_input).name" identifier = (field_expression "(__ptr->bash_input).name" (parenthesized_expression "(__ptr->bash_input)" ( (field_expression "__ptr->bash_input" identifier -> field_identifier) )) . field_identifier)) ;) }) (else_clause "else {\n      line_number = __ptr->line;\n      pcVar7 = (__ptr->bash_input).name;\n    }" else (compound_statement "{\n      line_number = __ptr->line;\n      pcVar7 = (__ptr->bash_input).name;\n    }" { (expression_statement "line_number = __ptr->line;" (assignment_expression "line_number = __ptr->line" identifier = (field_expression "__ptr->line" identifier -> field_identifier)) ;) (expression_statement "pcVar7 = (__ptr->bash_input).name;" (assignment_expression "pcVar7 = (__ptr->bash_input).name" identifier = (field_expression "(__ptr->bash_input).name" (parenthesized_expression "(__ptr->bash_input)" ( (field_expression "__ptr->bash_input" identifier -> field_identifier) )) . field_identifier)) ;) }))) (if_statement "if (pcVar7 != (char *)0x0) {\n      free(pcVar7);\n    }" if (parenthesized_expression "(pcVar7 != (char *)0x0)" ( (binary_expression "pcVar7 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      free(pcVar7);\n    }" { (expression_statement "free(pcVar7);" (call_expression "free(pcVar7)" identifier (argument_list "(pcVar7)" ( identifier ))) ;) })) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "EOF_Reached = 1;" (assignment_expression "EOF_Reached = 1" identifier = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "void pop_stream(void)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  void *__ptr;\n  int iVar5;\n  undefined4 *__ptr_00;\n  size_t sVar6;\n  char *__dest;\n  char *__s;\n  int *piVar7;\n  \n  __ptr_00 = stream_list;\n  if (stream_list != (undefined4 *)0x0) {\n    uVar1 = *stream_list;\n    uVar2 = stream_list[5];\n    EOF_Reached = 0;\n    __s = (char *)stream_list[2];\n    bash_input = stream_list[1];\n    uVar3 = stream_list[4];\n    iVar4 = stream_list[3];\n    stream_list = (undefined4 *)uVar1;\n    if (DAT_0017ac80 != (char *)0x0) {\n      free(DAT_0017ac80);\n    }\n    if (__s != (char *)0x0) {\n      sVar6 = strlen(__s);\n      __dest = (char *)xmalloc(sVar6 + 1);\n      __s = strcpy(__dest,__s);\n    }\n    iVar5 = default_buffered_input;\n    DAT_0017ac80 = __s;\n    DAT_0017ac84 = iVar4;\n    DAT_0017ac88 = uVar3;\n    DAT_0017ac8c = uVar2;\n    if ((bash_input == 4) && (-1 < iVar4)) {\n      piVar7 = (int *)__ptr_00[7];\n      if ((bash_input_fd_changed != 0) && (bash_input_fd_changed = 0, -1 < default_buffered_input))\n      {\n        DAT_0017ac84 = default_buffered_input;\n        *piVar7 = default_buffered_input;\n        fcntl64(iVar5,2,1);\n        piVar7 = (int *)__ptr_00[7];\n      }\n      set_buffered_stream(DAT_0017ac84,piVar7);\n      line_number = __ptr_00[6];\n      __ptr = (void *)__ptr_00[2];\n    }\n    else {\n      line_number = __ptr_00[6];\n      __ptr = (void *)__ptr_00[2];\n    }\n    if (__ptr != (void *)0x0) {\n      free(__ptr);\n    }\n    free(__ptr_00);\n    return;\n  }\n  EOF_Reached = 1;\n  return;\n}\n\n" (function_definition "void pop_stream(void)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  void *__ptr;\n  int iVar5;\n  undefined4 *__ptr_00;\n  size_t sVar6;\n  char *__dest;\n  char *__s;\n  int *piVar7;\n  \n  __ptr_00 = stream_list;\n  if (stream_list != (undefined4 *)0x0) {\n    uVar1 = *stream_list;\n    uVar2 = stream_list[5];\n    EOF_Reached = 0;\n    __s = (char *)stream_list[2];\n    bash_input = stream_list[1];\n    uVar3 = stream_list[4];\n    iVar4 = stream_list[3];\n    stream_list = (undefined4 *)uVar1;\n    if (DAT_0017ac80 != (char *)0x0) {\n      free(DAT_0017ac80);\n    }\n    if (__s != (char *)0x0) {\n      sVar6 = strlen(__s);\n      __dest = (char *)xmalloc(sVar6 + 1);\n      __s = strcpy(__dest,__s);\n    }\n    iVar5 = default_buffered_input;\n    DAT_0017ac80 = __s;\n    DAT_0017ac84 = iVar4;\n    DAT_0017ac88 = uVar3;\n    DAT_0017ac8c = uVar2;\n    if ((bash_input == 4) && (-1 < iVar4)) {\n      piVar7 = (int *)__ptr_00[7];\n      if ((bash_input_fd_changed != 0) && (bash_input_fd_changed = 0, -1 < default_buffered_input))\n      {\n        DAT_0017ac84 = default_buffered_input;\n        *piVar7 = default_buffered_input;\n        fcntl64(iVar5,2,1);\n        piVar7 = (int *)__ptr_00[7];\n      }\n      set_buffered_stream(DAT_0017ac84,piVar7);\n      line_number = __ptr_00[6];\n      __ptr = (void *)__ptr_00[2];\n    }\n    else {\n      line_number = __ptr_00[6];\n      __ptr = (void *)__ptr_00[2];\n    }\n    if (__ptr != (void *)0x0) {\n      free(__ptr);\n    }\n    free(__ptr_00);\n    return;\n  }\n  EOF_Reached = 1;\n  return;\n}" primitive_type (function_declarator "pop_stream(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  void *__ptr;\n  int iVar5;\n  undefined4 *__ptr_00;\n  size_t sVar6;\n  char *__dest;\n  char *__s;\n  int *piVar7;\n  \n  __ptr_00 = stream_list;\n  if (stream_list != (undefined4 *)0x0) {\n    uVar1 = *stream_list;\n    uVar2 = stream_list[5];\n    EOF_Reached = 0;\n    __s = (char *)stream_list[2];\n    bash_input = stream_list[1];\n    uVar3 = stream_list[4];\n    iVar4 = stream_list[3];\n    stream_list = (undefined4 *)uVar1;\n    if (DAT_0017ac80 != (char *)0x0) {\n      free(DAT_0017ac80);\n    }\n    if (__s != (char *)0x0) {\n      sVar6 = strlen(__s);\n      __dest = (char *)xmalloc(sVar6 + 1);\n      __s = strcpy(__dest,__s);\n    }\n    iVar5 = default_buffered_input;\n    DAT_0017ac80 = __s;\n    DAT_0017ac84 = iVar4;\n    DAT_0017ac88 = uVar3;\n    DAT_0017ac8c = uVar2;\n    if ((bash_input == 4) && (-1 < iVar4)) {\n      piVar7 = (int *)__ptr_00[7];\n      if ((bash_input_fd_changed != 0) && (bash_input_fd_changed = 0, -1 < default_buffered_input))\n      {\n        DAT_0017ac84 = default_buffered_input;\n        *piVar7 = default_buffered_input;\n        fcntl64(iVar5,2,1);\n        piVar7 = (int *)__ptr_00[7];\n      }\n      set_buffered_stream(DAT_0017ac84,piVar7);\n      line_number = __ptr_00[6];\n      __ptr = (void *)__ptr_00[2];\n    }\n    else {\n      line_number = __ptr_00[6];\n      __ptr = (void *)__ptr_00[2];\n    }\n    if (__ptr != (void *)0x0) {\n      free(__ptr);\n    }\n    free(__ptr_00);\n    return;\n  }\n  EOF_Reached = 1;\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 *__ptr_00;" type_identifier (pointer_declarator "*__ptr_00" * identifier) ;) (declaration "size_t sVar6;" primitive_type identifier ;) (declaration "char *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (expression_statement "__ptr_00 = stream_list;" (assignment_expression "__ptr_00 = stream_list" identifier = identifier) ;) (if_statement "if (stream_list != (undefined4 *)0x0) {\n    uVar1 = *stream_list;\n    uVar2 = stream_list[5];\n    EOF_Reached = 0;\n    __s = (char *)stream_list[2];\n    bash_input = stream_list[1];\n    uVar3 = stream_list[4];\n    iVar4 = stream_list[3];\n    stream_list = (undefined4 *)uVar1;\n    if (DAT_0017ac80 != (char *)0x0) {\n      free(DAT_0017ac80);\n    }\n    if (__s != (char *)0x0) {\n      sVar6 = strlen(__s);\n      __dest = (char *)xmalloc(sVar6 + 1);\n      __s = strcpy(__dest,__s);\n    }\n    iVar5 = default_buffered_input;\n    DAT_0017ac80 = __s;\n    DAT_0017ac84 = iVar4;\n    DAT_0017ac88 = uVar3;\n    DAT_0017ac8c = uVar2;\n    if ((bash_input == 4) && (-1 < iVar4)) {\n      piVar7 = (int *)__ptr_00[7];\n      if ((bash_input_fd_changed != 0) && (bash_input_fd_changed = 0, -1 < default_buffered_input))\n      {\n        DAT_0017ac84 = default_buffered_input;\n        *piVar7 = default_buffered_input;\n        fcntl64(iVar5,2,1);\n        piVar7 = (int *)__ptr_00[7];\n      }\n      set_buffered_stream(DAT_0017ac84,piVar7);\n      line_number = __ptr_00[6];\n      __ptr = (void *)__ptr_00[2];\n    }\n    else {\n      line_number = __ptr_00[6];\n      __ptr = (void *)__ptr_00[2];\n    }\n    if (__ptr != (void *)0x0) {\n      free(__ptr);\n    }\n    free(__ptr_00);\n    return;\n  }" if (parenthesized_expression "(stream_list != (undefined4 *)0x0)" ( (binary_expression "stream_list != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar1 = *stream_list;\n    uVar2 = stream_list[5];\n    EOF_Reached = 0;\n    __s = (char *)stream_list[2];\n    bash_input = stream_list[1];\n    uVar3 = stream_list[4];\n    iVar4 = stream_list[3];\n    stream_list = (undefined4 *)uVar1;\n    if (DAT_0017ac80 != (char *)0x0) {\n      free(DAT_0017ac80);\n    }\n    if (__s != (char *)0x0) {\n      sVar6 = strlen(__s);\n      __dest = (char *)xmalloc(sVar6 + 1);\n      __s = strcpy(__dest,__s);\n    }\n    iVar5 = default_buffered_input;\n    DAT_0017ac80 = __s;\n    DAT_0017ac84 = iVar4;\n    DAT_0017ac88 = uVar3;\n    DAT_0017ac8c = uVar2;\n    if ((bash_input == 4) && (-1 < iVar4)) {\n      piVar7 = (int *)__ptr_00[7];\n      if ((bash_input_fd_changed != 0) && (bash_input_fd_changed = 0, -1 < default_buffered_input))\n      {\n        DAT_0017ac84 = default_buffered_input;\n        *piVar7 = default_buffered_input;\n        fcntl64(iVar5,2,1);\n        piVar7 = (int *)__ptr_00[7];\n      }\n      set_buffered_stream(DAT_0017ac84,piVar7);\n      line_number = __ptr_00[6];\n      __ptr = (void *)__ptr_00[2];\n    }\n    else {\n      line_number = __ptr_00[6];\n      __ptr = (void *)__ptr_00[2];\n    }\n    if (__ptr != (void *)0x0) {\n      free(__ptr);\n    }\n    free(__ptr_00);\n    return;\n  }" { (expression_statement "uVar1 = *stream_list;" (assignment_expression "uVar1 = *stream_list" identifier = (pointer_expression "*stream_list" * identifier)) ;) (expression_statement "uVar2 = stream_list[5];" (assignment_expression "uVar2 = stream_list[5]" identifier = (subscript_expression "stream_list[5]" identifier [ number_literal ])) ;) (expression_statement "EOF_Reached = 0;" (assignment_expression "EOF_Reached = 0" identifier = number_literal) ;) (expression_statement "__s = (char *)stream_list[2];" (assignment_expression "__s = (char *)stream_list[2]" identifier = (cast_expression "(char *)stream_list[2]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "stream_list[2]" identifier [ number_literal ]))) ;) (expression_statement "bash_input = stream_list[1];" (assignment_expression "bash_input = stream_list[1]" identifier = (subscript_expression "stream_list[1]" identifier [ number_literal ])) ;) (expression_statement "uVar3 = stream_list[4];" (assignment_expression "uVar3 = stream_list[4]" identifier = (subscript_expression "stream_list[4]" identifier [ number_literal ])) ;) (expression_statement "iVar4 = stream_list[3];" (assignment_expression "iVar4 = stream_list[3]" identifier = (subscript_expression "stream_list[3]" identifier [ number_literal ])) ;) (expression_statement "stream_list = (undefined4 *)uVar1;" (assignment_expression "stream_list = (undefined4 *)uVar1" identifier = (cast_expression "(undefined4 *)uVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (DAT_0017ac80 != (char *)0x0) {\n      free(DAT_0017ac80);\n    }" if (parenthesized_expression "(DAT_0017ac80 != (char *)0x0)" ( (binary_expression "DAT_0017ac80 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      free(DAT_0017ac80);\n    }" { (expression_statement "free(DAT_0017ac80);" (call_expression "free(DAT_0017ac80)" identifier (argument_list "(DAT_0017ac80)" ( identifier ))) ;) })) (if_statement "if (__s != (char *)0x0) {\n      sVar6 = strlen(__s);\n      __dest = (char *)xmalloc(sVar6 + 1);\n      __s = strcpy(__dest,__s);\n    }" if (parenthesized_expression "(__s != (char *)0x0)" ( (binary_expression "__s != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      sVar6 = strlen(__s);\n      __dest = (char *)xmalloc(sVar6 + 1);\n      __s = strcpy(__dest,__s);\n    }" { (expression_statement "sVar6 = strlen(__s);" (assignment_expression "sVar6 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "__dest = (char *)xmalloc(sVar6 + 1);" (assignment_expression "__dest = (char *)xmalloc(sVar6 + 1)" identifier = (cast_expression "(char *)xmalloc(sVar6 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar6 + 1)" identifier (argument_list "(sVar6 + 1)" ( (binary_expression "sVar6 + 1" identifier + number_literal) ))))) ;) (expression_statement "__s = strcpy(__dest,__s);" (assignment_expression "__s = strcpy(__dest,__s)" identifier = (call_expression "strcpy(__dest,__s)" identifier (argument_list "(__dest,__s)" ( identifier , identifier )))) ;) })) (expression_statement "iVar5 = default_buffered_input;" (assignment_expression "iVar5 = default_buffered_input" identifier = identifier) ;) (expression_statement "DAT_0017ac80 = __s;" (assignment_expression "DAT_0017ac80 = __s" identifier = identifier) ;) (expression_statement "DAT_0017ac84 = iVar4;" (assignment_expression "DAT_0017ac84 = iVar4" identifier = identifier) ;) (expression_statement "DAT_0017ac88 = uVar3;" (assignment_expression "DAT_0017ac88 = uVar3" identifier = identifier) ;) (expression_statement "DAT_0017ac8c = uVar2;" (assignment_expression "DAT_0017ac8c = uVar2" identifier = identifier) ;) (if_statement "if ((bash_input == 4) && (-1 < iVar4)) {\n      piVar7 = (int *)__ptr_00[7];\n      if ((bash_input_fd_changed != 0) && (bash_input_fd_changed = 0, -1 < default_buffered_input))\n      {\n        DAT_0017ac84 = default_buffered_input;\n        *piVar7 = default_buffered_input;\n        fcntl64(iVar5,2,1);\n        piVar7 = (int *)__ptr_00[7];\n      }\n      set_buffered_stream(DAT_0017ac84,piVar7);\n      line_number = __ptr_00[6];\n      __ptr = (void *)__ptr_00[2];\n    }\n    else {\n      line_number = __ptr_00[6];\n      __ptr = (void *)__ptr_00[2];\n    }" if (parenthesized_expression "((bash_input == 4) && (-1 < iVar4))" ( (binary_expression "(bash_input == 4) && (-1 < iVar4)" (parenthesized_expression "(bash_input == 4)" ( (binary_expression "bash_input == 4" identifier == number_literal) )) && (parenthesized_expression "(-1 < iVar4)" ( (binary_expression "-1 < iVar4" number_literal < identifier) ))) )) (compound_statement "{\n      piVar7 = (int *)__ptr_00[7];\n      if ((bash_input_fd_changed != 0) && (bash_input_fd_changed = 0, -1 < default_buffered_input))\n      {\n        DAT_0017ac84 = default_buffered_input;\n        *piVar7 = default_buffered_input;\n        fcntl64(iVar5,2,1);\n        piVar7 = (int *)__ptr_00[7];\n      }\n      set_buffered_stream(DAT_0017ac84,piVar7);\n      line_number = __ptr_00[6];\n      __ptr = (void *)__ptr_00[2];\n    }" { (expression_statement "piVar7 = (int *)__ptr_00[7];" (assignment_expression "piVar7 = (int *)__ptr_00[7]" identifier = (cast_expression "(int *)__ptr_00[7]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "__ptr_00[7]" identifier [ number_literal ]))) ;) (if_statement "if ((bash_input_fd_changed != 0) && (bash_input_fd_changed = 0, -1 < default_buffered_input))\n      {\n        DAT_0017ac84 = default_buffered_input;\n        *piVar7 = default_buffered_input;\n        fcntl64(iVar5,2,1);\n        piVar7 = (int *)__ptr_00[7];\n      }" if (parenthesized_expression "((bash_input_fd_changed != 0) && (bash_input_fd_changed = 0, -1 < default_buffered_input))" ( (binary_expression "(bash_input_fd_changed != 0) && (bash_input_fd_changed = 0, -1 < default_buffered_input)" (parenthesized_expression "(bash_input_fd_changed != 0)" ( (binary_expression "bash_input_fd_changed != 0" identifier != number_literal) )) && (parenthesized_expression "(bash_input_fd_changed = 0, -1 < default_buffered_input)" ( (comma_expression "bash_input_fd_changed = 0, -1 < default_buffered_input" (assignment_expression "bash_input_fd_changed = 0" identifier = number_literal) , (binary_expression "-1 < default_buffered_input" number_literal < identifier)) ))) )) (compound_statement "{\n        DAT_0017ac84 = default_buffered_input;\n        *piVar7 = default_buffered_input;\n        fcntl64(iVar5,2,1);\n        piVar7 = (int *)__ptr_00[7];\n      }" { (expression_statement "DAT_0017ac84 = default_buffered_input;" (assignment_expression "DAT_0017ac84 = default_buffered_input" identifier = identifier) ;) (expression_statement "*piVar7 = default_buffered_input;" (assignment_expression "*piVar7 = default_buffered_input" (pointer_expression "*piVar7" * identifier) = identifier) ;) (expression_statement "fcntl64(iVar5,2,1);" (call_expression "fcntl64(iVar5,2,1)" identifier (argument_list "(iVar5,2,1)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "piVar7 = (int *)__ptr_00[7];" (assignment_expression "piVar7 = (int *)__ptr_00[7]" identifier = (cast_expression "(int *)__ptr_00[7]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "__ptr_00[7]" identifier [ number_literal ]))) ;) })) (expression_statement "set_buffered_stream(DAT_0017ac84,piVar7);" (call_expression "set_buffered_stream(DAT_0017ac84,piVar7)" identifier (argument_list "(DAT_0017ac84,piVar7)" ( identifier , identifier ))) ;) (expression_statement "line_number = __ptr_00[6];" (assignment_expression "line_number = __ptr_00[6]" identifier = (subscript_expression "__ptr_00[6]" identifier [ number_literal ])) ;) (expression_statement "__ptr = (void *)__ptr_00[2];" (assignment_expression "__ptr = (void *)__ptr_00[2]" identifier = (cast_expression "(void *)__ptr_00[2]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "__ptr_00[2]" identifier [ number_literal ]))) ;) }) (else_clause "else {\n      line_number = __ptr_00[6];\n      __ptr = (void *)__ptr_00[2];\n    }" else (compound_statement "{\n      line_number = __ptr_00[6];\n      __ptr = (void *)__ptr_00[2];\n    }" { (expression_statement "line_number = __ptr_00[6];" (assignment_expression "line_number = __ptr_00[6]" identifier = (subscript_expression "__ptr_00[6]" identifier [ number_literal ])) ;) (expression_statement "__ptr = (void *)__ptr_00[2];" (assignment_expression "__ptr = (void *)__ptr_00[2]" identifier = (cast_expression "(void *)__ptr_00[2]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "__ptr_00[2]" identifier [ number_literal ]))) ;) }))) (if_statement "if (__ptr != (void *)0x0) {\n      free(__ptr);\n    }" if (parenthesized_expression "(__ptr != (void *)0x0)" ( (binary_expression "__ptr != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      free(__ptr);\n    }" { (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) })) (expression_statement "free(__ptr_00);" (call_expression "free(__ptr_00)" identifier (argument_list "(__ptr_00)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "EOF_Reached = 1;" (assignment_expression "EOF_Reached = 1" identifier = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) 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 ( IDENT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (binary_expression LIT < IDENT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = LIT) , (binary_expression LIT < IDENT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ 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 ( IDENT ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (return_statement return ;) })))
(function_definition "void pop_stream(void)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  void *__ptr;\n  int iVar5;\n  undefined4 *__ptr_00;\n  size_t sVar6;\n  char *__dest;\n  char *__s;\n  int *piVar7;\n  \n  __ptr_00 = stream_list;\n  if (stream_list != (undefined4 *)0x0) {\n    uVar1 = *stream_list;\n    uVar2 = stream_list[5];\n    EOF_Reached = 0;\n    __s = (char *)stream_list[2];\n    bash_input = stream_list[1];\n    uVar3 = stream_list[4];\n    iVar4 = stream_list[3];\n    stream_list = (undefined4 *)uVar1;\n    if (DAT_0017ac80 != (char *)0x0) {\n      free(DAT_0017ac80);\n    }\n    if (__s != (char *)0x0) {\n      sVar6 = strlen(__s);\n      __dest = (char *)xmalloc(sVar6 + 1);\n      __s = strcpy(__dest,__s);\n    }\n    iVar5 = default_buffered_input;\n    DAT_0017ac80 = __s;\n    DAT_0017ac84 = iVar4;\n    DAT_0017ac88 = uVar3;\n    DAT_0017ac8c = uVar2;\n    if ((bash_input == 4) && (-1 < iVar4)) {\n      piVar7 = (int *)__ptr_00[7];\n      if ((bash_input_fd_changed != 0) && (bash_input_fd_changed = 0, -1 < default_buffered_input))\n      {\n        DAT_0017ac84 = default_buffered_input;\n        *piVar7 = default_buffered_input;\n        fcntl64(iVar5,2,1);\n        piVar7 = (int *)__ptr_00[7];\n      }\n      set_buffered_stream(DAT_0017ac84,piVar7);\n      line_number = __ptr_00[6];\n      __ptr = (void *)__ptr_00[2];\n    }\n    else {\n      line_number = __ptr_00[6];\n      __ptr = (void *)__ptr_00[2];\n    }\n    if (__ptr != (void *)0x0) {\n      free(__ptr);\n    }\n    free(__ptr_00);\n    return;\n  }\n  EOF_Reached = 1;\n  return;\n}" (primitive_type "void") (function_declarator "pop_stream(void)" (identifier "pop_stream") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  void *__ptr;\n  int iVar5;\n  undefined4 *__ptr_00;\n  size_t sVar6;\n  char *__dest;\n  char *__s;\n  int *piVar7;\n  \n  __ptr_00 = stream_list;\n  if (stream_list != (undefined4 *)0x0) {\n    uVar1 = *stream_list;\n    uVar2 = stream_list[5];\n    EOF_Reached = 0;\n    __s = (char *)stream_list[2];\n    bash_input = stream_list[1];\n    uVar3 = stream_list[4];\n    iVar4 = stream_list[3];\n    stream_list = (undefined4 *)uVar1;\n    if (DAT_0017ac80 != (char *)0x0) {\n      free(DAT_0017ac80);\n    }\n    if (__s != (char *)0x0) {\n      sVar6 = strlen(__s);\n      __dest = (char *)xmalloc(sVar6 + 1);\n      __s = strcpy(__dest,__s);\n    }\n    iVar5 = default_buffered_input;\n    DAT_0017ac80 = __s;\n    DAT_0017ac84 = iVar4;\n    DAT_0017ac88 = uVar3;\n    DAT_0017ac8c = uVar2;\n    if ((bash_input == 4) && (-1 < iVar4)) {\n      piVar7 = (int *)__ptr_00[7];\n      if ((bash_input_fd_changed != 0) && (bash_input_fd_changed = 0, -1 < default_buffered_input))\n      {\n        DAT_0017ac84 = default_buffered_input;\n        *piVar7 = default_buffered_input;\n        fcntl64(iVar5,2,1);\n        piVar7 = (int *)__ptr_00[7];\n      }\n      set_buffered_stream(DAT_0017ac84,piVar7);\n      line_number = __ptr_00[6];\n      __ptr = (void *)__ptr_00[2];\n    }\n    else {\n      line_number = __ptr_00[6];\n      __ptr = (void *)__ptr_00[2];\n    }\n    if (__ptr != (void *)0x0) {\n      free(__ptr);\n    }\n    free(__ptr_00);\n    return;\n  }\n  EOF_Reached = 1;\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "void *__ptr;" (primitive_type "void") (pointer_declarator "*__ptr" (* "*") (identifier "__ptr")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "undefined4 *__ptr_00;" (type_identifier "undefined4") (pointer_declarator "*__ptr_00" (* "*") (identifier "__ptr_00")) (; ";")) (declaration "size_t sVar6;" (primitive_type "size_t") (identifier "sVar6") (; ";")) (declaration "char *__dest;" (primitive_type "char") (pointer_declarator "*__dest" (* "*") (identifier "__dest")) (; ";")) (declaration "char *__s;" (primitive_type "char") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "int *piVar7;" (primitive_type "int") (pointer_declarator "*piVar7" (* "*") (identifier "piVar7")) (; ";")) (expression_statement "__ptr_00 = stream_list;" (assignment_expression "__ptr_00 = stream_list" (identifier "__ptr_00") (= "=") (identifier "stream_list")) (; ";")) (if_statement "if (stream_list != (undefined4 *)0x0) {\n    uVar1 = *stream_list;\n    uVar2 = stream_list[5];\n    EOF_Reached = 0;\n    __s = (char *)stream_list[2];\n    bash_input = stream_list[1];\n    uVar3 = stream_list[4];\n    iVar4 = stream_list[3];\n    stream_list = (undefined4 *)uVar1;\n    if (DAT_0017ac80 != (char *)0x0) {\n      free(DAT_0017ac80);\n    }\n    if (__s != (char *)0x0) {\n      sVar6 = strlen(__s);\n      __dest = (char *)xmalloc(sVar6 + 1);\n      __s = strcpy(__dest,__s);\n    }\n    iVar5 = default_buffered_input;\n    DAT_0017ac80 = __s;\n    DAT_0017ac84 = iVar4;\n    DAT_0017ac88 = uVar3;\n    DAT_0017ac8c = uVar2;\n    if ((bash_input == 4) && (-1 < iVar4)) {\n      piVar7 = (int *)__ptr_00[7];\n      if ((bash_input_fd_changed != 0) && (bash_input_fd_changed = 0, -1 < default_buffered_input))\n      {\n        DAT_0017ac84 = default_buffered_input;\n        *piVar7 = default_buffered_input;\n        fcntl64(iVar5,2,1);\n        piVar7 = (int *)__ptr_00[7];\n      }\n      set_buffered_stream(DAT_0017ac84,piVar7);\n      line_number = __ptr_00[6];\n      __ptr = (void *)__ptr_00[2];\n    }\n    else {\n      line_number = __ptr_00[6];\n      __ptr = (void *)__ptr_00[2];\n    }\n    if (__ptr != (void *)0x0) {\n      free(__ptr);\n    }\n    free(__ptr_00);\n    return;\n  }" (if "if") (parenthesized_expression "(stream_list != (undefined4 *)0x0)" (( "(") (binary_expression "stream_list != (undefined4 *)0x0" (identifier "stream_list") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    uVar1 = *stream_list;\n    uVar2 = stream_list[5];\n    EOF_Reached = 0;\n    __s = (char *)stream_list[2];\n    bash_input = stream_list[1];\n    uVar3 = stream_list[4];\n    iVar4 = stream_list[3];\n    stream_list = (undefined4 *)uVar1;\n    if (DAT_0017ac80 != (char *)0x0) {\n      free(DAT_0017ac80);\n    }\n    if (__s != (char *)0x0) {\n      sVar6 = strlen(__s);\n      __dest = (char *)xmalloc(sVar6 + 1);\n      __s = strcpy(__dest,__s);\n    }\n    iVar5 = default_buffered_input;\n    DAT_0017ac80 = __s;\n    DAT_0017ac84 = iVar4;\n    DAT_0017ac88 = uVar3;\n    DAT_0017ac8c = uVar2;\n    if ((bash_input == 4) && (-1 < iVar4)) {\n      piVar7 = (int *)__ptr_00[7];\n      if ((bash_input_fd_changed != 0) && (bash_input_fd_changed = 0, -1 < default_buffered_input))\n      {\n        DAT_0017ac84 = default_buffered_input;\n        *piVar7 = default_buffered_input;\n        fcntl64(iVar5,2,1);\n        piVar7 = (int *)__ptr_00[7];\n      }\n      set_buffered_stream(DAT_0017ac84,piVar7);\n      line_number = __ptr_00[6];\n      __ptr = (void *)__ptr_00[2];\n    }\n    else {\n      line_number = __ptr_00[6];\n      __ptr = (void *)__ptr_00[2];\n    }\n    if (__ptr != (void *)0x0) {\n      free(__ptr);\n    }\n    free(__ptr_00);\n    return;\n  }" ({ "{") (expression_statement "uVar1 = *stream_list;" (assignment_expression "uVar1 = *stream_list" (identifier "uVar1") (= "=") (pointer_expression "*stream_list" (* "*") (identifier "stream_list"))) (; ";")) (expression_statement "uVar2 = stream_list[5];" (assignment_expression "uVar2 = stream_list[5]" (identifier "uVar2") (= "=") (subscript_expression "stream_list[5]" (identifier "stream_list") ([ "[") (number_literal "5") (] "]"))) (; ";")) (expression_statement "EOF_Reached = 0;" (assignment_expression "EOF_Reached = 0" (identifier "EOF_Reached") (= "=") (number_literal "0")) (; ";")) (expression_statement "__s = (char *)stream_list[2];" (assignment_expression "__s = (char *)stream_list[2]" (identifier "__s") (= "=") (cast_expression "(char *)stream_list[2]" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "stream_list[2]" (identifier "stream_list") ([ "[") (number_literal "2") (] "]")))) (; ";")) (expression_statement "bash_input = stream_list[1];" (assignment_expression "bash_input = stream_list[1]" (identifier "bash_input") (= "=") (subscript_expression "stream_list[1]" (identifier "stream_list") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "uVar3 = stream_list[4];" (assignment_expression "uVar3 = stream_list[4]" (identifier "uVar3") (= "=") (subscript_expression "stream_list[4]" (identifier "stream_list") ([ "[") (number_literal "4") (] "]"))) (; ";")) (expression_statement "iVar4 = stream_list[3];" (assignment_expression "iVar4 = stream_list[3]" (identifier "iVar4") (= "=") (subscript_expression "stream_list[3]" (identifier "stream_list") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "stream_list = (undefined4 *)uVar1;" (assignment_expression "stream_list = (undefined4 *)uVar1" (identifier "stream_list") (= "=") (cast_expression "(undefined4 *)uVar1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "uVar1"))) (; ";")) (if_statement "if (DAT_0017ac80 != (char *)0x0) {\n      free(DAT_0017ac80);\n    }" (if "if") (parenthesized_expression "(DAT_0017ac80 != (char *)0x0)" (( "(") (binary_expression "DAT_0017ac80 != (char *)0x0" (identifier "DAT_0017ac80") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      free(DAT_0017ac80);\n    }" ({ "{") (expression_statement "free(DAT_0017ac80);" (call_expression "free(DAT_0017ac80)" (identifier "free") (argument_list "(DAT_0017ac80)" (( "(") (identifier "DAT_0017ac80") () ")"))) (; ";")) (} "}"))) (if_statement "if (__s != (char *)0x0) {\n      sVar6 = strlen(__s);\n      __dest = (char *)xmalloc(sVar6 + 1);\n      __s = strcpy(__dest,__s);\n    }" (if "if") (parenthesized_expression "(__s != (char *)0x0)" (( "(") (binary_expression "__s != (char *)0x0" (identifier "__s") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      sVar6 = strlen(__s);\n      __dest = (char *)xmalloc(sVar6 + 1);\n      __s = strcpy(__dest,__s);\n    }" ({ "{") (expression_statement "sVar6 = strlen(__s);" (assignment_expression "sVar6 = strlen(__s)" (identifier "sVar6") (= "=") (call_expression "strlen(__s)" (identifier "strlen") (argument_list "(__s)" (( "(") (identifier "__s") () ")")))) (; ";")) (expression_statement "__dest = (char *)xmalloc(sVar6 + 1);" (assignment_expression "__dest = (char *)xmalloc(sVar6 + 1)" (identifier "__dest") (= "=") (cast_expression "(char *)xmalloc(sVar6 + 1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(sVar6 + 1)" (identifier "xmalloc") (argument_list "(sVar6 + 1)" (( "(") (binary_expression "sVar6 + 1" (identifier "sVar6") (+ "+") (number_literal "1")) () ")"))))) (; ";")) (expression_statement "__s = strcpy(__dest,__s);" (assignment_expression "__s = strcpy(__dest,__s)" (identifier "__s") (= "=") (call_expression "strcpy(__dest,__s)" (identifier "strcpy") (argument_list "(__dest,__s)" (( "(") (identifier "__dest") (, ",") (identifier "__s") () ")")))) (; ";")) (} "}"))) (expression_statement "iVar5 = default_buffered_input;" (assignment_expression "iVar5 = default_buffered_input" (identifier "iVar5") (= "=") (identifier "default_buffered_input")) (; ";")) (expression_statement "DAT_0017ac80 = __s;" (assignment_expression "DAT_0017ac80 = __s" (identifier "DAT_0017ac80") (= "=") (identifier "__s")) (; ";")) (expression_statement "DAT_0017ac84 = iVar4;" (assignment_expression "DAT_0017ac84 = iVar4" (identifier "DAT_0017ac84") (= "=") (identifier "iVar4")) (; ";")) (expression_statement "DAT_0017ac88 = uVar3;" (assignment_expression "DAT_0017ac88 = uVar3" (identifier "DAT_0017ac88") (= "=") (identifier "uVar3")) (; ";")) (expression_statement "DAT_0017ac8c = uVar2;" (assignment_expression "DAT_0017ac8c = uVar2" (identifier "DAT_0017ac8c") (= "=") (identifier "uVar2")) (; ";")) (if_statement "if ((bash_input == 4) && (-1 < iVar4)) {\n      piVar7 = (int *)__ptr_00[7];\n      if ((bash_input_fd_changed != 0) && (bash_input_fd_changed = 0, -1 < default_buffered_input))\n      {\n        DAT_0017ac84 = default_buffered_input;\n        *piVar7 = default_buffered_input;\n        fcntl64(iVar5,2,1);\n        piVar7 = (int *)__ptr_00[7];\n      }\n      set_buffered_stream(DAT_0017ac84,piVar7);\n      line_number = __ptr_00[6];\n      __ptr = (void *)__ptr_00[2];\n    }\n    else {\n      line_number = __ptr_00[6];\n      __ptr = (void *)__ptr_00[2];\n    }" (if "if") (parenthesized_expression "((bash_input == 4) && (-1 < iVar4))" (( "(") (binary_expression "(bash_input == 4) && (-1 < iVar4)" (parenthesized_expression "(bash_input == 4)" (( "(") (binary_expression "bash_input == 4" (identifier "bash_input") (== "==") (number_literal "4")) () ")")) (&& "&&") (parenthesized_expression "(-1 < iVar4)" (( "(") (binary_expression "-1 < iVar4" (number_literal "-1") (< "<") (identifier "iVar4")) () ")"))) () ")")) (compound_statement "{\n      piVar7 = (int *)__ptr_00[7];\n      if ((bash_input_fd_changed != 0) && (bash_input_fd_changed = 0, -1 < default_buffered_input))\n      {\n        DAT_0017ac84 = default_buffered_input;\n        *piVar7 = default_buffered_input;\n        fcntl64(iVar5,2,1);\n        piVar7 = (int *)__ptr_00[7];\n      }\n      set_buffered_stream(DAT_0017ac84,piVar7);\n      line_number = __ptr_00[6];\n      __ptr = (void *)__ptr_00[2];\n    }" ({ "{") (expression_statement "piVar7 = (int *)__ptr_00[7];" (assignment_expression "piVar7 = (int *)__ptr_00[7]" (identifier "piVar7") (= "=") (cast_expression "(int *)__ptr_00[7]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "__ptr_00[7]" (identifier "__ptr_00") ([ "[") (number_literal "7") (] "]")))) (; ";")) (if_statement "if ((bash_input_fd_changed != 0) && (bash_input_fd_changed = 0, -1 < default_buffered_input))\n      {\n        DAT_0017ac84 = default_buffered_input;\n        *piVar7 = default_buffered_input;\n        fcntl64(iVar5,2,1);\n        piVar7 = (int *)__ptr_00[7];\n      }" (if "if") (parenthesized_expression "((bash_input_fd_changed != 0) && (bash_input_fd_changed = 0, -1 < default_buffered_input))" (( "(") (binary_expression "(bash_input_fd_changed != 0) && (bash_input_fd_changed = 0, -1 < default_buffered_input)" (parenthesized_expression "(bash_input_fd_changed != 0)" (( "(") (binary_expression "bash_input_fd_changed != 0" (identifier "bash_input_fd_changed") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(bash_input_fd_changed = 0, -1 < default_buffered_input)" (( "(") (comma_expression "bash_input_fd_changed = 0, -1 < default_buffered_input" (assignment_expression "bash_input_fd_changed = 0" (identifier "bash_input_fd_changed") (= "=") (number_literal "0")) (, ",") (binary_expression "-1 < default_buffered_input" (number_literal "-1") (< "<") (identifier "default_buffered_input"))) () ")"))) () ")")) (compound_statement "{\n        DAT_0017ac84 = default_buffered_input;\n        *piVar7 = default_buffered_input;\n        fcntl64(iVar5,2,1);\n        piVar7 = (int *)__ptr_00[7];\n      }" ({ "{") (expression_statement "DAT_0017ac84 = default_buffered_input;" (assignment_expression "DAT_0017ac84 = default_buffered_input" (identifier "DAT_0017ac84") (= "=") (identifier "default_buffered_input")) (; ";")) (expression_statement "*piVar7 = default_buffered_input;" (assignment_expression "*piVar7 = default_buffered_input" (pointer_expression "*piVar7" (* "*") (identifier "piVar7")) (= "=") (identifier "default_buffered_input")) (; ";")) (expression_statement "fcntl64(iVar5,2,1);" (call_expression "fcntl64(iVar5,2,1)" (identifier "fcntl64") (argument_list "(iVar5,2,1)" (( "(") (identifier "iVar5") (, ",") (number_literal "2") (, ",") (number_literal "1") () ")"))) (; ";")) (expression_statement "piVar7 = (int *)__ptr_00[7];" (assignment_expression "piVar7 = (int *)__ptr_00[7]" (identifier "piVar7") (= "=") (cast_expression "(int *)__ptr_00[7]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "__ptr_00[7]" (identifier "__ptr_00") ([ "[") (number_literal "7") (] "]")))) (; ";")) (} "}"))) (expression_statement "set_buffered_stream(DAT_0017ac84,piVar7);" (call_expression "set_buffered_stream(DAT_0017ac84,piVar7)" (identifier "set_buffered_stream") (argument_list "(DAT_0017ac84,piVar7)" (( "(") (identifier "DAT_0017ac84") (, ",") (identifier "piVar7") () ")"))) (; ";")) (expression_statement "line_number = __ptr_00[6];" (assignment_expression "line_number = __ptr_00[6]" (identifier "line_number") (= "=") (subscript_expression "__ptr_00[6]" (identifier "__ptr_00") ([ "[") (number_literal "6") (] "]"))) (; ";")) (expression_statement "__ptr = (void *)__ptr_00[2];" (assignment_expression "__ptr = (void *)__ptr_00[2]" (identifier "__ptr") (= "=") (cast_expression "(void *)__ptr_00[2]" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "__ptr_00[2]" (identifier "__ptr_00") ([ "[") (number_literal "2") (] "]")))) (; ";")) (} "}")) (else_clause "else {\n      line_number = __ptr_00[6];\n      __ptr = (void *)__ptr_00[2];\n    }" (else "else") (compound_statement "{\n      line_number = __ptr_00[6];\n      __ptr = (void *)__ptr_00[2];\n    }" ({ "{") (expression_statement "line_number = __ptr_00[6];" (assignment_expression "line_number = __ptr_00[6]" (identifier "line_number") (= "=") (subscript_expression "__ptr_00[6]" (identifier "__ptr_00") ([ "[") (number_literal "6") (] "]"))) (; ";")) (expression_statement "__ptr = (void *)__ptr_00[2];" (assignment_expression "__ptr = (void *)__ptr_00[2]" (identifier "__ptr") (= "=") (cast_expression "(void *)__ptr_00[2]" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "__ptr_00[2]" (identifier "__ptr_00") ([ "[") (number_literal "2") (] "]")))) (; ";")) (} "}")))) (if_statement "if (__ptr != (void *)0x0) {\n      free(__ptr);\n    }" (if "if") (parenthesized_expression "(__ptr != (void *)0x0)" (( "(") (binary_expression "__ptr != (void *)0x0" (identifier "__ptr") (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      free(__ptr);\n    }" ({ "{") (expression_statement "free(__ptr);" (call_expression "free(__ptr)" (identifier "free") (argument_list "(__ptr)" (( "(") (identifier "__ptr") () ")"))) (; ";")) (} "}"))) (expression_statement "free(__ptr_00);" (call_expression "free(__ptr_00)" (identifier "free") (argument_list "(__ptr_00)" (( "(") (identifier "__ptr_00") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "EOF_Reached = 1;" (assignment_expression "EOF_Reached = 1" (identifier "EOF_Reached") (= "=") (number_literal "1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention -- yet parameter storage is locked */

void function_1(void)

{
  type_1 *psVar1;
  type_2 *puVar2;
  type_3 IVar3;
  type_4 **ppsVar4;
  int iVar5;
  type_5 *__ptr;
  size_t var_6;
  char *__dest;
  char *var_3;
  type_6 *bp;
  
  __ptr = var_1;
  if (var_1 != (type_5 *)0x0) {
    ppsVar4 = &var_1->next;
    psVar1 = (var_1->bash_input).ungetter;
    EOF_Reached = 0;
    var_3 = (var_1->bash_input).name;
    bash_input.type = (var_1->bash_input).type;
    puVar2 = (var_1->bash_input).getter;
    IVar3 = (var_1->bash_input).location;
    var_1 = *ppsVar4;
    if (bash_input.name != (char *)0x0) {
      var_2(bash_input.name);
    }
    if (var_3 != (char *)0x0) {
      var_6 = var_4(var_3);
      __dest = (char *)var_5(var_6 + 1);
      var_3 = var_7(__dest,var_3);
    }
    iVar5 = var_10;
    bash_input.name = var_3;
    bash_input.location = IVar3;
    bash_input.getter = puVar2;
    bash_input.ungetter = psVar1;
    if ((bash_input.type == var_8) && (-1 < (int)IVar3)) {
      bp = __ptr->bstream;
      if ((var_9 != 0) && (var_9 = 0, -1 < var_10))
      {
        bash_input.location.buffered_fd = var_10;
        bp->b_fd = var_10;
        var_11(iVar5,2,1);
        bp = __ptr->bstream;
      }
      var_12(bash_input.location.buffered_fd,bp);
      line_number = __ptr->line;
      var_3 = (__ptr->bash_input).name;
    }
    else {
      line_number = __ptr->line;
      var_3 = (__ptr->bash_input).name;
    }
    if (var_3 != (char *)0x0) {
      var_2(var_3);
    }
    var_2(__ptr);
    return;
  }
  EOF_Reached = 1;
  return;
}


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

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

void MASKED(void)

{
  undefined4 uVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  int iVar4;
  void *__ptr;
  int iVar5;
  undefined4 *__ptr_00;
  size_t sVar6;
  char *__dest;
  char *__s;
  int *piVar7;
  
  __ptr_00 = stream_list;
  if (stream_list != (undefined4 *)0x0) {
    uVar1 = *stream_list;
    uVar2 = stream_list[5];
    EOF_Reached = 0;
    __s = (char *)stream_list[2];
    bash_input = stream_list[1];
    uVar3 = stream_list[4];
    iVar4 = stream_list[3];
    stream_list = (undefined4 *)uVar1;
    if (DAT_0017ac80 != (char *)0x0) {
      free(DAT_0017ac80);
    }
    if (__s != (char *)0x0) {
      sVar6 = strlen(__s);
      __dest = (char *)xmalloc(sVar6 + 1);
      __s = strcpy(__dest,__s);
    }
    iVar5 = default_buffered_input;
    DAT_0017ac80 = __s;
    DAT_0017ac84 = iVar4;
    DAT_0017ac88 = uVar3;
    DAT_0017ac8c = uVar2;
    if ((bash_input == 4) && (-1 < iVar4)) {
      piVar7 = (int *)__ptr_00[7];
      if ((bash_input_fd_changed != 0) && (bash_input_fd_changed = 0, -1 < default_buffered_input))
      {
        DAT_0017ac84 = default_buffered_input;
        *piVar7 = default_buffered_input;
        fcntl64(iVar5,2,1);
        piVar7 = (int *)__ptr_00[7];
      }
      set_buffered_stream(DAT_0017ac84,piVar7);
      line_number = __ptr_00[6];
      __ptr = (void *)__ptr_00[2];
    }
    else {
      line_number = __ptr_00[6];
      __ptr = (void *)__ptr_00[2];
    }
    if (__ptr != (void *)0x0) {
      free(__ptr);
    }
    free(__ptr_00);
    return;
  }
  EOF_Reached = 1;
  return;
}

