
char * revstrpbrk(char *head,char *accept,char *pointer)

{
  bool bVar1;
  int iVar2;
  
  if ((*pointer != '\0') || (bVar1 = pointer != head, pointer = pointer + -1, bVar1)) {
    for (; head <= pointer; pointer = pointer + -1) {
      iVar2 = (*(code *)PTR_strchr_00078008)(accept,(int)*pointer);
      if (iVar2 != 0) {
        return pointer;
      }
    }
  }
  return (char *)0x0;
}



char * revstrpbrk(char *param_1,undefined4 param_2,char *param_3)

{
  bool bVar1;
  int iVar2;
  
  if ((*param_3 != '\0') || (bVar1 = param_3 != param_1, param_3 = param_3 + -1, bVar1)) {
    for (; param_1 <= param_3; param_3 = param_3 + -1) {
      iVar2 = (*(code *)PTR_strchr_00078008)(param_2,(int)*param_3);
      if (iVar2 != 0) {
        return param_3;
      }
    }
  }
  return (char *)0x0;
}


lui gp,0x6
addiu gp,gp,0x2b88
addu gp,gp,t9
addiu sp,sp,-0x28
lb v0,0x0(a2)
sw gp,0x10(sp)
sw s2,0x20(sp)
or s2,a1,zero
sw s1,0x1c(sp)
or s1,a0,zero
sw s0,0x18(sp)
or s0,a2,zero
bne v0,zero,0x0001c9d8
_sw ra,0x24(sp)
beq a2,a0,0x0001ca2c
_addiu s0,a2,-0x1
sltu v0,s0,s1
beq v0,zero,0x0001c9fc
_lw t9,-0x7518(gp)
b 0x0001ca14
_or v0,zero,zero
addiu s0,s0,-0x1
sltu v1,s0,s1
bne v1,zero,0x0001ca14
_lw t9,-0x7518(gp)
or a0,s2,zero
jalr t9
_lb a1,0x0(s0)
beq v0,zero,0x0001c9ec
_lw gp,0x10(sp)
or v0,s0,zero
lw ra,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
b 0x0001ca14
_or v0,zero,zero
(translation_unit "char * revstrpbrk(char *param_1,undefined4 param_2,char *param_3)\n\n{\n  bool bVar1;\n  int iVar2;\n  \n  if ((*param_3 != '\0') || (bVar1 = param_3 != param_1, param_3 = param_3 + -1, bVar1)) {\n    for (; param_1 <= param_3; param_3 = param_3 + -1) {\n      iVar2 = (*(code *)PTR_strchr_00078008)(param_2,(int)*param_3);\n      if (iVar2 != 0) {\n        return param_3;\n      }\n    }\n  }\n  return (char *)0x0;\n}\n\n" (function_definition "char * revstrpbrk(char *param_1,undefined4 param_2,char *param_3)\n\n{\n  bool bVar1;\n  int iVar2;\n  \n  if ((*param_3 != '\0') || (bVar1 = param_3 != param_1, param_3 = param_3 + -1, bVar1)) {\n    for (; param_1 <= param_3; param_3 = param_3 + -1) {\n      iVar2 = (*(code *)PTR_strchr_00078008)(param_2,(int)*param_3);\n      if (iVar2 != 0) {\n        return param_3;\n      }\n    }\n  }\n  return (char *)0x0;\n}" primitive_type (pointer_declarator "* revstrpbrk(char *param_1,undefined4 param_2,char *param_3)" * (function_declarator "revstrpbrk(char *param_1,undefined4 param_2,char *param_3)" identifier (parameter_list "(char *param_1,undefined4 param_2,char *param_3)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) )))) (compound_statement "{\n  bool bVar1;\n  int iVar2;\n  \n  if ((*param_3 != '\0') || (bVar1 = param_3 != param_1, param_3 = param_3 + -1, bVar1)) {\n    for (; param_1 <= param_3; param_3 = param_3 + -1) {\n      iVar2 = (*(code *)PTR_strchr_00078008)(param_2,(int)*param_3);\n      if (iVar2 != 0) {\n        return param_3;\n      }\n    }\n  }\n  return (char *)0x0;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if ((*param_3 != '\0') || (bVar1 = param_3 != param_1, param_3 = param_3 + -1, bVar1)) {\n    for (; param_1 <= param_3; param_3 = param_3 + -1) {\n      iVar2 = (*(code *)PTR_strchr_00078008)(param_2,(int)*param_3);\n      if (iVar2 != 0) {\n        return param_3;\n      }\n    }\n  }" if (parenthesized_expression "((*param_3 != '\0') || (bVar1 = param_3 != param_1, param_3 = param_3 + -1, bVar1))" ( (binary_expression "(*param_3 != '\0') || (bVar1 = param_3 != param_1, param_3 = param_3 + -1, bVar1)" (parenthesized_expression "(*param_3 != '\0')" ( (binary_expression "*param_3 != '\0'" (pointer_expression "*param_3" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(bVar1 = param_3 != param_1, param_3 = param_3 + -1, bVar1)" ( (comma_expression "bVar1 = param_3 != param_1, param_3 = param_3 + -1, bVar1" (assignment_expression "bVar1 = param_3 != param_1" identifier = (binary_expression "param_3 != param_1" identifier != identifier)) , (comma_expression "param_3 = param_3 + -1, bVar1" (assignment_expression "param_3 = param_3 + -1" identifier = (binary_expression "param_3 + -1" identifier + number_literal)) , identifier)) ))) )) (compound_statement "{\n    for (; param_1 <= param_3; param_3 = param_3 + -1) {\n      iVar2 = (*(code *)PTR_strchr_00078008)(param_2,(int)*param_3);\n      if (iVar2 != 0) {\n        return param_3;\n      }\n    }\n  }" { (for_statement "for (; param_1 <= param_3; param_3 = param_3 + -1) {\n      iVar2 = (*(code *)PTR_strchr_00078008)(param_2,(int)*param_3);\n      if (iVar2 != 0) {\n        return param_3;\n      }\n    }" for ( ; (binary_expression "param_1 <= param_3" identifier <= identifier) ; (assignment_expression "param_3 = param_3 + -1" identifier = (binary_expression "param_3 + -1" identifier + number_literal)) ) (compound_statement "{\n      iVar2 = (*(code *)PTR_strchr_00078008)(param_2,(int)*param_3);\n      if (iVar2 != 0) {\n        return param_3;\n      }\n    }" { (expression_statement "iVar2 = (*(code *)PTR_strchr_00078008)(param_2,(int)*param_3);" (assignment_expression "iVar2 = (*(code *)PTR_strchr_00078008)(param_2,(int)*param_3)" identifier = (call_expression "(*(code *)PTR_strchr_00078008)(param_2,(int)*param_3)" (parenthesized_expression "(*(code *)PTR_strchr_00078008)" ( (pointer_expression "*(code *)PTR_strchr_00078008" * (cast_expression "(code *)PTR_strchr_00078008" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2,(int)*param_3)" ( identifier , (cast_expression "(int)*param_3" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*param_3" * identifier)) )))) ;) (if_statement "if (iVar2 != 0) {\n        return param_3;\n      }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        return param_3;\n      }" { (return_statement "return param_3;" return identifier ;) })) })) })) (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "char * revstrpbrk(char *head,char *accept,char *pointer)\n\n{\n  bool bVar1;\n  int iVar2;\n  \n  if ((*pointer != '\0') || (bVar1 = pointer != head, pointer = pointer + -1, bVar1)) {\n    for (; head <= pointer; pointer = pointer + -1) {\n      iVar2 = (*(code *)PTR_strchr_00078008)(accept,(int)*pointer);\n      if (iVar2 != 0) {\n        return pointer;\n      }\n    }\n  }\n  return (char *)0x0;\n}\n\n" (function_definition "char * revstrpbrk(char *head,char *accept,char *pointer)\n\n{\n  bool bVar1;\n  int iVar2;\n  \n  if ((*pointer != '\0') || (bVar1 = pointer != head, pointer = pointer + -1, bVar1)) {\n    for (; head <= pointer; pointer = pointer + -1) {\n      iVar2 = (*(code *)PTR_strchr_00078008)(accept,(int)*pointer);\n      if (iVar2 != 0) {\n        return pointer;\n      }\n    }\n  }\n  return (char *)0x0;\n}" primitive_type (pointer_declarator "* revstrpbrk(char *head,char *accept,char *pointer)" * (function_declarator "revstrpbrk(char *head,char *accept,char *pointer)" identifier (parameter_list "(char *head,char *accept,char *pointer)" ( (parameter_declaration "char *head" primitive_type (pointer_declarator "*head" * identifier)) , (parameter_declaration "char *accept" primitive_type (pointer_declarator "*accept" * identifier)) , (parameter_declaration "char *pointer" primitive_type (pointer_declarator "*pointer" * identifier)) )))) (compound_statement "{\n  bool bVar1;\n  int iVar2;\n  \n  if ((*pointer != '\0') || (bVar1 = pointer != head, pointer = pointer + -1, bVar1)) {\n    for (; head <= pointer; pointer = pointer + -1) {\n      iVar2 = (*(code *)PTR_strchr_00078008)(accept,(int)*pointer);\n      if (iVar2 != 0) {\n        return pointer;\n      }\n    }\n  }\n  return (char *)0x0;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if ((*pointer != '\0') || (bVar1 = pointer != head, pointer = pointer + -1, bVar1)) {\n    for (; head <= pointer; pointer = pointer + -1) {\n      iVar2 = (*(code *)PTR_strchr_00078008)(accept,(int)*pointer);\n      if (iVar2 != 0) {\n        return pointer;\n      }\n    }\n  }" if (parenthesized_expression "((*pointer != '\0') || (bVar1 = pointer != head, pointer = pointer + -1, bVar1))" ( (binary_expression "(*pointer != '\0') || (bVar1 = pointer != head, pointer = pointer + -1, bVar1)" (parenthesized_expression "(*pointer != '\0')" ( (binary_expression "*pointer != '\0'" (pointer_expression "*pointer" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(bVar1 = pointer != head, pointer = pointer + -1, bVar1)" ( (comma_expression "bVar1 = pointer != head, pointer = pointer + -1, bVar1" (assignment_expression "bVar1 = pointer != head" identifier = (binary_expression "pointer != head" identifier != identifier)) , (comma_expression "pointer = pointer + -1, bVar1" (assignment_expression "pointer = pointer + -1" identifier = (binary_expression "pointer + -1" identifier + number_literal)) , identifier)) ))) )) (compound_statement "{\n    for (; head <= pointer; pointer = pointer + -1) {\n      iVar2 = (*(code *)PTR_strchr_00078008)(accept,(int)*pointer);\n      if (iVar2 != 0) {\n        return pointer;\n      }\n    }\n  }" { (for_statement "for (; head <= pointer; pointer = pointer + -1) {\n      iVar2 = (*(code *)PTR_strchr_00078008)(accept,(int)*pointer);\n      if (iVar2 != 0) {\n        return pointer;\n      }\n    }" for ( ; (binary_expression "head <= pointer" identifier <= identifier) ; (assignment_expression "pointer = pointer + -1" identifier = (binary_expression "pointer + -1" identifier + number_literal)) ) (compound_statement "{\n      iVar2 = (*(code *)PTR_strchr_00078008)(accept,(int)*pointer);\n      if (iVar2 != 0) {\n        return pointer;\n      }\n    }" { (expression_statement "iVar2 = (*(code *)PTR_strchr_00078008)(accept,(int)*pointer);" (assignment_expression "iVar2 = (*(code *)PTR_strchr_00078008)(accept,(int)*pointer)" identifier = (call_expression "(*(code *)PTR_strchr_00078008)(accept,(int)*pointer)" (parenthesized_expression "(*(code *)PTR_strchr_00078008)" ( (pointer_expression "*(code *)PTR_strchr_00078008" * (cast_expression "(code *)PTR_strchr_00078008" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(accept,(int)*pointer)" ( identifier , (cast_expression "(int)*pointer" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*pointer" * identifier)) )))) ;) (if_statement "if (iVar2 != 0) {\n        return pointer;\n      }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        return pointer;\n      }" { (return_statement "return pointer;" return identifier ;) })) })) })) (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "char * revstrpbrk(char *param_1,undefined4 param_2,char *param_3)\n\n{\n  bool bVar1;\n  int iVar2;\n  \n  if ((*param_3 != '\0') || (bVar1 = param_3 != param_1, param_3 = param_3 + -1, bVar1)) {\n    for (; param_1 <= param_3; param_3 = param_3 + -1) {\n      iVar2 = (*(code *)PTR_strchr_00078008)(param_2,(int)*param_3);\n      if (iVar2 != 0) {\n        return param_3;\n      }\n    }\n  }\n  return (char *)0x0;\n}\n\n" (function_definition "char * revstrpbrk(char *param_1,undefined4 param_2,char *param_3)\n\n{\n  bool bVar1;\n  int iVar2;\n  \n  if ((*param_3 != '\0') || (bVar1 = param_3 != param_1, param_3 = param_3 + -1, bVar1)) {\n    for (; param_1 <= param_3; param_3 = param_3 + -1) {\n      iVar2 = (*(code *)PTR_strchr_00078008)(param_2,(int)*param_3);\n      if (iVar2 != 0) {\n        return param_3;\n      }\n    }\n  }\n  return (char *)0x0;\n}" primitive_type (pointer_declarator "* revstrpbrk(char *param_1,undefined4 param_2,char *param_3)" * (function_declarator "revstrpbrk(char *param_1,undefined4 param_2,char *param_3)" identifier (parameter_list "(char *param_1,undefined4 param_2,char *param_3)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) )))) (compound_statement "{\n  bool bVar1;\n  int iVar2;\n  \n  if ((*param_3 != '\0') || (bVar1 = param_3 != param_1, param_3 = param_3 + -1, bVar1)) {\n    for (; param_1 <= param_3; param_3 = param_3 + -1) {\n      iVar2 = (*(code *)PTR_strchr_00078008)(param_2,(int)*param_3);\n      if (iVar2 != 0) {\n        return param_3;\n      }\n    }\n  }\n  return (char *)0x0;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if ((*param_3 != '\0') || (bVar1 = param_3 != param_1, param_3 = param_3 + -1, bVar1)) {\n    for (; param_1 <= param_3; param_3 = param_3 + -1) {\n      iVar2 = (*(code *)PTR_strchr_00078008)(param_2,(int)*param_3);\n      if (iVar2 != 0) {\n        return param_3;\n      }\n    }\n  }" if (parenthesized_expression "((*param_3 != '\0') || (bVar1 = param_3 != param_1, param_3 = param_3 + -1, bVar1))" ( (binary_expression "(*param_3 != '\0') || (bVar1 = param_3 != param_1, param_3 = param_3 + -1, bVar1)" (parenthesized_expression "(*param_3 != '\0')" ( (binary_expression "*param_3 != '\0'" (pointer_expression "*param_3" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(bVar1 = param_3 != param_1, param_3 = param_3 + -1, bVar1)" ( (comma_expression "bVar1 = param_3 != param_1, param_3 = param_3 + -1, bVar1" (assignment_expression "bVar1 = param_3 != param_1" identifier = (binary_expression "param_3 != param_1" identifier != identifier)) , (comma_expression "param_3 = param_3 + -1, bVar1" (assignment_expression "param_3 = param_3 + -1" identifier = (binary_expression "param_3 + -1" identifier + number_literal)) , identifier)) ))) )) (compound_statement "{\n    for (; param_1 <= param_3; param_3 = param_3 + -1) {\n      iVar2 = (*(code *)PTR_strchr_00078008)(param_2,(int)*param_3);\n      if (iVar2 != 0) {\n        return param_3;\n      }\n    }\n  }" { (for_statement "for (; param_1 <= param_3; param_3 = param_3 + -1) {\n      iVar2 = (*(code *)PTR_strchr_00078008)(param_2,(int)*param_3);\n      if (iVar2 != 0) {\n        return param_3;\n      }\n    }" for ( ; (binary_expression "param_1 <= param_3" identifier <= identifier) ; (assignment_expression "param_3 = param_3 + -1" identifier = (binary_expression "param_3 + -1" identifier + number_literal)) ) (compound_statement "{\n      iVar2 = (*(code *)PTR_strchr_00078008)(param_2,(int)*param_3);\n      if (iVar2 != 0) {\n        return param_3;\n      }\n    }" { (expression_statement "iVar2 = (*(code *)PTR_strchr_00078008)(param_2,(int)*param_3);" (assignment_expression "iVar2 = (*(code *)PTR_strchr_00078008)(param_2,(int)*param_3)" identifier = (call_expression "(*(code *)PTR_strchr_00078008)(param_2,(int)*param_3)" (parenthesized_expression "(*(code *)PTR_strchr_00078008)" ( (pointer_expression "*(code *)PTR_strchr_00078008" * (cast_expression "(code *)PTR_strchr_00078008" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2,(int)*param_3)" ( identifier , (cast_expression "(int)*param_3" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*param_3" * identifier)) )))) ;) (if_statement "if (iVar2 != 0) {\n        return param_3;\n      }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        return param_3;\n      }" { (return_statement "return param_3;" return identifier ;) })) })) })) (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' escape_sequence ')) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression IDENT != IDENT)) , (comma_expression (assignment_expression IDENT = (binary_expression IDENT + LIT)) , IDENT)) ))) )) (compound_statement { (for_statement for ( ; (binary_expression IDENT <= IDENT) ; (assignment_expression IDENT = (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 , (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * IDENT)) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return IDENT ;) })) })) })) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })))
(function_definition "char * revstrpbrk(char *param_1,undefined4 param_2,char *param_3)\n\n{\n  bool bVar1;\n  int iVar2;\n  \n  if ((*param_3 != '\0') || (bVar1 = param_3 != param_1, param_3 = param_3 + -1, bVar1)) {\n    for (; param_1 <= param_3; param_3 = param_3 + -1) {\n      iVar2 = (*(code *)PTR_strchr_00078008)(param_2,(int)*param_3);\n      if (iVar2 != 0) {\n        return param_3;\n      }\n    }\n  }\n  return (char *)0x0;\n}" (primitive_type "char") (pointer_declarator "* revstrpbrk(char *param_1,undefined4 param_2,char *param_3)" (* "*") (function_declarator "revstrpbrk(char *param_1,undefined4 param_2,char *param_3)" (identifier "revstrpbrk") (parameter_list "(char *param_1,undefined4 param_2,char *param_3)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "char *param_3" (primitive_type "char") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")")))) (compound_statement "{\n  bool bVar1;\n  int iVar2;\n  \n  if ((*param_3 != '\0') || (bVar1 = param_3 != param_1, param_3 = param_3 + -1, bVar1)) {\n    for (; param_1 <= param_3; param_3 = param_3 + -1) {\n      iVar2 = (*(code *)PTR_strchr_00078008)(param_2,(int)*param_3);\n      if (iVar2 != 0) {\n        return param_3;\n      }\n    }\n  }\n  return (char *)0x0;\n}" ({ "{") (declaration "bool bVar1;" (primitive_type "bool") (identifier "bVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (if_statement "if ((*param_3 != '\0') || (bVar1 = param_3 != param_1, param_3 = param_3 + -1, bVar1)) {\n    for (; param_1 <= param_3; param_3 = param_3 + -1) {\n      iVar2 = (*(code *)PTR_strchr_00078008)(param_2,(int)*param_3);\n      if (iVar2 != 0) {\n        return param_3;\n      }\n    }\n  }" (if "if") (parenthesized_expression "((*param_3 != '\0') || (bVar1 = param_3 != param_1, param_3 = param_3 + -1, bVar1))" (( "(") (binary_expression "(*param_3 != '\0') || (bVar1 = param_3 != param_1, param_3 = param_3 + -1, bVar1)" (parenthesized_expression "(*param_3 != '\0')" (( "(") (binary_expression "*param_3 != '\0'" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (|| "||") (parenthesized_expression "(bVar1 = param_3 != param_1, param_3 = param_3 + -1, bVar1)" (( "(") (comma_expression "bVar1 = param_3 != param_1, param_3 = param_3 + -1, bVar1" (assignment_expression "bVar1 = param_3 != param_1" (identifier "bVar1") (= "=") (binary_expression "param_3 != param_1" (identifier "param_3") (!= "!=") (identifier "param_1"))) (, ",") (comma_expression "param_3 = param_3 + -1, bVar1" (assignment_expression "param_3 = param_3 + -1" (identifier "param_3") (= "=") (binary_expression "param_3 + -1" (identifier "param_3") (+ "+") (number_literal "-1"))) (, ",") (identifier "bVar1"))) () ")"))) () ")")) (compound_statement "{\n    for (; param_1 <= param_3; param_3 = param_3 + -1) {\n      iVar2 = (*(code *)PTR_strchr_00078008)(param_2,(int)*param_3);\n      if (iVar2 != 0) {\n        return param_3;\n      }\n    }\n  }" ({ "{") (for_statement "for (; param_1 <= param_3; param_3 = param_3 + -1) {\n      iVar2 = (*(code *)PTR_strchr_00078008)(param_2,(int)*param_3);\n      if (iVar2 != 0) {\n        return param_3;\n      }\n    }" (for "for") (( "(") (; ";") (binary_expression "param_1 <= param_3" (identifier "param_1") (<= "<=") (identifier "param_3")) (; ";") (assignment_expression "param_3 = param_3 + -1" (identifier "param_3") (= "=") (binary_expression "param_3 + -1" (identifier "param_3") (+ "+") (number_literal "-1"))) () ")") (compound_statement "{\n      iVar2 = (*(code *)PTR_strchr_00078008)(param_2,(int)*param_3);\n      if (iVar2 != 0) {\n        return param_3;\n      }\n    }" ({ "{") (expression_statement "iVar2 = (*(code *)PTR_strchr_00078008)(param_2,(int)*param_3);" (assignment_expression "iVar2 = (*(code *)PTR_strchr_00078008)(param_2,(int)*param_3)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_strchr_00078008)(param_2,(int)*param_3)" (parenthesized_expression "(*(code *)PTR_strchr_00078008)" (( "(") (pointer_expression "*(code *)PTR_strchr_00078008" (* "*") (cast_expression "(code *)PTR_strchr_00078008" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strchr_00078008"))) () ")")) (argument_list "(param_2,(int)*param_3)" (( "(") (identifier "param_2") (, ",") (cast_expression "(int)*param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n        return param_3;\n      }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        return param_3;\n      }" ({ "{") (return_statement "return param_3;" (return "return") (identifier "param_3") (; ";")) (} "}"))) (} "}"))) (} "}"))) (return_statement "return (char *)0x0;" (return "return") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}")))

char * function_1(char *var_2,char *accept,char *var_1)

{
  bool bVar1;
  int var_3;
  
  if ((*var_1 != '\0') || (bVar1 = var_1 != var_2, var_1 = var_1 + -1, bVar1)) {
    for (; var_2 <= var_1; var_1 = var_1 + -1) {
      var_3 = (*(type_1 *)PTR_strchr_00078008)(accept,(int)*var_1);
      if (var_3 != 0) {
        return var_1;
      }
    }
  }
  return (char *)0x0;
}


(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier)))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))) right: (comma_expression left: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) right: (identifier)))))) consequence: (compound_statement (for_statement condition: (binary_expression left: (identifier) right: (identifier)) update: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) body: (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) (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 (identifier)))))))) (return_statement (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))))

char * MASKED(char *param_1,undefined4 param_2,char *param_3)

{
  bool bVar1;
  int iVar2;
  
  if ((*param_3 != '\0') || (bVar1 = param_3 != param_1, param_3 = param_3 + -1, bVar1)) {
    for (; param_1 <= param_3; param_3 = param_3 + -1) {
      iVar2 = (*(code *)PTR_strchr_00078008)(param_2,(int)*param_3);
      if (iVar2 != 0) {
        return param_3;
      }
    }
  }
  return (char *)0x0;
}

