
int set_job_control(int arg)

{
  undefined *puVar1;
  undefined *puVar2;
  int iVar3;
  int iVar4;
  
  puVar2 = PTR_terminal_pgrp_001451d0;
  puVar1 = PTR_job_control_001448a8;
  iVar3 = *(int *)PTR_terminal_pgrp_001451d0;
  iVar4 = *(int *)PTR_job_control_001448a8;
  *(int *)PTR_job_control_001448a8 = arg;
  if (iVar3 == -1) {
    iVar3 = (*(code *)PTR_tcgetpgrp_00146334)(*(undefined4 *)PTR_shell_tty_00145198);
    arg = *(int *)puVar1;
    *(int *)puVar2 = iVar3;
  }
  *(uint *)PTR_running_in_background_001446f0 = (uint)(*(int *)PTR_shell_pgrp_001448ac != iVar3);
  if ((iVar4 != arg) && (arg != 0)) {
    *(undefined4 *)PTR_pipeline_pgrp_00145180 = 0;
  }
  return iVar4;
}



int set_job_control(int param_1)

{
  undefined *puVar1;
  undefined *puVar2;
  int iVar3;
  int iVar4;
  
  puVar2 = PTR_terminal_pgrp_001451d0;
  puVar1 = PTR_job_control_001448a8;
  iVar3 = *(int *)PTR_terminal_pgrp_001451d0;
  iVar4 = *(int *)PTR_job_control_001448a8;
  *(int *)PTR_job_control_001448a8 = param_1;
  if (iVar3 == -1) {
    iVar3 = (*(code *)PTR_tcgetpgrp_00146334)(*(undefined4 *)PTR_shell_tty_00145198);
    param_1 = *(int *)puVar1;
    *(int *)puVar2 = iVar3;
  }
  *(uint *)PTR_running_in_background_001446f0 = (uint)(*(int *)PTR_shell_pgrp_001448ac != iVar3);
  if ((iVar4 != param_1) && (param_1 != 0)) {
    *(undefined4 *)PTR_pipeline_pgrp_00145180 = 0;
  }
  return iVar4;
}


