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

int parse_command(void)

{
  int iVar1;
  char *pcVar2;
  char *pcVar3;
  
  need_here_doc = 0;
  run_pending_traps();
  if ((interactive != 0) && (bash_input.type != st_string)) {
    iVar1 = parser_expanding_alias();
    if (iVar1 == 0) {
      pcVar2 = get_string_value("PROMPT_COMMAND");
      if (pcVar2 != (char *)0x0) {
        execute_variable_command(pcVar2,"PROMPT_COMMAND");
      }
      if (running_under_emacs == 2) {
        pcVar3 = get_string_value("PWD");
        pcVar2 = (char *)0x0;
        if (pcVar3 == (char *)0x0) {
          pcVar3 = get_working_directory("eterm");
          pcVar2 = pcVar3;
        }
        __fprintf_chk(*(undefined4 *)PTR_stderr_00171e54,1,&DAT_00110602,pcVar3);
        free(pcVar2);
      }
    }
  }
  current_command_line_count = 0;
  iVar1 = yyparse();
  if (need_here_doc == 0) {
    return iVar1;
  }
  gather_here_documents();
  return iVar1;
}



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

undefined4 parse_command(void)

{
  undefined4 uVar1;
  int iVar2;
  void *pvVar3;
  void *__ptr;
  
  need_here_doc = 0;
  run_pending_traps();
  if ((interactive != 0) && (bash_input != 3)) {
    iVar2 = parser_expanding_alias();
    if (iVar2 == 0) {
      iVar2 = get_string_value("PROMPT_COMMAND");
      if (iVar2 != 0) {
        execute_variable_command(iVar2,"PROMPT_COMMAND");
      }
      if (running_under_emacs == 2) {
        pvVar3 = (void *)get_string_value(&DAT_0011214a);
        __ptr = (void *)0x0;
        if (pvVar3 == (void *)0x0) {
          pvVar3 = (void *)get_working_directory("eterm");
          __ptr = pvVar3;
        }
        __fprintf_chk(*(undefined4 *)PTR_stderr_00171e54,1,&DAT_00110602,pvVar3);
        free(__ptr);
      }
    }
  }
  current_command_line_count = 0;
  uVar1 = yyparse();
  if (need_here_doc == 0) {
    return uVar1;
  }
  gather_here_documents();
  return uVar1;
}


PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000312b0
ADD EBX,0x13fd98
SUB ESP,0x10
LEA ESI,[EBX + 0x8c78]
MOV dword ptr [ESI],0x0
CALL 0x0008ab40
LEA EAX,[EBX + 0x484c]
MOV ECX,dword ptr [EAX]
TEST ECX,ECX
JZ 0x00032299
LEA EAX,[EBX + 0x8c7c]
CMP dword ptr [EAX],0x3
JNZ 0x000322c0
LEA EAX,[EBX + 0x8c58]
MOV dword ptr [EAX],0x0
CALL 0x0003d4d0
MOV EDX,dword ptr [ESI]
TEST EDX,EDX
JNZ 0x00032340
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
CALL 0x00033d40
TEST EAX,EAX
JNZ 0x00032299
SUB ESP,0xc
LEA EDI,[EBX + 0xfff9e5f3]
PUSH EDI
CALL 0x000569d0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000322ec
SUB ESP,0x8
PUSH EDI
PUSH EAX
CALL 0x00040dc0
ADD ESP,0x10
LEA EAX,[EBX + 0x8c48]
CMP dword ptr [EAX],0x2
JNZ 0x00032299
SUB ESP,0xc
LEA EAX,[EBX + 0xfffa014a]
XOR EDI,EDI
PUSH EAX
CALL 0x000569d0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00032354
PUSH EAX
LEA EAX,[EBX + 0xfff9e602]
PUSH EAX
MOV EAX,dword ptr [EBX + 0xfffffe54]
PUSH 0x1
PUSH dword ptr [EAX]
CALL 0x0002ec00
MOV dword ptr [ESP],EDI
CALL 0x0002e200
ADD ESP,0x10
JMP 0x00032299
MOV dword ptr [ESP + 0xc],EAX
CALL 0x00033fc0
MOV EAX,dword ptr [ESP + 0xc]
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
SUB ESP,0xc
LEA EAX,[EBX + 0xfff9e196]
PUSH EAX
CALL 0x000b0730
ADD ESP,0x10
MOV EDI,EAX
JMP 0x0003230f
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 parse_command(void)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  void *pvVar3;\n  void *__ptr;\n  \n  need_here_doc = 0;\n  run_pending_traps();\n  if ((interactive != 0) && (bash_input != 3)) {\n    iVar2 = parser_expanding_alias();\n    if (iVar2 == 0) {\n      iVar2 = get_string_value("PROMPT_COMMAND");\n      if (iVar2 != 0) {\n        execute_variable_command(iVar2,"PROMPT_COMMAND");\n      }\n      if (running_under_emacs == 2) {\n        pvVar3 = (void *)get_string_value(&DAT_0011214a);\n        __ptr = (void *)0x0;\n        if (pvVar3 == (void *)0x0) {\n          pvVar3 = (void *)get_working_directory("eterm");\n          __ptr = pvVar3;\n        }\n        __fprintf_chk(*(undefined4 *)PTR_stderr_00171e54,1,&DAT_00110602,pvVar3);\n        free(__ptr);\n      }\n    }\n  }\n  current_command_line_count = 0;\n  uVar1 = yyparse();\n  if (need_here_doc == 0) {\n    return uVar1;\n  }\n  gather_here_documents();\n  return uVar1;\n}\n\n" comment (function_definition "undefined4 parse_command(void)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  void *pvVar3;\n  void *__ptr;\n  \n  need_here_doc = 0;\n  run_pending_traps();\n  if ((interactive != 0) && (bash_input != 3)) {\n    iVar2 = parser_expanding_alias();\n    if (iVar2 == 0) {\n      iVar2 = get_string_value("PROMPT_COMMAND");\n      if (iVar2 != 0) {\n        execute_variable_command(iVar2,"PROMPT_COMMAND");\n      }\n      if (running_under_emacs == 2) {\n        pvVar3 = (void *)get_string_value(&DAT_0011214a);\n        __ptr = (void *)0x0;\n        if (pvVar3 == (void *)0x0) {\n          pvVar3 = (void *)get_working_directory("eterm");\n          __ptr = pvVar3;\n        }\n        __fprintf_chk(*(undefined4 *)PTR_stderr_00171e54,1,&DAT_00110602,pvVar3);\n        free(__ptr);\n      }\n    }\n  }\n  current_command_line_count = 0;\n  uVar1 = yyparse();\n  if (need_here_doc == 0) {\n    return uVar1;\n  }\n  gather_here_documents();\n  return uVar1;\n}" type_identifier (function_declarator "parse_command(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  void *pvVar3;\n  void *__ptr;\n  \n  need_here_doc = 0;\n  run_pending_traps();\n  if ((interactive != 0) && (bash_input != 3)) {\n    iVar2 = parser_expanding_alias();\n    if (iVar2 == 0) {\n      iVar2 = get_string_value("PROMPT_COMMAND");\n      if (iVar2 != 0) {\n        execute_variable_command(iVar2,"PROMPT_COMMAND");\n      }\n      if (running_under_emacs == 2) {\n        pvVar3 = (void *)get_string_value(&DAT_0011214a);\n        __ptr = (void *)0x0;\n        if (pvVar3 == (void *)0x0) {\n          pvVar3 = (void *)get_working_directory("eterm");\n          __ptr = pvVar3;\n        }\n        __fprintf_chk(*(undefined4 *)PTR_stderr_00171e54,1,&DAT_00110602,pvVar3);\n        free(__ptr);\n      }\n    }\n  }\n  current_command_line_count = 0;\n  uVar1 = yyparse();\n  if (need_here_doc == 0) {\n    return uVar1;\n  }\n  gather_here_documents();\n  return uVar1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "void *pvVar3;" primitive_type (pointer_declarator "*pvVar3" * identifier) ;) (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (expression_statement "need_here_doc = 0;" (assignment_expression "need_here_doc = 0" identifier = number_literal) ;) (expression_statement "run_pending_traps();" (call_expression "run_pending_traps()" identifier (argument_list "()" ( ))) ;) (if_statement "if ((interactive != 0) && (bash_input != 3)) {\n    iVar2 = parser_expanding_alias();\n    if (iVar2 == 0) {\n      iVar2 = get_string_value("PROMPT_COMMAND");\n      if (iVar2 != 0) {\n        execute_variable_command(iVar2,"PROMPT_COMMAND");\n      }\n      if (running_under_emacs == 2) {\n        pvVar3 = (void *)get_string_value(&DAT_0011214a);\n        __ptr = (void *)0x0;\n        if (pvVar3 == (void *)0x0) {\n          pvVar3 = (void *)get_working_directory("eterm");\n          __ptr = pvVar3;\n        }\n        __fprintf_chk(*(undefined4 *)PTR_stderr_00171e54,1,&DAT_00110602,pvVar3);\n        free(__ptr);\n      }\n    }\n  }" if (parenthesized_expression "((interactive != 0) && (bash_input != 3))" ( (binary_expression "(interactive != 0) && (bash_input != 3)" (parenthesized_expression "(interactive != 0)" ( (binary_expression "interactive != 0" identifier != number_literal) )) && (parenthesized_expression "(bash_input != 3)" ( (binary_expression "bash_input != 3" identifier != number_literal) ))) )) (compound_statement "{\n    iVar2 = parser_expanding_alias();\n    if (iVar2 == 0) {\n      iVar2 = get_string_value("PROMPT_COMMAND");\n      if (iVar2 != 0) {\n        execute_variable_command(iVar2,"PROMPT_COMMAND");\n      }\n      if (running_under_emacs == 2) {\n        pvVar3 = (void *)get_string_value(&DAT_0011214a);\n        __ptr = (void *)0x0;\n        if (pvVar3 == (void *)0x0) {\n          pvVar3 = (void *)get_working_directory("eterm");\n          __ptr = pvVar3;\n        }\n        __fprintf_chk(*(undefined4 *)PTR_stderr_00171e54,1,&DAT_00110602,pvVar3);\n        free(__ptr);\n      }\n    }\n  }" { (expression_statement "iVar2 = parser_expanding_alias();" (assignment_expression "iVar2 = parser_expanding_alias()" identifier = (call_expression "parser_expanding_alias()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar2 == 0) {\n      iVar2 = get_string_value("PROMPT_COMMAND");\n      if (iVar2 != 0) {\n        execute_variable_command(iVar2,"PROMPT_COMMAND");\n      }\n      if (running_under_emacs == 2) {\n        pvVar3 = (void *)get_string_value(&DAT_0011214a);\n        __ptr = (void *)0x0;\n        if (pvVar3 == (void *)0x0) {\n          pvVar3 = (void *)get_working_directory("eterm");\n          __ptr = pvVar3;\n        }\n        __fprintf_chk(*(undefined4 *)PTR_stderr_00171e54,1,&DAT_00110602,pvVar3);\n        free(__ptr);\n      }\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar2 = get_string_value("PROMPT_COMMAND");\n      if (iVar2 != 0) {\n        execute_variable_command(iVar2,"PROMPT_COMMAND");\n      }\n      if (running_under_emacs == 2) {\n        pvVar3 = (void *)get_string_value(&DAT_0011214a);\n        __ptr = (void *)0x0;\n        if (pvVar3 == (void *)0x0) {\n          pvVar3 = (void *)get_working_directory("eterm");\n          __ptr = pvVar3;\n        }\n        __fprintf_chk(*(undefined4 *)PTR_stderr_00171e54,1,&DAT_00110602,pvVar3);\n        free(__ptr);\n      }\n    }" { (expression_statement "iVar2 = get_string_value("PROMPT_COMMAND");" (assignment_expression "iVar2 = get_string_value("PROMPT_COMMAND")" identifier = (call_expression "get_string_value("PROMPT_COMMAND")" identifier (argument_list "("PROMPT_COMMAND")" ( (string_literal ""PROMPT_COMMAND"" " string_content ") )))) ;) (if_statement "if (iVar2 != 0) {\n        execute_variable_command(iVar2,"PROMPT_COMMAND");\n      }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        execute_variable_command(iVar2,"PROMPT_COMMAND");\n      }" { (expression_statement "execute_variable_command(iVar2,"PROMPT_COMMAND");" (call_expression "execute_variable_command(iVar2,"PROMPT_COMMAND")" identifier (argument_list "(iVar2,"PROMPT_COMMAND")" ( identifier , (string_literal ""PROMPT_COMMAND"" " string_content ") ))) ;) })) (if_statement "if (running_under_emacs == 2) {\n        pvVar3 = (void *)get_string_value(&DAT_0011214a);\n        __ptr = (void *)0x0;\n        if (pvVar3 == (void *)0x0) {\n          pvVar3 = (void *)get_working_directory("eterm");\n          __ptr = pvVar3;\n        }\n        __fprintf_chk(*(undefined4 *)PTR_stderr_00171e54,1,&DAT_00110602,pvVar3);\n        free(__ptr);\n      }" if (parenthesized_expression "(running_under_emacs == 2)" ( (binary_expression "running_under_emacs == 2" identifier == number_literal) )) (compound_statement "{\n        pvVar3 = (void *)get_string_value(&DAT_0011214a);\n        __ptr = (void *)0x0;\n        if (pvVar3 == (void *)0x0) {\n          pvVar3 = (void *)get_working_directory("eterm");\n          __ptr = pvVar3;\n        }\n        __fprintf_chk(*(undefined4 *)PTR_stderr_00171e54,1,&DAT_00110602,pvVar3);\n        free(__ptr);\n      }" { (expression_statement "pvVar3 = (void *)get_string_value(&DAT_0011214a);" (assignment_expression "pvVar3 = (void *)get_string_value(&DAT_0011214a)" identifier = (cast_expression "(void *)get_string_value(&DAT_0011214a)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "get_string_value(&DAT_0011214a)" identifier (argument_list "(&DAT_0011214a)" ( (pointer_expression "&DAT_0011214a" & identifier) ))))) ;) (expression_statement "__ptr = (void *)0x0;" (assignment_expression "__ptr = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (pvVar3 == (void *)0x0) {\n          pvVar3 = (void *)get_working_directory("eterm");\n          __ptr = pvVar3;\n        }" if (parenthesized_expression "(pvVar3 == (void *)0x0)" ( (binary_expression "pvVar3 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          pvVar3 = (void *)get_working_directory("eterm");\n          __ptr = pvVar3;\n        }" { (expression_statement "pvVar3 = (void *)get_working_directory("eterm");" (assignment_expression "pvVar3 = (void *)get_working_directory("eterm")" identifier = (cast_expression "(void *)get_working_directory("eterm")" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "get_working_directory("eterm")" identifier (argument_list "("eterm")" ( (string_literal ""eterm"" " string_content ") ))))) ;) (expression_statement "__ptr = pvVar3;" (assignment_expression "__ptr = pvVar3" identifier = identifier) ;) })) (expression_statement "__fprintf_chk(*(undefined4 *)PTR_stderr_00171e54,1,&DAT_00110602,pvVar3);" (call_expression "__fprintf_chk(*(undefined4 *)PTR_stderr_00171e54,1,&DAT_00110602,pvVar3)" identifier (argument_list "(*(undefined4 *)PTR_stderr_00171e54,1,&DAT_00110602,pvVar3)" ( (pointer_expression "*(undefined4 *)PTR_stderr_00171e54" * (cast_expression "(undefined4 *)PTR_stderr_00171e54" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , number_literal , (pointer_expression "&DAT_00110602" & identifier) , identifier ))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) })) })) })) (expression_statement "current_command_line_count = 0;" (assignment_expression "current_command_line_count = 0" identifier = number_literal) ;) (expression_statement "uVar1 = yyparse();" (assignment_expression "uVar1 = yyparse()" identifier = (call_expression "yyparse()" identifier (argument_list "()" ( )))) ;) (if_statement "if (need_here_doc == 0) {\n    return uVar1;\n  }" if (parenthesized_expression "(need_here_doc == 0)" ( (binary_expression "need_here_doc == 0" identifier == number_literal) )) (compound_statement "{\n    return uVar1;\n  }" { (return_statement "return uVar1;" return identifier ;) })) (expression_statement "gather_here_documents();" (call_expression "gather_here_documents()" identifier (argument_list "()" ( ))) ;) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint parse_command(void)\n\n{\n  int iVar1;\n  char *pcVar2;\n  char *pcVar3;\n  \n  need_here_doc = 0;\n  run_pending_traps();\n  if ((interactive != 0) && (bash_input.type != st_string)) {\n    iVar1 = parser_expanding_alias();\n    if (iVar1 == 0) {\n      pcVar2 = get_string_value("PROMPT_COMMAND");\n      if (pcVar2 != (char *)0x0) {\n        execute_variable_command(pcVar2,"PROMPT_COMMAND");\n      }\n      if (running_under_emacs == 2) {\n        pcVar3 = get_string_value("PWD");\n        pcVar2 = (char *)0x0;\n        if (pcVar3 == (char *)0x0) {\n          pcVar3 = get_working_directory("eterm");\n          pcVar2 = pcVar3;\n        }\n        __fprintf_chk(*(undefined4 *)PTR_stderr_00171e54,1,&DAT_00110602,pcVar3);\n        free(pcVar2);\n      }\n    }\n  }\n  current_command_line_count = 0;\n  iVar1 = yyparse();\n  if (need_here_doc == 0) {\n    return iVar1;\n  }\n  gather_here_documents();\n  return iVar1;\n}\n\n" comment comment (function_definition "int parse_command(void)\n\n{\n  int iVar1;\n  char *pcVar2;\n  char *pcVar3;\n  \n  need_here_doc = 0;\n  run_pending_traps();\n  if ((interactive != 0) && (bash_input.type != st_string)) {\n    iVar1 = parser_expanding_alias();\n    if (iVar1 == 0) {\n      pcVar2 = get_string_value("PROMPT_COMMAND");\n      if (pcVar2 != (char *)0x0) {\n        execute_variable_command(pcVar2,"PROMPT_COMMAND");\n      }\n      if (running_under_emacs == 2) {\n        pcVar3 = get_string_value("PWD");\n        pcVar2 = (char *)0x0;\n        if (pcVar3 == (char *)0x0) {\n          pcVar3 = get_working_directory("eterm");\n          pcVar2 = pcVar3;\n        }\n        __fprintf_chk(*(undefined4 *)PTR_stderr_00171e54,1,&DAT_00110602,pcVar3);\n        free(pcVar2);\n      }\n    }\n  }\n  current_command_line_count = 0;\n  iVar1 = yyparse();\n  if (need_here_doc == 0) {\n    return iVar1;\n  }\n  gather_here_documents();\n  return iVar1;\n}" primitive_type (function_declarator "parse_command(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  char *pcVar3;\n  \n  need_here_doc = 0;\n  run_pending_traps();\n  if ((interactive != 0) && (bash_input.type != st_string)) {\n    iVar1 = parser_expanding_alias();\n    if (iVar1 == 0) {\n      pcVar2 = get_string_value("PROMPT_COMMAND");\n      if (pcVar2 != (char *)0x0) {\n        execute_variable_command(pcVar2,"PROMPT_COMMAND");\n      }\n      if (running_under_emacs == 2) {\n        pcVar3 = get_string_value("PWD");\n        pcVar2 = (char *)0x0;\n        if (pcVar3 == (char *)0x0) {\n          pcVar3 = get_working_directory("eterm");\n          pcVar2 = pcVar3;\n        }\n        __fprintf_chk(*(undefined4 *)PTR_stderr_00171e54,1,&DAT_00110602,pcVar3);\n        free(pcVar2);\n      }\n    }\n  }\n  current_command_line_count = 0;\n  iVar1 = yyparse();\n  if (need_here_doc == 0) {\n    return iVar1;\n  }\n  gather_here_documents();\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (expression_statement "need_here_doc = 0;" (assignment_expression "need_here_doc = 0" identifier = number_literal) ;) (expression_statement "run_pending_traps();" (call_expression "run_pending_traps()" identifier (argument_list "()" ( ))) ;) (if_statement "if ((interactive != 0) && (bash_input.type != st_string)) {\n    iVar1 = parser_expanding_alias();\n    if (iVar1 == 0) {\n      pcVar2 = get_string_value("PROMPT_COMMAND");\n      if (pcVar2 != (char *)0x0) {\n        execute_variable_command(pcVar2,"PROMPT_COMMAND");\n      }\n      if (running_under_emacs == 2) {\n        pcVar3 = get_string_value("PWD");\n        pcVar2 = (char *)0x0;\n        if (pcVar3 == (char *)0x0) {\n          pcVar3 = get_working_directory("eterm");\n          pcVar2 = pcVar3;\n        }\n        __fprintf_chk(*(undefined4 *)PTR_stderr_00171e54,1,&DAT_00110602,pcVar3);\n        free(pcVar2);\n      }\n    }\n  }" if (parenthesized_expression "((interactive != 0) && (bash_input.type != st_string))" ( (binary_expression "(interactive != 0) && (bash_input.type != st_string)" (parenthesized_expression "(interactive != 0)" ( (binary_expression "interactive != 0" identifier != number_literal) )) && (parenthesized_expression "(bash_input.type != st_string)" ( (binary_expression "bash_input.type != st_string" (field_expression "bash_input.type" identifier . field_identifier) != identifier) ))) )) (compound_statement "{\n    iVar1 = parser_expanding_alias();\n    if (iVar1 == 0) {\n      pcVar2 = get_string_value("PROMPT_COMMAND");\n      if (pcVar2 != (char *)0x0) {\n        execute_variable_command(pcVar2,"PROMPT_COMMAND");\n      }\n      if (running_under_emacs == 2) {\n        pcVar3 = get_string_value("PWD");\n        pcVar2 = (char *)0x0;\n        if (pcVar3 == (char *)0x0) {\n          pcVar3 = get_working_directory("eterm");\n          pcVar2 = pcVar3;\n        }\n        __fprintf_chk(*(undefined4 *)PTR_stderr_00171e54,1,&DAT_00110602,pcVar3);\n        free(pcVar2);\n      }\n    }\n  }" { (expression_statement "iVar1 = parser_expanding_alias();" (assignment_expression "iVar1 = parser_expanding_alias()" identifier = (call_expression "parser_expanding_alias()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0) {\n      pcVar2 = get_string_value("PROMPT_COMMAND");\n      if (pcVar2 != (char *)0x0) {\n        execute_variable_command(pcVar2,"PROMPT_COMMAND");\n      }\n      if (running_under_emacs == 2) {\n        pcVar3 = get_string_value("PWD");\n        pcVar2 = (char *)0x0;\n        if (pcVar3 == (char *)0x0) {\n          pcVar3 = get_working_directory("eterm");\n          pcVar2 = pcVar3;\n        }\n        __fprintf_chk(*(undefined4 *)PTR_stderr_00171e54,1,&DAT_00110602,pcVar3);\n        free(pcVar2);\n      }\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      pcVar2 = get_string_value("PROMPT_COMMAND");\n      if (pcVar2 != (char *)0x0) {\n        execute_variable_command(pcVar2,"PROMPT_COMMAND");\n      }\n      if (running_under_emacs == 2) {\n        pcVar3 = get_string_value("PWD");\n        pcVar2 = (char *)0x0;\n        if (pcVar3 == (char *)0x0) {\n          pcVar3 = get_working_directory("eterm");\n          pcVar2 = pcVar3;\n        }\n        __fprintf_chk(*(undefined4 *)PTR_stderr_00171e54,1,&DAT_00110602,pcVar3);\n        free(pcVar2);\n      }\n    }" { (expression_statement "pcVar2 = get_string_value("PROMPT_COMMAND");" (assignment_expression "pcVar2 = get_string_value("PROMPT_COMMAND")" identifier = (call_expression "get_string_value("PROMPT_COMMAND")" identifier (argument_list "("PROMPT_COMMAND")" ( (string_literal ""PROMPT_COMMAND"" " string_content ") )))) ;) (if_statement "if (pcVar2 != (char *)0x0) {\n        execute_variable_command(pcVar2,"PROMPT_COMMAND");\n      }" if (parenthesized_expression "(pcVar2 != (char *)0x0)" ( (binary_expression "pcVar2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        execute_variable_command(pcVar2,"PROMPT_COMMAND");\n      }" { (expression_statement "execute_variable_command(pcVar2,"PROMPT_COMMAND");" (call_expression "execute_variable_command(pcVar2,"PROMPT_COMMAND")" identifier (argument_list "(pcVar2,"PROMPT_COMMAND")" ( identifier , (string_literal ""PROMPT_COMMAND"" " string_content ") ))) ;) })) (if_statement "if (running_under_emacs == 2) {\n        pcVar3 = get_string_value("PWD");\n        pcVar2 = (char *)0x0;\n        if (pcVar3 == (char *)0x0) {\n          pcVar3 = get_working_directory("eterm");\n          pcVar2 = pcVar3;\n        }\n        __fprintf_chk(*(undefined4 *)PTR_stderr_00171e54,1,&DAT_00110602,pcVar3);\n        free(pcVar2);\n      }" if (parenthesized_expression "(running_under_emacs == 2)" ( (binary_expression "running_under_emacs == 2" identifier == number_literal) )) (compound_statement "{\n        pcVar3 = get_string_value("PWD");\n        pcVar2 = (char *)0x0;\n        if (pcVar3 == (char *)0x0) {\n          pcVar3 = get_working_directory("eterm");\n          pcVar2 = pcVar3;\n        }\n        __fprintf_chk(*(undefined4 *)PTR_stderr_00171e54,1,&DAT_00110602,pcVar3);\n        free(pcVar2);\n      }" { (expression_statement "pcVar3 = get_string_value("PWD");" (assignment_expression "pcVar3 = get_string_value("PWD")" identifier = (call_expression "get_string_value("PWD")" identifier (argument_list "("PWD")" ( (string_literal ""PWD"" " string_content ") )))) ;) (expression_statement "pcVar2 = (char *)0x0;" (assignment_expression "pcVar2 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (pcVar3 == (char *)0x0) {\n          pcVar3 = get_working_directory("eterm");\n          pcVar2 = pcVar3;\n        }" if (parenthesized_expression "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          pcVar3 = get_working_directory("eterm");\n          pcVar2 = pcVar3;\n        }" { (expression_statement "pcVar3 = get_working_directory("eterm");" (assignment_expression "pcVar3 = get_working_directory("eterm")" identifier = (call_expression "get_working_directory("eterm")" identifier (argument_list "("eterm")" ( (string_literal ""eterm"" " string_content ") )))) ;) (expression_statement "pcVar2 = pcVar3;" (assignment_expression "pcVar2 = pcVar3" identifier = identifier) ;) })) (expression_statement "__fprintf_chk(*(undefined4 *)PTR_stderr_00171e54,1,&DAT_00110602,pcVar3);" (call_expression "__fprintf_chk(*(undefined4 *)PTR_stderr_00171e54,1,&DAT_00110602,pcVar3)" identifier (argument_list "(*(undefined4 *)PTR_stderr_00171e54,1,&DAT_00110602,pcVar3)" ( (pointer_expression "*(undefined4 *)PTR_stderr_00171e54" * (cast_expression "(undefined4 *)PTR_stderr_00171e54" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , number_literal , (pointer_expression "&DAT_00110602" & identifier) , identifier ))) ;) (expression_statement "free(pcVar2);" (call_expression "free(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier ))) ;) })) })) })) (expression_statement "current_command_line_count = 0;" (assignment_expression "current_command_line_count = 0" identifier = number_literal) ;) (expression_statement "iVar1 = yyparse();" (assignment_expression "iVar1 = yyparse()" identifier = (call_expression "yyparse()" identifier (argument_list "()" ( )))) ;) (if_statement "if (need_here_doc == 0) {\n    return iVar1;\n  }" if (parenthesized_expression "(need_here_doc == 0)" ( (binary_expression "need_here_doc == 0" identifier == number_literal) )) (compound_statement "{\n    return iVar1;\n  }" { (return_statement "return iVar1;" return identifier ;) })) (expression_statement "gather_here_documents();" (call_expression "gather_here_documents()" identifier (argument_list "()" ( ))) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "undefined4 parse_command(void)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  void *pvVar3;\n  void *__ptr;\n  \n  need_here_doc = 0;\n  run_pending_traps();\n  if ((interactive != 0) && (bash_input != 3)) {\n    iVar2 = parser_expanding_alias();\n    if (iVar2 == 0) {\n      iVar2 = get_string_value("PROMPT_COMMAND");\n      if (iVar2 != 0) {\n        execute_variable_command(iVar2,"PROMPT_COMMAND");\n      }\n      if (running_under_emacs == 2) {\n        pvVar3 = (void *)get_string_value(&DAT_0011214a);\n        __ptr = (void *)0x0;\n        if (pvVar3 == (void *)0x0) {\n          pvVar3 = (void *)get_working_directory("eterm");\n          __ptr = pvVar3;\n        }\n        __fprintf_chk(*(undefined4 *)PTR_stderr_00171e54,1,&DAT_00110602,pvVar3);\n        free(__ptr);\n      }\n    }\n  }\n  current_command_line_count = 0;\n  uVar1 = yyparse();\n  if (need_here_doc == 0) {\n    return uVar1;\n  }\n  gather_here_documents();\n  return uVar1;\n}\n\n" (function_definition "undefined4 parse_command(void)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  void *pvVar3;\n  void *__ptr;\n  \n  need_here_doc = 0;\n  run_pending_traps();\n  if ((interactive != 0) && (bash_input != 3)) {\n    iVar2 = parser_expanding_alias();\n    if (iVar2 == 0) {\n      iVar2 = get_string_value("PROMPT_COMMAND");\n      if (iVar2 != 0) {\n        execute_variable_command(iVar2,"PROMPT_COMMAND");\n      }\n      if (running_under_emacs == 2) {\n        pvVar3 = (void *)get_string_value(&DAT_0011214a);\n        __ptr = (void *)0x0;\n        if (pvVar3 == (void *)0x0) {\n          pvVar3 = (void *)get_working_directory("eterm");\n          __ptr = pvVar3;\n        }\n        __fprintf_chk(*(undefined4 *)PTR_stderr_00171e54,1,&DAT_00110602,pvVar3);\n        free(__ptr);\n      }\n    }\n  }\n  current_command_line_count = 0;\n  uVar1 = yyparse();\n  if (need_here_doc == 0) {\n    return uVar1;\n  }\n  gather_here_documents();\n  return uVar1;\n}" type_identifier (function_declarator "parse_command(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  void *pvVar3;\n  void *__ptr;\n  \n  need_here_doc = 0;\n  run_pending_traps();\n  if ((interactive != 0) && (bash_input != 3)) {\n    iVar2 = parser_expanding_alias();\n    if (iVar2 == 0) {\n      iVar2 = get_string_value("PROMPT_COMMAND");\n      if (iVar2 != 0) {\n        execute_variable_command(iVar2,"PROMPT_COMMAND");\n      }\n      if (running_under_emacs == 2) {\n        pvVar3 = (void *)get_string_value(&DAT_0011214a);\n        __ptr = (void *)0x0;\n        if (pvVar3 == (void *)0x0) {\n          pvVar3 = (void *)get_working_directory("eterm");\n          __ptr = pvVar3;\n        }\n        __fprintf_chk(*(undefined4 *)PTR_stderr_00171e54,1,&DAT_00110602,pvVar3);\n        free(__ptr);\n      }\n    }\n  }\n  current_command_line_count = 0;\n  uVar1 = yyparse();\n  if (need_here_doc == 0) {\n    return uVar1;\n  }\n  gather_here_documents();\n  return uVar1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "void *pvVar3;" primitive_type (pointer_declarator "*pvVar3" * identifier) ;) (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (expression_statement "need_here_doc = 0;" (assignment_expression "need_here_doc = 0" identifier = number_literal) ;) (expression_statement "run_pending_traps();" (call_expression "run_pending_traps()" identifier (argument_list "()" ( ))) ;) (if_statement "if ((interactive != 0) && (bash_input != 3)) {\n    iVar2 = parser_expanding_alias();\n    if (iVar2 == 0) {\n      iVar2 = get_string_value("PROMPT_COMMAND");\n      if (iVar2 != 0) {\n        execute_variable_command(iVar2,"PROMPT_COMMAND");\n      }\n      if (running_under_emacs == 2) {\n        pvVar3 = (void *)get_string_value(&DAT_0011214a);\n        __ptr = (void *)0x0;\n        if (pvVar3 == (void *)0x0) {\n          pvVar3 = (void *)get_working_directory("eterm");\n          __ptr = pvVar3;\n        }\n        __fprintf_chk(*(undefined4 *)PTR_stderr_00171e54,1,&DAT_00110602,pvVar3);\n        free(__ptr);\n      }\n    }\n  }" if (parenthesized_expression "((interactive != 0) && (bash_input != 3))" ( (binary_expression "(interactive != 0) && (bash_input != 3)" (parenthesized_expression "(interactive != 0)" ( (binary_expression "interactive != 0" identifier != number_literal) )) && (parenthesized_expression "(bash_input != 3)" ( (binary_expression "bash_input != 3" identifier != number_literal) ))) )) (compound_statement "{\n    iVar2 = parser_expanding_alias();\n    if (iVar2 == 0) {\n      iVar2 = get_string_value("PROMPT_COMMAND");\n      if (iVar2 != 0) {\n        execute_variable_command(iVar2,"PROMPT_COMMAND");\n      }\n      if (running_under_emacs == 2) {\n        pvVar3 = (void *)get_string_value(&DAT_0011214a);\n        __ptr = (void *)0x0;\n        if (pvVar3 == (void *)0x0) {\n          pvVar3 = (void *)get_working_directory("eterm");\n          __ptr = pvVar3;\n        }\n        __fprintf_chk(*(undefined4 *)PTR_stderr_00171e54,1,&DAT_00110602,pvVar3);\n        free(__ptr);\n      }\n    }\n  }" { (expression_statement "iVar2 = parser_expanding_alias();" (assignment_expression "iVar2 = parser_expanding_alias()" identifier = (call_expression "parser_expanding_alias()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar2 == 0) {\n      iVar2 = get_string_value("PROMPT_COMMAND");\n      if (iVar2 != 0) {\n        execute_variable_command(iVar2,"PROMPT_COMMAND");\n      }\n      if (running_under_emacs == 2) {\n        pvVar3 = (void *)get_string_value(&DAT_0011214a);\n        __ptr = (void *)0x0;\n        if (pvVar3 == (void *)0x0) {\n          pvVar3 = (void *)get_working_directory("eterm");\n          __ptr = pvVar3;\n        }\n        __fprintf_chk(*(undefined4 *)PTR_stderr_00171e54,1,&DAT_00110602,pvVar3);\n        free(__ptr);\n      }\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar2 = get_string_value("PROMPT_COMMAND");\n      if (iVar2 != 0) {\n        execute_variable_command(iVar2,"PROMPT_COMMAND");\n      }\n      if (running_under_emacs == 2) {\n        pvVar3 = (void *)get_string_value(&DAT_0011214a);\n        __ptr = (void *)0x0;\n        if (pvVar3 == (void *)0x0) {\n          pvVar3 = (void *)get_working_directory("eterm");\n          __ptr = pvVar3;\n        }\n        __fprintf_chk(*(undefined4 *)PTR_stderr_00171e54,1,&DAT_00110602,pvVar3);\n        free(__ptr);\n      }\n    }" { (expression_statement "iVar2 = get_string_value("PROMPT_COMMAND");" (assignment_expression "iVar2 = get_string_value("PROMPT_COMMAND")" identifier = (call_expression "get_string_value("PROMPT_COMMAND")" identifier (argument_list "("PROMPT_COMMAND")" ( (string_literal ""PROMPT_COMMAND"" " string_content ") )))) ;) (if_statement "if (iVar2 != 0) {\n        execute_variable_command(iVar2,"PROMPT_COMMAND");\n      }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        execute_variable_command(iVar2,"PROMPT_COMMAND");\n      }" { (expression_statement "execute_variable_command(iVar2,"PROMPT_COMMAND");" (call_expression "execute_variable_command(iVar2,"PROMPT_COMMAND")" identifier (argument_list "(iVar2,"PROMPT_COMMAND")" ( identifier , (string_literal ""PROMPT_COMMAND"" " string_content ") ))) ;) })) (if_statement "if (running_under_emacs == 2) {\n        pvVar3 = (void *)get_string_value(&DAT_0011214a);\n        __ptr = (void *)0x0;\n        if (pvVar3 == (void *)0x0) {\n          pvVar3 = (void *)get_working_directory("eterm");\n          __ptr = pvVar3;\n        }\n        __fprintf_chk(*(undefined4 *)PTR_stderr_00171e54,1,&DAT_00110602,pvVar3);\n        free(__ptr);\n      }" if (parenthesized_expression "(running_under_emacs == 2)" ( (binary_expression "running_under_emacs == 2" identifier == number_literal) )) (compound_statement "{\n        pvVar3 = (void *)get_string_value(&DAT_0011214a);\n        __ptr = (void *)0x0;\n        if (pvVar3 == (void *)0x0) {\n          pvVar3 = (void *)get_working_directory("eterm");\n          __ptr = pvVar3;\n        }\n        __fprintf_chk(*(undefined4 *)PTR_stderr_00171e54,1,&DAT_00110602,pvVar3);\n        free(__ptr);\n      }" { (expression_statement "pvVar3 = (void *)get_string_value(&DAT_0011214a);" (assignment_expression "pvVar3 = (void *)get_string_value(&DAT_0011214a)" identifier = (cast_expression "(void *)get_string_value(&DAT_0011214a)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "get_string_value(&DAT_0011214a)" identifier (argument_list "(&DAT_0011214a)" ( (pointer_expression "&DAT_0011214a" & identifier) ))))) ;) (expression_statement "__ptr = (void *)0x0;" (assignment_expression "__ptr = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (pvVar3 == (void *)0x0) {\n          pvVar3 = (void *)get_working_directory("eterm");\n          __ptr = pvVar3;\n        }" if (parenthesized_expression "(pvVar3 == (void *)0x0)" ( (binary_expression "pvVar3 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          pvVar3 = (void *)get_working_directory("eterm");\n          __ptr = pvVar3;\n        }" { (expression_statement "pvVar3 = (void *)get_working_directory("eterm");" (assignment_expression "pvVar3 = (void *)get_working_directory("eterm")" identifier = (cast_expression "(void *)get_working_directory("eterm")" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "get_working_directory("eterm")" identifier (argument_list "("eterm")" ( (string_literal ""eterm"" " string_content ") ))))) ;) (expression_statement "__ptr = pvVar3;" (assignment_expression "__ptr = pvVar3" identifier = identifier) ;) })) (expression_statement "__fprintf_chk(*(undefined4 *)PTR_stderr_00171e54,1,&DAT_00110602,pvVar3);" (call_expression "__fprintf_chk(*(undefined4 *)PTR_stderr_00171e54,1,&DAT_00110602,pvVar3)" identifier (argument_list "(*(undefined4 *)PTR_stderr_00171e54,1,&DAT_00110602,pvVar3)" ( (pointer_expression "*(undefined4 *)PTR_stderr_00171e54" * (cast_expression "(undefined4 *)PTR_stderr_00171e54" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , number_literal , (pointer_expression "&DAT_00110602" & identifier) , identifier ))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) })) })) })) (expression_statement "current_command_line_count = 0;" (assignment_expression "current_command_line_count = 0" identifier = number_literal) ;) (expression_statement "uVar1 = yyparse();" (assignment_expression "uVar1 = yyparse()" identifier = (call_expression "yyparse()" identifier (argument_list "()" ( )))) ;) (if_statement "if (need_here_doc == 0) {\n    return uVar1;\n  }" if (parenthesized_expression "(need_here_doc == 0)" ( (binary_expression "need_here_doc == 0" identifier == number_literal) )) (compound_statement "{\n    return uVar1;\n  }" { (return_statement "return uVar1;" return identifier ;) })) (expression_statement "gather_here_documents();" (call_expression "gather_here_documents()" identifier (argument_list "()" ( ))) ;) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (pointer_expression & IDENT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (string_literal " string_content ") ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) , LIT , (pointer_expression & IDENT) , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) })) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 parse_command(void)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  void *pvVar3;\n  void *__ptr;\n  \n  need_here_doc = 0;\n  run_pending_traps();\n  if ((interactive != 0) && (bash_input != 3)) {\n    iVar2 = parser_expanding_alias();\n    if (iVar2 == 0) {\n      iVar2 = get_string_value("PROMPT_COMMAND");\n      if (iVar2 != 0) {\n        execute_variable_command(iVar2,"PROMPT_COMMAND");\n      }\n      if (running_under_emacs == 2) {\n        pvVar3 = (void *)get_string_value(&DAT_0011214a);\n        __ptr = (void *)0x0;\n        if (pvVar3 == (void *)0x0) {\n          pvVar3 = (void *)get_working_directory("eterm");\n          __ptr = pvVar3;\n        }\n        __fprintf_chk(*(undefined4 *)PTR_stderr_00171e54,1,&DAT_00110602,pvVar3);\n        free(__ptr);\n      }\n    }\n  }\n  current_command_line_count = 0;\n  uVar1 = yyparse();\n  if (need_here_doc == 0) {\n    return uVar1;\n  }\n  gather_here_documents();\n  return uVar1;\n}" (type_identifier "undefined4") (function_declarator "parse_command(void)" (identifier "parse_command") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  void *pvVar3;\n  void *__ptr;\n  \n  need_here_doc = 0;\n  run_pending_traps();\n  if ((interactive != 0) && (bash_input != 3)) {\n    iVar2 = parser_expanding_alias();\n    if (iVar2 == 0) {\n      iVar2 = get_string_value("PROMPT_COMMAND");\n      if (iVar2 != 0) {\n        execute_variable_command(iVar2,"PROMPT_COMMAND");\n      }\n      if (running_under_emacs == 2) {\n        pvVar3 = (void *)get_string_value(&DAT_0011214a);\n        __ptr = (void *)0x0;\n        if (pvVar3 == (void *)0x0) {\n          pvVar3 = (void *)get_working_directory("eterm");\n          __ptr = pvVar3;\n        }\n        __fprintf_chk(*(undefined4 *)PTR_stderr_00171e54,1,&DAT_00110602,pvVar3);\n        free(__ptr);\n      }\n    }\n  }\n  current_command_line_count = 0;\n  uVar1 = yyparse();\n  if (need_here_doc == 0) {\n    return uVar1;\n  }\n  gather_here_documents();\n  return uVar1;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "void *pvVar3;" (primitive_type "void") (pointer_declarator "*pvVar3" (* "*") (identifier "pvVar3")) (; ";")) (declaration "void *__ptr;" (primitive_type "void") (pointer_declarator "*__ptr" (* "*") (identifier "__ptr")) (; ";")) (expression_statement "need_here_doc = 0;" (assignment_expression "need_here_doc = 0" (identifier "need_here_doc") (= "=") (number_literal "0")) (; ";")) (expression_statement "run_pending_traps();" (call_expression "run_pending_traps()" (identifier "run_pending_traps") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if ((interactive != 0) && (bash_input != 3)) {\n    iVar2 = parser_expanding_alias();\n    if (iVar2 == 0) {\n      iVar2 = get_string_value("PROMPT_COMMAND");\n      if (iVar2 != 0) {\n        execute_variable_command(iVar2,"PROMPT_COMMAND");\n      }\n      if (running_under_emacs == 2) {\n        pvVar3 = (void *)get_string_value(&DAT_0011214a);\n        __ptr = (void *)0x0;\n        if (pvVar3 == (void *)0x0) {\n          pvVar3 = (void *)get_working_directory("eterm");\n          __ptr = pvVar3;\n        }\n        __fprintf_chk(*(undefined4 *)PTR_stderr_00171e54,1,&DAT_00110602,pvVar3);\n        free(__ptr);\n      }\n    }\n  }" (if "if") (parenthesized_expression "((interactive != 0) && (bash_input != 3))" (( "(") (binary_expression "(interactive != 0) && (bash_input != 3)" (parenthesized_expression "(interactive != 0)" (( "(") (binary_expression "interactive != 0" (identifier "interactive") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(bash_input != 3)" (( "(") (binary_expression "bash_input != 3" (identifier "bash_input") (!= "!=") (number_literal "3")) () ")"))) () ")")) (compound_statement "{\n    iVar2 = parser_expanding_alias();\n    if (iVar2 == 0) {\n      iVar2 = get_string_value("PROMPT_COMMAND");\n      if (iVar2 != 0) {\n        execute_variable_command(iVar2,"PROMPT_COMMAND");\n      }\n      if (running_under_emacs == 2) {\n        pvVar3 = (void *)get_string_value(&DAT_0011214a);\n        __ptr = (void *)0x0;\n        if (pvVar3 == (void *)0x0) {\n          pvVar3 = (void *)get_working_directory("eterm");\n          __ptr = pvVar3;\n        }\n        __fprintf_chk(*(undefined4 *)PTR_stderr_00171e54,1,&DAT_00110602,pvVar3);\n        free(__ptr);\n      }\n    }\n  }" ({ "{") (expression_statement "iVar2 = parser_expanding_alias();" (assignment_expression "iVar2 = parser_expanding_alias()" (identifier "iVar2") (= "=") (call_expression "parser_expanding_alias()" (identifier "parser_expanding_alias") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n      iVar2 = get_string_value("PROMPT_COMMAND");\n      if (iVar2 != 0) {\n        execute_variable_command(iVar2,"PROMPT_COMMAND");\n      }\n      if (running_under_emacs == 2) {\n        pvVar3 = (void *)get_string_value(&DAT_0011214a);\n        __ptr = (void *)0x0;\n        if (pvVar3 == (void *)0x0) {\n          pvVar3 = (void *)get_working_directory("eterm");\n          __ptr = pvVar3;\n        }\n        __fprintf_chk(*(undefined4 *)PTR_stderr_00171e54,1,&DAT_00110602,pvVar3);\n        free(__ptr);\n      }\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar2 = get_string_value("PROMPT_COMMAND");\n      if (iVar2 != 0) {\n        execute_variable_command(iVar2,"PROMPT_COMMAND");\n      }\n      if (running_under_emacs == 2) {\n        pvVar3 = (void *)get_string_value(&DAT_0011214a);\n        __ptr = (void *)0x0;\n        if (pvVar3 == (void *)0x0) {\n          pvVar3 = (void *)get_working_directory("eterm");\n          __ptr = pvVar3;\n        }\n        __fprintf_chk(*(undefined4 *)PTR_stderr_00171e54,1,&DAT_00110602,pvVar3);\n        free(__ptr);\n      }\n    }" ({ "{") (expression_statement "iVar2 = get_string_value("PROMPT_COMMAND");" (assignment_expression "iVar2 = get_string_value("PROMPT_COMMAND")" (identifier "iVar2") (= "=") (call_expression "get_string_value("PROMPT_COMMAND")" (identifier "get_string_value") (argument_list "("PROMPT_COMMAND")" (( "(") (string_literal ""PROMPT_COMMAND"" (" """) (string_content "PROMPT_COMMAND") (" """)) () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n        execute_variable_command(iVar2,"PROMPT_COMMAND");\n      }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        execute_variable_command(iVar2,"PROMPT_COMMAND");\n      }" ({ "{") (expression_statement "execute_variable_command(iVar2,"PROMPT_COMMAND");" (call_expression "execute_variable_command(iVar2,"PROMPT_COMMAND")" (identifier "execute_variable_command") (argument_list "(iVar2,"PROMPT_COMMAND")" (( "(") (identifier "iVar2") (, ",") (string_literal ""PROMPT_COMMAND"" (" """) (string_content "PROMPT_COMMAND") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (running_under_emacs == 2) {\n        pvVar3 = (void *)get_string_value(&DAT_0011214a);\n        __ptr = (void *)0x0;\n        if (pvVar3 == (void *)0x0) {\n          pvVar3 = (void *)get_working_directory("eterm");\n          __ptr = pvVar3;\n        }\n        __fprintf_chk(*(undefined4 *)PTR_stderr_00171e54,1,&DAT_00110602,pvVar3);\n        free(__ptr);\n      }" (if "if") (parenthesized_expression "(running_under_emacs == 2)" (( "(") (binary_expression "running_under_emacs == 2" (identifier "running_under_emacs") (== "==") (number_literal "2")) () ")")) (compound_statement "{\n        pvVar3 = (void *)get_string_value(&DAT_0011214a);\n        __ptr = (void *)0x0;\n        if (pvVar3 == (void *)0x0) {\n          pvVar3 = (void *)get_working_directory("eterm");\n          __ptr = pvVar3;\n        }\n        __fprintf_chk(*(undefined4 *)PTR_stderr_00171e54,1,&DAT_00110602,pvVar3);\n        free(__ptr);\n      }" ({ "{") (expression_statement "pvVar3 = (void *)get_string_value(&DAT_0011214a);" (assignment_expression "pvVar3 = (void *)get_string_value(&DAT_0011214a)" (identifier "pvVar3") (= "=") (cast_expression "(void *)get_string_value(&DAT_0011214a)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "get_string_value(&DAT_0011214a)" (identifier "get_string_value") (argument_list "(&DAT_0011214a)" (( "(") (pointer_expression "&DAT_0011214a" (& "&") (identifier "DAT_0011214a")) () ")"))))) (; ";")) (expression_statement "__ptr = (void *)0x0;" (assignment_expression "__ptr = (void *)0x0" (identifier "__ptr") (= "=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (if_statement "if (pvVar3 == (void *)0x0) {\n          pvVar3 = (void *)get_working_directory("eterm");\n          __ptr = pvVar3;\n        }" (if "if") (parenthesized_expression "(pvVar3 == (void *)0x0)" (( "(") (binary_expression "pvVar3 == (void *)0x0" (identifier "pvVar3") (== "==") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          pvVar3 = (void *)get_working_directory("eterm");\n          __ptr = pvVar3;\n        }" ({ "{") (expression_statement "pvVar3 = (void *)get_working_directory("eterm");" (assignment_expression "pvVar3 = (void *)get_working_directory("eterm")" (identifier "pvVar3") (= "=") (cast_expression "(void *)get_working_directory("eterm")" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "get_working_directory("eterm")" (identifier "get_working_directory") (argument_list "("eterm")" (( "(") (string_literal ""eterm"" (" """) (string_content "eterm") (" """)) () ")"))))) (; ";")) (expression_statement "__ptr = pvVar3;" (assignment_expression "__ptr = pvVar3" (identifier "__ptr") (= "=") (identifier "pvVar3")) (; ";")) (} "}"))) (expression_statement "__fprintf_chk(*(undefined4 *)PTR_stderr_00171e54,1,&DAT_00110602,pvVar3);" (call_expression "__fprintf_chk(*(undefined4 *)PTR_stderr_00171e54,1,&DAT_00110602,pvVar3)" (identifier "__fprintf_chk") (argument_list "(*(undefined4 *)PTR_stderr_00171e54,1,&DAT_00110602,pvVar3)" (( "(") (pointer_expression "*(undefined4 *)PTR_stderr_00171e54" (* "*") (cast_expression "(undefined4 *)PTR_stderr_00171e54" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_stderr_00171e54"))) (, ",") (number_literal "1") (, ",") (pointer_expression "&DAT_00110602" (& "&") (identifier "DAT_00110602")) (, ",") (identifier "pvVar3") () ")"))) (; ";")) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" (identifier "free") (argument_list "(__ptr)" (( "(") (identifier "__ptr") () ")"))) (; ";")) (} "}"))) (} "}"))) (} "}"))) (expression_statement "current_command_line_count = 0;" (assignment_expression "current_command_line_count = 0" (identifier "current_command_line_count") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar1 = yyparse();" (assignment_expression "uVar1 = yyparse()" (identifier "uVar1") (= "=") (call_expression "yyparse()" (identifier "yyparse") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (need_here_doc == 0) {\n    return uVar1;\n  }" (if "if") (parenthesized_expression "(need_here_doc == 0)" (( "(") (binary_expression "need_here_doc == 0" (identifier "need_here_doc") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return uVar1;\n  }" ({ "{") (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (expression_statement "gather_here_documents();" (call_expression "gather_here_documents()" (identifier "gather_here_documents") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}")))

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

int function_1(void)

{
  int var_5;
  char *var_7;
  char *var_10;
  
  var_15 = 0;
  var_1();
  if ((var_2 != 0) && (bash_input.type != var_3)) {
    var_5 = var_4();
    if (var_5 == 0) {
      var_7 = var_6("PROMPT_COMMAND");
      if (var_7 != (char *)0x0) {
        var_8(var_7,"PROMPT_COMMAND");
      }
      if (var_9 == 2) {
        var_10 = var_6("PWD");
        var_7 = (char *)0x0;
        if (var_10 == (char *)0x0) {
          var_10 = var_11("eterm");
          var_7 = var_10;
        }
        var_12(*(type_1 *)PTR_stderr_00171e54,1,&DAT_00110602,var_10);
        var_13(var_7);
      }
    }
  }
  current_command_line_count = 0;
  var_5 = var_14();
  if (var_15 == 0) {
    return var_5;
  }
  var_16();
  return var_5;
}


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

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

undefined4 MASKED(void)

{
  undefined4 uVar1;
  int iVar2;
  void *pvVar3;
  void *__ptr;
  
  need_here_doc = 0;
  run_pending_traps();
  if ((interactive != 0) && (bash_input != 3)) {
    iVar2 = parser_expanding_alias();
    if (iVar2 == 0) {
      iVar2 = get_string_value("PROMPT_COMMAND");
      if (iVar2 != 0) {
        execute_variable_command(iVar2,"PROMPT_COMMAND");
      }
      if (running_under_emacs == 2) {
        pvVar3 = (void *)get_string_value(&DAT_0011214a);
        __ptr = (void *)0x0;
        if (pvVar3 == (void *)0x0) {
          pvVar3 = (void *)get_working_directory("eterm");
          __ptr = pvVar3;
        }
        __fprintf_chk(*(undefined4 *)PTR_stderr_00171e54,1,&DAT_00110602,pvVar3);
        free(__ptr);
      }
    }
  }
  current_command_line_count = 0;
  uVar1 = yyparse();
  if (need_here_doc == 0) {
    return uVar1;
  }
  gather_here_documents();
  return uVar1;
}

