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

int __regparm3 exit_or_logout(WORD_LIST *list)

{
  JOB_STATE JVar1;
  JOB **ppJVar2;
  char *pcVar3;
  undefined4 uVar4;
  int iVar5;
  char cVar6;
  
  if ((((interactive != 0) &&
       (last_shell_builtin != logout_builtin && last_shell_builtin != exit_builtin)) &&
      (last_shell_builtin != (sh_builtin_func_t *)PTR_jobs_builtin_00149f44)) && (0 < js.j_jobslots)
     ) {
    cVar6 = '\0';
    ppJVar2 = jobs;
    do {
      while (*ppJVar2 == (JOB *)0x0) {
LAB_000a1758:
        ppJVar2 = ppJVar2 + 1;
        if (ppJVar2 == jobs + js.j_jobslots) goto LAB_000a1779;
      }
      JVar1 = (*ppJVar2)->state;
      if (JVar1 != JSTOPPED) {
        if ((cVar6 == '\0') && (check_jobs_at_exit != 0)) {
          cVar6 = JVar1 == JRUNNING;
        }
        goto LAB_000a1758;
      }
      ppJVar2 = ppJVar2 + 1;
      cVar6 = '\x02';
    } while (ppJVar2 != jobs + js.j_jobslots);
LAB_000a1779:
    if (cVar6 == '\x02') {
      pcVar3 = "There are stopped jobs.\n";
    }
    else {
      if (cVar6 != '\x01') goto LAB_000a1783;
      pcVar3 = "There are running jobs.\n";
    }
    uVar4 = dcgettext(0,pcVar3,5);
    __fprintf_chk(*(undefined4 *)PTR_stderr_00149e54,1,uVar4);
    if (check_jobs_at_exit != 0) {
      list_all_jobs(0);
    }
    last_shell_builtin = exit_builtin;
    this_shell_builtin = exit_builtin;
    return 1;
  }
LAB_000a1783:
  if ((running_trap != 1) || (iVar5 = trap_saved_exit_value, list != (WORD_LIST *)0x0)) {
    iVar5 = get_exitstat(list);
  }
  bash_logout();
  last_command_exit_value = iVar5;
                    /* WARNING: Subroutine does not return */
  jump_to_top_level(3);
}



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

undefined4 __regparm3 FUN_000a16c0(int param_1)