lui gp,0xe
addiu gp,gp,-0xeac
addu gp,gp,t9
addiu sp,sp,-0x28
li v1,-0x1
sw s2,0x20(sp)
sw s0,0x18(sp)
lw s2,-0x7370(gp)
lw s0,-0x7c98(gp)
sw gp,0x10(sp)
sw s1,0x1c(sp)
sw ra,0x24(sp)
lw v0,0x0(s2)
lw s1,0x0(s0)
beq v0,v1,0x0006d474
_sw a0,0x0(s0)
lw v1,-0x7c94(gp)
lw v1,0x0(v1)
xor v1,v1,v0
lw v0,-0x7e50(gp)
sltu v1,zero,v1
beq s1,a0,0x0006d458
_sw v1,0x0(v0)
beq a0,zero,0x0006d45c
_lw ra,0x24(sp)
lw v0,-0x73c0(gp)
sw zero,0x0(v0)
lw ra,0x24(sp)
or v0,s1,zero
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
lw v0,-0x73a8(gp)
lw t9,-0x620c(gp)
jalr t9
_lw a0,0x0(v0)
lw gp,0x10(sp)
lw a0,0x0(s0)
b 0x0006d42c
_sw v0,0x0(s2)
(translation_unit "int set_job_control(int param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  \n  puVar2 = PTR_terminal_pgrp_001451d0;\n  puVar1 = PTR_job_control_001448a8;\n  iVar3 = *(int *)PTR_terminal_pgrp_001451d0;\n  iVar4 = *(int *)PTR_job_control_001448a8;\n  *(int *)PTR_job_control_001448a8 = param_1;\n  if (iVar3 == -1) {\n    iVar3 = (*(code *)PTR_tcgetpgrp_00146334)(*(undefined4 *)PTR_shell_tty_00145198);\n    param_1 = *(int *)puVar1;\n    *(int *)puVar2 = iVar3;\n  }\n  *(uint *)PTR_running_in_background_001446f0 = (uint)(*(int *)PTR_shell_pgrp_001448ac != iVar3);\n  if ((iVar4 != param_1) && (param_1 != 0)) {\n    *(undefined4 *)PTR_pipeline_pgrp_00145180 = 0;\n  }\n  return iVar4;\n}\n\n" (function_definition "int set_job_control(int param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  \n  puVar2 = PTR_terminal_pgrp_001451d0;\n  puVar1 = PTR_job_control_001448a8;\n  iVar3 = *(int *)PTR_terminal_pgrp_001451d0;\n  iVar4 = *(int *)PTR_job_control_001448a8;\n  *(int *)PTR_job_control_001448a8 = param_1;\n  if (iVar3 == -1) {\n    iVar3 = (*(code *)PTR_tcgetpgrp_00146334)(*(undefined4 *)PTR_shell_tty_00145198);\n    param_1 = *(int *)puVar1;\n    *(int *)puVar2 = iVar3;\n  }\n  *(uint *)PTR_running_in_background_001446f0 = (uint)(*(int *)PTR_shell_pgrp_001448ac != iVar3);\n  if ((iVar4 != param_1) && (param_1 != 0)) {\n    *(undefined4 *)PTR_pipeline_pgrp_00145180 = 0;\n  }\n  return iVar4;\n}" primitive_type (function_declarator "set_job_control(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  \n  puVar2 = PTR_terminal_pgrp_001451d0;\n  puVar1 = PTR_job_control_001448a8;\n  iVar3 = *(int *)PTR_terminal_pgrp_001451d0;\n  iVar4 = *(int *)PTR_job_control_001448a8;\n  *(int *)PTR_job_control_001448a8 = param_1;\n  if (iVar3 == -1) {\n    iVar3 = (*(code *)PTR_tcgetpgrp_00146334)(*(undefined4 *)PTR_shell_tty_00145198);\n    param_1 = *(int *)puVar1;\n    *(int *)puVar2 = iVar3;\n  }\n  *(uint *)PTR_running_in_background_001446f0 = (uint)(*(int *)PTR_shell_pgrp_001448ac != iVar3);\n  if ((iVar4 != param_1) && (param_1 != 0)) {\n    *(undefined4 *)PTR_pipeline_pgrp_00145180 = 0;\n  }\n  return iVar4;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "puVar2 = PTR_terminal_pgrp_001451d0;" (assignment_expression "puVar2 = PTR_terminal_pgrp_001451d0" identifier = identifier) ;) (expression_statement "puVar1 = PTR_job_control_001448a8;" (assignment_expression "puVar1 = PTR_job_control_001448a8" identifier = identifier) ;) (expression_statement "iVar3 = *(int *)PTR_terminal_pgrp_001451d0;" (assignment_expression "iVar3 = *(int *)PTR_terminal_pgrp_001451d0" identifier = (pointer_expression "*(int *)PTR_terminal_pgrp_001451d0" * (cast_expression "(int *)PTR_terminal_pgrp_001451d0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar4 = *(int *)PTR_job_control_001448a8;" (assignment_expression "iVar4 = *(int *)PTR_job_control_001448a8" identifier = (pointer_expression "*(int *)PTR_job_control_001448a8" * (cast_expression "(int *)PTR_job_control_001448a8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*(int *)PTR_job_control_001448a8 = param_1;" (assignment_expression "*(int *)PTR_job_control_001448a8 = param_1" (pointer_expression "*(int *)PTR_job_control_001448a8" * (cast_expression "(int *)PTR_job_control_001448a8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (if_statement "if (iVar3 == -1) {\n    iVar3 = (*(code *)PTR_tcgetpgrp_00146334)(*(undefined4 *)PTR_shell_tty_00145198);\n    param_1 = *(int *)puVar1;\n    *(int *)puVar2 = iVar3;\n  }" if (parenthesized_expression "(iVar3 == -1)" ( (binary_expression "iVar3 == -1" identifier == number_literal) )) (compound_statement "{\n    iVar3 = (*(code *)PTR_tcgetpgrp_00146334)(*(undefined4 *)PTR_shell_tty_00145198);\n    param_1 = *(int *)puVar1;\n    *(int *)puVar2 = iVar3;\n  }" { (expression_statement "iVar3 = (*(code *)PTR_tcgetpgrp_00146334)(*(undefined4 *)PTR_shell_tty_00145198);" (assignment_expression "iVar3 = (*(code *)PTR_tcgetpgrp_00146334)(*(undefined4 *)PTR_shell_tty_00145198)" identifier = (call_expression "(*(code *)PTR_tcgetpgrp_00146334)(*(undefined4 *)PTR_shell_tty_00145198)" (parenthesized_expression "(*(code *)PTR_tcgetpgrp_00146334)" ( (pointer_expression "*(code *)PTR_tcgetpgrp_00146334" * (cast_expression "(code *)PTR_tcgetpgrp_00146334" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)PTR_shell_tty_00145198)" ( (pointer_expression "*(undefined4 *)PTR_shell_tty_00145198" * (cast_expression "(undefined4 *)PTR_shell_tty_00145198" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )))) ;) (expression_statement "param_1 = *(int *)puVar1;" (assignment_expression "param_1 = *(int *)puVar1" identifier = (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*(int *)puVar2 = iVar3;" (assignment_expression "*(int *)puVar2 = iVar3" (pointer_expression "*(int *)puVar2" * (cast_expression "(int *)puVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) })) (expression_statement "*(uint *)PTR_running_in_background_001446f0 = (uint)(*(int *)PTR_shell_pgrp_001448ac != iVar3);" (assignment_expression "*(uint *)PTR_running_in_background_001446f0 = (uint)(*(int *)PTR_shell_pgrp_001448ac != iVar3)" (pointer_expression "*(uint *)PTR_running_in_background_001446f0" * (cast_expression "(uint *)PTR_running_in_background_001446f0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (call_expression "(uint)(*(int *)PTR_shell_pgrp_001448ac != iVar3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)PTR_shell_pgrp_001448ac != iVar3)" ( (binary_expression "*(int *)PTR_shell_pgrp_001448ac != iVar3" (pointer_expression "*(int *)PTR_shell_pgrp_001448ac" * (cast_expression "(int *)PTR_shell_pgrp_001448ac" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) != identifier) )))) ;) (if_statement "if ((iVar4 != param_1) && (param_1 != 0)) {\n    *(undefined4 *)PTR_pipeline_pgrp_00145180 = 0;\n  }" if (parenthesized_expression "((iVar4 != param_1) && (param_1 != 0))" ( (binary_expression "(iVar4 != param_1) && (param_1 != 0)" (parenthesized_expression "(iVar4 != param_1)" ( (binary_expression "iVar4 != param_1" identifier != identifier) )) && (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) ))) )) (compound_statement "{\n    *(undefined4 *)PTR_pipeline_pgrp_00145180 = 0;\n  }" { (expression_statement "*(undefined4 *)PTR_pipeline_pgrp_00145180 = 0;" (assignment_expression "*(undefined4 *)PTR_pipeline_pgrp_00145180 = 0" (pointer_expression "*(undefined4 *)PTR_pipeline_pgrp_00145180" * (cast_expression "(undefined4 *)PTR_pipeline_pgrp_00145180" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) })) (return_statement "return iVar4;" return identifier ;) })))
(translation_unit "int set_job_control(int arg)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  \n  puVar2 = PTR_terminal_pgrp_001451d0;\n  puVar1 = PTR_job_control_001448a8;\n  iVar3 = *(int *)PTR_terminal_pgrp_001451d0;\n  iVar4 = *(int *)PTR_job_control_001448a8;\n  *(int *)PTR_job_control_001448a8 = arg;\n  if (iVar3 == -1) {\n    iVar3 = (*(code *)PTR_tcgetpgrp_00146334)(*(undefined4 *)PTR_shell_tty_00145198);\n    arg = *(int *)puVar1;\n    *(int *)puVar2 = iVar3;\n  }\n  *(uint *)PTR_running_in_background_001446f0 = (uint)(*(int *)PTR_shell_pgrp_001448ac != iVar3);\n  if ((iVar4 != arg) && (arg != 0)) {\n    *(undefined4 *)PTR_pipeline_pgrp_00145180 = 0;\n  }\n  return iVar4;\n}\n\n" (function_definition "int set_job_control(int arg)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  \n  puVar2 = PTR_terminal_pgrp_001451d0;\n  puVar1 = PTR_job_control_001448a8;\n  iVar3 = *(int *)PTR_terminal_pgrp_001451d0;\n  iVar4 = *(int *)PTR_job_control_001448a8;\n  *(int *)PTR_job_control_001448a8 = arg;\n  if (iVar3 == -1) {\n    iVar3 = (*(code *)PTR_tcgetpgrp_00146334)(*(undefined4 *)PTR_shell_tty_00145198);\n    arg = *(int *)puVar1;\n    *(int *)puVar2 = iVar3;\n  }\n  *(uint *)PTR_running_in_background_001446f0 = (uint)(*(int *)PTR_shell_pgrp_001448ac != iVar3);\n  if ((iVar4 != arg) && (arg != 0)) {\n    *(undefined4 *)PTR_pipeline_pgrp_00145180 = 0;\n  }\n  return iVar4;\n}" primitive_type (function_declarator "set_job_control(int arg)" identifier (parameter_list "(int arg)" ( (parameter_declaration "int arg" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  \n  puVar2 = PTR_terminal_pgrp_001451d0;\n  puVar1 = PTR_job_control_001448a8;\n  iVar3 = *(int *)PTR_terminal_pgrp_001451d0;\n  iVar4 = *(int *)PTR_job_control_001448a8;\n  *(int *)PTR_job_control_001448a8 = arg;\n  if (iVar3 == -1) {\n    iVar3 = (*(code *)PTR_tcgetpgrp_00146334)(*(undefined4 *)PTR_shell_tty_00145198);\n    arg = *(int *)puVar1;\n    *(int *)puVar2 = iVar3;\n  }\n  *(uint *)PTR_running_in_background_001446f0 = (uint)(*(int *)PTR_shell_pgrp_001448ac != iVar3);\n  if ((iVar4 != arg) && (arg != 0)) {\n    *(undefined4 *)PTR_pipeline_pgrp_00145180 = 0;\n  }\n  return iVar4;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "puVar2 = PTR_terminal_pgrp_001451d0;" (assignment_expression "puVar2 = PTR_terminal_pgrp_001451d0" identifier = identifier) ;) (expression_statement "puVar1 = PTR_job_control_001448a8;" (assignment_expression "puVar1 = PTR_job_control_001448a8" identifier = identifier) ;) (expression_statement "iVar3 = *(int *)PTR_terminal_pgrp_001451d0;" (assignment_expression "iVar3 = *(int *)PTR_terminal_pgrp_001451d0" identifier = (pointer_expression "*(int *)PTR_terminal_pgrp_001451d0" * (cast_expression "(int *)PTR_terminal_pgrp_001451d0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar4 = *(int *)PTR_job_control_001448a8;" (assignment_expression "iVar4 = *(int *)PTR_job_control_001448a8" identifier = (pointer_expression "*(int *)PTR_job_control_001448a8" * (cast_expression "(int *)PTR_job_control_001448a8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*(int *)PTR_job_control_001448a8 = arg;" (assignment_expression "*(int *)PTR_job_control_001448a8 = arg" (pointer_expression "*(int *)PTR_job_control_001448a8" * (cast_expression "(int *)PTR_job_control_001448a8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (if_statement "if (iVar3 == -1) {\n    iVar3 = (*(code *)PTR_tcgetpgrp_00146334)(*(undefined4 *)PTR_shell_tty_00145198);\n    arg = *(int *)puVar1;\n    *(int *)puVar2 = iVar3;\n  }" if (parenthesized_expression "(iVar3 == -1)" ( (binary_expression "iVar3 == -1" identifier == number_literal) )) (compound_statement "{\n    iVar3 = (*(code *)PTR_tcgetpgrp_00146334)(*(undefined4 *)PTR_shell_tty_00145198);\n    arg = *(int *)puVar1;\n    *(int *)puVar2 = iVar3;\n  }" { (expression_statement "iVar3 = (*(code *)PTR_tcgetpgrp_00146334)(*(undefined4 *)PTR_shell_tty_00145198);" (assignment_expression "iVar3 = (*(code *)PTR_tcgetpgrp_00146334)(*(undefined4 *)PTR_shell_tty_00145198)" identifier = (call_expression "(*(code *)PTR_tcgetpgrp_00146334)(*(undefined4 *)PTR_shell_tty_00145198)" (parenthesized_expression "(*(code *)PTR_tcgetpgrp_00146334)" ( (pointer_expression "*(code *)PTR_tcgetpgrp_00146334" * (cast_expression "(code *)PTR_tcgetpgrp_00146334" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)PTR_shell_tty_00145198)" ( (pointer_expression "*(undefined4 *)PTR_shell_tty_00145198" * (cast_expression "(undefined4 *)PTR_shell_tty_00145198" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )))) ;) (expression_statement "arg = *(int *)puVar1;" (assignment_expression "arg = *(int *)puVar1" identifier = (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*(int *)puVar2 = iVar3;" (assignment_expression "*(int *)puVar2 = iVar3" (pointer_expression "*(int *)puVar2" * (cast_expression "(int *)puVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) })) (expression_statement "*(uint *)PTR_running_in_background_001446f0 = (uint)(*(int *)PTR_shell_pgrp_001448ac != iVar3);" (assignment_expression "*(uint *)PTR_running_in_background_001446f0 = (uint)(*(int *)PTR_shell_pgrp_001448ac != iVar3)" (pointer_expression "*(uint *)PTR_running_in_background_001446f0" * (cast_expression "(uint *)PTR_running_in_background_001446f0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (call_expression "(uint)(*(int *)PTR_shell_pgrp_001448ac != iVar3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)PTR_shell_pgrp_001448ac != iVar3)" ( (binary_expression "*(int *)PTR_shell_pgrp_001448ac != iVar3" (pointer_expression "*(int *)PTR_shell_pgrp_001448ac" * (cast_expression "(int *)PTR_shell_pgrp_001448ac" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) != identifier) )))) ;) (if_statement "if ((iVar4 != arg) && (arg != 0)) {\n    *(undefined4 *)PTR_pipeline_pgrp_00145180 = 0;\n  }" if (parenthesized_expression "((iVar4 != arg) && (arg != 0))" ( (binary_expression "(iVar4 != arg) && (arg != 0)" (parenthesized_expression "(iVar4 != arg)" ( (binary_expression "iVar4 != arg" identifier != identifier) )) && (parenthesized_expression "(arg != 0)" ( (binary_expression "arg != 0" identifier != number_literal) ))) )) (compound_statement "{\n    *(undefined4 *)PTR_pipeline_pgrp_00145180 = 0;\n  }" { (expression_statement "*(undefined4 *)PTR_pipeline_pgrp_00145180 = 0;" (assignment_expression "*(undefined4 *)PTR_pipeline_pgrp_00145180 = 0" (pointer_expression "*(undefined4 *)PTR_pipeline_pgrp_00145180" * (cast_expression "(undefined4 *)PTR_pipeline_pgrp_00145180" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) })) (return_statement "return iVar4;" return identifier ;) })))
(translation_unit "int set_job_control(int param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  \n  puVar2 = PTR_terminal_pgrp_001451d0;\n  puVar1 = PTR_job_control_001448a8;\n  iVar3 = *(int *)PTR_terminal_pgrp_001451d0;\n  iVar4 = *(int *)PTR_job_control_001448a8;\n  *(int *)PTR_job_control_001448a8 = param_1;\n  if (iVar3 == -1) {\n    iVar3 = (*(code *)PTR_tcgetpgrp_00146334)(*(undefined4 *)PTR_shell_tty_00145198);\n    param_1 = *(int *)puVar1;\n    *(int *)puVar2 = iVar3;\n  }\n  *(uint *)PTR_running_in_background_001446f0 = (uint)(*(int *)PTR_shell_pgrp_001448ac != iVar3);\n  if ((iVar4 != param_1) && (param_1 != 0)) {\n    *(undefined4 *)PTR_pipeline_pgrp_00145180 = 0;\n  }\n  return iVar4;\n}\n\n" (function_definition "int set_job_control(int param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  \n  puVar2 = PTR_terminal_pgrp_001451d0;\n  puVar1 = PTR_job_control_001448a8;\n  iVar3 = *(int *)PTR_terminal_pgrp_001451d0;\n  iVar4 = *(int *)PTR_job_control_001448a8;\n  *(int *)PTR_job_control_001448a8 = param_1;\n  if (iVar3 == -1) {\n    iVar3 = (*(code *)PTR_tcgetpgrp_00146334)(*(undefined4 *)PTR_shell_tty_00145198);\n    param_1 = *(int *)puVar1;\n    *(int *)puVar2 = iVar3;\n  }\n  *(uint *)PTR_running_in_background_001446f0 = (uint)(*(int *)PTR_shell_pgrp_001448ac != iVar3);\n  if ((iVar4 != param_1) && (param_1 != 0)) {\n    *(undefined4 *)PTR_pipeline_pgrp_00145180 = 0;\n  }\n  return iVar4;\n}" primitive_type (function_declarator "set_job_control(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  \n  puVar2 = PTR_terminal_pgrp_001451d0;\n  puVar1 = PTR_job_control_001448a8;\n  iVar3 = *(int *)PTR_terminal_pgrp_001451d0;\n  iVar4 = *(int *)PTR_job_control_001448a8;\n  *(int *)PTR_job_control_001448a8 = param_1;\n  if (iVar3 == -1) {\n    iVar3 = (*(code *)PTR_tcgetpgrp_00146334)(*(undefined4 *)PTR_shell_tty_00145198);\n    param_1 = *(int *)puVar1;\n    *(int *)puVar2 = iVar3;\n  }\n  *(uint *)PTR_running_in_background_001446f0 = (uint)(*(int *)PTR_shell_pgrp_001448ac != iVar3);\n  if ((iVar4 != param_1) && (param_1 != 0)) {\n    *(undefined4 *)PTR_pipeline_pgrp_00145180 = 0;\n  }\n  return iVar4;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "puVar2 = PTR_terminal_pgrp_001451d0;" (assignment_expression "puVar2 = PTR_terminal_pgrp_001451d0" identifier = identifier) ;) (expression_statement "puVar1 = PTR_job_control_001448a8;" (assignment_expression "puVar1 = PTR_job_control_001448a8" identifier = identifier) ;) (expression_statement "iVar3 = *(int *)PTR_terminal_pgrp_001451d0;" (assignment_expression "iVar3 = *(int *)PTR_terminal_pgrp_001451d0" identifier = (pointer_expression "*(int *)PTR_terminal_pgrp_001451d0" * (cast_expression "(int *)PTR_terminal_pgrp_001451d0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar4 = *(int *)PTR_job_control_001448a8;" (assignment_expression "iVar4 = *(int *)PTR_job_control_001448a8" identifier = (pointer_expression "*(int *)PTR_job_control_001448a8" * (cast_expression "(int *)PTR_job_control_001448a8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*(int *)PTR_job_control_001448a8 = param_1;" (assignment_expression "*(int *)PTR_job_control_001448a8 = param_1" (pointer_expression "*(int *)PTR_job_control_001448a8" * (cast_expression "(int *)PTR_job_control_001448a8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (if_statement "if (iVar3 == -1) {\n    iVar3 = (*(code *)PTR_tcgetpgrp_00146334)(*(undefined4 *)PTR_shell_tty_00145198);\n    param_1 = *(int *)puVar1;\n    *(int *)puVar2 = iVar3;\n  }" if (parenthesized_expression "(iVar3 == -1)" ( (binary_expression "iVar3 == -1" identifier == number_literal) )) (compound_statement "{\n    iVar3 = (*(code *)PTR_tcgetpgrp_00146334)(*(undefined4 *)PTR_shell_tty_00145198);\n    param_1 = *(int *)puVar1;\n    *(int *)puVar2 = iVar3;\n  }" { (expression_statement "iVar3 = (*(code *)PTR_tcgetpgrp_00146334)(*(undefined4 *)PTR_shell_tty_00145198);" (assignment_expression "iVar3 = (*(code *)PTR_tcgetpgrp_00146334)(*(undefined4 *)PTR_shell_tty_00145198)" identifier = (call_expression "(*(code *)PTR_tcgetpgrp_00146334)(*(undefined4 *)PTR_shell_tty_00145198)" (parenthesized_expression "(*(code *)PTR_tcgetpgrp_00146334)" ( (pointer_expression "*(code *)PTR_tcgetpgrp_00146334" * (cast_expression "(code *)PTR_tcgetpgrp_00146334" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)PTR_shell_tty_00145198)" ( (pointer_expression "*(undefined4 *)PTR_shell_tty_00145198" * (cast_expression "(undefined4 *)PTR_shell_tty_00145198" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )))) ;) (expression_statement "param_1 = *(int *)puVar1;" (assignment_expression "param_1 = *(int *)puVar1" identifier = (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*(int *)puVar2 = iVar3;" (assignment_expression "*(int *)puVar2 = iVar3" (pointer_expression "*(int *)puVar2" * (cast_expression "(int *)puVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) })) (expression_statement "*(uint *)PTR_running_in_background_001446f0 = (uint)(*(int *)PTR_shell_pgrp_001448ac != iVar3);" (assignment_expression "*(uint *)PTR_running_in_background_001446f0 = (uint)(*(int *)PTR_shell_pgrp_001448ac != iVar3)" (pointer_expression "*(uint *)PTR_running_in_background_001446f0" * (cast_expression "(uint *)PTR_running_in_background_001446f0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (call_expression "(uint)(*(int *)PTR_shell_pgrp_001448ac != iVar3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)PTR_shell_pgrp_001448ac != iVar3)" ( (binary_expression "*(int *)PTR_shell_pgrp_001448ac != iVar3" (pointer_expression "*(int *)PTR_shell_pgrp_001448ac" * (cast_expression "(int *)PTR_shell_pgrp_001448ac" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) != identifier) )))) ;) (if_statement "if ((iVar4 != param_1) && (param_1 != 0)) {\n    *(undefined4 *)PTR_pipeline_pgrp_00145180 = 0;\n  }" if (parenthesized_expression "((iVar4 != param_1) && (param_1 != 0))" ( (binary_expression "(iVar4 != param_1) && (param_1 != 0)" (parenthesized_expression "(iVar4 != param_1)" ( (binary_expression "iVar4 != param_1" identifier != identifier) )) && (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) ))) )) (compound_statement "{\n    *(undefined4 *)PTR_pipeline_pgrp_00145180 = 0;\n  }" { (expression_statement "*(undefined4 *)PTR_pipeline_pgrp_00145180 = 0;" (assignment_expression "*(undefined4 *)PTR_pipeline_pgrp_00145180 = 0" (pointer_expression "*(undefined4 *)PTR_pipeline_pgrp_00145180" * (cast_expression "(undefined4 *)PTR_pipeline_pgrp_00145180" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) })) (return_statement "return iVar4;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = IDENT) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) != IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != IDENT) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = LIT) ;) })) (return_statement return IDENT ;) })))
(function_definition "int set_job_control(int param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  \n  puVar2 = PTR_terminal_pgrp_001451d0;\n  puVar1 = PTR_job_control_001448a8;\n  iVar3 = *(int *)PTR_terminal_pgrp_001451d0;\n  iVar4 = *(int *)PTR_job_control_001448a8;\n  *(int *)PTR_job_control_001448a8 = param_1;\n  if (iVar3 == -1) {\n    iVar3 = (*(code *)PTR_tcgetpgrp_00146334)(*(undefined4 *)PTR_shell_tty_00145198);\n    param_1 = *(int *)puVar1;\n    *(int *)puVar2 = iVar3;\n  }\n  *(uint *)PTR_running_in_background_001446f0 = (uint)(*(int *)PTR_shell_pgrp_001448ac != iVar3);\n  if ((iVar4 != param_1) && (param_1 != 0)) {\n    *(undefined4 *)PTR_pipeline_pgrp_00145180 = 0;\n  }\n  return iVar4;\n}" (primitive_type "int") (function_declarator "set_job_control(int param_1)" (identifier "set_job_control") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  \n  puVar2 = PTR_terminal_pgrp_001451d0;\n  puVar1 = PTR_job_control_001448a8;\n  iVar3 = *(int *)PTR_terminal_pgrp_001451d0;\n  iVar4 = *(int *)PTR_job_control_001448a8;\n  *(int *)PTR_job_control_001448a8 = param_1;\n  if (iVar3 == -1) {\n    iVar3 = (*(code *)PTR_tcgetpgrp_00146334)(*(undefined4 *)PTR_shell_tty_00145198);\n    param_1 = *(int *)puVar1;\n    *(int *)puVar2 = iVar3;\n  }\n  *(uint *)PTR_running_in_background_001446f0 = (uint)(*(int *)PTR_shell_pgrp_001448ac != iVar3);\n  if ((iVar4 != param_1) && (param_1 != 0)) {\n    *(undefined4 *)PTR_pipeline_pgrp_00145180 = 0;\n  }\n  return iVar4;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (expression_statement "puVar2 = PTR_terminal_pgrp_001451d0;" (assignment_expression "puVar2 = PTR_terminal_pgrp_001451d0" (identifier "puVar2") (= "=") (identifier "PTR_terminal_pgrp_001451d0")) (; ";")) (expression_statement "puVar1 = PTR_job_control_001448a8;" (assignment_expression "puVar1 = PTR_job_control_001448a8" (identifier "puVar1") (= "=") (identifier "PTR_job_control_001448a8")) (; ";")) (expression_statement "iVar3 = *(int *)PTR_terminal_pgrp_001451d0;" (assignment_expression "iVar3 = *(int *)PTR_terminal_pgrp_001451d0" (identifier "iVar3") (= "=") (pointer_expression "*(int *)PTR_terminal_pgrp_001451d0" (* "*") (cast_expression "(int *)PTR_terminal_pgrp_001451d0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_terminal_pgrp_001451d0")))) (; ";")) (expression_statement "iVar4 = *(int *)PTR_job_control_001448a8;" (assignment_expression "iVar4 = *(int *)PTR_job_control_001448a8" (identifier "iVar4") (= "=") (pointer_expression "*(int *)PTR_job_control_001448a8" (* "*") (cast_expression "(int *)PTR_job_control_001448a8" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_job_control_001448a8")))) (; ";")) (expression_statement "*(int *)PTR_job_control_001448a8 = param_1;" (assignment_expression "*(int *)PTR_job_control_001448a8 = param_1" (pointer_expression "*(int *)PTR_job_control_001448a8" (* "*") (cast_expression "(int *)PTR_job_control_001448a8" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_job_control_001448a8"))) (= "=") (identifier "param_1")) (; ";")) (if_statement "if (iVar3 == -1) {\n    iVar3 = (*(code *)PTR_tcgetpgrp_00146334)(*(undefined4 *)PTR_shell_tty_00145198);\n    param_1 = *(int *)puVar1;\n    *(int *)puVar2 = iVar3;\n  }" (if "if") (parenthesized_expression "(iVar3 == -1)" (( "(") (binary_expression "iVar3 == -1" (identifier "iVar3") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n    iVar3 = (*(code *)PTR_tcgetpgrp_00146334)(*(undefined4 *)PTR_shell_tty_00145198);\n    param_1 = *(int *)puVar1;\n    *(int *)puVar2 = iVar3;\n  }" ({ "{") (expression_statement "iVar3 = (*(code *)PTR_tcgetpgrp_00146334)(*(undefined4 *)PTR_shell_tty_00145198);" (assignment_expression "iVar3 = (*(code *)PTR_tcgetpgrp_00146334)(*(undefined4 *)PTR_shell_tty_00145198)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_tcgetpgrp_00146334)(*(undefined4 *)PTR_shell_tty_00145198)" (parenthesized_expression "(*(code *)PTR_tcgetpgrp_00146334)" (( "(") (pointer_expression "*(code *)PTR_tcgetpgrp_00146334" (* "*") (cast_expression "(code *)PTR_tcgetpgrp_00146334" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_tcgetpgrp_00146334"))) () ")")) (argument_list "(*(undefined4 *)PTR_shell_tty_00145198)" (( "(") (pointer_expression "*(undefined4 *)PTR_shell_tty_00145198" (* "*") (cast_expression "(undefined4 *)PTR_shell_tty_00145198" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_shell_tty_00145198"))) () ")")))) (; ";")) (expression_statement "param_1 = *(int *)puVar1;" (assignment_expression "param_1 = *(int *)puVar1" (identifier "param_1") (= "=") (pointer_expression "*(int *)puVar1" (* "*") (cast_expression "(int *)puVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1")))) (; ";")) (expression_statement "*(int *)puVar2 = iVar3;" (assignment_expression "*(int *)puVar2 = iVar3" (pointer_expression "*(int *)puVar2" (* "*") (cast_expression "(int *)puVar2" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar2"))) (= "=") (identifier "iVar3")) (; ";")) (} "}"))) (expression_statement "*(uint *)PTR_running_in_background_001446f0 = (uint)(*(int *)PTR_shell_pgrp_001448ac != iVar3);" (assignment_expression "*(uint *)PTR_running_in_background_001446f0 = (uint)(*(int *)PTR_shell_pgrp_001448ac != iVar3)" (pointer_expression "*(uint *)PTR_running_in_background_001446f0" (* "*") (cast_expression "(uint *)PTR_running_in_background_001446f0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_running_in_background_001446f0"))) (= "=") (call_expression "(uint)(*(int *)PTR_shell_pgrp_001448ac != iVar3)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(*(int *)PTR_shell_pgrp_001448ac != iVar3)" (( "(") (binary_expression "*(int *)PTR_shell_pgrp_001448ac != iVar3" (pointer_expression "*(int *)PTR_shell_pgrp_001448ac" (* "*") (cast_expression "(int *)PTR_shell_pgrp_001448ac" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_shell_pgrp_001448ac"))) (!= "!=") (identifier "iVar3")) () ")")))) (; ";")) (if_statement "if ((iVar4 != param_1) && (param_1 != 0)) {\n    *(undefined4 *)PTR_pipeline_pgrp_00145180 = 0;\n  }" (if "if") (parenthesized_expression "((iVar4 != param_1) && (param_1 != 0))" (( "(") (binary_expression "(iVar4 != param_1) && (param_1 != 0)" (parenthesized_expression "(iVar4 != param_1)" (( "(") (binary_expression "iVar4 != param_1" (identifier "iVar4") (!= "!=") (identifier "param_1")) () ")")) (&& "&&") (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    *(undefined4 *)PTR_pipeline_pgrp_00145180 = 0;\n  }" ({ "{") (expression_statement "*(undefined4 *)PTR_pipeline_pgrp_00145180 = 0;" (assignment_expression "*(undefined4 *)PTR_pipeline_pgrp_00145180 = 0" (pointer_expression "*(undefined4 *)PTR_pipeline_pgrp_00145180" (* "*") (cast_expression "(undefined4 *)PTR_pipeline_pgrp_00145180" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_pipeline_pgrp_00145180"))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (return_statement "return iVar4;" (return "return") (identifier "iVar4") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal))))) (return_statement (identifier)))))

int MASKED(int param_1)

{
  undefined *puVar1;
  undefined *puVar2;
  int iVar3;
  int iVar4;
  
  puVar2 = PTR_terminal_pgrp_001451d0;
  puVar1 = PTR_job_control_001448a8;
  iVar3 = *(int *)PTR_terminal_pgrp_001451d0;
  iVar4 = *(int *)PTR_job_control_001448a8;
  *(int *)PTR_job_control_001448a8 = param_1;
  if (iVar3 == -1) {
    iVar3 = (*(code *)PTR_tcgetpgrp_00146334)(*(undefined4 *)PTR_shell_tty_00145198);
    param_1 = *(int *)puVar1;
    *(int *)puVar2 = iVar3;
  }
  *(uint *)PTR_running_in_background_001446f0 = (uint)(*(int *)PTR_shell_pgrp_001448ac != iVar3);
  if ((iVar4 != param_1) && (param_1 != 0)) {
    *(undefined4 *)PTR_pipeline_pgrp_00145180 = 0;
  }
  return iVar4;
}

