
_Bool pred_okdir(char *pathname,stat *stat_buf,predicate *pred_ptr)

{
  undefined3 extraout_var;
  _Bool _Var1;
  
  _Var1 = is_ok(*(pred_ptr->args).exec_vec.replace_vec,pathname);
  if (CONCAT31(extraout_var,_Var1) == 0) {
    return _Var1;
  }
  _Var1 = impl_pred_exec(*(char **)(PTR_state_000755c0 + 0xc),stat_buf,pred_ptr);
  return _Var1;
}



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

{
  int iVar1;
  
  iVar1 = FUN_00018230(**(undefined4 **)(param_3 + 0x84),param_1);
  if (iVar1 == 0) {
    return;
  }
  impl_pred_exec(*(undefined4 *)(PTR_state_000755c0 + 0xc),param_2,param_3);
  return;
}


lui gp,0x6
addiu gp,gp,0x51c0
addu gp,gp,t9
lw v0,0x84(a2)
addiu sp,sp,-0x28
lw t9,-0x7f18(gp)
sw s1,0x20(sp)
or s1,a1,zero
or a1,a0,zero
sw gp,0x10(sp)
sw s0,0x1c(sp)
addiu t9,t9,-0x7dd0
sw ra,0x24(sp)
or s0,a2,zero
bal 0x00018230
_lw a0,0x0(v0)
bne v0,zero,0x0001841c
_lw gp,0x10(sp)
lw ra,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
lw v0,-0x7fc0(gp)
or a2,s0,zero
lw ra,0x24(sp)
or a1,s1,zero
lw s0,0x1c(sp)
lw s1,0x20(sp)
lw a0,0xc(v0)
lw t9,-0x7f40(gp)
b 0x000191b4
_addiu sp,sp,0x28
(translation_unit "void pred_okdir(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00018230(**(undefined4 **)(param_3 + 0x84),param_1);\n  if (iVar1 == 0) {\n    return;\n  }\n  impl_pred_exec(*(undefined4 *)(PTR_state_000755c0 + 0xc),param_2,param_3);\n  return;\n}\n\n" (function_definition "void pred_okdir(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00018230(**(undefined4 **)(param_3 + 0x84),param_1);\n  if (iVar1 == 0) {\n    return;\n  }\n  impl_pred_exec(*(undefined4 *)(PTR_state_000755c0 + 0xc),param_2,param_3);\n  return;\n}" primitive_type (function_declarator "pred_okdir(undefined4 param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_00018230(**(undefined4 **)(param_3 + 0x84),param_1);\n  if (iVar1 == 0) {\n    return;\n  }\n  impl_pred_exec(*(undefined4 *)(PTR_state_000755c0 + 0xc),param_2,param_3);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_00018230(**(undefined4 **)(param_3 + 0x84),param_1);" (assignment_expression "iVar1 = FUN_00018230(**(undefined4 **)(param_3 + 0x84),param_1)" identifier = (call_expression "FUN_00018230(**(undefined4 **)(param_3 + 0x84),param_1)" identifier (argument_list "(**(undefined4 **)(param_3 + 0x84),param_1)" ( (pointer_expression "**(undefined4 **)(param_3 + 0x84)" * (pointer_expression "*(undefined4 **)(param_3 + 0x84)" * (cast_expression "(undefined4 **)(param_3 + 0x84)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_3 + 0x84)" ( (binary_expression "param_3 + 0x84" identifier + number_literal) ))))) , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    return;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "impl_pred_exec(*(undefined4 *)(PTR_state_000755c0 + 0xc),param_2,param_3);" (call_expression "impl_pred_exec(*(undefined4 *)(PTR_state_000755c0 + 0xc),param_2,param_3)" identifier (argument_list "(*(undefined4 *)(PTR_state_000755c0 + 0xc),param_2,param_3)" ( (pointer_expression "*(undefined4 *)(PTR_state_000755c0 + 0xc)" * (cast_expression "(undefined4 *)(PTR_state_000755c0 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_state_000755c0 + 0xc)" ( (binary_expression "PTR_state_000755c0 + 0xc" identifier + number_literal) )))) , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "_Bool pred_okdir(char *pathname,stat *stat_buf,predicate *pred_ptr)\n\n{\n  undefined3 extraout_var;\n  _Bool _Var1;\n  \n  _Var1 = is_ok(*(pred_ptr->args).exec_vec.replace_vec,pathname);\n  if (CONCAT31(extraout_var,_Var1) == 0) {\n    return _Var1;\n  }\n  _Var1 = impl_pred_exec(*(char **)(PTR_state_000755c0 + 0xc),stat_buf,pred_ptr);\n  return _Var1;\n}\n\n" (function_definition "_Bool pred_okdir(char *pathname,stat *stat_buf,predicate *pred_ptr)\n\n{\n  undefined3 extraout_var;\n  _Bool _Var1;\n  \n  _Var1 = is_ok(*(pred_ptr->args).exec_vec.replace_vec,pathname);\n  if (CONCAT31(extraout_var,_Var1) == 0) {\n    return _Var1;\n  }\n  _Var1 = impl_pred_exec(*(char **)(PTR_state_000755c0 + 0xc),stat_buf,pred_ptr);\n  return _Var1;\n}" type_identifier (function_declarator "pred_okdir(char *pathname,stat *stat_buf,predicate *pred_ptr)" identifier (parameter_list "(char *pathname,stat *stat_buf,predicate *pred_ptr)" ( (parameter_declaration "char *pathname" primitive_type (pointer_declarator "*pathname" * identifier)) , (parameter_declaration "stat *stat_buf" type_identifier (pointer_declarator "*stat_buf" * identifier)) , (parameter_declaration "predicate *pred_ptr" type_identifier (pointer_declarator "*pred_ptr" * identifier)) ))) (compound_statement "{\n  undefined3 extraout_var;\n  _Bool _Var1;\n  \n  _Var1 = is_ok(*(pred_ptr->args).exec_vec.replace_vec,pathname);\n  if (CONCAT31(extraout_var,_Var1) == 0) {\n    return _Var1;\n  }\n  _Var1 = impl_pred_exec(*(char **)(PTR_state_000755c0 + 0xc),stat_buf,pred_ptr);\n  return _Var1;\n}" { (declaration "undefined3 extraout_var;" type_identifier identifier ;) (declaration "_Bool _Var1;" type_identifier identifier ;) (expression_statement "_Var1 = is_ok(*(pred_ptr->args).exec_vec.replace_vec,pathname);" (assignment_expression "_Var1 = is_ok(*(pred_ptr->args).exec_vec.replace_vec,pathname)" identifier = (call_expression "is_ok(*(pred_ptr->args).exec_vec.replace_vec,pathname)" identifier (argument_list "(*(pred_ptr->args).exec_vec.replace_vec,pathname)" ( (pointer_expression "*(pred_ptr->args).exec_vec.replace_vec" * (field_expression "(pred_ptr->args).exec_vec.replace_vec" (field_expression "(pred_ptr->args).exec_vec" (parenthesized_expression "(pred_ptr->args)" ( (field_expression "pred_ptr->args" identifier -> field_identifier) )) . field_identifier) . field_identifier)) , identifier )))) ;) (if_statement "if (CONCAT31(extraout_var,_Var1) == 0) {\n    return _Var1;\n  }" if (parenthesized_expression "(CONCAT31(extraout_var,_Var1) == 0)" ( (binary_expression "CONCAT31(extraout_var,_Var1) == 0" (call_expression "CONCAT31(extraout_var,_Var1)" identifier (argument_list "(extraout_var,_Var1)" ( identifier , identifier ))) == number_literal) )) (compound_statement "{\n    return _Var1;\n  }" { (return_statement "return _Var1;" return identifier ;) })) (expression_statement "_Var1 = impl_pred_exec(*(char **)(PTR_state_000755c0 + 0xc),stat_buf,pred_ptr);" (assignment_expression "_Var1 = impl_pred_exec(*(char **)(PTR_state_000755c0 + 0xc),stat_buf,pred_ptr)" identifier = (call_expression "impl_pred_exec(*(char **)(PTR_state_000755c0 + 0xc),stat_buf,pred_ptr)" identifier (argument_list "(*(char **)(PTR_state_000755c0 + 0xc),stat_buf,pred_ptr)" ( (pointer_expression "*(char **)(PTR_state_000755c0 + 0xc)" * (cast_expression "(char **)(PTR_state_000755c0 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_state_000755c0 + 0xc)" ( (binary_expression "PTR_state_000755c0 + 0xc" identifier + number_literal) )))) , identifier , identifier )))) ;) (return_statement "return _Var1;" return identifier ;) })))
(translation_unit "void pred_okdir(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00018230(**(undefined4 **)(param_3 + 0x84),param_1);\n  if (iVar1 == 0) {\n    return;\n  }\n  impl_pred_exec(*(undefined4 *)(PTR_state_000755c0 + 0xc),param_2,param_3);\n  return;\n}\n\n" (function_definition "void pred_okdir(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00018230(**(undefined4 **)(param_3 + 0x84),param_1);\n  if (iVar1 == 0) {\n    return;\n  }\n  impl_pred_exec(*(undefined4 *)(PTR_state_000755c0 + 0xc),param_2,param_3);\n  return;\n}" primitive_type (function_declarator "pred_okdir(undefined4 param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_00018230(**(undefined4 **)(param_3 + 0x84),param_1);\n  if (iVar1 == 0) {\n    return;\n  }\n  impl_pred_exec(*(undefined4 *)(PTR_state_000755c0 + 0xc),param_2,param_3);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_00018230(**(undefined4 **)(param_3 + 0x84),param_1);" (assignment_expression "iVar1 = FUN_00018230(**(undefined4 **)(param_3 + 0x84),param_1)" identifier = (call_expression "FUN_00018230(**(undefined4 **)(param_3 + 0x84),param_1)" identifier (argument_list "(**(undefined4 **)(param_3 + 0x84),param_1)" ( (pointer_expression "**(undefined4 **)(param_3 + 0x84)" * (pointer_expression "*(undefined4 **)(param_3 + 0x84)" * (cast_expression "(undefined4 **)(param_3 + 0x84)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_3 + 0x84)" ( (binary_expression "param_3 + 0x84" identifier + number_literal) ))))) , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    return;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "impl_pred_exec(*(undefined4 *)(PTR_state_000755c0 + 0xc),param_2,param_3);" (call_expression "impl_pred_exec(*(undefined4 *)(PTR_state_000755c0 + 0xc),param_2,param_3)" identifier (argument_list "(*(undefined4 *)(PTR_state_000755c0 + 0xc),param_2,param_3)" ( (pointer_expression "*(undefined4 *)(PTR_state_000755c0 + 0xc)" * (cast_expression "(undefined4 *)(PTR_state_000755c0 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_state_000755c0 + 0xc)" ( (binary_expression "PTR_state_000755c0 + 0xc" identifier + number_literal) )))) , 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 { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void pred_okdir(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00018230(**(undefined4 **)(param_3 + 0x84),param_1);\n  if (iVar1 == 0) {\n    return;\n  }\n  impl_pred_exec(*(undefined4 *)(PTR_state_000755c0 + 0xc),param_2,param_3);\n  return;\n}" (primitive_type "void") (function_declarator "pred_okdir(undefined4 param_1,undefined4 param_2,int param_3)" (identifier "pred_okdir") (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_00018230(**(undefined4 **)(param_3 + 0x84),param_1);\n  if (iVar1 == 0) {\n    return;\n  }\n  impl_pred_exec(*(undefined4 *)(PTR_state_000755c0 + 0xc),param_2,param_3);\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = FUN_00018230(**(undefined4 **)(param_3 + 0x84),param_1);" (assignment_expression "iVar1 = FUN_00018230(**(undefined4 **)(param_3 + 0x84),param_1)" (identifier "iVar1") (= "=") (call_expression "FUN_00018230(**(undefined4 **)(param_3 + 0x84),param_1)" (identifier "FUN_00018230") (argument_list "(**(undefined4 **)(param_3 + 0x84),param_1)" (( "(") (pointer_expression "**(undefined4 **)(param_3 + 0x84)" (* "*") (pointer_expression "*(undefined4 **)(param_3 + 0x84)" (* "*") (cast_expression "(undefined4 **)(param_3 + 0x84)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_3 + 0x84)" (( "(") (binary_expression "param_3 + 0x84" (identifier "param_3") (+ "+") (number_literal "0x84")) () ")"))))) (, ",") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n    return;\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "impl_pred_exec(*(undefined4 *)(PTR_state_000755c0 + 0xc),param_2,param_3);" (call_expression "impl_pred_exec(*(undefined4 *)(PTR_state_000755c0 + 0xc),param_2,param_3)" (identifier "impl_pred_exec") (argument_list "(*(undefined4 *)(PTR_state_000755c0 + 0xc),param_2,param_3)" (( "(") (pointer_expression "*(undefined4 *)(PTR_state_000755c0 + 0xc)" (* "*") (cast_expression "(undefined4 *)(PTR_state_000755c0 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_state_000755c0 + 0xc)" (( "(") (binary_expression "PTR_state_000755c0 + 0xc" (identifier "PTR_state_000755c0") (+ "+") (number_literal "0xc")) () ")")))) (, ",") (identifier "param_2") (, ",") (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: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (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)))))) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (identifier) (identifier)))) (return_statement))))

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

{
  int iVar1;
  
  iVar1 = FUN_00018230(**(undefined4 **)(param_3 + 0x84),param_1);
  if (iVar1 == 0) {
    return;
  }
  impl_pred_exec(*(undefined4 *)(PTR_state_000755c0 + 0xc),param_2,param_3);
  return;
}