{
  int iVar1;
  int *piVar2;
  char *pcVar3;
  undefined4 uVar4;
  char cVar5;
  
  if ((((interactive != 0) &&
       (last_shell_builtin != logout_builtin && last_shell_builtin != exit_builtin)) &&
      (last_shell_builtin != (code *)PTR_jobs_builtin_00149f44)) && (0 < DAT_0014a7d8)) {
    cVar5 = '\0';
    piVar2 = jobs;
    do {
      while (*piVar2 == 0) {
LAB_000a1758:
        piVar2 = piVar2 + 1;
        if (piVar2 == jobs + DAT_0014a7d8) goto LAB_000a1779;
      }
      iVar1 = *(int *)(*piVar2 + 0xc);
      if (iVar1 != 2) {
        if ((cVar5 == '\0') && (check_jobs_at_exit != 0)) {
          cVar5 = iVar1 == 1;
        }
        goto LAB_000a1758;
      }
      piVar2 = piVar2 + 1;
      cVar5 = '\x02';
    } while (piVar2 != jobs + DAT_0014a7d8);
LAB_000a1779:
    if (cVar5 == '\x02') {
      pcVar3 = "There are stopped jobs.\n";
    }
    else {
      if (cVar5 != '\x01') goto LAB_000a1783;
      pcVar3 = "There are running jobs.\n";
    }
    uVar4 = dcgettext(0,pcVar3,5);
    __fprintf_chk(*(undefined4 *)PTR_stderr_00149e54,1,uVar4);
    if (check_jobs_at_exit != 0) {
      list_all_jobs(0);
    }
    last_shell_builtin = exit_builtin;
    this_shell_builtin = exit_builtin;
    return 1;
  }
LAB_000a1783:
  if ((running_trap != 1) || (uVar4 = trap_saved_exit_value, param_1 != 0)) {
    uVar4 = get_exitstat(param_1);
  }
  bash_logout();
  last_command_exit_value = uVar4;
                    /* WARNING: Subroutine does not return */
  jump_to_top_level(3);
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00031ed0
ADD EBX,0xa8937
SUB ESP,0x1c
MOV dword ptr [ESP + 0xc],EAX
LEA EAX,[EBX + 0x484c]
MOV ESI,dword ptr [EAX]
TEST ESI,ESI
JZ 0x000a1783
LEA EBP,[EBX + 0x7664]
LEA EDX,[EBX + 0xfff57900]
LEA ESI,[EBX + 0xfff57840]
MOV EAX,dword ptr [EBP]
CMP EAX,EDX
SETZ CL
CMP EAX,ESI
SETZ DL
OR CL,DL
JNZ 0x000a1783
CMP EAX,dword ptr [EBX + 0xffffff44]
JZ 0x000a1783
LEA EAX,[EBX + 0x7c0]
MOV EDX,dword ptr [EAX + 0x18]
TEST EDX,EDX
JLE 0x000a1783
LEA EAX,[EBX + 0x4840]
MOV ECX,dword ptr [EAX]
MOV dword ptr [ESP + 0x8],EAX
LEA EAX,[EBX + 0x5ef4]
TEST ECX,ECX
MOV EAX,dword ptr [EAX]
SETNZ byte ptr [ESP + 0x7]
XOR ECX,ECX
LEA EDI,[EAX + EDX*0x4]
JMP 0x000a175f
TEST ECX,ECX
JNZ 0x000a1758
CMP byte ptr [ESP + 0x7],0x0
JZ 0x000a1758
XOR ECX,ECX
CMP EDX,0x1
SETZ CL
LEA ESI,[ESI]
NOP
ADD EAX,0x4
CMP EAX,EDI
JZ 0x000a1779
MOV EDX,dword ptr [EAX]
TEST EDX,EDX
JZ 0x000a1758
MOV EDX,dword ptr [EDX + 0xc]
CMP EDX,0x2
JNZ 0x000a1740
ADD EAX,0x4
MOV ECX,0x2
CMP EAX,EDI
JNZ 0x000a175f
CMP ECX,0x2
JZ 0x000a17a0
CMP ECX,0x1
JZ 0x000a1800
LEA EAX,[EBX + 0xcfe0]
CMP dword ptr [EAX],0x1
JNZ 0x000a180d
MOV EAX,dword ptr [ESP + 0xc]
TEST EAX,EAX
JNZ 0x000a180d
LEA EAX,[EBX + 0xd108]
MOV ESI,dword ptr [EAX]
JMP 0x000a181e
SUB ESP,0x4
LEA EAX,[EBX + 0xfffb7d3e]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x0002f380
ADD ESP,0xc
PUSH EAX
MOV EAX,dword ptr [EBX + 0xfffffe54]
PUSH 0x1
PUSH dword ptr [EAX]
CALL 0x0002fc00
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x8]
MOV EDX,dword ptr [EAX]
TEST EDX,EDX
JZ 0x000a17e0
SUB ESP,0xc
PUSH 0x0
CALL 0x00060880
ADD ESP,0x10
LEA EAX,[EBX + 0x7660]
MOV dword ptr [EBP],ESI
MOV dword ptr [EAX],ESI
ADD ESP,0x1c
MOV EAX,0x1
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
LEA EAX,[EBX + 0xfffb7d57]
PUSH 0x5
JMP 0x000a17ab
SUB ESP,0xc
PUSH dword ptr [ESP + 0x18]
CALL 0x0009beb0
ADD ESP,0x10
MOV ESI,EAX
CALL 0x000a1650
LEA EAX,[EBX + 0x8df0]
SUB ESP,0xc
MOV dword ptr [EAX],ESI
PUSH 0x3
CALL 0x0007efa0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 __regparm3 FUN_000a16c0(int param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  char cVar5;\n  \n  if ((((interactive != 0) &&\n       (last_shell_builtin != logout_builtin && last_shell_builtin != exit_builtin)) &&\n      (last_shell_builtin != (code *)PTR_jobs_builtin_00149f44)) && (0 < DAT_0014a7d8)) {\n    cVar5 = '\0';\n    piVar2 = jobs;\n    do {\n      while (*piVar2 == 0) {\nLAB_000a1758:\n        piVar2 = piVar2 + 1;\n        if (piVar2 == jobs + DAT_0014a7d8) goto LAB_000a1779;\n      }\n      iVar1 = *(int *)(*piVar2 + 0xc);\n      if (iVar1 != 2) {\n        if ((cVar5 == '\0') && (check_jobs_at_exit != 0)) {\n          cVar5 = iVar1 == 1;\n        }\n        goto LAB_000a1758;\n      }\n      piVar2 = piVar2 + 1;\n      cVar5 = '\x02';\n    } while (piVar2 != jobs + DAT_0014a7d8);\nLAB_000a1779:\n    if (cVar5 == '\x02') {\n      pcVar3 = "There are stopped jobs.\n";\n    }\n    else {\n      if (cVar5 != '\x01') goto LAB_000a1783;\n      pcVar3 = "There are running jobs.\n";\n    }\n    uVar4 = dcgettext(0,pcVar3,5);\n    __fprintf_chk(*(undefined4 *)PTR_stderr_00149e54,1,uVar4);\n    if (check_jobs_at_exit != 0) {\n      list_all_jobs(0);\n    }\n    last_shell_builtin = exit_builtin;\n    this_shell_builtin = exit_builtin;\n    return 1;\n  }\nLAB_000a1783:\n  if ((running_trap != 1) || (uVar4 = trap_saved_exit_value, param_1 != 0)) {\n    uVar4 = get_exitstat(param_1);\n  }\n  bash_logout();\n  last_command_exit_value = uVar4;\n                    /* WARNING: Subroutine does not return */\n  jump_to_top_level(3);\n}\n\n" comment (function_definition "undefined4 __regparm3 FUN_000a16c0(int param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  char cVar5;\n  \n  if ((((interactive != 0) &&\n       (last_shell_builtin != logout_builtin && last_shell_builtin != exit_builtin)) &&\n      (last_shell_builtin != (code *)PTR_jobs_builtin_00149f44)) && (0 < DAT_0014a7d8)) {\n    cVar5 = '\0';\n    piVar2 = jobs;\n    do {\n      while (*piVar2 == 0) {\nLAB_000a1758:\n        piVar2 = piVar2 + 1;\n        if (piVar2 == jobs + DAT_0014a7d8) goto LAB_000a1779;\n      }\n      iVar1 = *(int *)(*piVar2 + 0xc);\n      if (iVar1 != 2) {\n        if ((cVar5 == '\0') && (check_jobs_at_exit != 0)) {\n          cVar5 = iVar1 == 1;\n        }\n        goto LAB_000a1758;\n      }\n      piVar2 = piVar2 + 1;\n      cVar5 = '\x02';\n    } while (piVar2 != jobs + DAT_0014a7d8);\nLAB_000a1779:\n    if (cVar5 == '\x02') {\n      pcVar3 = "There are stopped jobs.\n";\n    }\n    else {\n      if (cVar5 != '\x01') goto LAB_000a1783;\n      pcVar3 = "There are running jobs.\n";\n    }\n    uVar4 = dcgettext(0,pcVar3,5);\n    __fprintf_chk(*(undefined4 *)PTR_stderr_00149e54,1,uVar4);\n    if (check_jobs_at_exit != 0) {\n      list_all_jobs(0);\n    }\n    last_shell_builtin = exit_builtin;\n    this_shell_builtin = exit_builtin;\n    return 1;\n  }\nLAB_000a1783:\n  if ((running_trap != 1) || (uVar4 = trap_saved_exit_value, param_1 != 0)) {\n    uVar4 = get_exitstat(param_1);\n  }\n  bash_logout();\n  last_command_exit_value = uVar4;\n                    /* WARNING: Subroutine does not return */\n  jump_to_top_level(3);\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_000a16c0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  char cVar5;\n  \n  if ((((interactive != 0) &&\n       (last_shell_builtin != logout_builtin && last_shell_builtin != exit_builtin)) &&\n      (last_shell_builtin != (code *)PTR_jobs_builtin_00149f44)) && (0 < DAT_0014a7d8)) {\n    cVar5 = '\0';\n    piVar2 = jobs;\n    do {\n      while (*piVar2 == 0) {\nLAB_000a1758:\n        piVar2 = piVar2 + 1;\n        if (piVar2 == jobs + DAT_0014a7d8) goto LAB_000a1779;\n      }\n      iVar1 = *(int *)(*piVar2 + 0xc);\n      if (iVar1 != 2) {\n        if ((cVar5 == '\0') && (check_jobs_at_exit != 0)) {\n          cVar5 = iVar1 == 1;\n        }\n        goto LAB_000a1758;\n      }\n      piVar2 = piVar2 + 1;\n      cVar5 = '\x02';\n    } while (piVar2 != jobs + DAT_0014a7d8);\nLAB_000a1779:\n    if (cVar5 == '\x02') {\n      pcVar3 = "There are stopped jobs.\n";\n    }\n    else {\n      if (cVar5 != '\x01') goto LAB_000a1783;\n      pcVar3 = "There are running jobs.\n";\n    }\n    uVar4 = dcgettext(0,pcVar3,5);\n    __fprintf_chk(*(undefined4 *)PTR_stderr_00149e54,1,uVar4);\n    if (check_jobs_at_exit != 0) {\n      list_all_jobs(0);\n    }\n    last_shell_builtin = exit_builtin;\n    this_shell_builtin = exit_builtin;\n    return 1;\n  }\nLAB_000a1783:\n  if ((running_trap != 1) || (uVar4 = trap_saved_exit_value, param_1 != 0)) {\n    uVar4 = get_exitstat(param_1);\n  }\n  bash_logout();\n  last_command_exit_value = uVar4;\n                    /* WARNING: Subroutine does not return */\n  jump_to_top_level(3);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "char cVar5;" primitive_type identifier ;) (if_statement "if ((((interactive != 0) &&\n       (last_shell_builtin != logout_builtin && last_shell_builtin != exit_builtin)) &&\n      (last_shell_builtin != (code *)PTR_jobs_builtin_00149f44)) && (0 < DAT_0014a7d8)) {\n    cVar5 = '\0';\n    piVar2 = jobs;\n    do {\n      while (*piVar2 == 0) {\nLAB_000a1758:\n        piVar2 = piVar2 + 1;\n        if (piVar2 == jobs + DAT_0014a7d8) goto LAB_000a1779;\n      }\n      iVar1 = *(int *)(*piVar2 + 0xc);\n      if (iVar1 != 2) {\n        if ((cVar5 == '\0') && (check_jobs_at_exit != 0)) {\n          cVar5 = iVar1 == 1;\n        }\n        goto LAB_000a1758;\n      }\n      piVar2 = piVar2 + 1;\n      cVar5 = '\x02';\n    } while (piVar2 != jobs + DAT_0014a7d8);\nLAB_000a1779:\n    if (cVar5 == '\x02') {\n      pcVar3 = "There are stopped jobs.\n";\n    }\n    else {\n      if (cVar5 != '\x01') goto LAB_000a1783;\n      pcVar3 = "There are running jobs.\n";\n    }\n    uVar4 = dcgettext(0,pcVar3,5);\n    __fprintf_chk(*(undefined4 *)PTR_stderr_00149e54,1,uVar4);\n    if (check_jobs_at_exit != 0) {\n      list_all_jobs(0);\n    }\n    last_shell_builtin = exit_builtin;\n    this_shell_builtin = exit_builtin;\n    return 1;\n  }" if (parenthesized_expression "((((interactive != 0) &&\n       (last_shell_builtin != logout_builtin && last_shell_builtin != exit_builtin)) &&\n      (last_shell_builtin != (code *)PTR_jobs_builtin_00149f44)) && (0 < DAT_0014a7d8))" ( (binary_expression "(((interactive != 0) &&\n       (last_shell_builtin != logout_builtin && last_shell_builtin != exit_builtin)) &&\n      (last_shell_builtin != (code *)PTR_jobs_builtin_00149f44)) && (0 < DAT_0014a7d8)" (parenthesized_expression "(((interactive != 0) &&\n       (last_shell_builtin != logout_builtin && last_shell_builtin != exit_builtin)) &&\n      (last_shell_builtin != (code *)PTR_jobs_builtin_00149f44))" ( (binary_expression "((interactive != 0) &&\n       (last_shell_builtin != logout_builtin && last_shell_builtin != exit_builtin)) &&\n      (last_shell_builtin != (code *)PTR_jobs_builtin_00149f44)" (parenthesized_expression "((interactive != 0) &&\n       (last_shell_builtin != logout_builtin && last_shell_builtin != exit_builtin))" ( (binary_expression "(interactive != 0) &&\n       (last_shell_builtin != logout_builtin && last_shell_builtin != exit_builtin)" (parenthesized_expression "(interactive != 0)" ( (binary_expression "interactive != 0" identifier != number_literal) )) && (parenthesized_expression "(last_shell_builtin != logout_builtin && last_shell_builtin != exit_builtin)" ( (binary_expression "last_shell_builtin != logout_builtin && last_shell_builtin != exit_builtin" (binary_expression "last_shell_builtin != logout_builtin" identifier != identifier) && (binary_expression "last_shell_builtin != exit_builtin" identifier != identifier)) ))) )) && (parenthesized_expression "(last_shell_builtin != (code *)PTR_jobs_builtin_00149f44)" ( (binary_expression "last_shell_builtin != (code *)PTR_jobs_builtin_00149f44" identifier != (cast_expression "(code *)PTR_jobs_builtin_00149f44" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) )) && (parenthesized_expression "(0 < DAT_0014a7d8)" ( (binary_expression "0 < DAT_0014a7d8" number_literal < identifier) ))) )) (compound_statement "{\n    cVar5 = '\0';\n    piVar2 = jobs;\n    do {\n      while (*piVar2 == 0) {\nLAB_000a1758:\n        piVar2 = piVar2 + 1;\n        if (piVar2 == jobs + DAT_0014a7d8) goto LAB_000a1779;\n      }\n      iVar1 = *(int *)(*piVar2 + 0xc);\n      if (iVar1 != 2) {\n        if ((cVar5 == '\0') && (check_jobs_at_exit != 0)) {\n          cVar5 = iVar1 == 1;\n        }\n        goto LAB_000a1758;\n      }\n      piVar2 = piVar2 + 1;\n      cVar5 = '\x02';\n    } while (piVar2 != jobs + DAT_0014a7d8);\nLAB_000a1779:\n    if (cVar5 == '\x02') {\n      pcVar3 = "There are stopped jobs.\n";\n    }\n    else {\n      if (cVar5 != '\x01') goto LAB_000a1783;\n      pcVar3 = "There are running jobs.\n";\n    }\n    uVar4 = dcgettext(0,pcVar3,5);\n    __fprintf_chk(*(undefined4 *)PTR_stderr_00149e54,1,uVar4);\n    if (check_jobs_at_exit != 0) {\n      list_all_jobs(0);\n    }\n    last_shell_builtin = exit_builtin;\n    this_shell_builtin = exit_builtin;\n    return 1;\n  }" { (expression_statement "cVar5 = '\0';" (assignment_expression "cVar5 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "piVar2 = jobs;" (assignment_expression "piVar2 = jobs" identifier = identifier) ;) (do_statement "do {\n      while (*piVar2 == 0) {\nLAB_000a1758:\n        piVar2 = piVar2 + 1;\n        if (piVar2 == jobs + DAT_0014a7d8) goto LAB_000a1779;\n      }\n      iVar1 = *(int *)(*piVar2 + 0xc);\n      if (iVar1 != 2) {\n        if ((cVar5 == '\0') && (check_jobs_at_exit != 0)) {\n          cVar5 = iVar1 == 1;\n        }\n        goto LAB_000a1758;\n      }\n      piVar2 = piVar2 + 1;\n      cVar5 = '\x02';\n    } while (piVar2 != jobs + DAT_0014a7d8);" do (compound_statement "{\n      while (*piVar2 == 0) {\nLAB_000a1758:\n        piVar2 = piVar2 + 1;\n        if (piVar2 == jobs + DAT_0014a7d8) goto LAB_000a1779;\n      }\n      iVar1 = *(int *)(*piVar2 + 0xc);\n      if (iVar1 != 2) {\n        if ((cVar5 == '\0') && (check_jobs_at_exit != 0)) {\n          cVar5 = iVar1 == 1;\n        }\n        goto LAB_000a1758;\n      }\n      piVar2 = piVar2 + 1;\n      cVar5 = '\x02';\n    }" { (while_statement "while (*piVar2 == 0) {\nLAB_000a1758:\n        piVar2 = piVar2 + 1;\n        if (piVar2 == jobs + DAT_0014a7d8) goto LAB_000a1779;\n      }" while (parenthesized_expression "(*piVar2 == 0)" ( (binary_expression "*piVar2 == 0" (pointer_expression "*piVar2" * identifier) == number_literal) )) (compound_statement "{\nLAB_000a1758:\n        piVar2 = piVar2 + 1;\n        if (piVar2 == jobs + DAT_0014a7d8) goto LAB_000a1779;\n      }" { (labeled_statement "LAB_000a1758:\n        piVar2 = piVar2 + 1;" statement_identifier : (expression_statement "piVar2 = piVar2 + 1;" (assignment_expression "piVar2 = piVar2 + 1" identifier = (binary_expression "piVar2 + 1" identifier + number_literal)) ;)) (if_statement "if (piVar2 == jobs + DAT_0014a7d8) goto LAB_000a1779;" if (parenthesized_expression "(piVar2 == jobs + DAT_0014a7d8)" ( (binary_expression "piVar2 == jobs + DAT_0014a7d8" identifier == (binary_expression "jobs + DAT_0014a7d8" identifier + identifier)) )) (goto_statement "goto LAB_000a1779;" goto statement_identifier ;)) })) (expression_statement "iVar1 = *(int *)(*piVar2 + 0xc);" (assignment_expression "iVar1 = *(int *)(*piVar2 + 0xc)" identifier = (pointer_expression "*(int *)(*piVar2 + 0xc)" * (cast_expression "(int *)(*piVar2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar2 + 0xc)" ( (binary_expression "*piVar2 + 0xc" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) ;) (if_statement "if (iVar1 != 2) {\n        if ((cVar5 == '\0') && (check_jobs_at_exit != 0)) {\n          cVar5 = iVar1 == 1;\n        }\n        goto LAB_000a1758;\n      }" if (parenthesized_expression "(iVar1 != 2)" ( (binary_expression "iVar1 != 2" identifier != number_literal) )) (compound_statement "{\n        if ((cVar5 == '\0') && (check_jobs_at_exit != 0)) {\n          cVar5 = iVar1 == 1;\n        }\n        goto LAB_000a1758;\n      }" { (if_statement "if ((cVar5 == '\0') && (check_jobs_at_exit != 0)) {\n          cVar5 = iVar1 == 1;\n        }" if (parenthesized_expression "((cVar5 == '\0') && (check_jobs_at_exit != 0))" ( (binary_expression "(cVar5 == '\0') && (check_jobs_at_exit != 0)" (parenthesized_expression "(cVar5 == '\0')" ( (binary_expression "cVar5 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(check_jobs_at_exit != 0)" ( (binary_expression "check_jobs_at_exit != 0" identifier != number_literal) ))) )) (compound_statement "{\n          cVar5 = iVar1 == 1;\n        }" { (expression_statement "cVar5 = iVar1 == 1;" (assignment_expression "cVar5 = iVar1 == 1" identifier = (binary_expression "iVar1 == 1" identifier == number_literal)) ;) })) (goto_statement "goto LAB_000a1758;" goto statement_identifier ;) })) (expression_statement "piVar2 = piVar2 + 1;" (assignment_expression "piVar2 = piVar2 + 1" identifier = (binary_expression "piVar2 + 1" identifier + number_literal)) ;) (expression_statement "cVar5 = '\x02';" (assignment_expression "cVar5 = '\x02'" identifier = (char_literal "'\x02'" ' escape_sequence ')) ;) }) while (parenthesized_expression "(piVar2 != jobs + DAT_0014a7d8)" ( (binary_expression "piVar2 != jobs + DAT_0014a7d8" identifier != (binary_expression "jobs + DAT_0014a7d8" identifier + identifier)) )) ;) (labeled_statement "LAB_000a1779:\n    if (cVar5 == '\x02') {\n      pcVar3 = "There are stopped jobs.\n";\n    }\n    else {\n      if (cVar5 != '\x01') goto LAB_000a1783;\n      pcVar3 = "There are running jobs.\n";\n    }" statement_identifier : (if_statement "if (cVar5 == '\x02') {\n      pcVar3 = "There are stopped jobs.\n";\n    }\n    else {\n      if (cVar5 != '\x01') goto LAB_000a1783;\n      pcVar3 = "There are running jobs.\n";\n    }" if (parenthesized_expression "(cVar5 == '\x02')" ( (binary_expression "cVar5 == '\x02'" identifier == (char_literal "'\x02'" ' escape_sequence ')) )) (compound_statement "{\n      pcVar3 = "There are stopped jobs.\n";\n    }" { (expression_statement "pcVar3 = "There are stopped jobs.\n";" (assignment_expression "pcVar3 = "There are stopped jobs.\n"" identifier = (string_literal ""There are stopped jobs.\n"" " string_content escape_sequence ")) ;) }) (else_clause "else {\n      if (cVar5 != '\x01') goto LAB_000a1783;\n      pcVar3 = "There are running jobs.\n";\n    }" else (compound_statement "{\n      if (cVar5 != '\x01') goto LAB_000a1783;\n      pcVar3 = "There are running jobs.\n";\n    }" { (if_statement "if (cVar5 != '\x01') goto LAB_000a1783;" if (parenthesized_expression "(cVar5 != '\x01')" ( (binary_expression "cVar5 != '\x01'" identifier != (char_literal "'\x01'" ' escape_sequence ')) )) (goto_statement "goto LAB_000a1783;" goto statement_identifier ;)) (expression_statement "pcVar3 = "There are running jobs.\n";" (assignment_expression "pcVar3 = "There are running jobs.\n"" identifier = (string_literal ""There are running jobs.\n"" " string_content escape_sequence ")) ;) })))) (expression_statement "uVar4 = dcgettext(0,pcVar3,5);" (assignment_expression "uVar4 = dcgettext(0,pcVar3,5)" identifier = (call_expression "dcgettext(0,pcVar3,5)" identifier (argument_list "(0,pcVar3,5)" ( number_literal , identifier , number_literal )))) ;) (expression_statement "__fprintf_chk(*(undefined4 *)PTR_stderr_00149e54,1,uVar4);" (call_expression "__fprintf_chk(*(undefined4 *)PTR_stderr_00149e54,1,uVar4)" identifier (argument_list "(*(undefined4 *)PTR_stderr_00149e54,1,uVar4)" ( (pointer_expression "*(undefined4 *)PTR_stderr_00149e54" * (cast_expression "(undefined4 *)PTR_stderr_00149e54" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , number_literal , identifier ))) ;) (if_statement "if (check_jobs_at_exit != 0) {\n      list_all_jobs(0);\n    }" if (parenthesized_expression "(check_jobs_at_exit != 0)" ( (binary_expression "check_jobs_at_exit != 0" identifier != number_literal) )) (compound_statement "{\n      list_all_jobs(0);\n    }" { (expression_statement "list_all_jobs(0);" (call_expression "list_all_jobs(0)" identifier (argument_list "(0)" ( number_literal ))) ;) })) (expression_statement "last_shell_builtin = exit_builtin;" (assignment_expression "last_shell_builtin = exit_builtin" identifier = identifier) ;) (expression_statement "this_shell_builtin = exit_builtin;" (assignment_expression "this_shell_builtin = exit_builtin" identifier = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (labeled_statement "LAB_000a1783:\n  if ((running_trap != 1) || (uVar4 = trap_saved_exit_value, param_1 != 0)) {\n    uVar4 = get_exitstat(param_1);\n  }" statement_identifier : (if_statement "if ((running_trap != 1) || (uVar4 = trap_saved_exit_value, param_1 != 0)) {\n    uVar4 = get_exitstat(param_1);\n  }" if (parenthesized_expression "((running_trap != 1) || (uVar4 = trap_saved_exit_value, param_1 != 0))" ( (binary_expression "(running_trap != 1) || (uVar4 = trap_saved_exit_value, param_1 != 0)" (parenthesized_expression "(running_trap != 1)" ( (binary_expression "running_trap != 1" identifier != number_literal) )) || (parenthesized_expression "(uVar4 = trap_saved_exit_value, param_1 != 0)" ( (comma_expression "uVar4 = trap_saved_exit_value, param_1 != 0" (assignment_expression "uVar4 = trap_saved_exit_value" identifier = identifier) , (binary_expression "param_1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    uVar4 = get_exitstat(param_1);\n  }" { (expression_statement "uVar4 = get_exitstat(param_1);" (assignment_expression "uVar4 = get_exitstat(param_1)" identifier = (call_expression "get_exitstat(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) }))) (expression_statement "bash_logout();" (call_expression "bash_logout()" identifier (argument_list "()" ( ))) ;) (expression_statement "last_command_exit_value = uVar4;" (assignment_expression "last_command_exit_value = uVar4" identifier = identifier) ;) comment (expression_statement "jump_to_top_level(3);" (call_expression "jump_to_top_level(3)" identifier (argument_list "(3)" ( number_literal ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 exit_or_logout(WORD_LIST *list)\n\n{\n  JOB_STATE JVar1;\n  JOB **ppJVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  int iVar5;\n  char cVar6;\n  \n  if ((((interactive != 0) &&\n       (last_shell_builtin != logout_builtin && last_shell_builtin != exit_builtin)) &&\n      (last_shell_builtin != (sh_builtin_func_t *)PTR_jobs_builtin_00149f44)) && (0 < js.j_jobslots)\n     ) {\n    cVar6 = '\0';\n    ppJVar2 = jobs;\n    do {\n      while (*ppJVar2 == (JOB *)0x0) {\nLAB_000a1758:\n        ppJVar2 = ppJVar2 + 1;\n        if (ppJVar2 == jobs + js.j_jobslots) goto LAB_000a1779;\n      }\n      JVar1 = (*ppJVar2)->state;\n      if (JVar1 != JSTOPPED) {\n        if ((cVar6 == '\0') && (check_jobs_at_exit != 0)) {\n          cVar6 = JVar1 == JRUNNING;\n        }\n        goto LAB_000a1758;\n      }\n      ppJVar2 = ppJVar2 + 1;\n      cVar6 = '\x02';\n    } while (ppJVar2 != jobs + js.j_jobslots);\nLAB_000a1779:\n    if (cVar6 == '\x02') {\n      pcVar3 = "There are stopped jobs.\n";\n    }\n    else {\n      if (cVar6 != '\x01') goto LAB_000a1783;\n      pcVar3 = "There are running jobs.\n";\n    }\n    uVar4 = dcgettext(0,pcVar3,5);\n    __fprintf_chk(*(undefined4 *)PTR_stderr_00149e54,1,uVar4);\n    if (check_jobs_at_exit != 0) {\n      list_all_jobs(0);\n    }\n    last_shell_builtin = exit_builtin;\n    this_shell_builtin = exit_builtin;\n    return 1;\n  }\nLAB_000a1783:\n  if ((running_trap != 1) || (iVar5 = trap_saved_exit_value, list != (WORD_LIST *)0x0)) {\n    iVar5 = get_exitstat(list);\n  }\n  bash_logout();\n  last_command_exit_value = iVar5;\n                    /* WARNING: Subroutine does not return */\n  jump_to_top_level(3);\n}\n\n" comment (function_definition "int __regparm3 exit_or_logout(WORD_LIST *list)\n\n{\n  JOB_STATE JVar1;\n  JOB **ppJVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  int iVar5;\n  char cVar6;\n  \n  if ((((interactive != 0) &&\n       (last_shell_builtin != logout_builtin && last_shell_builtin != exit_builtin)) &&\n      (last_shell_builtin != (sh_builtin_func_t *)PTR_jobs_builtin_00149f44)) && (0 < js.j_jobslots)\n     ) {\n    cVar6 = '\0';\n    ppJVar2 = jobs;\n    do {\n      while (*ppJVar2 == (JOB *)0x0) {\nLAB_000a1758:\n        ppJVar2 = ppJVar2 + 1;\n        if (ppJVar2 == jobs + js.j_jobslots) goto LAB_000a1779;\n      }\n      JVar1 = (*ppJVar2)->state;\n      if (JVar1 != JSTOPPED) {\n        if ((cVar6 == '\0') && (check_jobs_at_exit != 0)) {\n          cVar6 = JVar1 == JRUNNING;\n        }\n        goto LAB_000a1758;\n      }\n      ppJVar2 = ppJVar2 + 1;\n      cVar6 = '\x02';\n    } while (ppJVar2 != jobs + js.j_jobslots);\nLAB_000a1779:\n    if (cVar6 == '\x02') {\n      pcVar3 = "There are stopped jobs.\n";\n    }\n    else {\n      if (cVar6 != '\x01') goto LAB_000a1783;\n      pcVar3 = "There are running jobs.\n";\n    }\n    uVar4 = dcgettext(0,pcVar3,5);\n    __fprintf_chk(*(undefined4 *)PTR_stderr_00149e54,1,uVar4);\n    if (check_jobs_at_exit != 0) {\n      list_all_jobs(0);\n    }\n    last_shell_builtin = exit_builtin;\n    this_shell_builtin = exit_builtin;\n    return 1;\n  }\nLAB_000a1783:\n  if ((running_trap != 1) || (iVar5 = trap_saved_exit_value, list != (WORD_LIST *)0x0)) {\n    iVar5 = get_exitstat(list);\n  }\n  bash_logout();\n  last_command_exit_value = iVar5;\n                    /* WARNING: Subroutine does not return */\n  jump_to_top_level(3);\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "exit_or_logout(WORD_LIST *list)" identifier (parameter_list "(WORD_LIST *list)" ( (parameter_declaration "WORD_LIST *list" type_identifier (pointer_declarator "*list" * identifier)) ))) (compound_statement "{\n  JOB_STATE JVar1;\n  JOB **ppJVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  int iVar5;\n  char cVar6;\n  \n  if ((((interactive != 0) &&\n       (last_shell_builtin != logout_builtin && last_shell_builtin != exit_builtin)) &&\n      (last_shell_builtin != (sh_builtin_func_t *)PTR_jobs_builtin_00149f44)) && (0 < js.j_jobslots)\n     ) {\n    cVar6 = '\0';\n    ppJVar2 = jobs;\n    do {\n      while (*ppJVar2 == (JOB *)0x0) {\nLAB_000a1758:\n        ppJVar2 = ppJVar2 + 1;\n        if (ppJVar2 == jobs + js.j_jobslots) goto LAB_000a1779;\n      }\n      JVar1 = (*ppJVar2)->state;\n      if (JVar1 != JSTOPPED) {\n        if ((cVar6 == '\0') && (check_jobs_at_exit != 0)) {\n          cVar6 = JVar1 == JRUNNING;\n        }\n        goto LAB_000a1758;\n      }\n      ppJVar2 = ppJVar2 + 1;\n      cVar6 = '\x02';\n    } while (ppJVar2 != jobs + js.j_jobslots);\nLAB_000a1779:\n    if (cVar6 == '\x02') {\n      pcVar3 = "There are stopped jobs.\n";\n    }\n    else {\n      if (cVar6 != '\x01') goto LAB_000a1783;\n      pcVar3 = "There are running jobs.\n";\n    }\n    uVar4 = dcgettext(0,pcVar3,5);\n    __fprintf_chk(*(undefined4 *)PTR_stderr_00149e54,1,uVar4);\n    if (check_jobs_at_exit != 0) {\n      list_all_jobs(0);\n    }\n    last_shell_builtin = exit_builtin;\n    this_shell_builtin = exit_builtin;\n    return 1;\n  }\nLAB_000a1783:\n  if ((running_trap != 1) || (iVar5 = trap_saved_exit_value, list != (WORD_LIST *)0x0)) {\n    iVar5 = get_exitstat(list);\n  }\n  bash_logout();\n  last_command_exit_value = iVar5;\n                    /* WARNING: Subroutine does not return */\n  jump_to_top_level(3);\n}" { (declaration "JOB_STATE JVar1;" type_identifier identifier ;) (declaration "JOB **ppJVar2;" type_identifier (pointer_declarator "**ppJVar2" * (pointer_declarator "*ppJVar2" * identifier)) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "char cVar6;" primitive_type identifier ;) (if_statement "if ((((interactive != 0) &&\n       (last_shell_builtin != logout_builtin && last_shell_builtin != exit_builtin)) &&\n      (last_shell_builtin != (sh_builtin_func_t *)PTR_jobs_builtin_00149f44)) && (0 < js.j_jobslots)\n     ) {\n    cVar6 = '\0';\n    ppJVar2 = jobs;\n    do {\n      while (*ppJVar2 == (JOB *)0x0) {\nLAB_000a1758:\n        ppJVar2 = ppJVar2 + 1;\n        if (ppJVar2 == jobs + js.j_jobslots) goto LAB_000a1779;\n      }\n      JVar1 = (*ppJVar2)->state;\n      if (JVar1 != JSTOPPED) {\n        if ((cVar6 == '\0') && (check_jobs_at_exit != 0)) {\n          cVar6 = JVar1 == JRUNNING;\n        }\n        goto LAB_000a1758;\n      }\n      ppJVar2 = ppJVar2 + 1;\n      cVar6 = '\x02';\n    } while (ppJVar2 != jobs + js.j_jobslots);\nLAB_000a1779:\n    if (cVar6 == '\x02') {\n      pcVar3 = "There are stopped jobs.\n";\n    }\n    else {\n      if (cVar6 != '\x01') goto LAB_000a1783;\n      pcVar3 = "There are running jobs.\n";\n    }\n    uVar4 = dcgettext(0,pcVar3,5);\n    __fprintf_chk(*(undefined4 *)PTR_stderr_00149e54,1,uVar4);\n    if (check_jobs_at_exit != 0) {\n      list_all_jobs(0);\n    }\n    last_shell_builtin = exit_builtin;\n    this_shell_builtin = exit_builtin;\n    return 1;\n  }" if (parenthesized_expression "((((interactive != 0) &&\n       (last_shell_builtin != logout_builtin && last_shell_builtin != exit_builtin)) &&\n      (last_shell_builtin != (sh_builtin_func_t *)PTR_jobs_builtin_00149f44)) && (0 < js.j_jobslots)\n     )" ( (binary_expression "(((interactive != 0) &&\n       (last_shell_builtin != logout_builtin && last_shell_builtin != exit_builtin)) &&\n      (last_shell_builtin != (sh_builtin_func_t *)PTR_jobs_builtin_00149f44)) && (0 < js.j_jobslots)" (parenthesized_expression "(((interactive != 0) &&\n       (last_shell_builtin != logout_builtin && last_shell_builtin != exit_builtin)) &&\n      (last_shell_builtin != (sh_builtin_func_t *)PTR_jobs_builtin_00149f44))" ( (binary_expression "((interactive != 0) &&\n       (last_shell_builtin != logout_builtin && last_shell_builtin != exit_builtin)) &&\n      (last_shell_builtin != (sh_builtin_func_t *)PTR_jobs_builtin_00149f44)" (parenthesized_expression "((interactive != 0) &&\n       (last_shell_builtin != logout_builtin && last_shell_builtin != exit_builtin))" ( (binary_expression "(interactive != 0) &&\n       (last_shell_builtin != logout_builtin && last_shell_builtin != exit_builtin)" (parenthesized_expression "(interactive != 0)" ( (binary_expression "interactive != 0" identifier != number_literal) )) && (parenthesized_expression "(last_shell_builtin != logout_builtin && last_shell_builtin != exit_builtin)" ( (binary_expression "last_shell_builtin != logout_builtin && last_shell_builtin != exit_builtin" (binary_expression "last_shell_builtin != logout_builtin" identifier != identifier) && (binary_expression "last_shell_builtin != exit_builtin" identifier != identifier)) ))) )) && (parenthesized_expression "(last_shell_builtin != (sh_builtin_func_t *)PTR_jobs_builtin_00149f44)" ( (binary_expression "last_shell_builtin != (sh_builtin_func_t *)PTR_jobs_builtin_00149f44" identifier != (cast_expression "(sh_builtin_func_t *)PTR_jobs_builtin_00149f44" ( (type_descriptor "sh_builtin_func_t *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) )) && (parenthesized_expression "(0 < js.j_jobslots)" ( (binary_expression "0 < js.j_jobslots" number_literal < (field_expression "js.j_jobslots" identifier . field_identifier)) ))) )) (compound_statement "{\n    cVar6 = '\0';\n    ppJVar2 = jobs;\n    do {\n      while (*ppJVar2 == (JOB *)0x0) {\nLAB_000a1758:\n        ppJVar2 = ppJVar2 + 1;\n        if (ppJVar2 == jobs + js.j_jobslots) goto LAB_000a1779;\n      }\n      JVar1 = (*ppJVar2)->state;\n      if (JVar1 != JSTOPPED) {\n        if ((cVar6 == '\0') && (check_jobs_at_exit != 0)) {\n          cVar6 = JVar1 == JRUNNING;\n        }\n        goto LAB_000a1758;\n      }\n      ppJVar2 = ppJVar2 + 1;\n      cVar6 = '\x02';\n    } while (ppJVar2 != jobs + js.j_jobslots);\nLAB_000a1779:\n    if (cVar6 == '\x02') {\n      pcVar3 = "There are stopped jobs.\n";\n    }\n    else {\n      if (cVar6 != '\x01') goto LAB_000a1783;\n      pcVar3 = "There are running jobs.\n";\n    }\n    uVar4 = dcgettext(0,pcVar3,5);\n    __fprintf_chk(*(undefined4 *)PTR_stderr_00149e54,1,uVar4);\n    if (check_jobs_at_exit != 0) {\n      list_all_jobs(0);\n    }\n    last_shell_builtin = exit_builtin;\n    this_shell_builtin = exit_builtin;\n    return 1;\n  }" { (expression_statement "cVar6 = '\0';" (assignment_expression "cVar6 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "ppJVar2 = jobs;" (assignment_expression "ppJVar2 = jobs" identifier = identifier) ;) (do_statement "do {\n      while (*ppJVar2 == (JOB *)0x0) {\nLAB_000a1758:\n        ppJVar2 = ppJVar2 + 1;\n        if (ppJVar2 == jobs + js.j_jobslots) goto LAB_000a1779;\n      }\n      JVar1 = (*ppJVar2)->state;\n      if (JVar1 != JSTOPPED) {\n        if ((cVar6 == '\0') && (check_jobs_at_exit != 0)) {\n          cVar6 = JVar1 == JRUNNING;\n        }\n        goto LAB_000a1758;\n      }\n      ppJVar2 = ppJVar2 + 1;\n      cVar6 = '\x02';\n    } while (ppJVar2 != jobs + js.j_jobslots);" do (compound_statement "{\n      while (*ppJVar2 == (JOB *)0x0) {\nLAB_000a1758:\n        ppJVar2 = ppJVar2 + 1;\n        if (ppJVar2 == jobs + js.j_jobslots) goto LAB_000a1779;\n      }\n      JVar1 = (*ppJVar2)->state;\n      if (JVar1 != JSTOPPED) {\n        if ((cVar6 == '\0') && (check_jobs_at_exit != 0)) {\n          cVar6 = JVar1 == JRUNNING;\n        }\n        goto LAB_000a1758;\n      }\n      ppJVar2 = ppJVar2 + 1;\n      cVar6 = '\x02';\n    }" { (while_statement "while (*ppJVar2 == (JOB *)0x0) {\nLAB_000a1758:\n        ppJVar2 = ppJVar2 + 1;\n        if (ppJVar2 == jobs + js.j_jobslots) goto LAB_000a1779;\n      }" while (parenthesized_expression "(*ppJVar2 == (JOB *)0x0)" ( (binary_expression "*ppJVar2 == (JOB *)0x0" (pointer_expression "*ppJVar2" * identifier) == (cast_expression "(JOB *)0x0" ( (type_descriptor "JOB *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_000a1758:\n        ppJVar2 = ppJVar2 + 1;\n        if (ppJVar2 == jobs + js.j_jobslots) goto LAB_000a1779;\n      }" { (labeled_statement "LAB_000a1758:\n        ppJVar2 = ppJVar2 + 1;" statement_identifier : (expression_statement "ppJVar2 = ppJVar2 + 1;" (assignment_expression "ppJVar2 = ppJVar2 + 1" identifier = (binary_expression "ppJVar2 + 1" identifier + number_literal)) ;)) (if_statement "if (ppJVar2 == jobs + js.j_jobslots) goto LAB_000a1779;" if (parenthesized_expression "(ppJVar2 == jobs + js.j_jobslots)" ( (binary_expression "ppJVar2 == jobs + js.j_jobslots" identifier == (binary_expression "jobs + js.j_jobslots" identifier + (field_expression "js.j_jobslots" identifier . field_identifier))) )) (goto_statement "goto LAB_000a1779;" goto statement_identifier ;)) })) (expression_statement "JVar1 = (*ppJVar2)->state;" (assignment_expression "JVar1 = (*ppJVar2)->state" identifier = (field_expression "(*ppJVar2)->state" (parenthesized_expression "(*ppJVar2)" ( (pointer_expression "*ppJVar2" * identifier) )) -> field_identifier)) ;) (if_statement "if (JVar1 != JSTOPPED) {\n        if ((cVar6 == '\0') && (check_jobs_at_exit != 0)) {\n          cVar6 = JVar1 == JRUNNING;\n        }\n        goto LAB_000a1758;\n      }" if (parenthesized_expression "(JVar1 != JSTOPPED)" ( (binary_expression "JVar1 != JSTOPPED" identifier != identifier) )) (compound_statement "{\n        if ((cVar6 == '\0') && (check_jobs_at_exit != 0)) {\n          cVar6 = JVar1 == JRUNNING;\n        }\n        goto LAB_000a1758;\n      }" { (if_statement "if ((cVar6 == '\0') && (check_jobs_at_exit != 0)) {\n          cVar6 = JVar1 == JRUNNING;\n        }" if (parenthesized_expression "((cVar6 == '\0') && (check_jobs_at_exit != 0))" ( (binary_expression "(cVar6 == '\0') && (check_jobs_at_exit != 0)" (parenthesized_expression "(cVar6 == '\0')" ( (binary_expression "cVar6 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(check_jobs_at_exit != 0)" ( (binary_expression "check_jobs_at_exit != 0" identifier != number_literal) ))) )) (compound_statement "{\n          cVar6 = JVar1 == JRUNNING;\n        }" { (expression_statement "cVar6 = JVar1 == JRUNNING;" (assignment_expression "cVar6 = JVar1 == JRUNNING" identifier = (binary_expression "JVar1 == JRUNNING" identifier == identifier)) ;) })) (goto_statement "goto LAB_000a1758;" goto statement_identifier ;) })) (expression_statement "ppJVar2 = ppJVar2 + 1;" (assignment_expression "ppJVar2 = ppJVar2 + 1" identifier = (binary_expression "ppJVar2 + 1" identifier + number_literal)) ;) (expression_statement "cVar6 = '\x02';" (assignment_expression "cVar6 = '\x02'" identifier = (char_literal "'\x02'" ' escape_sequence ')) ;) }) while (parenthesized_expression "(ppJVar2 != jobs + js.j_jobslots)" ( (binary_expression "ppJVar2 != jobs + js.j_jobslots" identifier != (binary_expression "jobs + js.j_jobslots" identifier + (field_expression "js.j_jobslots" identifier . field_identifier))) )) ;) (labeled_statement "LAB_000a1779:\n    if (cVar6 == '\x02') {\n      pcVar3 = "There are stopped jobs.\n";\n    }\n    else {\n      if (cVar6 != '\x01') goto LAB_000a1783;\n      pcVar3 = "There are running jobs.\n";\n    }" statement_identifier : (if_statement "if (cVar6 == '\x02') {\n      pcVar3 = "There are stopped jobs.\n";\n    }\n    else {\n      if (cVar6 != '\x01') goto LAB_000a1783;\n      pcVar3 = "There are running jobs.\n";\n    }" if (parenthesized_expression "(cVar6 == '\x02')" ( (binary_expression "cVar6 == '\x02'" identifier == (char_literal "'\x02'" ' escape_sequence ')) )) (compound_statement "{\n      pcVar3 = "There are stopped jobs.\n";\n    }" { (expression_statement "pcVar3 = "There are stopped jobs.\n";" (assignment_expression "pcVar3 = "There are stopped jobs.\n"" identifier = (string_literal ""There are stopped jobs.\n"" " string_content escape_sequence ")) ;) }) (else_clause "else {\n      if (cVar6 != '\x01') goto LAB_000a1783;\n      pcVar3 = "There are running jobs.\n";\n    }" else (compound_statement "{\n      if (cVar6 != '\x01') goto LAB_000a1783;\n      pcVar3 = "There are running jobs.\n";\n    }" { (if_statement "if (cVar6 != '\x01') goto LAB_000a1783;" if (parenthesized_expression "(cVar6 != '\x01')" ( (binary_expression "cVar6 != '\x01'" identifier != (char_literal "'\x01'" ' escape_sequence ')) )) (goto_statement "goto LAB_000a1783;" goto statement_identifier ;)) (expression_statement "pcVar3 = "There are running jobs.\n";" (assignment_expression "pcVar3 = "There are running jobs.\n"" identifier = (string_literal ""There are running jobs.\n"" " string_content escape_sequence ")) ;) })))) (expression_statement "uVar4 = dcgettext(0,pcVar3,5);" (assignment_expression "uVar4 = dcgettext(0,pcVar3,5)" identifier = (call_expression "dcgettext(0,pcVar3,5)" identifier (argument_list "(0,pcVar3,5)" ( number_literal , identifier , number_literal )))) ;) (expression_statement "__fprintf_chk(*(undefined4 *)PTR_stderr_00149e54,1,uVar4);" (call_expression "__fprintf_chk(*(undefined4 *)PTR_stderr_00149e54,1,uVar4)" identifier (argument_list "(*(undefined4 *)PTR_stderr_00149e54,1,uVar4)" ( (pointer_expression "*(undefined4 *)PTR_stderr_00149e54" * (cast_expression "(undefined4 *)PTR_stderr_00149e54" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , number_literal , identifier ))) ;) (if_statement "if (check_jobs_at_exit != 0) {\n      list_all_jobs(0);\n    }" if (parenthesized_expression "(check_jobs_at_exit != 0)" ( (binary_expression "check_jobs_at_exit != 0" identifier != number_literal) )) (compound_statement "{\n      list_all_jobs(0);\n    }" { (expression_statement "list_all_jobs(0);" (call_expression "list_all_jobs(0)" identifier (argument_list "(0)" ( number_literal ))) ;) })) (expression_statement "last_shell_builtin = exit_builtin;" (assignment_expression "last_shell_builtin = exit_builtin" identifier = identifier) ;) (expression_statement "this_shell_builtin = exit_builtin;" (assignment_expression "this_shell_builtin = exit_builtin" identifier = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (labeled_statement "LAB_000a1783:\n  if ((running_trap != 1) || (iVar5 = trap_saved_exit_value, list != (WORD_LIST *)0x0)) {\n    iVar5 = get_exitstat(list);\n  }" statement_identifier : (if_statement "if ((running_trap != 1) || (iVar5 = trap_saved_exit_value, list != (WORD_LIST *)0x0)) {\n    iVar5 = get_exitstat(list);\n  }" if (parenthesized_expression "((running_trap != 1) || (iVar5 = trap_saved_exit_value, list != (WORD_LIST *)0x0))" ( (binary_expression "(running_trap != 1) || (iVar5 = trap_saved_exit_value, list != (WORD_LIST *)0x0)" (parenthesized_expression "(running_trap != 1)" ( (binary_expression "running_trap != 1" identifier != number_literal) )) || (parenthesized_expression "(iVar5 = trap_saved_exit_value, list != (WORD_LIST *)0x0)" ( (comma_expression "iVar5 = trap_saved_exit_value, list != (WORD_LIST *)0x0" (assignment_expression "iVar5 = trap_saved_exit_value" identifier = identifier) , (binary_expression "list != (WORD_LIST *)0x0" identifier != (cast_expression "(WORD_LIST *)0x0" ( (type_descriptor "WORD_LIST *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    iVar5 = get_exitstat(list);\n  }" { (expression_statement "iVar5 = get_exitstat(list);" (assignment_expression "iVar5 = get_exitstat(list)" identifier = (call_expression "get_exitstat(list)" identifier (argument_list "(list)" ( identifier )))) ;) }))) (expression_statement "bash_logout();" (call_expression "bash_logout()" identifier (argument_list "()" ( ))) ;) (expression_statement "last_command_exit_value = iVar5;" (assignment_expression "last_command_exit_value = iVar5" identifier = identifier) ;) comment (expression_statement "jump_to_top_level(3);" (call_expression "jump_to_top_level(3)" identifier (argument_list "(3)" ( number_literal ))) ;) })))
(translation_unit "undefined4 __regparm3 FUN_000a16c0(int param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  char cVar5;\n  \n  if ((((interactive != 0) &&\n       (last_shell_builtin != logout_builtin && last_shell_builtin != exit_builtin)) &&\n      (last_shell_builtin != (code *)PTR_jobs_builtin_00149f44)) && (0 < DAT_0014a7d8)) {\n    cVar5 = '\0';\n    piVar2 = jobs;\n    do {\n      while (*piVar2 == 0) {\nLAB_000a1758:\n        piVar2 = piVar2 + 1;\n        if (piVar2 == jobs + DAT_0014a7d8) goto LAB_000a1779;\n      }\n      iVar1 = *(int *)(*piVar2 + 0xc);\n      if (iVar1 != 2) {\n        if ((cVar5 == '\0') && (check_jobs_at_exit != 0)) {\n          cVar5 = iVar1 == 1;\n        }\n        goto LAB_000a1758;\n      }\n      piVar2 = piVar2 + 1;\n      cVar5 = '\x02';\n    } while (piVar2 != jobs + DAT_0014a7d8);\nLAB_000a1779:\n    if (cVar5 == '\x02') {\n      pcVar3 = "There are stopped jobs.\n";\n    }\n    else {\n      if (cVar5 != '\x01') goto LAB_000a1783;\n      pcVar3 = "There are running jobs.\n";\n    }\n    uVar4 = dcgettext(0,pcVar3,5);\n    __fprintf_chk(*(undefined4 *)PTR_stderr_00149e54,1,uVar4);\n    if (check_jobs_at_exit != 0) {\n      list_all_jobs(0);\n    }\n    last_shell_builtin = exit_builtin;\n    this_shell_builtin = exit_builtin;\n    return 1;\n  }\nLAB_000a1783:\n  if ((running_trap != 1) || (uVar4 = trap_saved_exit_value, param_1 != 0)) {\n    uVar4 = get_exitstat(param_1);\n  }\n  bash_logout();\n  last_command_exit_value = uVar4;\n                    \n  jump_to_top_level(3);\n}\n\n" (function_definition "undefined4 __regparm3 FUN_000a16c0(int param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  char cVar5;\n  \n  if ((((interactive != 0) &&\n       (last_shell_builtin != logout_builtin && last_shell_builtin != exit_builtin)) &&\n      (last_shell_builtin != (code *)PTR_jobs_builtin_00149f44)) && (0 < DAT_0014a7d8)) {\n    cVar5 = '\0';\n    piVar2 = jobs;\n    do {\n      while (*piVar2 == 0) {\nLAB_000a1758:\n        piVar2 = piVar2 + 1;\n        if (piVar2 == jobs + DAT_0014a7d8) goto LAB_000a1779;\n      }\n      iVar1 = *(int *)(*piVar2 + 0xc);\n      if (iVar1 != 2) {\n        if ((cVar5 == '\0') && (check_jobs_at_exit != 0)) {\n          cVar5 = iVar1 == 1;\n        }\n        goto LAB_000a1758;\n      }\n      piVar2 = piVar2 + 1;\n      cVar5 = '\x02';\n    } while (piVar2 != jobs + DAT_0014a7d8);\nLAB_000a1779:\n    if (cVar5 == '\x02') {\n      pcVar3 = "There are stopped jobs.\n";\n    }\n    else {\n      if (cVar5 != '\x01') goto LAB_000a1783;\n      pcVar3 = "There are running jobs.\n";\n    }\n    uVar4 = dcgettext(0,pcVar3,5);\n    __fprintf_chk(*(undefined4 *)PTR_stderr_00149e54,1,uVar4);\n    if (check_jobs_at_exit != 0) {\n      list_all_jobs(0);\n    }\n    last_shell_builtin = exit_builtin;\n    this_shell_builtin = exit_builtin;\n    return 1;\n  }\nLAB_000a1783:\n  if ((running_trap != 1) || (uVar4 = trap_saved_exit_value, param_1 != 0)) {\n    uVar4 = get_exitstat(param_1);\n  }\n  bash_logout();\n  last_command_exit_value = uVar4;\n                    \n  jump_to_top_level(3);\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_000a16c0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  char cVar5;\n  \n  if ((((interactive != 0) &&\n       (last_shell_builtin != logout_builtin && last_shell_builtin != exit_builtin)) &&\n      (last_shell_builtin != (code *)PTR_jobs_builtin_00149f44)) && (0 < DAT_0014a7d8)) {\n    cVar5 = '\0';\n    piVar2 = jobs;\n    do {\n      while (*piVar2 == 0) {\nLAB_000a1758:\n        piVar2 = piVar2 + 1;\n        if (piVar2 == jobs + DAT_0014a7d8) goto LAB_000a1779;\n      }\n      iVar1 = *(int *)(*piVar2 + 0xc);\n      if (iVar1 != 2) {\n        if ((cVar5 == '\0') && (check_jobs_at_exit != 0)) {\n          cVar5 = iVar1 == 1;\n        }\n        goto LAB_000a1758;\n      }\n      piVar2 = piVar2 + 1;\n      cVar5 = '\x02';\n    } while (piVar2 != jobs + DAT_0014a7d8);\nLAB_000a1779:\n    if (cVar5 == '\x02') {\n      pcVar3 = "There are stopped jobs.\n";\n    }\n    else {\n      if (cVar5 != '\x01') goto LAB_000a1783;\n      pcVar3 = "There are running jobs.\n";\n    }\n    uVar4 = dcgettext(0,pcVar3,5);\n    __fprintf_chk(*(undefined4 *)PTR_stderr_00149e54,1,uVar4);\n    if (check_jobs_at_exit != 0) {\n      list_all_jobs(0);\n    }\n    last_shell_builtin = exit_builtin;\n    this_shell_builtin = exit_builtin;\n    return 1;\n  }\nLAB_000a1783:\n  if ((running_trap != 1) || (uVar4 = trap_saved_exit_value, param_1 != 0)) {\n    uVar4 = get_exitstat(param_1);\n  }\n  bash_logout();\n  last_command_exit_value = uVar4;\n                    \n  jump_to_top_level(3);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "char cVar5;" primitive_type identifier ;) (if_statement "if ((((interactive != 0) &&\n       (last_shell_builtin != logout_builtin && last_shell_builtin != exit_builtin)) &&\n      (last_shell_builtin != (code *)PTR_jobs_builtin_00149f44)) && (0 < DAT_0014a7d8)) {\n    cVar5 = '\0';\n    piVar2 = jobs;\n    do {\n      while (*piVar2 == 0) {\nLAB_000a1758:\n        piVar2 = piVar2 + 1;\n        if (piVar2 == jobs + DAT_0014a7d8) goto LAB_000a1779;\n      }\n      iVar1 = *(int *)(*piVar2 + 0xc);\n      if (iVar1 != 2) {\n        if ((cVar5 == '\0') && (check_jobs_at_exit != 0)) {\n          cVar5 = iVar1 == 1;\n        }\n        goto LAB_000a1758;\n      }\n      piVar2 = piVar2 + 1;\n      cVar5 = '\x02';\n    } while (piVar2 != jobs + DAT_0014a7d8);\nLAB_000a1779:\n    if (cVar5 == '\x02') {\n      pcVar3 = "There are stopped jobs.\n";\n    }\n    else {\n      if (cVar5 != '\x01') goto LAB_000a1783;\n      pcVar3 = "There are running jobs.\n";\n    }\n    uVar4 = dcgettext(0,pcVar3,5);\n    __fprintf_chk(*(undefined4 *)PTR_stderr_00149e54,1,uVar4);\n    if (check_jobs_at_exit != 0) {\n      list_all_jobs(0);\n    }\n    last_shell_builtin = exit_builtin;\n    this_shell_builtin = exit_builtin;\n    return 1;\n  }" if (parenthesized_expression "((((interactive != 0) &&\n       (last_shell_builtin != logout_builtin && last_shell_builtin != exit_builtin)) &&\n      (last_shell_builtin != (code *)PTR_jobs_builtin_00149f44)) && (0 < DAT_0014a7d8))" ( (binary_expression "(((interactive != 0) &&\n       (last_shell_builtin != logout_builtin && last_shell_builtin != exit_builtin)) &&\n      (last_shell_builtin != (code *)PTR_jobs_builtin_00149f44)) && (0 < DAT_0014a7d8)" (parenthesized_expression "(((interactive != 0) &&\n       (last_shell_builtin != logout_builtin && last_shell_builtin != exit_builtin)) &&\n      (last_shell_builtin != (code *)PTR_jobs_builtin_00149f44))" ( (binary_expression "((interactive != 0) &&\n       (last_shell_builtin != logout_builtin && last_shell_builtin != exit_builtin)) &&\n      (last_shell_builtin != (code *)PTR_jobs_builtin_00149f44)" (parenthesized_expression "((interactive != 0) &&\n       (last_shell_builtin != logout_builtin && last_shell_builtin != exit_builtin))" ( (binary_expression "(interactive != 0) &&\n       (last_shell_builtin != logout_builtin && last_shell_builtin != exit_builtin)" (parenthesized_expression "(interactive != 0)" ( (binary_expression "interactive != 0" identifier != number_literal) )) && (parenthesized_expression "(last_shell_builtin != logout_builtin && last_shell_builtin != exit_builtin)" ( (binary_expression "last_shell_builtin != logout_builtin && last_shell_builtin != exit_builtin" (binary_expression "last_shell_builtin != logout_builtin" identifier != identifier) && (binary_expression "last_shell_builtin != exit_builtin" identifier != identifier)) ))) )) && (parenthesized_expression "(last_shell_builtin != (code *)PTR_jobs_builtin_00149f44)" ( (binary_expression "last_shell_builtin != (code *)PTR_jobs_builtin_00149f44" identifier != (cast_expression "(code *)PTR_jobs_builtin_00149f44" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) )) && (parenthesized_expression "(0 < DAT_0014a7d8)" ( (binary_expression "0 < DAT_0014a7d8" number_literal < identifier) ))) )) (compound_statement "{\n    cVar5 = '\0';\n    piVar2 = jobs;\n    do {\n      while (*piVar2 == 0) {\nLAB_000a1758:\n        piVar2 = piVar2 + 1;\n        if (piVar2 == jobs + DAT_0014a7d8) goto LAB_000a1779;\n      }\n      iVar1 = *(int *)(*piVar2 + 0xc);\n      if (iVar1 != 2) {\n        if ((cVar5 == '\0') && (check_jobs_at_exit != 0)) {\n          cVar5 = iVar1 == 1;\n        }\n        goto LAB_000a1758;\n      }\n      piVar2 = piVar2 + 1;\n      cVar5 = '\x02';\n    } while (piVar2 != jobs + DAT_0014a7d8);\nLAB_000a1779:\n    if (cVar5 == '\x02') {\n      pcVar3 = "There are stopped jobs.\n";\n    }\n    else {\n      if (cVar5 != '\x01') goto LAB_000a1783;\n      pcVar3 = "There are running jobs.\n";\n    }\n    uVar4 = dcgettext(0,pcVar3,5);\n    __fprintf_chk(*(undefined4 *)PTR_stderr_00149e54,1,uVar4);\n    if (check_jobs_at_exit != 0) {\n      list_all_jobs(0);\n    }\n    last_shell_builtin = exit_builtin;\n    this_shell_builtin = exit_builtin;\n    return 1;\n  }" { (expression_statement "cVar5 = '\0';" (assignment_expression "cVar5 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "piVar2 = jobs;" (assignment_expression "piVar2 = jobs" identifier = identifier) ;) (do_statement "do {\n      while (*piVar2 == 0) {\nLAB_000a1758:\n        piVar2 = piVar2 + 1;\n        if (piVar2 == jobs + DAT_0014a7d8) goto LAB_000a1779;\n      }\n      iVar1 = *(int *)(*piVar2 + 0xc);\n      if (iVar1 != 2) {\n        if ((cVar5 == '\0') && (check_jobs_at_exit != 0)) {\n          cVar5 = iVar1 == 1;\n        }\n        goto LAB_000a1758;\n      }\n      piVar2 = piVar2 + 1;\n      cVar5 = '\x02';\n    } while (piVar2 != jobs + DAT_0014a7d8);" do (compound_statement "{\n      while (*piVar2 == 0) {\nLAB_000a1758:\n        piVar2 = piVar2 + 1;\n        if (piVar2 == jobs + DAT_0014a7d8) goto LAB_000a1779;\n      }\n      iVar1 = *(int *)(*piVar2 + 0xc);\n      if (iVar1 != 2) {\n        if ((cVar5 == '\0') && (check_jobs_at_exit != 0)) {\n          cVar5 = iVar1 == 1;\n        }\n        goto LAB_000a1758;\n      }\n      piVar2 = piVar2 + 1;\n      cVar5 = '\x02';\n    }" { (while_statement "while (*piVar2 == 0) {\nLAB_000a1758:\n        piVar2 = piVar2 + 1;\n        if (piVar2 == jobs + DAT_0014a7d8) goto LAB_000a1779;\n      }" while (parenthesized_expression "(*piVar2 == 0)" ( (binary_expression "*piVar2 == 0" (pointer_expression "*piVar2" * identifier) == number_literal) )) (compound_statement "{\nLAB_000a1758:\n        piVar2 = piVar2 + 1;\n        if (piVar2 == jobs + DAT_0014a7d8) goto LAB_000a1779;\n      }" { (labeled_statement "LAB_000a1758:\n        piVar2 = piVar2 + 1;" statement_identifier : (expression_statement "piVar2 = piVar2 + 1;" (assignment_expression "piVar2 = piVar2 + 1" identifier = (binary_expression "piVar2 + 1" identifier + number_literal)) ;)) (if_statement "if (piVar2 == jobs + DAT_0014a7d8) goto LAB_000a1779;" if (parenthesized_expression "(piVar2 == jobs + DAT_0014a7d8)" ( (binary_expression "piVar2 == jobs + DAT_0014a7d8" identifier == (binary_expression "jobs + DAT_0014a7d8" identifier + identifier)) )) (goto_statement "goto LAB_000a1779;" goto statement_identifier ;)) })) (expression_statement "iVar1 = *(int *)(*piVar2 + 0xc);" (assignment_expression "iVar1 = *(int *)(*piVar2 + 0xc)" identifier = (pointer_expression "*(int *)(*piVar2 + 0xc)" * (cast_expression "(int *)(*piVar2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar2 + 0xc)" ( (binary_expression "*piVar2 + 0xc" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) ;) (if_statement "if (iVar1 != 2) {\n        if ((cVar5 == '\0') && (check_jobs_at_exit != 0)) {\n          cVar5 = iVar1 == 1;\n        }\n        goto LAB_000a1758;\n      }" if (parenthesized_expression "(iVar1 != 2)" ( (binary_expression "iVar1 != 2" identifier != number_literal) )) (compound_statement "{\n        if ((cVar5 == '\0') && (check_jobs_at_exit != 0)) {\n          cVar5 = iVar1 == 1;\n        }\n        goto LAB_000a1758;\n      }" { (if_statement "if ((cVar5 == '\0') && (check_jobs_at_exit != 0)) {\n          cVar5 = iVar1 == 1;\n        }" if (parenthesized_expression "((cVar5 == '\0') && (check_jobs_at_exit != 0))" ( (binary_expression "(cVar5 == '\0') && (check_jobs_at_exit != 0)" (parenthesized_expression "(cVar5 == '\0')" ( (binary_expression "cVar5 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(check_jobs_at_exit != 0)" ( (binary_expression "check_jobs_at_exit != 0" identifier != number_literal) ))) )) (compound_statement "{\n          cVar5 = iVar1 == 1;\n        }" { (expression_statement "cVar5 = iVar1 == 1;" (assignment_expression "cVar5 = iVar1 == 1" identifier = (binary_expression "iVar1 == 1" identifier == number_literal)) ;) })) (goto_statement "goto LAB_000a1758;" goto statement_identifier ;) })) (expression_statement "piVar2 = piVar2 + 1;" (assignment_expression "piVar2 = piVar2 + 1" identifier = (binary_expression "piVar2 + 1" identifier + number_literal)) ;) (expression_statement "cVar5 = '\x02';" (assignment_expression "cVar5 = '\x02'" identifier = (char_literal "'\x02'" ' escape_sequence ')) ;) }) while (parenthesized_expression "(piVar2 != jobs + DAT_0014a7d8)" ( (binary_expression "piVar2 != jobs + DAT_0014a7d8" identifier != (binary_expression "jobs + DAT_0014a7d8" identifier + identifier)) )) ;) (labeled_statement "LAB_000a1779:\n    if (cVar5 == '\x02') {\n      pcVar3 = "There are stopped jobs.\n";\n    }\n    else {\n      if (cVar5 != '\x01') goto LAB_000a1783;\n      pcVar3 = "There are running jobs.\n";\n    }" statement_identifier : (if_statement "if (cVar5 == '\x02') {\n      pcVar3 = "There are stopped jobs.\n";\n    }\n    else {\n      if (cVar5 != '\x01') goto LAB_000a1783;\n      pcVar3 = "There are running jobs.\n";\n    }" if (parenthesized_expression "(cVar5 == '\x02')" ( (binary_expression "cVar5 == '\x02'" identifier == (char_literal "'\x02'" ' escape_sequence ')) )) (compound_statement "{\n      pcVar3 = "There are stopped jobs.\n";\n    }" { (expression_statement "pcVar3 = "There are stopped jobs.\n";" (assignment_expression "pcVar3 = "There are stopped jobs.\n"" identifier = (string_literal ""There are stopped jobs.\n"" " string_content escape_sequence ")) ;) }) (else_clause "else {\n      if (cVar5 != '\x01') goto LAB_000a1783;\n      pcVar3 = "There are running jobs.\n";\n    }" else (compound_statement "{\n      if (cVar5 != '\x01') goto LAB_000a1783;\n      pcVar3 = "There are running jobs.\n";\n    }" { (if_statement "if (cVar5 != '\x01') goto LAB_000a1783;" if (parenthesized_expression "(cVar5 != '\x01')" ( (binary_expression "cVar5 != '\x01'" identifier != (char_literal "'\x01'" ' escape_sequence ')) )) (goto_statement "goto LAB_000a1783;" goto statement_identifier ;)) (expression_statement "pcVar3 = "There are running jobs.\n";" (assignment_expression "pcVar3 = "There are running jobs.\n"" identifier = (string_literal ""There are running jobs.\n"" " string_content escape_sequence ")) ;) })))) (expression_statement "uVar4 = dcgettext(0,pcVar3,5);" (assignment_expression "uVar4 = dcgettext(0,pcVar3,5)" identifier = (call_expression "dcgettext(0,pcVar3,5)" identifier (argument_list "(0,pcVar3,5)" ( number_literal , identifier , number_literal )))) ;) (expression_statement "__fprintf_chk(*(undefined4 *)PTR_stderr_00149e54,1,uVar4);" (call_expression "__fprintf_chk(*(undefined4 *)PTR_stderr_00149e54,1,uVar4)" identifier (argument_list "(*(undefined4 *)PTR_stderr_00149e54,1,uVar4)" ( (pointer_expression "*(undefined4 *)PTR_stderr_00149e54" * (cast_expression "(undefined4 *)PTR_stderr_00149e54" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , number_literal , identifier ))) ;) (if_statement "if (check_jobs_at_exit != 0) {\n      list_all_jobs(0);\n    }" if (parenthesized_expression "(check_jobs_at_exit != 0)" ( (binary_expression "check_jobs_at_exit != 0" identifier != number_literal) )) (compound_statement "{\n      list_all_jobs(0);\n    }" { (expression_statement "list_all_jobs(0);" (call_expression "list_all_jobs(0)" identifier (argument_list "(0)" ( number_literal ))) ;) })) (expression_statement "last_shell_builtin = exit_builtin;" (assignment_expression "last_shell_builtin = exit_builtin" identifier = identifier) ;) (expression_statement "this_shell_builtin = exit_builtin;" (assignment_expression "this_shell_builtin = exit_builtin" identifier = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (labeled_statement "LAB_000a1783:\n  if ((running_trap != 1) || (uVar4 = trap_saved_exit_value, param_1 != 0)) {\n    uVar4 = get_exitstat(param_1);\n  }" statement_identifier : (if_statement "if ((running_trap != 1) || (uVar4 = trap_saved_exit_value, param_1 != 0)) {\n    uVar4 = get_exitstat(param_1);\n  }" if (parenthesized_expression "((running_trap != 1) || (uVar4 = trap_saved_exit_value, param_1 != 0))" ( (binary_expression "(running_trap != 1) || (uVar4 = trap_saved_exit_value, param_1 != 0)" (parenthesized_expression "(running_trap != 1)" ( (binary_expression "running_trap != 1" identifier != number_literal) )) || (parenthesized_expression "(uVar4 = trap_saved_exit_value, param_1 != 0)" ( (comma_expression "uVar4 = trap_saved_exit_value, param_1 != 0" (assignment_expression "uVar4 = trap_saved_exit_value" identifier = identifier) , (binary_expression "param_1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    uVar4 = get_exitstat(param_1);\n  }" { (expression_statement "uVar4 = get_exitstat(param_1);" (assignment_expression "uVar4 = get_exitstat(param_1)" identifier = (call_expression "get_exitstat(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) }))) (expression_statement "bash_logout();" (call_expression "bash_logout()" identifier (argument_list "()" ( ))) ;) (expression_statement "last_command_exit_value = uVar4;" (assignment_expression "last_command_exit_value = uVar4" identifier = identifier) ;) (expression_statement "jump_to_top_level(3);" (call_expression "jump_to_top_level(3)" identifier (argument_list "(3)" ( number_literal ))) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression (binary_expression IDENT != IDENT) && (binary_expression IDENT != IDENT)) ))) )) && (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ))) )) && (parenthesized_expression ( (binary_expression LIT < IDENT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (binary_expression IDENT + IDENT)) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT == LIT)) ;) })) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (char_literal ' escape_sequence ')) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (binary_expression IDENT + IDENT)) )) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content escape_sequence ")) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (string_literal " string_content escape_sequence ")) ;) })))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) , LIT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (return_statement return LIT ;) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression IDENT != LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) }))) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) })))
(function_definition "undefined4 __regparm3 FUN_000a16c0(int param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  char cVar5;\n  \n  if ((((interactive != 0) &&\n       (last_shell_builtin != logout_builtin && last_shell_builtin != exit_builtin)) &&\n      (last_shell_builtin != (code *)PTR_jobs_builtin_00149f44)) && (0 < DAT_0014a7d8)) {\n    cVar5 = '\0';\n    piVar2 = jobs;\n    do {\n      while (*piVar2 == 0) {\nLAB_000a1758:\n        piVar2 = piVar2 + 1;\n        if (piVar2 == jobs + DAT_0014a7d8) goto LAB_000a1779;\n      }\n      iVar1 = *(int *)(*piVar2 + 0xc);\n      if (iVar1 != 2) {\n        if ((cVar5 == '\0') && (check_jobs_at_exit != 0)) {\n          cVar5 = iVar1 == 1;\n        }\n        goto LAB_000a1758;\n      }\n      piVar2 = piVar2 + 1;\n      cVar5 = '\x02';\n    } while (piVar2 != jobs + DAT_0014a7d8);\nLAB_000a1779:\n    if (cVar5 == '\x02') {\n      pcVar3 = "There are stopped jobs.\n";\n    }\n    else {\n      if (cVar5 != '\x01') goto LAB_000a1783;\n      pcVar3 = "There are running jobs.\n";\n    }\n    uVar4 = dcgettext(0,pcVar3,5);\n    __fprintf_chk(*(undefined4 *)PTR_stderr_00149e54,1,uVar4);\n    if (check_jobs_at_exit != 0) {\n      list_all_jobs(0);\n    }\n    last_shell_builtin = exit_builtin;\n    this_shell_builtin = exit_builtin;\n    return 1;\n  }\nLAB_000a1783:\n  if ((running_trap != 1) || (uVar4 = trap_saved_exit_value, param_1 != 0)) {\n    uVar4 = get_exitstat(param_1);\n  }\n  bash_logout();\n  last_command_exit_value = uVar4;\n                    \n  jump_to_top_level(3);\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000a16c0(int param_1)" (identifier "FUN_000a16c0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  char cVar5;\n  \n  if ((((interactive != 0) &&\n       (last_shell_builtin != logout_builtin && last_shell_builtin != exit_builtin)) &&\n      (last_shell_builtin != (code *)PTR_jobs_builtin_00149f44)) && (0 < DAT_0014a7d8)) {\n    cVar5 = '\0';\n    piVar2 = jobs;\n    do {\n      while (*piVar2 == 0) {\nLAB_000a1758:\n        piVar2 = piVar2 + 1;\n        if (piVar2 == jobs + DAT_0014a7d8) goto LAB_000a1779;\n      }\n      iVar1 = *(int *)(*piVar2 + 0xc);\n      if (iVar1 != 2) {\n        if ((cVar5 == '\0') && (check_jobs_at_exit != 0)) {\n          cVar5 = iVar1 == 1;\n        }\n        goto LAB_000a1758;\n      }\n      piVar2 = piVar2 + 1;\n      cVar5 = '\x02';\n    } while (piVar2 != jobs + DAT_0014a7d8);\nLAB_000a1779:\n    if (cVar5 == '\x02') {\n      pcVar3 = "There are stopped jobs.\n";\n    }\n    else {\n      if (cVar5 != '\x01') goto LAB_000a1783;\n      pcVar3 = "There are running jobs.\n";\n    }\n    uVar4 = dcgettext(0,pcVar3,5);\n    __fprintf_chk(*(undefined4 *)PTR_stderr_00149e54,1,uVar4);\n    if (check_jobs_at_exit != 0) {\n      list_all_jobs(0);\n    }\n    last_shell_builtin = exit_builtin;\n    this_shell_builtin = exit_builtin;\n    return 1;\n  }\nLAB_000a1783:\n  if ((running_trap != 1) || (uVar4 = trap_saved_exit_value, param_1 != 0)) {\n    uVar4 = get_exitstat(param_1);\n  }\n  bash_logout();\n  last_command_exit_value = uVar4;\n                    \n  jump_to_top_level(3);\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "char cVar5;" (primitive_type "char") (identifier "cVar5") (; ";")) (if_statement "if ((((interactive != 0) &&\n       (last_shell_builtin != logout_builtin && last_shell_builtin != exit_builtin)) &&\n      (last_shell_builtin != (code *)PTR_jobs_builtin_00149f44)) && (0 < DAT_0014a7d8)) {\n    cVar5 = '\0';\n    piVar2 = jobs;\n    do {\n      while (*piVar2 == 0) {\nLAB_000a1758:\n        piVar2 = piVar2 + 1;\n        if (piVar2 == jobs + DAT_0014a7d8) goto LAB_000a1779;\n      }\n      iVar1 = *(int *)(*piVar2 + 0xc);\n      if (iVar1 != 2) {\n        if ((cVar5 == '\0') && (check_jobs_at_exit != 0)) {\n          cVar5 = iVar1 == 1;\n        }\n        goto LAB_000a1758;\n      }\n      piVar2 = piVar2 + 1;\n      cVar5 = '\x02';\n    } while (piVar2 != jobs + DAT_0014a7d8);\nLAB_000a1779:\n    if (cVar5 == '\x02') {\n      pcVar3 = "There are stopped jobs.\n";\n    }\n    else {\n      if (cVar5 != '\x01') goto LAB_000a1783;\n      pcVar3 = "There are running jobs.\n";\n    }\n    uVar4 = dcgettext(0,pcVar3,5);\n    __fprintf_chk(*(undefined4 *)PTR_stderr_00149e54,1,uVar4);\n    if (check_jobs_at_exit != 0) {\n      list_all_jobs(0);\n    }\n    last_shell_builtin = exit_builtin;\n    this_shell_builtin = exit_builtin;\n    return 1;\n  }" (if "if") (parenthesized_expression "((((interactive != 0) &&\n       (last_shell_builtin != logout_builtin && last_shell_builtin != exit_builtin)) &&\n      (last_shell_builtin != (code *)PTR_jobs_builtin_00149f44)) && (0 < DAT_0014a7d8))" (( "(") (binary_expression "(((interactive != 0) &&\n       (last_shell_builtin != logout_builtin && last_shell_builtin != exit_builtin)) &&\n      (last_shell_builtin != (code *)PTR_jobs_builtin_00149f44)) && (0 < DAT_0014a7d8)" (parenthesized_expression "(((interactive != 0) &&\n       (last_shell_builtin != logout_builtin && last_shell_builtin != exit_builtin)) &&\n      (last_shell_builtin != (code *)PTR_jobs_builtin_00149f44))" (( "(") (binary_expression "((interactive != 0) &&\n       (last_shell_builtin != logout_builtin && last_shell_builtin != exit_builtin)) &&\n      (last_shell_builtin != (code *)PTR_jobs_builtin_00149f44)" (parenthesized_expression "((interactive != 0) &&\n       (last_shell_builtin != logout_builtin && last_shell_builtin != exit_builtin))" (( "(") (binary_expression "(interactive != 0) &&\n       (last_shell_builtin != logout_builtin && last_shell_builtin != exit_builtin)" (parenthesized_expression "(interactive != 0)" (( "(") (binary_expression "interactive != 0" (identifier "interactive") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(last_shell_builtin != logout_builtin && last_shell_builtin != exit_builtin)" (( "(") (binary_expression "last_shell_builtin != logout_builtin && last_shell_builtin != exit_builtin" (binary_expression "last_shell_builtin != logout_builtin" (identifier "last_shell_builtin") (!= "!=") (identifier "logout_builtin")) (&& "&&") (binary_expression "last_shell_builtin != exit_builtin" (identifier "last_shell_builtin") (!= "!=") (identifier "exit_builtin"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(last_shell_builtin != (code *)PTR_jobs_builtin_00149f44)" (( "(") (binary_expression "last_shell_builtin != (code *)PTR_jobs_builtin_00149f44" (identifier "last_shell_builtin") (!= "!=") (cast_expression "(code *)PTR_jobs_builtin_00149f44" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_jobs_builtin_00149f44"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(0 < DAT_0014a7d8)" (( "(") (binary_expression "0 < DAT_0014a7d8" (number_literal "0") (< "<") (identifier "DAT_0014a7d8")) () ")"))) () ")")) (compound_statement "{\n    cVar5 = '\0';\n    piVar2 = jobs;\n    do {\n      while (*piVar2 == 0) {\nLAB_000a1758:\n        piVar2 = piVar2 + 1;\n        if (piVar2 == jobs + DAT_0014a7d8) goto LAB_000a1779;\n      }\n      iVar1 = *(int *)(*piVar2 + 0xc);\n      if (iVar1 != 2) {\n        if ((cVar5 == '\0') && (check_jobs_at_exit != 0)) {\n          cVar5 = iVar1 == 1;\n        }\n        goto LAB_000a1758;\n      }\n      piVar2 = piVar2 + 1;\n      cVar5 = '\x02';\n    } while (piVar2 != jobs + DAT_0014a7d8);\nLAB_000a1779:\n    if (cVar5 == '\x02') {\n      pcVar3 = "There are stopped jobs.\n";\n    }\n    else {\n      if (cVar5 != '\x01') goto LAB_000a1783;\n      pcVar3 = "There are running jobs.\n";\n    }\n    uVar4 = dcgettext(0,pcVar3,5);\n    __fprintf_chk(*(undefined4 *)PTR_stderr_00149e54,1,uVar4);\n    if (check_jobs_at_exit != 0) {\n      list_all_jobs(0);\n    }\n    last_shell_builtin = exit_builtin;\n    this_shell_builtin = exit_builtin;\n    return 1;\n  }" ({ "{") (expression_statement "cVar5 = '\0';" (assignment_expression "cVar5 = '\0'" (identifier "cVar5") (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "piVar2 = jobs;" (assignment_expression "piVar2 = jobs" (identifier "piVar2") (= "=") (identifier "jobs")) (; ";")) (do_statement "do {\n      while (*piVar2 == 0) {\nLAB_000a1758:\n        piVar2 = piVar2 + 1;\n        if (piVar2 == jobs + DAT_0014a7d8) goto LAB_000a1779;\n      }\n      iVar1 = *(int *)(*piVar2 + 0xc);\n      if (iVar1 != 2) {\n        if ((cVar5 == '\0') && (check_jobs_at_exit != 0)) {\n          cVar5 = iVar1 == 1;\n        }\n        goto LAB_000a1758;\n      }\n      piVar2 = piVar2 + 1;\n      cVar5 = '\x02';\n    } while (piVar2 != jobs + DAT_0014a7d8);" (do "do") (compound_statement "{\n      while (*piVar2 == 0) {\nLAB_000a1758:\n        piVar2 = piVar2 + 1;\n        if (piVar2 == jobs + DAT_0014a7d8) goto LAB_000a1779;\n      }\n      iVar1 = *(int *)(*piVar2 + 0xc);\n      if (iVar1 != 2) {\n        if ((cVar5 == '\0') && (check_jobs_at_exit != 0)) {\n          cVar5 = iVar1 == 1;\n        }\n        goto LAB_000a1758;\n      }\n      piVar2 = piVar2 + 1;\n      cVar5 = '\x02';\n    }" ({ "{") (while_statement "while (*piVar2 == 0) {\nLAB_000a1758:\n        piVar2 = piVar2 + 1;\n        if (piVar2 == jobs + DAT_0014a7d8) goto LAB_000a1779;\n      }" (while "while") (parenthesized_expression "(*piVar2 == 0)" (( "(") (binary_expression "*piVar2 == 0" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_000a1758:\n        piVar2 = piVar2 + 1;\n        if (piVar2 == jobs + DAT_0014a7d8) goto LAB_000a1779;\n      }" ({ "{") (labeled_statement "LAB_000a1758:\n        piVar2 = piVar2 + 1;" (statement_identifier "LAB_000a1758") (: ":") (expression_statement "piVar2 = piVar2 + 1;" (assignment_expression "piVar2 = piVar2 + 1" (identifier "piVar2") (= "=") (binary_expression "piVar2 + 1" (identifier "piVar2") (+ "+") (number_literal "1"))) (; ";"))) (if_statement "if (piVar2 == jobs + DAT_0014a7d8) goto LAB_000a1779;" (if "if") (parenthesized_expression "(piVar2 == jobs + DAT_0014a7d8)" (( "(") (binary_expression "piVar2 == jobs + DAT_0014a7d8" (identifier "piVar2") (== "==") (binary_expression "jobs + DAT_0014a7d8" (identifier "jobs") (+ "+") (identifier "DAT_0014a7d8"))) () ")")) (goto_statement "goto LAB_000a1779;" (goto "goto") (statement_identifier "LAB_000a1779") (; ";"))) (} "}"))) (expression_statement "iVar1 = *(int *)(*piVar2 + 0xc);" (assignment_expression "iVar1 = *(int *)(*piVar2 + 0xc)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(*piVar2 + 0xc)" (* "*") (cast_expression "(int *)(*piVar2 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar2 + 0xc)" (( "(") (binary_expression "*piVar2 + 0xc" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (if_statement "if (iVar1 != 2) {\n        if ((cVar5 == '\0') && (check_jobs_at_exit != 0)) {\n          cVar5 = iVar1 == 1;\n        }\n        goto LAB_000a1758;\n      }" (if "if") (parenthesized_expression "(iVar1 != 2)" (( "(") (binary_expression "iVar1 != 2" (identifier "iVar1") (!= "!=") (number_literal "2")) () ")")) (compound_statement "{\n        if ((cVar5 == '\0') && (check_jobs_at_exit != 0)) {\n          cVar5 = iVar1 == 1;\n        }\n        goto LAB_000a1758;\n      }" ({ "{") (if_statement "if ((cVar5 == '\0') && (check_jobs_at_exit != 0)) {\n          cVar5 = iVar1 == 1;\n        }" (if "if") (parenthesized_expression "((cVar5 == '\0') && (check_jobs_at_exit != 0))" (( "(") (binary_expression "(cVar5 == '\0') && (check_jobs_at_exit != 0)" (parenthesized_expression "(cVar5 == '\0')" (( "(") (binary_expression "cVar5 == '\0'" (identifier "cVar5") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(check_jobs_at_exit != 0)" (( "(") (binary_expression "check_jobs_at_exit != 0" (identifier "check_jobs_at_exit") (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n          cVar5 = iVar1 == 1;\n        }" ({ "{") (expression_statement "cVar5 = iVar1 == 1;" (assignment_expression "cVar5 = iVar1 == 1" (identifier "cVar5") (= "=") (binary_expression "iVar1 == 1" (identifier "iVar1") (== "==") (number_literal "1"))) (; ";")) (} "}"))) (goto_statement "goto LAB_000a1758;" (goto "goto") (statement_identifier "LAB_000a1758") (; ";")) (} "}"))) (expression_statement "piVar2 = piVar2 + 1;" (assignment_expression "piVar2 = piVar2 + 1" (identifier "piVar2") (= "=") (binary_expression "piVar2 + 1" (identifier "piVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "cVar5 = '\x02';" (assignment_expression "cVar5 = '\x02'" (identifier "cVar5") (= "=") (char_literal "'\x02'" (' "'") (escape_sequence "\x02") (' "'"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(piVar2 != jobs + DAT_0014a7d8)" (( "(") (binary_expression "piVar2 != jobs + DAT_0014a7d8" (identifier "piVar2") (!= "!=") (binary_expression "jobs + DAT_0014a7d8" (identifier "jobs") (+ "+") (identifier "DAT_0014a7d8"))) () ")")) (; ";")) (labeled_statement "LAB_000a1779:\n    if (cVar5 == '\x02') {\n      pcVar3 = "There are stopped jobs.\n";\n    }\n    else {\n      if (cVar5 != '\x01') goto LAB_000a1783;\n      pcVar3 = "There are running jobs.\n";\n    }" (statement_identifier "LAB_000a1779") (: ":") (if_statement "if (cVar5 == '\x02') {\n      pcVar3 = "There are stopped jobs.\n";\n    }\n    else {\n      if (cVar5 != '\x01') goto LAB_000a1783;\n      pcVar3 = "There are running jobs.\n";\n    }" (if "if") (parenthesized_expression "(cVar5 == '\x02')" (( "(") (binary_expression "cVar5 == '\x02'" (identifier "cVar5") (== "==") (char_literal "'\x02'" (' "'") (escape_sequence "\x02") (' "'"))) () ")")) (compound_statement "{\n      pcVar3 = "There are stopped jobs.\n";\n    }" ({ "{") (expression_statement "pcVar3 = "There are stopped jobs.\n";" (assignment_expression "pcVar3 = "There are stopped jobs.\n"" (identifier "pcVar3") (= "=") (string_literal ""There are stopped jobs.\n"" (" """) (string_content "There are stopped jobs.") (escape_sequence "\n") (" """))) (; ";")) (} "}")) (else_clause "else {\n      if (cVar5 != '\x01') goto LAB_000a1783;\n      pcVar3 = "There are running jobs.\n";\n    }" (else "else") (compound_statement "{\n      if (cVar5 != '\x01') goto LAB_000a1783;\n      pcVar3 = "There are running jobs.\n";\n    }" ({ "{") (if_statement "if (cVar5 != '\x01') goto LAB_000a1783;" (if "if") (parenthesized_expression "(cVar5 != '\x01')" (( "(") (binary_expression "cVar5 != '\x01'" (identifier "cVar5") (!= "!=") (char_literal "'\x01'" (' "'") (escape_sequence "\x01") (' "'"))) () ")")) (goto_statement "goto LAB_000a1783;" (goto "goto") (statement_identifier "LAB_000a1783") (; ";"))) (expression_statement "pcVar3 = "There are running jobs.\n";" (assignment_expression "pcVar3 = "There are running jobs.\n"" (identifier "pcVar3") (= "=") (string_literal ""There are running jobs.\n"" (" """) (string_content "There are running jobs.") (escape_sequence "\n") (" """))) (; ";")) (} "}"))))) (expression_statement "uVar4 = dcgettext(0,pcVar3,5);" (assignment_expression "uVar4 = dcgettext(0,pcVar3,5)" (identifier "uVar4") (= "=") (call_expression "dcgettext(0,pcVar3,5)" (identifier "dcgettext") (argument_list "(0,pcVar3,5)" (( "(") (number_literal "0") (, ",") (identifier "pcVar3") (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "__fprintf_chk(*(undefined4 *)PTR_stderr_00149e54,1,uVar4);" (call_expression "__fprintf_chk(*(undefined4 *)PTR_stderr_00149e54,1,uVar4)" (identifier "__fprintf_chk") (argument_list "(*(undefined4 *)PTR_stderr_00149e54,1,uVar4)" (( "(") (pointer_expression "*(undefined4 *)PTR_stderr_00149e54" (* "*") (cast_expression "(undefined4 *)PTR_stderr_00149e54" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_stderr_00149e54"))) (, ",") (number_literal "1") (, ",") (identifier "uVar4") () ")"))) (; ";")) (if_statement "if (check_jobs_at_exit != 0) {\n      list_all_jobs(0);\n    }" (if "if") (parenthesized_expression "(check_jobs_at_exit != 0)" (( "(") (binary_expression "check_jobs_at_exit != 0" (identifier "check_jobs_at_exit") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      list_all_jobs(0);\n    }" ({ "{") (expression_statement "list_all_jobs(0);" (call_expression "list_all_jobs(0)" (identifier "list_all_jobs") (argument_list "(0)" (( "(") (number_literal "0") () ")"))) (; ";")) (} "}"))) (expression_statement "last_shell_builtin = exit_builtin;" (assignment_expression "last_shell_builtin = exit_builtin" (identifier "last_shell_builtin") (= "=") (identifier "exit_builtin")) (; ";")) (expression_statement "this_shell_builtin = exit_builtin;" (assignment_expression "this_shell_builtin = exit_builtin" (identifier "this_shell_builtin") (= "=") (identifier "exit_builtin")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (labeled_statement "LAB_000a1783:\n  if ((running_trap != 1) || (uVar4 = trap_saved_exit_value, param_1 != 0)) {\n    uVar4 = get_exitstat(param_1);\n  }" (statement_identifier "LAB_000a1783") (: ":") (if_statement "if ((running_trap != 1) || (uVar4 = trap_saved_exit_value, param_1 != 0)) {\n    uVar4 = get_exitstat(param_1);\n  }" (if "if") (parenthesized_expression "((running_trap != 1) || (uVar4 = trap_saved_exit_value, param_1 != 0))" (( "(") (binary_expression "(running_trap != 1) || (uVar4 = trap_saved_exit_value, param_1 != 0)" (parenthesized_expression "(running_trap != 1)" (( "(") (binary_expression "running_trap != 1" (identifier "running_trap") (!= "!=") (number_literal "1")) () ")")) (|| "||") (parenthesized_expression "(uVar4 = trap_saved_exit_value, param_1 != 0)" (( "(") (comma_expression "uVar4 = trap_saved_exit_value, param_1 != 0" (assignment_expression "uVar4 = trap_saved_exit_value" (identifier "uVar4") (= "=") (identifier "trap_saved_exit_value")) (, ",") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    uVar4 = get_exitstat(param_1);\n  }" ({ "{") (expression_statement "uVar4 = get_exitstat(param_1);" (assignment_expression "uVar4 = get_exitstat(param_1)" (identifier "uVar4") (= "=") (call_expression "get_exitstat(param_1)" (identifier "get_exitstat") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (} "}")))) (expression_statement "bash_logout();" (call_expression "bash_logout()" (identifier "bash_logout") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "last_command_exit_value = uVar4;" (assignment_expression "last_command_exit_value = uVar4" (identifier "last_command_exit_value") (= "=") (identifier "uVar4")) (; ";")) (expression_statement "jump_to_top_level(3);" (call_expression "jump_to_top_level(3)" (identifier "jump_to_top_level") (argument_list "(3)" (( "(") (number_literal "3") () ")"))) (; ";")) (} "}")))

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

int __regparm3 function_1(type_1 *var_16)

{
  type_2 var_7;
  type_3 **var_5;
  char *pcVar3;
  type_4 uVar4;
  int iVar5;
  char var_9;
  
  if ((((var_1 != 0) &&
       (var_2 != var_3 && var_2 != var_4)) &&
      (var_2 != (type_5 *)PTR_jobs_builtin_00149f44)) && (0 < js.j_jobslots)
     ) {
    var_9 = '\0';
    var_5 = var_6;
    do {
      while (*var_5 == (type_3 *)0x0) {
LAB_000a1758:
        var_5 = var_5 + 1;
        if (var_5 == var_6 + js.j_jobslots) goto LAB_000a1779;
      }
      var_7 = (*var_5)->state;
      if (var_7 != var_8) {
        if ((var_9 == '\0') && (var_10 != 0)) {
          var_9 = var_7 == var_11;
        }
        goto LAB_000a1758;
      }
      var_5 = var_5 + 1;
      var_9 = '\x02';
    } while (var_5 != var_6 + js.j_jobslots);
LAB_000a1779:
    if (var_9 == '\x02') {
      pcVar3 = "There are stopped jobs.\n";
    }
    else {
      if (var_9 != '\x01') goto LAB_000a1783;
      pcVar3 = "There are running jobs.\n";
    }
    uVar4 = var_12(0,pcVar3,5);
    var_13(*(type_4 *)PTR_stderr_00149e54,1,uVar4);
    if (var_10 != 0) {
      var_14(0);
    }
    var_2 = var_4;
    this_shell_builtin = var_4;
    return 1;
  }
LAB_000a1783:
  if ((var_15 != 1) || (iVar5 = trap_saved_exit_value, var_16 != (type_1 *)0x0)) {
    iVar5 = var_17(var_16);
  }
  var_18();
  last_command_exit_value = iVar5;
                    /* WARNING: Subroutine does not return */
  var_19(3);
}


(translation_unit (function_definition type: (type_identifier) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (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: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (binary_expression left: (identifier) right: (identifier)))))) right: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))))) right: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (char_literal (escape_sequence)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (while_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) body: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) consequence: (goto_statement label: (statement_identifier))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (char_literal (escape_sequence))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content) (escape_sequence))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content) (escape_sequence)))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (identifier) (number_literal))))) (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) (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (return_statement (number_literal)))) (labeled_statement label: (statement_identifier) (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: (identifier)) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier)))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal)))))))

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

undefined4 __regparm3 MASKED(int param_1)

{
  int iVar1;
  int *piVar2;
  char *pcVar3;
  undefined4 uVar4;
  char cVar5;
  
  if ((((interactive != 0) &&
       (last_shell_builtin != logout_builtin && last_shell_builtin != exit_builtin)) &&
      (last_shell_builtin != (code *)PTR_jobs_builtin_00149f44)) && (0 < DAT_0014a7d8)) {
    cVar5 = '\0';
    piVar2 = jobs;
    do {
      while (*piVar2 == 0) {
LAB_000a1758:
        piVar2 = piVar2 + 1;
        if (piVar2 == jobs + DAT_0014a7d8) goto LAB_000a1779;
      }
      iVar1 = *(int *)(*piVar2 + 0xc);
      if (iVar1 != 2) {
        if ((cVar5 == '\0') && (check_jobs_at_exit != 0)) {
          cVar5 = iVar1 == 1;
        }
        goto LAB_000a1758;
      }
      piVar2 = piVar2 + 1;
      cVar5 = '\x02';
    } while (piVar2 != jobs + DAT_0014a7d8);
LAB_000a1779:
    if (cVar5 == '\x02') {
      pcVar3 = "There are stopped jobs.\n";
    }
    else {
      if (cVar5 != '\x01') goto LAB_000a1783;
      pcVar3 = "There are running jobs.\n";
    }
    uVar4 = dcgettext(0,pcVar3,5);
    __fprintf_chk(*(undefined4 *)PTR_stderr_00149e54,1,uVar4);
    if (check_jobs_at_exit != 0) {
      list_all_jobs(0);
    }
    last_shell_builtin = exit_builtin;
    this_shell_builtin = exit_builtin;
    return 1;
  }
LAB_000a1783:
  if ((running_trap != 1) || (uVar4 = trap_saved_exit_value, param_1 != 0)) {
    uVar4 = get_exitstat(param_1);
  }
  bash_logout();
  last_command_exit_value = uVar4;
                    /* WARNING: Subroutine does not return */
  jump_to_top_level(3);
}

