
int restore_cwd(saved_cwd *cwd)

{
  int iVar1;
  
  if (-1 < cwd->desc) {
                    /* WARNING: Could not recover jumptable at 0x0001e80c. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    iVar1 = (*(code *)PTR_fchdir_000332f8)(cwd->desc);
    return iVar1;
  }
  iVar1 = chdir_long(cwd->name);
  return iVar1;
}



void restore_cwd(int *param_1)

{
  if (-1 < *param_1) {
                    /* WARNING: Could not recover jumptable at 0x0001e80c. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    (*(code *)PTR_fchdir_000332f8)(*param_1);
    return;
  }
  chdir_long(param_1[1]);
  return;
}


lui gp,0x2
addiu gp,gp,-0x3724
addu gp,gp,t9
lw v0,0x0(a0)
bltz v0,0x0001e814
_lw t9,-0x7dd8(gp)
jr t9
_or a0,v0,zero
lw t9,-0x7e58(gp)
b 0x0001ea04
_lw a0,0x4(a0)
(translation_unit "void restore_cwd(int *param_1)\n\n{\n  if (-1 < *param_1) {\n                    /* WARNING: Could not recover jumptable at 0x0001e80c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)PTR_fchdir_000332f8)(*param_1);\n    return;\n  }\n  chdir_long(param_1[1]);\n  return;\n}\n\n" (function_definition "void restore_cwd(int *param_1)\n\n{\n  if (-1 < *param_1) {\n                    /* WARNING: Could not recover jumptable at 0x0001e80c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)PTR_fchdir_000332f8)(*param_1);\n    return;\n  }\n  chdir_long(param_1[1]);\n  return;\n}" primitive_type (function_declarator "restore_cwd(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  if (-1 < *param_1) {\n                    /* WARNING: Could not recover jumptable at 0x0001e80c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)PTR_fchdir_000332f8)(*param_1);\n    return;\n  }\n  chdir_long(param_1[1]);\n  return;\n}" { (if_statement "if (-1 < *param_1) {\n                    /* WARNING: Could not recover jumptable at 0x0001e80c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)PTR_fchdir_000332f8)(*param_1);\n    return;\n  }" if (parenthesized_expression "(-1 < *param_1)" ( (binary_expression "-1 < *param_1" number_literal < (pointer_expression "*param_1" * identifier)) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x0001e80c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)PTR_fchdir_000332f8)(*param_1);\n    return;\n  }" { comment comment (expression_statement "(*(code *)PTR_fchdir_000332f8)(*param_1);" (call_expression "(*(code *)PTR_fchdir_000332f8)(*param_1)" (parenthesized_expression "(*(code *)PTR_fchdir_000332f8)" ( (pointer_expression "*(code *)PTR_fchdir_000332f8" * (cast_expression "(code *)PTR_fchdir_000332f8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) ))) ;) (return_statement "return;" return ;) })) (expression_statement "chdir_long(param_1[1]);" (call_expression "chdir_long(param_1[1])" identifier (argument_list "(param_1[1])" ( (subscript_expression "param_1[1]" identifier [ number_literal ]) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "int restore_cwd(saved_cwd *cwd)\n\n{\n  int iVar1;\n  \n  if (-1 < cwd->desc) {\n                    /* WARNING: Could not recover jumptable at 0x0001e80c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar1 = (*(code *)PTR_fchdir_000332f8)(cwd->desc);\n    return iVar1;\n  }\n  iVar1 = chdir_long(cwd->name);\n  return iVar1;\n}\n\n" (function_definition "int restore_cwd(saved_cwd *cwd)\n\n{\n  int iVar1;\n  \n  if (-1 < cwd->desc) {\n                    /* WARNING: Could not recover jumptable at 0x0001e80c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar1 = (*(code *)PTR_fchdir_000332f8)(cwd->desc);\n    return iVar1;\n  }\n  iVar1 = chdir_long(cwd->name);\n  return iVar1;\n}" primitive_type (function_declarator "restore_cwd(saved_cwd *cwd)" identifier (parameter_list "(saved_cwd *cwd)" ( (parameter_declaration "saved_cwd *cwd" type_identifier (pointer_declarator "*cwd" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  if (-1 < cwd->desc) {\n                    /* WARNING: Could not recover jumptable at 0x0001e80c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar1 = (*(code *)PTR_fchdir_000332f8)(cwd->desc);\n    return iVar1;\n  }\n  iVar1 = chdir_long(cwd->name);\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (-1 < cwd->desc) {\n                    /* WARNING: Could not recover jumptable at 0x0001e80c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar1 = (*(code *)PTR_fchdir_000332f8)(cwd->desc);\n    return iVar1;\n  }" if (parenthesized_expression "(-1 < cwd->desc)" ( (binary_expression "-1 < cwd->desc" number_literal < (field_expression "cwd->desc" identifier -> field_identifier)) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x0001e80c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar1 = (*(code *)PTR_fchdir_000332f8)(cwd->desc);\n    return iVar1;\n  }" { comment comment (expression_statement "iVar1 = (*(code *)PTR_fchdir_000332f8)(cwd->desc);" (assignment_expression "iVar1 = (*(code *)PTR_fchdir_000332f8)(cwd->desc)" identifier = (call_expression "(*(code *)PTR_fchdir_000332f8)(cwd->desc)" (parenthesized_expression "(*(code *)PTR_fchdir_000332f8)" ( (pointer_expression "*(code *)PTR_fchdir_000332f8" * (cast_expression "(code *)PTR_fchdir_000332f8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(cwd->desc)" ( (field_expression "cwd->desc" identifier -> field_identifier) )))) ;) (return_statement "return iVar1;" return identifier ;) })) (expression_statement "iVar1 = chdir_long(cwd->name);" (assignment_expression "iVar1 = chdir_long(cwd->name)" identifier = (call_expression "chdir_long(cwd->name)" identifier (argument_list "(cwd->name)" ( (field_expression "cwd->name" identifier -> field_identifier) )))) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "void restore_cwd(int *param_1)\n\n{\n  if (-1 < *param_1) {\n                    \n                    \n    (*(code *)PTR_fchdir_000332f8)(*param_1);\n    return;\n  }\n  chdir_long(param_1[1]);\n  return;\n}\n\n" (function_definition "void restore_cwd(int *param_1)\n\n{\n  if (-1 < *param_1) {\n                    \n                    \n    (*(code *)PTR_fchdir_000332f8)(*param_1);\n    return;\n  }\n  chdir_long(param_1[1]);\n  return;\n}" primitive_type (function_declarator "restore_cwd(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  if (-1 < *param_1) {\n                    \n                    \n    (*(code *)PTR_fchdir_000332f8)(*param_1);\n    return;\n  }\n  chdir_long(param_1[1]);\n  return;\n}" { (if_statement "if (-1 < *param_1) {\n                    \n                    \n    (*(code *)PTR_fchdir_000332f8)(*param_1);\n    return;\n  }" if (parenthesized_expression "(-1 < *param_1)" ( (binary_expression "-1 < *param_1" number_literal < (pointer_expression "*param_1" * identifier)) )) (compound_statement "{\n                    \n                    \n    (*(code *)PTR_fchdir_000332f8)(*param_1);\n    return;\n  }" { (expression_statement "(*(code *)PTR_fchdir_000332f8)(*param_1);" (call_expression "(*(code *)PTR_fchdir_000332f8)(*param_1)" (parenthesized_expression "(*(code *)PTR_fchdir_000332f8)" ( (pointer_expression "*(code *)PTR_fchdir_000332f8" * (cast_expression "(code *)PTR_fchdir_000332f8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) ))) ;) (return_statement "return;" return ;) })) (expression_statement "chdir_long(param_1[1]);" (call_expression "chdir_long(param_1[1])" identifier (argument_list "(param_1[1])" ( (subscript_expression "param_1[1]" identifier [ number_literal ]) ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < (pointer_expression * IDENT)) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * IDENT) ))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) (return_statement return ;) })))
(function_definition "void restore_cwd(int *param_1)\n\n{\n  if (-1 < *param_1) {\n                    \n                    \n    (*(code *)PTR_fchdir_000332f8)(*param_1);\n    return;\n  }\n  chdir_long(param_1[1]);\n  return;\n}" (primitive_type "void") (function_declarator "restore_cwd(int *param_1)" (identifier "restore_cwd") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  if (-1 < *param_1) {\n                    \n                    \n    (*(code *)PTR_fchdir_000332f8)(*param_1);\n    return;\n  }\n  chdir_long(param_1[1]);\n  return;\n}" ({ "{") (if_statement "if (-1 < *param_1) {\n                    \n                    \n    (*(code *)PTR_fchdir_000332f8)(*param_1);\n    return;\n  }" (if "if") (parenthesized_expression "(-1 < *param_1)" (( "(") (binary_expression "-1 < *param_1" (number_literal "-1") (< "<") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) () ")")) (compound_statement "{\n                    \n                    \n    (*(code *)PTR_fchdir_000332f8)(*param_1);\n    return;\n  }" ({ "{") (expression_statement "(*(code *)PTR_fchdir_000332f8)(*param_1);" (call_expression "(*(code *)PTR_fchdir_000332f8)(*param_1)" (parenthesized_expression "(*(code *)PTR_fchdir_000332f8)" (( "(") (pointer_expression "*(code *)PTR_fchdir_000332f8" (* "*") (cast_expression "(code *)PTR_fchdir_000332f8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fchdir_000332f8"))) () ")")) (argument_list "(*param_1)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "chdir_long(param_1[1]);" (call_expression "chdir_long(param_1[1])" (identifier "chdir_long") (argument_list "(param_1[1])" (( "(") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

int function_1(type_1 *cwd)

{
  int iVar1;
  
  if (-1 < cwd->desc) {
                    /* WARNING: Could not recover jumptable at 0x0001e80c. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    iVar1 = (*(type_2 *)PTR_fchdir_000332f8)(cwd->desc);
    return iVar1;
  }
  iVar1 = var_1(cwd->name);
  return iVar1;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (pointer_expression argument: (identifier)))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (pointer_expression argument: (identifier))))) (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal))))) (return_statement))))

void MASKED(int *param_1)

{
  if (-1 < *param_1) {
                    /* WARNING: Could not recover jumptable at 0x0001e80c. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    (*(code *)PTR_fchdir_000332f8)(*param_1);
    return;
  }
  chdir_long(param_1[1]);
  return;
}

