
PROCESS * find_last_proc(int job,int block)

{
  PROCESS *pPVar1;
  PROCESS *pPVar2;
  PROCESS *pPVar3;
  PROCESS *pPVar4;
  
  pPVar4 = *(PROCESS **)(*(int *)(*(int *)PTR_jobs_00144e5c + job * 4) + 4);
  pPVar3 = (PROCESS *)0x0;
  if (pPVar4 != (PROCESS *)0x0) {
    pPVar2 = pPVar4->next;
    pPVar1 = pPVar4->next;
    while( true ) {
      pPVar3 = pPVar2;
      if (pPVar4 == pPVar3) {
        return pPVar1;
      }
      if (pPVar3 == (PROCESS *)0x0) break;
      pPVar2 = pPVar3->next;
      pPVar1 = pPVar3;
    }
  }
  return pPVar3;
}



int * FUN_00065a6c(int param_1)

{
  int *piVar1;
  int *piVar2;
  int *piVar3;
  int *piVar4;
  
  piVar4 = *(int **)(*(int *)(*(int *)PTR_jobs_00144e5c + param_1 * 4) + 4);
  piVar3 = (int *)0x0;
  if (piVar4 != (int *)0x0) {
    piVar2 = (int *)*piVar4;
    piVar1 = (int *)*piVar4;
    while( true ) {
      piVar3 = piVar2;
      if (piVar4 == piVar3) {
        return piVar1;
      }
      if (piVar3 == (int *)0x0) break;
      piVar2 = (int *)*piVar3;
      piVar1 = piVar3;
    }
  }
  return piVar3;
}


