
int _rl_unget_char(int key)

{
  int iVar1;
  undefined *puVar2;
  
  iVar1 = ibuffer_space();
  puVar2 = PTR_pidstat_table_3077__0015656c;
  if (iVar1 != 0) {
    if (*(int *)(PTR_pidstat_table_3077__0015656c + -0x3550) + -1 < 0) {
      *(undefined4 *)(PTR_pidstat_table_3077__0015656c + -0x3550) = 0x1ff;
    }
    else {
      *(int *)(PTR_pidstat_table_3077__0015656c + -0x3550) =
           *(int *)(PTR_pidstat_table_3077__0015656c + -0x3550) + -1;
      puVar2 = PTR_pidstat_table_3077__0015656c;
    }
    PTR_pidstat_table_3077__0015656c[*(int *)(puVar2 + -0x3550) + -0x3754] = (char)key;
    iVar1 = 1;
  }
  return iVar1;
}



int _rl_unget_char(undefined1 param_1)

{
  int iVar1;
  undefined *puVar2;
  
  iVar1 = FUN_00112f30();
  puVar2 = PTR_DAT_0015656c;
  if (iVar1 != 0) {
    if (*(int *)(PTR_DAT_0015656c + -0x3550) + -1 < 0) {
      *(undefined4 *)(PTR_DAT_0015656c + -0x3550) = 0x1ff;
    }
    else {
      *(int *)(PTR_DAT_0015656c + -0x3550) = *(int *)(PTR_DAT_0015656c + -0x3550) + -1;
      puVar2 = PTR_DAT_0015656c;
    }
    PTR_DAT_0015656c[*(int *)(puVar2 + -0x3550) + -0x3754] = param_1;
    iVar1 = 1;
  }
  return iVar1;
}


