
int get_job_spec(WORD_LIST *list)

{
  int iVar1;
  char *name;
  
  if (list != (WORD_LIST *)0x0) {
    name = list->word->word;
    iVar1 = (int)*name;
    if (iVar1 == 0) {
      return -1;
    }
    if (iVar1 == 0x25) {
      iVar1 = (int)name[1];
      name = name + 1;
    }
    if ((iVar1 - 0x30U & 0xff) < 10) {
      iVar1 = (*(code *)PTR_all_digits_00144b1c)(name);
      if (iVar1 != 0) {
        iVar1 = (*(code *)PTR_strtol_00146220)(name,0,10);
        if (iVar1 < 0) {
          return -1;
        }
        if (*(int *)(PTR_js_00144e58 + 0x18) < iVar1) {
          return -1;
        }
        return iVar1 + -1;
      }
      iVar1 = (int)*name;
    }
    if (iVar1 != 0x2b) {
      if (iVar1 < 0x2c) {
        if ((iVar1 == 0) || (iVar1 == 0x25)) goto LAB_000b1784;
      }
      else {
        if (iVar1 == 0x2d) {
          return *(int *)(PTR_js_00144e58 + 0x30);
        }
        if (iVar1 == 0x3f) {
          iVar1 = get_job_by_name(name + 1,2);
          return iVar1;
        }
      }
      iVar1 = get_job_by_name(name,0);
      return iVar1;
    }
  }
LAB_000b1784:
  return *(int *)(PTR_js_00144e58 + 0x2c);
}



int get_job_spec(int param_1)

{
  int iVar1;
  char *pcVar2;
  
  if (param_1 != 0) {
    pcVar2 = (char *)**(undefined4 **)(param_1 + 4);
    iVar1 = (int)*pcVar2;
    if (iVar1 == 0) {
      return -1;
    }
    if (iVar1 == 0x25) {
      iVar1 = (int)pcVar2[1];
      pcVar2 = pcVar2 + 1;
    }
    if ((iVar1 - 0x30U & 0xff) < 10) {
      iVar1 = (*(code *)PTR_all_digits_00144b1c)(pcVar2);
      if (iVar1 != 0) {
        iVar1 = (*(code *)PTR_strtol_00146220)(pcVar2,0,10);
        if (iVar1 < 0) {
          return -1;
        }
        if (*(int *)(PTR_js_00144e58 + 0x18) < iVar1) {
          return -1;
        }
        return iVar1 + -1;
      }
      iVar1 = (int)*pcVar2;
    }
    if (iVar1 != 0x2b) {
      if (iVar1 < 0x2c) {
        if ((iVar1 == 0) || (iVar1 == 0x25)) goto LAB_000b1784;
      }
      else {
        if (iVar1 == 0x2d) {
          return *(int *)(PTR_js_00144e58 + 0x30);
        }
        if (iVar1 == 0x3f) {
          iVar1 = get_job_by_name(pcVar2 + 1,2);
          return iVar1;
        }
      }
      iVar1 = get_job_by_name(pcVar2,0);
      return iVar1;
    }
  }
LAB_000b1784:
  return *(int *)(PTR_js_00144e58 + 0x2c);
}


