
int chmod_or_fchmod(char *name,int desc,mode_t mode)

{
  int iVar1;
  
  if (desc != -1) {
                    /* WARNING: Could not recover jumptable at 0x0002e718. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    iVar1 = (*(code *)PTR_fchmod_00046454)(desc);
    return iVar1;
  }
                    /* WARNING: Could not recover jumptable at 0x0002e724. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  iVar1 = (*(code *)PTR_chmod_000464a8)(name,mode);
  return iVar1;
}



void chmod_or_fchmod(undefined4 param_1,int param_2,undefined4 param_3)

{
  if (param_2 != -1) {
                    /* WARNING: Could not recover jumptable at 0x0002e718. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    (*(code *)PTR_fchmod_00046454)(param_2);
    return;
  }
                    /* WARNING: Could not recover jumptable at 0x0002e724. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (*(code *)PTR_chmod_000464a8)(param_1,param_3);
  return;
}


lui gp,0x2
addiu gp,gp,-0x5e8
addu gp,gp,t9
li v1,-0x1
or v0,a1,zero
beq v0,v1,0x0002e720
_or a1,a2,zero
lw t9,-0x7cbc(gp)
jr t9
_or a0,v0,zero
lw t9,-0x7c68(gp)
jr t9
_nop
(translation_unit "void chmod_or_fchmod(undefined4 param_1,int param_2,undefined4 param_3)\n\n{\n  if (param_2 != -1) {\n                    /* WARNING: Could not recover jumptable at 0x0002e718. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)PTR_fchmod_00046454)(param_2);\n    return;\n  }\n                    /* WARNING: Could not recover jumptable at 0x0002e724. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*(code *)PTR_chmod_000464a8)(param_1,param_3);\n  return;\n}\n\n" (function_definition "void chmod_or_fchmod(undefined4 param_1,int param_2,undefined4 param_3)\n\n{\n  if (param_2 != -1) {\n                    /* WARNING: Could not recover jumptable at 0x0002e718. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)PTR_fchmod_00046454)(param_2);\n    return;\n  }\n                    /* WARNING: Could not recover jumptable at 0x0002e724. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*(code *)PTR_chmod_000464a8)(param_1,param_3);\n  return;\n}" primitive_type (function_declarator "chmod_or_fchmod(undefined4 param_1,int param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 param_1,int param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  if (param_2 != -1) {\n                    /* WARNING: Could not recover jumptable at 0x0002e718. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)PTR_fchmod_00046454)(param_2);\n    return;\n  }\n                    /* WARNING: Could not recover jumptable at 0x0002e724. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*(code *)PTR_chmod_000464a8)(param_1,param_3);\n  return;\n}" { (if_statement "if (param_2 != -1) {\n                    /* WARNING: Could not recover jumptable at 0x0002e718. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)PTR_fchmod_00046454)(param_2);\n    return;\n  }" if (parenthesized_expression "(param_2 != -1)" ( (binary_expression "param_2 != -1" identifier != number_literal) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x0002e718. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)PTR_fchmod_00046454)(param_2);\n    return;\n  }" { comment comment (expression_statement "(*(code *)PTR_fchmod_00046454)(param_2);" (call_expression "(*(code *)PTR_fchmod_00046454)(param_2)" (parenthesized_expression "(*(code *)PTR_fchmod_00046454)" ( (pointer_expression "*(code *)PTR_fchmod_00046454" * (cast_expression "(code *)PTR_fchmod_00046454" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier ))) ;) (return_statement "return;" return ;) })) comment comment (expression_statement "(*(code *)PTR_chmod_000464a8)(param_1,param_3);" (call_expression "(*(code *)PTR_chmod_000464a8)(param_1,param_3)" (parenthesized_expression "(*(code *)PTR_chmod_000464a8)" ( (pointer_expression "*(code *)PTR_chmod_000464a8" * (cast_expression "(code *)PTR_chmod_000464a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,param_3)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "int chmod_or_fchmod(char *name,int desc,mode_t mode)\n\n{\n  int iVar1;\n  \n  if (desc != -1) {\n                    /* WARNING: Could not recover jumptable at 0x0002e718. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar1 = (*(code *)PTR_fchmod_00046454)(desc);\n    return iVar1;\n  }\n                    /* WARNING: Could not recover jumptable at 0x0002e724. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  iVar1 = (*(code *)PTR_chmod_000464a8)(name,mode);\n  return iVar1;\n}\n\n" (function_definition "int chmod_or_fchmod(char *name,int desc,mode_t mode)\n\n{\n  int iVar1;\n  \n  if (desc != -1) {\n                    /* WARNING: Could not recover jumptable at 0x0002e718. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar1 = (*(code *)PTR_fchmod_00046454)(desc);\n    return iVar1;\n  }\n                    /* WARNING: Could not recover jumptable at 0x0002e724. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  iVar1 = (*(code *)PTR_chmod_000464a8)(name,mode);\n  return iVar1;\n}" primitive_type (function_declarator "chmod_or_fchmod(char *name,int desc,mode_t mode)" identifier (parameter_list "(char *name,int desc,mode_t mode)" ( (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) , (parameter_declaration "int desc" primitive_type identifier) , (parameter_declaration "mode_t mode" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if (desc != -1) {\n                    /* WARNING: Could not recover jumptable at 0x0002e718. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar1 = (*(code *)PTR_fchmod_00046454)(desc);\n    return iVar1;\n  }\n                    /* WARNING: Could not recover jumptable at 0x0002e724. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  iVar1 = (*(code *)PTR_chmod_000464a8)(name,mode);\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (desc != -1) {\n                    /* WARNING: Could not recover jumptable at 0x0002e718. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar1 = (*(code *)PTR_fchmod_00046454)(desc);\n    return iVar1;\n  }" if (parenthesized_expression "(desc != -1)" ( (binary_expression "desc != -1" identifier != number_literal) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x0002e718. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar1 = (*(code *)PTR_fchmod_00046454)(desc);\n    return iVar1;\n  }" { comment comment (expression_statement "iVar1 = (*(code *)PTR_fchmod_00046454)(desc);" (assignment_expression "iVar1 = (*(code *)PTR_fchmod_00046454)(desc)" identifier = (call_expression "(*(code *)PTR_fchmod_00046454)(desc)" (parenthesized_expression "(*(code *)PTR_fchmod_00046454)" ( (pointer_expression "*(code *)PTR_fchmod_00046454" * (cast_expression "(code *)PTR_fchmod_00046454" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(desc)" ( identifier )))) ;) (return_statement "return iVar1;" return identifier ;) })) comment comment (expression_statement "iVar1 = (*(code *)PTR_chmod_000464a8)(name,mode);" (assignment_expression "iVar1 = (*(code *)PTR_chmod_000464a8)(name,mode)" identifier = (call_expression "(*(code *)PTR_chmod_000464a8)(name,mode)" (parenthesized_expression "(*(code *)PTR_chmod_000464a8)" ( (pointer_expression "*(code *)PTR_chmod_000464a8" * (cast_expression "(code *)PTR_chmod_000464a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(name,mode)" ( identifier , identifier )))) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "void chmod_or_fchmod(undefined4 param_1,int param_2,undefined4 param_3)\n\n{\n  if (param_2 != -1) {\n                    \n                    \n    (*(code *)PTR_fchmod_00046454)(param_2);\n    return;\n  }\n                    \n                    \n  (*(code *)PTR_chmod_000464a8)(param_1,param_3);\n  return;\n}\n\n" (function_definition "void chmod_or_fchmod(undefined4 param_1,int param_2,undefined4 param_3)\n\n{\n  if (param_2 != -1) {\n                    \n                    \n    (*(code *)PTR_fchmod_00046454)(param_2);\n    return;\n  }\n                    \n                    \n  (*(code *)PTR_chmod_000464a8)(param_1,param_3);\n  return;\n}" primitive_type (function_declarator "chmod_or_fchmod(undefined4 param_1,int param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 param_1,int param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  if (param_2 != -1) {\n                    \n                    \n    (*(code *)PTR_fchmod_00046454)(param_2);\n    return;\n  }\n                    \n                    \n  (*(code *)PTR_chmod_000464a8)(param_1,param_3);\n  return;\n}" { (if_statement "if (param_2 != -1) {\n                    \n                    \n    (*(code *)PTR_fchmod_00046454)(param_2);\n    return;\n  }" if (parenthesized_expression "(param_2 != -1)" ( (binary_expression "param_2 != -1" identifier != number_literal) )) (compound_statement "{\n                    \n                    \n    (*(code *)PTR_fchmod_00046454)(param_2);\n    return;\n  }" { (expression_statement "(*(code *)PTR_fchmod_00046454)(param_2);" (call_expression "(*(code *)PTR_fchmod_00046454)(param_2)" (parenthesized_expression "(*(code *)PTR_fchmod_00046454)" ( (pointer_expression "*(code *)PTR_fchmod_00046454" * (cast_expression "(code *)PTR_fchmod_00046454" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "(*(code *)PTR_chmod_000464a8)(param_1,param_3);" (call_expression "(*(code *)PTR_chmod_000464a8)(param_1,param_3)" (parenthesized_expression "(*(code *)PTR_chmod_000464a8)" ( (pointer_expression "*(code *)PTR_chmod_000464a8" * (cast_expression "(code *)PTR_chmod_000464a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,param_3)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (return_statement return ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void chmod_or_fchmod(undefined4 param_1,int param_2,undefined4 param_3)\n\n{\n  if (param_2 != -1) {\n                    \n                    \n    (*(code *)PTR_fchmod_00046454)(param_2);\n    return;\n  }\n                    \n                    \n  (*(code *)PTR_chmod_000464a8)(param_1,param_3);\n  return;\n}" (primitive_type "void") (function_declarator "chmod_or_fchmod(undefined4 param_1,int param_2,undefined4 param_3)" (identifier "chmod_or_fchmod") (parameter_list "(undefined4 param_1,int param_2,undefined4 param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  if (param_2 != -1) {\n                    \n                    \n    (*(code *)PTR_fchmod_00046454)(param_2);\n    return;\n  }\n                    \n                    \n  (*(code *)PTR_chmod_000464a8)(param_1,param_3);\n  return;\n}" ({ "{") (if_statement "if (param_2 != -1) {\n                    \n                    \n    (*(code *)PTR_fchmod_00046454)(param_2);\n    return;\n  }" (if "if") (parenthesized_expression "(param_2 != -1)" (( "(") (binary_expression "param_2 != -1" (identifier "param_2") (!= "!=") (number_literal "-1")) () ")")) (compound_statement "{\n                    \n                    \n    (*(code *)PTR_fchmod_00046454)(param_2);\n    return;\n  }" ({ "{") (expression_statement "(*(code *)PTR_fchmod_00046454)(param_2);" (call_expression "(*(code *)PTR_fchmod_00046454)(param_2)" (parenthesized_expression "(*(code *)PTR_fchmod_00046454)" (( "(") (pointer_expression "*(code *)PTR_fchmod_00046454" (* "*") (cast_expression "(code *)PTR_fchmod_00046454" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fchmod_00046454"))) () ")")) (argument_list "(param_2)" (( "(") (identifier "param_2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_chmod_000464a8)(param_1,param_3);" (call_expression "(*(code *)PTR_chmod_000464a8)(param_1,param_3)" (parenthesized_expression "(*(code *)PTR_chmod_000464a8)" (( "(") (pointer_expression "*(code *)PTR_chmod_000464a8" (* "*") (cast_expression "(code *)PTR_chmod_000464a8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_chmod_000464a8"))) () ")")) (argument_list "(param_1,param_3)" (( "(") (identifier "param_1") (, ",") (identifier "param_3") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) 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 (identifier)))) (return_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 (identifier) (identifier)))) (return_statement))))

void MASKED(undefined4 param_1,int param_2,undefined4 param_3)

{
  if (param_2 != -1) {
                    /* WARNING: Could not recover jumptable at 0x0002e718. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    (*(code *)PTR_fchmod_00046454)(param_2);
    return;
  }
                    /* WARNING: Could not recover jumptable at 0x0002e724. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (*(code *)PTR_chmod_000464a8)(param_1,param_3);
  return;
}

