
int job_exit_signal(int job)

{
  uint uVar1;
  
  uVar1 = raw_job_exit_status(job);
  uVar1 = uVar1 & 0x7f;
  if ((char)((char)uVar1 + '\x01') >> 1 < '\x01') {
    uVar1 = 0;
  }
  return uVar1;
}



byte job_exit_signal(void)

{
  byte bVar1;
  
  bVar1 = FUN_000641bc();
  bVar1 = bVar1 & 0x7f;
  if ((char)(bVar1 + 1) >> 1 < '\x01') {
    bVar1 = 0;
  }
  return bVar1;
}


lui gp,0xe
addiu gp,gp,0x4b78
addu gp,gp,t9
lw t9,-0x7550(gp)
addiu sp,sp,-0x20
addiu t9,t9,0x41bc
sw ra,0x1c(sp)
sw gp,0x10(sp)
bal 0x000641bc
_nop
andi v0,v0,0x7f
lw ra,0x1c(sp)
addiu v1,v0,0x1
addiu sp,sp,0x20
seb v1,v1
sra v1,v1,0x1
slt v1,zero,v1
jr ra
_movz v0,zero,v1
(translation_unit "byte job_exit_signal(void)\n\n{\n  byte bVar1;\n  \n  bVar1 = FUN_000641bc();\n  bVar1 = bVar1 & 0x7f;\n  if ((char)(bVar1 + 1) >> 1 < '\x01') {\n    bVar1 = 0;\n  }\n  return bVar1;\n}\n\n" (function_definition "byte job_exit_signal(void)\n\n{\n  byte bVar1;\n  \n  bVar1 = FUN_000641bc();\n  bVar1 = bVar1 & 0x7f;\n  if ((char)(bVar1 + 1) >> 1 < '\x01') {\n    bVar1 = 0;\n  }\n  return bVar1;\n}" type_identifier (function_declarator "job_exit_signal(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  byte bVar1;\n  \n  bVar1 = FUN_000641bc();\n  bVar1 = bVar1 & 0x7f;\n  if ((char)(bVar1 + 1) >> 1 < '\x01') {\n    bVar1 = 0;\n  }\n  return bVar1;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (expression_statement "bVar1 = FUN_000641bc();" (assignment_expression "bVar1 = FUN_000641bc()" identifier = (call_expression "FUN_000641bc()" identifier (argument_list "()" ( )))) ;) (expression_statement "bVar1 = bVar1 & 0x7f;" (assignment_expression "bVar1 = bVar1 & 0x7f" identifier = (binary_expression "bVar1 & 0x7f" identifier & number_literal)) ;) (if_statement "if ((char)(bVar1 + 1) >> 1 < '\x01') {\n    bVar1 = 0;\n  }" if (parenthesized_expression "((char)(bVar1 + 1) >> 1 < '\x01')" ( (binary_expression "(char)(bVar1 + 1) >> 1 < '\x01'" (binary_expression "(char)(bVar1 + 1) >> 1" (cast_expression "(char)(bVar1 + 1)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(bVar1 + 1)" ( (binary_expression "bVar1 + 1" identifier + number_literal) ))) >> number_literal) < (char_literal "'\x01'" ' escape_sequence ')) )) (compound_statement "{\n    bVar1 = 0;\n  }" { (expression_statement "bVar1 = 0;" (assignment_expression "bVar1 = 0" identifier = number_literal) ;) })) (return_statement "return bVar1;" return identifier ;) })))
(translation_unit "int job_exit_signal(int job)\n\n{\n  uint uVar1;\n  \n  uVar1 = raw_job_exit_status(job);\n  uVar1 = uVar1 & 0x7f;\n  if ((char)((char)uVar1 + '\x01') >> 1 < '\x01') {\n    uVar1 = 0;\n  }\n  return uVar1;\n}\n\n" (function_definition "int job_exit_signal(int job)\n\n{\n  uint uVar1;\n  \n  uVar1 = raw_job_exit_status(job);\n  uVar1 = uVar1 & 0x7f;\n  if ((char)((char)uVar1 + '\x01') >> 1 < '\x01') {\n    uVar1 = 0;\n  }\n  return uVar1;\n}" primitive_type (function_declarator "job_exit_signal(int job)" identifier (parameter_list "(int job)" ( (parameter_declaration "int job" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  \n  uVar1 = raw_job_exit_status(job);\n  uVar1 = uVar1 & 0x7f;\n  if ((char)((char)uVar1 + '\x01') >> 1 < '\x01') {\n    uVar1 = 0;\n  }\n  return uVar1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = raw_job_exit_status(job);" (assignment_expression "uVar1 = raw_job_exit_status(job)" identifier = (call_expression "raw_job_exit_status(job)" identifier (argument_list "(job)" ( identifier )))) ;) (expression_statement "uVar1 = uVar1 & 0x7f;" (assignment_expression "uVar1 = uVar1 & 0x7f" identifier = (binary_expression "uVar1 & 0x7f" identifier & number_literal)) ;) (if_statement "if ((char)((char)uVar1 + '\x01') >> 1 < '\x01') {\n    uVar1 = 0;\n  }" if (parenthesized_expression "((char)((char)uVar1 + '\x01') >> 1 < '\x01')" ( (binary_expression "(char)((char)uVar1 + '\x01') >> 1 < '\x01'" (binary_expression "(char)((char)uVar1 + '\x01') >> 1" (cast_expression "(char)((char)uVar1 + '\x01')" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((char)uVar1 + '\x01')" ( (binary_expression "(char)uVar1 + '\x01'" (cast_expression "(char)uVar1" ( (type_descriptor "char" primitive_type) ) identifier) + (char_literal "'\x01'" ' escape_sequence ')) ))) >> number_literal) < (char_literal "'\x01'" ' escape_sequence ')) )) (compound_statement "{\n    uVar1 = 0;\n  }" { (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) })) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "byte job_exit_signal(void)\n\n{\n  byte bVar1;\n  \n  bVar1 = FUN_000641bc();\n  bVar1 = bVar1 & 0x7f;\n  if ((char)(bVar1 + 1) >> 1 < '\x01') {\n    bVar1 = 0;\n  }\n  return bVar1;\n}\n\n" (function_definition "byte job_exit_signal(void)\n\n{\n  byte bVar1;\n  \n  bVar1 = FUN_000641bc();\n  bVar1 = bVar1 & 0x7f;\n  if ((char)(bVar1 + 1) >> 1 < '\x01') {\n    bVar1 = 0;\n  }\n  return bVar1;\n}" type_identifier (function_declarator "job_exit_signal(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  byte bVar1;\n  \n  bVar1 = FUN_000641bc();\n  bVar1 = bVar1 & 0x7f;\n  if ((char)(bVar1 + 1) >> 1 < '\x01') {\n    bVar1 = 0;\n  }\n  return bVar1;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (expression_statement "bVar1 = FUN_000641bc();" (assignment_expression "bVar1 = FUN_000641bc()" identifier = (call_expression "FUN_000641bc()" identifier (argument_list "()" ( )))) ;) (expression_statement "bVar1 = bVar1 & 0x7f;" (assignment_expression "bVar1 = bVar1 & 0x7f" identifier = (binary_expression "bVar1 & 0x7f" identifier & number_literal)) ;) (if_statement "if ((char)(bVar1 + 1) >> 1 < '\x01') {\n    bVar1 = 0;\n  }" if (parenthesized_expression "((char)(bVar1 + 1) >> 1 < '\x01')" ( (binary_expression "(char)(bVar1 + 1) >> 1 < '\x01'" (binary_expression "(char)(bVar1 + 1) >> 1" (cast_expression "(char)(bVar1 + 1)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(bVar1 + 1)" ( (binary_expression "bVar1 + 1" identifier + number_literal) ))) >> number_literal) < (char_literal "'\x01'" ' escape_sequence ')) )) (compound_statement "{\n    bVar1 = 0;\n  }" { (expression_statement "bVar1 = 0;" (assignment_expression "bVar1 = 0" identifier = number_literal) ;) })) (return_statement "return bVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) >> LIT) < (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (return_statement return IDENT ;) })))
(function_definition "byte job_exit_signal(void)\n\n{\n  byte bVar1;\n  \n  bVar1 = FUN_000641bc();\n  bVar1 = bVar1 & 0x7f;\n  if ((char)(bVar1 + 1) >> 1 < '\x01') {\n    bVar1 = 0;\n  }\n  return bVar1;\n}" (type_identifier "byte") (function_declarator "job_exit_signal(void)" (identifier "job_exit_signal") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  byte bVar1;\n  \n  bVar1 = FUN_000641bc();\n  bVar1 = bVar1 & 0x7f;\n  if ((char)(bVar1 + 1) >> 1 < '\x01') {\n    bVar1 = 0;\n  }\n  return bVar1;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (expression_statement "bVar1 = FUN_000641bc();" (assignment_expression "bVar1 = FUN_000641bc()" (identifier "bVar1") (= "=") (call_expression "FUN_000641bc()" (identifier "FUN_000641bc") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "bVar1 = bVar1 & 0x7f;" (assignment_expression "bVar1 = bVar1 & 0x7f" (identifier "bVar1") (= "=") (binary_expression "bVar1 & 0x7f" (identifier "bVar1") (& "&") (number_literal "0x7f"))) (; ";")) (if_statement "if ((char)(bVar1 + 1) >> 1 < '\x01') {\n    bVar1 = 0;\n  }" (if "if") (parenthesized_expression "((char)(bVar1 + 1) >> 1 < '\x01')" (( "(") (binary_expression "(char)(bVar1 + 1) >> 1 < '\x01'" (binary_expression "(char)(bVar1 + 1) >> 1" (cast_expression "(char)(bVar1 + 1)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "(bVar1 + 1)" (( "(") (binary_expression "bVar1 + 1" (identifier "bVar1") (+ "+") (number_literal "1")) () ")"))) (>> ">>") (number_literal "1")) (< "<") (char_literal "'\x01'" (' "'") (escape_sequence "\x01") (' "'"))) () ")")) (compound_statement "{\n    bVar1 = 0;\n  }" ({ "{") (expression_statement "bVar1 = 0;" (assignment_expression "bVar1 = 0" (identifier "bVar1") (= "=") (number_literal "0")) (; ";")) (} "}"))) (return_statement "return bVar1;" (return "return") (identifier "bVar1") (; ";")) (} "}")))

int function_1(int job)

{
  type_1 var_2;
  
  var_2 = var_1(job);
  var_2 = var_2 & 0x7f;
  if ((char)((char)var_2 + '\x01') >> 1 < '\x01') {
    var_2 = 0;
  }
  return var_2;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) right: (number_literal)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (return_statement (identifier)))))

byte MASKED(void)

{
  byte bVar1;
  
  bVar1 = FUN_000641bc();
  bVar1 = bVar1 & 0x7f;
  if ((char)(bVar1 + 1) >> 1 < '\x01') {
    bVar1 = 0;
  }
  return bVar1;
}