lui gp,0xe
addiu gp,gp,0x6ad4
addu gp,gp,t9
lw v0,-0x76e4(gp)
sll a0,a0,0x2
lw v0,0x0(v0)
addu v0,v0,a0
lw v0,0x0(v0)
lw a0,0x4(v0)
beq a0,zero,0x00065ac4
_or v0,zero,zero
lw v0,0x0(a0)
bne a0,v0,0x00065abc
_nop
b 0x00065ad4
_nop
lw v1,0x0(v0)
beq a0,v1,0x00065ad4
_nop
or v0,v1,zero
bne v0,zero,0x00065aac
_nop
jr ra
_nop
jr ra
_nop
(translation_unit "int * FUN_00065a6c(int param_1)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int *piVar3;\n  int *piVar4;\n  \n  piVar4 = *(int **)(*(int *)(*(int *)PTR_jobs_00144e5c + param_1 * 4) + 4);\n  piVar3 = (int *)0x0;\n  if (piVar4 != (int *)0x0) {\n    piVar2 = (int *)*piVar4;\n    piVar1 = (int *)*piVar4;\n    while( true ) {\n      piVar3 = piVar2;\n      if (piVar4 == piVar3) {\n        return piVar1;\n      }\n      if (piVar3 == (int *)0x0) break;\n      piVar2 = (int *)*piVar3;\n      piVar1 = piVar3;\n    }\n  }\n  return piVar3;\n}\n\n" (function_definition "int * FUN_00065a6c(int param_1)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int *piVar3;\n  int *piVar4;\n  \n  piVar4 = *(int **)(*(int *)(*(int *)PTR_jobs_00144e5c + param_1 * 4) + 4);\n  piVar3 = (int *)0x0;\n  if (piVar4 != (int *)0x0) {\n    piVar2 = (int *)*piVar4;\n    piVar1 = (int *)*piVar4;\n    while( true ) {\n      piVar3 = piVar2;\n      if (piVar4 == piVar3) {\n        return piVar1;\n      }\n      if (piVar3 == (int *)0x0) break;\n      piVar2 = (int *)*piVar3;\n      piVar1 = piVar3;\n    }\n  }\n  return piVar3;\n}" primitive_type (pointer_declarator "* FUN_00065a6c(int param_1)" * (function_declarator "FUN_00065a6c(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) )))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  int *piVar3;\n  int *piVar4;\n  \n  piVar4 = *(int **)(*(int *)(*(int *)PTR_jobs_00144e5c + param_1 * 4) + 4);\n  piVar3 = (int *)0x0;\n  if (piVar4 != (int *)0x0) {\n    piVar2 = (int *)*piVar4;\n    piVar1 = (int *)*piVar4;\n    while( true ) {\n      piVar3 = piVar2;\n      if (piVar4 == piVar3) {\n        return piVar1;\n      }\n      if (piVar3 == (int *)0x0) break;\n      piVar2 = (int *)*piVar3;\n      piVar1 = piVar3;\n    }\n  }\n  return piVar3;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (expression_statement "piVar4 = *(int **)(*(int *)(*(int *)PTR_jobs_00144e5c + param_1 * 4) + 4);" (assignment_expression "piVar4 = *(int **)(*(int *)(*(int *)PTR_jobs_00144e5c + param_1 * 4) + 4)" identifier = (pointer_expression "*(int **)(*(int *)(*(int *)PTR_jobs_00144e5c + param_1 * 4) + 4)" * (cast_expression "(int **)(*(int *)(*(int *)PTR_jobs_00144e5c + param_1 * 4) + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(*(int *)PTR_jobs_00144e5c + param_1 * 4) + 4)" ( (binary_expression "*(int *)(*(int *)PTR_jobs_00144e5c + param_1 * 4) + 4" (pointer_expression "*(int *)(*(int *)PTR_jobs_00144e5c + param_1 * 4)" * (cast_expression "(int *)(*(int *)PTR_jobs_00144e5c + param_1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)PTR_jobs_00144e5c + param_1 * 4)" ( (binary_expression "*(int *)PTR_jobs_00144e5c + param_1 * 4" (pointer_expression "*(int *)PTR_jobs_00144e5c" * (cast_expression "(int *)PTR_jobs_00144e5c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + (binary_expression "param_1 * 4" identifier * number_literal)) )))) + number_literal) ))))) ;) (expression_statement "piVar3 = (int *)0x0;" (assignment_expression "piVar3 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (piVar4 != (int *)0x0) {\n    piVar2 = (int *)*piVar4;\n    piVar1 = (int *)*piVar4;\n    while( true ) {\n      piVar3 = piVar2;\n      if (piVar4 == piVar3) {\n        return piVar1;\n      }\n      if (piVar3 == (int *)0x0) break;\n      piVar2 = (int *)*piVar3;\n      piVar1 = piVar3;\n    }\n  }" if (parenthesized_expression "(piVar4 != (int *)0x0)" ( (binary_expression "piVar4 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    piVar2 = (int *)*piVar4;\n    piVar1 = (int *)*piVar4;\n    while( true ) {\n      piVar3 = piVar2;\n      if (piVar4 == piVar3) {\n        return piVar1;\n      }\n      if (piVar3 == (int *)0x0) break;\n      piVar2 = (int *)*piVar3;\n      piVar1 = piVar3;\n    }\n  }" { (expression_statement "piVar2 = (int *)*piVar4;" (assignment_expression "piVar2 = (int *)*piVar4" identifier = (cast_expression "(int *)*piVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar4" * identifier))) ;) (expression_statement "piVar1 = (int *)*piVar4;" (assignment_expression "piVar1 = (int *)*piVar4" identifier = (cast_expression "(int *)*piVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar4" * identifier))) ;) (while_statement "while( true ) {\n      piVar3 = piVar2;\n      if (piVar4 == piVar3) {\n        return piVar1;\n      }\n      if (piVar3 == (int *)0x0) break;\n      piVar2 = (int *)*piVar3;\n      piVar1 = piVar3;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      piVar3 = piVar2;\n      if (piVar4 == piVar3) {\n        return piVar1;\n      }\n      if (piVar3 == (int *)0x0) break;\n      piVar2 = (int *)*piVar3;\n      piVar1 = piVar3;\n    }" { (expression_statement "piVar3 = piVar2;" (assignment_expression "piVar3 = piVar2" identifier = identifier) ;) (if_statement "if (piVar4 == piVar3) {\n        return piVar1;\n      }" if (parenthesized_expression "(piVar4 == piVar3)" ( (binary_expression "piVar4 == piVar3" identifier == identifier) )) (compound_statement "{\n        return piVar1;\n      }" { (return_statement "return piVar1;" return identifier ;) })) (if_statement "if (piVar3 == (int *)0x0) break;" if (parenthesized_expression "(piVar3 == (int *)0x0)" ( (binary_expression "piVar3 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "piVar2 = (int *)*piVar3;" (assignment_expression "piVar2 = (int *)*piVar3" identifier = (cast_expression "(int *)*piVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar3" * identifier))) ;) (expression_statement "piVar1 = piVar3;" (assignment_expression "piVar1 = piVar3" identifier = identifier) ;) })) })) (return_statement "return piVar3;" return identifier ;) })))
(translation_unit "PROCESS * find_last_proc(int job,int block)\n\n{\n  PROCESS *pPVar1;\n  PROCESS *pPVar2;\n  PROCESS *pPVar3;\n  PROCESS *pPVar4;\n  \n  pPVar4 = *(PROCESS **)(*(int *)(*(int *)PTR_jobs_00144e5c + job * 4) + 4);\n  pPVar3 = (PROCESS *)0x0;\n  if (pPVar4 != (PROCESS *)0x0) {\n    pPVar2 = pPVar4->next;\n    pPVar1 = pPVar4->next;\n    while( true ) {\n      pPVar3 = pPVar2;\n      if (pPVar4 == pPVar3) {\n        return pPVar1;\n      }\n      if (pPVar3 == (PROCESS *)0x0) break;\n      pPVar2 = pPVar3->next;\n      pPVar1 = pPVar3;\n    }\n  }\n  return pPVar3;\n}\n\n" (function_definition "PROCESS * find_last_proc(int job,int block)\n\n{\n  PROCESS *pPVar1;\n  PROCESS *pPVar2;\n  PROCESS *pPVar3;\n  PROCESS *pPVar4;\n  \n  pPVar4 = *(PROCESS **)(*(int *)(*(int *)PTR_jobs_00144e5c + job * 4) + 4);\n  pPVar3 = (PROCESS *)0x0;\n  if (pPVar4 != (PROCESS *)0x0) {\n    pPVar2 = pPVar4->next;\n    pPVar1 = pPVar4->next;\n    while( true ) {\n      pPVar3 = pPVar2;\n      if (pPVar4 == pPVar3) {\n        return pPVar1;\n      }\n      if (pPVar3 == (PROCESS *)0x0) break;\n      pPVar2 = pPVar3->next;\n      pPVar1 = pPVar3;\n    }\n  }\n  return pPVar3;\n}" type_identifier (pointer_declarator "* find_last_proc(int job,int block)" * (function_declarator "find_last_proc(int job,int block)" identifier (parameter_list "(int job,int block)" ( (parameter_declaration "int job" primitive_type identifier) , (parameter_declaration "int block" primitive_type identifier) )))) (compound_statement "{\n  PROCESS *pPVar1;\n  PROCESS *pPVar2;\n  PROCESS *pPVar3;\n  PROCESS *pPVar4;\n  \n  pPVar4 = *(PROCESS **)(*(int *)(*(int *)PTR_jobs_00144e5c + job * 4) + 4);\n  pPVar3 = (PROCESS *)0x0;\n  if (pPVar4 != (PROCESS *)0x0) {\n    pPVar2 = pPVar4->next;\n    pPVar1 = pPVar4->next;\n    while( true ) {\n      pPVar3 = pPVar2;\n      if (pPVar4 == pPVar3) {\n        return pPVar1;\n      }\n      if (pPVar3 == (PROCESS *)0x0) break;\n      pPVar2 = pPVar3->next;\n      pPVar1 = pPVar3;\n    }\n  }\n  return pPVar3;\n}" { (declaration "PROCESS *pPVar1;" type_identifier (pointer_declarator "*pPVar1" * identifier) ;) (declaration "PROCESS *pPVar2;" type_identifier (pointer_declarator "*pPVar2" * identifier) ;) (declaration "PROCESS *pPVar3;" type_identifier (pointer_declarator "*pPVar3" * identifier) ;) (declaration "PROCESS *pPVar4;" type_identifier (pointer_declarator "*pPVar4" * identifier) ;) (expression_statement "pPVar4 = *(PROCESS **)(*(int *)(*(int *)PTR_jobs_00144e5c + job * 4) + 4);" (assignment_expression "pPVar4 = *(PROCESS **)(*(int *)(*(int *)PTR_jobs_00144e5c + job * 4) + 4)" identifier = (pointer_expression "*(PROCESS **)(*(int *)(*(int *)PTR_jobs_00144e5c + job * 4) + 4)" * (cast_expression "(PROCESS **)(*(int *)(*(int *)PTR_jobs_00144e5c + job * 4) + 4)" ( (type_descriptor "PROCESS **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(*(int *)PTR_jobs_00144e5c + job * 4) + 4)" ( (binary_expression "*(int *)(*(int *)PTR_jobs_00144e5c + job * 4) + 4" (pointer_expression "*(int *)(*(int *)PTR_jobs_00144e5c + job * 4)" * (cast_expression "(int *)(*(int *)PTR_jobs_00144e5c + job * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)PTR_jobs_00144e5c + job * 4)" ( (binary_expression "*(int *)PTR_jobs_00144e5c + job * 4" (pointer_expression "*(int *)PTR_jobs_00144e5c" * (cast_expression "(int *)PTR_jobs_00144e5c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + (binary_expression "job * 4" identifier * number_literal)) )))) + number_literal) ))))) ;) (expression_statement "pPVar3 = (PROCESS *)0x0;" (assignment_expression "pPVar3 = (PROCESS *)0x0" identifier = (cast_expression "(PROCESS *)0x0" ( (type_descriptor "PROCESS *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (pPVar4 != (PROCESS *)0x0) {\n    pPVar2 = pPVar4->next;\n    pPVar1 = pPVar4->next;\n    while( true ) {\n      pPVar3 = pPVar2;\n      if (pPVar4 == pPVar3) {\n        return pPVar1;\n      }\n      if (pPVar3 == (PROCESS *)0x0) break;\n      pPVar2 = pPVar3->next;\n      pPVar1 = pPVar3;\n    }\n  }" if (parenthesized_expression "(pPVar4 != (PROCESS *)0x0)" ( (binary_expression "pPVar4 != (PROCESS *)0x0" identifier != (cast_expression "(PROCESS *)0x0" ( (type_descriptor "PROCESS *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pPVar2 = pPVar4->next;\n    pPVar1 = pPVar4->next;\n    while( true ) {\n      pPVar3 = pPVar2;\n      if (pPVar4 == pPVar3) {\n        return pPVar1;\n      }\n      if (pPVar3 == (PROCESS *)0x0) break;\n      pPVar2 = pPVar3->next;\n      pPVar1 = pPVar3;\n    }\n  }" { (expression_statement "pPVar2 = pPVar4->next;" (assignment_expression "pPVar2 = pPVar4->next" identifier = (field_expression "pPVar4->next" identifier -> field_identifier)) ;) (expression_statement "pPVar1 = pPVar4->next;" (assignment_expression "pPVar1 = pPVar4->next" identifier = (field_expression "pPVar4->next" identifier -> field_identifier)) ;) (while_statement "while( true ) {\n      pPVar3 = pPVar2;\n      if (pPVar4 == pPVar3) {\n        return pPVar1;\n      }\n      if (pPVar3 == (PROCESS *)0x0) break;\n      pPVar2 = pPVar3->next;\n      pPVar1 = pPVar3;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      pPVar3 = pPVar2;\n      if (pPVar4 == pPVar3) {\n        return pPVar1;\n      }\n      if (pPVar3 == (PROCESS *)0x0) break;\n      pPVar2 = pPVar3->next;\n      pPVar1 = pPVar3;\n    }" { (expression_statement "pPVar3 = pPVar2;" (assignment_expression "pPVar3 = pPVar2" identifier = identifier) ;) (if_statement "if (pPVar4 == pPVar3) {\n        return pPVar1;\n      }" if (parenthesized_expression "(pPVar4 == pPVar3)" ( (binary_expression "pPVar4 == pPVar3" identifier == identifier) )) (compound_statement "{\n        return pPVar1;\n      }" { (return_statement "return pPVar1;" return identifier ;) })) (if_statement "if (pPVar3 == (PROCESS *)0x0) break;" if (parenthesized_expression "(pPVar3 == (PROCESS *)0x0)" ( (binary_expression "pPVar3 == (PROCESS *)0x0" identifier == (cast_expression "(PROCESS *)0x0" ( (type_descriptor "PROCESS *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "pPVar2 = pPVar3->next;" (assignment_expression "pPVar2 = pPVar3->next" identifier = (field_expression "pPVar3->next" identifier -> field_identifier)) ;) (expression_statement "pPVar1 = pPVar3;" (assignment_expression "pPVar1 = pPVar3" identifier = identifier) ;) })) })) (return_statement "return pPVar3;" return identifier ;) })))
(translation_unit "int * FUN_00065a6c(int param_1)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int *piVar3;\n  int *piVar4;\n  \n  piVar4 = *(int **)(*(int *)(*(int *)PTR_jobs_00144e5c + param_1 * 4) + 4);\n  piVar3 = (int *)0x0;\n  if (piVar4 != (int *)0x0) {\n    piVar2 = (int *)*piVar4;\n    piVar1 = (int *)*piVar4;\n    while( true ) {\n      piVar3 = piVar2;\n      if (piVar4 == piVar3) {\n        return piVar1;\n      }\n      if (piVar3 == (int *)0x0) break;\n      piVar2 = (int *)*piVar3;\n      piVar1 = piVar3;\n    }\n  }\n  return piVar3;\n}\n\n" (function_definition "int * FUN_00065a6c(int param_1)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int *piVar3;\n  int *piVar4;\n  \n  piVar4 = *(int **)(*(int *)(*(int *)PTR_jobs_00144e5c + param_1 * 4) + 4);\n  piVar3 = (int *)0x0;\n  if (piVar4 != (int *)0x0) {\n    piVar2 = (int *)*piVar4;\n    piVar1 = (int *)*piVar4;\n    while( true ) {\n      piVar3 = piVar2;\n      if (piVar4 == piVar3) {\n        return piVar1;\n      }\n      if (piVar3 == (int *)0x0) break;\n      piVar2 = (int *)*piVar3;\n      piVar1 = piVar3;\n    }\n  }\n  return piVar3;\n}" primitive_type (pointer_declarator "* FUN_00065a6c(int param_1)" * (function_declarator "FUN_00065a6c(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) )))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  int *piVar3;\n  int *piVar4;\n  \n  piVar4 = *(int **)(*(int *)(*(int *)PTR_jobs_00144e5c + param_1 * 4) + 4);\n  piVar3 = (int *)0x0;\n  if (piVar4 != (int *)0x0) {\n    piVar2 = (int *)*piVar4;\n    piVar1 = (int *)*piVar4;\n    while( true ) {\n      piVar3 = piVar2;\n      if (piVar4 == piVar3) {\n        return piVar1;\n      }\n      if (piVar3 == (int *)0x0) break;\n      piVar2 = (int *)*piVar3;\n      piVar1 = piVar3;\n    }\n  }\n  return piVar3;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (expression_statement "piVar4 = *(int **)(*(int *)(*(int *)PTR_jobs_00144e5c + param_1 * 4) + 4);" (assignment_expression "piVar4 = *(int **)(*(int *)(*(int *)PTR_jobs_00144e5c + param_1 * 4) + 4)" identifier = (pointer_expression "*(int **)(*(int *)(*(int *)PTR_jobs_00144e5c + param_1 * 4) + 4)" * (cast_expression "(int **)(*(int *)(*(int *)PTR_jobs_00144e5c + param_1 * 4) + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(*(int *)PTR_jobs_00144e5c + param_1 * 4) + 4)" ( (binary_expression "*(int *)(*(int *)PTR_jobs_00144e5c + param_1 * 4) + 4" (pointer_expression "*(int *)(*(int *)PTR_jobs_00144e5c + param_1 * 4)" * (cast_expression "(int *)(*(int *)PTR_jobs_00144e5c + param_1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)PTR_jobs_00144e5c + param_1 * 4)" ( (binary_expression "*(int *)PTR_jobs_00144e5c + param_1 * 4" (pointer_expression "*(int *)PTR_jobs_00144e5c" * (cast_expression "(int *)PTR_jobs_00144e5c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + (binary_expression "param_1 * 4" identifier * number_literal)) )))) + number_literal) ))))) ;) (expression_statement "piVar3 = (int *)0x0;" (assignment_expression "piVar3 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (piVar4 != (int *)0x0) {\n    piVar2 = (int *)*piVar4;\n    piVar1 = (int *)*piVar4;\n    while( true ) {\n      piVar3 = piVar2;\n      if (piVar4 == piVar3) {\n        return piVar1;\n      }\n      if (piVar3 == (int *)0x0) break;\n      piVar2 = (int *)*piVar3;\n      piVar1 = piVar3;\n    }\n  }" if (parenthesized_expression "(piVar4 != (int *)0x0)" ( (binary_expression "piVar4 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    piVar2 = (int *)*piVar4;\n    piVar1 = (int *)*piVar4;\n    while( true ) {\n      piVar3 = piVar2;\n      if (piVar4 == piVar3) {\n        return piVar1;\n      }\n      if (piVar3 == (int *)0x0) break;\n      piVar2 = (int *)*piVar3;\n      piVar1 = piVar3;\n    }\n  }" { (expression_statement "piVar2 = (int *)*piVar4;" (assignment_expression "piVar2 = (int *)*piVar4" identifier = (cast_expression "(int *)*piVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar4" * identifier))) ;) (expression_statement "piVar1 = (int *)*piVar4;" (assignment_expression "piVar1 = (int *)*piVar4" identifier = (cast_expression "(int *)*piVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar4" * identifier))) ;) (while_statement "while( true ) {\n      piVar3 = piVar2;\n      if (piVar4 == piVar3) {\n        return piVar1;\n      }\n      if (piVar3 == (int *)0x0) break;\n      piVar2 = (int *)*piVar3;\n      piVar1 = piVar3;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      piVar3 = piVar2;\n      if (piVar4 == piVar3) {\n        return piVar1;\n      }\n      if (piVar3 == (int *)0x0) break;\n      piVar2 = (int *)*piVar3;\n      piVar1 = piVar3;\n    }" { (expression_statement "piVar3 = piVar2;" (assignment_expression "piVar3 = piVar2" identifier = identifier) ;) (if_statement "if (piVar4 == piVar3) {\n        return piVar1;\n      }" if (parenthesized_expression "(piVar4 == piVar3)" ( (binary_expression "piVar4 == piVar3" identifier == identifier) )) (compound_statement "{\n        return piVar1;\n      }" { (return_statement "return piVar1;" return identifier ;) })) (if_statement "if (piVar3 == (int *)0x0) break;" if (parenthesized_expression "(piVar3 == (int *)0x0)" ( (binary_expression "piVar3 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "piVar2 = (int *)*piVar3;" (assignment_expression "piVar2 = (int *)*piVar3" identifier = (cast_expression "(int *)*piVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar3" * identifier))) ;) (expression_statement "piVar1 = piVar3;" (assignment_expression "piVar1 = piVar3" identifier = identifier) ;) })) })) (return_statement "return piVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + (binary_expression IDENT * LIT)) )))) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) })) (return_statement return IDENT ;) })))
(function_definition "int * FUN_00065a6c(int param_1)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int *piVar3;\n  int *piVar4;\n  \n  piVar4 = *(int **)(*(int *)(*(int *)PTR_jobs_00144e5c + param_1 * 4) + 4);\n  piVar3 = (int *)0x0;\n  if (piVar4 != (int *)0x0) {\n    piVar2 = (int *)*piVar4;\n    piVar1 = (int *)*piVar4;\n    while( true ) {\n      piVar3 = piVar2;\n      if (piVar4 == piVar3) {\n        return piVar1;\n      }\n      if (piVar3 == (int *)0x0) break;\n      piVar2 = (int *)*piVar3;\n      piVar1 = piVar3;\n    }\n  }\n  return piVar3;\n}" (primitive_type "int") (pointer_declarator "* FUN_00065a6c(int param_1)" (* "*") (function_declarator "FUN_00065a6c(int param_1)" (identifier "FUN_00065a6c") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")")))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  int *piVar3;\n  int *piVar4;\n  \n  piVar4 = *(int **)(*(int *)(*(int *)PTR_jobs_00144e5c + param_1 * 4) + 4);\n  piVar3 = (int *)0x0;\n  if (piVar4 != (int *)0x0) {\n    piVar2 = (int *)*piVar4;\n    piVar1 = (int *)*piVar4;\n    while( true ) {\n      piVar3 = piVar2;\n      if (piVar4 == piVar3) {\n        return piVar1;\n      }\n      if (piVar3 == (int *)0x0) break;\n      piVar2 = (int *)*piVar3;\n      piVar1 = piVar3;\n    }\n  }\n  return piVar3;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (expression_statement "piVar4 = *(int **)(*(int *)(*(int *)PTR_jobs_00144e5c + param_1 * 4) + 4);" (assignment_expression "piVar4 = *(int **)(*(int *)(*(int *)PTR_jobs_00144e5c + param_1 * 4) + 4)" (identifier "piVar4") (= "=") (pointer_expression "*(int **)(*(int *)(*(int *)PTR_jobs_00144e5c + param_1 * 4) + 4)" (* "*") (cast_expression "(int **)(*(int *)(*(int *)PTR_jobs_00144e5c + param_1 * 4) + 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(*(int *)PTR_jobs_00144e5c + param_1 * 4) + 4)" (( "(") (binary_expression "*(int *)(*(int *)PTR_jobs_00144e5c + param_1 * 4) + 4" (pointer_expression "*(int *)(*(int *)PTR_jobs_00144e5c + param_1 * 4)" (* "*") (cast_expression "(int *)(*(int *)PTR_jobs_00144e5c + param_1 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)PTR_jobs_00144e5c + param_1 * 4)" (( "(") (binary_expression "*(int *)PTR_jobs_00144e5c + param_1 * 4" (pointer_expression "*(int *)PTR_jobs_00144e5c" (* "*") (cast_expression "(int *)PTR_jobs_00144e5c" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_jobs_00144e5c"))) (+ "+") (binary_expression "param_1 * 4" (identifier "param_1") (* "*") (number_literal "4"))) () ")")))) (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "piVar3 = (int *)0x0;" (assignment_expression "piVar3 = (int *)0x0" (identifier "piVar3") (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (if_statement "if (piVar4 != (int *)0x0) {\n    piVar2 = (int *)*piVar4;\n    piVar1 = (int *)*piVar4;\n    while( true ) {\n      piVar3 = piVar2;\n      if (piVar4 == piVar3) {\n        return piVar1;\n      }\n      if (piVar3 == (int *)0x0) break;\n      piVar2 = (int *)*piVar3;\n      piVar1 = piVar3;\n    }\n  }" (if "if") (parenthesized_expression "(piVar4 != (int *)0x0)" (( "(") (binary_expression "piVar4 != (int *)0x0" (identifier "piVar4") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    piVar2 = (int *)*piVar4;\n    piVar1 = (int *)*piVar4;\n    while( true ) {\n      piVar3 = piVar2;\n      if (piVar4 == piVar3) {\n        return piVar1;\n      }\n      if (piVar3 == (int *)0x0) break;\n      piVar2 = (int *)*piVar3;\n      piVar1 = piVar3;\n    }\n  }" ({ "{") (expression_statement "piVar2 = (int *)*piVar4;" (assignment_expression "piVar2 = (int *)*piVar4" (identifier "piVar2") (= "=") (cast_expression "(int *)*piVar4" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar4" (* "*") (identifier "piVar4")))) (; ";")) (expression_statement "piVar1 = (int *)*piVar4;" (assignment_expression "piVar1 = (int *)*piVar4" (identifier "piVar1") (= "=") (cast_expression "(int *)*piVar4" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar4" (* "*") (identifier "piVar4")))) (; ";")) (while_statement "while( true ) {\n      piVar3 = piVar2;\n      if (piVar4 == piVar3) {\n        return piVar1;\n      }\n      if (piVar3 == (int *)0x0) break;\n      piVar2 = (int *)*piVar3;\n      piVar1 = piVar3;\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      piVar3 = piVar2;\n      if (piVar4 == piVar3) {\n        return piVar1;\n      }\n      if (piVar3 == (int *)0x0) break;\n      piVar2 = (int *)*piVar3;\n      piVar1 = piVar3;\n    }" ({ "{") (expression_statement "piVar3 = piVar2;" (assignment_expression "piVar3 = piVar2" (identifier "piVar3") (= "=") (identifier "piVar2")) (; ";")) (if_statement "if (piVar4 == piVar3) {\n        return piVar1;\n      }" (if "if") (parenthesized_expression "(piVar4 == piVar3)" (( "(") (binary_expression "piVar4 == piVar3" (identifier "piVar4") (== "==") (identifier "piVar3")) () ")")) (compound_statement "{\n        return piVar1;\n      }" ({ "{") (return_statement "return piVar1;" (return "return") (identifier "piVar1") (; ";")) (} "}"))) (if_statement "if (piVar3 == (int *)0x0) break;" (if "if") (parenthesized_expression "(piVar3 == (int *)0x0)" (( "(") (binary_expression "piVar3 == (int *)0x0" (identifier "piVar3") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "piVar2 = (int *)*piVar3;" (assignment_expression "piVar2 = (int *)*piVar3" (identifier "piVar2") (= "=") (cast_expression "(int *)*piVar3" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar3" (* "*") (identifier "piVar3")))) (; ";")) (expression_statement "piVar1 = piVar3;" (assignment_expression "piVar1 = piVar3" (identifier "piVar1") (= "=") (identifier "piVar3")) (; ";")) (} "}"))) (} "}"))) (return_statement "return piVar3;" (return "return") (identifier "piVar3") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (binary_expression left: (identifier) right: (number_literal)))))) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (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: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (return_statement (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))))) (return_statement (identifier)))))

int * MASKED(int param_1)

{
  int *piVar1;
  int *piVar2;
  int *piVar3;
  int *piVar4;
  
  piVar4 = *(int **)(*(int *)(*(int *)PTR_jobs_00144e5c + param_1 * 4) + 4);
  piVar3 = (int *)0x0;
  if (piVar4 != (int *)0x0) {
    piVar2 = (int *)*piVar4;
    piVar1 = (int *)*piVar4;
    while( true ) {
      piVar3 = piVar2;
      if (piVar4 == piVar3) {
        return piVar1;
      }
      if (piVar3 == (int *)0x0) break;
      piVar2 = (int *)*piVar3;
      piVar1 = piVar3;
    }
  }
  return piVar3;
}