lui gp,0x5
addiu gp,gp,-0x4e78
addu gp,gp,t9
addiu sp,sp,-0x20
sw ra,0x1c(sp)
sw s0,0x18(sp)
sw gp,0x10(sp)
or s0,a0,zero
lw t9,-0x6470(gp)
addiu t9,t9,0x2f30
bal 0x00112f30
_nop
lw gp,0x10(sp)
bne v0,zero,0x00113404
_nop
lw ra,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
lw v0,-0x7fd4(gp)
lw v0,-0x3550(v0)
addiu v0,v0,-0x1
bltz v0,0x0011343c
_lw v1,-0x7fd4(gp)
sw v0,-0x3550(v1)
lw v0,-0x7fd4(gp)
lw v0,-0x3550(v0)
lw v1,-0x7fd4(gp)
addiu v1,v1,-0x3754
addu v0,v0,v1
sb s0,0x0(v0)
b 0x001133f4
_li v0,0x1
lw v0,-0x7fd4(gp)
li v1,0x1ff
b 0x00113420
_sw v1,-0x3550(v0)
(translation_unit "int _rl_unget_char(undefined1 param_1)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  \n  iVar1 = FUN_00112f30();\n  puVar2 = PTR_DAT_0015656c;\n  if (iVar1 != 0) {\n    if (*(int *)(PTR_DAT_0015656c + -0x3550) + -1 < 0) {\n      *(undefined4 *)(PTR_DAT_0015656c + -0x3550) = 0x1ff;\n    }\n    else {\n      *(int *)(PTR_DAT_0015656c + -0x3550) = *(int *)(PTR_DAT_0015656c + -0x3550) + -1;\n      puVar2 = PTR_DAT_0015656c;\n    }\n    PTR_DAT_0015656c[*(int *)(puVar2 + -0x3550) + -0x3754] = param_1;\n    iVar1 = 1;\n  }\n  return iVar1;\n}\n\n" (function_definition "int _rl_unget_char(undefined1 param_1)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  \n  iVar1 = FUN_00112f30();\n  puVar2 = PTR_DAT_0015656c;\n  if (iVar1 != 0) {\n    if (*(int *)(PTR_DAT_0015656c + -0x3550) + -1 < 0) {\n      *(undefined4 *)(PTR_DAT_0015656c + -0x3550) = 0x1ff;\n    }\n    else {\n      *(int *)(PTR_DAT_0015656c + -0x3550) = *(int *)(PTR_DAT_0015656c + -0x3550) + -1;\n      puVar2 = PTR_DAT_0015656c;\n    }\n    PTR_DAT_0015656c[*(int *)(puVar2 + -0x3550) + -0x3754] = param_1;\n    iVar1 = 1;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "_rl_unget_char(undefined1 param_1)" identifier (parameter_list "(undefined1 param_1)" ( (parameter_declaration "undefined1 param_1" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined *puVar2;\n  \n  iVar1 = FUN_00112f30();\n  puVar2 = PTR_DAT_0015656c;\n  if (iVar1 != 0) {\n    if (*(int *)(PTR_DAT_0015656c + -0x3550) + -1 < 0) {\n      *(undefined4 *)(PTR_DAT_0015656c + -0x3550) = 0x1ff;\n    }\n    else {\n      *(int *)(PTR_DAT_0015656c + -0x3550) = *(int *)(PTR_DAT_0015656c + -0x3550) + -1;\n      puVar2 = PTR_DAT_0015656c;\n    }\n    PTR_DAT_0015656c[*(int *)(puVar2 + -0x3550) + -0x3754] = param_1;\n    iVar1 = 1;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (expression_statement "iVar1 = FUN_00112f30();" (assignment_expression "iVar1 = FUN_00112f30()" identifier = (call_expression "FUN_00112f30()" identifier (argument_list "()" ( )))) ;) (expression_statement "puVar2 = PTR_DAT_0015656c;" (assignment_expression "puVar2 = PTR_DAT_0015656c" identifier = identifier) ;) (if_statement "if (iVar1 != 0) {\n    if (*(int *)(PTR_DAT_0015656c + -0x3550) + -1 < 0) {\n      *(undefined4 *)(PTR_DAT_0015656c + -0x3550) = 0x1ff;\n    }\n    else {\n      *(int *)(PTR_DAT_0015656c + -0x3550) = *(int *)(PTR_DAT_0015656c + -0x3550) + -1;\n      puVar2 = PTR_DAT_0015656c;\n    }\n    PTR_DAT_0015656c[*(int *)(puVar2 + -0x3550) + -0x3754] = param_1;\n    iVar1 = 1;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if (*(int *)(PTR_DAT_0015656c + -0x3550) + -1 < 0) {\n      *(undefined4 *)(PTR_DAT_0015656c + -0x3550) = 0x1ff;\n    }\n    else {\n      *(int *)(PTR_DAT_0015656c + -0x3550) = *(int *)(PTR_DAT_0015656c + -0x3550) + -1;\n      puVar2 = PTR_DAT_0015656c;\n    }\n    PTR_DAT_0015656c[*(int *)(puVar2 + -0x3550) + -0x3754] = param_1;\n    iVar1 = 1;\n  }" { (if_statement "if (*(int *)(PTR_DAT_0015656c + -0x3550) + -1 < 0) {\n      *(undefined4 *)(PTR_DAT_0015656c + -0x3550) = 0x1ff;\n    }\n    else {\n      *(int *)(PTR_DAT_0015656c + -0x3550) = *(int *)(PTR_DAT_0015656c + -0x3550) + -1;\n      puVar2 = PTR_DAT_0015656c;\n    }" if (parenthesized_expression "(*(int *)(PTR_DAT_0015656c + -0x3550) + -1 < 0)" ( (binary_expression "*(int *)(PTR_DAT_0015656c + -0x3550) + -1 < 0" (binary_expression "*(int *)(PTR_DAT_0015656c + -0x3550) + -1" (pointer_expression "*(int *)(PTR_DAT_0015656c + -0x3550)" * (cast_expression "(int *)(PTR_DAT_0015656c + -0x3550)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0015656c + -0x3550)" ( (binary_expression "PTR_DAT_0015656c + -0x3550" identifier + number_literal) )))) + number_literal) < number_literal) )) (compound_statement "{\n      *(undefined4 *)(PTR_DAT_0015656c + -0x3550) = 0x1ff;\n    }" { (expression_statement "*(undefined4 *)(PTR_DAT_0015656c + -0x3550) = 0x1ff;" (assignment_expression "*(undefined4 *)(PTR_DAT_0015656c + -0x3550) = 0x1ff" (pointer_expression "*(undefined4 *)(PTR_DAT_0015656c + -0x3550)" * (cast_expression "(undefined4 *)(PTR_DAT_0015656c + -0x3550)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0015656c + -0x3550)" ( (binary_expression "PTR_DAT_0015656c + -0x3550" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n      *(int *)(PTR_DAT_0015656c + -0x3550) = *(int *)(PTR_DAT_0015656c + -0x3550) + -1;\n      puVar2 = PTR_DAT_0015656c;\n    }" else (compound_statement "{\n      *(int *)(PTR_DAT_0015656c + -0x3550) = *(int *)(PTR_DAT_0015656c + -0x3550) + -1;\n      puVar2 = PTR_DAT_0015656c;\n    }" { (expression_statement "*(int *)(PTR_DAT_0015656c + -0x3550) = *(int *)(PTR_DAT_0015656c + -0x3550) + -1;" (assignment_expression "*(int *)(PTR_DAT_0015656c + -0x3550) = *(int *)(PTR_DAT_0015656c + -0x3550) + -1" (pointer_expression "*(int *)(PTR_DAT_0015656c + -0x3550)" * (cast_expression "(int *)(PTR_DAT_0015656c + -0x3550)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0015656c + -0x3550)" ( (binary_expression "PTR_DAT_0015656c + -0x3550" identifier + number_literal) )))) = (binary_expression "*(int *)(PTR_DAT_0015656c + -0x3550) + -1" (pointer_expression "*(int *)(PTR_DAT_0015656c + -0x3550)" * (cast_expression "(int *)(PTR_DAT_0015656c + -0x3550)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0015656c + -0x3550)" ( (binary_expression "PTR_DAT_0015656c + -0x3550" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "puVar2 = PTR_DAT_0015656c;" (assignment_expression "puVar2 = PTR_DAT_0015656c" identifier = identifier) ;) }))) (expression_statement "PTR_DAT_0015656c[*(int *)(puVar2 + -0x3550) + -0x3754] = param_1;" (assignment_expression "PTR_DAT_0015656c[*(int *)(puVar2 + -0x3550) + -0x3754] = param_1" (subscript_expression "PTR_DAT_0015656c[*(int *)(puVar2 + -0x3550) + -0x3754]" identifier [ (binary_expression "*(int *)(puVar2 + -0x3550) + -0x3754" (pointer_expression "*(int *)(puVar2 + -0x3550)" * (cast_expression "(int *)(puVar2 + -0x3550)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + -0x3550)" ( (binary_expression "puVar2 + -0x3550" identifier + number_literal) )))) + number_literal) ]) = identifier) ;) (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "int _rl_unget_char(int key)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  \n  iVar1 = ibuffer_space();\n  puVar2 = PTR_pidstat_table_3077__0015656c;\n  if (iVar1 != 0) {\n    if (*(int *)(PTR_pidstat_table_3077__0015656c + -0x3550) + -1 < 0) {\n      *(undefined4 *)(PTR_pidstat_table_3077__0015656c + -0x3550) = 0x1ff;\n    }\n    else {\n      *(int *)(PTR_pidstat_table_3077__0015656c + -0x3550) =\n           *(int *)(PTR_pidstat_table_3077__0015656c + -0x3550) + -1;\n      puVar2 = PTR_pidstat_table_3077__0015656c;\n    }\n    PTR_pidstat_table_3077__0015656c[*(int *)(puVar2 + -0x3550) + -0x3754] = (char)key;\n    iVar1 = 1;\n  }\n  return iVar1;\n}\n\n" (function_definition "int _rl_unget_char(int key)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  \n  iVar1 = ibuffer_space();\n  puVar2 = PTR_pidstat_table_3077__0015656c;\n  if (iVar1 != 0) {\n    if (*(int *)(PTR_pidstat_table_3077__0015656c + -0x3550) + -1 < 0) {\n      *(undefined4 *)(PTR_pidstat_table_3077__0015656c + -0x3550) = 0x1ff;\n    }\n    else {\n      *(int *)(PTR_pidstat_table_3077__0015656c + -0x3550) =\n           *(int *)(PTR_pidstat_table_3077__0015656c + -0x3550) + -1;\n      puVar2 = PTR_pidstat_table_3077__0015656c;\n    }\n    PTR_pidstat_table_3077__0015656c[*(int *)(puVar2 + -0x3550) + -0x3754] = (char)key;\n    iVar1 = 1;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "_rl_unget_char(int key)" identifier (parameter_list "(int key)" ( (parameter_declaration "int key" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined *puVar2;\n  \n  iVar1 = ibuffer_space();\n  puVar2 = PTR_pidstat_table_3077__0015656c;\n  if (iVar1 != 0) {\n    if (*(int *)(PTR_pidstat_table_3077__0015656c + -0x3550) + -1 < 0) {\n      *(undefined4 *)(PTR_pidstat_table_3077__0015656c + -0x3550) = 0x1ff;\n    }\n    else {\n      *(int *)(PTR_pidstat_table_3077__0015656c + -0x3550) =\n           *(int *)(PTR_pidstat_table_3077__0015656c + -0x3550) + -1;\n      puVar2 = PTR_pidstat_table_3077__0015656c;\n    }\n    PTR_pidstat_table_3077__0015656c[*(int *)(puVar2 + -0x3550) + -0x3754] = (char)key;\n    iVar1 = 1;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (expression_statement "iVar1 = ibuffer_space();" (assignment_expression "iVar1 = ibuffer_space()" identifier = (call_expression "ibuffer_space()" identifier (argument_list "()" ( )))) ;) (expression_statement "puVar2 = PTR_pidstat_table_3077__0015656c;" (assignment_expression "puVar2 = PTR_pidstat_table_3077__0015656c" identifier = identifier) ;) (if_statement "if (iVar1 != 0) {\n    if (*(int *)(PTR_pidstat_table_3077__0015656c + -0x3550) + -1 < 0) {\n      *(undefined4 *)(PTR_pidstat_table_3077__0015656c + -0x3550) = 0x1ff;\n    }\n    else {\n      *(int *)(PTR_pidstat_table_3077__0015656c + -0x3550) =\n           *(int *)(PTR_pidstat_table_3077__0015656c + -0x3550) + -1;\n      puVar2 = PTR_pidstat_table_3077__0015656c;\n    }\n    PTR_pidstat_table_3077__0015656c[*(int *)(puVar2 + -0x3550) + -0x3754] = (char)key;\n    iVar1 = 1;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if (*(int *)(PTR_pidstat_table_3077__0015656c + -0x3550) + -1 < 0) {\n      *(undefined4 *)(PTR_pidstat_table_3077__0015656c + -0x3550) = 0x1ff;\n    }\n    else {\n      *(int *)(PTR_pidstat_table_3077__0015656c + -0x3550) =\n           *(int *)(PTR_pidstat_table_3077__0015656c + -0x3550) + -1;\n      puVar2 = PTR_pidstat_table_3077__0015656c;\n    }\n    PTR_pidstat_table_3077__0015656c[*(int *)(puVar2 + -0x3550) + -0x3754] = (char)key;\n    iVar1 = 1;\n  }" { (if_statement "if (*(int *)(PTR_pidstat_table_3077__0015656c + -0x3550) + -1 < 0) {\n      *(undefined4 *)(PTR_pidstat_table_3077__0015656c + -0x3550) = 0x1ff;\n    }\n    else {\n      *(int *)(PTR_pidstat_table_3077__0015656c + -0x3550) =\n           *(int *)(PTR_pidstat_table_3077__0015656c + -0x3550) + -1;\n      puVar2 = PTR_pidstat_table_3077__0015656c;\n    }" if (parenthesized_expression "(*(int *)(PTR_pidstat_table_3077__0015656c + -0x3550) + -1 < 0)" ( (binary_expression "*(int *)(PTR_pidstat_table_3077__0015656c + -0x3550) + -1 < 0" (binary_expression "*(int *)(PTR_pidstat_table_3077__0015656c + -0x3550) + -1" (pointer_expression "*(int *)(PTR_pidstat_table_3077__0015656c + -0x3550)" * (cast_expression "(int *)(PTR_pidstat_table_3077__0015656c + -0x3550)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_pidstat_table_3077__0015656c + -0x3550)" ( (binary_expression "PTR_pidstat_table_3077__0015656c + -0x3550" identifier + number_literal) )))) + number_literal) < number_literal) )) (compound_statement "{\n      *(undefined4 *)(PTR_pidstat_table_3077__0015656c + -0x3550) = 0x1ff;\n    }" { (expression_statement "*(undefined4 *)(PTR_pidstat_table_3077__0015656c + -0x3550) = 0x1ff;" (assignment_expression "*(undefined4 *)(PTR_pidstat_table_3077__0015656c + -0x3550) = 0x1ff" (pointer_expression "*(undefined4 *)(PTR_pidstat_table_3077__0015656c + -0x3550)" * (cast_expression "(undefined4 *)(PTR_pidstat_table_3077__0015656c + -0x3550)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_pidstat_table_3077__0015656c + -0x3550)" ( (binary_expression "PTR_pidstat_table_3077__0015656c + -0x3550" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n      *(int *)(PTR_pidstat_table_3077__0015656c + -0x3550) =\n           *(int *)(PTR_pidstat_table_3077__0015656c + -0x3550) + -1;\n      puVar2 = PTR_pidstat_table_3077__0015656c;\n    }" else (compound_statement "{\n      *(int *)(PTR_pidstat_table_3077__0015656c + -0x3550) =\n           *(int *)(PTR_pidstat_table_3077__0015656c + -0x3550) + -1;\n      puVar2 = PTR_pidstat_table_3077__0015656c;\n    }" { (expression_statement "*(int *)(PTR_pidstat_table_3077__0015656c + -0x3550) =\n           *(int *)(PTR_pidstat_table_3077__0015656c + -0x3550) + -1;" (assignment_expression "*(int *)(PTR_pidstat_table_3077__0015656c + -0x3550) =\n           *(int *)(PTR_pidstat_table_3077__0015656c + -0x3550) + -1" (pointer_expression "*(int *)(PTR_pidstat_table_3077__0015656c + -0x3550)" * (cast_expression "(int *)(PTR_pidstat_table_3077__0015656c + -0x3550)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_pidstat_table_3077__0015656c + -0x3550)" ( (binary_expression "PTR_pidstat_table_3077__0015656c + -0x3550" identifier + number_literal) )))) = (binary_expression "*(int *)(PTR_pidstat_table_3077__0015656c + -0x3550) + -1" (pointer_expression "*(int *)(PTR_pidstat_table_3077__0015656c + -0x3550)" * (cast_expression "(int *)(PTR_pidstat_table_3077__0015656c + -0x3550)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_pidstat_table_3077__0015656c + -0x3550)" ( (binary_expression "PTR_pidstat_table_3077__0015656c + -0x3550" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "puVar2 = PTR_pidstat_table_3077__0015656c;" (assignment_expression "puVar2 = PTR_pidstat_table_3077__0015656c" identifier = identifier) ;) }))) (expression_statement "PTR_pidstat_table_3077__0015656c[*(int *)(puVar2 + -0x3550) + -0x3754] = (char)key;" (assignment_expression "PTR_pidstat_table_3077__0015656c[*(int *)(puVar2 + -0x3550) + -0x3754] = (char)key" (subscript_expression "PTR_pidstat_table_3077__0015656c[*(int *)(puVar2 + -0x3550) + -0x3754]" identifier [ (binary_expression "*(int *)(puVar2 + -0x3550) + -0x3754" (pointer_expression "*(int *)(puVar2 + -0x3550)" * (cast_expression "(int *)(puVar2 + -0x3550)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + -0x3550)" ( (binary_expression "puVar2 + -0x3550" identifier + number_literal) )))) + number_literal) ]) = (cast_expression "(char)key" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "int _rl_unget_char(undefined1 param_1)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  \n  iVar1 = FUN_00112f30();\n  puVar2 = PTR_DAT_0015656c;\n  if (iVar1 != 0) {\n    if (*(int *)(PTR_DAT_0015656c + -0x3550) + -1 < 0) {\n      *(undefined4 *)(PTR_DAT_0015656c + -0x3550) = 0x1ff;\n    }\n    else {\n      *(int *)(PTR_DAT_0015656c + -0x3550) = *(int *)(PTR_DAT_0015656c + -0x3550) + -1;\n      puVar2 = PTR_DAT_0015656c;\n    }\n    PTR_DAT_0015656c[*(int *)(puVar2 + -0x3550) + -0x3754] = param_1;\n    iVar1 = 1;\n  }\n  return iVar1;\n}\n\n" (function_definition "int _rl_unget_char(undefined1 param_1)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  \n  iVar1 = FUN_00112f30();\n  puVar2 = PTR_DAT_0015656c;\n  if (iVar1 != 0) {\n    if (*(int *)(PTR_DAT_0015656c + -0x3550) + -1 < 0) {\n      *(undefined4 *)(PTR_DAT_0015656c + -0x3550) = 0x1ff;\n    }\n    else {\n      *(int *)(PTR_DAT_0015656c + -0x3550) = *(int *)(PTR_DAT_0015656c + -0x3550) + -1;\n      puVar2 = PTR_DAT_0015656c;\n    }\n    PTR_DAT_0015656c[*(int *)(puVar2 + -0x3550) + -0x3754] = param_1;\n    iVar1 = 1;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "_rl_unget_char(undefined1 param_1)" identifier (parameter_list "(undefined1 param_1)" ( (parameter_declaration "undefined1 param_1" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined *puVar2;\n  \n  iVar1 = FUN_00112f30();\n  puVar2 = PTR_DAT_0015656c;\n  if (iVar1 != 0) {\n    if (*(int *)(PTR_DAT_0015656c + -0x3550) + -1 < 0) {\n      *(undefined4 *)(PTR_DAT_0015656c + -0x3550) = 0x1ff;\n    }\n    else {\n      *(int *)(PTR_DAT_0015656c + -0x3550) = *(int *)(PTR_DAT_0015656c + -0x3550) + -1;\n      puVar2 = PTR_DAT_0015656c;\n    }\n    PTR_DAT_0015656c[*(int *)(puVar2 + -0x3550) + -0x3754] = param_1;\n    iVar1 = 1;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (expression_statement "iVar1 = FUN_00112f30();" (assignment_expression "iVar1 = FUN_00112f30()" identifier = (call_expression "FUN_00112f30()" identifier (argument_list "()" ( )))) ;) (expression_statement "puVar2 = PTR_DAT_0015656c;" (assignment_expression "puVar2 = PTR_DAT_0015656c" identifier = identifier) ;) (if_statement "if (iVar1 != 0) {\n    if (*(int *)(PTR_DAT_0015656c + -0x3550) + -1 < 0) {\n      *(undefined4 *)(PTR_DAT_0015656c + -0x3550) = 0x1ff;\n    }\n    else {\n      *(int *)(PTR_DAT_0015656c + -0x3550) = *(int *)(PTR_DAT_0015656c + -0x3550) + -1;\n      puVar2 = PTR_DAT_0015656c;\n    }\n    PTR_DAT_0015656c[*(int *)(puVar2 + -0x3550) + -0x3754] = param_1;\n    iVar1 = 1;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if (*(int *)(PTR_DAT_0015656c + -0x3550) + -1 < 0) {\n      *(undefined4 *)(PTR_DAT_0015656c + -0x3550) = 0x1ff;\n    }\n    else {\n      *(int *)(PTR_DAT_0015656c + -0x3550) = *(int *)(PTR_DAT_0015656c + -0x3550) + -1;\n      puVar2 = PTR_DAT_0015656c;\n    }\n    PTR_DAT_0015656c[*(int *)(puVar2 + -0x3550) + -0x3754] = param_1;\n    iVar1 = 1;\n  }" { (if_statement "if (*(int *)(PTR_DAT_0015656c + -0x3550) + -1 < 0) {\n      *(undefined4 *)(PTR_DAT_0015656c + -0x3550) = 0x1ff;\n    }\n    else {\n      *(int *)(PTR_DAT_0015656c + -0x3550) = *(int *)(PTR_DAT_0015656c + -0x3550) + -1;\n      puVar2 = PTR_DAT_0015656c;\n    }" if (parenthesized_expression "(*(int *)(PTR_DAT_0015656c + -0x3550) + -1 < 0)" ( (binary_expression "*(int *)(PTR_DAT_0015656c + -0x3550) + -1 < 0" (binary_expression "*(int *)(PTR_DAT_0015656c + -0x3550) + -1" (pointer_expression "*(int *)(PTR_DAT_0015656c + -0x3550)" * (cast_expression "(int *)(PTR_DAT_0015656c + -0x3550)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0015656c + -0x3550)" ( (binary_expression "PTR_DAT_0015656c + -0x3550" identifier + number_literal) )))) + number_literal) < number_literal) )) (compound_statement "{\n      *(undefined4 *)(PTR_DAT_0015656c + -0x3550) = 0x1ff;\n    }" { (expression_statement "*(undefined4 *)(PTR_DAT_0015656c + -0x3550) = 0x1ff;" (assignment_expression "*(undefined4 *)(PTR_DAT_0015656c + -0x3550) = 0x1ff" (pointer_expression "*(undefined4 *)(PTR_DAT_0015656c + -0x3550)" * (cast_expression "(undefined4 *)(PTR_DAT_0015656c + -0x3550)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0015656c + -0x3550)" ( (binary_expression "PTR_DAT_0015656c + -0x3550" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n      *(int *)(PTR_DAT_0015656c + -0x3550) = *(int *)(PTR_DAT_0015656c + -0x3550) + -1;\n      puVar2 = PTR_DAT_0015656c;\n    }" else (compound_statement "{\n      *(int *)(PTR_DAT_0015656c + -0x3550) = *(int *)(PTR_DAT_0015656c + -0x3550) + -1;\n      puVar2 = PTR_DAT_0015656c;\n    }" { (expression_statement "*(int *)(PTR_DAT_0015656c + -0x3550) = *(int *)(PTR_DAT_0015656c + -0x3550) + -1;" (assignment_expression "*(int *)(PTR_DAT_0015656c + -0x3550) = *(int *)(PTR_DAT_0015656c + -0x3550) + -1" (pointer_expression "*(int *)(PTR_DAT_0015656c + -0x3550)" * (cast_expression "(int *)(PTR_DAT_0015656c + -0x3550)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0015656c + -0x3550)" ( (binary_expression "PTR_DAT_0015656c + -0x3550" identifier + number_literal) )))) = (binary_expression "*(int *)(PTR_DAT_0015656c + -0x3550) + -1" (pointer_expression "*(int *)(PTR_DAT_0015656c + -0x3550)" * (cast_expression "(int *)(PTR_DAT_0015656c + -0x3550)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0015656c + -0x3550)" ( (binary_expression "PTR_DAT_0015656c + -0x3550" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "puVar2 = PTR_DAT_0015656c;" (assignment_expression "puVar2 = PTR_DAT_0015656c" identifier = identifier) ;) }))) (expression_statement "PTR_DAT_0015656c[*(int *)(puVar2 + -0x3550) + -0x3754] = param_1;" (assignment_expression "PTR_DAT_0015656c[*(int *)(puVar2 + -0x3550) + -0x3754] = param_1" (subscript_expression "PTR_DAT_0015656c[*(int *)(puVar2 + -0x3550) + -0x3754]" identifier [ (binary_expression "*(int *)(puVar2 + -0x3550) + -0x3754" (pointer_expression "*(int *)(puVar2 + -0x3550)" * (cast_expression "(int *)(puVar2 + -0x3550)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + -0x3550)" ( (binary_expression "puVar2 + -0x3550" identifier + number_literal) )))) + number_literal) ]) = identifier) ;) (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) < LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }))) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) })) (return_statement return IDENT ;) })))
(function_definition "int _rl_unget_char(undefined1 param_1)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  \n  iVar1 = FUN_00112f30();\n  puVar2 = PTR_DAT_0015656c;\n  if (iVar1 != 0) {\n    if (*(int *)(PTR_DAT_0015656c + -0x3550) + -1 < 0) {\n      *(undefined4 *)(PTR_DAT_0015656c + -0x3550) = 0x1ff;\n    }\n    else {\n      *(int *)(PTR_DAT_0015656c + -0x3550) = *(int *)(PTR_DAT_0015656c + -0x3550) + -1;\n      puVar2 = PTR_DAT_0015656c;\n    }\n    PTR_DAT_0015656c[*(int *)(puVar2 + -0x3550) + -0x3754] = param_1;\n    iVar1 = 1;\n  }\n  return iVar1;\n}" (primitive_type "int") (function_declarator "_rl_unget_char(undefined1 param_1)" (identifier "_rl_unget_char") (parameter_list "(undefined1 param_1)" (( "(") (parameter_declaration "undefined1 param_1" (type_identifier "undefined1") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined *puVar2;\n  \n  iVar1 = FUN_00112f30();\n  puVar2 = PTR_DAT_0015656c;\n  if (iVar1 != 0) {\n    if (*(int *)(PTR_DAT_0015656c + -0x3550) + -1 < 0) {\n      *(undefined4 *)(PTR_DAT_0015656c + -0x3550) = 0x1ff;\n    }\n    else {\n      *(int *)(PTR_DAT_0015656c + -0x3550) = *(int *)(PTR_DAT_0015656c + -0x3550) + -1;\n      puVar2 = PTR_DAT_0015656c;\n    }\n    PTR_DAT_0015656c[*(int *)(puVar2 + -0x3550) + -0x3754] = param_1;\n    iVar1 = 1;\n  }\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (expression_statement "iVar1 = FUN_00112f30();" (assignment_expression "iVar1 = FUN_00112f30()" (identifier "iVar1") (= "=") (call_expression "FUN_00112f30()" (identifier "FUN_00112f30") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "puVar2 = PTR_DAT_0015656c;" (assignment_expression "puVar2 = PTR_DAT_0015656c" (identifier "puVar2") (= "=") (identifier "PTR_DAT_0015656c")) (; ";")) (if_statement "if (iVar1 != 0) {\n    if (*(int *)(PTR_DAT_0015656c + -0x3550) + -1 < 0) {\n      *(undefined4 *)(PTR_DAT_0015656c + -0x3550) = 0x1ff;\n    }\n    else {\n      *(int *)(PTR_DAT_0015656c + -0x3550) = *(int *)(PTR_DAT_0015656c + -0x3550) + -1;\n      puVar2 = PTR_DAT_0015656c;\n    }\n    PTR_DAT_0015656c[*(int *)(puVar2 + -0x3550) + -0x3754] = param_1;\n    iVar1 = 1;\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if (*(int *)(PTR_DAT_0015656c + -0x3550) + -1 < 0) {\n      *(undefined4 *)(PTR_DAT_0015656c + -0x3550) = 0x1ff;\n    }\n    else {\n      *(int *)(PTR_DAT_0015656c + -0x3550) = *(int *)(PTR_DAT_0015656c + -0x3550) + -1;\n      puVar2 = PTR_DAT_0015656c;\n    }\n    PTR_DAT_0015656c[*(int *)(puVar2 + -0x3550) + -0x3754] = param_1;\n    iVar1 = 1;\n  }" ({ "{") (if_statement "if (*(int *)(PTR_DAT_0015656c + -0x3550) + -1 < 0) {\n      *(undefined4 *)(PTR_DAT_0015656c + -0x3550) = 0x1ff;\n    }\n    else {\n      *(int *)(PTR_DAT_0015656c + -0x3550) = *(int *)(PTR_DAT_0015656c + -0x3550) + -1;\n      puVar2 = PTR_DAT_0015656c;\n    }" (if "if") (parenthesized_expression "(*(int *)(PTR_DAT_0015656c + -0x3550) + -1 < 0)" (( "(") (binary_expression "*(int *)(PTR_DAT_0015656c + -0x3550) + -1 < 0" (binary_expression "*(int *)(PTR_DAT_0015656c + -0x3550) + -1" (pointer_expression "*(int *)(PTR_DAT_0015656c + -0x3550)" (* "*") (cast_expression "(int *)(PTR_DAT_0015656c + -0x3550)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_0015656c + -0x3550)" (( "(") (binary_expression "PTR_DAT_0015656c + -0x3550" (identifier "PTR_DAT_0015656c") (+ "+") (number_literal "-0x3550")) () ")")))) (+ "+") (number_literal "-1")) (< "<") (number_literal "0")) () ")")) (compound_statement "{\n      *(undefined4 *)(PTR_DAT_0015656c + -0x3550) = 0x1ff;\n    }" ({ "{") (expression_statement "*(undefined4 *)(PTR_DAT_0015656c + -0x3550) = 0x1ff;" (assignment_expression "*(undefined4 *)(PTR_DAT_0015656c + -0x3550) = 0x1ff" (pointer_expression "*(undefined4 *)(PTR_DAT_0015656c + -0x3550)" (* "*") (cast_expression "(undefined4 *)(PTR_DAT_0015656c + -0x3550)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_0015656c + -0x3550)" (( "(") (binary_expression "PTR_DAT_0015656c + -0x3550" (identifier "PTR_DAT_0015656c") (+ "+") (number_literal "-0x3550")) () ")")))) (= "=") (number_literal "0x1ff")) (; ";")) (} "}")) (else_clause "else {\n      *(int *)(PTR_DAT_0015656c + -0x3550) = *(int *)(PTR_DAT_0015656c + -0x3550) + -1;\n      puVar2 = PTR_DAT_0015656c;\n    }" (else "else") (compound_statement "{\n      *(int *)(PTR_DAT_0015656c + -0x3550) = *(int *)(PTR_DAT_0015656c + -0x3550) + -1;\n      puVar2 = PTR_DAT_0015656c;\n    }" ({ "{") (expression_statement "*(int *)(PTR_DAT_0015656c + -0x3550) = *(int *)(PTR_DAT_0015656c + -0x3550) + -1;" (assignment_expression "*(int *)(PTR_DAT_0015656c + -0x3550) = *(int *)(PTR_DAT_0015656c + -0x3550) + -1" (pointer_expression "*(int *)(PTR_DAT_0015656c + -0x3550)" (* "*") (cast_expression "(int *)(PTR_DAT_0015656c + -0x3550)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_0015656c + -0x3550)" (( "(") (binary_expression "PTR_DAT_0015656c + -0x3550" (identifier "PTR_DAT_0015656c") (+ "+") (number_literal "-0x3550")) () ")")))) (= "=") (binary_expression "*(int *)(PTR_DAT_0015656c + -0x3550) + -1" (pointer_expression "*(int *)(PTR_DAT_0015656c + -0x3550)" (* "*") (cast_expression "(int *)(PTR_DAT_0015656c + -0x3550)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_0015656c + -0x3550)" (( "(") (binary_expression "PTR_DAT_0015656c + -0x3550" (identifier "PTR_DAT_0015656c") (+ "+") (number_literal "-0x3550")) () ")")))) (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "puVar2 = PTR_DAT_0015656c;" (assignment_expression "puVar2 = PTR_DAT_0015656c" (identifier "puVar2") (= "=") (identifier "PTR_DAT_0015656c")) (; ";")) (} "}")))) (expression_statement "PTR_DAT_0015656c[*(int *)(puVar2 + -0x3550) + -0x3754] = param_1;" (assignment_expression "PTR_DAT_0015656c[*(int *)(puVar2 + -0x3550) + -0x3754] = param_1" (subscript_expression "PTR_DAT_0015656c[*(int *)(puVar2 + -0x3550) + -0x3754]" (identifier "PTR_DAT_0015656c") ([ "[") (binary_expression "*(int *)(puVar2 + -0x3550) + -0x3754" (pointer_expression "*(int *)(puVar2 + -0x3550)" (* "*") (cast_expression "(int *)(puVar2 + -0x3550)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + -0x3550)" (( "(") (binary_expression "puVar2 + -0x3550" (identifier "puVar2") (+ "+") (number_literal "-0x3550")) () ")")))) (+ "+") (number_literal "-0x3754")) (] "]")) (= "=") (identifier "param_1")) (; ";")) (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" (identifier "iVar1") (= "=") (number_literal "1")) (; ";")) (} "}"))) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))

int function_1(int key)

{
  int var_2;
  type_1 *var_4;
  
  var_2 = var_1();
  var_4 = var_3;
  if (var_2 != 0) {
    if (*(int *)(var_3 + -0x3550) + -1 < 0) {
      *(type_2 *)(var_3 + -0x3550) = 0x1ff;
    }
    else {
      *(int *)(var_3 + -0x3550) =
           *(int *)(var_3 + -0x3550) + -1;
      var_4 = var_3;
    }
    var_3[*(int *)(var_4 + -0x3550) + -0x3754] = (char)key;
    var_2 = 1;
  }
  return var_2;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (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: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (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))))) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_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: (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: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (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: (number_literal))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (return_statement (identifier)))))

int MASKED(undefined1 param_1)

{
  int iVar1;
  undefined *puVar2;
  
  iVar1 = FUN_00112f30();
  puVar2 = PTR_DAT_0015656c;
  if (iVar1 != 0) {
    if (*(int *)(PTR_DAT_0015656c + -0x3550) + -1 < 0) {
      *(undefined4 *)(PTR_DAT_0015656c + -0x3550) = 0x1ff;
    }
    else {
      *(int *)(PTR_DAT_0015656c + -0x3550) = *(int *)(PTR_DAT_0015656c + -0x3550) + -1;
      puVar2 = PTR_DAT_0015656c;
    }
    PTR_DAT_0015656c[*(int *)(puVar2 + -0x3550) + -0x3754] = param_1;
    iVar1 = 1;
  }
  return iVar1;
}

