
int rl_unbind_function_in_map(rl_command_func_t *func,Keymap map)

{
  int iVar1;
  rl_command_func_t **pprVar2;
  
  pprVar2 = &map->function;
  iVar1 = 0;
  do {
    while ((((KEYMAP_ENTRY *)(pprVar2 + -1))->type == '\0' && (*pprVar2 == func))) {
      *pprVar2 = (rl_command_func_t *)0x0;
      pprVar2 = pprVar2 + 2;
      iVar1 = 1;
      if (pprVar2 == &map[0x101].function) {
        return 1;
      }
    }
    pprVar2 = pprVar2 + 2;
  } while (pprVar2 != &map[0x101].function);
  return iVar1;
}



undefined4 rl_unbind_function_in_map(int param_1,int param_2)

{
  undefined4 uVar1;
  int *piVar2;
  
  piVar2 = (int *)(param_2 + 4);
  uVar1 = 0;
  do {
    while ((*(char *)(piVar2 + -1) == '\0' && (*piVar2 == param_1))) {
      *piVar2 = 0;
      piVar2 = piVar2 + 2;
      uVar1 = 1;
      if (piVar2 == (int *)(param_2 + 0x80c)) {
        return 1;
      }
    }
    piVar2 = piVar2 + 2;
  } while (piVar2 != (int *)(param_2 + 0x80c));
  return uVar1;
}