lui gp,0xa
addiu gp,gp,-0x517c
addu gp,gp,t9
addiu sp,sp,-0x20
sw gp,0x10(sp)
sw ra,0x1c(sp)
beq a0,zero,0x000b1780
_sw s0,0x18(sp)
lw v0,0x4(a0)
lw s0,0x0(v0)
lb v0,0x0(s0)
beq v0,zero,0x000b1800
_li v1,0x25
bne v0,v1,0x000b1704
_addiu v1,v0,-0x30
lb v0,0x1(s0)
addiu s0,s0,0x1
addiu v1,v0,-0x30
andi v1,v1,0xff
sltiu v1,v1,0xa
bne v1,zero,0x000b1798
_lw t9,-0x7a24(gp)
li v1,0x2b
beq v0,v1,0x000b1780
_slti v1,v0,0x2c
bne v1,zero,0x000b1754
_li v1,0x2d
beq v0,v1,0x000b17b0
_li v1,0x3f
bne v0,v1,0x000b1764
_lw ra,0x1c(sp)
addiu s0,s0,0x1
lw t9,-0x77dc(gp)
li a1,0x2
or a0,s0,zero
lw s0,0x18(sp)
b 0x000b1420
_addiu sp,sp,0x20
beq v0,zero,0x000b1780
_li v1,0x25
beq v0,v1,0x000b1784
_lw v0,-0x76e8(gp)
lw ra,0x1c(sp)
or a0,s0,zero
lw t9,-0x77dc(gp)
or a1,zero,zero
lw s0,0x18(sp)
b 0x000b1420
_addiu sp,sp,0x20
lw v0,-0x76e8(gp)
lw v0,0x2c(v0)
lw ra,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
jalr t9
_or a0,s0,zero
bne v0,zero,0x000b17c8
_lw gp,0x10(sp)
b 0x000b1714
_lb v0,0x0(s0)
lw v0,-0x76e8(gp)
lw ra,0x1c(sp)
lw s0,0x18(sp)
lw v0,0x30(v0)
jr ra
_addiu sp,sp,0x20
lw t9,-0x6320(gp)
li a2,0xa
or a1,zero,zero
jalr t9
_or a0,s0,zero
bltz v0,0x000b1800
_lw gp,0x10(sp)
lw v1,-0x76e8(gp)
lw v1,0x18(v1)
slt v1,v1,v0
bne v1,zero,0x000b1800
_nop
b 0x000b1788
_addiu v0,v0,-0x1
b 0x000b1788
_li v0,-0x1
(translation_unit "int get_job_spec(int param_1)\n\n{\n  int iVar1;\n  char *pcVar2;\n  \n  if (param_1 != 0) {\n    pcVar2 = (char *)**(undefined4 **)(param_1 + 4);\n    iVar1 = (int)*pcVar2;\n    if (iVar1 == 0) {\n      return -1;\n    }\n    if (iVar1 == 0x25) {\n      iVar1 = (int)pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }\n    if ((iVar1 - 0x30U & 0xff) < 10) {\n      iVar1 = (*(code *)PTR_all_digits_00144b1c)(pcVar2);\n      if (iVar1 != 0) {\n        iVar1 = (*(code *)PTR_strtol_00146220)(pcVar2,0,10);\n        if (iVar1 < 0) {\n          return -1;\n        }\n        if (*(int *)(PTR_js_00144e58 + 0x18) < iVar1) {\n          return -1;\n        }\n        return iVar1 + -1;\n      }\n      iVar1 = (int)*pcVar2;\n    }\n    if (iVar1 != 0x2b) {\n      if (iVar1 < 0x2c) {\n        if ((iVar1 == 0) || (iVar1 == 0x25)) goto LAB_000b1784;\n      }\n      else {\n        if (iVar1 == 0x2d) {\n          return *(int *)(PTR_js_00144e58 + 0x30);\n        }\n        if (iVar1 == 0x3f) {\n          iVar1 = get_job_by_name(pcVar2 + 1,2);\n          return iVar1;\n        }\n      }\n      iVar1 = get_job_by_name(pcVar2,0);\n      return iVar1;\n    }\n  }\nLAB_000b1784:\n  return *(int *)(PTR_js_00144e58 + 0x2c);\n}\n\n" (function_definition "int get_job_spec(int param_1)\n\n{\n  int iVar1;\n  char *pcVar2;\n  \n  if (param_1 != 0) {\n    pcVar2 = (char *)**(undefined4 **)(param_1 + 4);\n    iVar1 = (int)*pcVar2;\n    if (iVar1 == 0) {\n      return -1;\n    }\n    if (iVar1 == 0x25) {\n      iVar1 = (int)pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }\n    if ((iVar1 - 0x30U & 0xff) < 10) {\n      iVar1 = (*(code *)PTR_all_digits_00144b1c)(pcVar2);\n      if (iVar1 != 0) {\n        iVar1 = (*(code *)PTR_strtol_00146220)(pcVar2,0,10);\n        if (iVar1 < 0) {\n          return -1;\n        }\n        if (*(int *)(PTR_js_00144e58 + 0x18) < iVar1) {\n          return -1;\n        }\n        return iVar1 + -1;\n      }\n      iVar1 = (int)*pcVar2;\n    }\n    if (iVar1 != 0x2b) {\n      if (iVar1 < 0x2c) {\n        if ((iVar1 == 0) || (iVar1 == 0x25)) goto LAB_000b1784;\n      }\n      else {\n        if (iVar1 == 0x2d) {\n          return *(int *)(PTR_js_00144e58 + 0x30);\n        }\n        if (iVar1 == 0x3f) {\n          iVar1 = get_job_by_name(pcVar2 + 1,2);\n          return iVar1;\n        }\n      }\n      iVar1 = get_job_by_name(pcVar2,0);\n      return iVar1;\n    }\n  }\nLAB_000b1784:\n  return *(int *)(PTR_js_00144e58 + 0x2c);\n}" primitive_type (function_declarator "get_job_spec(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  \n  if (param_1 != 0) {\n    pcVar2 = (char *)**(undefined4 **)(param_1 + 4);\n    iVar1 = (int)*pcVar2;\n    if (iVar1 == 0) {\n      return -1;\n    }\n    if (iVar1 == 0x25) {\n      iVar1 = (int)pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }\n    if ((iVar1 - 0x30U & 0xff) < 10) {\n      iVar1 = (*(code *)PTR_all_digits_00144b1c)(pcVar2);\n      if (iVar1 != 0) {\n        iVar1 = (*(code *)PTR_strtol_00146220)(pcVar2,0,10);\n        if (iVar1 < 0) {\n          return -1;\n        }\n        if (*(int *)(PTR_js_00144e58 + 0x18) < iVar1) {\n          return -1;\n        }\n        return iVar1 + -1;\n      }\n      iVar1 = (int)*pcVar2;\n    }\n    if (iVar1 != 0x2b) {\n      if (iVar1 < 0x2c) {\n        if ((iVar1 == 0) || (iVar1 == 0x25)) goto LAB_000b1784;\n      }\n      else {\n        if (iVar1 == 0x2d) {\n          return *(int *)(PTR_js_00144e58 + 0x30);\n        }\n        if (iVar1 == 0x3f) {\n          iVar1 = get_job_by_name(pcVar2 + 1,2);\n          return iVar1;\n        }\n      }\n      iVar1 = get_job_by_name(pcVar2,0);\n      return iVar1;\n    }\n  }\nLAB_000b1784:\n  return *(int *)(PTR_js_00144e58 + 0x2c);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (if_statement "if (param_1 != 0) {\n    pcVar2 = (char *)**(undefined4 **)(param_1 + 4);\n    iVar1 = (int)*pcVar2;\n    if (iVar1 == 0) {\n      return -1;\n    }\n    if (iVar1 == 0x25) {\n      iVar1 = (int)pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }\n    if ((iVar1 - 0x30U & 0xff) < 10) {\n      iVar1 = (*(code *)PTR_all_digits_00144b1c)(pcVar2);\n      if (iVar1 != 0) {\n        iVar1 = (*(code *)PTR_strtol_00146220)(pcVar2,0,10);\n        if (iVar1 < 0) {\n          return -1;\n        }\n        if (*(int *)(PTR_js_00144e58 + 0x18) < iVar1) {\n          return -1;\n        }\n        return iVar1 + -1;\n      }\n      iVar1 = (int)*pcVar2;\n    }\n    if (iVar1 != 0x2b) {\n      if (iVar1 < 0x2c) {\n        if ((iVar1 == 0) || (iVar1 == 0x25)) goto LAB_000b1784;\n      }\n      else {\n        if (iVar1 == 0x2d) {\n          return *(int *)(PTR_js_00144e58 + 0x30);\n        }\n        if (iVar1 == 0x3f) {\n          iVar1 = get_job_by_name(pcVar2 + 1,2);\n          return iVar1;\n        }\n      }\n      iVar1 = get_job_by_name(pcVar2,0);\n      return iVar1;\n    }\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    pcVar2 = (char *)**(undefined4 **)(param_1 + 4);\n    iVar1 = (int)*pcVar2;\n    if (iVar1 == 0) {\n      return -1;\n    }\n    if (iVar1 == 0x25) {\n      iVar1 = (int)pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }\n    if ((iVar1 - 0x30U & 0xff) < 10) {\n      iVar1 = (*(code *)PTR_all_digits_00144b1c)(pcVar2);\n      if (iVar1 != 0) {\n        iVar1 = (*(code *)PTR_strtol_00146220)(pcVar2,0,10);\n        if (iVar1 < 0) {\n          return -1;\n        }\n        if (*(int *)(PTR_js_00144e58 + 0x18) < iVar1) {\n          return -1;\n        }\n        return iVar1 + -1;\n      }\n      iVar1 = (int)*pcVar2;\n    }\n    if (iVar1 != 0x2b) {\n      if (iVar1 < 0x2c) {\n        if ((iVar1 == 0) || (iVar1 == 0x25)) goto LAB_000b1784;\n      }\n      else {\n        if (iVar1 == 0x2d) {\n          return *(int *)(PTR_js_00144e58 + 0x30);\n        }\n        if (iVar1 == 0x3f) {\n          iVar1 = get_job_by_name(pcVar2 + 1,2);\n          return iVar1;\n        }\n      }\n      iVar1 = get_job_by_name(pcVar2,0);\n      return iVar1;\n    }\n  }" { (expression_statement "pcVar2 = (char *)**(undefined4 **)(param_1 + 4);" (assignment_expression "pcVar2 = (char *)**(undefined4 **)(param_1 + 4)" identifier = (cast_expression "(char *)**(undefined4 **)(param_1 + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "**(undefined4 **)(param_1 + 4)" * (pointer_expression "*(undefined4 **)(param_1 + 4)" * (cast_expression "(undefined4 **)(param_1 + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))))) ;) (expression_statement "iVar1 = (int)*pcVar2;" (assignment_expression "iVar1 = (int)*pcVar2" identifier = (cast_expression "(int)*pcVar2" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*pcVar2" * identifier))) ;) (if_statement "if (iVar1 == 0) {\n      return -1;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      return -1;\n    }" { (return_statement "return -1;" return number_literal ;) })) (if_statement "if (iVar1 == 0x25) {\n      iVar1 = (int)pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }" if (parenthesized_expression "(iVar1 == 0x25)" ( (binary_expression "iVar1 == 0x25" identifier == number_literal) )) (compound_statement "{\n      iVar1 = (int)pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }" { (expression_statement "iVar1 = (int)pcVar2[1];" (assignment_expression "iVar1 = (int)pcVar2[1]" identifier = (cast_expression "(int)pcVar2[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "pcVar2[1]" identifier [ number_literal ]))) ;) (expression_statement "pcVar2 = pcVar2 + 1;" (assignment_expression "pcVar2 = pcVar2 + 1" identifier = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) })) (if_statement "if ((iVar1 - 0x30U & 0xff) < 10) {\n      iVar1 = (*(code *)PTR_all_digits_00144b1c)(pcVar2);\n      if (iVar1 != 0) {\n        iVar1 = (*(code *)PTR_strtol_00146220)(pcVar2,0,10);\n        if (iVar1 < 0) {\n          return -1;\n        }\n        if (*(int *)(PTR_js_00144e58 + 0x18) < iVar1) {\n          return -1;\n        }\n        return iVar1 + -1;\n      }\n      iVar1 = (int)*pcVar2;\n    }" if (parenthesized_expression "((iVar1 - 0x30U & 0xff) < 10)" ( (binary_expression "(iVar1 - 0x30U & 0xff) < 10" (parenthesized_expression "(iVar1 - 0x30U & 0xff)" ( (binary_expression "iVar1 - 0x30U & 0xff" (binary_expression "iVar1 - 0x30U" identifier - number_literal) & number_literal) )) < number_literal) )) (compound_statement "{\n      iVar1 = (*(code *)PTR_all_digits_00144b1c)(pcVar2);\n      if (iVar1 != 0) {\n        iVar1 = (*(code *)PTR_strtol_00146220)(pcVar2,0,10);\n        if (iVar1 < 0) {\n          return -1;\n        }\n        if (*(int *)(PTR_js_00144e58 + 0x18) < iVar1) {\n          return -1;\n        }\n        return iVar1 + -1;\n      }\n      iVar1 = (int)*pcVar2;\n    }" { (expression_statement "iVar1 = (*(code *)PTR_all_digits_00144b1c)(pcVar2);" (assignment_expression "iVar1 = (*(code *)PTR_all_digits_00144b1c)(pcVar2)" identifier = (call_expression "(*(code *)PTR_all_digits_00144b1c)(pcVar2)" (parenthesized_expression "(*(code *)PTR_all_digits_00144b1c)" ( (pointer_expression "*(code *)PTR_all_digits_00144b1c" * (cast_expression "(code *)PTR_all_digits_00144b1c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar2)" ( identifier )))) ;) (if_statement "if (iVar1 != 0) {\n        iVar1 = (*(code *)PTR_strtol_00146220)(pcVar2,0,10);\n        if (iVar1 < 0) {\n          return -1;\n        }\n        if (*(int *)(PTR_js_00144e58 + 0x18) < iVar1) {\n          return -1;\n        }\n        return iVar1 + -1;\n      }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        iVar1 = (*(code *)PTR_strtol_00146220)(pcVar2,0,10);\n        if (iVar1 < 0) {\n          return -1;\n        }\n        if (*(int *)(PTR_js_00144e58 + 0x18) < iVar1) {\n          return -1;\n        }\n        return iVar1 + -1;\n      }" { (expression_statement "iVar1 = (*(code *)PTR_strtol_00146220)(pcVar2,0,10);" (assignment_expression "iVar1 = (*(code *)PTR_strtol_00146220)(pcVar2,0,10)" identifier = (call_expression "(*(code *)PTR_strtol_00146220)(pcVar2,0,10)" (parenthesized_expression "(*(code *)PTR_strtol_00146220)" ( (pointer_expression "*(code *)PTR_strtol_00146220" * (cast_expression "(code *)PTR_strtol_00146220" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar2,0,10)" ( identifier , number_literal , number_literal )))) ;) (if_statement "if (iVar1 < 0) {\n          return -1;\n        }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n          return -1;\n        }" { (return_statement "return -1;" return number_literal ;) })) (if_statement "if (*(int *)(PTR_js_00144e58 + 0x18) < iVar1) {\n          return -1;\n        }" if (parenthesized_expression "(*(int *)(PTR_js_00144e58 + 0x18) < iVar1)" ( (binary_expression "*(int *)(PTR_js_00144e58 + 0x18) < iVar1" (pointer_expression "*(int *)(PTR_js_00144e58 + 0x18)" * (cast_expression "(int *)(PTR_js_00144e58 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_js_00144e58 + 0x18)" ( (binary_expression "PTR_js_00144e58 + 0x18" identifier + number_literal) )))) < identifier) )) (compound_statement "{\n          return -1;\n        }" { (return_statement "return -1;" return number_literal ;) })) (return_statement "return iVar1 + -1;" return (binary_expression "iVar1 + -1" identifier + number_literal) ;) })) (expression_statement "iVar1 = (int)*pcVar2;" (assignment_expression "iVar1 = (int)*pcVar2" identifier = (cast_expression "(int)*pcVar2" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*pcVar2" * identifier))) ;) })) (if_statement "if (iVar1 != 0x2b) {\n      if (iVar1 < 0x2c) {\n        if ((iVar1 == 0) || (iVar1 == 0x25)) goto LAB_000b1784;\n      }\n      else {\n        if (iVar1 == 0x2d) {\n          return *(int *)(PTR_js_00144e58 + 0x30);\n        }\n        if (iVar1 == 0x3f) {\n          iVar1 = get_job_by_name(pcVar2 + 1,2);\n          return iVar1;\n        }\n      }\n      iVar1 = get_job_by_name(pcVar2,0);\n      return iVar1;\n    }" if (parenthesized_expression "(iVar1 != 0x2b)" ( (binary_expression "iVar1 != 0x2b" identifier != number_literal) )) (compound_statement "{\n      if (iVar1 < 0x2c) {\n        if ((iVar1 == 0) || (iVar1 == 0x25)) goto LAB_000b1784;\n      }\n      else {\n        if (iVar1 == 0x2d) {\n          return *(int *)(PTR_js_00144e58 + 0x30);\n        }\n        if (iVar1 == 0x3f) {\n          iVar1 = get_job_by_name(pcVar2 + 1,2);\n          return iVar1;\n        }\n      }\n      iVar1 = get_job_by_name(pcVar2,0);\n      return iVar1;\n    }" { (if_statement "if (iVar1 < 0x2c) {\n        if ((iVar1 == 0) || (iVar1 == 0x25)) goto LAB_000b1784;\n      }\n      else {\n        if (iVar1 == 0x2d) {\n          return *(int *)(PTR_js_00144e58 + 0x30);\n        }\n        if (iVar1 == 0x3f) {\n          iVar1 = get_job_by_name(pcVar2 + 1,2);\n          return iVar1;\n        }\n      }" if (parenthesized_expression "(iVar1 < 0x2c)" ( (binary_expression "iVar1 < 0x2c" identifier < number_literal) )) (compound_statement "{\n        if ((iVar1 == 0) || (iVar1 == 0x25)) goto LAB_000b1784;\n      }" { (if_statement "if ((iVar1 == 0) || (iVar1 == 0x25)) goto LAB_000b1784;" if (parenthesized_expression "((iVar1 == 0) || (iVar1 == 0x25))" ( (binary_expression "(iVar1 == 0) || (iVar1 == 0x25)" (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar1 == 0x25)" ( (binary_expression "iVar1 == 0x25" identifier == number_literal) ))) )) (goto_statement "goto LAB_000b1784;" goto statement_identifier ;)) }) (else_clause "else {\n        if (iVar1 == 0x2d) {\n          return *(int *)(PTR_js_00144e58 + 0x30);\n        }\n        if (iVar1 == 0x3f) {\n          iVar1 = get_job_by_name(pcVar2 + 1,2);\n          return iVar1;\n        }\n      }" else (compound_statement "{\n        if (iVar1 == 0x2d) {\n          return *(int *)(PTR_js_00144e58 + 0x30);\n        }\n        if (iVar1 == 0x3f) {\n          iVar1 = get_job_by_name(pcVar2 + 1,2);\n          return iVar1;\n        }\n      }" { (if_statement "if (iVar1 == 0x2d) {\n          return *(int *)(PTR_js_00144e58 + 0x30);\n        }" if (parenthesized_expression "(iVar1 == 0x2d)" ( (binary_expression "iVar1 == 0x2d" identifier == number_literal) )) (compound_statement "{\n          return *(int *)(PTR_js_00144e58 + 0x30);\n        }" { (return_statement "return *(int *)(PTR_js_00144e58 + 0x30);" return (pointer_expression "*(int *)(PTR_js_00144e58 + 0x30)" * (cast_expression "(int *)(PTR_js_00144e58 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_js_00144e58 + 0x30)" ( (binary_expression "PTR_js_00144e58 + 0x30" identifier + number_literal) )))) ;) })) (if_statement "if (iVar1 == 0x3f) {\n          iVar1 = get_job_by_name(pcVar2 + 1,2);\n          return iVar1;\n        }" if (parenthesized_expression "(iVar1 == 0x3f)" ( (binary_expression "iVar1 == 0x3f" identifier == number_literal) )) (compound_statement "{\n          iVar1 = get_job_by_name(pcVar2 + 1,2);\n          return iVar1;\n        }" { (expression_statement "iVar1 = get_job_by_name(pcVar2 + 1,2);" (assignment_expression "iVar1 = get_job_by_name(pcVar2 + 1,2)" identifier = (call_expression "get_job_by_name(pcVar2 + 1,2)" identifier (argument_list "(pcVar2 + 1,2)" ( (binary_expression "pcVar2 + 1" identifier + number_literal) , number_literal )))) ;) (return_statement "return iVar1;" return identifier ;) })) }))) (expression_statement "iVar1 = get_job_by_name(pcVar2,0);" (assignment_expression "iVar1 = get_job_by_name(pcVar2,0)" identifier = (call_expression "get_job_by_name(pcVar2,0)" identifier (argument_list "(pcVar2,0)" ( identifier , number_literal )))) ;) (return_statement "return iVar1;" return identifier ;) })) })) (labeled_statement "LAB_000b1784:\n  return *(int *)(PTR_js_00144e58 + 0x2c);" statement_identifier : (return_statement "return *(int *)(PTR_js_00144e58 + 0x2c);" return (pointer_expression "*(int *)(PTR_js_00144e58 + 0x2c)" * (cast_expression "(int *)(PTR_js_00144e58 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_js_00144e58 + 0x2c)" ( (binary_expression "PTR_js_00144e58 + 0x2c" identifier + number_literal) )))) ;)) })))
(translation_unit "int get_job_spec(WORD_LIST *list)\n\n{\n  int iVar1;\n  char *name;\n  \n  if (list != (WORD_LIST *)0x0) {\n    name = list->word->word;\n    iVar1 = (int)*name;\n    if (iVar1 == 0) {\n      return -1;\n    }\n    if (iVar1 == 0x25) {\n      iVar1 = (int)name[1];\n      name = name + 1;\n    }\n    if ((iVar1 - 0x30U & 0xff) < 10) {\n      iVar1 = (*(code *)PTR_all_digits_00144b1c)(name);\n      if (iVar1 != 0) {\n        iVar1 = (*(code *)PTR_strtol_00146220)(name,0,10);\n        if (iVar1 < 0) {\n          return -1;\n        }\n        if (*(int *)(PTR_js_00144e58 + 0x18) < iVar1) {\n          return -1;\n        }\n        return iVar1 + -1;\n      }\n      iVar1 = (int)*name;\n    }\n    if (iVar1 != 0x2b) {\n      if (iVar1 < 0x2c) {\n        if ((iVar1 == 0) || (iVar1 == 0x25)) goto LAB_000b1784;\n      }\n      else {\n        if (iVar1 == 0x2d) {\n          return *(int *)(PTR_js_00144e58 + 0x30);\n        }\n        if (iVar1 == 0x3f) {\n          iVar1 = get_job_by_name(name + 1,2);\n          return iVar1;\n        }\n      }\n      iVar1 = get_job_by_name(name,0);\n      return iVar1;\n    }\n  }\nLAB_000b1784:\n  return *(int *)(PTR_js_00144e58 + 0x2c);\n}\n\n" (function_definition "int get_job_spec(WORD_LIST *list)\n\n{\n  int iVar1;\n  char *name;\n  \n  if (list != (WORD_LIST *)0x0) {\n    name = list->word->word;\n    iVar1 = (int)*name;\n    if (iVar1 == 0) {\n      return -1;\n    }\n    if (iVar1 == 0x25) {\n      iVar1 = (int)name[1];\n      name = name + 1;\n    }\n    if ((iVar1 - 0x30U & 0xff) < 10) {\n      iVar1 = (*(code *)PTR_all_digits_00144b1c)(name);\n      if (iVar1 != 0) {\n        iVar1 = (*(code *)PTR_strtol_00146220)(name,0,10);\n        if (iVar1 < 0) {\n          return -1;\n        }\n        if (*(int *)(PTR_js_00144e58 + 0x18) < iVar1) {\n          return -1;\n        }\n        return iVar1 + -1;\n      }\n      iVar1 = (int)*name;\n    }\n    if (iVar1 != 0x2b) {\n      if (iVar1 < 0x2c) {\n        if ((iVar1 == 0) || (iVar1 == 0x25)) goto LAB_000b1784;\n      }\n      else {\n        if (iVar1 == 0x2d) {\n          return *(int *)(PTR_js_00144e58 + 0x30);\n        }\n        if (iVar1 == 0x3f) {\n          iVar1 = get_job_by_name(name + 1,2);\n          return iVar1;\n        }\n      }\n      iVar1 = get_job_by_name(name,0);\n      return iVar1;\n    }\n  }\nLAB_000b1784:\n  return *(int *)(PTR_js_00144e58 + 0x2c);\n}" primitive_type (function_declarator "get_job_spec(WORD_LIST *list)" identifier (parameter_list "(WORD_LIST *list)" ( (parameter_declaration "WORD_LIST *list" type_identifier (pointer_declarator "*list" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  char *name;\n  \n  if (list != (WORD_LIST *)0x0) {\n    name = list->word->word;\n    iVar1 = (int)*name;\n    if (iVar1 == 0) {\n      return -1;\n    }\n    if (iVar1 == 0x25) {\n      iVar1 = (int)name[1];\n      name = name + 1;\n    }\n    if ((iVar1 - 0x30U & 0xff) < 10) {\n      iVar1 = (*(code *)PTR_all_digits_00144b1c)(name);\n      if (iVar1 != 0) {\n        iVar1 = (*(code *)PTR_strtol_00146220)(name,0,10);\n        if (iVar1 < 0) {\n          return -1;\n        }\n        if (*(int *)(PTR_js_00144e58 + 0x18) < iVar1) {\n          return -1;\n        }\n        return iVar1 + -1;\n      }\n      iVar1 = (int)*name;\n    }\n    if (iVar1 != 0x2b) {\n      if (iVar1 < 0x2c) {\n        if ((iVar1 == 0) || (iVar1 == 0x25)) goto LAB_000b1784;\n      }\n      else {\n        if (iVar1 == 0x2d) {\n          return *(int *)(PTR_js_00144e58 + 0x30);\n        }\n        if (iVar1 == 0x3f) {\n          iVar1 = get_job_by_name(name + 1,2);\n          return iVar1;\n        }\n      }\n      iVar1 = get_job_by_name(name,0);\n      return iVar1;\n    }\n  }\nLAB_000b1784:\n  return *(int *)(PTR_js_00144e58 + 0x2c);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *name;" primitive_type (pointer_declarator "*name" * identifier) ;) (if_statement "if (list != (WORD_LIST *)0x0) {\n    name = list->word->word;\n    iVar1 = (int)*name;\n    if (iVar1 == 0) {\n      return -1;\n    }\n    if (iVar1 == 0x25) {\n      iVar1 = (int)name[1];\n      name = name + 1;\n    }\n    if ((iVar1 - 0x30U & 0xff) < 10) {\n      iVar1 = (*(code *)PTR_all_digits_00144b1c)(name);\n      if (iVar1 != 0) {\n        iVar1 = (*(code *)PTR_strtol_00146220)(name,0,10);\n        if (iVar1 < 0) {\n          return -1;\n        }\n        if (*(int *)(PTR_js_00144e58 + 0x18) < iVar1) {\n          return -1;\n        }\n        return iVar1 + -1;\n      }\n      iVar1 = (int)*name;\n    }\n    if (iVar1 != 0x2b) {\n      if (iVar1 < 0x2c) {\n        if ((iVar1 == 0) || (iVar1 == 0x25)) goto LAB_000b1784;\n      }\n      else {\n        if (iVar1 == 0x2d) {\n          return *(int *)(PTR_js_00144e58 + 0x30);\n        }\n        if (iVar1 == 0x3f) {\n          iVar1 = get_job_by_name(name + 1,2);\n          return iVar1;\n        }\n      }\n      iVar1 = get_job_by_name(name,0);\n      return iVar1;\n    }\n  }" if (parenthesized_expression "(list != (WORD_LIST *)0x0)" ( (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    name = list->word->word;\n    iVar1 = (int)*name;\n    if (iVar1 == 0) {\n      return -1;\n    }\n    if (iVar1 == 0x25) {\n      iVar1 = (int)name[1];\n      name = name + 1;\n    }\n    if ((iVar1 - 0x30U & 0xff) < 10) {\n      iVar1 = (*(code *)PTR_all_digits_00144b1c)(name);\n      if (iVar1 != 0) {\n        iVar1 = (*(code *)PTR_strtol_00146220)(name,0,10);\n        if (iVar1 < 0) {\n          return -1;\n        }\n        if (*(int *)(PTR_js_00144e58 + 0x18) < iVar1) {\n          return -1;\n        }\n        return iVar1 + -1;\n      }\n      iVar1 = (int)*name;\n    }\n    if (iVar1 != 0x2b) {\n      if (iVar1 < 0x2c) {\n        if ((iVar1 == 0) || (iVar1 == 0x25)) goto LAB_000b1784;\n      }\n      else {\n        if (iVar1 == 0x2d) {\n          return *(int *)(PTR_js_00144e58 + 0x30);\n        }\n        if (iVar1 == 0x3f) {\n          iVar1 = get_job_by_name(name + 1,2);\n          return iVar1;\n        }\n      }\n      iVar1 = get_job_by_name(name,0);\n      return iVar1;\n    }\n  }" { (expression_statement "name = list->word->word;" (assignment_expression "name = list->word->word" identifier = (field_expression "list->word->word" (field_expression "list->word" identifier -> field_identifier) -> field_identifier)) ;) (expression_statement "iVar1 = (int)*name;" (assignment_expression "iVar1 = (int)*name" identifier = (cast_expression "(int)*name" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*name" * identifier))) ;) (if_statement "if (iVar1 == 0) {\n      return -1;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      return -1;\n    }" { (return_statement "return -1;" return number_literal ;) })) (if_statement "if (iVar1 == 0x25) {\n      iVar1 = (int)name[1];\n      name = name + 1;\n    }" if (parenthesized_expression "(iVar1 == 0x25)" ( (binary_expression "iVar1 == 0x25" identifier == number_literal) )) (compound_statement "{\n      iVar1 = (int)name[1];\n      name = name + 1;\n    }" { (expression_statement "iVar1 = (int)name[1];" (assignment_expression "iVar1 = (int)name[1]" identifier = (cast_expression "(int)name[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "name[1]" identifier [ number_literal ]))) ;) (expression_statement "name = name + 1;" (assignment_expression "name = name + 1" identifier = (binary_expression "name + 1" identifier + number_literal)) ;) })) (if_statement "if ((iVar1 - 0x30U & 0xff) < 10) {\n      iVar1 = (*(code *)PTR_all_digits_00144b1c)(name);\n      if (iVar1 != 0) {\n        iVar1 = (*(code *)PTR_strtol_00146220)(name,0,10);\n        if (iVar1 < 0) {\n          return -1;\n        }\n        if (*(int *)(PTR_js_00144e58 + 0x18) < iVar1) {\n          return -1;\n        }\n        return iVar1 + -1;\n      }\n      iVar1 = (int)*name;\n    }" if (parenthesized_expression "((iVar1 - 0x30U & 0xff) < 10)" ( (binary_expression "(iVar1 - 0x30U & 0xff) < 10" (parenthesized_expression "(iVar1 - 0x30U & 0xff)" ( (binary_expression "iVar1 - 0x30U & 0xff" (binary_expression "iVar1 - 0x30U" identifier - number_literal) & number_literal) )) < number_literal) )) (compound_statement "{\n      iVar1 = (*(code *)PTR_all_digits_00144b1c)(name);\n      if (iVar1 != 0) {\n        iVar1 = (*(code *)PTR_strtol_00146220)(name,0,10);\n        if (iVar1 < 0) {\n          return -1;\n        }\n        if (*(int *)(PTR_js_00144e58 + 0x18) < iVar1) {\n          return -1;\n        }\n        return iVar1 + -1;\n      }\n      iVar1 = (int)*name;\n    }" { (expression_statement "iVar1 = (*(code *)PTR_all_digits_00144b1c)(name);" (assignment_expression "iVar1 = (*(code *)PTR_all_digits_00144b1c)(name)" identifier = (call_expression "(*(code *)PTR_all_digits_00144b1c)(name)" (parenthesized_expression "(*(code *)PTR_all_digits_00144b1c)" ( (pointer_expression "*(code *)PTR_all_digits_00144b1c" * (cast_expression "(code *)PTR_all_digits_00144b1c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(name)" ( identifier )))) ;) (if_statement "if (iVar1 != 0) {\n        iVar1 = (*(code *)PTR_strtol_00146220)(name,0,10);\n        if (iVar1 < 0) {\n          return -1;\n        }\n        if (*(int *)(PTR_js_00144e58 + 0x18) < iVar1) {\n          return -1;\n        }\n        return iVar1 + -1;\n      }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        iVar1 = (*(code *)PTR_strtol_00146220)(name,0,10);\n        if (iVar1 < 0) {\n          return -1;\n        }\n        if (*(int *)(PTR_js_00144e58 + 0x18) < iVar1) {\n          return -1;\n        }\n        return iVar1 + -1;\n      }" { (expression_statement "iVar1 = (*(code *)PTR_strtol_00146220)(name,0,10);" (assignment_expression "iVar1 = (*(code *)PTR_strtol_00146220)(name,0,10)" identifier = (call_expression "(*(code *)PTR_strtol_00146220)(name,0,10)" (parenthesized_expression "(*(code *)PTR_strtol_00146220)" ( (pointer_expression "*(code *)PTR_strtol_00146220" * (cast_expression "(code *)PTR_strtol_00146220" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(name,0,10)" ( identifier , number_literal , number_literal )))) ;) (if_statement "if (iVar1 < 0) {\n          return -1;\n        }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n          return -1;\n        }" { (return_statement "return -1;" return number_literal ;) })) (if_statement "if (*(int *)(PTR_js_00144e58 + 0x18) < iVar1) {\n          return -1;\n        }" if (parenthesized_expression "(*(int *)(PTR_js_00144e58 + 0x18) < iVar1)" ( (binary_expression "*(int *)(PTR_js_00144e58 + 0x18) < iVar1" (pointer_expression "*(int *)(PTR_js_00144e58 + 0x18)" * (cast_expression "(int *)(PTR_js_00144e58 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_js_00144e58 + 0x18)" ( (binary_expression "PTR_js_00144e58 + 0x18" identifier + number_literal) )))) < identifier) )) (compound_statement "{\n          return -1;\n        }" { (return_statement "return -1;" return number_literal ;) })) (return_statement "return iVar1 + -1;" return (binary_expression "iVar1 + -1" identifier + number_literal) ;) })) (expression_statement "iVar1 = (int)*name;" (assignment_expression "iVar1 = (int)*name" identifier = (cast_expression "(int)*name" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*name" * identifier))) ;) })) (if_statement "if (iVar1 != 0x2b) {\n      if (iVar1 < 0x2c) {\n        if ((iVar1 == 0) || (iVar1 == 0x25)) goto LAB_000b1784;\n      }\n      else {\n        if (iVar1 == 0x2d) {\n          return *(int *)(PTR_js_00144e58 + 0x30);\n        }\n        if (iVar1 == 0x3f) {\n          iVar1 = get_job_by_name(name + 1,2);\n          return iVar1;\n        }\n      }\n      iVar1 = get_job_by_name(name,0);\n      return iVar1;\n    }" if (parenthesized_expression "(iVar1 != 0x2b)" ( (binary_expression "iVar1 != 0x2b" identifier != number_literal) )) (compound_statement "{\n      if (iVar1 < 0x2c) {\n        if ((iVar1 == 0) || (iVar1 == 0x25)) goto LAB_000b1784;\n      }\n      else {\n        if (iVar1 == 0x2d) {\n          return *(int *)(PTR_js_00144e58 + 0x30);\n        }\n        if (iVar1 == 0x3f) {\n          iVar1 = get_job_by_name(name + 1,2);\n          return iVar1;\n        }\n      }\n      iVar1 = get_job_by_name(name,0);\n      return iVar1;\n    }" { (if_statement "if (iVar1 < 0x2c) {\n        if ((iVar1 == 0) || (iVar1 == 0x25)) goto LAB_000b1784;\n      }\n      else {\n        if (iVar1 == 0x2d) {\n          return *(int *)(PTR_js_00144e58 + 0x30);\n        }\n        if (iVar1 == 0x3f) {\n          iVar1 = get_job_by_name(name + 1,2);\n          return iVar1;\n        }\n      }" if (parenthesized_expression "(iVar1 < 0x2c)" ( (binary_expression "iVar1 < 0x2c" identifier < number_literal) )) (compound_statement "{\n        if ((iVar1 == 0) || (iVar1 == 0x25)) goto LAB_000b1784;\n      }" { (if_statement "if ((iVar1 == 0) || (iVar1 == 0x25)) goto LAB_000b1784;" if (parenthesized_expression "((iVar1 == 0) || (iVar1 == 0x25))" ( (binary_expression "(iVar1 == 0) || (iVar1 == 0x25)" (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar1 == 0x25)" ( (binary_expression "iVar1 == 0x25" identifier == number_literal) ))) )) (goto_statement "goto LAB_000b1784;" goto statement_identifier ;)) }) (else_clause "else {\n        if (iVar1 == 0x2d) {\n          return *(int *)(PTR_js_00144e58 + 0x30);\n        }\n        if (iVar1 == 0x3f) {\n          iVar1 = get_job_by_name(name + 1,2);\n          return iVar1;\n        }\n      }" else (compound_statement "{\n        if (iVar1 == 0x2d) {\n          return *(int *)(PTR_js_00144e58 + 0x30);\n        }\n        if (iVar1 == 0x3f) {\n          iVar1 = get_job_by_name(name + 1,2);\n          return iVar1;\n        }\n      }" { (if_statement "if (iVar1 == 0x2d) {\n          return *(int *)(PTR_js_00144e58 + 0x30);\n        }" if (parenthesized_expression "(iVar1 == 0x2d)" ( (binary_expression "iVar1 == 0x2d" identifier == number_literal) )) (compound_statement "{\n          return *(int *)(PTR_js_00144e58 + 0x30);\n        }" { (return_statement "return *(int *)(PTR_js_00144e58 + 0x30);" return (pointer_expression "*(int *)(PTR_js_00144e58 + 0x30)" * (cast_expression "(int *)(PTR_js_00144e58 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_js_00144e58 + 0x30)" ( (binary_expression "PTR_js_00144e58 + 0x30" identifier + number_literal) )))) ;) })) (if_statement "if (iVar1 == 0x3f) {\n          iVar1 = get_job_by_name(name + 1,2);\n          return iVar1;\n        }" if (parenthesized_expression "(iVar1 == 0x3f)" ( (binary_expression "iVar1 == 0x3f" identifier == number_literal) )) (compound_statement "{\n          iVar1 = get_job_by_name(name + 1,2);\n          return iVar1;\n        }" { (expression_statement "iVar1 = get_job_by_name(name + 1,2);" (assignment_expression "iVar1 = get_job_by_name(name + 1,2)" identifier = (call_expression "get_job_by_name(name + 1,2)" identifier (argument_list "(name + 1,2)" ( (binary_expression "name + 1" identifier + number_literal) , number_literal )))) ;) (return_statement "return iVar1;" return identifier ;) })) }))) (expression_statement "iVar1 = get_job_by_name(name,0);" (assignment_expression "iVar1 = get_job_by_name(name,0)" identifier = (call_expression "get_job_by_name(name,0)" identifier (argument_list "(name,0)" ( identifier , number_literal )))) ;) (return_statement "return iVar1;" return identifier ;) })) })) (labeled_statement "LAB_000b1784:\n  return *(int *)(PTR_js_00144e58 + 0x2c);" statement_identifier : (return_statement "return *(int *)(PTR_js_00144e58 + 0x2c);" return (pointer_expression "*(int *)(PTR_js_00144e58 + 0x2c)" * (cast_expression "(int *)(PTR_js_00144e58 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_js_00144e58 + 0x2c)" ( (binary_expression "PTR_js_00144e58 + 0x2c" identifier + number_literal) )))) ;)) })))
(translation_unit "int get_job_spec(int param_1)\n\n{\n  int iVar1;\n  char *pcVar2;\n  \n  if (param_1 != 0) {\n    pcVar2 = (char *)**(undefined4 **)(param_1 + 4);\n    iVar1 = (int)*pcVar2;\n    if (iVar1 == 0) {\n      return -1;\n    }\n    if (iVar1 == 0x25) {\n      iVar1 = (int)pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }\n    if ((iVar1 - 0x30U & 0xff) < 10) {\n      iVar1 = (*(code *)PTR_all_digits_00144b1c)(pcVar2);\n      if (iVar1 != 0) {\n        iVar1 = (*(code *)PTR_strtol_00146220)(pcVar2,0,10);\n        if (iVar1 < 0) {\n          return -1;\n        }\n        if (*(int *)(PTR_js_00144e58 + 0x18) < iVar1) {\n          return -1;\n        }\n        return iVar1 + -1;\n      }\n      iVar1 = (int)*pcVar2;\n    }\n    if (iVar1 != 0x2b) {\n      if (iVar1 < 0x2c) {\n        if ((iVar1 == 0) || (iVar1 == 0x25)) goto LAB_000b1784;\n      }\n      else {\n        if (iVar1 == 0x2d) {\n          return *(int *)(PTR_js_00144e58 + 0x30);\n        }\n        if (iVar1 == 0x3f) {\n          iVar1 = get_job_by_name(pcVar2 + 1,2);\n          return iVar1;\n        }\n      }\n      iVar1 = get_job_by_name(pcVar2,0);\n      return iVar1;\n    }\n  }\nLAB_000b1784:\n  return *(int *)(PTR_js_00144e58 + 0x2c);\n}\n\n" (function_definition "int get_job_spec(int param_1)\n\n{\n  int iVar1;\n  char *pcVar2;\n  \n  if (param_1 != 0) {\n    pcVar2 = (char *)**(undefined4 **)(param_1 + 4);\n    iVar1 = (int)*pcVar2;\n    if (iVar1 == 0) {\n      return -1;\n    }\n    if (iVar1 == 0x25) {\n      iVar1 = (int)pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }\n    if ((iVar1 - 0x30U & 0xff) < 10) {\n      iVar1 = (*(code *)PTR_all_digits_00144b1c)(pcVar2);\n      if (iVar1 != 0) {\n        iVar1 = (*(code *)PTR_strtol_00146220)(pcVar2,0,10);\n        if (iVar1 < 0) {\n          return -1;\n        }\n        if (*(int *)(PTR_js_00144e58 + 0x18) < iVar1) {\n          return -1;\n        }\n        return iVar1 + -1;\n      }\n      iVar1 = (int)*pcVar2;\n    }\n    if (iVar1 != 0x2b) {\n      if (iVar1 < 0x2c) {\n        if ((iVar1 == 0) || (iVar1 == 0x25)) goto LAB_000b1784;\n      }\n      else {\n        if (iVar1 == 0x2d) {\n          return *(int *)(PTR_js_00144e58 + 0x30);\n        }\n        if (iVar1 == 0x3f) {\n          iVar1 = get_job_by_name(pcVar2 + 1,2);\n          return iVar1;\n        }\n      }\n      iVar1 = get_job_by_name(pcVar2,0);\n      return iVar1;\n    }\n  }\nLAB_000b1784:\n  return *(int *)(PTR_js_00144e58 + 0x2c);\n}" primitive_type (function_declarator "get_job_spec(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  \n  if (param_1 != 0) {\n    pcVar2 = (char *)**(undefined4 **)(param_1 + 4);\n    iVar1 = (int)*pcVar2;\n    if (iVar1 == 0) {\n      return -1;\n    }\n    if (iVar1 == 0x25) {\n      iVar1 = (int)pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }\n    if ((iVar1 - 0x30U & 0xff) < 10) {\n      iVar1 = (*(code *)PTR_all_digits_00144b1c)(pcVar2);\n      if (iVar1 != 0) {\n        iVar1 = (*(code *)PTR_strtol_00146220)(pcVar2,0,10);\n        if (iVar1 < 0) {\n          return -1;\n        }\n        if (*(int *)(PTR_js_00144e58 + 0x18) < iVar1) {\n          return -1;\n        }\n        return iVar1 + -1;\n      }\n      iVar1 = (int)*pcVar2;\n    }\n    if (iVar1 != 0x2b) {\n      if (iVar1 < 0x2c) {\n        if ((iVar1 == 0) || (iVar1 == 0x25)) goto LAB_000b1784;\n      }\n      else {\n        if (iVar1 == 0x2d) {\n          return *(int *)(PTR_js_00144e58 + 0x30);\n        }\n        if (iVar1 == 0x3f) {\n          iVar1 = get_job_by_name(pcVar2 + 1,2);\n          return iVar1;\n        }\n      }\n      iVar1 = get_job_by_name(pcVar2,0);\n      return iVar1;\n    }\n  }\nLAB_000b1784:\n  return *(int *)(PTR_js_00144e58 + 0x2c);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (if_statement "if (param_1 != 0) {\n    pcVar2 = (char *)**(undefined4 **)(param_1 + 4);\n    iVar1 = (int)*pcVar2;\n    if (iVar1 == 0) {\n      return -1;\n    }\n    if (iVar1 == 0x25) {\n      iVar1 = (int)pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }\n    if ((iVar1 - 0x30U & 0xff) < 10) {\n      iVar1 = (*(code *)PTR_all_digits_00144b1c)(pcVar2);\n      if (iVar1 != 0) {\n        iVar1 = (*(code *)PTR_strtol_00146220)(pcVar2,0,10);\n        if (iVar1 < 0) {\n          return -1;\n        }\n        if (*(int *)(PTR_js_00144e58 + 0x18) < iVar1) {\n          return -1;\n        }\n        return iVar1 + -1;\n      }\n      iVar1 = (int)*pcVar2;\n    }\n    if (iVar1 != 0x2b) {\n      if (iVar1 < 0x2c) {\n        if ((iVar1 == 0) || (iVar1 == 0x25)) goto LAB_000b1784;\n      }\n      else {\n        if (iVar1 == 0x2d) {\n          return *(int *)(PTR_js_00144e58 + 0x30);\n        }\n        if (iVar1 == 0x3f) {\n          iVar1 = get_job_by_name(pcVar2 + 1,2);\n          return iVar1;\n        }\n      }\n      iVar1 = get_job_by_name(pcVar2,0);\n      return iVar1;\n    }\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    pcVar2 = (char *)**(undefined4 **)(param_1 + 4);\n    iVar1 = (int)*pcVar2;\n    if (iVar1 == 0) {\n      return -1;\n    }\n    if (iVar1 == 0x25) {\n      iVar1 = (int)pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }\n    if ((iVar1 - 0x30U & 0xff) < 10) {\n      iVar1 = (*(code *)PTR_all_digits_00144b1c)(pcVar2);\n      if (iVar1 != 0) {\n        iVar1 = (*(code *)PTR_strtol_00146220)(pcVar2,0,10);\n        if (iVar1 < 0) {\n          return -1;\n        }\n        if (*(int *)(PTR_js_00144e58 + 0x18) < iVar1) {\n          return -1;\n        }\n        return iVar1 + -1;\n      }\n      iVar1 = (int)*pcVar2;\n    }\n    if (iVar1 != 0x2b) {\n      if (iVar1 < 0x2c) {\n        if ((iVar1 == 0) || (iVar1 == 0x25)) goto LAB_000b1784;\n      }\n      else {\n        if (iVar1 == 0x2d) {\n          return *(int *)(PTR_js_00144e58 + 0x30);\n        }\n        if (iVar1 == 0x3f) {\n          iVar1 = get_job_by_name(pcVar2 + 1,2);\n          return iVar1;\n        }\n      }\n      iVar1 = get_job_by_name(pcVar2,0);\n      return iVar1;\n    }\n  }" { (expression_statement "pcVar2 = (char *)**(undefined4 **)(param_1 + 4);" (assignment_expression "pcVar2 = (char *)**(undefined4 **)(param_1 + 4)" identifier = (cast_expression "(char *)**(undefined4 **)(param_1 + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "**(undefined4 **)(param_1 + 4)" * (pointer_expression "*(undefined4 **)(param_1 + 4)" * (cast_expression "(undefined4 **)(param_1 + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))))) ;) (expression_statement "iVar1 = (int)*pcVar2;" (assignment_expression "iVar1 = (int)*pcVar2" identifier = (cast_expression "(int)*pcVar2" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*pcVar2" * identifier))) ;) (if_statement "if (iVar1 == 0) {\n      return -1;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      return -1;\n    }" { (return_statement "return -1;" return number_literal ;) })) (if_statement "if (iVar1 == 0x25) {\n      iVar1 = (int)pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }" if (parenthesized_expression "(iVar1 == 0x25)" ( (binary_expression "iVar1 == 0x25" identifier == number_literal) )) (compound_statement "{\n      iVar1 = (int)pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }" { (expression_statement "iVar1 = (int)pcVar2[1];" (assignment_expression "iVar1 = (int)pcVar2[1]" identifier = (cast_expression "(int)pcVar2[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "pcVar2[1]" identifier [ number_literal ]))) ;) (expression_statement "pcVar2 = pcVar2 + 1;" (assignment_expression "pcVar2 = pcVar2 + 1" identifier = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) })) (if_statement "if ((iVar1 - 0x30U & 0xff) < 10) {\n      iVar1 = (*(code *)PTR_all_digits_00144b1c)(pcVar2);\n      if (iVar1 != 0) {\n        iVar1 = (*(code *)PTR_strtol_00146220)(pcVar2,0,10);\n        if (iVar1 < 0) {\n          return -1;\n        }\n        if (*(int *)(PTR_js_00144e58 + 0x18) < iVar1) {\n          return -1;\n        }\n        return iVar1 + -1;\n      }\n      iVar1 = (int)*pcVar2;\n    }" if (parenthesized_expression "((iVar1 - 0x30U & 0xff) < 10)" ( (binary_expression "(iVar1 - 0x30U & 0xff) < 10" (parenthesized_expression "(iVar1 - 0x30U & 0xff)" ( (binary_expression "iVar1 - 0x30U & 0xff" (binary_expression "iVar1 - 0x30U" identifier - number_literal) & number_literal) )) < number_literal) )) (compound_statement "{\n      iVar1 = (*(code *)PTR_all_digits_00144b1c)(pcVar2);\n      if (iVar1 != 0) {\n        iVar1 = (*(code *)PTR_strtol_00146220)(pcVar2,0,10);\n        if (iVar1 < 0) {\n          return -1;\n        }\n        if (*(int *)(PTR_js_00144e58 + 0x18) < iVar1) {\n          return -1;\n        }\n        return iVar1 + -1;\n      }\n      iVar1 = (int)*pcVar2;\n    }" { (expression_statement "iVar1 = (*(code *)PTR_all_digits_00144b1c)(pcVar2);" (assignment_expression "iVar1 = (*(code *)PTR_all_digits_00144b1c)(pcVar2)" identifier = (call_expression "(*(code *)PTR_all_digits_00144b1c)(pcVar2)" (parenthesized_expression "(*(code *)PTR_all_digits_00144b1c)" ( (pointer_expression "*(code *)PTR_all_digits_00144b1c" * (cast_expression "(code *)PTR_all_digits_00144b1c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar2)" ( identifier )))) ;) (if_statement "if (iVar1 != 0) {\n        iVar1 = (*(code *)PTR_strtol_00146220)(pcVar2,0,10);\n        if (iVar1 < 0) {\n          return -1;\n        }\n        if (*(int *)(PTR_js_00144e58 + 0x18) < iVar1) {\n          return -1;\n        }\n        return iVar1 + -1;\n      }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        iVar1 = (*(code *)PTR_strtol_00146220)(pcVar2,0,10);\n        if (iVar1 < 0) {\n          return -1;\n        }\n        if (*(int *)(PTR_js_00144e58 + 0x18) < iVar1) {\n          return -1;\n        }\n        return iVar1 + -1;\n      }" { (expression_statement "iVar1 = (*(code *)PTR_strtol_00146220)(pcVar2,0,10);" (assignment_expression "iVar1 = (*(code *)PTR_strtol_00146220)(pcVar2,0,10)" identifier = (call_expression "(*(code *)PTR_strtol_00146220)(pcVar2,0,10)" (parenthesized_expression "(*(code *)PTR_strtol_00146220)" ( (pointer_expression "*(code *)PTR_strtol_00146220" * (cast_expression "(code *)PTR_strtol_00146220" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar2,0,10)" ( identifier , number_literal , number_literal )))) ;) (if_statement "if (iVar1 < 0) {\n          return -1;\n        }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n          return -1;\n        }" { (return_statement "return -1;" return number_literal ;) })) (if_statement "if (*(int *)(PTR_js_00144e58 + 0x18) < iVar1) {\n          return -1;\n        }" if (parenthesized_expression "(*(int *)(PTR_js_00144e58 + 0x18) < iVar1)" ( (binary_expression "*(int *)(PTR_js_00144e58 + 0x18) < iVar1" (pointer_expression "*(int *)(PTR_js_00144e58 + 0x18)" * (cast_expression "(int *)(PTR_js_00144e58 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_js_00144e58 + 0x18)" ( (binary_expression "PTR_js_00144e58 + 0x18" identifier + number_literal) )))) < identifier) )) (compound_statement "{\n          return -1;\n        }" { (return_statement "return -1;" return number_literal ;) })) (return_statement "return iVar1 + -1;" return (binary_expression "iVar1 + -1" identifier + number_literal) ;) })) (expression_statement "iVar1 = (int)*pcVar2;" (assignment_expression "iVar1 = (int)*pcVar2" identifier = (cast_expression "(int)*pcVar2" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*pcVar2" * identifier))) ;) })) (if_statement "if (iVar1 != 0x2b) {\n      if (iVar1 < 0x2c) {\n        if ((iVar1 == 0) || (iVar1 == 0x25)) goto LAB_000b1784;\n      }\n      else {\n        if (iVar1 == 0x2d) {\n          return *(int *)(PTR_js_00144e58 + 0x30);\n        }\n        if (iVar1 == 0x3f) {\n          iVar1 = get_job_by_name(pcVar2 + 1,2);\n          return iVar1;\n        }\n      }\n      iVar1 = get_job_by_name(pcVar2,0);\n      return iVar1;\n    }" if (parenthesized_expression "(iVar1 != 0x2b)" ( (binary_expression "iVar1 != 0x2b" identifier != number_literal) )) (compound_statement "{\n      if (iVar1 < 0x2c) {\n        if ((iVar1 == 0) || (iVar1 == 0x25)) goto LAB_000b1784;\n      }\n      else {\n        if (iVar1 == 0x2d) {\n          return *(int *)(PTR_js_00144e58 + 0x30);\n        }\n        if (iVar1 == 0x3f) {\n          iVar1 = get_job_by_name(pcVar2 + 1,2);\n          return iVar1;\n        }\n      }\n      iVar1 = get_job_by_name(pcVar2,0);\n      return iVar1;\n    }" { (if_statement "if (iVar1 < 0x2c) {\n        if ((iVar1 == 0) || (iVar1 == 0x25)) goto LAB_000b1784;\n      }\n      else {\n        if (iVar1 == 0x2d) {\n          return *(int *)(PTR_js_00144e58 + 0x30);\n        }\n        if (iVar1 == 0x3f) {\n          iVar1 = get_job_by_name(pcVar2 + 1,2);\n          return iVar1;\n        }\n      }" if (parenthesized_expression "(iVar1 < 0x2c)" ( (binary_expression "iVar1 < 0x2c" identifier < number_literal) )) (compound_statement "{\n        if ((iVar1 == 0) || (iVar1 == 0x25)) goto LAB_000b1784;\n      }" { (if_statement "if ((iVar1 == 0) || (iVar1 == 0x25)) goto LAB_000b1784;" if (parenthesized_expression "((iVar1 == 0) || (iVar1 == 0x25))" ( (binary_expression "(iVar1 == 0) || (iVar1 == 0x25)" (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar1 == 0x25)" ( (binary_expression "iVar1 == 0x25" identifier == number_literal) ))) )) (goto_statement "goto LAB_000b1784;" goto statement_identifier ;)) }) (else_clause "else {\n        if (iVar1 == 0x2d) {\n          return *(int *)(PTR_js_00144e58 + 0x30);\n        }\n        if (iVar1 == 0x3f) {\n          iVar1 = get_job_by_name(pcVar2 + 1,2);\n          return iVar1;\n        }\n      }" else (compound_statement "{\n        if (iVar1 == 0x2d) {\n          return *(int *)(PTR_js_00144e58 + 0x30);\n        }\n        if (iVar1 == 0x3f) {\n          iVar1 = get_job_by_name(pcVar2 + 1,2);\n          return iVar1;\n        }\n      }" { (if_statement "if (iVar1 == 0x2d) {\n          return *(int *)(PTR_js_00144e58 + 0x30);\n        }" if (parenthesized_expression "(iVar1 == 0x2d)" ( (binary_expression "iVar1 == 0x2d" identifier == number_literal) )) (compound_statement "{\n          return *(int *)(PTR_js_00144e58 + 0x30);\n        }" { (return_statement "return *(int *)(PTR_js_00144e58 + 0x30);" return (pointer_expression "*(int *)(PTR_js_00144e58 + 0x30)" * (cast_expression "(int *)(PTR_js_00144e58 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_js_00144e58 + 0x30)" ( (binary_expression "PTR_js_00144e58 + 0x30" identifier + number_literal) )))) ;) })) (if_statement "if (iVar1 == 0x3f) {\n          iVar1 = get_job_by_name(pcVar2 + 1,2);\n          return iVar1;\n        }" if (parenthesized_expression "(iVar1 == 0x3f)" ( (binary_expression "iVar1 == 0x3f" identifier == number_literal) )) (compound_statement "{\n          iVar1 = get_job_by_name(pcVar2 + 1,2);\n          return iVar1;\n        }" { (expression_statement "iVar1 = get_job_by_name(pcVar2 + 1,2);" (assignment_expression "iVar1 = get_job_by_name(pcVar2 + 1,2)" identifier = (call_expression "get_job_by_name(pcVar2 + 1,2)" identifier (argument_list "(pcVar2 + 1,2)" ( (binary_expression "pcVar2 + 1" identifier + number_literal) , number_literal )))) ;) (return_statement "return iVar1;" return identifier ;) })) }))) (expression_statement "iVar1 = get_job_by_name(pcVar2,0);" (assignment_expression "iVar1 = get_job_by_name(pcVar2,0)" identifier = (call_expression "get_job_by_name(pcVar2,0)" identifier (argument_list "(pcVar2,0)" ( identifier , number_literal )))) ;) (return_statement "return iVar1;" return identifier ;) })) })) (labeled_statement "LAB_000b1784:\n  return *(int *)(PTR_js_00144e58 + 0x2c);" statement_identifier : (return_statement "return *(int *)(PTR_js_00144e58 + 0x2c);" return (pointer_expression "*(int *)(PTR_js_00144e58 + 0x2c)" * (cast_expression "(int *)(PTR_js_00144e58 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_js_00144e58 + 0x2c)" ( (binary_expression "PTR_js_00144e58 + 0x2c" identifier + number_literal) )))) ;)) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) & LIT) )) < 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 ( 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 ( IDENT , LIT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < IDENT) )) (compound_statement { (return_statement return LIT ;) })) (return_statement return (binary_expression IDENT + LIT) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * IDENT))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , LIT )))) ;) (return_statement return IDENT ;) })) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (return_statement return IDENT ;) })) })) (labeled_statement statement_identifier : (return_statement return (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;)) })))
(function_definition "int get_job_spec(int param_1)\n\n{\n  int iVar1;\n  char *pcVar2;\n  \n  if (param_1 != 0) {\n    pcVar2 = (char *)**(undefined4 **)(param_1 + 4);\n    iVar1 = (int)*pcVar2;\n    if (iVar1 == 0) {\n      return -1;\n    }\n    if (iVar1 == 0x25) {\n      iVar1 = (int)pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }\n    if ((iVar1 - 0x30U & 0xff) < 10) {\n      iVar1 = (*(code *)PTR_all_digits_00144b1c)(pcVar2);\n      if (iVar1 != 0) {\n        iVar1 = (*(code *)PTR_strtol_00146220)(pcVar2,0,10);\n        if (iVar1 < 0) {\n          return -1;\n        }\n        if (*(int *)(PTR_js_00144e58 + 0x18) < iVar1) {\n          return -1;\n        }\n        return iVar1 + -1;\n      }\n      iVar1 = (int)*pcVar2;\n    }\n    if (iVar1 != 0x2b) {\n      if (iVar1 < 0x2c) {\n        if ((iVar1 == 0) || (iVar1 == 0x25)) goto LAB_000b1784;\n      }\n      else {\n        if (iVar1 == 0x2d) {\n          return *(int *)(PTR_js_00144e58 + 0x30);\n        }\n        if (iVar1 == 0x3f) {\n          iVar1 = get_job_by_name(pcVar2 + 1,2);\n          return iVar1;\n        }\n      }\n      iVar1 = get_job_by_name(pcVar2,0);\n      return iVar1;\n    }\n  }\nLAB_000b1784:\n  return *(int *)(PTR_js_00144e58 + 0x2c);\n}" (primitive_type "int") (function_declarator "get_job_spec(int param_1)" (identifier "get_job_spec") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  \n  if (param_1 != 0) {\n    pcVar2 = (char *)**(undefined4 **)(param_1 + 4);\n    iVar1 = (int)*pcVar2;\n    if (iVar1 == 0) {\n      return -1;\n    }\n    if (iVar1 == 0x25) {\n      iVar1 = (int)pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }\n    if ((iVar1 - 0x30U & 0xff) < 10) {\n      iVar1 = (*(code *)PTR_all_digits_00144b1c)(pcVar2);\n      if (iVar1 != 0) {\n        iVar1 = (*(code *)PTR_strtol_00146220)(pcVar2,0,10);\n        if (iVar1 < 0) {\n          return -1;\n        }\n        if (*(int *)(PTR_js_00144e58 + 0x18) < iVar1) {\n          return -1;\n        }\n        return iVar1 + -1;\n      }\n      iVar1 = (int)*pcVar2;\n    }\n    if (iVar1 != 0x2b) {\n      if (iVar1 < 0x2c) {\n        if ((iVar1 == 0) || (iVar1 == 0x25)) goto LAB_000b1784;\n      }\n      else {\n        if (iVar1 == 0x2d) {\n          return *(int *)(PTR_js_00144e58 + 0x30);\n        }\n        if (iVar1 == 0x3f) {\n          iVar1 = get_job_by_name(pcVar2 + 1,2);\n          return iVar1;\n        }\n      }\n      iVar1 = get_job_by_name(pcVar2,0);\n      return iVar1;\n    }\n  }\nLAB_000b1784:\n  return *(int *)(PTR_js_00144e58 + 0x2c);\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (if_statement "if (param_1 != 0) {\n    pcVar2 = (char *)**(undefined4 **)(param_1 + 4);\n    iVar1 = (int)*pcVar2;\n    if (iVar1 == 0) {\n      return -1;\n    }\n    if (iVar1 == 0x25) {\n      iVar1 = (int)pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }\n    if ((iVar1 - 0x30U & 0xff) < 10) {\n      iVar1 = (*(code *)PTR_all_digits_00144b1c)(pcVar2);\n      if (iVar1 != 0) {\n        iVar1 = (*(code *)PTR_strtol_00146220)(pcVar2,0,10);\n        if (iVar1 < 0) {\n          return -1;\n        }\n        if (*(int *)(PTR_js_00144e58 + 0x18) < iVar1) {\n          return -1;\n        }\n        return iVar1 + -1;\n      }\n      iVar1 = (int)*pcVar2;\n    }\n    if (iVar1 != 0x2b) {\n      if (iVar1 < 0x2c) {\n        if ((iVar1 == 0) || (iVar1 == 0x25)) goto LAB_000b1784;\n      }\n      else {\n        if (iVar1 == 0x2d) {\n          return *(int *)(PTR_js_00144e58 + 0x30);\n        }\n        if (iVar1 == 0x3f) {\n          iVar1 = get_job_by_name(pcVar2 + 1,2);\n          return iVar1;\n        }\n      }\n      iVar1 = get_job_by_name(pcVar2,0);\n      return iVar1;\n    }\n  }" (if "if") (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    pcVar2 = (char *)**(undefined4 **)(param_1 + 4);\n    iVar1 = (int)*pcVar2;\n    if (iVar1 == 0) {\n      return -1;\n    }\n    if (iVar1 == 0x25) {\n      iVar1 = (int)pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }\n    if ((iVar1 - 0x30U & 0xff) < 10) {\n      iVar1 = (*(code *)PTR_all_digits_00144b1c)(pcVar2);\n      if (iVar1 != 0) {\n        iVar1 = (*(code *)PTR_strtol_00146220)(pcVar2,0,10);\n        if (iVar1 < 0) {\n          return -1;\n        }\n        if (*(int *)(PTR_js_00144e58 + 0x18) < iVar1) {\n          return -1;\n        }\n        return iVar1 + -1;\n      }\n      iVar1 = (int)*pcVar2;\n    }\n    if (iVar1 != 0x2b) {\n      if (iVar1 < 0x2c) {\n        if ((iVar1 == 0) || (iVar1 == 0x25)) goto LAB_000b1784;\n      }\n      else {\n        if (iVar1 == 0x2d) {\n          return *(int *)(PTR_js_00144e58 + 0x30);\n        }\n        if (iVar1 == 0x3f) {\n          iVar1 = get_job_by_name(pcVar2 + 1,2);\n          return iVar1;\n        }\n      }\n      iVar1 = get_job_by_name(pcVar2,0);\n      return iVar1;\n    }\n  }" ({ "{") (expression_statement "pcVar2 = (char *)**(undefined4 **)(param_1 + 4);" (assignment_expression "pcVar2 = (char *)**(undefined4 **)(param_1 + 4)" (identifier "pcVar2") (= "=") (cast_expression "(char *)**(undefined4 **)(param_1 + 4)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "**(undefined4 **)(param_1 + 4)" (* "*") (pointer_expression "*(undefined4 **)(param_1 + 4)" (* "*") (cast_expression "(undefined4 **)(param_1 + 4)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))))) (; ";")) (expression_statement "iVar1 = (int)*pcVar2;" (assignment_expression "iVar1 = (int)*pcVar2" (identifier "iVar1") (= "=") (cast_expression "(int)*pcVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2")))) (; ";")) (if_statement "if (iVar1 == 0) {\n      return -1;\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return -1;\n    }" ({ "{") (return_statement "return -1;" (return "return") (number_literal "-1") (; ";")) (} "}"))) (if_statement "if (iVar1 == 0x25) {\n      iVar1 = (int)pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }" (if "if") (parenthesized_expression "(iVar1 == 0x25)" (( "(") (binary_expression "iVar1 == 0x25" (identifier "iVar1") (== "==") (number_literal "0x25")) () ")")) (compound_statement "{\n      iVar1 = (int)pcVar2[1];\n      pcVar2 = pcVar2 + 1;\n    }" ({ "{") (expression_statement "iVar1 = (int)pcVar2[1];" (assignment_expression "iVar1 = (int)pcVar2[1]" (identifier "iVar1") (= "=") (cast_expression "(int)pcVar2[1]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "pcVar2[1]" (identifier "pcVar2") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "pcVar2 = pcVar2 + 1;" (assignment_expression "pcVar2 = pcVar2 + 1" (identifier "pcVar2") (= "=") (binary_expression "pcVar2 + 1" (identifier "pcVar2") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (if_statement "if ((iVar1 - 0x30U & 0xff) < 10) {\n      iVar1 = (*(code *)PTR_all_digits_00144b1c)(pcVar2);\n      if (iVar1 != 0) {\n        iVar1 = (*(code *)PTR_strtol_00146220)(pcVar2,0,10);\n        if (iVar1 < 0) {\n          return -1;\n        }\n        if (*(int *)(PTR_js_00144e58 + 0x18) < iVar1) {\n          return -1;\n        }\n        return iVar1 + -1;\n      }\n      iVar1 = (int)*pcVar2;\n    }" (if "if") (parenthesized_expression "((iVar1 - 0x30U & 0xff) < 10)" (( "(") (binary_expression "(iVar1 - 0x30U & 0xff) < 10" (parenthesized_expression "(iVar1 - 0x30U & 0xff)" (( "(") (binary_expression "iVar1 - 0x30U & 0xff" (binary_expression "iVar1 - 0x30U" (identifier "iVar1") (- "-") (number_literal "0x30U")) (& "&") (number_literal "0xff")) () ")")) (< "<") (number_literal "10")) () ")")) (compound_statement "{\n      iVar1 = (*(code *)PTR_all_digits_00144b1c)(pcVar2);\n      if (iVar1 != 0) {\n        iVar1 = (*(code *)PTR_strtol_00146220)(pcVar2,0,10);\n        if (iVar1 < 0) {\n          return -1;\n        }\n        if (*(int *)(PTR_js_00144e58 + 0x18) < iVar1) {\n          return -1;\n        }\n        return iVar1 + -1;\n      }\n      iVar1 = (int)*pcVar2;\n    }" ({ "{") (expression_statement "iVar1 = (*(code *)PTR_all_digits_00144b1c)(pcVar2);" (assignment_expression "iVar1 = (*(code *)PTR_all_digits_00144b1c)(pcVar2)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_all_digits_00144b1c)(pcVar2)" (parenthesized_expression "(*(code *)PTR_all_digits_00144b1c)" (( "(") (pointer_expression "*(code *)PTR_all_digits_00144b1c" (* "*") (cast_expression "(code *)PTR_all_digits_00144b1c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_all_digits_00144b1c"))) () ")")) (argument_list "(pcVar2)" (( "(") (identifier "pcVar2") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n        iVar1 = (*(code *)PTR_strtol_00146220)(pcVar2,0,10);\n        if (iVar1 < 0) {\n          return -1;\n        }\n        if (*(int *)(PTR_js_00144e58 + 0x18) < iVar1) {\n          return -1;\n        }\n        return iVar1 + -1;\n      }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        iVar1 = (*(code *)PTR_strtol_00146220)(pcVar2,0,10);\n        if (iVar1 < 0) {\n          return -1;\n        }\n        if (*(int *)(PTR_js_00144e58 + 0x18) < iVar1) {\n          return -1;\n        }\n        return iVar1 + -1;\n      }" ({ "{") (expression_statement "iVar1 = (*(code *)PTR_strtol_00146220)(pcVar2,0,10);" (assignment_expression "iVar1 = (*(code *)PTR_strtol_00146220)(pcVar2,0,10)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_strtol_00146220)(pcVar2,0,10)" (parenthesized_expression "(*(code *)PTR_strtol_00146220)" (( "(") (pointer_expression "*(code *)PTR_strtol_00146220" (* "*") (cast_expression "(code *)PTR_strtol_00146220" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strtol_00146220"))) () ")")) (argument_list "(pcVar2,0,10)" (( "(") (identifier "pcVar2") (, ",") (number_literal "0") (, ",") (number_literal "10") () ")")))) (; ";")) (if_statement "if (iVar1 < 0) {\n          return -1;\n        }" (if "if") (parenthesized_expression "(iVar1 < 0)" (( "(") (binary_expression "iVar1 < 0" (identifier "iVar1") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n          return -1;\n        }" ({ "{") (return_statement "return -1;" (return "return") (number_literal "-1") (; ";")) (} "}"))) (if_statement "if (*(int *)(PTR_js_00144e58 + 0x18) < iVar1) {\n          return -1;\n        }" (if "if") (parenthesized_expression "(*(int *)(PTR_js_00144e58 + 0x18) < iVar1)" (( "(") (binary_expression "*(int *)(PTR_js_00144e58 + 0x18) < iVar1" (pointer_expression "*(int *)(PTR_js_00144e58 + 0x18)" (* "*") (cast_expression "(int *)(PTR_js_00144e58 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_js_00144e58 + 0x18)" (( "(") (binary_expression "PTR_js_00144e58 + 0x18" (identifier "PTR_js_00144e58") (+ "+") (number_literal "0x18")) () ")")))) (< "<") (identifier "iVar1")) () ")")) (compound_statement "{\n          return -1;\n        }" ({ "{") (return_statement "return -1;" (return "return") (number_literal "-1") (; ";")) (} "}"))) (return_statement "return iVar1 + -1;" (return "return") (binary_expression "iVar1 + -1" (identifier "iVar1") (+ "+") (number_literal "-1")) (; ";")) (} "}"))) (expression_statement "iVar1 = (int)*pcVar2;" (assignment_expression "iVar1 = (int)*pcVar2" (identifier "iVar1") (= "=") (cast_expression "(int)*pcVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2")))) (; ";")) (} "}"))) (if_statement "if (iVar1 != 0x2b) {\n      if (iVar1 < 0x2c) {\n        if ((iVar1 == 0) || (iVar1 == 0x25)) goto LAB_000b1784;\n      }\n      else {\n        if (iVar1 == 0x2d) {\n          return *(int *)(PTR_js_00144e58 + 0x30);\n        }\n        if (iVar1 == 0x3f) {\n          iVar1 = get_job_by_name(pcVar2 + 1,2);\n          return iVar1;\n        }\n      }\n      iVar1 = get_job_by_name(pcVar2,0);\n      return iVar1;\n    }" (if "if") (parenthesized_expression "(iVar1 != 0x2b)" (( "(") (binary_expression "iVar1 != 0x2b" (identifier "iVar1") (!= "!=") (number_literal "0x2b")) () ")")) (compound_statement "{\n      if (iVar1 < 0x2c) {\n        if ((iVar1 == 0) || (iVar1 == 0x25)) goto LAB_000b1784;\n      }\n      else {\n        if (iVar1 == 0x2d) {\n          return *(int *)(PTR_js_00144e58 + 0x30);\n        }\n        if (iVar1 == 0x3f) {\n          iVar1 = get_job_by_name(pcVar2 + 1,2);\n          return iVar1;\n        }\n      }\n      iVar1 = get_job_by_name(pcVar2,0);\n      return iVar1;\n    }" ({ "{") (if_statement "if (iVar1 < 0x2c) {\n        if ((iVar1 == 0) || (iVar1 == 0x25)) goto LAB_000b1784;\n      }\n      else {\n        if (iVar1 == 0x2d) {\n          return *(int *)(PTR_js_00144e58 + 0x30);\n        }\n        if (iVar1 == 0x3f) {\n          iVar1 = get_job_by_name(pcVar2 + 1,2);\n          return iVar1;\n        }\n      }" (if "if") (parenthesized_expression "(iVar1 < 0x2c)" (( "(") (binary_expression "iVar1 < 0x2c" (identifier "iVar1") (< "<") (number_literal "0x2c")) () ")")) (compound_statement "{\n        if ((iVar1 == 0) || (iVar1 == 0x25)) goto LAB_000b1784;\n      }" ({ "{") (if_statement "if ((iVar1 == 0) || (iVar1 == 0x25)) goto LAB_000b1784;" (if "if") (parenthesized_expression "((iVar1 == 0) || (iVar1 == 0x25))" (( "(") (binary_expression "(iVar1 == 0) || (iVar1 == 0x25)" (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(iVar1 == 0x25)" (( "(") (binary_expression "iVar1 == 0x25" (identifier "iVar1") (== "==") (number_literal "0x25")) () ")"))) () ")")) (goto_statement "goto LAB_000b1784;" (goto "goto") (statement_identifier "LAB_000b1784") (; ";"))) (} "}")) (else_clause "else {\n        if (iVar1 == 0x2d) {\n          return *(int *)(PTR_js_00144e58 + 0x30);\n        }\n        if (iVar1 == 0x3f) {\n          iVar1 = get_job_by_name(pcVar2 + 1,2);\n          return iVar1;\n        }\n      }" (else "else") (compound_statement "{\n        if (iVar1 == 0x2d) {\n          return *(int *)(PTR_js_00144e58 + 0x30);\n        }\n        if (iVar1 == 0x3f) {\n          iVar1 = get_job_by_name(pcVar2 + 1,2);\n          return iVar1;\n        }\n      }" ({ "{") (if_statement "if (iVar1 == 0x2d) {\n          return *(int *)(PTR_js_00144e58 + 0x30);\n        }" (if "if") (parenthesized_expression "(iVar1 == 0x2d)" (( "(") (binary_expression "iVar1 == 0x2d" (identifier "iVar1") (== "==") (number_literal "0x2d")) () ")")) (compound_statement "{\n          return *(int *)(PTR_js_00144e58 + 0x30);\n        }" ({ "{") (return_statement "return *(int *)(PTR_js_00144e58 + 0x30);" (return "return") (pointer_expression "*(int *)(PTR_js_00144e58 + 0x30)" (* "*") (cast_expression "(int *)(PTR_js_00144e58 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_js_00144e58 + 0x30)" (( "(") (binary_expression "PTR_js_00144e58 + 0x30" (identifier "PTR_js_00144e58") (+ "+") (number_literal "0x30")) () ")")))) (; ";")) (} "}"))) (if_statement "if (iVar1 == 0x3f) {\n          iVar1 = get_job_by_name(pcVar2 + 1,2);\n          return iVar1;\n        }" (if "if") (parenthesized_expression "(iVar1 == 0x3f)" (( "(") (binary_expression "iVar1 == 0x3f" (identifier "iVar1") (== "==") (number_literal "0x3f")) () ")")) (compound_statement "{\n          iVar1 = get_job_by_name(pcVar2 + 1,2);\n          return iVar1;\n        }" ({ "{") (expression_statement "iVar1 = get_job_by_name(pcVar2 + 1,2);" (assignment_expression "iVar1 = get_job_by_name(pcVar2 + 1,2)" (identifier "iVar1") (= "=") (call_expression "get_job_by_name(pcVar2 + 1,2)" (identifier "get_job_by_name") (argument_list "(pcVar2 + 1,2)" (( "(") (binary_expression "pcVar2 + 1" (identifier "pcVar2") (+ "+") (number_literal "1")) (, ",") (number_literal "2") () ")")))) (; ";")) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (} "}")))) (expression_statement "iVar1 = get_job_by_name(pcVar2,0);" (assignment_expression "iVar1 = get_job_by_name(pcVar2,0)" (identifier "iVar1") (= "=") (call_expression "get_job_by_name(pcVar2,0)" (identifier "get_job_by_name") (argument_list "(pcVar2,0)" (( "(") (identifier "pcVar2") (, ",") (number_literal "0") () ")")))) (; ";")) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (} "}"))) (labeled_statement "LAB_000b1784:\n  return *(int *)(PTR_js_00144e58 + 0x2c);" (statement_identifier "LAB_000b1784") (: ":") (return_statement "return *(int *)(PTR_js_00144e58 + 0x2c);" (return "return") (pointer_expression "*(int *)(PTR_js_00144e58 + 0x2c)" (* "*") (cast_expression "(int *)(PTR_js_00144e58 + 0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_js_00144e58 + 0x2c)" (( "(") (binary_expression "PTR_js_00144e58 + 0x2c" (identifier "PTR_js_00144e58") (+ "+") (number_literal "0x2c")) () ")")))) (; ";"))) (} "}")))
(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: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (pointer_expression argument: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) 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 (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 (identifier) (number_literal) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) consequence: (compound_statement (return_statement (number_literal)))) (return_statement (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (pointer_expression argument: (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (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: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) consequence: (goto_statement label: (statement_identifier)))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (number_literal))))) (return_statement (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (return_statement (identifier)))))) (labeled_statement label: (statement_identifier) (return_statement (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))))

