
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

int rl_begin_undo_group(void)

{
  UNDO_LIST *pUVar1;
  
  pUVar1 = (UNDO_LIST *)xmalloc(0x14);
  pUVar1->what = UNDO_BEGIN;
  pUVar1->next = rl_undo_list;
  pUVar1->start = 0;
  pUVar1->end = 0;
  pUVar1->text = (char *)0x0;
  rl_undo_list = pUVar1;
  _rl_undo_group_level = _rl_undo_group_level + 1;
  return 0;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

undefined4 rl_begin_undo_group(void)

{
  undefined4 *puVar1;
  
  puVar1 = (undefined4 *)xmalloc(0x14);
  puVar1[4] = 2;
  *puVar1 = rl_undo_list;
  puVar1[1] = 0;
  puVar1[2] = 0;
  puVar1[3] = 0;
  rl_undo_list = puVar1;
  _rl_undo_group_level = _rl_undo_group_level + 1;
  return 0;
}


PUSH EBX
CALL 0x00031ed0
ADD EBX,0x6b2ba
SUB ESP,0x14
PUSH 0x14
CALL 0x00099200
MOV EDX,dword ptr [EBX + 0x8730]
MOV dword ptr [EAX + 0x10],0x2
MOV dword ptr [EAX],EDX
MOV dword ptr [EAX + 0x4],0x0
MOV dword ptr [EAX + 0x8],0x0
MOV dword ptr [EAX + 0xc],0x0
MOV dword ptr [EBX + 0x8730],EAX
XOR EAX,EAX
ADD dword ptr [EBX + 0x8734],0x1
ADD ESP,0x18
POP EBX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 rl_begin_undo_group(void)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)xmalloc(0x14);\n  puVar1[4] = 2;\n  *puVar1 = rl_undo_list;\n  puVar1[1] = 0;\n  puVar1[2] = 0;\n  puVar1[3] = 0;\n  rl_undo_list = puVar1;\n  _rl_undo_group_level = _rl_undo_group_level + 1;\n  return 0;\n}\n\n" comment (function_definition "undefined4 rl_begin_undo_group(void)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)xmalloc(0x14);\n  puVar1[4] = 2;\n  *puVar1 = rl_undo_list;\n  puVar1[1] = 0;\n  puVar1[2] = 0;\n  puVar1[3] = 0;\n  rl_undo_list = puVar1;\n  _rl_undo_group_level = _rl_undo_group_level + 1;\n  return 0;\n}" type_identifier (function_declarator "rl_begin_undo_group(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)xmalloc(0x14);\n  puVar1[4] = 2;\n  *puVar1 = rl_undo_list;\n  puVar1[1] = 0;\n  puVar1[2] = 0;\n  puVar1[3] = 0;\n  rl_undo_list = puVar1;\n  _rl_undo_group_level = _rl_undo_group_level + 1;\n  return 0;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (expression_statement "puVar1 = (undefined4 *)xmalloc(0x14);" (assignment_expression "puVar1 = (undefined4 *)xmalloc(0x14)" identifier = (cast_expression "(undefined4 *)xmalloc(0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x14)" identifier (argument_list "(0x14)" ( number_literal ))))) ;) (expression_statement "puVar1[4] = 2;" (assignment_expression "puVar1[4] = 2" (subscript_expression "puVar1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar1 = rl_undo_list;" (assignment_expression "*puVar1 = rl_undo_list" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[2] = 0;" (assignment_expression "puVar1[2] = 0" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[3] = 0;" (assignment_expression "puVar1[3] = 0" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "rl_undo_list = puVar1;" (assignment_expression "rl_undo_list = puVar1" identifier = identifier) ;) (expression_statement "_rl_undo_group_level = _rl_undo_group_level + 1;" (assignment_expression "_rl_undo_group_level = _rl_undo_group_level + 1" identifier = (binary_expression "_rl_undo_group_level + 1" identifier + number_literal)) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint rl_begin_undo_group(void)\n\n{\n  UNDO_LIST *pUVar1;\n  \n  pUVar1 = (UNDO_LIST *)xmalloc(0x14);\n  pUVar1->what = UNDO_BEGIN;\n  pUVar1->next = rl_undo_list;\n  pUVar1->start = 0;\n  pUVar1->end = 0;\n  pUVar1->text = (char *)0x0;\n  rl_undo_list = pUVar1;\n  _rl_undo_group_level = _rl_undo_group_level + 1;\n  return 0;\n}\n\n" comment comment (function_definition "int rl_begin_undo_group(void)\n\n{\n  UNDO_LIST *pUVar1;\n  \n  pUVar1 = (UNDO_LIST *)xmalloc(0x14);\n  pUVar1->what = UNDO_BEGIN;\n  pUVar1->next = rl_undo_list;\n  pUVar1->start = 0;\n  pUVar1->end = 0;\n  pUVar1->text = (char *)0x0;\n  rl_undo_list = pUVar1;\n  _rl_undo_group_level = _rl_undo_group_level + 1;\n  return 0;\n}" primitive_type (function_declarator "rl_begin_undo_group(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  UNDO_LIST *pUVar1;\n  \n  pUVar1 = (UNDO_LIST *)xmalloc(0x14);\n  pUVar1->what = UNDO_BEGIN;\n  pUVar1->next = rl_undo_list;\n  pUVar1->start = 0;\n  pUVar1->end = 0;\n  pUVar1->text = (char *)0x0;\n  rl_undo_list = pUVar1;\n  _rl_undo_group_level = _rl_undo_group_level + 1;\n  return 0;\n}" { (declaration "UNDO_LIST *pUVar1;" type_identifier (pointer_declarator "*pUVar1" * identifier) ;) (expression_statement "pUVar1 = (UNDO_LIST *)xmalloc(0x14);" (assignment_expression "pUVar1 = (UNDO_LIST *)xmalloc(0x14)" identifier = (cast_expression "(UNDO_LIST *)xmalloc(0x14)" ( (type_descriptor "UNDO_LIST *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x14)" identifier (argument_list "(0x14)" ( number_literal ))))) ;) (expression_statement "pUVar1->what = UNDO_BEGIN;" (assignment_expression "pUVar1->what = UNDO_BEGIN" (field_expression "pUVar1->what" identifier -> field_identifier) = identifier) ;) (expression_statement "pUVar1->next = rl_undo_list;" (assignment_expression "pUVar1->next = rl_undo_list" (field_expression "pUVar1->next" identifier -> field_identifier) = identifier) ;) (expression_statement "pUVar1->start = 0;" (assignment_expression "pUVar1->start = 0" (field_expression "pUVar1->start" identifier -> field_identifier) = number_literal) ;) (expression_statement "pUVar1->end = 0;" (assignment_expression "pUVar1->end = 0" (field_expression "pUVar1->end" identifier -> field_identifier) = number_literal) ;) (expression_statement "pUVar1->text = (char *)0x0;" (assignment_expression "pUVar1->text = (char *)0x0" (field_expression "pUVar1->text" identifier -> field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "rl_undo_list = pUVar1;" (assignment_expression "rl_undo_list = pUVar1" identifier = identifier) ;) (expression_statement "_rl_undo_group_level = _rl_undo_group_level + 1;" (assignment_expression "_rl_undo_group_level = _rl_undo_group_level + 1" identifier = (binary_expression "_rl_undo_group_level + 1" identifier + number_literal)) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 rl_begin_undo_group(void)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)xmalloc(0x14);\n  puVar1[4] = 2;\n  *puVar1 = rl_undo_list;\n  puVar1[1] = 0;\n  puVar1[2] = 0;\n  puVar1[3] = 0;\n  rl_undo_list = puVar1;\n  _rl_undo_group_level = _rl_undo_group_level + 1;\n  return 0;\n}\n\n" (function_definition "undefined4 rl_begin_undo_group(void)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)xmalloc(0x14);\n  puVar1[4] = 2;\n  *puVar1 = rl_undo_list;\n  puVar1[1] = 0;\n  puVar1[2] = 0;\n  puVar1[3] = 0;\n  rl_undo_list = puVar1;\n  _rl_undo_group_level = _rl_undo_group_level + 1;\n  return 0;\n}" type_identifier (function_declarator "rl_begin_undo_group(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)xmalloc(0x14);\n  puVar1[4] = 2;\n  *puVar1 = rl_undo_list;\n  puVar1[1] = 0;\n  puVar1[2] = 0;\n  puVar1[3] = 0;\n  rl_undo_list = puVar1;\n  _rl_undo_group_level = _rl_undo_group_level + 1;\n  return 0;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (expression_statement "puVar1 = (undefined4 *)xmalloc(0x14);" (assignment_expression "puVar1 = (undefined4 *)xmalloc(0x14)" identifier = (cast_expression "(undefined4 *)xmalloc(0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x14)" identifier (argument_list "(0x14)" ( number_literal ))))) ;) (expression_statement "puVar1[4] = 2;" (assignment_expression "puVar1[4] = 2" (subscript_expression "puVar1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar1 = rl_undo_list;" (assignment_expression "*puVar1 = rl_undo_list" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[2] = 0;" (assignment_expression "puVar1[2] = 0" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[3] = 0;" (assignment_expression "puVar1[3] = 0" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "rl_undo_list = puVar1;" (assignment_expression "rl_undo_list = puVar1" identifier = identifier) ;) (expression_statement "_rl_undo_group_level = _rl_undo_group_level + 1;" (assignment_expression "_rl_undo_group_level = _rl_undo_group_level + 1" identifier = (binary_expression "_rl_undo_group_level + 1" identifier + number_literal)) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 rl_begin_undo_group(void)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)xmalloc(0x14);\n  puVar1[4] = 2;\n  *puVar1 = rl_undo_list;\n  puVar1[1] = 0;\n  puVar1[2] = 0;\n  puVar1[3] = 0;\n  rl_undo_list = puVar1;\n  _rl_undo_group_level = _rl_undo_group_level + 1;\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "rl_begin_undo_group(void)" (identifier "rl_begin_undo_group") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)xmalloc(0x14);\n  puVar1[4] = 2;\n  *puVar1 = rl_undo_list;\n  puVar1[1] = 0;\n  puVar1[2] = 0;\n  puVar1[3] = 0;\n  rl_undo_list = puVar1;\n  _rl_undo_group_level = _rl_undo_group_level + 1;\n  return 0;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (expression_statement "puVar1 = (undefined4 *)xmalloc(0x14);" (assignment_expression "puVar1 = (undefined4 *)xmalloc(0x14)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)xmalloc(0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(0x14)" (identifier "xmalloc") (argument_list "(0x14)" (( "(") (number_literal "0x14") () ")"))))) (; ";")) (expression_statement "puVar1[4] = 2;" (assignment_expression "puVar1[4] = 2" (subscript_expression "puVar1[4]" (identifier "puVar1") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "2")) (; ";")) (expression_statement "*puVar1 = rl_undo_list;" (assignment_expression "*puVar1 = rl_undo_list" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (identifier "rl_undo_list")) (; ";")) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1[2] = 0;" (assignment_expression "puVar1[2] = 0" (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1[3] = 0;" (assignment_expression "puVar1[3] = 0" (subscript_expression "puVar1[3]" (identifier "puVar1") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "rl_undo_list = puVar1;" (assignment_expression "rl_undo_list = puVar1" (identifier "rl_undo_list") (= "=") (identifier "puVar1")) (; ";")) (expression_statement "_rl_undo_group_level = _rl_undo_group_level + 1;" (assignment_expression "_rl_undo_group_level = _rl_undo_group_level + 1" (identifier "_rl_undo_group_level") (= "=") (binary_expression "_rl_undo_group_level + 1" (identifier "_rl_undo_group_level") (+ "+") (number_literal "1"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

int function_1(void)

{
  type_1 *pUVar1;
  
  pUVar1 = (type_1 *)var_1(0x14);
  pUVar1->what = UNDO_BEGIN;
  pUVar1->next = rl_undo_list;
  pUVar1->start = 0;
  pUVar1->end = 0;
  pUVar1->text = (char *)0x0;
  rl_undo_list = pUVar1;
  var_2 = var_2 + 1;
  return 0;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (return_statement (number_literal)))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

undefined4 MASKED(void)

{
  undefined4 *puVar1;
  
  puVar1 = (undefined4 *)xmalloc(0x14);
  puVar1[4] = 2;
  *puVar1 = rl_undo_list;
  puVar1[1] = 0;
  puVar1[2] = 0;
  puVar1[3] = 0;
  rl_undo_list = puVar1;
  _rl_undo_group_level = _rl_undo_group_level + 1;
  return 0;
}

