
int rl_undo_command(int count,int key)

{
  undefined *puVar1;
  int iVar2;
  
  puVar1 = PTR_rl_do_undo_00145d60;
  if (count < 1) {
    return 0;
  }
  do {
    count = count + -1;
    iVar2 = (*(code *)puVar1)();
    if (iVar2 == 0) {
      rl_ding();
      return 0;
    }
  } while (count != 0);
  return 0;
}



undefined4 rl_undo_command(int param_1)

{
  undefined *puVar1;
  int iVar2;
  
  puVar1 = PTR_rl_do_undo_00145d60;
  if (param_1 < 1) {
    return 0;
  }
  do {
    param_1 = param_1 + -1;
    iVar2 = (*(code *)puVar1)();
    if (iVar2 == 0) {
      rl_ding();
      return 0;
    }
  } while (param_1 != 0);
  return 0;
}


lui gp,0x5
addiu gp,gp,-0x5534
addu gp,gp,t9
blez a0,0x00101ae8
_nop
addiu sp,sp,-0x28
sw gp,0x10(sp)
sw s1,0x20(sp)
sw s0,0x1c(sp)
or s0,a0,zero
sw ra,0x24(sp)
b 0x00101ab0
_lw s1,-0x67e0(gp)
beq s0,zero,0x00101ad4
_lw ra,0x24(sp)
or t9,s1,zero
jalr t9
_addiu s0,s0,-0x1
bne v0,zero,0x00101aa8
_lw gp,0x10(sp)
lw t9,-0x6f0c(gp)
bal 0x00104b88
_nop
lw ra,0x24(sp)
or v0,zero,zero
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
jr ra
_or v0,zero,zero
(translation_unit "undefined4 rl_undo_command(int param_1)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  \n  puVar1 = PTR_rl_do_undo_00145d60;\n  if (param_1 < 1) {\n    return 0;\n  }\n  do {\n    param_1 = param_1 + -1;\n    iVar2 = (*(code *)puVar1)();\n    if (iVar2 == 0) {\n      rl_ding();\n      return 0;\n    }\n  } while (param_1 != 0);\n  return 0;\n}\n\n" (function_definition "undefined4 rl_undo_command(int param_1)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  \n  puVar1 = PTR_rl_do_undo_00145d60;\n  if (param_1 < 1) {\n    return 0;\n  }\n  do {\n    param_1 = param_1 + -1;\n    iVar2 = (*(code *)puVar1)();\n    if (iVar2 == 0) {\n      rl_ding();\n      return 0;\n    }\n  } while (param_1 != 0);\n  return 0;\n}" type_identifier (function_declarator "rl_undo_command(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  \n  puVar1 = PTR_rl_do_undo_00145d60;\n  if (param_1 < 1) {\n    return 0;\n  }\n  do {\n    param_1 = param_1 + -1;\n    iVar2 = (*(code *)puVar1)();\n    if (iVar2 == 0) {\n      rl_ding();\n      return 0;\n    }\n  } while (param_1 != 0);\n  return 0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "puVar1 = PTR_rl_do_undo_00145d60;" (assignment_expression "puVar1 = PTR_rl_do_undo_00145d60" identifier = identifier) ;) (if_statement "if (param_1 < 1) {\n    return 0;\n  }" if (parenthesized_expression "(param_1 < 1)" ( (binary_expression "param_1 < 1" identifier < number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (do_statement "do {\n    param_1 = param_1 + -1;\n    iVar2 = (*(code *)puVar1)();\n    if (iVar2 == 0) {\n      rl_ding();\n      return 0;\n    }\n  } while (param_1 != 0);" do (compound_statement "{\n    param_1 = param_1 + -1;\n    iVar2 = (*(code *)puVar1)();\n    if (iVar2 == 0) {\n      rl_ding();\n      return 0;\n    }\n  }" { (expression_statement "param_1 = param_1 + -1;" (assignment_expression "param_1 = param_1 + -1" identifier = (binary_expression "param_1 + -1" identifier + number_literal)) ;) (expression_statement "iVar2 = (*(code *)puVar1)();" (assignment_expression "iVar2 = (*(code *)puVar1)()" identifier = (call_expression "(*(code *)puVar1)()" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar2 == 0) {\n      rl_ding();\n      return 0;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      rl_ding();\n      return 0;\n    }" { (expression_statement "rl_ding();" (call_expression "rl_ding()" identifier (argument_list "()" ( ))) ;) (return_statement "return 0;" return number_literal ;) })) }) while (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int rl_undo_command(int count,int key)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  \n  puVar1 = PTR_rl_do_undo_00145d60;\n  if (count < 1) {\n    return 0;\n  }\n  do {\n    count = count + -1;\n    iVar2 = (*(code *)puVar1)();\n    if (iVar2 == 0) {\n      rl_ding();\n      return 0;\n    }\n  } while (count != 0);\n  return 0;\n}\n\n" (function_definition "int rl_undo_command(int count,int key)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  \n  puVar1 = PTR_rl_do_undo_00145d60;\n  if (count < 1) {\n    return 0;\n  }\n  do {\n    count = count + -1;\n    iVar2 = (*(code *)puVar1)();\n    if (iVar2 == 0) {\n      rl_ding();\n      return 0;\n    }\n  } while (count != 0);\n  return 0;\n}" primitive_type (function_declarator "rl_undo_command(int count,int key)" identifier (parameter_list "(int count,int key)" ( (parameter_declaration "int count" primitive_type identifier) , (parameter_declaration "int key" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  \n  puVar1 = PTR_rl_do_undo_00145d60;\n  if (count < 1) {\n    return 0;\n  }\n  do {\n    count = count + -1;\n    iVar2 = (*(code *)puVar1)();\n    if (iVar2 == 0) {\n      rl_ding();\n      return 0;\n    }\n  } while (count != 0);\n  return 0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "puVar1 = PTR_rl_do_undo_00145d60;" (assignment_expression "puVar1 = PTR_rl_do_undo_00145d60" identifier = identifier) ;) (if_statement "if (count < 1) {\n    return 0;\n  }" if (parenthesized_expression "(count < 1)" ( (binary_expression "count < 1" identifier < number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (do_statement "do {\n    count = count + -1;\n    iVar2 = (*(code *)puVar1)();\n    if (iVar2 == 0) {\n      rl_ding();\n      return 0;\n    }\n  } while (count != 0);" do (compound_statement "{\n    count = count + -1;\n    iVar2 = (*(code *)puVar1)();\n    if (iVar2 == 0) {\n      rl_ding();\n      return 0;\n    }\n  }" { (expression_statement "count = count + -1;" (assignment_expression "count = count + -1" identifier = (binary_expression "count + -1" identifier + number_literal)) ;) (expression_statement "iVar2 = (*(code *)puVar1)();" (assignment_expression "iVar2 = (*(code *)puVar1)()" identifier = (call_expression "(*(code *)puVar1)()" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar2 == 0) {\n      rl_ding();\n      return 0;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      rl_ding();\n      return 0;\n    }" { (expression_statement "rl_ding();" (call_expression "rl_ding()" identifier (argument_list "()" ( ))) ;) (return_statement "return 0;" return number_literal ;) })) }) while (parenthesized_expression "(count != 0)" ( (binary_expression "count != 0" identifier != number_literal) )) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 rl_undo_command(int param_1)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  \n  puVar1 = PTR_rl_do_undo_00145d60;\n  if (param_1 < 1) {\n    return 0;\n  }\n  do {\n    param_1 = param_1 + -1;\n    iVar2 = (*(code *)puVar1)();\n    if (iVar2 == 0) {\n      rl_ding();\n      return 0;\n    }\n  } while (param_1 != 0);\n  return 0;\n}\n\n" (function_definition "undefined4 rl_undo_command(int param_1)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  \n  puVar1 = PTR_rl_do_undo_00145d60;\n  if (param_1 < 1) {\n    return 0;\n  }\n  do {\n    param_1 = param_1 + -1;\n    iVar2 = (*(code *)puVar1)();\n    if (iVar2 == 0) {\n      rl_ding();\n      return 0;\n    }\n  } while (param_1 != 0);\n  return 0;\n}" type_identifier (function_declarator "rl_undo_command(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  \n  puVar1 = PTR_rl_do_undo_00145d60;\n  if (param_1 < 1) {\n    return 0;\n  }\n  do {\n    param_1 = param_1 + -1;\n    iVar2 = (*(code *)puVar1)();\n    if (iVar2 == 0) {\n      rl_ding();\n      return 0;\n    }\n  } while (param_1 != 0);\n  return 0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "puVar1 = PTR_rl_do_undo_00145d60;" (assignment_expression "puVar1 = PTR_rl_do_undo_00145d60" identifier = identifier) ;) (if_statement "if (param_1 < 1) {\n    return 0;\n  }" if (parenthesized_expression "(param_1 < 1)" ( (binary_expression "param_1 < 1" identifier < number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (do_statement "do {\n    param_1 = param_1 + -1;\n    iVar2 = (*(code *)puVar1)();\n    if (iVar2 == 0) {\n      rl_ding();\n      return 0;\n    }\n  } while (param_1 != 0);" do (compound_statement "{\n    param_1 = param_1 + -1;\n    iVar2 = (*(code *)puVar1)();\n    if (iVar2 == 0) {\n      rl_ding();\n      return 0;\n    }\n  }" { (expression_statement "param_1 = param_1 + -1;" (assignment_expression "param_1 = param_1 + -1" identifier = (binary_expression "param_1 + -1" identifier + number_literal)) ;) (expression_statement "iVar2 = (*(code *)puVar1)();" (assignment_expression "iVar2 = (*(code *)puVar1)()" identifier = (call_expression "(*(code *)puVar1)()" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar2 == 0) {\n      rl_ding();\n      return 0;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      rl_ding();\n      return 0;\n    }" { (expression_statement "rl_ding();" (call_expression "rl_ding()" identifier (argument_list "()" ( ))) ;) (return_statement "return 0;" return number_literal ;) })) }) while (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (return_statement return LIT ;) })) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return LIT ;) })) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 rl_undo_command(int param_1)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  \n  puVar1 = PTR_rl_do_undo_00145d60;\n  if (param_1 < 1) {\n    return 0;\n  }\n  do {\n    param_1 = param_1 + -1;\n    iVar2 = (*(code *)puVar1)();\n    if (iVar2 == 0) {\n      rl_ding();\n      return 0;\n    }\n  } while (param_1 != 0);\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "rl_undo_command(int param_1)" (identifier "rl_undo_command") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  \n  puVar1 = PTR_rl_do_undo_00145d60;\n  if (param_1 < 1) {\n    return 0;\n  }\n  do {\n    param_1 = param_1 + -1;\n    iVar2 = (*(code *)puVar1)();\n    if (iVar2 == 0) {\n      rl_ding();\n      return 0;\n    }\n  } while (param_1 != 0);\n  return 0;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "puVar1 = PTR_rl_do_undo_00145d60;" (assignment_expression "puVar1 = PTR_rl_do_undo_00145d60" (identifier "puVar1") (= "=") (identifier "PTR_rl_do_undo_00145d60")) (; ";")) (if_statement "if (param_1 < 1) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(param_1 < 1)" (( "(") (binary_expression "param_1 < 1" (identifier "param_1") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (do_statement "do {\n    param_1 = param_1 + -1;\n    iVar2 = (*(code *)puVar1)();\n    if (iVar2 == 0) {\n      rl_ding();\n      return 0;\n    }\n  } while (param_1 != 0);" (do "do") (compound_statement "{\n    param_1 = param_1 + -1;\n    iVar2 = (*(code *)puVar1)();\n    if (iVar2 == 0) {\n      rl_ding();\n      return 0;\n    }\n  }" ({ "{") (expression_statement "param_1 = param_1 + -1;" (assignment_expression "param_1 = param_1 + -1" (identifier "param_1") (= "=") (binary_expression "param_1 + -1" (identifier "param_1") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "iVar2 = (*(code *)puVar1)();" (assignment_expression "iVar2 = (*(code *)puVar1)()" (identifier "iVar2") (= "=") (call_expression "(*(code *)puVar1)()" (parenthesized_expression "(*(code *)puVar1)" (( "(") (pointer_expression "*(code *)puVar1" (* "*") (cast_expression "(code *)puVar1" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n      rl_ding();\n      return 0;\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      rl_ding();\n      return 0;\n    }" ({ "{") (expression_statement "rl_ding();" (call_expression "rl_ding()" (identifier "rl_ding") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (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)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (return_statement (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (return_statement (number_literal)))))

undefined4 MASKED(int param_1)

{
  undefined *puVar1;
  int iVar2;
  
  puVar1 = PTR_rl_do_undo_00145d60;
  if (param_1 < 1) {
    return 0;
  }
  do {
    param_1 = param_1 + -1;
    iVar2 = (*(code *)puVar1)();
    if (iVar2 == 0) {
      rl_ding();
      return 0;
    }
  } while (param_1 != 0);
  return 0;
}