addiu v1,a1,0x4
addiu a2,a1,0x80c
b 0x000f069c
_or v0,zero,zero
addiu v1,v1,0x8
beq v1,a2,0x000f06c4
_nop
lb a1,-0x4(v1)
bne a1,zero,0x000f0690
_nop
lw a1,0x0(v1)
bne a1,a0,0x000f0690
_nop
sw zero,0x0(v1)
addiu v1,v1,0x8
bne v1,a2,0x000f069c
_li v0,0x1
jr ra
_nop
(translation_unit "undefined4 rl_unbind_function_in_map(int param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  int *piVar2;\n  \n  piVar2 = (int *)(param_2 + 4);\n  uVar1 = 0;\n  do {\n    while ((*(char *)(piVar2 + -1) == '\0' && (*piVar2 == param_1))) {\n      *piVar2 = 0;\n      piVar2 = piVar2 + 2;\n      uVar1 = 1;\n      if (piVar2 == (int *)(param_2 + 0x80c)) {\n        return 1;\n      }\n    }\n    piVar2 = piVar2 + 2;\n  } while (piVar2 != (int *)(param_2 + 0x80c));\n  return uVar1;\n}\n\n" (function_definition "undefined4 rl_unbind_function_in_map(int param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  int *piVar2;\n  \n  piVar2 = (int *)(param_2 + 4);\n  uVar1 = 0;\n  do {\n    while ((*(char *)(piVar2 + -1) == '\0' && (*piVar2 == param_1))) {\n      *piVar2 = 0;\n      piVar2 = piVar2 + 2;\n      uVar1 = 1;\n      if (piVar2 == (int *)(param_2 + 0x80c)) {\n        return 1;\n      }\n    }\n    piVar2 = piVar2 + 2;\n  } while (piVar2 != (int *)(param_2 + 0x80c));\n  return uVar1;\n}" type_identifier (function_declarator "rl_unbind_function_in_map(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int *piVar2;\n  \n  piVar2 = (int *)(param_2 + 4);\n  uVar1 = 0;\n  do {\n    while ((*(char *)(piVar2 + -1) == '\0' && (*piVar2 == param_1))) {\n      *piVar2 = 0;\n      piVar2 = piVar2 + 2;\n      uVar1 = 1;\n      if (piVar2 == (int *)(param_2 + 0x80c)) {\n        return 1;\n      }\n    }\n    piVar2 = piVar2 + 2;\n  } while (piVar2 != (int *)(param_2 + 0x80c));\n  return uVar1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (expression_statement "piVar2 = (int *)(param_2 + 4);" (assignment_expression "piVar2 = (int *)(param_2 + 4)" identifier = (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n    while ((*(char *)(piVar2 + -1) == '\0' && (*piVar2 == param_1))) {\n      *piVar2 = 0;\n      piVar2 = piVar2 + 2;\n      uVar1 = 1;\n      if (piVar2 == (int *)(param_2 + 0x80c)) {\n        return 1;\n      }\n    }\n    piVar2 = piVar2 + 2;\n  } while (piVar2 != (int *)(param_2 + 0x80c));" do (compound_statement "{\n    while ((*(char *)(piVar2 + -1) == '\0' && (*piVar2 == param_1))) {\n      *piVar2 = 0;\n      piVar2 = piVar2 + 2;\n      uVar1 = 1;\n      if (piVar2 == (int *)(param_2 + 0x80c)) {\n        return 1;\n      }\n    }\n    piVar2 = piVar2 + 2;\n  }" { (while_statement "while ((*(char *)(piVar2 + -1) == '\0' && (*piVar2 == param_1))) {\n      *piVar2 = 0;\n      piVar2 = piVar2 + 2;\n      uVar1 = 1;\n      if (piVar2 == (int *)(param_2 + 0x80c)) {\n        return 1;\n      }\n    }" while (parenthesized_expression "((*(char *)(piVar2 + -1) == '\0' && (*piVar2 == param_1)))" ( (parenthesized_expression "(*(char *)(piVar2 + -1) == '\0' && (*piVar2 == param_1))" ( (binary_expression "*(char *)(piVar2 + -1) == '\0' && (*piVar2 == param_1)" (binary_expression "*(char *)(piVar2 + -1) == '\0'" (pointer_expression "*(char *)(piVar2 + -1)" * (cast_expression "(char *)(piVar2 + -1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2 + -1)" ( (binary_expression "piVar2 + -1" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) && (parenthesized_expression "(*piVar2 == param_1)" ( (binary_expression "*piVar2 == param_1" (pointer_expression "*piVar2" * identifier) == identifier) ))) )) )) (compound_statement "{\n      *piVar2 = 0;\n      piVar2 = piVar2 + 2;\n      uVar1 = 1;\n      if (piVar2 == (int *)(param_2 + 0x80c)) {\n        return 1;\n      }\n    }" { (expression_statement "*piVar2 = 0;" (assignment_expression "*piVar2 = 0" (pointer_expression "*piVar2" * identifier) = number_literal) ;) (expression_statement "piVar2 = piVar2 + 2;" (assignment_expression "piVar2 = piVar2 + 2" identifier = (binary_expression "piVar2 + 2" identifier + number_literal)) ;) (expression_statement "uVar1 = 1;" (assignment_expression "uVar1 = 1" identifier = number_literal) ;) (if_statement "if (piVar2 == (int *)(param_2 + 0x80c)) {\n        return 1;\n      }" if (parenthesized_expression "(piVar2 == (int *)(param_2 + 0x80c))" ( (binary_expression "piVar2 == (int *)(param_2 + 0x80c)" identifier == (cast_expression "(int *)(param_2 + 0x80c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x80c)" ( (binary_expression "param_2 + 0x80c" identifier + number_literal) )))) )) (compound_statement "{\n        return 1;\n      }" { (return_statement "return 1;" return number_literal ;) })) })) (expression_statement "piVar2 = piVar2 + 2;" (assignment_expression "piVar2 = piVar2 + 2" identifier = (binary_expression "piVar2 + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar2 != (int *)(param_2 + 0x80c))" ( (binary_expression "piVar2 != (int *)(param_2 + 0x80c)" identifier != (cast_expression "(int *)(param_2 + 0x80c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x80c)" ( (binary_expression "param_2 + 0x80c" identifier + number_literal) )))) )) ;) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "int rl_unbind_function_in_map(rl_command_func_t *func,Keymap map)\n\n{\n  int iVar1;\n  rl_command_func_t **pprVar2;\n  \n  pprVar2 = &map->function;\n  iVar1 = 0;\n  do {\n    while ((((KEYMAP_ENTRY *)(pprVar2 + -1))->type == '\0' && (*pprVar2 == func))) {\n      *pprVar2 = (rl_command_func_t *)0x0;\n      pprVar2 = pprVar2 + 2;\n      iVar1 = 1;\n      if (pprVar2 == &map[0x101].function) {\n        return 1;\n      }\n    }\n    pprVar2 = pprVar2 + 2;\n  } while (pprVar2 != &map[0x101].function);\n  return iVar1;\n}\n\n" (function_definition "int rl_unbind_function_in_map(rl_command_func_t *func,Keymap map)\n\n{\n  int iVar1;\n  rl_command_func_t **pprVar2;\n  \n  pprVar2 = &map->function;\n  iVar1 = 0;\n  do {\n    while ((((KEYMAP_ENTRY *)(pprVar2 + -1))->type == '\0' && (*pprVar2 == func))) {\n      *pprVar2 = (rl_command_func_t *)0x0;\n      pprVar2 = pprVar2 + 2;\n      iVar1 = 1;\n      if (pprVar2 == &map[0x101].function) {\n        return 1;\n      }\n    }\n    pprVar2 = pprVar2 + 2;\n  } while (pprVar2 != &map[0x101].function);\n  return iVar1;\n}" primitive_type (function_declarator "rl_unbind_function_in_map(rl_command_func_t *func,Keymap map)" identifier (parameter_list "(rl_command_func_t *func,Keymap map)" ( (parameter_declaration "rl_command_func_t *func" type_identifier (pointer_declarator "*func" * identifier)) , (parameter_declaration "Keymap map" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  rl_command_func_t **pprVar2;\n  \n  pprVar2 = &map->function;\n  iVar1 = 0;\n  do {\n    while ((((KEYMAP_ENTRY *)(pprVar2 + -1))->type == '\0' && (*pprVar2 == func))) {\n      *pprVar2 = (rl_command_func_t *)0x0;\n      pprVar2 = pprVar2 + 2;\n      iVar1 = 1;\n      if (pprVar2 == &map[0x101].function) {\n        return 1;\n      }\n    }\n    pprVar2 = pprVar2 + 2;\n  } while (pprVar2 != &map[0x101].function);\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "rl_command_func_t **pprVar2;" type_identifier (pointer_declarator "**pprVar2" * (pointer_declarator "*pprVar2" * identifier)) ;) (expression_statement "pprVar2 = &map->function;" (assignment_expression "pprVar2 = &map->function" identifier = (pointer_expression "&map->function" & (field_expression "map->function" identifier -> field_identifier))) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n    while ((((KEYMAP_ENTRY *)(pprVar2 + -1))->type == '\0' && (*pprVar2 == func))) {\n      *pprVar2 = (rl_command_func_t *)0x0;\n      pprVar2 = pprVar2 + 2;\n      iVar1 = 1;\n      if (pprVar2 == &map[0x101].function) {\n        return 1;\n      }\n    }\n    pprVar2 = pprVar2 + 2;\n  } while (pprVar2 != &map[0x101].function);" do (compound_statement "{\n    while ((((KEYMAP_ENTRY *)(pprVar2 + -1))->type == '\0' && (*pprVar2 == func))) {\n      *pprVar2 = (rl_command_func_t *)0x0;\n      pprVar2 = pprVar2 + 2;\n      iVar1 = 1;\n      if (pprVar2 == &map[0x101].function) {\n        return 1;\n      }\n    }\n    pprVar2 = pprVar2 + 2;\n  }" { (while_statement "while ((((KEYMAP_ENTRY *)(pprVar2 + -1))->type == '\0' && (*pprVar2 == func))) {\n      *pprVar2 = (rl_command_func_t *)0x0;\n      pprVar2 = pprVar2 + 2;\n      iVar1 = 1;\n      if (pprVar2 == &map[0x101].function) {\n        return 1;\n      }\n    }" while (parenthesized_expression "((((KEYMAP_ENTRY *)(pprVar2 + -1))->type == '\0' && (*pprVar2 == func)))" ( (parenthesized_expression "(((KEYMAP_ENTRY *)(pprVar2 + -1))->type == '\0' && (*pprVar2 == func))" ( (binary_expression "((KEYMAP_ENTRY *)(pprVar2 + -1))->type == '\0' && (*pprVar2 == func)" (binary_expression "((KEYMAP_ENTRY *)(pprVar2 + -1))->type == '\0'" (field_expression "((KEYMAP_ENTRY *)(pprVar2 + -1))->type" (parenthesized_expression "((KEYMAP_ENTRY *)(pprVar2 + -1))" ( (cast_expression "(KEYMAP_ENTRY *)(pprVar2 + -1)" ( (type_descriptor "KEYMAP_ENTRY *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pprVar2 + -1)" ( (binary_expression "pprVar2 + -1" identifier + number_literal) ))) )) -> field_identifier) == (char_literal "'\0'" ' escape_sequence ')) && (parenthesized_expression "(*pprVar2 == func)" ( (binary_expression "*pprVar2 == func" (pointer_expression "*pprVar2" * identifier) == identifier) ))) )) )) (compound_statement "{\n      *pprVar2 = (rl_command_func_t *)0x0;\n      pprVar2 = pprVar2 + 2;\n      iVar1 = 1;\n      if (pprVar2 == &map[0x101].function) {\n        return 1;\n      }\n    }" { (expression_statement "*pprVar2 = (rl_command_func_t *)0x0;" (assignment_expression "*pprVar2 = (rl_command_func_t *)0x0" (pointer_expression "*pprVar2" * identifier) = (cast_expression "(rl_command_func_t *)0x0" ( (type_descriptor "rl_command_func_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pprVar2 = pprVar2 + 2;" (assignment_expression "pprVar2 = pprVar2 + 2" identifier = (binary_expression "pprVar2 + 2" identifier + number_literal)) ;) (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) (if_statement "if (pprVar2 == &map[0x101].function) {\n        return 1;\n      }" if (parenthesized_expression "(pprVar2 == &map[0x101].function)" ( (binary_expression "pprVar2 == &map[0x101].function" identifier == (pointer_expression "&map[0x101].function" & (field_expression "map[0x101].function" (subscript_expression "map[0x101]" identifier [ number_literal ]) . field_identifier))) )) (compound_statement "{\n        return 1;\n      }" { (return_statement "return 1;" return number_literal ;) })) })) (expression_statement "pprVar2 = pprVar2 + 2;" (assignment_expression "pprVar2 = pprVar2 + 2" identifier = (binary_expression "pprVar2 + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "(pprVar2 != &map[0x101].function)" ( (binary_expression "pprVar2 != &map[0x101].function" identifier != (pointer_expression "&map[0x101].function" & (field_expression "map[0x101].function" (subscript_expression "map[0x101]" identifier [ number_literal ]) . field_identifier))) )) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "undefined4 rl_unbind_function_in_map(int param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  int *piVar2;\n  \n  piVar2 = (int *)(param_2 + 4);\n  uVar1 = 0;\n  do {\n    while ((*(char *)(piVar2 + -1) == '\0' && (*piVar2 == param_1))) {\n      *piVar2 = 0;\n      piVar2 = piVar2 + 2;\n      uVar1 = 1;\n      if (piVar2 == (int *)(param_2 + 0x80c)) {\n        return 1;\n      }\n    }\n    piVar2 = piVar2 + 2;\n  } while (piVar2 != (int *)(param_2 + 0x80c));\n  return uVar1;\n}\n\n" (function_definition "undefined4 rl_unbind_function_in_map(int param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  int *piVar2;\n  \n  piVar2 = (int *)(param_2 + 4);\n  uVar1 = 0;\n  do {\n    while ((*(char *)(piVar2 + -1) == '\0' && (*piVar2 == param_1))) {\n      *piVar2 = 0;\n      piVar2 = piVar2 + 2;\n      uVar1 = 1;\n      if (piVar2 == (int *)(param_2 + 0x80c)) {\n        return 1;\n      }\n    }\n    piVar2 = piVar2 + 2;\n  } while (piVar2 != (int *)(param_2 + 0x80c));\n  return uVar1;\n}" type_identifier (function_declarator "rl_unbind_function_in_map(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int *piVar2;\n  \n  piVar2 = (int *)(param_2 + 4);\n  uVar1 = 0;\n  do {\n    while ((*(char *)(piVar2 + -1) == '\0' && (*piVar2 == param_1))) {\n      *piVar2 = 0;\n      piVar2 = piVar2 + 2;\n      uVar1 = 1;\n      if (piVar2 == (int *)(param_2 + 0x80c)) {\n        return 1;\n      }\n    }\n    piVar2 = piVar2 + 2;\n  } while (piVar2 != (int *)(param_2 + 0x80c));\n  return uVar1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (expression_statement "piVar2 = (int *)(param_2 + 4);" (assignment_expression "piVar2 = (int *)(param_2 + 4)" identifier = (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n    while ((*(char *)(piVar2 + -1) == '\0' && (*piVar2 == param_1))) {\n      *piVar2 = 0;\n      piVar2 = piVar2 + 2;\n      uVar1 = 1;\n      if (piVar2 == (int *)(param_2 + 0x80c)) {\n        return 1;\n      }\n    }\n    piVar2 = piVar2 + 2;\n  } while (piVar2 != (int *)(param_2 + 0x80c));" do (compound_statement "{\n    while ((*(char *)(piVar2 + -1) == '\0' && (*piVar2 == param_1))) {\n      *piVar2 = 0;\n      piVar2 = piVar2 + 2;\n      uVar1 = 1;\n      if (piVar2 == (int *)(param_2 + 0x80c)) {\n        return 1;\n      }\n    }\n    piVar2 = piVar2 + 2;\n  }" { (while_statement "while ((*(char *)(piVar2 + -1) == '\0' && (*piVar2 == param_1))) {\n      *piVar2 = 0;\n      piVar2 = piVar2 + 2;\n      uVar1 = 1;\n      if (piVar2 == (int *)(param_2 + 0x80c)) {\n        return 1;\n      }\n    }" while (parenthesized_expression "((*(char *)(piVar2 + -1) == '\0' && (*piVar2 == param_1)))" ( (parenthesized_expression "(*(char *)(piVar2 + -1) == '\0' && (*piVar2 == param_1))" ( (binary_expression "*(char *)(piVar2 + -1) == '\0' && (*piVar2 == param_1)" (binary_expression "*(char *)(piVar2 + -1) == '\0'" (pointer_expression "*(char *)(piVar2 + -1)" * (cast_expression "(char *)(piVar2 + -1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2 + -1)" ( (binary_expression "piVar2 + -1" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) && (parenthesized_expression "(*piVar2 == param_1)" ( (binary_expression "*piVar2 == param_1" (pointer_expression "*piVar2" * identifier) == identifier) ))) )) )) (compound_statement "{\n      *piVar2 = 0;\n      piVar2 = piVar2 + 2;\n      uVar1 = 1;\n      if (piVar2 == (int *)(param_2 + 0x80c)) {\n        return 1;\n      }\n    }" { (expression_statement "*piVar2 = 0;" (assignment_expression "*piVar2 = 0" (pointer_expression "*piVar2" * identifier) = number_literal) ;) (expression_statement "piVar2 = piVar2 + 2;" (assignment_expression "piVar2 = piVar2 + 2" identifier = (binary_expression "piVar2 + 2" identifier + number_literal)) ;) (expression_statement "uVar1 = 1;" (assignment_expression "uVar1 = 1" identifier = number_literal) ;) (if_statement "if (piVar2 == (int *)(param_2 + 0x80c)) {\n        return 1;\n      }" if (parenthesized_expression "(piVar2 == (int *)(param_2 + 0x80c))" ( (binary_expression "piVar2 == (int *)(param_2 + 0x80c)" identifier == (cast_expression "(int *)(param_2 + 0x80c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x80c)" ( (binary_expression "param_2 + 0x80c" identifier + number_literal) )))) )) (compound_statement "{\n        return 1;\n      }" { (return_statement "return 1;" return number_literal ;) })) })) (expression_statement "piVar2 = piVar2 + 2;" (assignment_expression "piVar2 = piVar2 + 2" identifier = (binary_expression "piVar2 + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar2 != (int *)(param_2 + 0x80c))" ( (binary_expression "piVar2 != (int *)(param_2 + 0x80c)" identifier != (cast_expression "(int *)(param_2 + 0x80c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x80c)" ( (binary_expression "param_2 + 0x80c" identifier + number_literal) )))) )) ;) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) && (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == IDENT) ))) )) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) (compound_statement { (return_statement return LIT ;) })) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 rl_unbind_function_in_map(int param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  int *piVar2;\n  \n  piVar2 = (int *)(param_2 + 4);\n  uVar1 = 0;\n  do {\n    while ((*(char *)(piVar2 + -1) == '\0' && (*piVar2 == param_1))) {\n      *piVar2 = 0;\n      piVar2 = piVar2 + 2;\n      uVar1 = 1;\n      if (piVar2 == (int *)(param_2 + 0x80c)) {\n        return 1;\n      }\n    }\n    piVar2 = piVar2 + 2;\n  } while (piVar2 != (int *)(param_2 + 0x80c));\n  return uVar1;\n}" (type_identifier "undefined4") (function_declarator "rl_unbind_function_in_map(int param_1,int param_2)" (identifier "rl_unbind_function_in_map") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  int *piVar2;\n  \n  piVar2 = (int *)(param_2 + 4);\n  uVar1 = 0;\n  do {\n    while ((*(char *)(piVar2 + -1) == '\0' && (*piVar2 == param_1))) {\n      *piVar2 = 0;\n      piVar2 = piVar2 + 2;\n      uVar1 = 1;\n      if (piVar2 == (int *)(param_2 + 0x80c)) {\n        return 1;\n      }\n    }\n    piVar2 = piVar2 + 2;\n  } while (piVar2 != (int *)(param_2 + 0x80c));\n  return uVar1;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (expression_statement "piVar2 = (int *)(param_2 + 4);" (assignment_expression "piVar2 = (int *)(param_2 + 4)" (identifier "piVar2") (= "=") (cast_expression "(int *)(param_2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")")))) (; ";")) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" (identifier "uVar1") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n    while ((*(char *)(piVar2 + -1) == '\0' && (*piVar2 == param_1))) {\n      *piVar2 = 0;\n      piVar2 = piVar2 + 2;\n      uVar1 = 1;\n      if (piVar2 == (int *)(param_2 + 0x80c)) {\n        return 1;\n      }\n    }\n    piVar2 = piVar2 + 2;\n  } while (piVar2 != (int *)(param_2 + 0x80c));" (do "do") (compound_statement "{\n    while ((*(char *)(piVar2 + -1) == '\0' && (*piVar2 == param_1))) {\n      *piVar2 = 0;\n      piVar2 = piVar2 + 2;\n      uVar1 = 1;\n      if (piVar2 == (int *)(param_2 + 0x80c)) {\n        return 1;\n      }\n    }\n    piVar2 = piVar2 + 2;\n  }" ({ "{") (while_statement "while ((*(char *)(piVar2 + -1) == '\0' && (*piVar2 == param_1))) {\n      *piVar2 = 0;\n      piVar2 = piVar2 + 2;\n      uVar1 = 1;\n      if (piVar2 == (int *)(param_2 + 0x80c)) {\n        return 1;\n      }\n    }" (while "while") (parenthesized_expression "((*(char *)(piVar2 + -1) == '\0' && (*piVar2 == param_1)))" (( "(") (parenthesized_expression "(*(char *)(piVar2 + -1) == '\0' && (*piVar2 == param_1))" (( "(") (binary_expression "*(char *)(piVar2 + -1) == '\0' && (*piVar2 == param_1)" (binary_expression "*(char *)(piVar2 + -1) == '\0'" (pointer_expression "*(char *)(piVar2 + -1)" (* "*") (cast_expression "(char *)(piVar2 + -1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar2 + -1)" (( "(") (binary_expression "piVar2 + -1" (identifier "piVar2") (+ "+") (number_literal "-1")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (&& "&&") (parenthesized_expression "(*piVar2 == param_1)" (( "(") (binary_expression "*piVar2 == param_1" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (== "==") (identifier "param_1")) () ")"))) () ")")) () ")")) (compound_statement "{\n      *piVar2 = 0;\n      piVar2 = piVar2 + 2;\n      uVar1 = 1;\n      if (piVar2 == (int *)(param_2 + 0x80c)) {\n        return 1;\n      }\n    }" ({ "{") (expression_statement "*piVar2 = 0;" (assignment_expression "*piVar2 = 0" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar2 = piVar2 + 2;" (assignment_expression "piVar2 = piVar2 + 2" (identifier "piVar2") (= "=") (binary_expression "piVar2 + 2" (identifier "piVar2") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "uVar1 = 1;" (assignment_expression "uVar1 = 1" (identifier "uVar1") (= "=") (number_literal "1")) (; ";")) (if_statement "if (piVar2 == (int *)(param_2 + 0x80c)) {\n        return 1;\n      }" (if "if") (parenthesized_expression "(piVar2 == (int *)(param_2 + 0x80c))" (( "(") (binary_expression "piVar2 == (int *)(param_2 + 0x80c)" (identifier "piVar2") (== "==") (cast_expression "(int *)(param_2 + 0x80c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x80c)" (( "(") (binary_expression "param_2 + 0x80c" (identifier "param_2") (+ "+") (number_literal "0x80c")) () ")")))) () ")")) (compound_statement "{\n        return 1;\n      }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (} "}"))) (expression_statement "piVar2 = piVar2 + 2;" (assignment_expression "piVar2 = piVar2 + 2" (identifier "piVar2") (= "=") (binary_expression "piVar2 + 2" (identifier "piVar2") (+ "+") (number_literal "2"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(piVar2 != (int *)(param_2 + 0x80c))" (( "(") (binary_expression "piVar2 != (int *)(param_2 + 0x80c)" (identifier "piVar2") (!= "!=") (cast_expression "(int *)(param_2 + 0x80c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x80c)" (( "(") (binary_expression "param_2 + 0x80c" (identifier "param_2") (+ "+") (number_literal "0x80c")) () ")")))) () ")")) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}")))

int function_1(type_1 *var_2,type_2 map)

{
  int iVar1;
  type_1 **var_1;
  
  var_1 = &map->function;
  iVar1 = 0;
  do {
    while ((((type_3 *)(var_1 + -1))->type == '\0' && (*var_1 == var_2))) {
      *var_1 = (type_1 *)0x0;
      var_1 = var_1 + 2;
      iVar1 = 1;
      if (var_1 == &map[0x101].function) {
        return 1;
      }
    }
    var_1 = var_1 + 2;
  } while (var_1 != &map[0x101].function);
  return iVar1;
}


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

undefined4 MASKED(int param_1,int param_2)

{
  undefined4 uVar1;
  int *piVar2;
  
  piVar2 = (int *)(param_2 + 4);
  uVar1 = 0;
  do {
    while ((*(char *)(piVar2 + -1) == '\0' && (*piVar2 == param_1))) {
      *piVar2 = 0;
      piVar2 = piVar2 + 2;
      uVar1 = 1;
      if (piVar2 == (int *)(param_2 + 0x80c)) {
        return 1;
      }
    }
    piVar2 = piVar2 + 2;
  } while (piVar2 != (int *)(param_2 + 0x80c));
  return uVar1;
}

