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

int __regparm1 rl_copy_backward_word(int count,int key)

{
  int iVar1;
  int iVar2;
  int iVar3;
  int om;
  int op;
  
  iVar1 = rl_point;
  iVar3 = rl_mark;
  if (-1 < key) {
    rl_backward_word(count,rl_point);
    rl_mark = rl_point;
    rl_forward_word(key,0);
    iVar2 = region_kill_internal(0);
    rl_mark = iVar3;
    rl_point = iVar1;
    return iVar2;
  }
  iVar3 = rl_copy_forward_word(count,-key);
  return iVar3;
}



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

void rl_copy_backward_word(int param_1)

{
  undefined4 uVar1;
  undefined4 uVar2;
  
  uVar2 = rl_point;
  uVar1 = rl_mark;
  if (-1 < param_1) {
    rl_backward_word(param_1,0);
    rl_mark = rl_point;
    rl_forward_word(param_1,0);
    FUN_000dd9c0();
    rl_mark = uVar1;
    rl_point = uVar2;
    return;
  }
  rl_copy_forward_word();
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00031ed0
ADD EBX,0x6bb07
SUB ESP,0x1c
MOV ESI,dword ptr [ESP + 0x30]
TEST ESI,ESI
JS 0x000de560
LEA EBP,[EBX + 0xd97c]
LEA EDI,[EBX + 0xd988]
SUB ESP,0x8
MOV ECX,dword ptr [EBP]
MOV EDX,dword ptr [EDI]
MOV dword ptr [ESP + 0x14],ECX
MOV dword ptr [ESP + 0x10],EDX
PUSH 0x0
PUSH ESI
CALL 0x000e2c00
MOV EAX,dword ptr [EDI]
MOV dword ptr [EBP],EAX
POP EAX
POP EDX
PUSH 0x0
PUSH ESI
CALL 0x000e2c20
XOR EAX,EAX
CALL 0x000dd9c0
MOV ECX,dword ptr [ESP + 0x1c]
MOV EDX,dword ptr [ESP + 0x18]
MOV dword ptr [EBP],ECX
MOV dword ptr [EDI],EDX
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
NEG ESI
MOV dword ptr [ESP + 0x30],ESI
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
JMP 0x000de570
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid rl_copy_backward_word(int param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  \n  uVar2 = rl_point;\n  uVar1 = rl_mark;\n  if (-1 < param_1) {\n    rl_backward_word(param_1,0);\n    rl_mark = rl_point;\n    rl_forward_word(param_1,0);\n    FUN_000dd9c0();\n    rl_mark = uVar1;\n    rl_point = uVar2;\n    return;\n  }\n  rl_copy_forward_word();\n  return;\n}\n\n" comment (function_definition "void rl_copy_backward_word(int param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  \n  uVar2 = rl_point;\n  uVar1 = rl_mark;\n  if (-1 < param_1) {\n    rl_backward_word(param_1,0);\n    rl_mark = rl_point;\n    rl_forward_word(param_1,0);\n    FUN_000dd9c0();\n    rl_mark = uVar1;\n    rl_point = uVar2;\n    return;\n  }\n  rl_copy_forward_word();\n  return;\n}" primitive_type (function_declarator "rl_copy_backward_word(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  \n  uVar2 = rl_point;\n  uVar1 = rl_mark;\n  if (-1 < param_1) {\n    rl_backward_word(param_1,0);\n    rl_mark = rl_point;\n    rl_forward_word(param_1,0);\n    FUN_000dd9c0();\n    rl_mark = uVar1;\n    rl_point = uVar2;\n    return;\n  }\n  rl_copy_forward_word();\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "uVar2 = rl_point;" (assignment_expression "uVar2 = rl_point" identifier = identifier) ;) (expression_statement "uVar1 = rl_mark;" (assignment_expression "uVar1 = rl_mark" identifier = identifier) ;) (if_statement "if (-1 < param_1) {\n    rl_backward_word(param_1,0);\n    rl_mark = rl_point;\n    rl_forward_word(param_1,0);\n    FUN_000dd9c0();\n    rl_mark = uVar1;\n    rl_point = uVar2;\n    return;\n  }" if (parenthesized_expression "(-1 < param_1)" ( (binary_expression "-1 < param_1" number_literal < identifier) )) (compound_statement "{\n    rl_backward_word(param_1,0);\n    rl_mark = rl_point;\n    rl_forward_word(param_1,0);\n    FUN_000dd9c0();\n    rl_mark = uVar1;\n    rl_point = uVar2;\n    return;\n  }" { (expression_statement "rl_backward_word(param_1,0);" (call_expression "rl_backward_word(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal ))) ;) (expression_statement "rl_mark = rl_point;" (assignment_expression "rl_mark = rl_point" identifier = identifier) ;) (expression_statement "rl_forward_word(param_1,0);" (call_expression "rl_forward_word(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal ))) ;) (expression_statement "FUN_000dd9c0();" (call_expression "FUN_000dd9c0()" identifier (argument_list "()" ( ))) ;) (expression_statement "rl_mark = uVar1;" (assignment_expression "rl_mark = uVar1" identifier = identifier) ;) (expression_statement "rl_point = uVar2;" (assignment_expression "rl_point = uVar2" identifier = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "rl_copy_forward_word();" (call_expression "rl_copy_forward_word()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm1 rl_copy_backward_word(int count,int key)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int om;\n  int op;\n  \n  iVar1 = rl_point;\n  iVar3 = rl_mark;\n  if (-1 < key) {\n    rl_backward_word(count,rl_point);\n    rl_mark = rl_point;\n    rl_forward_word(key,0);\n    iVar2 = region_kill_internal(0);\n    rl_mark = iVar3;\n    rl_point = iVar1;\n    return iVar2;\n  }\n  iVar3 = rl_copy_forward_word(count,-key);\n  return iVar3;\n}\n\n" comment (function_definition "int __regparm1 rl_copy_backward_word(int count,int key)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int om;\n  int op;\n  \n  iVar1 = rl_point;\n  iVar3 = rl_mark;\n  if (-1 < key) {\n    rl_backward_word(count,rl_point);\n    rl_mark = rl_point;\n    rl_forward_word(key,0);\n    iVar2 = region_kill_internal(0);\n    rl_mark = iVar3;\n    rl_point = iVar1;\n    return iVar2;\n  }\n  iVar3 = rl_copy_forward_word(count,-key);\n  return iVar3;\n}" primitive_type (ERROR "__regparm1" identifier) (function_declarator "rl_copy_backward_word(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  int iVar1;\n  int iVar2;\n  int iVar3;\n  int om;\n  int op;\n  \n  iVar1 = rl_point;\n  iVar3 = rl_mark;\n  if (-1 < key) {\n    rl_backward_word(count,rl_point);\n    rl_mark = rl_point;\n    rl_forward_word(key,0);\n    iVar2 = region_kill_internal(0);\n    rl_mark = iVar3;\n    rl_point = iVar1;\n    return iVar2;\n  }\n  iVar3 = rl_copy_forward_word(count,-key);\n  return iVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int om;" primitive_type identifier ;) (declaration "int op;" primitive_type identifier ;) (expression_statement "iVar1 = rl_point;" (assignment_expression "iVar1 = rl_point" identifier = identifier) ;) (expression_statement "iVar3 = rl_mark;" (assignment_expression "iVar3 = rl_mark" identifier = identifier) ;) (if_statement "if (-1 < key) {\n    rl_backward_word(count,rl_point);\n    rl_mark = rl_point;\n    rl_forward_word(key,0);\n    iVar2 = region_kill_internal(0);\n    rl_mark = iVar3;\n    rl_point = iVar1;\n    return iVar2;\n  }" if (parenthesized_expression "(-1 < key)" ( (binary_expression "-1 < key" number_literal < identifier) )) (compound_statement "{\n    rl_backward_word(count,rl_point);\n    rl_mark = rl_point;\n    rl_forward_word(key,0);\n    iVar2 = region_kill_internal(0);\n    rl_mark = iVar3;\n    rl_point = iVar1;\n    return iVar2;\n  }" { (expression_statement "rl_backward_word(count,rl_point);" (call_expression "rl_backward_word(count,rl_point)" identifier (argument_list "(count,rl_point)" ( identifier , identifier ))) ;) (expression_statement "rl_mark = rl_point;" (assignment_expression "rl_mark = rl_point" identifier = identifier) ;) (expression_statement "rl_forward_word(key,0);" (call_expression "rl_forward_word(key,0)" identifier (argument_list "(key,0)" ( identifier , number_literal ))) ;) (expression_statement "iVar2 = region_kill_internal(0);" (assignment_expression "iVar2 = region_kill_internal(0)" identifier = (call_expression "region_kill_internal(0)" identifier (argument_list "(0)" ( number_literal )))) ;) (expression_statement "rl_mark = iVar3;" (assignment_expression "rl_mark = iVar3" identifier = identifier) ;) (expression_statement "rl_point = iVar1;" (assignment_expression "rl_point = iVar1" identifier = identifier) ;) (return_statement "return iVar2;" return identifier ;) })) (expression_statement "iVar3 = rl_copy_forward_word(count,-key);" (assignment_expression "iVar3 = rl_copy_forward_word(count,-key)" identifier = (call_expression "rl_copy_forward_word(count,-key)" identifier (argument_list "(count,-key)" ( identifier , (unary_expression "-key" - identifier) )))) ;) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit "void rl_copy_backward_word(int param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  \n  uVar2 = rl_point;\n  uVar1 = rl_mark;\n  if (-1 < param_1) {\n    rl_backward_word(param_1,0);\n    rl_mark = rl_point;\n    rl_forward_word(param_1,0);\n    FUN_000dd9c0();\n    rl_mark = uVar1;\n    rl_point = uVar2;\n    return;\n  }\n  rl_copy_forward_word();\n  return;\n}\n\n" (function_definition "void rl_copy_backward_word(int param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  \n  uVar2 = rl_point;\n  uVar1 = rl_mark;\n  if (-1 < param_1) {\n    rl_backward_word(param_1,0);\n    rl_mark = rl_point;\n    rl_forward_word(param_1,0);\n    FUN_000dd9c0();\n    rl_mark = uVar1;\n    rl_point = uVar2;\n    return;\n  }\n  rl_copy_forward_word();\n  return;\n}" primitive_type (function_declarator "rl_copy_backward_word(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  \n  uVar2 = rl_point;\n  uVar1 = rl_mark;\n  if (-1 < param_1) {\n    rl_backward_word(param_1,0);\n    rl_mark = rl_point;\n    rl_forward_word(param_1,0);\n    FUN_000dd9c0();\n    rl_mark = uVar1;\n    rl_point = uVar2;\n    return;\n  }\n  rl_copy_forward_word();\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "uVar2 = rl_point;" (assignment_expression "uVar2 = rl_point" identifier = identifier) ;) (expression_statement "uVar1 = rl_mark;" (assignment_expression "uVar1 = rl_mark" identifier = identifier) ;) (if_statement "if (-1 < param_1) {\n    rl_backward_word(param_1,0);\n    rl_mark = rl_point;\n    rl_forward_word(param_1,0);\n    FUN_000dd9c0();\n    rl_mark = uVar1;\n    rl_point = uVar2;\n    return;\n  }" if (parenthesized_expression "(-1 < param_1)" ( (binary_expression "-1 < param_1" number_literal < identifier) )) (compound_statement "{\n    rl_backward_word(param_1,0);\n    rl_mark = rl_point;\n    rl_forward_word(param_1,0);\n    FUN_000dd9c0();\n    rl_mark = uVar1;\n    rl_point = uVar2;\n    return;\n  }" { (expression_statement "rl_backward_word(param_1,0);" (call_expression "rl_backward_word(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal ))) ;) (expression_statement "rl_mark = rl_point;" (assignment_expression "rl_mark = rl_point" identifier = identifier) ;) (expression_statement "rl_forward_word(param_1,0);" (call_expression "rl_forward_word(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal ))) ;) (expression_statement "FUN_000dd9c0();" (call_expression "FUN_000dd9c0()" identifier (argument_list "()" ( ))) ;) (expression_statement "rl_mark = uVar1;" (assignment_expression "rl_mark = uVar1" identifier = identifier) ;) (expression_statement "rl_point = uVar2;" (assignment_expression "rl_point = uVar2" identifier = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "rl_copy_forward_word();" (call_expression "rl_copy_forward_word()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })))
(function_definition "void rl_copy_backward_word(int param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  \n  uVar2 = rl_point;\n  uVar1 = rl_mark;\n  if (-1 < param_1) {\n    rl_backward_word(param_1,0);\n    rl_mark = rl_point;\n    rl_forward_word(param_1,0);\n    FUN_000dd9c0();\n    rl_mark = uVar1;\n    rl_point = uVar2;\n    return;\n  }\n  rl_copy_forward_word();\n  return;\n}" (primitive_type "void") (function_declarator "rl_copy_backward_word(int param_1)" (identifier "rl_copy_backward_word") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  \n  uVar2 = rl_point;\n  uVar1 = rl_mark;\n  if (-1 < param_1) {\n    rl_backward_word(param_1,0);\n    rl_mark = rl_point;\n    rl_forward_word(param_1,0);\n    FUN_000dd9c0();\n    rl_mark = uVar1;\n    rl_point = uVar2;\n    return;\n  }\n  rl_copy_forward_word();\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (expression_statement "uVar2 = rl_point;" (assignment_expression "uVar2 = rl_point" (identifier "uVar2") (= "=") (identifier "rl_point")) (; ";")) (expression_statement "uVar1 = rl_mark;" (assignment_expression "uVar1 = rl_mark" (identifier "uVar1") (= "=") (identifier "rl_mark")) (; ";")) (if_statement "if (-1 < param_1) {\n    rl_backward_word(param_1,0);\n    rl_mark = rl_point;\n    rl_forward_word(param_1,0);\n    FUN_000dd9c0();\n    rl_mark = uVar1;\n    rl_point = uVar2;\n    return;\n  }" (if "if") (parenthesized_expression "(-1 < param_1)" (( "(") (binary_expression "-1 < param_1" (number_literal "-1") (< "<") (identifier "param_1")) () ")")) (compound_statement "{\n    rl_backward_word(param_1,0);\n    rl_mark = rl_point;\n    rl_forward_word(param_1,0);\n    FUN_000dd9c0();\n    rl_mark = uVar1;\n    rl_point = uVar2;\n    return;\n  }" ({ "{") (expression_statement "rl_backward_word(param_1,0);" (call_expression "rl_backward_word(param_1,0)" (identifier "rl_backward_word") (argument_list "(param_1,0)" (( "(") (identifier "param_1") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "rl_mark = rl_point;" (assignment_expression "rl_mark = rl_point" (identifier "rl_mark") (= "=") (identifier "rl_point")) (; ";")) (expression_statement "rl_forward_word(param_1,0);" (call_expression "rl_forward_word(param_1,0)" (identifier "rl_forward_word") (argument_list "(param_1,0)" (( "(") (identifier "param_1") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "FUN_000dd9c0();" (call_expression "FUN_000dd9c0()" (identifier "FUN_000dd9c0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "rl_mark = uVar1;" (assignment_expression "rl_mark = uVar1" (identifier "rl_mark") (= "=") (identifier "uVar1")) (; ";")) (expression_statement "rl_point = uVar2;" (assignment_expression "rl_point = uVar2" (identifier "rl_point") (= "=") (identifier "uVar2")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "rl_copy_forward_word();" (call_expression "rl_copy_forward_word()" (identifier "rl_copy_forward_word") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

int __regparm1 function_1(int count,int var_1)

{
  int iVar1;
  int iVar2;
  int iVar3;
  int om;
  int op;
  
  iVar1 = rl_point;
  iVar3 = rl_mark;
  if (-1 < var_1) {
    var_2(count,rl_point);
    rl_mark = rl_point;
    var_3(var_1,0);
    iVar2 = var_4(0);
    rl_mark = iVar3;
    rl_point = iVar1;
    return iVar2;
  }
  iVar3 = var_5(count,-var_1);
  return iVar3;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (return_statement))))

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

void MASKED(int param_1)

{
  undefined4 uVar1;
  undefined4 uVar2;
  
  uVar2 = rl_point;
  uVar1 = rl_mark;
  if (-1 < param_1) {
    rl_backward_word(param_1,0);
    rl_mark = rl_point;
    rl_forward_word(param_1,0);
    FUN_000dd9c0();
    rl_mark = uVar1;
    rl_point = uVar2;
    return;
  }
  rl_copy_forward_word();
  return;
}

