
/* WARNING: Unknown calling convention */

int job_exit_signal(int job)

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



byte job_exit_signal(void)

{
  byte bVar1;
  byte bVar2;
  
  bVar1 = FUN_0005ca40();
  bVar2 = bVar1 & 0x7f;
  if ((char)((bVar1 & 0x7f) + 1) < '\x02') {
    bVar2 = 0;
  }
  return bVar2;
}


MOV EAX,dword ptr [ESP + 0x4]
CALL 0x0005ca40
MOV EDX,EAX
AND EAX,0x7f
AND EDX,0x7f
ADD EDX,0x1
CMP DL,0x1
MOV EDX,0x0
CMOVLE EAX,EDX
RET
(translation_unit "byte job_exit_signal(void)\n\n{\n  byte bVar1;\n  byte bVar2;\n  \n  bVar1 = FUN_0005ca40();\n  bVar2 = bVar1 & 0x7f;\n  if ((char)((bVar1 & 0x7f) + 1) < '\x02') {\n    bVar2 = 0;\n  }\n  return bVar2;\n}\n\n" (function_definition "byte job_exit_signal(void)\n\n{\n  byte bVar1;\n  byte bVar2;\n  \n  bVar1 = FUN_0005ca40();\n  bVar2 = bVar1 & 0x7f;\n  if ((char)((bVar1 & 0x7f) + 1) < '\x02') {\n    bVar2 = 0;\n  }\n  return bVar2;\n}" type_identifier (function_declarator "job_exit_signal(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  byte bVar1;\n  byte bVar2;\n  \n  bVar1 = FUN_0005ca40();\n  bVar2 = bVar1 & 0x7f;\n  if ((char)((bVar1 & 0x7f) + 1) < '\x02') {\n    bVar2 = 0;\n  }\n  return bVar2;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (expression_statement "bVar1 = FUN_0005ca40();" (assignment_expression "bVar1 = FUN_0005ca40()" identifier = (call_expression "FUN_0005ca40()" identifier (argument_list "()" ( )))) ;) (expression_statement "bVar2 = bVar1 & 0x7f;" (assignment_expression "bVar2 = bVar1 & 0x7f" identifier = (binary_expression "bVar1 & 0x7f" identifier & number_literal)) ;) (if_statement "if ((char)((bVar1 & 0x7f) + 1) < '\x02') {\n    bVar2 = 0;\n  }" if (parenthesized_expression "((char)((bVar1 & 0x7f) + 1) < '\x02')" ( (binary_expression "(char)((bVar1 & 0x7f) + 1) < '\x02'" (cast_expression "(char)((bVar1 & 0x7f) + 1)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((bVar1 & 0x7f) + 1)" ( (binary_expression "(bVar1 & 0x7f) + 1" (parenthesized_expression "(bVar1 & 0x7f)" ( (binary_expression "bVar1 & 0x7f" identifier & number_literal) )) + number_literal) ))) < (char_literal "'\x02'" ' escape_sequence ')) )) (compound_statement "{\n    bVar2 = 0;\n  }" { (expression_statement "bVar2 = 0;" (assignment_expression "bVar2 = 0" identifier = number_literal) ;) })) (return_statement "return bVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nint job_exit_signal(int job)\n\n{\n  uint uVar1;\n  uint uVar2;\n  \n  uVar1 = raw_job_exit_status(job);\n  uVar2 = uVar1 & 0x7f;\n  if ((char)(((byte)uVar1 & 0x7f) + 1) < '\x02') {\n    uVar2 = 0;\n  }\n  return uVar2;\n}\n\n" comment (function_definition "int job_exit_signal(int job)\n\n{\n  uint uVar1;\n  uint uVar2;\n  \n  uVar1 = raw_job_exit_status(job);\n  uVar2 = uVar1 & 0x7f;\n  if ((char)(((byte)uVar1 & 0x7f) + 1) < '\x02') {\n    uVar2 = 0;\n  }\n  return uVar2;\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  uint uVar2;\n  \n  uVar1 = raw_job_exit_status(job);\n  uVar2 = uVar1 & 0x7f;\n  if ((char)(((byte)uVar1 & 0x7f) + 1) < '\x02') {\n    uVar2 = 0;\n  }\n  return uVar2;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" 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 "uVar2 = uVar1 & 0x7f;" (assignment_expression "uVar2 = uVar1 & 0x7f" identifier = (binary_expression "uVar1 & 0x7f" identifier & number_literal)) ;) (if_statement "if ((char)(((byte)uVar1 & 0x7f) + 1) < '\x02') {\n    uVar2 = 0;\n  }" if (parenthesized_expression "((char)(((byte)uVar1 & 0x7f) + 1) < '\x02')" ( (binary_expression "(char)(((byte)uVar1 & 0x7f) + 1) < '\x02'" (cast_expression "(char)(((byte)uVar1 & 0x7f) + 1)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(((byte)uVar1 & 0x7f) + 1)" ( (binary_expression "((byte)uVar1 & 0x7f) + 1" (parenthesized_expression "((byte)uVar1 & 0x7f)" ( (binary_expression "(byte)uVar1 & 0x7f" (cast_expression "(byte)uVar1" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) )) + number_literal) ))) < (char_literal "'\x02'" ' escape_sequence ')) )) (compound_statement "{\n    uVar2 = 0;\n  }" { (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) })) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "byte job_exit_signal(void)\n\n{\n  byte bVar1;\n  byte bVar2;\n  \n  bVar1 = FUN_0005ca40();\n  bVar2 = bVar1 & 0x7f;\n  if ((char)((bVar1 & 0x7f) + 1) < '\x02') {\n    bVar2 = 0;\n  }\n  return bVar2;\n}\n\n" (function_definition "byte job_exit_signal(void)\n\n{\n  byte bVar1;\n  byte bVar2;\n  \n  bVar1 = FUN_0005ca40();\n  bVar2 = bVar1 & 0x7f;\n  if ((char)((bVar1 & 0x7f) + 1) < '\x02') {\n    bVar2 = 0;\n  }\n  return bVar2;\n}" type_identifier (function_declarator "job_exit_signal(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  byte bVar1;\n  byte bVar2;\n  \n  bVar1 = FUN_0005ca40();\n  bVar2 = bVar1 & 0x7f;\n  if ((char)((bVar1 & 0x7f) + 1) < '\x02') {\n    bVar2 = 0;\n  }\n  return bVar2;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (expression_statement "bVar1 = FUN_0005ca40();" (assignment_expression "bVar1 = FUN_0005ca40()" identifier = (call_expression "FUN_0005ca40()" identifier (argument_list "()" ( )))) ;) (expression_statement "bVar2 = bVar1 & 0x7f;" (assignment_expression "bVar2 = bVar1 & 0x7f" identifier = (binary_expression "bVar1 & 0x7f" identifier & number_literal)) ;) (if_statement "if ((char)((bVar1 & 0x7f) + 1) < '\x02') {\n    bVar2 = 0;\n  }" if (parenthesized_expression "((char)((bVar1 & 0x7f) + 1) < '\x02')" ( (binary_expression "(char)((bVar1 & 0x7f) + 1) < '\x02'" (cast_expression "(char)((bVar1 & 0x7f) + 1)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((bVar1 & 0x7f) + 1)" ( (binary_expression "(bVar1 & 0x7f) + 1" (parenthesized_expression "(bVar1 & 0x7f)" ( (binary_expression "bVar1 & 0x7f" identifier & number_literal) )) + number_literal) ))) < (char_literal "'\x02'" ' escape_sequence ')) )) (compound_statement "{\n    bVar2 = 0;\n  }" { (expression_statement "bVar2 = 0;" (assignment_expression "bVar2 = 0" identifier = number_literal) ;) })) (return_statement "return bVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (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 (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (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  byte bVar2;\n  \n  bVar1 = FUN_0005ca40();\n  bVar2 = bVar1 & 0x7f;\n  if ((char)((bVar1 & 0x7f) + 1) < '\x02') {\n    bVar2 = 0;\n  }\n  return bVar2;\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  byte bVar2;\n  \n  bVar1 = FUN_0005ca40();\n  bVar2 = bVar1 & 0x7f;\n  if ((char)((bVar1 & 0x7f) + 1) < '\x02') {\n    bVar2 = 0;\n  }\n  return bVar2;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "byte bVar2;" (type_identifier "byte") (identifier "bVar2") (; ";")) (expression_statement "bVar1 = FUN_0005ca40();" (assignment_expression "bVar1 = FUN_0005ca40()" (identifier "bVar1") (= "=") (call_expression "FUN_0005ca40()" (identifier "FUN_0005ca40") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "bVar2 = bVar1 & 0x7f;" (assignment_expression "bVar2 = bVar1 & 0x7f" (identifier "bVar2") (= "=") (binary_expression "bVar1 & 0x7f" (identifier "bVar1") (& "&") (number_literal "0x7f"))) (; ";")) (if_statement "if ((char)((bVar1 & 0x7f) + 1) < '\x02') {\n    bVar2 = 0;\n  }" (if "if") (parenthesized_expression "((char)((bVar1 & 0x7f) + 1) < '\x02')" (( "(") (binary_expression "(char)((bVar1 & 0x7f) + 1) < '\x02'" (cast_expression "(char)((bVar1 & 0x7f) + 1)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "((bVar1 & 0x7f) + 1)" (( "(") (binary_expression "(bVar1 & 0x7f) + 1" (parenthesized_expression "(bVar1 & 0x7f)" (( "(") (binary_expression "bVar1 & 0x7f" (identifier "bVar1") (& "&") (number_literal "0x7f")) () ")")) (+ "+") (number_literal "1")) () ")"))) (< "<") (char_literal "'\x02'" (' "'") (escape_sequence "\x02") (' "'"))) () ")")) (compound_statement "{\n    bVar2 = 0;\n  }" ({ "{") (expression_statement "bVar2 = 0;" (assignment_expression "bVar2 = 0" (identifier "bVar2") (= "=") (number_literal "0")) (; ";")) (} "}"))) (return_statement "return bVar2;" (return "return") (identifier "bVar2") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

int function_1(int job)

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


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (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: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (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;
  byte bVar2;
  
  bVar1 = FUN_0005ca40();
  bVar2 = bVar1 & 0x7f;
  if ((char)((bVar1 & 0x7f) + 1) < '\x02') {
    bVar2 = 0;
  }
  return bVar2;
}