int MASKED(int param_1)

{
  int iVar1;
  char *pcVar2;
  
  if (param_1 != 0) {
    pcVar2 = (char *)**(undefined4 **)(param_1 + 4);
    iVar1 = (int)*pcVar2;
    if (iVar1 == 0) {
      return -1;
    }
    if (iVar1 == 0x25) {
      iVar1 = (int)pcVar2[1];
      pcVar2 = pcVar2 + 1;
    }
    if ((iVar1 - 0x30U & 0xff) < 10) {
      iVar1 = (*(code *)PTR_all_digits_00144b1c)(pcVar2);
      if (iVar1 != 0) {
        iVar1 = (*(code *)PTR_strtol_00146220)(pcVar2,0,10);
        if (iVar1 < 0) {
          return -1;
        }
        if (*(int *)(PTR_js_00144e58 + 0x18) < iVar1) {
          return -1;
        }
        return iVar1 + -1;
      }
      iVar1 = (int)*pcVar2;
    }
    if (iVar1 != 0x2b) {
      if (iVar1 < 0x2c) {
        if ((iVar1 == 0) || (iVar1 == 0x25)) goto LAB_000b1784;
      }
      else {
        if (iVar1 == 0x2d) {
          return *(int *)(PTR_js_00144e58 + 0x30);
        }
        if (iVar1 == 0x3f) {
          iVar1 = get_job_by_name(pcVar2 + 1,2);
          return iVar1;
        }
      }
      iVar1 = get_job_by_name(pcVar2,0);
      return iVar1;
    }
  }
LAB_000b1784:
  return *(int *)(PTR_js_00144e58 + 0x2c);
}

